]> granicus.if.org Git - imagemagick/blob - configure
89728bd9e000315b6ce4fb3b8463236f38a67a83
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.1.
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 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177   if (eval "$as_required") 2>/dev/null; then :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
194            for as_base in sh bash ksh sh5; do
195              # Try only shells that exist, to save several forks.
196              as_shell=$as_dir/$as_base
197              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   CONFIG_SHELL=$as_shell as_have_required=yes
200                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210   CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
213
214
215       if test "x$CONFIG_SHELL" != x; then :
216   # We cannot yet assume a decent shell, so we have to provide a
217         # neutralization value for shells without unset; and this also
218         # works around shells that cannot unset nonexistent variables.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
226     if test x$as_have_required = xno; then :
227   $as_echo "$0: This script requires a shell more modern than all"
228   $as_echo "$0: the shells that I found on your system."
229   if test x${ZSH_VERSION+set} = xset ; then
230     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232   else
233     $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
295       as_dirs="'$as_qdir' $as_dirs"
296       as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298          X"$as_dir" : 'X\(//\)[^/]' \| \
299          X"$as_dir" : 'X\(//\)$' \| \
300          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
368 {
369   as_status=$?; test $as_status -eq 0 && as_status=1
370   if test "$3"; then
371     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373   fi
374   $as_echo "$as_me: error: $1" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424   as_lineno_1=$LINENO as_lineno_1a=$LINENO
425   as_lineno_2=$LINENO as_lineno_2a=$LINENO
426   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
444   chmod +x "$as_me.lineno" ||
445     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447   # Don't try to exec as it changes $[0], causing all sort of problems
448   # (the dirname of $[0] is not the place where we might find the
449   # original and so on.  Autoconf is especially sensitive to this).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
478     # ... but there are two gotchas:
479     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481     # In both cases, we have to default to `cp -p'.
482     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536 case X$lt_ECHO in
537 X*--fallback-echo)
538   # Remove one level of quotation (which was required for Make).
539   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540   ;;
541 esac
542
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545   # Discard the --no-reexec flag, and continue.
546   shift
547 elif test "X$1" = X--fallback-echo; then
548   # Avoid inline document here, it may be left over
549   :
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551   # Yippee, $ECHO works!
552   :
553 else
554   # Restart under the correct shell.
555   exec $SHELL "$0" --no-reexec ${1+"$@"}
556 fi
557
558 if test "X$1" = X--fallback-echo; then
559   # used as fallback echo
560   shift
561   cat <<_LT_EOF
562 $*
563 _LT_EOF
564   exit 0
565 fi
566
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571 if test -z "$lt_ECHO"; then
572   if test "X${echo_test_string+set}" != Xset; then
573     # find a string as large as possible, as long as the shell can cope with it
574     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578       then
579         break
580       fi
581     done
582   fi
583
584   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586      test "X$echo_testing_string" = "X$echo_test_string"; then
587     :
588   else
589     # The Solaris, AIX, and Digital Unix default echo programs unquote
590     # backslashes.  This makes it impossible to quote backslashes using
591     #   echo "$something" | sed 's/\\/\\\\/g'
592     #
593     # So, first we look for a working echo in the user's PATH.
594
595     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596     for dir in $PATH /usr/ucb; do
597       IFS="$lt_save_ifs"
598       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601          test "X$echo_testing_string" = "X$echo_test_string"; then
602         ECHO="$dir/echo"
603         break
604       fi
605     done
606     IFS="$lt_save_ifs"
607
608     if test "X$ECHO" = Xecho; then
609       # We didn't find a better echo, so look for alternatives.
610       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612          test "X$echo_testing_string" = "X$echo_test_string"; then
613         # This shell has a builtin print -r that does the trick.
614         ECHO='print -r'
615       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616            test "X$CONFIG_SHELL" != X/bin/ksh; then
617         # If we have ksh, try running configure again with it.
618         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619         export ORIGINAL_CONFIG_SHELL
620         CONFIG_SHELL=/bin/ksh
621         export CONFIG_SHELL
622         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623       else
624         # Try using printf.
625         ECHO='printf %s\n'
626         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628            test "X$echo_testing_string" = "X$echo_test_string"; then
629           # Cool, printf works
630           :
631         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632              test "X$echo_testing_string" = 'X\t' &&
633              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634              test "X$echo_testing_string" = "X$echo_test_string"; then
635           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636           export CONFIG_SHELL
637           SHELL="$CONFIG_SHELL"
638           export SHELL
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641              test "X$echo_testing_string" = 'X\t' &&
642              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643              test "X$echo_testing_string" = "X$echo_test_string"; then
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         else
646           # maybe with a smaller string...
647           prev=:
648
649           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651             then
652               break
653             fi
654             prev="$cmd"
655           done
656
657           if test "$prev" != 'sed 50q "$0"'; then
658             echo_test_string=`eval $prev`
659             export echo_test_string
660             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661           else
662             # Oops.  We lost completely, so just stick with echo.
663             ECHO=echo
664           fi
665         fi
666       fi
667     fi
668   fi
669 fi
670
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 fi
677
678
679
680
681 lt_ltdl_dir='ltdl'
682
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
684
685 test -n "$DJDIR" || exec 7<&0 </dev/null
686 exec 6>&1
687
688 # Name of the host.
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
693 #
694 # Initializations.
695 #
696 ac_default_prefix=/usr/local
697 ac_clean_files=
698 ac_config_libobj_dir=.
699 LIBOBJS=
700 cross_compiling=no
701 subdirs=
702 MFLAGS=
703 MAKEFLAGS=
704
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.6.1'
709 PACKAGE_STRING='ImageMagick 6.6.1'
710 PACKAGE_BUGREPORT='http://www.imagemagick.org'
711 PACKAGE_URL=''
712
713 ac_unique_file="magick/MagickCore.h"
714 ac_config_libobj_dir=ltdl
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='ltdl_LTLIBOBJS
753 ltdl_LIBOBJS
754 am__EXEEXT_FALSE
755 am__EXEEXT_TRUE
756 LTLIBOBJS
757 MAGICK_LIBS
758 MAGICK_LDFLAGS
759 MAGICK_PCFLAGS
760 MAGICK_CPPFLAGS
761 MAGICK_CXXFLAGS
762 MAGICK_CFLAGS
763 MAGICK_DEP_LIBS
764 MAGICK_LTDLDEPS
765 MAGICK_LIBLTDL
766 OSX_GCOV_LDFLAG
767 DELEGATES
768 MAGICKCORE_PATH
769 PERL_SUPPORTS_DESTDIR
770 WITH_PERL_DYNAMIC_FALSE
771 WITH_PERL_DYNAMIC_TRUE
772 WITH_PERL_STATIC_FALSE
773 WITH_PERL_STATIC_TRUE
774 WITH_PERL_FALSE
775 WITH_PERL_TRUE
776 GSVersion
777 GSPSDevice
778 GSPDFDevice
779 GSMonoDevice
780 GSEPSDevice
781 GSColorDevice
782 GSCMYKDevice
783 GSAlphaDevice
784 XPSVersion
785 XPSCMYKDevice
786 XPSColorDevice
787 XPSMonoDevice
788 PCLVersion
789 PCLCMYKDevice
790 PCLColorDevice
791 PCLMonoDevice
792 ZIP_DELEGATE_FALSE
793 ZIP_DELEGATE_TRUE
794 ZIP
795 P7ZIP_DELEGATE_FALSE
796 P7ZIP_DELEGATE_TRUE
797 P7ZIP
798 RPM_DELEGATE_FALSE
799 RPM_DELEGATE_TRUE
800 RPM
801 PERL
802 TAR
803 ShowImageDelegate
804 type_include_files
805 ghostscript_font_dir
806 windows_font_dir
807 dejavu_font_dir
808 PrintDelegate
809 ZipDelegate
810 XPSDelegate
811 WWWDecodeDelegate
812 WMFDecodeDelegate
813 TXTDelegate
814 SCANDecodeDelegate
815 RSVGDecodeDelegate
816 RMDelegate
817 RLEEncodeDelegate
818 PSDelegate
819 POVDelegate
820 PGPDecodeDelegate
821 PCLDelegate
822 MVDelegate
823 MPEGEncodeDelegate
824 MPEGDecodeDelegate
825 MANDelegate
826 LaunchDelegate
827 LZWEncodeDelegate
828 LZWDecodeDelegate
829 LPRDelegate
830 LPDelegate
831 ILBMEncodeDelegate
832 ILBMDecodeDelegate
833 HTMLDecodeDelegate
834 HPGLDecodeDelegate
835 HDRDecodeDelegate
836 GnuplotDecodeDelegate
837 MogrifyDelegate
838 DisplayDelegate
839 ConvertDelegate
840 FIGDecodeDelegate
841 EditorDelegate
842 EchoDelegate
843 DVIDecodeDelegate
844 GVCDecodeDelegate
845 DNGDecodeDelegate
846 CatDelegate
847 CGMDecodeDelegate
848 BrowseDelegate
849 BZIPDelegate
850 BlenderDecodeDelegate
851 AVIDecodeDelegate
852 AutotraceDecodeDelegate
853 SHARE_CONFIGURE_PATH
854 SHARE_PATH
855 DOCUMENTATION_PATH
856 FILTER_PATH
857 CODER_PATH
858 CONFIGURE_PATH
859 LIBRARY_PATH
860 EXECUTABLE_PATH
861 PERLMAINCC
862 XML_LIBS
863 XML_DELEGATE_FALSE
864 XML_DELEGATE_TRUE
865 xml2_config
866 WMF_LIBS
867 WMF_DELEGATE_FALSE
868 WMF_DELEGATE_TRUE
869 TIFF_LIBS
870 TIFF_DELEGATE_FALSE
871 TIFF_DELEGATE_TRUE
872 CAIRO_DELEGATE_FALSE
873 CAIRO_DELEGATE_TRUE
874 RSVG_DELEGATE_FALSE
875 RSVG_DELEGATE_TRUE
876 CAIRO_SVG_LIBS
877 CAIRO_SVG_CFLAGS
878 RSVG_LIBS
879 RSVG_CFLAGS
880 PNG_LIBS
881 PNG_DELEGATE_FALSE
882 PNG_DELEGATE_TRUE
883 OPENEXR_DELEGATE_FALSE
884 OPENEXR_DELEGATE_TRUE
885 OPENEXR_LIBS
886 OPENEXR_CFLAGS
887 LQR_DELEGATE_FALSE
888 LQR_DELEGATE_TRUE
889 LQR_LIBS
890 LQR_CFLAGS
891 LCMS_LIBS
892 LCMS_DELEGATE_FALSE
893 LCMS_DELEGATE_TRUE
894 JP2_LIBS
895 JP2_DELEGATE_FALSE
896 JP2_DELEGATE_TRUE
897 JPEG_LIBS
898 JPEG_DELEGATE_FALSE
899 JPEG_DELEGATE_TRUE
900 JBIG_LIBS
901 JBIG_DELEGATE_FALSE
902 JBIG_DELEGATE_TRUE
903 GVC_DELEGATE_FALSE
904 GVC_DELEGATE_TRUE
905 GVC_LIBS
906 GVC_CFLAGS
907 GS_LIBS
908 GS_DELEGATE_FALSE
909 GS_DELEGATE_TRUE
910 FREETYPE_LIBS
911 FREETYPE_DELEGATE_FALSE
912 FREETYPE_DELEGATE_TRUE
913 freetype_config
914 FONTCONFIG_DELEGATE_FALSE
915 FONTCONFIG_DELEGATE_TRUE
916 FONTCONFIG_LIBS
917 FONTCONFIG_CFLAGS
918 FPX_LIBS
919 FPX_DELEGATE_FALSE
920 FPX_DELEGATE_TRUE
921 FFTW_LIBS
922 FFTW_DELEGATE_FALSE
923 FFTW_DELEGATE_TRUE
924 DJVU_LIBS
925 DJVU_DELEGATE_FALSE
926 DJVU_DELEGATE_TRUE
927 DPS_LIBS
928 DPS_DELEGATE_FALSE
929 DPS_DELEGATE_TRUE
930 AUTOTRACE_DELEGATE_FALSE
931 AUTOTRACE_DELEGATE_TRUE
932 AUTOTRACE_LIBS
933 AUTOTRACE_CFLAGS
934 LIB_DL
935 ZLIB_LIBS
936 ZLIB_DELEGATE_FALSE
937 ZLIB_DELEGATE_TRUE
938 XEXT_LIBS
939 X11_LIBS
940 X11_DELEGATE_FALSE
941 X11_DELEGATE_TRUE
942 X_EXTRA_LIBS
943 X_LIBS
944 X_PRE_LIBS
945 X_CFLAGS
946 XMKMF
947 BZLIB_LIBS
948 BZLIB_DELEGATE_FALSE
949 BZLIB_DELEGATE_TRUE
950 CCMALLOCDelegate
951 UMEM_LIBS
952 HasUMEM_FALSE
953 HasUMEM_TRUE
954 THREAD_LIBS
955 GOMP_LIBS
956 WITH_MAGICK_PLUS_PLUS_FALSE
957 WITH_MAGICK_PLUS_PLUS_TRUE
958 OPENMP_CXXFLAGS
959 MATH_LIBS
960 POW_LIB
961 LIBOBJS
962 UINTPTR_T
963 UINTMAX_T
964 UINT64_T
965 INT64_T
966 UINT32_T
967 INT32_T
968 UINT16_T
969 INT16_T
970 UINT8_T
971 INT8_T
972 LIBRARY_EXTRA_CPPFLAGS
973 MODULE_EXTRA_CPPFLAGS
974 LIBSTDCLDFLAGS
975 PERL_MAKE_OPTIONS
976 QUANTUM_DEPTH
977 MAINT
978 MAINTAINER_MODE_FALSE
979 MAINTAINER_MODE_TRUE
980 MAGICK_HDRI
981 DLLDFLAGS
982 WITH_LTDL_FALSE
983 WITH_LTDL_TRUE
984 WITH_MODULES_FALSE
985 WITH_MODULES_TRUE
986 WITH_SHARED_LIBS_FALSE
987 WITH_SHARED_LIBS_TRUE
988 LTDLOPEN
989 LT_CONFIG_H
990 CONVENIENCE_LTDL_FALSE
991 CONVENIENCE_LTDL_TRUE
992 INSTALL_LTDL_FALSE
993 INSTALL_LTDL_TRUE
994 ARGZ_H
995 sys_symbol_underscore
996 LIBADD_DL
997 LT_DLPREOPEN
998 LIBADD_DLD_LINK
999 LIBADD_SHL_LOAD
1000 LIBADD_DLOPEN
1001 LT_DLLOADERS
1002 INCLTDL
1003 LTDLINCL
1004 LTDLDEPS
1005 LIBLTDL
1006 LIBTOOL_DEPS
1007 CXXCPP
1008 OTOOL64
1009 OTOOL
1010 LIPO
1011 NMEDIT
1012 DSYMUTIL
1013 lt_ECHO
1014 RANLIB
1015 AR
1016 NM
1017 ac_ct_DUMPBIN
1018 DUMPBIN
1019 LIBTOOL
1020 OBJDUMP
1021 DLLTOOL
1022 AS
1023 LFS_CPPFLAGS
1024 CL_LIBS
1025 CL_CFLAGS
1026 OPENMP_CFLAGS
1027 PTHREAD_CFLAGS
1028 PTHREAD_LIBS
1029 PTHREAD_CC
1030 acx_pthread_config
1031 WinPathScript
1032 USING_CL_FALSE
1033 USING_CL_TRUE
1034 CYGWIN_BUILD_FALSE
1035 CYGWIN_BUILD_TRUE
1036 WIN32_NATIVE_BUILD_FALSE
1037 WIN32_NATIVE_BUILD_TRUE
1038 WINGDI32_DELEGATE_FALSE
1039 WINGDI32_DELEGATE_TRUE
1040 GDI32_LIBS
1041 PKG_CONFIG
1042 LN_S
1043 LD
1044 FGREP
1045 SED
1046 am__fastdepCXX_FALSE
1047 am__fastdepCXX_TRUE
1048 CXXDEPMODE
1049 ac_ct_CXX
1050 CXXFLAGS
1051 CXX
1052 EGREP
1053 GREP
1054 CPP
1055 am__fastdepCC_FALSE
1056 am__fastdepCC_TRUE
1057 CCDEPMODE
1058 AMDEPBACKSLASH
1059 AMDEP_FALSE
1060 AMDEP_TRUE
1061 am__quote
1062 am__include
1063 DEPDIR
1064 OBJEXT
1065 EXEEXT
1066 ac_ct_CC
1067 CPPFLAGS
1068 LDFLAGS
1069 CFLAGS
1070 CC
1071 DIRSEP
1072 MAGICK_FILTER_MODULE_PATH
1073 MAGICK_CONFIGURE_BUILD_PATH
1074 MAGICK_CONFIGURE_SRC_PATH
1075 MAGICK_CODER_MODULE_PATH
1076 MAN_DIR
1077 INFO_DIR
1078 PERSISTINCLUDE_DIR
1079 INCLUDE_DIR
1080 LIB_DIR
1081 LOCALSTATE_DIR
1082 SHAREDSTATE_DIR
1083 SYSCONF_DIR
1084 DATA_DIR
1085 LIBEXEC_DIR
1086 SBIN_DIR
1087 BIN_DIR
1088 EXEC_PREFIX_DIR
1089 PREFIX_DIR
1090 CONFIG_STATUS_DEPENDENCIES
1091 MAGICK_LIB_VERSION_NUMBER
1092 MAGICK_LIB_VERSION_TEXT
1093 MAGICK_LIB_VERSION
1094 AM_BACKSLASH
1095 AM_DEFAULT_VERBOSITY
1096 am__untar
1097 am__tar
1098 AMTAR
1099 am__leading_dot
1100 SET_MAKE
1101 AWK
1102 mkdir_p
1103 MKDIR_P
1104 INSTALL_STRIP_PROGRAM
1105 STRIP
1106 install_sh
1107 MAKEINFO
1108 AUTOHEADER
1109 AUTOMAKE
1110 AUTOCONF
1111 ACLOCAL
1112 VERSION
1113 PACKAGE
1114 CYGPATH_W
1115 am__isrc
1116 INSTALL_DATA
1117 INSTALL_SCRIPT
1118 INSTALL_PROGRAM
1119 PACKAGE_VERSION_ADDENDUM
1120 PACKAGE_RELEASE_DATE
1121 PACKAGE_LIB_VERSION_NUMBER
1122 PACKAGE_LIB_VERSION
1123 PACKAGE_CHANGE_DATE
1124 PACKAGE_RELEASE
1125 MAGICK_LIBRARY_VERSION_INFO
1126 MAGICK_LIBRARY_CURRENT_MIN
1127 MAGICK_LIBRARY_AGE
1128 MAGICK_LIBRARY_REVISION
1129 MAGICK_LIBRARY_CURRENT
1130 MAGICK_TARGET_OS
1131 MAGICK_TARGET_VENDOR
1132 MAGICK_TARGET_CPU
1133 target_os
1134 target_vendor
1135 target_cpu
1136 target
1137 host_os
1138 host_vendor
1139 host_cpu
1140 host
1141 build_os
1142 build_vendor
1143 build_cpu
1144 build
1145 CONFIGURE_ARGS
1146 DISTCHECK_CONFIG_FLAGS
1147 target_alias
1148 host_alias
1149 build_alias
1150 LIBS
1151 ECHO_T
1152 ECHO_N
1153 ECHO_C
1154 DEFS
1155 mandir
1156 localedir
1157 libdir
1158 psdir
1159 pdfdir
1160 dvidir
1161 htmldir
1162 infodir
1163 docdir
1164 oldincludedir
1165 includedir
1166 localstatedir
1167 sharedstatedir
1168 sysconfdir
1169 datadir
1170 datarootdir
1171 libexecdir
1172 sbindir
1173 bindir
1174 program_transform_name
1175 prefix
1176 exec_prefix
1177 PACKAGE_URL
1178 PACKAGE_BUGREPORT
1179 PACKAGE_STRING
1180 PACKAGE_VERSION
1181 PACKAGE_TARNAME
1182 PACKAGE_NAME
1183 PATH_SEPARATOR
1184 SHELL'
1185 ac_subst_files=''
1186 ac_user_opts='
1187 enable_option_checking
1188 enable_silent_rules
1189 enable_dependency_tracking
1190 with_gnu_ld
1191 with_maximum_compile_warnings
1192 with_dmalloc
1193 enable_bounds_checking
1194 enable_osx_universal_binary
1195 with_threads
1196 enable_openmp
1197 enable_opencl
1198 enable_largefile
1199 enable_shared
1200 enable_static
1201 with_pic
1202 enable_fast_install
1203 enable_libtool_lock
1204 with_included_ltdl
1205 with_ltdl_include
1206 with_ltdl_lib
1207 enable_ltdl_install
1208 with_modules
1209 enable_delegate_build
1210 enable_deprecated
1211 enable_installed
1212 enable_cipher
1213 enable_embeddable
1214 enable_hdri
1215 enable_assert
1216 enable_maintainer_mode
1217 enable_ccmalloc
1218 enable_efence
1219 enable_prof
1220 enable_gprof
1221 enable_gcov
1222 with_method_prefix
1223 with_quantum_depth
1224 with_cache
1225 with_frozenpaths
1226 with_magick_plus_plus
1227 with_perl
1228 with_perl_options
1229 with_umem
1230 with_libstdc
1231 with_bzlib
1232 with_x
1233 with_zlib
1234 with_autotrace
1235 with_dps
1236 with_djvu
1237 with_dejavu_font_dir
1238 with_fftw
1239 with_fpx
1240 with_fontconfig
1241 with_freetype
1242 with_gslib
1243 with_fontpath
1244 with_gs_font_dir
1245 with_gvc
1246 with_jbig
1247 with_jpeg
1248 with_jp2
1249 with_lcms
1250 with_lqr
1251 with_openexr
1252 with_png
1253 with_rsvg
1254 with_tiff
1255 with_windows_font_dir
1256 with_wmf
1257 with_xml
1258 '
1259       ac_precious_vars='build_alias
1260 host_alias
1261 target_alias
1262 CC
1263 CFLAGS
1264 LDFLAGS
1265 LIBS
1266 CPPFLAGS
1267 CPP
1268 CXX
1269 CXXFLAGS
1270 CCC
1271 PKG_CONFIG
1272 CXXCPP
1273 XMKMF
1274 AUTOTRACE_CFLAGS
1275 AUTOTRACE_LIBS
1276 FONTCONFIG_CFLAGS
1277 FONTCONFIG_LIBS
1278 GVC_CFLAGS
1279 GVC_LIBS
1280 LQR_CFLAGS
1281 LQR_LIBS
1282 OPENEXR_CFLAGS
1283 OPENEXR_LIBS
1284 RSVG_CFLAGS
1285 RSVG_LIBS
1286 CAIRO_SVG_CFLAGS
1287 CAIRO_SVG_LIBS'
1288
1289
1290 # Initialize some variables set by options.
1291 ac_init_help=
1292 ac_init_version=false
1293 ac_unrecognized_opts=
1294 ac_unrecognized_sep=
1295 # The variables have the same names as the options, with
1296 # dashes changed to underlines.
1297 cache_file=/dev/null
1298 exec_prefix=NONE
1299 no_create=
1300 no_recursion=
1301 prefix=NONE
1302 program_prefix=NONE
1303 program_suffix=NONE
1304 program_transform_name=s,x,x,
1305 silent=
1306 site=
1307 srcdir=
1308 verbose=
1309 x_includes=NONE
1310 x_libraries=NONE
1311
1312 # Installation directory options.
1313 # These are left unexpanded so users can "make install exec_prefix=/foo"
1314 # and all the variables that are supposed to be based on exec_prefix
1315 # by default will actually change.
1316 # Use braces instead of parens because sh, perl, etc. also accept them.
1317 # (The list follows the same order as the GNU Coding Standards.)
1318 bindir='${exec_prefix}/bin'
1319 sbindir='${exec_prefix}/sbin'
1320 libexecdir='${exec_prefix}/libexec'
1321 datarootdir='${prefix}/share'
1322 datadir='${datarootdir}'
1323 sysconfdir='${prefix}/etc'
1324 sharedstatedir='${prefix}/com'
1325 localstatedir='${prefix}/var'
1326 includedir='${prefix}/include'
1327 oldincludedir='/usr/include'
1328 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1329 infodir='${datarootdir}/info'
1330 htmldir='${docdir}'
1331 dvidir='${docdir}'
1332 pdfdir='${docdir}'
1333 psdir='${docdir}'
1334 libdir='${exec_prefix}/lib'
1335 localedir='${datarootdir}/locale'
1336 mandir='${datarootdir}/man'
1337
1338 ac_prev=
1339 ac_dashdash=
1340 for ac_option
1341 do
1342   # If the previous option needs an argument, assign it.
1343   if test -n "$ac_prev"; then
1344     eval $ac_prev=\$ac_option
1345     ac_prev=
1346     continue
1347   fi
1348
1349   case $ac_option in
1350   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351   *)    ac_optarg=yes ;;
1352   esac
1353
1354   # Accept the important Cygnus configure options, so we can diagnose typos.
1355
1356   case $ac_dashdash$ac_option in
1357   --)
1358     ac_dashdash=yes ;;
1359
1360   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1361     ac_prev=bindir ;;
1362   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1363     bindir=$ac_optarg ;;
1364
1365   -build | --build | --buil | --bui | --bu)
1366     ac_prev=build_alias ;;
1367   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1368     build_alias=$ac_optarg ;;
1369
1370   -cache-file | --cache-file | --cache-fil | --cache-fi \
1371   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1372     ac_prev=cache_file ;;
1373   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1374   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1375     cache_file=$ac_optarg ;;
1376
1377   --config-cache | -C)
1378     cache_file=config.cache ;;
1379
1380   -datadir | --datadir | --datadi | --datad)
1381     ac_prev=datadir ;;
1382   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1383     datadir=$ac_optarg ;;
1384
1385   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1386   | --dataroo | --dataro | --datar)
1387     ac_prev=datarootdir ;;
1388   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1389   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1390     datarootdir=$ac_optarg ;;
1391
1392   -disable-* | --disable-*)
1393     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1394     # Reject names that are not valid shell variable names.
1395     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1396       as_fn_error "invalid feature name: $ac_useropt"
1397     ac_useropt_orig=$ac_useropt
1398     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1399     case $ac_user_opts in
1400       *"
1401 "enable_$ac_useropt"
1402 "*) ;;
1403       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1404          ac_unrecognized_sep=', ';;
1405     esac
1406     eval enable_$ac_useropt=no ;;
1407
1408   -docdir | --docdir | --docdi | --doc | --do)
1409     ac_prev=docdir ;;
1410   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1411     docdir=$ac_optarg ;;
1412
1413   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1414     ac_prev=dvidir ;;
1415   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1416     dvidir=$ac_optarg ;;
1417
1418   -enable-* | --enable-*)
1419     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1422       as_fn_error "invalid feature name: $ac_useropt"
1423     ac_useropt_orig=$ac_useropt
1424     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1425     case $ac_user_opts in
1426       *"
1427 "enable_$ac_useropt"
1428 "*) ;;
1429       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1430          ac_unrecognized_sep=', ';;
1431     esac
1432     eval enable_$ac_useropt=\$ac_optarg ;;
1433
1434   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1435   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1436   | --exec | --exe | --ex)
1437     ac_prev=exec_prefix ;;
1438   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1439   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1440   | --exec=* | --exe=* | --ex=*)
1441     exec_prefix=$ac_optarg ;;
1442
1443   -gas | --gas | --ga | --g)
1444     # Obsolete; use --with-gas.
1445     with_gas=yes ;;
1446
1447   -help | --help | --hel | --he | -h)
1448     ac_init_help=long ;;
1449   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1450     ac_init_help=recursive ;;
1451   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1452     ac_init_help=short ;;
1453
1454   -host | --host | --hos | --ho)
1455     ac_prev=host_alias ;;
1456   -host=* | --host=* | --hos=* | --ho=*)
1457     host_alias=$ac_optarg ;;
1458
1459   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1460     ac_prev=htmldir ;;
1461   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1462   | --ht=*)
1463     htmldir=$ac_optarg ;;
1464
1465   -includedir | --includedir | --includedi | --included | --include \
1466   | --includ | --inclu | --incl | --inc)
1467     ac_prev=includedir ;;
1468   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1469   | --includ=* | --inclu=* | --incl=* | --inc=*)
1470     includedir=$ac_optarg ;;
1471
1472   -infodir | --infodir | --infodi | --infod | --info | --inf)
1473     ac_prev=infodir ;;
1474   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1475     infodir=$ac_optarg ;;
1476
1477   -libdir | --libdir | --libdi | --libd)
1478     ac_prev=libdir ;;
1479   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1480     libdir=$ac_optarg ;;
1481
1482   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1483   | --libexe | --libex | --libe)
1484     ac_prev=libexecdir ;;
1485   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1486   | --libexe=* | --libex=* | --libe=*)
1487     libexecdir=$ac_optarg ;;
1488
1489   -localedir | --localedir | --localedi | --localed | --locale)
1490     ac_prev=localedir ;;
1491   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1492     localedir=$ac_optarg ;;
1493
1494   -localstatedir | --localstatedir | --localstatedi | --localstated \
1495   | --localstate | --localstat | --localsta | --localst | --locals)
1496     ac_prev=localstatedir ;;
1497   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1498   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1499     localstatedir=$ac_optarg ;;
1500
1501   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1502     ac_prev=mandir ;;
1503   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1504     mandir=$ac_optarg ;;
1505
1506   -nfp | --nfp | --nf)
1507     # Obsolete; use --without-fp.
1508     with_fp=no ;;
1509
1510   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1511   | --no-cr | --no-c | -n)
1512     no_create=yes ;;
1513
1514   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1515   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1516     no_recursion=yes ;;
1517
1518   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1519   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1520   | --oldin | --oldi | --old | --ol | --o)
1521     ac_prev=oldincludedir ;;
1522   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1523   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1524   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1525     oldincludedir=$ac_optarg ;;
1526
1527   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1528     ac_prev=prefix ;;
1529   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1530     prefix=$ac_optarg ;;
1531
1532   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1533   | --program-pre | --program-pr | --program-p)
1534     ac_prev=program_prefix ;;
1535   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1536   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1537     program_prefix=$ac_optarg ;;
1538
1539   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1540   | --program-suf | --program-su | --program-s)
1541     ac_prev=program_suffix ;;
1542   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1543   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1544     program_suffix=$ac_optarg ;;
1545
1546   -program-transform-name | --program-transform-name \
1547   | --program-transform-nam | --program-transform-na \
1548   | --program-transform-n | --program-transform- \
1549   | --program-transform | --program-transfor \
1550   | --program-transfo | --program-transf \
1551   | --program-trans | --program-tran \
1552   | --progr-tra | --program-tr | --program-t)
1553     ac_prev=program_transform_name ;;
1554   -program-transform-name=* | --program-transform-name=* \
1555   | --program-transform-nam=* | --program-transform-na=* \
1556   | --program-transform-n=* | --program-transform-=* \
1557   | --program-transform=* | --program-transfor=* \
1558   | --program-transfo=* | --program-transf=* \
1559   | --program-trans=* | --program-tran=* \
1560   | --progr-tra=* | --program-tr=* | --program-t=*)
1561     program_transform_name=$ac_optarg ;;
1562
1563   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1564     ac_prev=pdfdir ;;
1565   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1566     pdfdir=$ac_optarg ;;
1567
1568   -psdir | --psdir | --psdi | --psd | --ps)
1569     ac_prev=psdir ;;
1570   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1571     psdir=$ac_optarg ;;
1572
1573   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1574   | -silent | --silent | --silen | --sile | --sil)
1575     silent=yes ;;
1576
1577   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1578     ac_prev=sbindir ;;
1579   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1580   | --sbi=* | --sb=*)
1581     sbindir=$ac_optarg ;;
1582
1583   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1584   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1585   | --sharedst | --shareds | --shared | --share | --shar \
1586   | --sha | --sh)
1587     ac_prev=sharedstatedir ;;
1588   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1589   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1590   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1591   | --sha=* | --sh=*)
1592     sharedstatedir=$ac_optarg ;;
1593
1594   -site | --site | --sit)
1595     ac_prev=site ;;
1596   -site=* | --site=* | --sit=*)
1597     site=$ac_optarg ;;
1598
1599   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1600     ac_prev=srcdir ;;
1601   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1602     srcdir=$ac_optarg ;;
1603
1604   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1605   | --syscon | --sysco | --sysc | --sys | --sy)
1606     ac_prev=sysconfdir ;;
1607   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1608   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1609     sysconfdir=$ac_optarg ;;
1610
1611   -target | --target | --targe | --targ | --tar | --ta | --t)
1612     ac_prev=target_alias ;;
1613   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1614     target_alias=$ac_optarg ;;
1615
1616   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1617     verbose=yes ;;
1618
1619   -version | --version | --versio | --versi | --vers | -V)
1620     ac_init_version=: ;;
1621
1622   -with-* | --with-*)
1623     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1624     # Reject names that are not valid shell variable names.
1625     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1626       as_fn_error "invalid package name: $ac_useropt"
1627     ac_useropt_orig=$ac_useropt
1628     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1629     case $ac_user_opts in
1630       *"
1631 "with_$ac_useropt"
1632 "*) ;;
1633       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1634          ac_unrecognized_sep=', ';;
1635     esac
1636     eval with_$ac_useropt=\$ac_optarg ;;
1637
1638   -without-* | --without-*)
1639     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1640     # Reject names that are not valid shell variable names.
1641     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1642       as_fn_error "invalid package name: $ac_useropt"
1643     ac_useropt_orig=$ac_useropt
1644     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1645     case $ac_user_opts in
1646       *"
1647 "with_$ac_useropt"
1648 "*) ;;
1649       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1650          ac_unrecognized_sep=', ';;
1651     esac
1652     eval with_$ac_useropt=no ;;
1653
1654   --x)
1655     # Obsolete; use --with-x.
1656     with_x=yes ;;
1657
1658   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1659   | --x-incl | --x-inc | --x-in | --x-i)
1660     ac_prev=x_includes ;;
1661   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1662   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1663     x_includes=$ac_optarg ;;
1664
1665   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1666   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1667     ac_prev=x_libraries ;;
1668   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1669   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1670     x_libraries=$ac_optarg ;;
1671
1672   -*) as_fn_error "unrecognized option: \`$ac_option'
1673 Try \`$0 --help' for more information."
1674     ;;
1675
1676   *=*)
1677     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1678     # Reject names that are not valid shell variable names.
1679     case $ac_envvar in #(
1680       '' | [0-9]* | *[!_$as_cr_alnum]* )
1681       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1682     esac
1683     eval $ac_envvar=\$ac_optarg
1684     export $ac_envvar ;;
1685
1686   *)
1687     # FIXME: should be removed in autoconf 3.0.
1688     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1689     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1690       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1691     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1692     ;;
1693
1694   esac
1695 done
1696
1697 if test -n "$ac_prev"; then
1698   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1699   as_fn_error "missing argument to $ac_option"
1700 fi
1701
1702 if test -n "$ac_unrecognized_opts"; then
1703   case $enable_option_checking in
1704     no) ;;
1705     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1706     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1707   esac
1708 fi
1709
1710 # Check all directory arguments for consistency.
1711 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1712                 datadir sysconfdir sharedstatedir localstatedir includedir \
1713                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1714                 libdir localedir mandir
1715 do
1716   eval ac_val=\$$ac_var
1717   # Remove trailing slashes.
1718   case $ac_val in
1719     */ )
1720       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1721       eval $ac_var=\$ac_val;;
1722   esac
1723   # Be sure to have absolute directory names.
1724   case $ac_val in
1725     [\\/$]* | ?:[\\/]* )  continue;;
1726     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1727   esac
1728   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1729 done
1730
1731 # There might be people who depend on the old broken behavior: `$host'
1732 # used to hold the argument of --host etc.
1733 # FIXME: To remove some day.
1734 build=$build_alias
1735 host=$host_alias
1736 target=$target_alias
1737
1738 # FIXME: To remove some day.
1739 if test "x$host_alias" != x; then
1740   if test "x$build_alias" = x; then
1741     cross_compiling=maybe
1742     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1743     If a cross compiler is detected then cross compile mode will be used." >&2
1744   elif test "x$build_alias" != "x$host_alias"; then
1745     cross_compiling=yes
1746   fi
1747 fi
1748
1749 ac_tool_prefix=
1750 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1751
1752 test "$silent" = yes && exec 6>/dev/null
1753
1754
1755 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1756 ac_ls_di=`ls -di .` &&
1757 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1758   as_fn_error "working directory cannot be determined"
1759 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1760   as_fn_error "pwd does not report name of working directory"
1761
1762
1763 # Find the source files, if location was not specified.
1764 if test -z "$srcdir"; then
1765   ac_srcdir_defaulted=yes
1766   # Try the directory containing this script, then the parent directory.
1767   ac_confdir=`$as_dirname -- "$as_myself" ||
1768 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1769          X"$as_myself" : 'X\(//\)[^/]' \| \
1770          X"$as_myself" : 'X\(//\)$' \| \
1771          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1772 $as_echo X"$as_myself" |
1773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1774             s//\1/
1775             q
1776           }
1777           /^X\(\/\/\)[^/].*/{
1778             s//\1/
1779             q
1780           }
1781           /^X\(\/\/\)$/{
1782             s//\1/
1783             q
1784           }
1785           /^X\(\/\).*/{
1786             s//\1/
1787             q
1788           }
1789           s/.*/./; q'`
1790   srcdir=$ac_confdir
1791   if test ! -r "$srcdir/$ac_unique_file"; then
1792     srcdir=..
1793   fi
1794 else
1795   ac_srcdir_defaulted=no
1796 fi
1797 if test ! -r "$srcdir/$ac_unique_file"; then
1798   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1799   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1800 fi
1801 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1802 ac_abs_confdir=`(
1803         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1804         pwd)`
1805 # When building in place, set srcdir=.
1806 if test "$ac_abs_confdir" = "$ac_pwd"; then
1807   srcdir=.
1808 fi
1809 # Remove unnecessary trailing slashes from srcdir.
1810 # Double slashes in file names in object file debugging info
1811 # mess up M-x gdb in Emacs.
1812 case $srcdir in
1813 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1814 esac
1815 for ac_var in $ac_precious_vars; do
1816   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1817   eval ac_env_${ac_var}_value=\$${ac_var}
1818   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1819   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1820 done
1821
1822 #
1823 # Report the --help message.
1824 #
1825 if test "$ac_init_help" = "long"; then
1826   # Omit some internal or obsolete options to make the list less imposing.
1827   # This message is too long to be a string in the A/UX 3.1 sh.
1828   cat <<_ACEOF
1829 \`configure' configures ImageMagick 6.6.1 to adapt to many kinds of systems.
1830
1831 Usage: $0 [OPTION]... [VAR=VALUE]...
1832
1833 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1834 VAR=VALUE.  See below for descriptions of some of the useful variables.
1835
1836 Defaults for the options are specified in brackets.
1837
1838 Configuration:
1839   -h, --help              display this help and exit
1840       --help=short        display options specific to this package
1841       --help=recursive    display the short help of all the included packages
1842   -V, --version           display version information and exit
1843   -q, --quiet, --silent   do not print \`checking...' messages
1844       --cache-file=FILE   cache test results in FILE [disabled]
1845   -C, --config-cache      alias for \`--cache-file=config.cache'
1846   -n, --no-create         do not create output files
1847       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1848
1849 Installation directories:
1850   --prefix=PREFIX         install architecture-independent files in PREFIX
1851                           [$ac_default_prefix]
1852   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1853                           [PREFIX]
1854
1855 By default, \`make install' will install all the files in
1856 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1857 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1858 for instance \`--prefix=\$HOME'.
1859
1860 For better control, use the options below.
1861
1862 Fine tuning of the installation directories:
1863   --bindir=DIR            user executables [EPREFIX/bin]
1864   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1865   --libexecdir=DIR        program executables [EPREFIX/libexec]
1866   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1867   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1868   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1869   --libdir=DIR            object code libraries [EPREFIX/lib]
1870   --includedir=DIR        C header files [PREFIX/include]
1871   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1872   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1873   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1874   --infodir=DIR           info documentation [DATAROOTDIR/info]
1875   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1876   --mandir=DIR            man documentation [DATAROOTDIR/man]
1877   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1878   --htmldir=DIR           html documentation [DOCDIR]
1879   --dvidir=DIR            dvi documentation [DOCDIR]
1880   --pdfdir=DIR            pdf documentation [DOCDIR]
1881   --psdir=DIR             ps documentation [DOCDIR]
1882 _ACEOF
1883
1884   cat <<\_ACEOF
1885
1886 Program names:
1887   --program-prefix=PREFIX            prepend PREFIX to installed program names
1888   --program-suffix=SUFFIX            append SUFFIX to installed program names
1889   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1890
1891 X features:
1892   --x-includes=DIR    X include files are in DIR
1893   --x-libraries=DIR   X library files are in DIR
1894
1895 System types:
1896   --build=BUILD     configure for building on BUILD [guessed]
1897   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1898   --target=TARGET   configure for building compilers for TARGET [HOST]
1899 _ACEOF
1900 fi
1901
1902 if test -n "$ac_init_help"; then
1903   case $ac_init_help in
1904      short | recursive ) echo "Configuration of ImageMagick 6.6.1:";;
1905    esac
1906   cat <<\_ACEOF
1907
1908 Optional Features:
1909   --disable-option-checking  ignore unrecognized --enable/--with options
1910   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1911   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1912   --enable-silent-rules          less verbose build output (undo: `make V=1')
1913   --disable-silent-rules         verbose build output (undo: `make V=0')
1914   --disable-dependency-tracking  speeds up one-time build
1915   --enable-dependency-tracking   do not reject slow dependency extractors
1916   --bounds-checking       enable run-time bounds-checking
1917   --enable-osx-universal-binary
1918                           build universal binary on OS X [[default=no]]
1919   --disable-openmp        do not use OpenMP
1920   --disable-opencl        do not use OpenCL
1921   --disable-largefile     omit support for large files
1922   --enable-shared[=PKGS]  build shared libraries [default=yes]
1923   --enable-static[=PKGS]  build static libraries [default=yes]
1924   --enable-fast-install[=PKGS]
1925                           optimize for fast installation [default=yes]
1926   --disable-libtool-lock  avoid locking (might break parallel builds)
1927   --enable-ltdl-install   install libltdl
1928   --enable-delegate-build look for delegate libraries in build directory
1929   --disable-deprecated    exclude deprecated methods in MagickCore and
1930                           MagickWand API's
1931   --disable-installed     Formally install ImageMagick under PREFIX
1932   --disable-cipher        disable enciphering and deciphering image pixels
1933   --enable-embeddable     enable self-contained, embeddable,
1934                           zero-configuration ImageMagick
1935   --enable-hdri           accurately represent the wide range of intensity
1936                           levels found in real scenes
1937   --disable-assert        disable assert() statements in build
1938   --enable-maintainer-mode  enable make rules and dependencies not useful
1939                           (and sometimes confusing) to the casual installer
1940   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1941   --enable-efence         enable 'efence' memory debug support
1942   --enable-prof           enable 'prof' profiling support
1943   --enable-gprof          enable 'gprof' profiling support
1944   --enable-gcov           enable 'gcov' profiling support
1945   --disable-assert        turn off assertions
1946
1947 Optional Packages:
1948   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1949   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1950   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1951   --without-maximum-compile-warnings
1952                           Disable maximum warning verbosity
1953   --with-dmalloc          use dmalloc, as in
1954                           http://www.dmalloc.com/dmalloc.tar.gz
1955   --without-threads       disable threads support
1956   --with-pic              try to use only PIC/non-PIC objects [default=use
1957                           both]
1958   --with-included-ltdl    use the GNU ltdl sources included here
1959   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1960   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1961   --with-modules          enable building dynamically loadable modules
1962   --with-method-prefix=PREFIX
1963                           prefix MagickCore API methods
1964   --with-quantum-depth=DEPTH
1965                           number of bits in a pixel quantum (default 16)
1966   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1967                           memory)
1968   --with-frozenpaths      freeze delegate paths
1969   --without-magick-plus-plus
1970                           disable build/install of Magick++
1971   --with-perl             enable build/install of PerlMagick
1972   --with-perl-options=OPTIONS
1973                           options to pass on command-line when generating
1974                           PerlMagick's build file
1975   --with-umem             enable umem memory allocation library support
1976   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1977   --without-bzlib         disable BZLIB support
1978   --with-x                use the X Window System
1979   --without-zlib          disable ZLIB support
1980   --with-autotrace        enable autotrace support
1981   --without-dps           disable Display Postscript support
1982   --without-djvu          disable DjVu support
1983   --with-dejavu-font-dir=DIR
1984                           DejaVu font directory
1985   --without-fftw          disable FFTW support
1986   --without-fpx           disable FlashPIX support
1987   --without-fontconfig    disable fontconfig support
1988   --without-freetype      disable Freetype support
1989   --without-gslib         enable Ghostscript library support
1990   --with-fontpath=DIR     prepend to default font search path
1991   --with-gs-font-dir=DIR  Ghostscript font directory
1992   --without-gvc           disable GVC support
1993   --without-jbig          disable JBIG support
1994   --without-jpeg          disable JPEG support
1995   --without-jp2           disable JPEG-2000 support
1996   --without-lcms          disable LCMS support
1997   --without-lqr           disable Liquid Rescale support
1998   --without-openexr       disable OpenEXR support
1999   --without-png           disable PNG support
2000   --without-rsvg          disable RSVG support
2001   --without-tiff          disable TIFF support
2002   --with-windows-font-dir=DIR
2003                           directory containing MS-Windows fonts
2004   --without-wmf           disable WMF support
2005   --without-xml           disable XML support
2006
2007 Some influential environment variables:
2008   CC          C compiler command
2009   CFLAGS      C compiler flags
2010   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2011               nonstandard directory <lib dir>
2012   LIBS        libraries to pass to the linker, e.g. -l<library>
2013   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2014               you have headers in a nonstandard directory <include dir>
2015   CPP         C preprocessor
2016   CXX         C++ compiler command
2017   CXXFLAGS    C++ compiler flags
2018   PKG_CONFIG  path to pkg-config utility
2019   CXXCPP      C++ preprocessor
2020   XMKMF       Path to xmkmf, Makefile generator for X Window System
2021   AUTOTRACE_CFLAGS
2022               C compiler flags for AUTOTRACE, overriding pkg-config
2023   AUTOTRACE_LIBS
2024               linker flags for AUTOTRACE, overriding pkg-config
2025   FONTCONFIG_CFLAGS
2026               C compiler flags for FONTCONFIG, overriding pkg-config
2027   FONTCONFIG_LIBS
2028               linker flags for FONTCONFIG, overriding pkg-config
2029   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2030   GVC_LIBS    linker flags for GVC, overriding pkg-config
2031   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2032   LQR_LIBS    linker flags for LQR, overriding pkg-config
2033   OPENEXR_CFLAGS
2034               C compiler flags for OPENEXR, overriding pkg-config
2035   OPENEXR_LIBS
2036               linker flags for OPENEXR, overriding pkg-config
2037   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2038   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2039   CAIRO_SVG_CFLAGS
2040               C compiler flags for CAIRO_SVG, overriding pkg-config
2041   CAIRO_SVG_LIBS
2042               linker flags for CAIRO_SVG, overriding pkg-config
2043
2044 Use these variables to override the choices made by `configure' or to help
2045 it to find libraries and programs with nonstandard names/locations.
2046
2047 Report bugs to <http://www.imagemagick.org>.
2048 _ACEOF
2049 ac_status=$?
2050 fi
2051
2052 if test "$ac_init_help" = "recursive"; then
2053   # If there are subdirs, report their specific --help.
2054   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2055     test -d "$ac_dir" ||
2056       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2057       continue
2058     ac_builddir=.
2059
2060 case "$ac_dir" in
2061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2062 *)
2063   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2064   # A ".." for each directory in $ac_dir_suffix.
2065   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2066   case $ac_top_builddir_sub in
2067   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2068   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2069   esac ;;
2070 esac
2071 ac_abs_top_builddir=$ac_pwd
2072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2073 # for backward compatibility:
2074 ac_top_builddir=$ac_top_build_prefix
2075
2076 case $srcdir in
2077   .)  # We are building in place.
2078     ac_srcdir=.
2079     ac_top_srcdir=$ac_top_builddir_sub
2080     ac_abs_top_srcdir=$ac_pwd ;;
2081   [\\/]* | ?:[\\/]* )  # Absolute name.
2082     ac_srcdir=$srcdir$ac_dir_suffix;
2083     ac_top_srcdir=$srcdir
2084     ac_abs_top_srcdir=$srcdir ;;
2085   *) # Relative name.
2086     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2087     ac_top_srcdir=$ac_top_build_prefix$srcdir
2088     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2089 esac
2090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2091
2092     cd "$ac_dir" || { ac_status=$?; continue; }
2093     # Check for guested configure.
2094     if test -f "$ac_srcdir/configure.gnu"; then
2095       echo &&
2096       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2097     elif test -f "$ac_srcdir/configure"; then
2098       echo &&
2099       $SHELL "$ac_srcdir/configure" --help=recursive
2100     else
2101       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2102     fi || ac_status=$?
2103     cd "$ac_pwd" || { ac_status=$?; break; }
2104   done
2105 fi
2106
2107 test -n "$ac_init_help" && exit $ac_status
2108 if $ac_init_version; then
2109   cat <<\_ACEOF
2110 ImageMagick configure 6.6.1
2111 generated by GNU Autoconf 2.65
2112
2113 Copyright (C) 2009 Free Software Foundation, Inc.
2114 This configure script is free software; the Free Software Foundation
2115 gives unlimited permission to copy, distribute and modify it.
2116 _ACEOF
2117   exit
2118 fi
2119
2120 ## ------------------------ ##
2121 ## Autoconf initialization. ##
2122 ## ------------------------ ##
2123
2124 # ac_fn_c_try_compile LINENO
2125 # --------------------------
2126 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2127 ac_fn_c_try_compile ()
2128 {
2129   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130   rm -f conftest.$ac_objext
2131   if { { ac_try="$ac_compile"
2132 case "(($ac_try" in
2133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134   *) ac_try_echo=$ac_try;;
2135 esac
2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2137 $as_echo "$ac_try_echo"; } >&5
2138   (eval "$ac_compile") 2>conftest.err
2139   ac_status=$?
2140   if test -s conftest.err; then
2141     grep -v '^ *+' conftest.err >conftest.er1
2142     cat conftest.er1 >&5
2143     mv -f conftest.er1 conftest.err
2144   fi
2145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2146   test $ac_status = 0; } && {
2147          test -z "$ac_c_werror_flag" ||
2148          test ! -s conftest.err
2149        } && test -s conftest.$ac_objext; then :
2150   ac_retval=0
2151 else
2152   $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2154
2155         ac_retval=1
2156 fi
2157   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158   as_fn_set_status $ac_retval
2159
2160 } # ac_fn_c_try_compile
2161
2162 # ac_fn_c_try_cpp LINENO
2163 # ----------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_c_try_cpp ()
2166 {
2167   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168   if { { ac_try="$ac_cpp conftest.$ac_ext"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } >/dev/null && {
2184          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2185          test ! -s conftest.err
2186        }; then :
2187   ac_retval=0
2188 else
2189   $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192     ac_retval=1
2193 fi
2194   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195   as_fn_set_status $ac_retval
2196
2197 } # ac_fn_c_try_cpp
2198
2199 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2200 # -------------------------------------------------------
2201 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2202 # the include files in INCLUDES and setting the cache variable VAR
2203 # accordingly.
2204 ac_fn_c_check_header_mongrel ()
2205 {
2206   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2209 $as_echo_n "checking for $2... " >&6; }
2210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211   $as_echo_n "(cached) " >&6
2212 fi
2213 eval ac_res=\$$3
2214                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 else
2217   # Is the header compilable?
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2219 $as_echo_n "checking $2 usability... " >&6; }
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h.  */
2222 $4
2223 #include <$2>
2224 _ACEOF
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226   ac_header_compiler=yes
2227 else
2228   ac_header_compiler=no
2229 fi
2230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2232 $as_echo "$ac_header_compiler" >&6; }
2233
2234 # Is the header present?
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2236 $as_echo_n "checking $2 presence... " >&6; }
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h.  */
2239 #include <$2>
2240 _ACEOF
2241 if ac_fn_c_try_cpp "$LINENO"; then :
2242   ac_header_preproc=yes
2243 else
2244   ac_header_preproc=no
2245 fi
2246 rm -f conftest.err conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2248 $as_echo "$ac_header_preproc" >&6; }
2249
2250 # So?  What about this header?
2251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2252   yes:no: )
2253     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2254 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2255     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2256 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2257     ;;
2258   no:yes:* )
2259     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2260 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2261     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2262 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2264 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2266 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2268 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2269 ( cat <<\_ASBOX
2270 ## ----------------------------------------- ##
2271 ## Report this to http://www.imagemagick.org ##
2272 ## ----------------------------------------- ##
2273 _ASBOX
2274      ) | sed "s/^/$as_me: WARNING:     /" >&2
2275     ;;
2276 esac
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2280   $as_echo_n "(cached) " >&6
2281 else
2282   eval "$3=\$ac_header_compiler"
2283 fi
2284 eval ac_res=\$$3
2285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 fi
2288   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289
2290 } # ac_fn_c_check_header_mongrel
2291
2292 # ac_fn_c_try_run LINENO
2293 # ----------------------
2294 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2295 # that executables *can* be run.
2296 ac_fn_c_try_run ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   if { { ac_try="$ac_link"
2300 case "(($ac_try" in
2301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302   *) ac_try_echo=$ac_try;;
2303 esac
2304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2305 $as_echo "$ac_try_echo"; } >&5
2306   (eval "$ac_link") 2>&5
2307   ac_status=$?
2308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2310   { { case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316   (eval "$ac_try") 2>&5
2317   ac_status=$?
2318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319   test $ac_status = 0; }; }; then :
2320   ac_retval=0
2321 else
2322   $as_echo "$as_me: program exited with status $ac_status" >&5
2323        $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326        ac_retval=$ac_status
2327 fi
2328   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2329   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330   as_fn_set_status $ac_retval
2331
2332 } # ac_fn_c_try_run
2333
2334 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2335 # -------------------------------------------------------
2336 # Tests whether HEADER exists and can be compiled using the include files in
2337 # INCLUDES, setting the cache variable VAR accordingly.
2338 ac_fn_c_check_header_compile ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h.  */
2348 $4
2349 #include <$2>
2350 _ACEOF
2351 if ac_fn_c_try_compile "$LINENO"; then :
2352   eval "$3=yes"
2353 else
2354   eval "$3=no"
2355 fi
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357 fi
2358 eval ac_res=\$$3
2359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2360 $as_echo "$ac_res" >&6; }
2361   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362
2363 } # ac_fn_c_check_header_compile
2364
2365 # ac_fn_cxx_try_compile LINENO
2366 # ----------------------------
2367 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2368 ac_fn_cxx_try_compile ()
2369 {
2370   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371   rm -f conftest.$ac_objext
2372   if { { ac_try="$ac_compile"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378 $as_echo "$ac_try_echo"; } >&5
2379   (eval "$ac_compile") 2>conftest.err
2380   ac_status=$?
2381   if test -s conftest.err; then
2382     grep -v '^ *+' conftest.err >conftest.er1
2383     cat conftest.er1 >&5
2384     mv -f conftest.er1 conftest.err
2385   fi
2386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387   test $ac_status = 0; } && {
2388          test -z "$ac_cxx_werror_flag" ||
2389          test ! -s conftest.err
2390        } && test -s conftest.$ac_objext; then :
2391   ac_retval=0
2392 else
2393   $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396         ac_retval=1
2397 fi
2398   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399   as_fn_set_status $ac_retval
2400
2401 } # ac_fn_cxx_try_compile
2402
2403 # ac_fn_c_try_link LINENO
2404 # -----------------------
2405 # Try to link conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_c_try_link ()
2407 {
2408   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409   rm -f conftest.$ac_objext conftest$ac_exeext
2410   if { { ac_try="$ac_link"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417   (eval "$ac_link") 2>conftest.err
2418   ac_status=$?
2419   if test -s conftest.err; then
2420     grep -v '^ *+' conftest.err >conftest.er1
2421     cat conftest.er1 >&5
2422     mv -f conftest.er1 conftest.err
2423   fi
2424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425   test $ac_status = 0; } && {
2426          test -z "$ac_c_werror_flag" ||
2427          test ! -s conftest.err
2428        } && test -s conftest$ac_exeext && {
2429          test "$cross_compiling" = yes ||
2430          $as_test_x conftest$ac_exeext
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   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2440   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2441   # interfere with the next link command; also delete a directory that is
2442   # left behind by Apple's compiler.  We do this before executing the actions.
2443   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2444   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445   as_fn_set_status $ac_retval
2446
2447 } # ac_fn_c_try_link
2448
2449 # ac_fn_c_check_func LINENO FUNC VAR
2450 # ----------------------------------
2451 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2452 ac_fn_c_check_func ()
2453 {
2454   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2456 $as_echo_n "checking for $2... " >&6; }
2457 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2458   $as_echo_n "(cached) " >&6
2459 else
2460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h.  */
2462 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2464 #define $2 innocuous_$2
2465
2466 /* System header to define __stub macros and hopefully few prototypes,
2467     which can conflict with char $2 (); below.
2468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469     <limits.h> exists even on freestanding compilers.  */
2470
2471 #ifdef __STDC__
2472 # include <limits.h>
2473 #else
2474 # include <assert.h>
2475 #endif
2476
2477 #undef $2
2478
2479 /* Override any GCC internal prototype to avoid an error.
2480    Use char because int might match the return type of a GCC
2481    builtin and then its argument prototype would still apply.  */
2482 #ifdef __cplusplus
2483 extern "C"
2484 #endif
2485 char $2 ();
2486 /* The GNU C library defines this for functions which it implements
2487     to always fail with ENOSYS.  Some functions are actually named
2488     something starting with __ and the normal name is an alias.  */
2489 #if defined __stub_$2 || defined __stub___$2
2490 choke me
2491 #endif
2492
2493 int
2494 main ()
2495 {
2496 return $2 ();
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_c_try_link "$LINENO"; then :
2502   eval "$3=yes"
2503 else
2504   eval "$3=no"
2505 fi
2506 rm -f core conftest.err conftest.$ac_objext \
2507     conftest$ac_exeext conftest.$ac_ext
2508 fi
2509 eval ac_res=\$$3
2510                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2511 $as_echo "$ac_res" >&6; }
2512   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513
2514 } # ac_fn_c_check_func
2515
2516 # ac_fn_cxx_try_cpp LINENO
2517 # ------------------------
2518 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2519 ac_fn_cxx_try_cpp ()
2520 {
2521   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522   if { { ac_try="$ac_cpp conftest.$ac_ext"
2523 case "(($ac_try" in
2524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525   *) ac_try_echo=$ac_try;;
2526 esac
2527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2528 $as_echo "$ac_try_echo"; } >&5
2529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2530   ac_status=$?
2531   if test -s conftest.err; then
2532     grep -v '^ *+' conftest.err >conftest.er1
2533     cat conftest.er1 >&5
2534     mv -f conftest.er1 conftest.err
2535   fi
2536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2537   test $ac_status = 0; } >/dev/null && {
2538          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2539          test ! -s conftest.err
2540        }; then :
2541   ac_retval=0
2542 else
2543   $as_echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546     ac_retval=1
2547 fi
2548   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549   as_fn_set_status $ac_retval
2550
2551 } # ac_fn_cxx_try_cpp
2552
2553 # ac_fn_cxx_try_link LINENO
2554 # -------------------------
2555 # Try to link conftest.$ac_ext, and return whether this succeeded.
2556 ac_fn_cxx_try_link ()
2557 {
2558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2559   rm -f conftest.$ac_objext conftest$ac_exeext
2560   if { { ac_try="$ac_link"
2561 case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2566 $as_echo "$ac_try_echo"; } >&5
2567   (eval "$ac_link") 2>conftest.err
2568   ac_status=$?
2569   if test -s conftest.err; then
2570     grep -v '^ *+' conftest.err >conftest.er1
2571     cat conftest.er1 >&5
2572     mv -f conftest.er1 conftest.err
2573   fi
2574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575   test $ac_status = 0; } && {
2576          test -z "$ac_cxx_werror_flag" ||
2577          test ! -s conftest.err
2578        } && test -s conftest$ac_exeext && {
2579          test "$cross_compiling" = yes ||
2580          $as_test_x conftest$ac_exeext
2581        }; then :
2582   ac_retval=0
2583 else
2584   $as_echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587         ac_retval=1
2588 fi
2589   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2590   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2591   # interfere with the next link command; also delete a directory that is
2592   # left behind by Apple's compiler.  We do this before executing the actions.
2593   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2594   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2595   as_fn_set_status $ac_retval
2596
2597 } # ac_fn_cxx_try_link
2598
2599 # ac_fn_c_check_decl LINENO SYMBOL VAR
2600 # ------------------------------------
2601 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2602 ac_fn_c_check_decl ()
2603 {
2604   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2606 $as_echo_n "checking whether $2 is declared... " >&6; }
2607 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h.  */
2612 $4
2613 int
2614 main ()
2615 {
2616 #ifndef $2
2617   (void) $2;
2618 #endif
2619
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625   eval "$3=yes"
2626 else
2627   eval "$3=no"
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 eval ac_res=\$$3
2632                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636 } # ac_fn_c_check_decl
2637
2638 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2639 # -------------------------------------------
2640 # Tests whether TYPE exists after having included INCLUDES, setting cache
2641 # variable VAR accordingly.
2642 ac_fn_c_check_type ()
2643 {
2644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2646 $as_echo_n "checking for $2... " >&6; }
2647 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   eval "$3=no"
2651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h.  */
2653 $4
2654 int
2655 main ()
2656 {
2657 if (sizeof ($2))
2658          return 0;
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h.  */
2666 $4
2667 int
2668 main ()
2669 {
2670 if (sizeof (($2)))
2671             return 0;
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677
2678 else
2679   eval "$3=yes"
2680 fi
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 fi
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 fi
2685 eval ac_res=\$$3
2686                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2689
2690 } # ac_fn_c_check_type
2691
2692 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2693 # --------------------------------------------
2694 # Tries to find the compile-time value of EXPR in a program that includes
2695 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2696 # computed
2697 ac_fn_c_compute_int ()
2698 {
2699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700   if test "$cross_compiling" = yes; then
2701     # Depending upon the size, compute the lo and hi bounds.
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h.  */
2704 $4
2705 int
2706 main ()
2707 {
2708 static int test_array [1 - 2 * !(($2) >= 0)];
2709 test_array [0] = 0
2710
2711   ;
2712   return 0;
2713 }
2714 _ACEOF
2715 if ac_fn_c_try_compile "$LINENO"; then :
2716   ac_lo=0 ac_mid=0
2717   while :; do
2718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h.  */
2720 $4
2721 int
2722 main ()
2723 {
2724 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2725 test_array [0] = 0
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2732   ac_hi=$ac_mid; break
2733 else
2734   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2735                         if test $ac_lo -le $ac_mid; then
2736                           ac_lo= ac_hi=
2737                           break
2738                         fi
2739                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742   done
2743 else
2744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h.  */
2746 $4
2747 int
2748 main ()
2749 {
2750 static int test_array [1 - 2 * !(($2) < 0)];
2751 test_array [0] = 0
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_compile "$LINENO"; then :
2758   ac_hi=-1 ac_mid=-1
2759   while :; do
2760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762 $4
2763 int
2764 main ()
2765 {
2766 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2767 test_array [0] = 0
2768
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_c_try_compile "$LINENO"; then :
2774   ac_lo=$ac_mid; break
2775 else
2776   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2777                         if test $ac_mid -le $ac_hi; then
2778                           ac_lo= ac_hi=
2779                           break
2780                         fi
2781                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784   done
2785 else
2786   ac_lo= ac_hi=
2787 fi
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 # Binary search between lo and hi bounds.
2792 while test "x$ac_lo" != "x$ac_hi"; do
2793   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h.  */
2796 $4
2797 int
2798 main ()
2799 {
2800 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2801 test_array [0] = 0
2802
2803   ;
2804   return 0;
2805 }
2806 _ACEOF
2807 if ac_fn_c_try_compile "$LINENO"; then :
2808   ac_hi=$ac_mid
2809 else
2810   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2811 fi
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 done
2814 case $ac_lo in #((
2815 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2816 '') ac_retval=1 ;;
2817 esac
2818   else
2819     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2820 /* end confdefs.h.  */
2821 $4
2822 static long int longval () { return $2; }
2823 static unsigned long int ulongval () { return $2; }
2824 #include <stdio.h>
2825 #include <stdlib.h>
2826 int
2827 main ()
2828 {
2829
2830   FILE *f = fopen ("conftest.val", "w");
2831   if (! f)
2832     return 1;
2833   if (($2) < 0)
2834     {
2835       long int i = longval ();
2836       if (i != ($2))
2837         return 1;
2838       fprintf (f, "%ld", i);
2839     }
2840   else
2841     {
2842       unsigned long int i = ulongval ();
2843       if (i != ($2))
2844         return 1;
2845       fprintf (f, "%lu", i);
2846     }
2847   /* Do not output a trailing newline, as this causes \r\n confusion
2848      on some platforms.  */
2849   return ferror (f) || fclose (f) != 0;
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_run "$LINENO"; then :
2856   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2857 else
2858   ac_retval=1
2859 fi
2860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2861   conftest.$ac_objext conftest.beam conftest.$ac_ext
2862 rm -f conftest.val
2863
2864   fi
2865   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2866   as_fn_set_status $ac_retval
2867
2868 } # ac_fn_c_compute_int
2869
2870 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2871 # ---------------------------------------------------------
2872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2873 # the include files in INCLUDES and setting the cache variable VAR
2874 # accordingly.
2875 ac_fn_cxx_check_header_mongrel ()
2876 {
2877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2878   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2880 $as_echo_n "checking for $2... " >&6; }
2881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2882   $as_echo_n "(cached) " >&6
2883 fi
2884 eval ac_res=\$$3
2885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2886 $as_echo "$ac_res" >&6; }
2887 else
2888   # Is the header compilable?
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2890 $as_echo_n "checking $2 usability... " >&6; }
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892 /* end confdefs.h.  */
2893 $4
2894 #include <$2>
2895 _ACEOF
2896 if ac_fn_cxx_try_compile "$LINENO"; then :
2897   ac_header_compiler=yes
2898 else
2899   ac_header_compiler=no
2900 fi
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2903 $as_echo "$ac_header_compiler" >&6; }
2904
2905 # Is the header present?
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2907 $as_echo_n "checking $2 presence... " >&6; }
2908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909 /* end confdefs.h.  */
2910 #include <$2>
2911 _ACEOF
2912 if ac_fn_cxx_try_cpp "$LINENO"; then :
2913   ac_header_preproc=yes
2914 else
2915   ac_header_preproc=no
2916 fi
2917 rm -f conftest.err conftest.$ac_ext
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2919 $as_echo "$ac_header_preproc" >&6; }
2920
2921 # So?  What about this header?
2922 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2923   yes:no: )
2924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2928     ;;
2929   no:yes:* )
2930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2933 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2936     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2937 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2938     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2940 ( cat <<\_ASBOX
2941 ## ----------------------------------------- ##
2942 ## Report this to http://www.imagemagick.org ##
2943 ## ----------------------------------------- ##
2944 _ASBOX
2945      ) | sed "s/^/$as_me: WARNING:     /" >&2
2946     ;;
2947 esac
2948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2949 $as_echo_n "checking for $2... " >&6; }
2950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   eval "$3=\$ac_header_compiler"
2954 fi
2955 eval ac_res=\$$3
2956                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2957 $as_echo "$ac_res" >&6; }
2958 fi
2959   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2960
2961 } # ac_fn_cxx_check_header_mongrel
2962 cat >config.log <<_ACEOF
2963 This file contains any messages produced by compilers while
2964 running configure, to aid debugging if configure makes a mistake.
2965
2966 It was created by ImageMagick $as_me 6.6.1, which was
2967 generated by GNU Autoconf 2.65.  Invocation command line was
2968
2969   $ $0 $@
2970
2971 _ACEOF
2972 exec 5>>config.log
2973 {
2974 cat <<_ASUNAME
2975 ## --------- ##
2976 ## Platform. ##
2977 ## --------- ##
2978
2979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2984
2985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2986 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2987
2988 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2989 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2991 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2992 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2993 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2994 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2995
2996 _ASUNAME
2997
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001   IFS=$as_save_IFS
3002   test -z "$as_dir" && as_dir=.
3003     $as_echo "PATH: $as_dir"
3004   done
3005 IFS=$as_save_IFS
3006
3007 } >&5
3008
3009 cat >&5 <<_ACEOF
3010
3011
3012 ## ----------- ##
3013 ## Core tests. ##
3014 ## ----------- ##
3015
3016 _ACEOF
3017
3018
3019 # Keep a trace of the command line.
3020 # Strip out --no-create and --no-recursion so they do not pile up.
3021 # Strip out --silent because we don't want to record it for future runs.
3022 # Also quote any args containing shell meta-characters.
3023 # Make two passes to allow for proper duplicate-argument suppression.
3024 ac_configure_args=
3025 ac_configure_args0=
3026 ac_configure_args1=
3027 ac_must_keep_next=false
3028 for ac_pass in 1 2
3029 do
3030   for ac_arg
3031   do
3032     case $ac_arg in
3033     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3034     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3035     | -silent | --silent | --silen | --sile | --sil)
3036       continue ;;
3037     *\'*)
3038       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3039     esac
3040     case $ac_pass in
3041     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3042     2)
3043       as_fn_append ac_configure_args1 " '$ac_arg'"
3044       if test $ac_must_keep_next = true; then
3045         ac_must_keep_next=false # Got value, back to normal.
3046       else
3047         case $ac_arg in
3048           *=* | --config-cache | -C | -disable-* | --disable-* \
3049           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3050           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3051           | -with-* | --with-* | -without-* | --without-* | --x)
3052             case "$ac_configure_args0 " in
3053               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3054             esac
3055             ;;
3056           -* ) ac_must_keep_next=true ;;
3057         esac
3058       fi
3059       as_fn_append ac_configure_args " '$ac_arg'"
3060       ;;
3061     esac
3062   done
3063 done
3064 { ac_configure_args0=; unset ac_configure_args0;}
3065 { ac_configure_args1=; unset ac_configure_args1;}
3066
3067 # When interrupted or exit'd, cleanup temporary files, and complete
3068 # config.log.  We remove comments because anyway the quotes in there
3069 # would cause problems or look ugly.
3070 # WARNING: Use '\'' to represent an apostrophe within the trap.
3071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3072 trap 'exit_status=$?
3073   # Save into config.log some information that might help in debugging.
3074   {
3075     echo
3076
3077     cat <<\_ASBOX
3078 ## ---------------- ##
3079 ## Cache variables. ##
3080 ## ---------------- ##
3081 _ASBOX
3082     echo
3083     # The following way of writing the cache mishandles newlines in values,
3084 (
3085   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3086     eval ac_val=\$$ac_var
3087     case $ac_val in #(
3088     *${as_nl}*)
3089       case $ac_var in #(
3090       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3092       esac
3093       case $ac_var in #(
3094       _ | IFS | as_nl) ;; #(
3095       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3096       *) { eval $ac_var=; unset $ac_var;} ;;
3097       esac ;;
3098     esac
3099   done
3100   (set) 2>&1 |
3101     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3102     *${as_nl}ac_space=\ *)
3103       sed -n \
3104         "s/'\''/'\''\\\\'\'''\''/g;
3105           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3106       ;; #(
3107     *)
3108       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3109       ;;
3110     esac |
3111     sort
3112 )
3113     echo
3114
3115     cat <<\_ASBOX
3116 ## ----------------- ##
3117 ## Output variables. ##
3118 ## ----------------- ##
3119 _ASBOX
3120     echo
3121     for ac_var in $ac_subst_vars
3122     do
3123       eval ac_val=\$$ac_var
3124       case $ac_val in
3125       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3126       esac
3127       $as_echo "$ac_var='\''$ac_val'\''"
3128     done | sort
3129     echo
3130
3131     if test -n "$ac_subst_files"; then
3132       cat <<\_ASBOX
3133 ## ------------------- ##
3134 ## File substitutions. ##
3135 ## ------------------- ##
3136 _ASBOX
3137       echo
3138       for ac_var in $ac_subst_files
3139       do
3140         eval ac_val=\$$ac_var
3141         case $ac_val in
3142         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3143         esac
3144         $as_echo "$ac_var='\''$ac_val'\''"
3145       done | sort
3146       echo
3147     fi
3148
3149     if test -s confdefs.h; then
3150       cat <<\_ASBOX
3151 ## ----------- ##
3152 ## confdefs.h. ##
3153 ## ----------- ##
3154 _ASBOX
3155       echo
3156       cat confdefs.h
3157       echo
3158     fi
3159     test "$ac_signal" != 0 &&
3160       $as_echo "$as_me: caught signal $ac_signal"
3161     $as_echo "$as_me: exit $exit_status"
3162   } >&5
3163   rm -f core *.core core.conftest.* &&
3164     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3165     exit $exit_status
3166 ' 0
3167 for ac_signal in 1 2 13 15; do
3168   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3169 done
3170 ac_signal=0
3171
3172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3173 rm -f -r conftest* confdefs.h
3174
3175 $as_echo "/* confdefs.h */" > confdefs.h
3176
3177 # Predefined preprocessor variables.
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define PACKAGE_NAME "$PACKAGE_NAME"
3181 _ACEOF
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3185 _ACEOF
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3189 _ACEOF
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE_STRING "$PACKAGE_STRING"
3193 _ACEOF
3194
3195 cat >>confdefs.h <<_ACEOF
3196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3197 _ACEOF
3198
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE_URL "$PACKAGE_URL"
3201 _ACEOF
3202
3203
3204 # Let the site file select an alternate cache file if it wants to.
3205 # Prefer an explicitly selected file to automatically selected ones.
3206 ac_site_file1=NONE
3207 ac_site_file2=NONE
3208 if test -n "$CONFIG_SITE"; then
3209   ac_site_file1=$CONFIG_SITE
3210 elif test "x$prefix" != xNONE; then
3211   ac_site_file1=$prefix/share/config.site
3212   ac_site_file2=$prefix/etc/config.site
3213 else
3214   ac_site_file1=$ac_default_prefix/share/config.site
3215   ac_site_file2=$ac_default_prefix/etc/config.site
3216 fi
3217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3218 do
3219   test "x$ac_site_file" = xNONE && continue
3220   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3221     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3223     sed 's/^/| /' "$ac_site_file" >&5
3224     . "$ac_site_file"
3225   fi
3226 done
3227
3228 if test -r "$cache_file"; then
3229   # Some versions of bash will fail to source /dev/null (special files
3230   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3231   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3232     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3233 $as_echo "$as_me: loading cache $cache_file" >&6;}
3234     case $cache_file in
3235       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3236       *)                      . "./$cache_file";;
3237     esac
3238   fi
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3241 $as_echo "$as_me: creating cache $cache_file" >&6;}
3242   >$cache_file
3243 fi
3244
3245 as_fn_append ac_header_list " stdlib.h"
3246 as_fn_append ac_header_list " unistd.h"
3247 as_fn_append ac_header_list " sys/param.h"
3248 # Check that the precious variables saved in the cache have kept the same
3249 # value.
3250 ac_cache_corrupted=false
3251 for ac_var in $ac_precious_vars; do
3252   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3253   eval ac_new_set=\$ac_env_${ac_var}_set
3254   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3255   eval ac_new_val=\$ac_env_${ac_var}_value
3256   case $ac_old_set,$ac_new_set in
3257     set,)
3258       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3259 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3260       ac_cache_corrupted=: ;;
3261     ,set)
3262       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3263 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3264       ac_cache_corrupted=: ;;
3265     ,);;
3266     *)
3267       if test "x$ac_old_val" != "x$ac_new_val"; then
3268         # differences in whitespace do not lead to failure.
3269         ac_old_val_w=`echo x $ac_old_val`
3270         ac_new_val_w=`echo x $ac_new_val`
3271         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3272           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3273 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3274           ac_cache_corrupted=:
3275         else
3276           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3277 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3278           eval $ac_var=\$ac_old_val
3279         fi
3280         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3281 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3282         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3283 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3284       fi;;
3285   esac
3286   # Pass precious variables to config.status.
3287   if test "$ac_new_set" = set; then
3288     case $ac_new_val in
3289     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3290     *) ac_arg=$ac_var=$ac_new_val ;;
3291     esac
3292     case " $ac_configure_args " in
3293       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3294       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3295     esac
3296   fi
3297 done
3298 if $ac_cache_corrupted; then
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3302 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3303   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3304 fi
3305 ## -------------------- ##
3306 ## Main body of script. ##
3307 ## -------------------- ##
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314
3315
3316
3317 ac_aux_dir=
3318 for ac_dir in config "$srcdir"/config; do
3319   for ac_t in install-sh install.sh shtool; do
3320     if test -f "$ac_dir/$ac_t"; then
3321       ac_aux_dir=$ac_dir
3322       ac_install_sh="$ac_aux_dir/$ac_t -c"
3323       break 2
3324     fi
3325   done
3326 done
3327 if test -z "$ac_aux_dir"; then
3328   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3329 fi
3330
3331 # These three variables are undocumented and unsupported,
3332 # and are intended to be withdrawn in a future Autoconf release.
3333 # They can cause serious problems if a builder's source tree is in a directory
3334 # whose full name contains unusual characters.
3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3337 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3338
3339
3340
3341
3342 ac_config_headers="$ac_config_headers config/config.h"
3343
3344 ac_config_commands="$ac_config_commands magick/magick-config.h"
3345
3346 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3347
3348
3349 #
3350 # Save initial user-tunable values
3351 #
3352 USER_LIBS=$LIBS
3353 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3354   eval isset=\${$var+set}
3355     if test "$isset" = 'set'; then
3356         eval val=$`echo $var`
3357         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3358     fi
3359 done
3360
3361
3362 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3363
3364
3365 # Source file containing package/library versioning information.
3366 . ${srcdir}/version.sh
3367
3368 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3369 # Make sure we can run config.sub.
3370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3371   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3372
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3374 $as_echo_n "checking build system type... " >&6; }
3375 if test "${ac_cv_build+set}" = set; then :
3376   $as_echo_n "(cached) " >&6
3377 else
3378   ac_build_alias=$build_alias
3379 test "x$ac_build_alias" = x &&
3380   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3381 test "x$ac_build_alias" = x &&
3382   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3384   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3385
3386 fi
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3388 $as_echo "$ac_cv_build" >&6; }
3389 case $ac_cv_build in
3390 *-*-*) ;;
3391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3392 esac
3393 build=$ac_cv_build
3394 ac_save_IFS=$IFS; IFS='-'
3395 set x $ac_cv_build
3396 shift
3397 build_cpu=$1
3398 build_vendor=$2
3399 shift; shift
3400 # Remember, the first character of IFS is used to create $*,
3401 # except with old shells:
3402 build_os=$*
3403 IFS=$ac_save_IFS
3404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3405
3406
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3408 $as_echo_n "checking host system type... " >&6; }
3409 if test "${ac_cv_host+set}" = set; then :
3410   $as_echo_n "(cached) " >&6
3411 else
3412   if test "x$host_alias" = x; then
3413   ac_cv_host=$ac_cv_build
3414 else
3415   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3416     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3417 fi
3418
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3421 $as_echo "$ac_cv_host" >&6; }
3422 case $ac_cv_host in
3423 *-*-*) ;;
3424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3425 esac
3426 host=$ac_cv_host
3427 ac_save_IFS=$IFS; IFS='-'
3428 set x $ac_cv_host
3429 shift
3430 host_cpu=$1
3431 host_vendor=$2
3432 shift; shift
3433 # Remember, the first character of IFS is used to create $*,
3434 # except with old shells:
3435 host_os=$*
3436 IFS=$ac_save_IFS
3437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3438
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3441 $as_echo_n "checking target system type... " >&6; }
3442 if test "${ac_cv_target+set}" = set; then :
3443   $as_echo_n "(cached) " >&6
3444 else
3445   if test "x$target_alias" = x; then
3446   ac_cv_target=$ac_cv_host
3447 else
3448   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3449     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3450 fi
3451
3452 fi
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3454 $as_echo "$ac_cv_target" >&6; }
3455 case $ac_cv_target in
3456 *-*-*) ;;
3457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3458 esac
3459 target=$ac_cv_target
3460 ac_save_IFS=$IFS; IFS='-'
3461 set x $ac_cv_target
3462 shift
3463 target_cpu=$1
3464 target_vendor=$2
3465 shift; shift
3466 # Remember, the first character of IFS is used to create $*,
3467 # except with old shells:
3468 target_os=$*
3469 IFS=$ac_save_IFS
3470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3471
3472
3473 # The aliases save the names the user supplied, while $host etc.
3474 # will get canonicalized.
3475 test -n "$target_alias" &&
3476   test "$program_prefix$program_suffix$program_transform_name" = \
3477     NONENONEs,x,x, &&
3478   program_prefix=${target_alias}-
3479
3480
3481
3482
3483
3484 MAGICK_TARGET_CPU=$target_cpu
3485
3486
3487 MAGICK_TARGET_VENDOR=$target_vendor
3488
3489
3490 MAGICK_TARGET_OS=$target_os
3491
3492
3493 # Substitute library versioning
3494 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3495
3496 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3497
3498
3499
3500 # Ensure that make can run correctly
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3502 $as_echo_n "checking whether build environment is sane... " >&6; }
3503 # Just in case
3504 sleep 1
3505 echo timestamp > conftest.file
3506 # Reject unsafe characters in $srcdir or the absolute working directory
3507 # name.  Accept space and tab only in the latter.
3508 am_lf='
3509 '
3510 case `pwd` in
3511   *[\\\"\#\$\&\'\`$am_lf]*)
3512     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3513 esac
3514 case $srcdir in
3515   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3516     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3517 esac
3518
3519 # Do `set' in a subshell so we don't clobber the current shell's
3520 # arguments.  Must try -L first in case configure is actually a
3521 # symlink; some systems play weird games with the mod time of symlinks
3522 # (eg FreeBSD returns the mod time of the symlink's containing
3523 # directory).
3524 if (
3525    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3526    if test "$*" = "X"; then
3527       # -L didn't work.
3528       set X `ls -t "$srcdir/configure" conftest.file`
3529    fi
3530    rm -f conftest.file
3531    if test "$*" != "X $srcdir/configure conftest.file" \
3532       && test "$*" != "X conftest.file $srcdir/configure"; then
3533
3534       # If neither matched, then we have a broken ls.  This can happen
3535       # if, for instance, CONFIG_SHELL is bash and it inherits a
3536       # broken ls alias from the environment.  This has actually
3537       # happened.  Such a system could not be considered "sane".
3538       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3539 alias in your environment" "$LINENO" 5
3540    fi
3541
3542    test "$2" = conftest.file
3543    )
3544 then
3545    # Ok.
3546    :
3547 else
3548    as_fn_error "newly created file is older than distributed files!
3549 Check your system clock" "$LINENO" 5
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3552 $as_echo "yes" >&6; }
3553
3554 am__api_version='1.11'
3555
3556 # Find a good install program.  We prefer a C program (faster),
3557 # so one script is as good as another.  But avoid the broken or
3558 # incompatible versions:
3559 # SysV /etc/install, /usr/sbin/install
3560 # SunOS /usr/etc/install
3561 # IRIX /sbin/install
3562 # AIX /bin/install
3563 # AmigaOS /C/install, which installs bootblocks on floppy discs
3564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3567 # OS/2's system install, which has a completely different semantic
3568 # ./install, which can be erroneously created by make from ./install.sh.
3569 # Reject install programs that cannot install multiple files.
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3572 if test -z "$INSTALL"; then
3573 if test "${ac_cv_path_install+set}" = set; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581     # Account for people who put trailing slashes in PATH elements.
3582 case $as_dir/ in #((
3583   ./ | .// | /[cC]/* | \
3584   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3585   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3586   /usr/ucb/* ) ;;
3587   *)
3588     # OSF1 and SCO ODT 3.0 have their own names for install.
3589     # Don't use installbsd from OSF since it installs stuff as root
3590     # by default.
3591     for ac_prog in ginstall scoinst install; do
3592       for ac_exec_ext in '' $ac_executable_extensions; do
3593         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3594           if test $ac_prog = install &&
3595             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3596             # AIX install.  It has an incompatible calling convention.
3597             :
3598           elif test $ac_prog = install &&
3599             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3600             # program-specific install script used by HP pwplus--don't use.
3601             :
3602           else
3603             rm -rf conftest.one conftest.two conftest.dir
3604             echo one > conftest.one
3605             echo two > conftest.two
3606             mkdir conftest.dir
3607             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3608               test -s conftest.one && test -s conftest.two &&
3609               test -s conftest.dir/conftest.one &&
3610               test -s conftest.dir/conftest.two
3611             then
3612               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3613               break 3
3614             fi
3615           fi
3616         fi
3617       done
3618     done
3619     ;;
3620 esac
3621
3622   done
3623 IFS=$as_save_IFS
3624
3625 rm -rf conftest.one conftest.two conftest.dir
3626
3627 fi
3628   if test "${ac_cv_path_install+set}" = set; then
3629     INSTALL=$ac_cv_path_install
3630   else
3631     # As a last resort, use the slow shell script.  Don't cache a
3632     # value for INSTALL within a source directory, because that will
3633     # break other packages using the cache if that directory is
3634     # removed, or if the value is a relative name.
3635     INSTALL=$ac_install_sh
3636   fi
3637 fi
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3639 $as_echo "$INSTALL" >&6; }
3640
3641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642 # It thinks the first close brace ends the variable substitution.
3643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3644
3645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3646
3647 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3648
3649 test "$program_prefix" != NONE &&
3650   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3651 # Use a double $ so make ignores it.
3652 test "$program_suffix" != NONE &&
3653   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3654 # Double any \ or $.
3655 # By default was `s,x,x', remove it if useless.
3656 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3657 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3658
3659 # expand $ac_aux_dir to an absolute path
3660 am_aux_dir=`cd $ac_aux_dir && pwd`
3661
3662 if test x"${MISSING+set}" != xset; then
3663   case $am_aux_dir in
3664   *\ * | *\     *)
3665     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3666   *)
3667     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3668   esac
3669 fi
3670 # Use eval to expand $SHELL
3671 if eval "$MISSING --run true"; then
3672   am_missing_run="$MISSING --run "
3673 else
3674   am_missing_run=
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3676 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3677 fi
3678
3679 if test x"${install_sh}" != xset; then
3680   case $am_aux_dir in
3681   *\ * | *\     *)
3682     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3683   *)
3684     install_sh="\${SHELL} $am_aux_dir/install-sh"
3685   esac
3686 fi
3687
3688 # Installed binaries are usually stripped using `strip' when the user
3689 # run `make install-strip'.  However `strip' might not be the right
3690 # tool to use in cross-compilation environments, therefore Automake
3691 # will honor the `STRIP' environment variable to overrule this program.
3692 if test "$cross_compiling" != no; then
3693   if test -n "$ac_tool_prefix"; then
3694   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3695 set dummy ${ac_tool_prefix}strip; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_STRIP+set}" = set; then :
3699   $as_echo_n "(cached) " >&6
3700 else
3701   if test -n "$STRIP"; then
3702   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3703 else
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 for as_dir in $PATH
3706 do
3707   IFS=$as_save_IFS
3708   test -z "$as_dir" && as_dir=.
3709     for ac_exec_ext in '' $ac_executable_extensions; do
3710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713     break 2
3714   fi
3715 done
3716   done
3717 IFS=$as_save_IFS
3718
3719 fi
3720 fi
3721 STRIP=$ac_cv_prog_STRIP
3722 if test -n "$STRIP"; then
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3724 $as_echo "$STRIP" >&6; }
3725 else
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 fi
3732 if test -z "$ac_cv_prog_STRIP"; then
3733   ac_ct_STRIP=$STRIP
3734   # Extract the first word of "strip", so it can be a program name with args.
3735 set dummy strip; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   if test -n "$ac_ct_STRIP"; then
3742   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749     for ac_exec_ext in '' $ac_executable_extensions; do
3750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751     ac_cv_prog_ac_ct_STRIP="strip"
3752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753     break 2
3754   fi
3755 done
3756   done
3757 IFS=$as_save_IFS
3758
3759 fi
3760 fi
3761 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3762 if test -n "$ac_ct_STRIP"; then
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3764 $as_echo "$ac_ct_STRIP" >&6; }
3765 else
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770   if test "x$ac_ct_STRIP" = x; then
3771     STRIP=":"
3772   else
3773     case $cross_compiling:$ac_tool_warned in
3774 yes:)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3777 ac_tool_warned=yes ;;
3778 esac
3779     STRIP=$ac_ct_STRIP
3780   fi
3781 else
3782   STRIP="$ac_cv_prog_STRIP"
3783 fi
3784
3785 fi
3786 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3789 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3790 if test -z "$MKDIR_P"; then
3791   if test "${ac_cv_path_mkdir+set}" = set; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3796 do
3797   IFS=$as_save_IFS
3798   test -z "$as_dir" && as_dir=.
3799     for ac_prog in mkdir gmkdir; do
3800          for ac_exec_ext in '' $ac_executable_extensions; do
3801            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3802            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3803              'mkdir (GNU coreutils) '* | \
3804              'mkdir (coreutils) '* | \
3805              'mkdir (fileutils) '4.1*)
3806                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3807                break 3;;
3808            esac
3809          done
3810        done
3811   done
3812 IFS=$as_save_IFS
3813
3814 fi
3815
3816   test -d ./--version && rmdir ./--version
3817   if test "${ac_cv_path_mkdir+set}" = set; then
3818     MKDIR_P="$ac_cv_path_mkdir -p"
3819   else
3820     # As a last resort, use the slow shell script.  Don't cache a
3821     # value for MKDIR_P within a source directory, because that will
3822     # break other packages using the cache if that directory is
3823     # removed, or if the value is a relative name.
3824     MKDIR_P="$ac_install_sh -d"
3825   fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3828 $as_echo "$MKDIR_P" >&6; }
3829
3830 mkdir_p="$MKDIR_P"
3831 case $mkdir_p in
3832   [\\/$]* | ?:[\\/]*) ;;
3833   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3834 esac
3835
3836 for ac_prog in gawk mawk nawk awk
3837 do
3838   # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy $ac_prog; ac_word=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if test "${ac_cv_prog_AWK+set}" = set; then :
3843   $as_echo_n "(cached) " >&6
3844 else
3845   if test -n "$AWK"; then
3846   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853     for ac_exec_ext in '' $ac_executable_extensions; do
3854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3855     ac_cv_prog_AWK="$ac_prog"
3856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 AWK=$ac_cv_prog_AWK
3866 if test -n "$AWK"; then
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3868 $as_echo "$AWK" >&6; }
3869 else
3870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 fi
3873
3874
3875   test -n "$AWK" && break
3876 done
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3879 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3880 set x ${MAKE-make}
3881 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3882 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3883   $as_echo_n "(cached) " >&6
3884 else
3885   cat >conftest.make <<\_ACEOF
3886 SHELL = /bin/sh
3887 all:
3888         @echo '@@@%%%=$(MAKE)=@@@%%%'
3889 _ACEOF
3890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3891 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3892   *@@@%%%=?*=@@@%%%*)
3893     eval ac_cv_prog_make_${ac_make}_set=yes;;
3894   *)
3895     eval ac_cv_prog_make_${ac_make}_set=no;;
3896 esac
3897 rm -f conftest.make
3898 fi
3899 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 $as_echo "yes" >&6; }
3902   SET_MAKE=
3903 else
3904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906   SET_MAKE="MAKE=${MAKE-make}"
3907 fi
3908
3909 rm -rf .tst 2>/dev/null
3910 mkdir .tst 2>/dev/null
3911 if test -d .tst; then
3912   am__leading_dot=.
3913 else
3914   am__leading_dot=_
3915 fi
3916 rmdir .tst 2>/dev/null
3917
3918 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3919   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3920   # is not polluted with repeated "-I."
3921   am__isrc=' -I$(srcdir)'
3922   # test to see if srcdir already configured
3923   if test -f $srcdir/config.status; then
3924     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3925   fi
3926 fi
3927
3928 # test whether we have cygpath
3929 if test -z "$CYGPATH_W"; then
3930   if (cygpath --version) >/dev/null 2>/dev/null; then
3931     CYGPATH_W='cygpath -w'
3932   else
3933     CYGPATH_W=echo
3934   fi
3935 fi
3936
3937
3938 # Define the identity of the package.
3939  PACKAGE=$PACKAGE_NAME
3940  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3941
3942
3943 # Some tools Automake needs.
3944
3945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3946
3947
3948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3949
3950
3951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3952
3953
3954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3955
3956
3957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3958
3959 # We need awk for the "check" target.  The system "awk" is bad on
3960 # some platforms.
3961 # Always define AMTAR for backward compatibility.
3962
3963 AMTAR=${AMTAR-"${am_missing_run}tar"}
3964
3965 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3966
3967
3968
3969
3970
3971
3972 # Enable support for silent build rules
3973 # Check whether --enable-silent-rules was given.
3974 if test "${enable_silent_rules+set}" = set; then :
3975   enableval=$enable_silent_rules;
3976 fi
3977
3978 case $enable_silent_rules in
3979 yes) AM_DEFAULT_VERBOSITY=0;;
3980 no)  AM_DEFAULT_VERBOSITY=1;;
3981 *)   AM_DEFAULT_VERBOSITY=0;;
3982 esac
3983 AM_BACKSLASH='\'
3984
3985
3986 MAGICK_LIB_VERSION="0x"
3987 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3988   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3989 fi
3990 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3991 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3992   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3993 fi
3994 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3995 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3996   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3997 fi
3998 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3999
4000
4001 # Definition used to define MagickLibVersionText in version.h
4002 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4003
4004
4005 # Definition used to define MagickLibVersionNumber in version.h
4006 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4007
4008
4009 # Regenerate config.status if ChangeLog or version.sh is updated.
4010 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4011
4012
4013 PERLMAINCC=$CC
4014
4015 MAGICK_CFLAGS=''
4016 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4017 MAGICK_PCFLAGS=$CPPFLAGS_USER
4018 MAGICK_LDFLAGS=''
4019 MAGICK_LIBS=''
4020
4021 #
4022 # Evaluate shell variable equivalents to Makefile directory variables
4023 #
4024 if test "x$prefix" = xNONE; then
4025     prefix=$ac_default_prefix
4026 fi
4027 # Let make expand exec_prefix.
4028 if test "x$exec_prefix" = xNONE; then
4029     exec_prefix='${prefix}'
4030 fi
4031
4032 #
4033 eval "eval PREFIX_DIR=${prefix}"
4034
4035 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4036
4037 eval "eval BIN_DIR=$bindir"
4038
4039 eval "eval SBIN_DIR=$sbindir"
4040
4041 eval "eval LIBEXEC_DIR=$libexecdir"
4042
4043 eval "eval DATA_DIR=$datadir"
4044
4045 eval "eval SYSCONF_DIR=$sysconfdir"
4046
4047 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4048
4049 eval "eval LOCALSTATE_DIR=$localstatedir"
4050
4051 eval "eval LIB_DIR=$libdir"
4052
4053 eval "eval INCLUDE_DIR=$includedir"
4054
4055 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4056
4057 eval "eval INFO_DIR=$infodir"
4058
4059 eval "eval MAN_DIR=$mandir"
4060
4061
4062 # Get full paths to source and build directories
4063 srcdirfull="`cd $srcdir && pwd`"
4064 builddir="`pwd`"
4065
4066 #
4067 # Compute variables useful for running uninstalled software.
4068 #
4069 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4070 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4071 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4072 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4073 DIRSEP=':'
4074 case "${build_os}" in
4075     mingw* )
4076         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4077         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4078         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4079         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4080         DIRSEP=';'
4081     ;;
4082 esac
4083 case "${host_os}" in
4084   mingw* )
4085     DIRSEP=';'
4086     ;;
4087 esac
4088
4089
4090
4091
4092
4093
4094
4095 #
4096 # Enable OS features.
4097 #
4098 DEPDIR="${am__leading_dot}deps"
4099
4100 ac_config_commands="$ac_config_commands depfiles"
4101
4102
4103 am_make=${MAKE-make}
4104 cat > confinc << 'END'
4105 am__doit:
4106         @echo this is the am__doit target
4107 .PHONY: am__doit
4108 END
4109 # If we don't find an include directive, just comment out the code.
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4111 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4112 am__include="#"
4113 am__quote=
4114 _am_result=none
4115 # First try GNU make style include.
4116 echo "include confinc" > confmf
4117 # Ignore all kinds of additional output from `make'.
4118 case `$am_make -s -f confmf 2> /dev/null` in #(
4119 *the\ am__doit\ target*)
4120   am__include=include
4121   am__quote=
4122   _am_result=GNU
4123   ;;
4124 esac
4125 # Now try BSD make style include.
4126 if test "$am__include" = "#"; then
4127    echo '.include "confinc"' > confmf
4128    case `$am_make -s -f confmf 2> /dev/null` in #(
4129    *the\ am__doit\ target*)
4130      am__include=.include
4131      am__quote="\""
4132      _am_result=BSD
4133      ;;
4134    esac
4135 fi
4136
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4139 $as_echo "$_am_result" >&6; }
4140 rm -f confinc confmf
4141
4142 # Check whether --enable-dependency-tracking was given.
4143 if test "${enable_dependency_tracking+set}" = set; then :
4144   enableval=$enable_dependency_tracking;
4145 fi
4146
4147 if test "x$enable_dependency_tracking" != xno; then
4148   am_depcomp="$ac_aux_dir/depcomp"
4149   AMDEPBACKSLASH='\'
4150 fi
4151  if test "x$enable_dependency_tracking" != xno; then
4152   AMDEP_TRUE=
4153   AMDEP_FALSE='#'
4154 else
4155   AMDEP_TRUE='#'
4156   AMDEP_FALSE=
4157 fi
4158
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 if test -n "$ac_tool_prefix"; then
4166   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4167 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4169 $as_echo_n "checking for $ac_word... " >&6; }
4170 if test "${ac_cv_prog_CC+set}" = set; then :
4171   $as_echo_n "(cached) " >&6
4172 else
4173   if test -n "$CC"; then
4174   ac_cv_prog_CC="$CC" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181     for ac_exec_ext in '' $ac_executable_extensions; do
4182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185     break 2
4186   fi
4187 done
4188   done
4189 IFS=$as_save_IFS
4190
4191 fi
4192 fi
4193 CC=$ac_cv_prog_CC
4194 if test -n "$CC"; then
4195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4196 $as_echo "$CC" >&6; }
4197 else
4198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202
4203 fi
4204 if test -z "$ac_cv_prog_CC"; then
4205   ac_ct_CC=$CC
4206   # Extract the first word of "gcc", so it can be a program name with args.
4207 set dummy gcc; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4211   $as_echo_n "(cached) " >&6
4212 else
4213   if test -n "$ac_ct_CC"; then
4214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219   IFS=$as_save_IFS
4220   test -z "$as_dir" && as_dir=.
4221     for ac_exec_ext in '' $ac_executable_extensions; do
4222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223     ac_cv_prog_ac_ct_CC="gcc"
4224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225     break 2
4226   fi
4227 done
4228   done
4229 IFS=$as_save_IFS
4230
4231 fi
4232 fi
4233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4234 if test -n "$ac_ct_CC"; then
4235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4236 $as_echo "$ac_ct_CC" >&6; }
4237 else
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242   if test "x$ac_ct_CC" = x; then
4243     CC=""
4244   else
4245     case $cross_compiling:$ac_tool_warned in
4246 yes:)
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4249 ac_tool_warned=yes ;;
4250 esac
4251     CC=$ac_ct_CC
4252   fi
4253 else
4254   CC="$ac_cv_prog_CC"
4255 fi
4256
4257 if test -z "$CC"; then
4258           if test -n "$ac_tool_prefix"; then
4259     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4260 set dummy ${ac_tool_prefix}cc; 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 test "${ac_cv_prog_CC+set}" = set; 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}cc"
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 fi
4298 if test -z "$CC"; then
4299   # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; 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 test "${ac_cv_prog_CC+set}" = set; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   if test -n "$CC"; then
4307   ac_cv_prog_CC="$CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315     for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_CC="cc"
4322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326   done
4327 IFS=$as_save_IFS
4328
4329 if test $ac_prog_rejected = yes; then
4330   # We found a bogon in the path, so make sure we never use it.
4331   set dummy $ac_cv_prog_CC
4332   shift
4333   if test $# != 0; then
4334     # We chose a different compiler from the bogus one.
4335     # However, it has the same basename, so the bogon will be chosen
4336     # first if we set CC to just the basename; use the full file name.
4337     shift
4338     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4339   fi
4340 fi
4341 fi
4342 fi
4343 CC=$ac_cv_prog_CC
4344 if test -n "$CC"; then
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4346 $as_echo "$CC" >&6; }
4347 else
4348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352
4353 fi
4354 if test -z "$CC"; then
4355   if test -n "$ac_tool_prefix"; then
4356   for ac_prog in cl.exe
4357   do
4358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 $as_echo_n "checking for $ac_word... " >&6; }
4362 if test "${ac_cv_prog_CC+set}" = set; then :
4363   $as_echo_n "(cached) " >&6
4364 else
4365   if test -n "$CC"; then
4366   ac_cv_prog_CC="$CC" # Let the user override the test.
4367 else
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371   IFS=$as_save_IFS
4372   test -z "$as_dir" && as_dir=.
4373     for ac_exec_ext in '' $ac_executable_extensions; do
4374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377     break 2
4378   fi
4379 done
4380   done
4381 IFS=$as_save_IFS
4382
4383 fi
4384 fi
4385 CC=$ac_cv_prog_CC
4386 if test -n "$CC"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4388 $as_echo "$CC" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393
4394
4395     test -n "$CC" && break
4396   done
4397 fi
4398 if test -z "$CC"; then
4399   ac_ct_CC=$CC
4400   for ac_prog in cl.exe
4401 do
4402   # Extract the first word of "$ac_prog", so it can be a program name with args.
4403 set dummy $ac_prog; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4407   $as_echo_n "(cached) " >&6
4408 else
4409   if test -n "$ac_ct_CC"; then
4410   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4414 do
4415   IFS=$as_save_IFS
4416   test -z "$as_dir" && as_dir=.
4417     for ac_exec_ext in '' $ac_executable_extensions; do
4418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419     ac_cv_prog_ac_ct_CC="$ac_prog"
4420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421     break 2
4422   fi
4423 done
4424   done
4425 IFS=$as_save_IFS
4426
4427 fi
4428 fi
4429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4430 if test -n "$ac_ct_CC"; then
4431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4432 $as_echo "$ac_ct_CC" >&6; }
4433 else
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438
4439   test -n "$ac_ct_CC" && break
4440 done
4441
4442   if test "x$ac_ct_CC" = x; then
4443     CC=""
4444   else
4445     case $cross_compiling:$ac_tool_warned in
4446 yes:)
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4449 ac_tool_warned=yes ;;
4450 esac
4451     CC=$ac_ct_CC
4452   fi
4453 fi
4454
4455 fi
4456
4457
4458 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460 as_fn_error "no acceptable C compiler found in \$PATH
4461 See \`config.log' for more details." "$LINENO" 5; }
4462
4463 # Provide some information about the compiler.
4464 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4465 set X $ac_compile
4466 ac_compiler=$2
4467 for ac_option in --version -v -V -qversion; do
4468   { { ac_try="$ac_compiler $ac_option >&5"
4469 case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4474 $as_echo "$ac_try_echo"; } >&5
4475   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4476   ac_status=$?
4477   if test -s conftest.err; then
4478     sed '10a\
4479 ... rest of stderr output deleted ...
4480          10q' conftest.err >conftest.er1
4481     cat conftest.er1 >&5
4482   fi
4483   rm -f conftest.er1 conftest.err
4484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4485   test $ac_status = 0; }
4486 done
4487
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 int
4492 main ()
4493 {
4494
4495   ;
4496   return 0;
4497 }
4498 _ACEOF
4499 ac_clean_files_save=$ac_clean_files
4500 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4501 # Try to create an executable without -o first, disregard a.out.
4502 # It will help us diagnose broken compilers, and finding out an intuition
4503 # of exeext.
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4505 $as_echo_n "checking whether the C compiler works... " >&6; }
4506 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4507
4508 # The possible output files:
4509 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4510
4511 ac_rmfiles=
4512 for ac_file in $ac_files
4513 do
4514   case $ac_file in
4515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4517   esac
4518 done
4519 rm -f $ac_rmfiles
4520
4521 if { { ac_try="$ac_link_default"
4522 case "(($ac_try" in
4523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4524   *) ac_try_echo=$ac_try;;
4525 esac
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528   (eval "$ac_link_default") 2>&5
4529   ac_status=$?
4530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531   test $ac_status = 0; }; then :
4532   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4533 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4534 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4535 # so that the user can short-circuit this test for compilers unknown to
4536 # Autoconf.
4537 for ac_file in $ac_files ''
4538 do
4539   test -f "$ac_file" || continue
4540   case $ac_file in
4541     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4542         ;;
4543     [ab].out )
4544         # We found the default executable, but exeext='' is most
4545         # certainly right.
4546         break;;
4547     *.* )
4548         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4549         then :; else
4550            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4551         fi
4552         # We set ac_cv_exeext here because the later test for it is not
4553         # safe: cross compilers may not add the suffix if given an `-o'
4554         # argument, so we may need to know it at that point already.
4555         # Even if this section looks crufty: it has the advantage of
4556         # actually working.
4557         break;;
4558     * )
4559         break;;
4560   esac
4561 done
4562 test "$ac_cv_exeext" = no && ac_cv_exeext=
4563
4564 else
4565   ac_file=''
4566 fi
4567 if test -z "$ac_file"; then :
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 $as_echo "$as_me: failed program was:" >&5
4571 sed 's/^/| /' conftest.$ac_ext >&5
4572
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 { as_fn_set_status 77
4576 as_fn_error "C compiler cannot create executables
4577 See \`config.log' for more details." "$LINENO" 5; }; }
4578 else
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo "yes" >&6; }
4581 fi
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583 $as_echo_n "checking for C compiler default output file name... " >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585 $as_echo "$ac_file" >&6; }
4586 ac_exeext=$ac_cv_exeext
4587
4588 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4589 ac_clean_files=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4591 $as_echo_n "checking for suffix of executables... " >&6; }
4592 if { { ac_try="$ac_link"
4593 case "(($ac_try" in
4594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595   *) ac_try_echo=$ac_try;;
4596 esac
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599   (eval "$ac_link") 2>&5
4600   ac_status=$?
4601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602   test $ac_status = 0; }; then :
4603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4606 # `rm'.
4607 for ac_file in conftest.exe conftest conftest.*; do
4608   test -f "$ac_file" || continue
4609   case $ac_file in
4610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612           break;;
4613     * ) break;;
4614   esac
4615 done
4616 else
4617   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error "cannot compute suffix of executables: cannot compile and link
4620 See \`config.log' for more details." "$LINENO" 5; }
4621 fi
4622 rm -f conftest conftest$ac_cv_exeext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4624 $as_echo "$ac_cv_exeext" >&6; }
4625
4626 rm -f conftest.$ac_ext
4627 EXEEXT=$ac_cv_exeext
4628 ac_exeext=$EXEEXT
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h.  */
4631 #include <stdio.h>
4632 int
4633 main ()
4634 {
4635 FILE *f = fopen ("conftest.out", "w");
4636  return ferror (f) || fclose (f) != 0;
4637
4638   ;
4639   return 0;
4640 }
4641 _ACEOF
4642 ac_clean_files="$ac_clean_files conftest.out"
4643 # Check that the compiler produces executables we can run.  If not, either
4644 # the compiler is broken, or we cross compile.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646 $as_echo_n "checking whether we are cross compiling... " >&6; }
4647 if test "$cross_compiling" != yes; then
4648   { { ac_try="$ac_link"
4649 case "(($ac_try" in
4650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651   *) ac_try_echo=$ac_try;;
4652 esac
4653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654 $as_echo "$ac_try_echo"; } >&5
4655   (eval "$ac_link") 2>&5
4656   ac_status=$?
4657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658   test $ac_status = 0; }
4659   if { ac_try='./conftest$ac_cv_exeext'
4660   { { case "(($ac_try" in
4661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662   *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666   (eval "$ac_try") 2>&5
4667   ac_status=$?
4668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669   test $ac_status = 0; }; }; then
4670     cross_compiling=no
4671   else
4672     if test "$cross_compiling" = maybe; then
4673         cross_compiling=yes
4674     else
4675         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error "cannot run C compiled programs.
4678 If you meant to cross compile, use \`--host'.
4679 See \`config.log' for more details." "$LINENO" 5; }
4680     fi
4681   fi
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684 $as_echo "$cross_compiling" >&6; }
4685
4686 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4687 ac_clean_files=$ac_clean_files_save
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689 $as_echo_n "checking for suffix of object files... " >&6; }
4690 if test "${ac_cv_objext+set}" = set; then :
4691   $as_echo_n "(cached) " >&6
4692 else
4693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h.  */
4695
4696 int
4697 main ()
4698 {
4699
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 rm -f conftest.o conftest.obj
4705 if { { ac_try="$ac_compile"
4706 case "(($ac_try" in
4707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708   *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712   (eval "$ac_compile") 2>&5
4713   ac_status=$?
4714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715   test $ac_status = 0; }; then :
4716   for ac_file in conftest.o conftest.obj conftest.*; do
4717   test -f "$ac_file" || continue;
4718   case $ac_file in
4719     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4720     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4721        break;;
4722   esac
4723 done
4724 else
4725   $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730 as_fn_error "cannot compute suffix of object files: cannot compile
4731 See \`config.log' for more details." "$LINENO" 5; }
4732 fi
4733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4736 $as_echo "$ac_cv_objext" >&6; }
4737 OBJEXT=$ac_cv_objext
4738 ac_objext=$OBJEXT
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h.  */
4746
4747 int
4748 main ()
4749 {
4750 #ifndef __GNUC__
4751        choke me
4752 #endif
4753
4754   ;
4755   return 0;
4756 }
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4759   ac_compiler_gnu=yes
4760 else
4761   ac_compiler_gnu=no
4762 fi
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4770   GCC=yes
4771 else
4772   GCC=
4773 fi
4774 ac_test_CFLAGS=${CFLAGS+set}
4775 ac_save_CFLAGS=$CFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4778 if test "${ac_cv_prog_cc_g+set}" = set; then :
4779   $as_echo_n "(cached) " >&6
4780 else
4781   ac_save_c_werror_flag=$ac_c_werror_flag
4782    ac_c_werror_flag=yes
4783    ac_cv_prog_cc_g=no
4784    CFLAGS="-g"
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 if ac_fn_c_try_compile "$LINENO"; then :
4797   ac_cv_prog_cc_g=yes
4798 else
4799   CFLAGS=""
4800       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h.  */
4802
4803 int
4804 main ()
4805 {
4806
4807   ;
4808   return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812
4813 else
4814   ac_c_werror_flag=$ac_save_c_werror_flag
4815          CFLAGS="-g"
4816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h.  */
4818
4819 int
4820 main ()
4821 {
4822
4823   ;
4824   return 0;
4825 }
4826 _ACEOF
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828   ac_cv_prog_cc_g=yes
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831 fi
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 fi
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835    ac_c_werror_flag=$ac_save_c_werror_flag
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838 $as_echo "$ac_cv_prog_cc_g" >&6; }
4839 if test "$ac_test_CFLAGS" = set; then
4840   CFLAGS=$ac_save_CFLAGS
4841 elif test $ac_cv_prog_cc_g = yes; then
4842   if test "$GCC" = yes; then
4843     CFLAGS="-g -O2"
4844   else
4845     CFLAGS="-g"
4846   fi
4847 else
4848   if test "$GCC" = yes; then
4849     CFLAGS="-O2"
4850   else
4851     CFLAGS=
4852   fi
4853 fi
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   ac_cv_prog_cc_c89=no
4860 ac_save_CC=$CC
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h.  */
4863 #include <stdarg.h>
4864 #include <stdio.h>
4865 #include <sys/types.h>
4866 #include <sys/stat.h>
4867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4868 struct buf { int x; };
4869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4870 static char *e (p, i)
4871      char **p;
4872      int i;
4873 {
4874   return p[i];
4875 }
4876 static char *f (char * (*g) (char **, int), char **p, ...)
4877 {
4878   char *s;
4879   va_list v;
4880   va_start (v,p);
4881   s = g (p, va_arg (v,int));
4882   va_end (v);
4883   return s;
4884 }
4885
4886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4887    function prototypes and stuff, but not '\xHH' hex character constants.
4888    These don't provoke an error unfortunately, instead are silently treated
4889    as 'x'.  The following induces an error, until -std is added to get
4890    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4891    array size at least.  It's necessary to write '\x00'==0 to get something
4892    that's true only with -std.  */
4893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4894
4895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4896    inside strings and character constants.  */
4897 #define FOO(x) 'x'
4898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4899
4900 int test (int i, double x);
4901 struct s1 {int (*f) (int a);};
4902 struct s2 {int (*f) (double a);};
4903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4904 int argc;
4905 char **argv;
4906 int
4907 main ()
4908 {
4909 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4910   ;
4911   return 0;
4912 }
4913 _ACEOF
4914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4915         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916 do
4917   CC="$ac_save_CC $ac_arg"
4918   if ac_fn_c_try_compile "$LINENO"; then :
4919   ac_cv_prog_cc_c89=$ac_arg
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext
4922   test "x$ac_cv_prog_cc_c89" != "xno" && break
4923 done
4924 rm -f conftest.$ac_ext
4925 CC=$ac_save_CC
4926
4927 fi
4928 # AC_CACHE_VAL
4929 case "x$ac_cv_prog_cc_c89" in
4930   x)
4931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4932 $as_echo "none needed" >&6; } ;;
4933   xno)
4934     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4935 $as_echo "unsupported" >&6; } ;;
4936   *)
4937     CC="$CC $ac_cv_prog_cc_c89"
4938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4940 esac
4941 if test "x$ac_cv_prog_cc_c89" != xno; then :
4942
4943 fi
4944
4945 ac_ext=c
4946 ac_cpp='$CPP $CPPFLAGS'
4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950
4951 depcc="$CC"   am_compiler_list=
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4954 $as_echo_n "checking dependency style of $depcc... " >&6; }
4955 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4959   # We make a subdir and do the tests there.  Otherwise we can end up
4960   # making bogus files that we don't know about and never remove.  For
4961   # instance it was reported that on HP-UX the gcc test will end up
4962   # making a dummy file named `D' -- because `-MD' means `put the output
4963   # in D'.
4964   mkdir conftest.dir
4965   # Copy depcomp to subdir because otherwise we won't find it if we're
4966   # using a relative directory.
4967   cp "$am_depcomp" conftest.dir
4968   cd conftest.dir
4969   # We will build objects and dependencies in a subdirectory because
4970   # it helps to detect inapplicable dependency modes.  For instance
4971   # both Tru64's cc and ICC support -MD to output dependencies as a
4972   # side effect of compilation, but ICC will put the dependencies in
4973   # the current directory while Tru64 will put them in the object
4974   # directory.
4975   mkdir sub
4976
4977   am_cv_CC_dependencies_compiler_type=none
4978   if test "$am_compiler_list" = ""; then
4979      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980   fi
4981   am__universal=false
4982   case " $depcc " in #(
4983      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4984      esac
4985
4986   for depmode in $am_compiler_list; do
4987     # Setup a source with many dependencies, because some compilers
4988     # like to wrap large dependency lists on column 80 (with \), and
4989     # we should not choose a depcomp mode which is confused by this.
4990     #
4991     # We need to recreate these files for each test, as the compiler may
4992     # overwrite some of them when testing with obscure command lines.
4993     # This happens at least with the AIX C compiler.
4994     : > sub/conftest.c
4995     for i in 1 2 3 4 5 6; do
4996       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4997       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4998       # Solaris 8's {/usr,}/bin/sh.
4999       touch sub/conftst$i.h
5000     done
5001     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5002
5003     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5004     # mode.  It turns out that the SunPro C++ compiler does not properly
5005     # handle `-M -o', and we need to detect this.  Also, some Intel
5006     # versions had trouble with output in subdirs
5007     am__obj=sub/conftest.${OBJEXT-o}
5008     am__minus_obj="-o $am__obj"
5009     case $depmode in
5010     gcc)
5011       # This depmode causes a compiler race in universal mode.
5012       test "$am__universal" = false || continue
5013       ;;
5014     nosideeffect)
5015       # after this tag, mechanisms are not by side-effect, so they'll
5016       # only be used when explicitly requested
5017       if test "x$enable_dependency_tracking" = xyes; then
5018         continue
5019       else
5020         break
5021       fi
5022       ;;
5023     msvisualcpp | msvcmsys)
5024       # This compiler won't grok `-c -o', but also, the minuso test has
5025       # not run yet.  These depmodes are late enough in the game, and
5026       # so weak that their functioning should not be impacted.
5027       am__obj=conftest.${OBJEXT-o}
5028       am__minus_obj=
5029       ;;
5030     none) break ;;
5031     esac
5032     if depmode=$depmode \
5033        source=sub/conftest.c object=$am__obj \
5034        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5035        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5036          >/dev/null 2>conftest.err &&
5037        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5038        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5039        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5040        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5041       # icc doesn't choke on unknown options, it will just issue warnings
5042       # or remarks (even with -Werror).  So we grep stderr for any message
5043       # that says an option was ignored or not supported.
5044       # When given -MP, icc 7.0 and 7.1 complain thusly:
5045       #   icc: Command line warning: ignoring option '-M'; no argument required
5046       # The diagnosis changed in icc 8.0:
5047       #   icc: Command line remark: option '-MP' not supported
5048       if (grep 'ignoring option' conftest.err ||
5049           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5050         am_cv_CC_dependencies_compiler_type=$depmode
5051         break
5052       fi
5053     fi
5054   done
5055
5056   cd ..
5057   rm -rf conftest.dir
5058 else
5059   am_cv_CC_dependencies_compiler_type=none
5060 fi
5061
5062 fi
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5064 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5065 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066
5067  if
5068   test "x$enable_dependency_tracking" != xno \
5069   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5070   am__fastdepCC_TRUE=
5071   am__fastdepCC_FALSE='#'
5072 else
5073   am__fastdepCC_TRUE='#'
5074   am__fastdepCC_FALSE=
5075 fi
5076
5077
5078
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5085 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5086 # On Suns, sometimes $CPP names a directory.
5087 if test -n "$CPP" && test -d "$CPP"; then
5088   CPP=
5089 fi
5090 if test -z "$CPP"; then
5091   if test "${ac_cv_prog_CPP+set}" = set; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094       # Double quotes because CPP needs to be expanded
5095     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5096     do
5097       ac_preproc_ok=false
5098 for ac_c_preproc_warn_flag in '' yes
5099 do
5100   # Use a header file that comes with gcc, so configuring glibc
5101   # with a fresh cross-compiler works.
5102   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103   # <limits.h> exists even on freestanding compilers.
5104   # On the NeXT, cc -E runs the code through the compiler's parser,
5105   # not just through cpp. "Syntax error" is here to catch this case.
5106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h.  */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113                      Syntax error
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116
5117 else
5118   # Broken: fails on valid input.
5119 continue
5120 fi
5121 rm -f conftest.err conftest.$ac_ext
5122
5123   # OK, works on sane cases.  Now check whether nonexistent headers
5124   # can be detected and how.
5125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h.  */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5130   # Broken: success on invalid input.
5131 continue
5132 else
5133   # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5143   break
5144 fi
5145
5146     done
5147     ac_cv_prog_CPP=$CPP
5148
5149 fi
5150   CPP=$ac_cv_prog_CPP
5151 else
5152   ac_cv_prog_CPP=$CPP
5153 fi
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5155 $as_echo "$CPP" >&6; }
5156 ac_preproc_ok=false
5157 for ac_c_preproc_warn_flag in '' yes
5158 do
5159   # Use a header file that comes with gcc, so configuring glibc
5160   # with a fresh cross-compiler works.
5161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162   # <limits.h> exists even on freestanding compilers.
5163   # On the NeXT, cc -E runs the code through the compiler's parser,
5164   # not just through cpp. "Syntax error" is here to catch this case.
5165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h.  */
5167 #ifdef __STDC__
5168 # include <limits.h>
5169 #else
5170 # include <assert.h>
5171 #endif
5172                      Syntax error
5173 _ACEOF
5174 if ac_fn_c_try_cpp "$LINENO"; then :
5175
5176 else
5177   # Broken: fails on valid input.
5178 continue
5179 fi
5180 rm -f conftest.err conftest.$ac_ext
5181
5182   # OK, works on sane cases.  Now check whether nonexistent headers
5183   # can be detected and how.
5184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h.  */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if ac_fn_c_try_cpp "$LINENO"; then :
5189   # Broken: success on invalid input.
5190 continue
5191 else
5192   # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5195 fi
5196 rm -f conftest.err conftest.$ac_ext
5197
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then :
5202
5203 else
5204   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5208 fi
5209
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220   $as_echo_n "(cached) " >&6
5221 else
5222   if test -z "$GREP"; then
5223   ac_path_GREP_found=false
5224   # Loop through the user's path and test for each of PROGNAME-LIST
5225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 do
5228   IFS=$as_save_IFS
5229   test -z "$as_dir" && as_dir=.
5230     for ac_prog in grep ggrep; do
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5233       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235   # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5237 *GNU*)
5238   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5239 *)
5240   ac_count=0
5241   $as_echo_n 0123456789 >"conftest.in"
5242   while :
5243   do
5244     cat "conftest.in" "conftest.in" >"conftest.tmp"
5245     mv "conftest.tmp" "conftest.in"
5246     cp "conftest.in" "conftest.nl"
5247     $as_echo 'GREP' >> "conftest.nl"
5248     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5249     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5250     as_fn_arith $ac_count + 1 && ac_count=$as_val
5251     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252       # Best one so far, save it but keep looking for a better one
5253       ac_cv_path_GREP="$ac_path_GREP"
5254       ac_path_GREP_max=$ac_count
5255     fi
5256     # 10*(2^10) chars as input seems more than enough
5257     test $ac_count -gt 10 && break
5258   done
5259   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 esac
5261
5262       $ac_path_GREP_found && break 3
5263     done
5264   done
5265   done
5266 IFS=$as_save_IFS
5267   if test -z "$ac_cv_path_GREP"; then
5268     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269   fi
5270 else
5271   ac_cv_path_GREP=$GREP
5272 fi
5273
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277  GREP="$ac_cv_path_GREP"
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5286    then ac_cv_path_EGREP="$GREP -E"
5287    else
5288      if test -z "$EGREP"; then
5289   ac_path_EGREP_found=false
5290   # Loop through the user's path and test for each of PROGNAME-LIST
5291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_prog in egrep; do
5297     for ac_exec_ext in '' $ac_executable_extensions; do
5298       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5299       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301   # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5303 *GNU*)
5304   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5305 *)
5306   ac_count=0
5307   $as_echo_n 0123456789 >"conftest.in"
5308   while :
5309   do
5310     cat "conftest.in" "conftest.in" >"conftest.tmp"
5311     mv "conftest.tmp" "conftest.in"
5312     cp "conftest.in" "conftest.nl"
5313     $as_echo 'EGREP' >> "conftest.nl"
5314     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5315     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5316     as_fn_arith $ac_count + 1 && ac_count=$as_val
5317     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318       # Best one so far, save it but keep looking for a better one
5319       ac_cv_path_EGREP="$ac_path_EGREP"
5320       ac_path_EGREP_max=$ac_count
5321     fi
5322     # 10*(2^10) chars as input seems more than enough
5323     test $ac_count -gt 10 && break
5324   done
5325   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5326 esac
5327
5328       $ac_path_EGREP_found && break 3
5329     done
5330   done
5331   done
5332 IFS=$as_save_IFS
5333   if test -z "$ac_cv_path_EGREP"; then
5334     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5335   fi
5336 else
5337   ac_cv_path_EGREP=$EGREP
5338 fi
5339
5340    fi
5341 fi
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344  EGREP="$ac_cv_path_EGREP"
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h.  */
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5358
5359 int
5360 main ()
5361 {
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368   ac_cv_header_stdc=yes
5369 else
5370   ac_cv_header_stdc=no
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373
5374 if test $ac_cv_header_stdc = yes; then
5375   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h.  */
5378 #include <string.h>
5379
5380 _ACEOF
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382   $EGREP "memchr" >/dev/null 2>&1; then :
5383
5384 else
5385   ac_cv_header_stdc=no
5386 fi
5387 rm -f conftest*
5388
5389 fi
5390
5391 if test $ac_cv_header_stdc = yes; then
5392   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h.  */
5395 #include <stdlib.h>
5396
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399   $EGREP "free" >/dev/null 2>&1; then :
5400
5401 else
5402   ac_cv_header_stdc=no
5403 fi
5404 rm -f conftest*
5405
5406 fi
5407
5408 if test $ac_cv_header_stdc = yes; then
5409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410   if test "$cross_compiling" = yes; then :
5411   :
5412 else
5413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h.  */
5415 #include <ctype.h>
5416 #include <stdlib.h>
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5420 #else
5421 # define ISLOWER(c) \
5422                    (('a' <= (c) && (c) <= 'i') \
5423                      || ('j' <= (c) && (c) <= 'r') \
5424                      || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5426 #endif
5427
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5429 int
5430 main ()
5431 {
5432   int i;
5433   for (i = 0; i < 256; i++)
5434     if (XOR (islower (i), ISLOWER (i))
5435         || toupper (i) != TOUPPER (i))
5436       return 2;
5437   return 0;
5438 }
5439 _ACEOF
5440 if ac_fn_c_try_run "$LINENO"; then :
5441
5442 else
5443   ac_cv_header_stdc=no
5444 fi
5445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5446   conftest.$ac_objext conftest.beam conftest.$ac_ext
5447 fi
5448
5449 fi
5450 fi
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5454
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5456
5457 fi
5458
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5461                   inttypes.h stdint.h unistd.h
5462 do :
5463   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5465 "
5466 eval as_val=\$$as_ac_Header
5467    if test "x$as_val" = x""yes; then :
5468   cat >>confdefs.h <<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5471
5472 fi
5473
5474 done
5475
5476
5477
5478   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5480   MINIX=yes
5481 else
5482   MINIX=
5483 fi
5484
5485
5486   if test "$MINIX" = yes; then
5487
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5489
5490
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5492
5493
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5495
5496   fi
5497
5498
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506
5507 #         define __EXTENSIONS__ 1
5508           $ac_includes_default
5509 int
5510 main ()
5511 {
5512
5513   ;
5514   return 0;
5515 }
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518   ac_cv_safe_to_define___extensions__=yes
5519 else
5520   ac_cv_safe_to_define___extensions__=no
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 fi
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526   test $ac_cv_safe_to_define___extensions__ = yes &&
5527     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5528
5529   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5530
5531   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5532
5533   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5534
5535   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5536
5537
5538
5539 # Check for programs
5540 ac_ext=c
5541 ac_cpp='$CPP $CPPFLAGS'
5542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545 if test -n "$ac_tool_prefix"; then
5546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if test "${ac_cv_prog_CC+set}" = set; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   if test -n "$CC"; then
5554   ac_cv_prog_CC="$CC" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561     for ac_exec_ext in '' $ac_executable_extensions; do
5562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565     break 2
5566   fi
5567 done
5568   done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 CC=$ac_cv_prog_CC
5574 if test -n "$CC"; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5576 $as_echo "$CC" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582
5583 fi
5584 if test -z "$ac_cv_prog_CC"; then
5585   ac_ct_CC=$CC
5586   # Extract the first word of "gcc", so it can be a program name with args.
5587 set dummy gcc; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   if test -n "$ac_ct_CC"; then
5594   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601     for ac_exec_ext in '' $ac_executable_extensions; do
5602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603     ac_cv_prog_ac_ct_CC="gcc"
5604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608   done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5614 if test -n "$ac_ct_CC"; then
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5616 $as_echo "$ac_ct_CC" >&6; }
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622   if test "x$ac_ct_CC" = x; then
5623     CC=""
5624   else
5625     case $cross_compiling:$ac_tool_warned in
5626 yes:)
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629 ac_tool_warned=yes ;;
5630 esac
5631     CC=$ac_ct_CC
5632   fi
5633 else
5634   CC="$ac_cv_prog_CC"
5635 fi
5636
5637 if test -z "$CC"; then
5638           if test -n "$ac_tool_prefix"; then
5639     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}cc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if test "${ac_cv_prog_CC+set}" = set; then :
5644   $as_echo_n "(cached) " >&6
5645 else
5646   if test -n "$CC"; then
5647   ac_cv_prog_CC="$CC" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5651 do
5652   IFS=$as_save_IFS
5653   test -z "$as_dir" && as_dir=.
5654     for ac_exec_ext in '' $ac_executable_extensions; do
5655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656     ac_cv_prog_CC="${ac_tool_prefix}cc"
5657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658     break 2
5659   fi
5660 done
5661   done
5662 IFS=$as_save_IFS
5663
5664 fi
5665 fi
5666 CC=$ac_cv_prog_CC
5667 if test -n "$CC"; then
5668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669 $as_echo "$CC" >&6; }
5670 else
5671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5673 fi
5674
5675
5676   fi
5677 fi
5678 if test -z "$CC"; then
5679   # Extract the first word of "cc", so it can be a program name with args.
5680 set dummy cc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_CC+set}" = set; then :
5684   $as_echo_n "(cached) " >&6
5685 else
5686   if test -n "$CC"; then
5687   ac_cv_prog_CC="$CC" # Let the user override the test.
5688 else
5689   ac_prog_rejected=no
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5692 do
5693   IFS=$as_save_IFS
5694   test -z "$as_dir" && as_dir=.
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5698        ac_prog_rejected=yes
5699        continue
5700      fi
5701     ac_cv_prog_CC="cc"
5702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703     break 2
5704   fi
5705 done
5706   done
5707 IFS=$as_save_IFS
5708
5709 if test $ac_prog_rejected = yes; then
5710   # We found a bogon in the path, so make sure we never use it.
5711   set dummy $ac_cv_prog_CC
5712   shift
5713   if test $# != 0; then
5714     # We chose a different compiler from the bogus one.
5715     # However, it has the same basename, so the bogon will be chosen
5716     # first if we set CC to just the basename; use the full file name.
5717     shift
5718     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5719   fi
5720 fi
5721 fi
5722 fi
5723 CC=$ac_cv_prog_CC
5724 if test -n "$CC"; then
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5726 $as_echo "$CC" >&6; }
5727 else
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 fi
5734 if test -z "$CC"; then
5735   if test -n "$ac_tool_prefix"; then
5736   for ac_prog in cl.exe
5737   do
5738     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if test "${ac_cv_prog_CC+set}" = set; then :
5743   $as_echo_n "(cached) " >&6
5744 else
5745   if test -n "$CC"; then
5746   ac_cv_prog_CC="$CC" # Let the user override the test.
5747 else
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5749 for as_dir in $PATH
5750 do
5751   IFS=$as_save_IFS
5752   test -z "$as_dir" && as_dir=.
5753     for ac_exec_ext in '' $ac_executable_extensions; do
5754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5755     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757     break 2
5758   fi
5759 done
5760   done
5761 IFS=$as_save_IFS
5762
5763 fi
5764 fi
5765 CC=$ac_cv_prog_CC
5766 if test -n "$CC"; then
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5768 $as_echo "$CC" >&6; }
5769 else
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5772 fi
5773
5774
5775     test -n "$CC" && break
5776   done
5777 fi
5778 if test -z "$CC"; then
5779   ac_ct_CC=$CC
5780   for ac_prog in cl.exe
5781 do
5782   # Extract the first word of "$ac_prog", so it can be a program name with args.
5783 set dummy $ac_prog; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   if test -n "$ac_ct_CC"; then
5790   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797     for ac_exec_ext in '' $ac_executable_extensions; do
5798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799     ac_cv_prog_ac_ct_CC="$ac_prog"
5800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804   done
5805 IFS=$as_save_IFS
5806
5807 fi
5808 fi
5809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5810 if test -n "$ac_ct_CC"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5812 $as_echo "$ac_ct_CC" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819   test -n "$ac_ct_CC" && break
5820 done
5821
5822   if test "x$ac_ct_CC" = x; then
5823     CC=""
5824   else
5825     case $cross_compiling:$ac_tool_warned in
5826 yes:)
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5829 ac_tool_warned=yes ;;
5830 esac
5831     CC=$ac_ct_CC
5832   fi
5833 fi
5834
5835 fi
5836
5837
5838 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5840 as_fn_error "no acceptable C compiler found in \$PATH
5841 See \`config.log' for more details." "$LINENO" 5; }
5842
5843 # Provide some information about the compiler.
5844 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5845 set X $ac_compile
5846 ac_compiler=$2
5847 for ac_option in --version -v -V -qversion; do
5848   { { ac_try="$ac_compiler $ac_option >&5"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5854 $as_echo "$ac_try_echo"; } >&5
5855   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5856   ac_status=$?
5857   if test -s conftest.err; then
5858     sed '10a\
5859 ... rest of stderr output deleted ...
5860          10q' conftest.err >conftest.er1
5861     cat conftest.er1 >&5
5862   fi
5863   rm -f conftest.er1 conftest.err
5864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865   test $ac_status = 0; }
5866 done
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5869 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5870 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h.  */
5875
5876 int
5877 main ()
5878 {
5879 #ifndef __GNUC__
5880        choke me
5881 #endif
5882
5883   ;
5884   return 0;
5885 }
5886 _ACEOF
5887 if ac_fn_c_try_compile "$LINENO"; then :
5888   ac_compiler_gnu=yes
5889 else
5890   ac_compiler_gnu=no
5891 fi
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5894
5895 fi
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5897 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5898 if test $ac_compiler_gnu = yes; then
5899   GCC=yes
5900 else
5901   GCC=
5902 fi
5903 ac_test_CFLAGS=${CFLAGS+set}
5904 ac_save_CFLAGS=$CFLAGS
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5906 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5907 if test "${ac_cv_prog_cc_g+set}" = set; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   ac_save_c_werror_flag=$ac_c_werror_flag
5911    ac_c_werror_flag=yes
5912    ac_cv_prog_cc_g=no
5913    CFLAGS="-g"
5914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h.  */
5916
5917 int
5918 main ()
5919 {
5920
5921   ;
5922   return 0;
5923 }
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"; then :
5926   ac_cv_prog_cc_g=yes
5927 else
5928   CFLAGS=""
5929       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h.  */
5931
5932 int
5933 main ()
5934 {
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941
5942 else
5943   ac_c_werror_flag=$ac_save_c_werror_flag
5944          CFLAGS="-g"
5945          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h.  */
5947
5948 int
5949 main ()
5950 {
5951
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 if ac_fn_c_try_compile "$LINENO"; then :
5957   ac_cv_prog_cc_g=yes
5958 fi
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964    ac_c_werror_flag=$ac_save_c_werror_flag
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5967 $as_echo "$ac_cv_prog_cc_g" >&6; }
5968 if test "$ac_test_CFLAGS" = set; then
5969   CFLAGS=$ac_save_CFLAGS
5970 elif test $ac_cv_prog_cc_g = yes; then
5971   if test "$GCC" = yes; then
5972     CFLAGS="-g -O2"
5973   else
5974     CFLAGS="-g"
5975   fi
5976 else
5977   if test "$GCC" = yes; then
5978     CFLAGS="-O2"
5979   else
5980     CFLAGS=
5981   fi
5982 fi
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5985 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   ac_cv_prog_cc_c89=no
5989 ac_save_CC=$CC
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h.  */
5992 #include <stdarg.h>
5993 #include <stdio.h>
5994 #include <sys/types.h>
5995 #include <sys/stat.h>
5996 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5997 struct buf { int x; };
5998 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5999 static char *e (p, i)
6000      char **p;
6001      int i;
6002 {
6003   return p[i];
6004 }
6005 static char *f (char * (*g) (char **, int), char **p, ...)
6006 {
6007   char *s;
6008   va_list v;
6009   va_start (v,p);
6010   s = g (p, va_arg (v,int));
6011   va_end (v);
6012   return s;
6013 }
6014
6015 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6016    function prototypes and stuff, but not '\xHH' hex character constants.
6017    These don't provoke an error unfortunately, instead are silently treated
6018    as 'x'.  The following induces an error, until -std is added to get
6019    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6020    array size at least.  It's necessary to write '\x00'==0 to get something
6021    that's true only with -std.  */
6022 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6023
6024 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6025    inside strings and character constants.  */
6026 #define FOO(x) 'x'
6027 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6028
6029 int test (int i, double x);
6030 struct s1 {int (*f) (int a);};
6031 struct s2 {int (*f) (double a);};
6032 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6033 int argc;
6034 char **argv;
6035 int
6036 main ()
6037 {
6038 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6039   ;
6040   return 0;
6041 }
6042 _ACEOF
6043 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6044         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6045 do
6046   CC="$ac_save_CC $ac_arg"
6047   if ac_fn_c_try_compile "$LINENO"; then :
6048   ac_cv_prog_cc_c89=$ac_arg
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext
6051   test "x$ac_cv_prog_cc_c89" != "xno" && break
6052 done
6053 rm -f conftest.$ac_ext
6054 CC=$ac_save_CC
6055
6056 fi
6057 # AC_CACHE_VAL
6058 case "x$ac_cv_prog_cc_c89" in
6059   x)
6060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6061 $as_echo "none needed" >&6; } ;;
6062   xno)
6063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6064 $as_echo "unsupported" >&6; } ;;
6065   *)
6066     CC="$CC $ac_cv_prog_cc_c89"
6067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6068 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6069 esac
6070 if test "x$ac_cv_prog_cc_c89" != xno; then :
6071
6072 fi
6073
6074 ac_ext=c
6075 ac_cpp='$CPP $CPPFLAGS'
6076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
6080 depcc="$CC"   am_compiler_list=
6081
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6083 $as_echo_n "checking dependency style of $depcc... " >&6; }
6084 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6085   $as_echo_n "(cached) " >&6
6086 else
6087   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6088   # We make a subdir and do the tests there.  Otherwise we can end up
6089   # making bogus files that we don't know about and never remove.  For
6090   # instance it was reported that on HP-UX the gcc test will end up
6091   # making a dummy file named `D' -- because `-MD' means `put the output
6092   # in D'.
6093   mkdir conftest.dir
6094   # Copy depcomp to subdir because otherwise we won't find it if we're
6095   # using a relative directory.
6096   cp "$am_depcomp" conftest.dir
6097   cd conftest.dir
6098   # We will build objects and dependencies in a subdirectory because
6099   # it helps to detect inapplicable dependency modes.  For instance
6100   # both Tru64's cc and ICC support -MD to output dependencies as a
6101   # side effect of compilation, but ICC will put the dependencies in
6102   # the current directory while Tru64 will put them in the object
6103   # directory.
6104   mkdir sub
6105
6106   am_cv_CC_dependencies_compiler_type=none
6107   if test "$am_compiler_list" = ""; then
6108      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6109   fi
6110   am__universal=false
6111   case " $depcc " in #(
6112      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6113      esac
6114
6115   for depmode in $am_compiler_list; do
6116     # Setup a source with many dependencies, because some compilers
6117     # like to wrap large dependency lists on column 80 (with \), and
6118     # we should not choose a depcomp mode which is confused by this.
6119     #
6120     # We need to recreate these files for each test, as the compiler may
6121     # overwrite some of them when testing with obscure command lines.
6122     # This happens at least with the AIX C compiler.
6123     : > sub/conftest.c
6124     for i in 1 2 3 4 5 6; do
6125       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6126       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6127       # Solaris 8's {/usr,}/bin/sh.
6128       touch sub/conftst$i.h
6129     done
6130     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6131
6132     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6133     # mode.  It turns out that the SunPro C++ compiler does not properly
6134     # handle `-M -o', and we need to detect this.  Also, some Intel
6135     # versions had trouble with output in subdirs
6136     am__obj=sub/conftest.${OBJEXT-o}
6137     am__minus_obj="-o $am__obj"
6138     case $depmode in
6139     gcc)
6140       # This depmode causes a compiler race in universal mode.
6141       test "$am__universal" = false || continue
6142       ;;
6143     nosideeffect)
6144       # after this tag, mechanisms are not by side-effect, so they'll
6145       # only be used when explicitly requested
6146       if test "x$enable_dependency_tracking" = xyes; then
6147         continue
6148       else
6149         break
6150       fi
6151       ;;
6152     msvisualcpp | msvcmsys)
6153       # This compiler won't grok `-c -o', but also, the minuso test has
6154       # not run yet.  These depmodes are late enough in the game, and
6155       # so weak that their functioning should not be impacted.
6156       am__obj=conftest.${OBJEXT-o}
6157       am__minus_obj=
6158       ;;
6159     none) break ;;
6160     esac
6161     if depmode=$depmode \
6162        source=sub/conftest.c object=$am__obj \
6163        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6164        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6165          >/dev/null 2>conftest.err &&
6166        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6168        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6170       # icc doesn't choke on unknown options, it will just issue warnings
6171       # or remarks (even with -Werror).  So we grep stderr for any message
6172       # that says an option was ignored or not supported.
6173       # When given -MP, icc 7.0 and 7.1 complain thusly:
6174       #   icc: Command line warning: ignoring option '-M'; no argument required
6175       # The diagnosis changed in icc 8.0:
6176       #   icc: Command line remark: option '-MP' not supported
6177       if (grep 'ignoring option' conftest.err ||
6178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6179         am_cv_CC_dependencies_compiler_type=$depmode
6180         break
6181       fi
6182     fi
6183   done
6184
6185   cd ..
6186   rm -rf conftest.dir
6187 else
6188   am_cv_CC_dependencies_compiler_type=none
6189 fi
6190
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6195
6196  if
6197   test "x$enable_dependency_tracking" != xno \
6198   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6199   am__fastdepCC_TRUE=
6200   am__fastdepCC_FALSE='#'
6201 else
6202   am__fastdepCC_TRUE='#'
6203   am__fastdepCC_FALSE=
6204 fi
6205
6206
6207 ac_ext=cpp
6208 ac_cpp='$CXXCPP $CPPFLAGS'
6209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6212 if test -z "$CXX"; then
6213   if test -n "$CCC"; then
6214     CXX=$CCC
6215   else
6216     if test -n "$ac_tool_prefix"; then
6217   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6218   do
6219     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6220 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_CXX+set}" = set; then :
6224   $as_echo_n "(cached) " >&6
6225 else
6226   if test -n "$CXX"; then
6227   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228 else
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241   done
6242 IFS=$as_save_IFS
6243
6244 fi
6245 fi
6246 CXX=$ac_cv_prog_CXX
6247 if test -n "$CXX"; then
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6249 $as_echo "$CXX" >&6; }
6250 else
6251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 fi
6254
6255
6256     test -n "$CXX" && break
6257   done
6258 fi
6259 if test -z "$CXX"; then
6260   ac_ct_CXX=$CXX
6261   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6262 do
6263   # Extract the first word of "$ac_prog", so it can be a program name with args.
6264 set dummy $ac_prog; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6268   $as_echo_n "(cached) " >&6
6269 else
6270   if test -n "$ac_ct_CXX"; then
6271   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276   IFS=$as_save_IFS
6277   test -z "$as_dir" && as_dir=.
6278     for ac_exec_ext in '' $ac_executable_extensions; do
6279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280     ac_cv_prog_ac_ct_CXX="$ac_prog"
6281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282     break 2
6283   fi
6284 done
6285   done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6291 if test -n "$ac_ct_CXX"; then
6292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6293 $as_echo "$ac_ct_CXX" >&6; }
6294 else
6295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299
6300   test -n "$ac_ct_CXX" && break
6301 done
6302
6303   if test "x$ac_ct_CXX" = x; then
6304     CXX="g++"
6305   else
6306     case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312     CXX=$ac_ct_CXX
6313   fi
6314 fi
6315
6316   fi
6317 fi
6318 # Provide some information about the compiler.
6319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6320 set X $ac_compile
6321 ac_compiler=$2
6322 for ac_option in --version -v -V -qversion; do
6323   { { ac_try="$ac_compiler $ac_option >&5"
6324 case "(($ac_try" in
6325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326   *) ac_try_echo=$ac_try;;
6327 esac
6328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6329 $as_echo "$ac_try_echo"; } >&5
6330   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6331   ac_status=$?
6332   if test -s conftest.err; then
6333     sed '10a\
6334 ... rest of stderr output deleted ...
6335          10q' conftest.err >conftest.er1
6336     cat conftest.er1 >&5
6337   fi
6338   rm -f conftest.er1 conftest.err
6339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6340   test $ac_status = 0; }
6341 done
6342
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6344 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6345 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6346   $as_echo_n "(cached) " >&6
6347 else
6348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h.  */
6350
6351 int
6352 main ()
6353 {
6354 #ifndef __GNUC__
6355        choke me
6356 #endif
6357
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 if ac_fn_cxx_try_compile "$LINENO"; then :
6363   ac_compiler_gnu=yes
6364 else
6365   ac_compiler_gnu=no
6366 fi
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6369
6370 fi
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6372 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6373 if test $ac_compiler_gnu = yes; then
6374   GXX=yes
6375 else
6376   GXX=
6377 fi
6378 ac_test_CXXFLAGS=${CXXFLAGS+set}
6379 ac_save_CXXFLAGS=$CXXFLAGS
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6381 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6382 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6383   $as_echo_n "(cached) " >&6
6384 else
6385   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6386    ac_cxx_werror_flag=yes
6387    ac_cv_prog_cxx_g=no
6388    CXXFLAGS="-g"
6389    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h.  */
6391
6392 int
6393 main ()
6394 {
6395
6396   ;
6397   return 0;
6398 }
6399 _ACEOF
6400 if ac_fn_cxx_try_compile "$LINENO"; then :
6401   ac_cv_prog_cxx_g=yes
6402 else
6403   CXXFLAGS=""
6404       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h.  */
6406
6407 int
6408 main ()
6409 {
6410
6411   ;
6412   return 0;
6413 }
6414 _ACEOF
6415 if ac_fn_cxx_try_compile "$LINENO"; then :
6416
6417 else
6418   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6419          CXXFLAGS="-g"
6420          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h.  */
6422
6423 int
6424 main ()
6425 {
6426
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_cxx_try_compile "$LINENO"; then :
6432   ac_cv_prog_cxx_g=yes
6433 fi
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 fi
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 fi
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6442 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6443 if test "$ac_test_CXXFLAGS" = set; then
6444   CXXFLAGS=$ac_save_CXXFLAGS
6445 elif test $ac_cv_prog_cxx_g = yes; then
6446   if test "$GXX" = yes; then
6447     CXXFLAGS="-g -O2"
6448   else
6449     CXXFLAGS="-g"
6450   fi
6451 else
6452   if test "$GXX" = yes; then
6453     CXXFLAGS="-O2"
6454   else
6455     CXXFLAGS=
6456   fi
6457 fi
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463
6464 depcc="$CXX"  am_compiler_list=
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6467 $as_echo_n "checking dependency style of $depcc... " >&6; }
6468 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6472   # We make a subdir and do the tests there.  Otherwise we can end up
6473   # making bogus files that we don't know about and never remove.  For
6474   # instance it was reported that on HP-UX the gcc test will end up
6475   # making a dummy file named `D' -- because `-MD' means `put the output
6476   # in D'.
6477   mkdir conftest.dir
6478   # Copy depcomp to subdir because otherwise we won't find it if we're
6479   # using a relative directory.
6480   cp "$am_depcomp" conftest.dir
6481   cd conftest.dir
6482   # We will build objects and dependencies in a subdirectory because
6483   # it helps to detect inapplicable dependency modes.  For instance
6484   # both Tru64's cc and ICC support -MD to output dependencies as a
6485   # side effect of compilation, but ICC will put the dependencies in
6486   # the current directory while Tru64 will put them in the object
6487   # directory.
6488   mkdir sub
6489
6490   am_cv_CXX_dependencies_compiler_type=none
6491   if test "$am_compiler_list" = ""; then
6492      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6493   fi
6494   am__universal=false
6495   case " $depcc " in #(
6496      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6497      esac
6498
6499   for depmode in $am_compiler_list; do
6500     # Setup a source with many dependencies, because some compilers
6501     # like to wrap large dependency lists on column 80 (with \), and
6502     # we should not choose a depcomp mode which is confused by this.
6503     #
6504     # We need to recreate these files for each test, as the compiler may
6505     # overwrite some of them when testing with obscure command lines.
6506     # This happens at least with the AIX C compiler.
6507     : > sub/conftest.c
6508     for i in 1 2 3 4 5 6; do
6509       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6510       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6511       # Solaris 8's {/usr,}/bin/sh.
6512       touch sub/conftst$i.h
6513     done
6514     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6515
6516     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6517     # mode.  It turns out that the SunPro C++ compiler does not properly
6518     # handle `-M -o', and we need to detect this.  Also, some Intel
6519     # versions had trouble with output in subdirs
6520     am__obj=sub/conftest.${OBJEXT-o}
6521     am__minus_obj="-o $am__obj"
6522     case $depmode in
6523     gcc)
6524       # This depmode causes a compiler race in universal mode.
6525       test "$am__universal" = false || continue
6526       ;;
6527     nosideeffect)
6528       # after this tag, mechanisms are not by side-effect, so they'll
6529       # only be used when explicitly requested
6530       if test "x$enable_dependency_tracking" = xyes; then
6531         continue
6532       else
6533         break
6534       fi
6535       ;;
6536     msvisualcpp | msvcmsys)
6537       # This compiler won't grok `-c -o', but also, the minuso test has
6538       # not run yet.  These depmodes are late enough in the game, and
6539       # so weak that their functioning should not be impacted.
6540       am__obj=conftest.${OBJEXT-o}
6541       am__minus_obj=
6542       ;;
6543     none) break ;;
6544     esac
6545     if depmode=$depmode \
6546        source=sub/conftest.c object=$am__obj \
6547        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6548        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6549          >/dev/null 2>conftest.err &&
6550        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6551        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6552        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6553        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6554       # icc doesn't choke on unknown options, it will just issue warnings
6555       # or remarks (even with -Werror).  So we grep stderr for any message
6556       # that says an option was ignored or not supported.
6557       # When given -MP, icc 7.0 and 7.1 complain thusly:
6558       #   icc: Command line warning: ignoring option '-M'; no argument required
6559       # The diagnosis changed in icc 8.0:
6560       #   icc: Command line remark: option '-MP' not supported
6561       if (grep 'ignoring option' conftest.err ||
6562           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6563         am_cv_CXX_dependencies_compiler_type=$depmode
6564         break
6565       fi
6566     fi
6567   done
6568
6569   cd ..
6570   rm -rf conftest.dir
6571 else
6572   am_cv_CXX_dependencies_compiler_type=none
6573 fi
6574
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6577 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6578 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6579
6580  if
6581   test "x$enable_dependency_tracking" != xno \
6582   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6583   am__fastdepCXX_TRUE=
6584   am__fastdepCXX_FALSE='#'
6585 else
6586   am__fastdepCXX_TRUE='#'
6587   am__fastdepCXX_FALSE=
6588 fi
6589
6590
6591    case $ac_cv_prog_cc_stdc in #(
6592   no) :
6593     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6594   *) :
6595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6596 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6597 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6598   $as_echo_n "(cached) " >&6
6599 else
6600   ac_cv_prog_cc_c99=no
6601 ac_save_CC=$CC
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h.  */
6604 #include <stdarg.h>
6605 #include <stdbool.h>
6606 #include <stdlib.h>
6607 #include <wchar.h>
6608 #include <stdio.h>
6609
6610 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6611 #define debug(...) fprintf (stderr, __VA_ARGS__)
6612 #define showlist(...) puts (#__VA_ARGS__)
6613 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6614 static void
6615 test_varargs_macros (void)
6616 {
6617   int x = 1234;
6618   int y = 5678;
6619   debug ("Flag");
6620   debug ("X = %d\n", x);
6621   showlist (The first, second, and third items.);
6622   report (x>y, "x is %d but y is %d", x, y);
6623 }
6624
6625 // Check long long types.
6626 #define BIG64 18446744073709551615ull
6627 #define BIG32 4294967295ul
6628 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6629 #if !BIG_OK
6630   your preprocessor is broken;
6631 #endif
6632 #if BIG_OK
6633 #else
6634   your preprocessor is broken;
6635 #endif
6636 static long long int bignum = -9223372036854775807LL;
6637 static unsigned long long int ubignum = BIG64;
6638
6639 struct incomplete_array
6640 {
6641   int datasize;
6642   double data[];
6643 };
6644
6645 struct named_init {
6646   int number;
6647   const wchar_t *name;
6648   double average;
6649 };
6650
6651 typedef const char *ccp;
6652
6653 static inline int
6654 test_restrict (ccp restrict text)
6655 {
6656   // See if C++-style comments work.
6657   // Iterate through items via the restricted pointer.
6658   // Also check for declarations in for loops.
6659   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6660     continue;
6661   return 0;
6662 }
6663
6664 // Check varargs and va_copy.
6665 static void
6666 test_varargs (const char *format, ...)
6667 {
6668   va_list args;
6669   va_start (args, format);
6670   va_list args_copy;
6671   va_copy (args_copy, args);
6672
6673   const char *str;
6674   int number;
6675   float fnumber;
6676
6677   while (*format)
6678     {
6679       switch (*format++)
6680         {
6681         case 's': // string
6682           str = va_arg (args_copy, const char *);
6683           break;
6684         case 'd': // int
6685           number = va_arg (args_copy, int);
6686           break;
6687         case 'f': // float
6688           fnumber = va_arg (args_copy, double);
6689           break;
6690         default:
6691           break;
6692         }
6693     }
6694   va_end (args_copy);
6695   va_end (args);
6696 }
6697
6698 int
6699 main ()
6700 {
6701
6702   // Check bool.
6703   _Bool success = false;
6704
6705   // Check restrict.
6706   if (test_restrict ("String literal") == 0)
6707     success = true;
6708   char *restrict newvar = "Another string";
6709
6710   // Check varargs.
6711   test_varargs ("s, d' f .", "string", 65, 34.234);
6712   test_varargs_macros ();
6713
6714   // Check flexible array members.
6715   struct incomplete_array *ia =
6716     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6717   ia->datasize = 10;
6718   for (int i = 0; i < ia->datasize; ++i)
6719     ia->data[i] = i * 1.234;
6720
6721   // Check named initializers.
6722   struct named_init ni = {
6723     .number = 34,
6724     .name = L"Test wide string",
6725     .average = 543.34343,
6726   };
6727
6728   ni.number = 58;
6729
6730   int dynamic_array[ni.number];
6731   dynamic_array[ni.number - 1] = 543;
6732
6733   // work around unused variable warnings
6734   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6735           || dynamic_array[ni.number - 1] != 543);
6736
6737   ;
6738   return 0;
6739 }
6740 _ACEOF
6741 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6742 do
6743   CC="$ac_save_CC $ac_arg"
6744   if ac_fn_c_try_compile "$LINENO"; then :
6745   ac_cv_prog_cc_c99=$ac_arg
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext
6748   test "x$ac_cv_prog_cc_c99" != "xno" && break
6749 done
6750 rm -f conftest.$ac_ext
6751 CC=$ac_save_CC
6752
6753 fi
6754 # AC_CACHE_VAL
6755 case "x$ac_cv_prog_cc_c99" in
6756   x)
6757     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6758 $as_echo "none needed" >&6; } ;;
6759   xno)
6760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6761 $as_echo "unsupported" >&6; } ;;
6762   *)
6763     CC="$CC $ac_cv_prog_cc_c99"
6764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6765 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6766 esac
6767 if test "x$ac_cv_prog_cc_c99" != xno; then :
6768   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6769 else
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6771 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6772 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6773   $as_echo_n "(cached) " >&6
6774 else
6775   ac_cv_prog_cc_c89=no
6776 ac_save_CC=$CC
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h.  */
6779 #include <stdarg.h>
6780 #include <stdio.h>
6781 #include <sys/types.h>
6782 #include <sys/stat.h>
6783 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6784 struct buf { int x; };
6785 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6786 static char *e (p, i)
6787      char **p;
6788      int i;
6789 {
6790   return p[i];
6791 }
6792 static char *f (char * (*g) (char **, int), char **p, ...)
6793 {
6794   char *s;
6795   va_list v;
6796   va_start (v,p);
6797   s = g (p, va_arg (v,int));
6798   va_end (v);
6799   return s;
6800 }
6801
6802 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6803    function prototypes and stuff, but not '\xHH' hex character constants.
6804    These don't provoke an error unfortunately, instead are silently treated
6805    as 'x'.  The following induces an error, until -std is added to get
6806    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6807    array size at least.  It's necessary to write '\x00'==0 to get something
6808    that's true only with -std.  */
6809 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6810
6811 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6812    inside strings and character constants.  */
6813 #define FOO(x) 'x'
6814 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6815
6816 int test (int i, double x);
6817 struct s1 {int (*f) (int a);};
6818 struct s2 {int (*f) (double a);};
6819 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6820 int argc;
6821 char **argv;
6822 int
6823 main ()
6824 {
6825 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6826   ;
6827   return 0;
6828 }
6829 _ACEOF
6830 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6831         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6832 do
6833   CC="$ac_save_CC $ac_arg"
6834   if ac_fn_c_try_compile "$LINENO"; then :
6835   ac_cv_prog_cc_c89=$ac_arg
6836 fi
6837 rm -f core conftest.err conftest.$ac_objext
6838   test "x$ac_cv_prog_cc_c89" != "xno" && break
6839 done
6840 rm -f conftest.$ac_ext
6841 CC=$ac_save_CC
6842
6843 fi
6844 # AC_CACHE_VAL
6845 case "x$ac_cv_prog_cc_c89" in
6846   x)
6847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6848 $as_echo "none needed" >&6; } ;;
6849   xno)
6850     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6851 $as_echo "unsupported" >&6; } ;;
6852   *)
6853     CC="$CC $ac_cv_prog_cc_c89"
6854     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6855 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6856 esac
6857 if test "x$ac_cv_prog_cc_c89" != xno; then :
6858   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6859 else
6860   ac_cv_prog_cc_stdc=no
6861 fi
6862
6863 fi
6864  ;;
6865 esac
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6867 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6868   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6869   $as_echo_n "(cached) " >&6
6870 fi
6871
6872   case $ac_cv_prog_cc_stdc in #(
6873   no) :
6874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6875 $as_echo "unsupported" >&6; } ;; #(
6876   '') :
6877     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6878 $as_echo "none needed" >&6; } ;; #(
6879   *) :
6880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6881 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6882 esac
6883
6884 ac_ext=c
6885 ac_cpp='$CPP $CPPFLAGS'
6886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6890 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6891 # On Suns, sometimes $CPP names a directory.
6892 if test -n "$CPP" && test -d "$CPP"; then
6893   CPP=
6894 fi
6895 if test -z "$CPP"; then
6896   if test "${ac_cv_prog_CPP+set}" = set; then :
6897   $as_echo_n "(cached) " >&6
6898 else
6899       # Double quotes because CPP needs to be expanded
6900     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6901     do
6902       ac_preproc_ok=false
6903 for ac_c_preproc_warn_flag in '' yes
6904 do
6905   # Use a header file that comes with gcc, so configuring glibc
6906   # with a fresh cross-compiler works.
6907   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6908   # <limits.h> exists even on freestanding compilers.
6909   # On the NeXT, cc -E runs the code through the compiler's parser,
6910   # not just through cpp. "Syntax error" is here to catch this case.
6911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913 #ifdef __STDC__
6914 # include <limits.h>
6915 #else
6916 # include <assert.h>
6917 #endif
6918                      Syntax error
6919 _ACEOF
6920 if ac_fn_c_try_cpp "$LINENO"; then :
6921
6922 else
6923   # Broken: fails on valid input.
6924 continue
6925 fi
6926 rm -f conftest.err conftest.$ac_ext
6927
6928   # OK, works on sane cases.  Now check whether nonexistent headers
6929   # can be detected and how.
6930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h.  */
6932 #include <ac_nonexistent.h>
6933 _ACEOF
6934 if ac_fn_c_try_cpp "$LINENO"; then :
6935   # Broken: success on invalid input.
6936 continue
6937 else
6938   # Passes both tests.
6939 ac_preproc_ok=:
6940 break
6941 fi
6942 rm -f conftest.err conftest.$ac_ext
6943
6944 done
6945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6946 rm -f conftest.err conftest.$ac_ext
6947 if $ac_preproc_ok; then :
6948   break
6949 fi
6950
6951     done
6952     ac_cv_prog_CPP=$CPP
6953
6954 fi
6955   CPP=$ac_cv_prog_CPP
6956 else
6957   ac_cv_prog_CPP=$CPP
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6960 $as_echo "$CPP" >&6; }
6961 ac_preproc_ok=false
6962 for ac_c_preproc_warn_flag in '' yes
6963 do
6964   # Use a header file that comes with gcc, so configuring glibc
6965   # with a fresh cross-compiler works.
6966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6967   # <limits.h> exists even on freestanding compilers.
6968   # On the NeXT, cc -E runs the code through the compiler's parser,
6969   # not just through cpp. "Syntax error" is here to catch this case.
6970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972 #ifdef __STDC__
6973 # include <limits.h>
6974 #else
6975 # include <assert.h>
6976 #endif
6977                      Syntax error
6978 _ACEOF
6979 if ac_fn_c_try_cpp "$LINENO"; then :
6980
6981 else
6982   # Broken: fails on valid input.
6983 continue
6984 fi
6985 rm -f conftest.err conftest.$ac_ext
6986
6987   # OK, works on sane cases.  Now check whether nonexistent headers
6988   # can be detected and how.
6989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if ac_fn_c_try_cpp "$LINENO"; then :
6994   # Broken: success on invalid input.
6995 continue
6996 else
6997   # Passes both tests.
6998 ac_preproc_ok=:
6999 break
7000 fi
7001 rm -f conftest.err conftest.$ac_ext
7002
7003 done
7004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7005 rm -f conftest.err conftest.$ac_ext
7006 if $ac_preproc_ok; then :
7007
7008 else
7009   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7011 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7012 See \`config.log' for more details." "$LINENO" 5; }
7013 fi
7014
7015 ac_ext=c
7016 ac_cpp='$CPP $CPPFLAGS'
7017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7022 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7023 if test "${ac_cv_path_SED+set}" = set; then :
7024   $as_echo_n "(cached) " >&6
7025 else
7026             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7027      for ac_i in 1 2 3 4 5 6 7; do
7028        ac_script="$ac_script$as_nl$ac_script"
7029      done
7030      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7031      { ac_script=; unset ac_script;}
7032      if test -z "$SED"; then
7033   ac_path_SED_found=false
7034   # Loop through the user's path and test for each of PROGNAME-LIST
7035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040     for ac_prog in sed gsed; do
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7043       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7044 # Check for GNU ac_path_SED and select it if it is found.
7045   # Check for GNU $ac_path_SED
7046 case `"$ac_path_SED" --version 2>&1` in
7047 *GNU*)
7048   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7049 *)
7050   ac_count=0
7051   $as_echo_n 0123456789 >"conftest.in"
7052   while :
7053   do
7054     cat "conftest.in" "conftest.in" >"conftest.tmp"
7055     mv "conftest.tmp" "conftest.in"
7056     cp "conftest.in" "conftest.nl"
7057     $as_echo '' >> "conftest.nl"
7058     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7059     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7060     as_fn_arith $ac_count + 1 && ac_count=$as_val
7061     if test $ac_count -gt ${ac_path_SED_max-0}; then
7062       # Best one so far, save it but keep looking for a better one
7063       ac_cv_path_SED="$ac_path_SED"
7064       ac_path_SED_max=$ac_count
7065     fi
7066     # 10*(2^10) chars as input seems more than enough
7067     test $ac_count -gt 10 && break
7068   done
7069   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7070 esac
7071
7072       $ac_path_SED_found && break 3
7073     done
7074   done
7075   done
7076 IFS=$as_save_IFS
7077   if test -z "$ac_cv_path_SED"; then
7078     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7079   fi
7080 else
7081   ac_cv_path_SED=$SED
7082 fi
7083
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7086 $as_echo "$ac_cv_path_SED" >&6; }
7087  SED="$ac_cv_path_SED"
7088   rm -f conftest.sed
7089
7090 test -z "$SED" && SED=sed
7091 Xsed="$SED -e 1s/^X//"
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7104 $as_echo_n "checking for fgrep... " >&6; }
7105 if test "${ac_cv_path_FGREP+set}" = set; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7109    then ac_cv_path_FGREP="$GREP -F"
7110    else
7111      if test -z "$FGREP"; then
7112   ac_path_FGREP_found=false
7113   # Loop through the user's path and test for each of PROGNAME-LIST
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119     for ac_prog in fgrep; do
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7122       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7123 # Check for GNU ac_path_FGREP and select it if it is found.
7124   # Check for GNU $ac_path_FGREP
7125 case `"$ac_path_FGREP" --version 2>&1` in
7126 *GNU*)
7127   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7128 *)
7129   ac_count=0
7130   $as_echo_n 0123456789 >"conftest.in"
7131   while :
7132   do
7133     cat "conftest.in" "conftest.in" >"conftest.tmp"
7134     mv "conftest.tmp" "conftest.in"
7135     cp "conftest.in" "conftest.nl"
7136     $as_echo 'FGREP' >> "conftest.nl"
7137     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139     as_fn_arith $ac_count + 1 && ac_count=$as_val
7140     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7141       # Best one so far, save it but keep looking for a better one
7142       ac_cv_path_FGREP="$ac_path_FGREP"
7143       ac_path_FGREP_max=$ac_count
7144     fi
7145     # 10*(2^10) chars as input seems more than enough
7146     test $ac_count -gt 10 && break
7147   done
7148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7149 esac
7150
7151       $ac_path_FGREP_found && break 3
7152     done
7153   done
7154   done
7155 IFS=$as_save_IFS
7156   if test -z "$ac_cv_path_FGREP"; then
7157     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7158   fi
7159 else
7160   ac_cv_path_FGREP=$FGREP
7161 fi
7162
7163    fi
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7166 $as_echo "$ac_cv_path_FGREP" >&6; }
7167  FGREP="$ac_cv_path_FGREP"
7168
7169
7170 test -z "$GREP" && GREP=grep
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190 # Check whether --with-gnu-ld was given.
7191 if test "${with_gnu_ld+set}" = set; then :
7192   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7193 else
7194   with_gnu_ld=no
7195 fi
7196
7197 ac_prog=ld
7198 if test "$GCC" = yes; then
7199   # Check if gcc -print-prog-name=ld gives a path.
7200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7201 $as_echo_n "checking for ld used by $CC... " >&6; }
7202   case $host in
7203   *-*-mingw*)
7204     # gcc leaves a trailing carriage return which upsets mingw
7205     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7206   *)
7207     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7208   esac
7209   case $ac_prog in
7210     # Accept absolute paths.
7211     [\\/]* | ?:[\\/]*)
7212       re_direlt='/[^/][^/]*/\.\./'
7213       # Canonicalize the pathname of ld
7214       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7215       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7216         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7217       done
7218       test -z "$LD" && LD="$ac_prog"
7219       ;;
7220   "")
7221     # If it fails, then pretend we aren't using GCC.
7222     ac_prog=ld
7223     ;;
7224   *)
7225     # If it is relative, then search for the first ld in PATH.
7226     with_gnu_ld=unknown
7227     ;;
7228   esac
7229 elif test "$with_gnu_ld" = yes; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7231 $as_echo_n "checking for GNU ld... " >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7234 $as_echo_n "checking for non-GNU ld... " >&6; }
7235 fi
7236 if test "${lt_cv_path_LD+set}" = set; then :
7237   $as_echo_n "(cached) " >&6
7238 else
7239   if test -z "$LD"; then
7240   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7241   for ac_dir in $PATH; do
7242     IFS="$lt_save_ifs"
7243     test -z "$ac_dir" && ac_dir=.
7244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7245       lt_cv_path_LD="$ac_dir/$ac_prog"
7246       # Check to see if the program is GNU ld.  I'd rather use --version,
7247       # but apparently some variants of GNU ld only accept -v.
7248       # Break only if it was the GNU/non-GNU ld that we prefer.
7249       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7250       *GNU* | *'with BFD'*)
7251         test "$with_gnu_ld" != no && break
7252         ;;
7253       *)
7254         test "$with_gnu_ld" != yes && break
7255         ;;
7256       esac
7257     fi
7258   done
7259   IFS="$lt_save_ifs"
7260 else
7261   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7262 fi
7263 fi
7264
7265 LD="$lt_cv_path_LD"
7266 if test -n "$LD"; then
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7268 $as_echo "$LD" >&6; }
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7275 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7276 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7277   $as_echo_n "(cached) " >&6
7278 else
7279   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7280 case `$LD -v 2>&1 </dev/null` in
7281 *GNU* | *'with BFD'*)
7282   lt_cv_prog_gnu_ld=yes
7283   ;;
7284 *)
7285   lt_cv_prog_gnu_ld=no
7286   ;;
7287 esac
7288 fi
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7290 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7291 with_gnu_ld=$lt_cv_prog_gnu_ld
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7303 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7304 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7305   $as_echo_n "(cached) " >&6
7306 else
7307   ac_cv_prog_cc_c99=no
7308 ac_save_CC=$CC
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h.  */
7311 #include <stdarg.h>
7312 #include <stdbool.h>
7313 #include <stdlib.h>
7314 #include <wchar.h>
7315 #include <stdio.h>
7316
7317 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7318 #define debug(...) fprintf (stderr, __VA_ARGS__)
7319 #define showlist(...) puts (#__VA_ARGS__)
7320 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7321 static void
7322 test_varargs_macros (void)
7323 {
7324   int x = 1234;
7325   int y = 5678;
7326   debug ("Flag");
7327   debug ("X = %d\n", x);
7328   showlist (The first, second, and third items.);
7329   report (x>y, "x is %d but y is %d", x, y);
7330 }
7331
7332 // Check long long types.
7333 #define BIG64 18446744073709551615ull
7334 #define BIG32 4294967295ul
7335 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7336 #if !BIG_OK
7337   your preprocessor is broken;
7338 #endif
7339 #if BIG_OK
7340 #else
7341   your preprocessor is broken;
7342 #endif
7343 static long long int bignum = -9223372036854775807LL;
7344 static unsigned long long int ubignum = BIG64;
7345
7346 struct incomplete_array
7347 {
7348   int datasize;
7349   double data[];
7350 };
7351
7352 struct named_init {
7353   int number;
7354   const wchar_t *name;
7355   double average;
7356 };
7357
7358 typedef const char *ccp;
7359
7360 static inline int
7361 test_restrict (ccp restrict text)
7362 {
7363   // See if C++-style comments work.
7364   // Iterate through items via the restricted pointer.
7365   // Also check for declarations in for loops.
7366   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7367     continue;
7368   return 0;
7369 }
7370
7371 // Check varargs and va_copy.
7372 static void
7373 test_varargs (const char *format, ...)
7374 {
7375   va_list args;
7376   va_start (args, format);
7377   va_list args_copy;
7378   va_copy (args_copy, args);
7379
7380   const char *str;
7381   int number;
7382   float fnumber;
7383
7384   while (*format)
7385     {
7386       switch (*format++)
7387         {
7388         case 's': // string
7389           str = va_arg (args_copy, const char *);
7390           break;
7391         case 'd': // int
7392           number = va_arg (args_copy, int);
7393           break;
7394         case 'f': // float
7395           fnumber = va_arg (args_copy, double);
7396           break;
7397         default:
7398           break;
7399         }
7400     }
7401   va_end (args_copy);
7402   va_end (args);
7403 }
7404
7405 int
7406 main ()
7407 {
7408
7409   // Check bool.
7410   _Bool success = false;
7411
7412   // Check restrict.
7413   if (test_restrict ("String literal") == 0)
7414     success = true;
7415   char *restrict newvar = "Another string";
7416
7417   // Check varargs.
7418   test_varargs ("s, d' f .", "string", 65, 34.234);
7419   test_varargs_macros ();
7420
7421   // Check flexible array members.
7422   struct incomplete_array *ia =
7423     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7424   ia->datasize = 10;
7425   for (int i = 0; i < ia->datasize; ++i)
7426     ia->data[i] = i * 1.234;
7427
7428   // Check named initializers.
7429   struct named_init ni = {
7430     .number = 34,
7431     .name = L"Test wide string",
7432     .average = 543.34343,
7433   };
7434
7435   ni.number = 58;
7436
7437   int dynamic_array[ni.number];
7438   dynamic_array[ni.number - 1] = 543;
7439
7440   // work around unused variable warnings
7441   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7442           || dynamic_array[ni.number - 1] != 543);
7443
7444   ;
7445   return 0;
7446 }
7447 _ACEOF
7448 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7449 do
7450   CC="$ac_save_CC $ac_arg"
7451   if ac_fn_c_try_compile "$LINENO"; then :
7452   ac_cv_prog_cc_c99=$ac_arg
7453 fi
7454 rm -f core conftest.err conftest.$ac_objext
7455   test "x$ac_cv_prog_cc_c99" != "xno" && break
7456 done
7457 rm -f conftest.$ac_ext
7458 CC=$ac_save_CC
7459
7460 fi
7461 # AC_CACHE_VAL
7462 case "x$ac_cv_prog_cc_c99" in
7463   x)
7464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7465 $as_echo "none needed" >&6; } ;;
7466   xno)
7467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7468 $as_echo "unsupported" >&6; } ;;
7469   *)
7470     CC="$CC $ac_cv_prog_cc_c99"
7471     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7472 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7473 esac
7474 if test "x$ac_cv_prog_cc_c99" != xno; then :
7475
7476 fi
7477
7478
7479 if test "x$CC" != xcc; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7481 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7484 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7485 fi
7486 set dummy $CC; ac_cc=`$as_echo "$2" |
7487                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7488 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7489   $as_echo_n "(cached) " >&6
7490 else
7491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h.  */
7493
7494 int
7495 main ()
7496 {
7497
7498   ;
7499   return 0;
7500 }
7501 _ACEOF
7502 # Make sure it works both with $CC and with simple cc.
7503 # We do the test twice because some compilers refuse to overwrite an
7504 # existing .o file with -o, though they will create one.
7505 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7506 rm -f conftest2.*
7507 if { { case "(($ac_try" in
7508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509   *) ac_try_echo=$ac_try;;
7510 esac
7511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7512 $as_echo "$ac_try_echo"; } >&5
7513   (eval "$ac_try") 2>&5
7514   ac_status=$?
7515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516   test $ac_status = 0; } &&
7517    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519   *) ac_try_echo=$ac_try;;
7520 esac
7521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7522 $as_echo "$ac_try_echo"; } >&5
7523   (eval "$ac_try") 2>&5
7524   ac_status=$?
7525   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526   test $ac_status = 0; };
7527 then
7528   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7529   if test "x$CC" != xcc; then
7530     # Test first that cc exists at all.
7531     if { ac_try='cc -c conftest.$ac_ext >&5'
7532   { { case "(($ac_try" in
7533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534   *) ac_try_echo=$ac_try;;
7535 esac
7536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7537 $as_echo "$ac_try_echo"; } >&5
7538   (eval "$ac_try") 2>&5
7539   ac_status=$?
7540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541   test $ac_status = 0; }; }; then
7542       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7543       rm -f conftest2.*
7544       if { { case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549 $as_echo "$ac_try_echo"; } >&5
7550   (eval "$ac_try") 2>&5
7551   ac_status=$?
7552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553   test $ac_status = 0; } &&
7554          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7559 $as_echo "$ac_try_echo"; } >&5
7560   (eval "$ac_try") 2>&5
7561   ac_status=$?
7562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7563   test $ac_status = 0; };
7564       then
7565         # cc works too.
7566         :
7567       else
7568         # cc exists but doesn't like -o.
7569         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7570       fi
7571     fi
7572   fi
7573 else
7574   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7575 fi
7576 rm -f core conftest*
7577
7578 fi
7579 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581 $as_echo "yes" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585
7586 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7587
7588 fi
7589
7590 # FIXME: we rely on the cache variable name because
7591 # there is no other way.
7592 set dummy $CC
7593 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7594 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7595 if test "$am_t" != yes; then
7596    # Losing compiler, so override with the script.
7597    # FIXME: It is wrong to rewrite CC.
7598    # But if we don't then we get into trouble of one sort or another.
7599    # A longer-term fix would be to have automake use am__CC in this case,
7600    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7601    CC="$am_aux_dir/compile $CC"
7602 fi
7603
7604
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
7607 $as_echo_n "checking maximum warning verbosity option... " >&6; }
7608
7609
7610
7611
7612 # Check whether --with-maximum-compile-warnings was given.
7613 if test "${with_maximum_compile_warnings+set}" = set; then :
7614   withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
7615 else
7616   ac_compile_warnings_on=""
7617 fi
7618
7619
7620   if test x"$ac_compile_warnings_on" = xno
7621   then
7622     ac_compile_warnings_msg=no
7623   else
7624     if test -n "$CXX"
7625     then
7626       if test "$GXX" = "yes"
7627       then
7628         ac_compile_warnings_opt='-Wall -W'
7629       fi
7630       CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
7631       ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
7632     fi
7633
7634   if test -n "$CC"
7635   then
7636     if test "$GCC" = "yes"
7637     then
7638       ac_compile_warnings_opt='-Wall -W'
7639     fi
7640     CFLAGS="$CFLAGS $ac_compile_warnings_opt"
7641     ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
7642   fi
7643   fi
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
7645 $as_echo "$ac_compile_warnings_msg" >&6; }
7646   unset ac_compile_warnings_msg
7647   unset ac_compile_warnings_opt
7648
7649 $ac_includes_default
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7653 set x ${MAKE-make}
7654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7655 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   cat >conftest.make <<\_ACEOF
7659 SHELL = /bin/sh
7660 all:
7661         @echo '@@@%%%=$(MAKE)=@@@%%%'
7662 _ACEOF
7663 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7665   *@@@%%%=?*=@@@%%%*)
7666     eval ac_cv_prog_make_${ac_make}_set=yes;;
7667   *)
7668     eval ac_cv_prog_make_${ac_make}_set=no;;
7669 esac
7670 rm -f conftest.make
7671 fi
7672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7675   SET_MAKE=
7676 else
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679   SET_MAKE="MAKE=${MAKE-make}"
7680 fi
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7684 LN_S=$as_ln_s
7685 if test "$LN_S" = "ln -s"; then
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7688 else
7689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7691 fi
7692
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7694 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7695
7696 # Check whether --with-dmalloc was given.
7697 if test "${with_dmalloc+set}" = set; then :
7698   withval=$with_dmalloc; if test "$withval" = yes; then
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7701
7702 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7703
7704   LIBS="$LIBS -ldmalloc"
7705   LDFLAGS="$LDFLAGS -g"
7706 else
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 fi
7710 else
7711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715
7716
7717
7718 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7719         if test -n "$ac_tool_prefix"; then
7720   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7725   $as_echo_n "(cached) " >&6
7726 else
7727   case $PKG_CONFIG in
7728   [\\/]* | ?:[\\/]*)
7729   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7730   ;;
7731   *)
7732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 for as_dir in $PATH
7734 do
7735   IFS=$as_save_IFS
7736   test -z "$as_dir" && as_dir=.
7737     for ac_exec_ext in '' $ac_executable_extensions; do
7738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7739     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741     break 2
7742   fi
7743 done
7744   done
7745 IFS=$as_save_IFS
7746
7747   ;;
7748 esac
7749 fi
7750 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7751 if test -n "$PKG_CONFIG"; then
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7753 $as_echo "$PKG_CONFIG" >&6; }
7754 else
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7757 fi
7758
7759
7760 fi
7761 if test -z "$ac_cv_path_PKG_CONFIG"; then
7762   ac_pt_PKG_CONFIG=$PKG_CONFIG
7763   # Extract the first word of "pkg-config", so it can be a program name with args.
7764 set dummy pkg-config; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   case $ac_pt_PKG_CONFIG in
7771   [\\/]* | ?:[\\/]*)
7772   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7773   ;;
7774   *)
7775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 for as_dir in $PATH
7777 do
7778   IFS=$as_save_IFS
7779   test -z "$as_dir" && as_dir=.
7780     for ac_exec_ext in '' $ac_executable_extensions; do
7781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7784     break 2
7785   fi
7786 done
7787   done
7788 IFS=$as_save_IFS
7789
7790   ;;
7791 esac
7792 fi
7793 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7794 if test -n "$ac_pt_PKG_CONFIG"; then
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7796 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7797 else
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802   if test "x$ac_pt_PKG_CONFIG" = x; then
7803     PKG_CONFIG=""
7804   else
7805     case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811     PKG_CONFIG=$ac_pt_PKG_CONFIG
7812   fi
7813 else
7814   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7815 fi
7816
7817 fi
7818 if test -n "$PKG_CONFIG"; then
7819         _pkg_min_version=0.9.0
7820         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7821 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7822         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7823                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7824 $as_echo "yes" >&6; }
7825         else
7826                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828                 PKG_CONFIG=""
7829         fi
7830
7831 fi
7832
7833 #
7834 # Enable run-time checking.
7835 #
7836 # Check whether --enable-bounds-checking was given.
7837 if test "${enable_bounds_checking+set}" = set; then :
7838   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7839 else
7840   enable_bounds_checking='no'
7841 fi
7842
7843
7844 if test "$enable_bounds_checking" = yes; then
7845
7846 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7847
7848 fi
7849
7850 #
7851 # Tests for Windows
7852 #
7853
7854
7855
7856 GDI32_LIBS=''
7857 native_win32_build='no'
7858 cygwin_build='no'
7859 case "${host_os}" in
7860     cygwin* )
7861         cygwin_build='yes'
7862         GDI32_LIBS='-lgdi32'
7863     ;;
7864     mingw* )
7865         native_win32_build='yes'
7866         GDI32_LIBS='-lgdi32'
7867     ;;
7868 esac
7869 if test "${GDI32_LIBS}x" != 'x'; then
7870
7871 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7872
7873 fi
7874
7875  if test "${GDI32_LIBS}x" != 'x' ; then
7876   WINGDI32_DELEGATE_TRUE=
7877   WINGDI32_DELEGATE_FALSE='#'
7878 else
7879   WINGDI32_DELEGATE_TRUE='#'
7880   WINGDI32_DELEGATE_FALSE=
7881 fi
7882
7883  if test "${native_win32_build}" = 'yes' ; then
7884   WIN32_NATIVE_BUILD_TRUE=
7885   WIN32_NATIVE_BUILD_FALSE='#'
7886 else
7887   WIN32_NATIVE_BUILD_TRUE='#'
7888   WIN32_NATIVE_BUILD_FALSE=
7889 fi
7890
7891  if test "${cygwin_build}" = 'yes' ; then
7892   CYGWIN_BUILD_TRUE=
7893   CYGWIN_BUILD_FALSE='#'
7894 else
7895   CYGWIN_BUILD_TRUE='#'
7896   CYGWIN_BUILD_FALSE=
7897 fi
7898
7899  if test "x${CC}" = 'xcl.exe' ; then
7900   USING_CL_TRUE=
7901   USING_CL_FALSE='#'
7902 else
7903   USING_CL_TRUE='#'
7904   USING_CL_FALSE=
7905 fi
7906
7907
7908 WinPathScript="${srcdirfull}/winpath.sh"
7909
7910
7911 #
7912 # Compiler flags tweaks
7913 #
7914 if test "${GCC}" != "yes"; then
7915     case "${host}" in
7916         *-*-hpux* )
7917             # aCC: HP ANSI C++ B3910B A.03.34
7918             CFLAGS="${CFLAGS} -Wp,-H30000"
7919             if test -n "${CXXFLAGS}"; then
7920                 CXXFLAGS='-AA'
7921             else
7922                 CXXFLAGS="${CXXFLAGS} -AA"
7923             fi
7924         ;;
7925         *-dec-osf5.* )
7926             # Compaq alphaev68-dec-osf5.1 compiler
7927             if test -n "${CXXFLAGS}"; then
7928                 CXXFLAGS='-std strict_ansi -noimplicit_include'
7929             else
7930                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7931             fi
7932   esac
7933 fi
7934
7935 # Check for lazy-loading.
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7937 $as_echo_n "checking for linker lazyload option... " >&6; }
7938 if test "${im_cv_ld_lazyload+set}" = set; then :
7939   $as_echo_n "(cached) " >&6
7940 else
7941
7942 im_cv_ld_lazyload='none'
7943 case "${host}" in
7944   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7945     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7946        im_cv_ld_lazyload='-Wl,-zlazyload'
7947     fi
7948     ;;
7949 esac
7950
7951 fi
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7953 $as_echo "$im_cv_ld_lazyload" >&6; }
7954 if test "${im_cv_ld_lazyload}" != 'none' ; then
7955   if test -z "${LDFLAGS}" ; then
7956     LDFLAGS="${im_cv_ld_lazyload}"
7957   else
7958     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7959   fi
7960 fi
7961
7962 case "$host" in
7963 *darwin* | *-macos10*)
7964   if test -d /opt/local ; then
7965     CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7966     LDFLAGS="$LDFLAGS -L/opt/local/lib"
7967   elif test -d /sw ; then
7968     CPPFLAGS="$CPPFLAGS -I/sw/include"
7969     LDFLAGS="$LDFLAGS -L/sw/lib"
7970   fi
7971     # Check whether --enable-osx-universal-binary was given.
7972 if test "${enable_osx_universal_binary+set}" = set; then :
7973   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7974 else
7975   build_osxuniversal=no
7976 fi
7977
7978
7979   if test "${build_osxuniversal}" != no ; then
7980     if test "$enable_dependency_tracking" != no ; then
7981       as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7982 Please re-run configure with these options:
7983   --disable-dependency-tracking --enable-osx-universal-binary
7984         " "$LINENO" 5
7985     fi
7986     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7987     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7988     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7989   fi
7990   ;;
7991 esac
7992
7993 # Enable support for threads
7994
7995 # Check whether --with-threads was given.
7996 if test "${with_threads+set}" = set; then :
7997   withval=$with_threads; with_threads=$withval
7998 else
7999   with_threads='yes'
8000 fi
8001
8002
8003 have_threads=no
8004 if test "$with_threads" != 'no'; then
8005
8006
8007
8008 ac_ext=c
8009 ac_cpp='$CPP $CPPFLAGS'
8010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8013
8014 acx_pthread_ok=no
8015
8016 # We used to check for pthread.h first, but this fails if pthread.h
8017 # requires special compiler flags (e.g. on True64 or Sequent).
8018 # It gets checked for in the link test anyway.
8019
8020 # First of all, check if the user has set any of the PTHREAD_LIBS,
8021 # etcetera environment variables, and if threads linking works using
8022 # them:
8023 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8024         save_CFLAGS="$CFLAGS"
8025         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8026         save_LIBS="$LIBS"
8027         LIBS="$PTHREAD_LIBS $LIBS"
8028         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8029 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8030         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032
8033 /* Override any GCC internal prototype to avoid an error.
8034    Use char because int might match the return type of a GCC
8035    builtin and then its argument prototype would still apply.  */
8036 #ifdef __cplusplus
8037 extern "C"
8038 #endif
8039 char pthread_join ();
8040 int
8041 main ()
8042 {
8043 return pthread_join ();
8044   ;
8045   return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"; then :
8049   acx_pthread_ok=yes
8050 fi
8051 rm -f core conftest.err conftest.$ac_objext \
8052     conftest$ac_exeext conftest.$ac_ext
8053         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
8054 $as_echo "$acx_pthread_ok" >&6; }
8055         if test x"$acx_pthread_ok" = xno; then
8056                 PTHREAD_LIBS=""
8057                 PTHREAD_CFLAGS=""
8058         fi
8059         LIBS="$save_LIBS"
8060         CFLAGS="$save_CFLAGS"
8061 fi
8062
8063 # We must check for the threads library under a number of different
8064 # names; the ordering is very important because some systems
8065 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8066 # libraries is broken (non-POSIX).
8067
8068 # Create a list of thread flags to try.  Items starting with a "-" are
8069 # C compiler flags, and other items are library names, except for "none"
8070 # which indicates that we try without any flags at all, and "pthread-config"
8071 # which is a program returning the flags for the Pth emulation library.
8072
8073 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8074
8075 # The ordering *is* (sometimes) important.  Some notes on the
8076 # individual items follow:
8077
8078 # pthreads: AIX (must check this before -lpthread)
8079 # none: in case threads are in libc; should be tried before -Kthread and
8080 #       other compiler flags to prevent continual compiler warnings
8081 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8082 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8083 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8084 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8085 # -pthreads: Solaris/gcc
8086 # -mthreads: Mingw32/gcc, Lynx/gcc
8087 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8088 #      doesn't hurt to check since this sometimes defines pthreads too;
8089 #      also defines -D_REENTRANT)
8090 #      ... -mt is also the pthreads flag for HP/aCC
8091 # pthread: Linux, etcetera
8092 # --thread-safe: KAI C++
8093 # pthread-config: use pthread-config program (for GNU Pth library)
8094
8095 case "${host_cpu}-${host_os}" in
8096         *solaris*)
8097
8098         # On Solaris (at least, for some versions), libc contains stubbed
8099         # (non-functional) versions of the pthreads routines, so link-based
8100         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8101         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8102         # a function called by this macro, so we could check for that, but
8103         # who knows whether they'll stub that too in a future libc.)  So,
8104         # we'll just look for -pthreads and -lpthread first:
8105
8106         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
8107         ;;
8108 esac
8109
8110 if test x"$acx_pthread_ok" = xno; then
8111 for flag in $acx_pthread_flags; do
8112
8113         case $flag in
8114                 none)
8115                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8116 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8117                 ;;
8118
8119                 -*)
8120                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8121 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8122                 PTHREAD_CFLAGS="$flag"
8123                 ;;
8124
8125                 pthread-config)
8126                 # Extract the first word of "pthread-config", so it can be a program name with args.
8127 set dummy pthread-config; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$acx_pthread_config"; then
8134   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143     ac_cv_prog_acx_pthread_config="yes"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
8152 fi
8153 fi
8154 acx_pthread_config=$ac_cv_prog_acx_pthread_config
8155 if test -n "$acx_pthread_config"; then
8156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
8157 $as_echo "$acx_pthread_config" >&6; }
8158 else
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 fi
8162
8163
8164                 if test x"$acx_pthread_config" = xno; then continue; fi
8165                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8166                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8167                 ;;
8168
8169                 *)
8170                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8171 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8172                 PTHREAD_LIBS="-l$flag"
8173                 ;;
8174         esac
8175
8176         save_LIBS="$LIBS"
8177         save_CFLAGS="$CFLAGS"
8178         LIBS="$PTHREAD_LIBS $LIBS"
8179         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8180
8181         # Check for various functions.  We must include pthread.h,
8182         # since some functions may be macros.  (On the Sequent, we
8183         # need a special flag -Kthread to make this header compile.)
8184         # We check for pthread_join because it is in -lpthread on IRIX
8185         # while pthread_create is in libc.  We check for pthread_attr_init
8186         # due to DEC craziness with -lpthreads.  We check for
8187         # pthread_cleanup_push because it is one of the few pthread
8188         # functions on Solaris that doesn't have a non-functional libc stub.
8189         # We try pthread_create on general principles.
8190         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h.  */
8192 #include <pthread.h>
8193 int
8194 main ()
8195 {
8196 pthread_t th; pthread_join(th, 0);
8197                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
8198                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
8199   ;
8200   return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204   acx_pthread_ok=yes
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext \
8207     conftest$ac_exeext conftest.$ac_ext
8208
8209         LIBS="$save_LIBS"
8210         CFLAGS="$save_CFLAGS"
8211
8212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
8213 $as_echo "$acx_pthread_ok" >&6; }
8214         if test "x$acx_pthread_ok" = xyes; then
8215                 break;
8216         fi
8217
8218         PTHREAD_LIBS=""
8219         PTHREAD_CFLAGS=""
8220 done
8221 fi
8222
8223 # Various other checks:
8224 if test "x$acx_pthread_ok" = xyes; then
8225         save_LIBS="$LIBS"
8226         LIBS="$PTHREAD_LIBS $LIBS"
8227         save_CFLAGS="$CFLAGS"
8228         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8229
8230         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8232 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8233         attr_name=unknown
8234         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8235             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h.  */
8237 #include <pthread.h>
8238 int
8239 main ()
8240 {
8241 int attr=$attr; return attr;
8242   ;
8243   return 0;
8244 }
8245 _ACEOF
8246 if ac_fn_c_try_link "$LINENO"; then :
8247   attr_name=$attr; break
8248 fi
8249 rm -f core conftest.err conftest.$ac_objext \
8250     conftest$ac_exeext conftest.$ac_ext
8251         done
8252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8253 $as_echo "$attr_name" >&6; }
8254         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8255
8256 cat >>confdefs.h <<_ACEOF
8257 #define PTHREAD_CREATE_JOINABLE $attr_name
8258 _ACEOF
8259
8260         fi
8261
8262         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8263 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8264         flag=no
8265         case "${host_cpu}-${host_os}" in
8266             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8267             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8268         esac
8269         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8270 $as_echo "${flag}" >&6; }
8271         if test "x$flag" != xno; then
8272             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8273         fi
8274
8275         LIBS="$save_LIBS"
8276         CFLAGS="$save_CFLAGS"
8277
8278         # More AIX lossage: must compile with xlc_r or cc_r
8279         if test x"$GCC" != xyes; then
8280           for ac_prog in xlc_r cc_r
8281 do
8282   # Extract the first word of "$ac_prog", so it can be a program name with args.
8283 set dummy $ac_prog; ac_word=$2
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285 $as_echo_n "checking for $ac_word... " >&6; }
8286 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8287   $as_echo_n "(cached) " >&6
8288 else
8289   if test -n "$PTHREAD_CC"; then
8290   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8291 else
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8293 for as_dir in $PATH
8294 do
8295   IFS=$as_save_IFS
8296   test -z "$as_dir" && as_dir=.
8297     for ac_exec_ext in '' $ac_executable_extensions; do
8298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8299     ac_cv_prog_PTHREAD_CC="$ac_prog"
8300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8301     break 2
8302   fi
8303 done
8304   done
8305 IFS=$as_save_IFS
8306
8307 fi
8308 fi
8309 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8310 if test -n "$PTHREAD_CC"; then
8311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8312 $as_echo "$PTHREAD_CC" >&6; }
8313 else
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8315 $as_echo "no" >&6; }
8316 fi
8317
8318
8319   test -n "$PTHREAD_CC" && break
8320 done
8321 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8322
8323         else
8324           PTHREAD_CC=$CC
8325         fi
8326 else
8327         PTHREAD_CC="$CC"
8328 fi
8329
8330
8331
8332
8333
8334 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8335 if test x"$acx_pthread_ok" = xyes; then
8336
8337 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8338
8339         :
8340 else
8341         acx_pthread_ok=no
8342
8343 fi
8344 ac_ext=c
8345 ac_cpp='$CPP $CPPFLAGS'
8346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8349
8350
8351     if test "$acx_pthread_ok" = yes; then
8352         have_threads=yes
8353         DEF_THREAD="$PTHREAD_CFLAGS"
8354         CFLAGS="$CFLAGS $DEF_THREAD"
8355         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8356         if test "$CC" != "$PTHREAD_CC"; then
8357             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8358 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8359             CC="$PTHREAD_CC"
8360         fi
8361     fi
8362 fi
8363
8364 # Enable support for OpenMP
8365 if test "$have_threads" != 'yes'; then
8366   ac_cv_prog_c_openmp=unsupported
8367 fi
8368
8369   OPENMP_CFLAGS=
8370   # Check whether --enable-openmp was given.
8371 if test "${enable_openmp+set}" = set; then :
8372   enableval=$enable_openmp;
8373 fi
8374
8375   if test "$enable_openmp" != no; then
8376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8377 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8378 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8379   $as_echo_n "(cached) " >&6
8380 else
8381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h.  */
8383
8384 #ifndef _OPENMP
8385  choke me
8386 #endif
8387 #include <omp.h>
8388 int main () { return omp_get_num_threads (); }
8389
8390 _ACEOF
8391 if ac_fn_c_try_link "$LINENO"; then :
8392   ac_cv_prog_c_openmp='none needed'
8393 else
8394   ac_cv_prog_c_openmp='unsupported'
8395                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8396             ac_save_CFLAGS=$CFLAGS
8397             CFLAGS="$CFLAGS $ac_option"
8398             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h.  */
8400
8401 #ifndef _OPENMP
8402  choke me
8403 #endif
8404 #include <omp.h>
8405 int main () { return omp_get_num_threads (); }
8406
8407 _ACEOF
8408 if ac_fn_c_try_link "$LINENO"; then :
8409   ac_cv_prog_c_openmp=$ac_option
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext \
8412     conftest$ac_exeext conftest.$ac_ext
8413             CFLAGS=$ac_save_CFLAGS
8414             if test "$ac_cv_prog_c_openmp" != unsupported; then
8415               break
8416             fi
8417           done
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext \
8420     conftest$ac_exeext conftest.$ac_ext
8421 fi
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8423 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8424     case $ac_cv_prog_c_openmp in #(
8425       "none needed" | unsupported)
8426         ;; #(
8427       *)
8428         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8429     esac
8430   fi
8431
8432
8433 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8434 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8435
8436
8437 # Enable support for OpenCL
8438
8439 # Check whether --enable-opencl was given.
8440 if test "${enable_opencl+set}" = set; then :
8441   enableval=$enable_opencl; disable_opencl=$enableval
8442 else
8443   disable_opencl='yes'
8444 fi
8445
8446
8447 if test "$disable_opencl" = 'yes'; then
8448   ac_ext=c
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8455 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8456 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8457   $as_echo_n "(cached) " >&6
8458 else
8459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h.  */
8461
8462 int
8463 main ()
8464 {
8465 #ifndef _MSC_VER
8466        choke me
8467 #endif
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 if ac_fn_c_try_compile "$LINENO"; then :
8474   ax_compiler_ms=yes
8475 else
8476   ax_compiler_ms=no
8477 fi
8478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8479 ax_cv_c_compiler_ms=$ax_compiler_ms
8480
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8483 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8484   if test X$ax_compiler_ms = Xno; then :
8485   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8486 fi
8487
8488   ax_save_CPPFLAGS=$CPPFLAGS
8489   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8490   for ac_header in CL/cl.h OpenCL/cl.h
8491 do :
8492   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8494 eval as_val=\$$as_ac_Header
8495    if test "x$as_val" = x""yes; then :
8496   cat >>confdefs.h <<_ACEOF
8497 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8498 _ACEOF
8499
8500 fi
8501
8502 done
8503
8504   CPPFLAGS=$ax_save_CPPFLAGS
8505
8506   for ac_header in windows.h
8507 do :
8508   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8509 if test "x$ac_cv_header_windows_h" = x""yes; then :
8510   cat >>confdefs.h <<_ACEOF
8511 #define HAVE_WINDOWS_H 1
8512 _ACEOF
8513
8514 fi
8515
8516 done
8517
8518
8519
8520
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8522 $as_echo_n "checking for OpenCL library... " >&6; }
8523 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   ax_cv_check_cl_libcl=no
8527   case $host_cpu in
8528     x86_64) ax_check_cl_libdir=lib64 ;;
8529     *)      ax_check_cl_libdir=lib ;;
8530   esac
8531   ax_save_CPPFLAGS=$CPPFLAGS
8532   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8533   ax_save_LIBS=$LIBS
8534   LIBS=""
8535   ax_check_libs="-lOpenCL -lCL -lclparser"
8536   for ax_lib in $ax_check_libs; do
8537     if test X$ax_compiler_ms = Xyes; then :
8538   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8539 else
8540   ax_try_lib=$ax_lib
8541 fi
8542     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h.  */
8545
8546   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8547   #   include <windows.h>
8548   # endif
8549   # ifdef HAVE_CL_CL_H
8550   #   include <CL/cl.h>
8551   # elif defined(HAVE_OPENCL_CL_H)
8552   #   include <OpenCL/cl.h>
8553   # else
8554   #   error no CL.h
8555   # endif
8556 int
8557 main ()
8558 {
8559 clCreateContextFromType(0,0,0,0,0)
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565   ax_cv_check_cl_libcl=$ax_try_lib; break
8566 else
8567   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"
8568                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8569 /* end confdefs.h.  */
8570
8571   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8572   #   include <windows.h>
8573   # endif
8574   # ifdef HAVE_CL_CL_H
8575   #   include <CL/cl.h>
8576   # elif defined(HAVE_OPENCL_CL_H)
8577   #   include <OpenCL/cl.h>
8578   # else
8579   #   error no CL.h
8580   # endif
8581 int
8582 main ()
8583 {
8584 clCreateContextFromType(0,0,0,0,0)
8585   ;
8586   return 0;
8587 }
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"; then :
8590   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8591 else
8592   ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
8593                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h.  */
8595
8596   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8597   #   include <windows.h>
8598   # endif
8599   # ifdef HAVE_CL_CL_H
8600   #   include <CL/cl.h>
8601   # elif defined(HAVE_OPENCL_CL_H)
8602   #   include <OpenCL/cl.h>
8603   # else
8604   #   error no CL.h
8605   # endif
8606 int
8607 main ()
8608 {
8609 clCreateContextFromType(0,0,0,0,0)
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_link "$LINENO"; then :
8615   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618     conftest$ac_exeext conftest.$ac_ext
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext \
8621     conftest$ac_exeext conftest.$ac_ext
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext \
8624     conftest$ac_exeext conftest.$ac_ext
8625   done
8626
8627   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
8628   LIBS='-framework OpenCL'
8629         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h.  */
8631
8632   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8633   #   include <windows.h>
8634   # endif
8635   # ifdef HAVE_CL_CL_H
8636   #   include <CL/cl.h>
8637   # elif defined(HAVE_OPENCL_CL_H)
8638   #   include <OpenCL/cl.h>
8639   # else
8640   #   error no CL.h
8641   # endif
8642 int
8643 main ()
8644 {
8645 clCreateContextFromType(0,0,0,0,0)
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 if ac_fn_c_try_link "$LINENO"; then :
8651   ax_cv_check_cl_libcl=$LIBS
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext \
8654     conftest$ac_exeext conftest.$ac_ext
8655 fi
8656
8657   LIBS=$ax_save_LIBS
8658   CPPFLAGS=$ax_save_CPPFLAGS
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
8661 $as_echo "$ax_cv_check_cl_libcl" >&6; }
8662
8663   if test "X$ax_cv_check_cl_libcl" = Xno; then :
8664   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8665 else
8666   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
8667 $as_echo "#define _OPENCL 1" >>confdefs.h
8668
8669 fi
8670   ac_ext=c
8671 ac_cpp='$CPP $CPPFLAGS'
8672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675
8676 fi
8677
8678
8679
8680
8681 CFLAGS="$CL_CFLAGS $CFLAGS"
8682 LIBS="$CL_LIBS $LIBS"
8683
8684
8685 ########
8686 #
8687 # Check for large file support
8688 #
8689 ########
8690 # Check whether --enable-largefile was given.
8691 if test "${enable_largefile+set}" = set; then :
8692   enableval=$enable_largefile;
8693 fi
8694
8695 if test "$enable_largefile" != no; then
8696
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8698 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8699 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   ac_cv_sys_largefile_CC=no
8703      if test "$GCC" != yes; then
8704        ac_save_CC=$CC
8705        while :; do
8706          # IRIX 6.2 and later do not support large files by default,
8707          # so use the C compiler's -n32 option if that helps.
8708          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h.  */
8710 #include <sys/types.h>
8711  /* Check that off_t can represent 2**63 - 1 correctly.
8712     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8713     since some C++ compilers masquerading as C compilers
8714     incorrectly reject 9223372036854775807.  */
8715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8716   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8717                        && LARGE_OFF_T % 2147483647 == 1)
8718                       ? 1 : -1];
8719 int
8720 main ()
8721 {
8722
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727          if ac_fn_c_try_compile "$LINENO"; then :
8728   break
8729 fi
8730 rm -f core conftest.err conftest.$ac_objext
8731          CC="$CC -n32"
8732          if ac_fn_c_try_compile "$LINENO"; then :
8733   ac_cv_sys_largefile_CC=' -n32'; break
8734 fi
8735 rm -f core conftest.err conftest.$ac_objext
8736          break
8737        done
8738        CC=$ac_save_CC
8739        rm -f conftest.$ac_ext
8740     fi
8741 fi
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8743 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8744   if test "$ac_cv_sys_largefile_CC" != no; then
8745     CC=$CC$ac_cv_sys_largefile_CC
8746   fi
8747
8748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8749 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8750 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
8751   $as_echo_n "(cached) " >&6
8752 else
8753   while :; do
8754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h.  */
8756 #include <sys/types.h>
8757  /* Check that off_t can represent 2**63 - 1 correctly.
8758     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8759     since some C++ compilers masquerading as C compilers
8760     incorrectly reject 9223372036854775807.  */
8761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8762   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8763                        && LARGE_OFF_T % 2147483647 == 1)
8764                       ? 1 : -1];
8765 int
8766 main ()
8767 {
8768
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774   ac_cv_sys_file_offset_bits=no; break
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h.  */
8779 #define _FILE_OFFSET_BITS 64
8780 #include <sys/types.h>
8781  /* Check that off_t can represent 2**63 - 1 correctly.
8782     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8783     since some C++ compilers masquerading as C compilers
8784     incorrectly reject 9223372036854775807.  */
8785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8786   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8787                        && LARGE_OFF_T % 2147483647 == 1)
8788                       ? 1 : -1];
8789 int
8790 main ()
8791 {
8792
8793   ;
8794   return 0;
8795 }
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"; then :
8798   ac_cv_sys_file_offset_bits=64; break
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8801   ac_cv_sys_file_offset_bits=unknown
8802   break
8803 done
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8806 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8807 case $ac_cv_sys_file_offset_bits in #(
8808   no | unknown) ;;
8809   *)
8810 cat >>confdefs.h <<_ACEOF
8811 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8812 _ACEOF
8813 ;;
8814 esac
8815 rm -rf conftest*
8816   if test $ac_cv_sys_file_offset_bits = unknown; then
8817     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8818 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8819 if test "${ac_cv_sys_large_files+set}" = set; then :
8820   $as_echo_n "(cached) " >&6
8821 else
8822   while :; do
8823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h.  */
8825 #include <sys/types.h>
8826  /* Check that off_t can represent 2**63 - 1 correctly.
8827     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8828     since some C++ compilers masquerading as C compilers
8829     incorrectly reject 9223372036854775807.  */
8830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8831   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8832                        && LARGE_OFF_T % 2147483647 == 1)
8833                       ? 1 : -1];
8834 int
8835 main ()
8836 {
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843   ac_cv_sys_large_files=no; break
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847 /* end confdefs.h.  */
8848 #define _LARGE_FILES 1
8849 #include <sys/types.h>
8850  /* Check that off_t can represent 2**63 - 1 correctly.
8851     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8852     since some C++ compilers masquerading as C compilers
8853     incorrectly reject 9223372036854775807.  */
8854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8855   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8856                        && LARGE_OFF_T % 2147483647 == 1)
8857                       ? 1 : -1];
8858 int
8859 main ()
8860 {
8861
8862   ;
8863   return 0;
8864 }
8865 _ACEOF
8866 if ac_fn_c_try_compile "$LINENO"; then :
8867   ac_cv_sys_large_files=1; break
8868 fi
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870   ac_cv_sys_large_files=unknown
8871   break
8872 done
8873 fi
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8875 $as_echo "$ac_cv_sys_large_files" >&6; }
8876 case $ac_cv_sys_large_files in #(
8877   no | unknown) ;;
8878   *)
8879 cat >>confdefs.h <<_ACEOF
8880 #define _LARGE_FILES $ac_cv_sys_large_files
8881 _ACEOF
8882 ;;
8883 esac
8884 rm -rf conftest*
8885   fi
8886 fi
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8889 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8890 if test "${ac_cv_sys_largefile_source+set}" = set; then :
8891   $as_echo_n "(cached) " >&6
8892 else
8893   while :; do
8894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h.  */
8896 #include <sys/types.h> /* for off_t */
8897      #include <stdio.h>
8898 int
8899 main ()
8900 {
8901 int (*fp) (FILE *, off_t, int) = fseeko;
8902      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 if ac_fn_c_try_link "$LINENO"; then :
8908   ac_cv_sys_largefile_source=no; break
8909 fi
8910 rm -f core conftest.err conftest.$ac_objext \
8911     conftest$ac_exeext conftest.$ac_ext
8912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h.  */
8914 #define _LARGEFILE_SOURCE 1
8915 #include <sys/types.h> /* for off_t */
8916      #include <stdio.h>
8917 int
8918 main ()
8919 {
8920 int (*fp) (FILE *, off_t, int) = fseeko;
8921      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927   ac_cv_sys_largefile_source=1; break
8928 fi
8929 rm -f core conftest.err conftest.$ac_objext \
8930     conftest$ac_exeext conftest.$ac_ext
8931   ac_cv_sys_largefile_source=unknown
8932   break
8933 done
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8936 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8937 case $ac_cv_sys_largefile_source in #(
8938   no | unknown) ;;
8939   *)
8940 cat >>confdefs.h <<_ACEOF
8941 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8942 _ACEOF
8943 ;;
8944 esac
8945 rm -rf conftest*
8946
8947 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8948 # in glibc 2.1.3, but that breaks too many other things.
8949 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8950 if test $ac_cv_sys_largefile_source != unknown; then
8951
8952 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8953
8954 fi
8955
8956 LFS_CPPFLAGS=''
8957 if test "$enable_largefile" != no; then
8958     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8959         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8960     else
8961         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8962 $as_echo_n "checking for native large file support... " >&6; }
8963         if test "$cross_compiling" = yes; then :
8964   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8966 as_fn_error "cannot run test program while cross compiling
8967 See \`config.log' for more details." "$LINENO" 5; }
8968 else
8969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h.  */
8971 #include <unistd.h>
8972           main () {
8973           exit(!(sizeof(off_t) == 8));
8974         }
8975 _ACEOF
8976 if ac_fn_c_try_run "$LINENO"; then :
8977   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8978
8979          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8980 $as_echo "yes" >&6; }
8981 else
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8984 fi
8985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8986   conftest.$ac_objext conftest.beam conftest.$ac_ext
8987 fi
8988
8989     fi
8990     if test "$ac_cv_sys_large_files" != 'no'; then
8991         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8992     fi
8993     if test "$ac_cv_sys_largefile_source" != 'no'; then
8994         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8995     fi
8996 fi
8997
8998
8999 #
9000 # Configure libtool & libltdl
9001 #
9002 # Configure libtool
9003 enable_dlopen=yes
9004
9005
9006
9007 case `pwd` in
9008   *\ * | *\     *)
9009     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9010 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9011 esac
9012
9013
9014
9015 macro_version='2.2.6b'
9016 macro_revision='1.3017'
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 ltmain="$ac_aux_dir/ltmain.sh"
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9033 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9034 if test "${lt_cv_path_NM+set}" = set; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   if test -n "$NM"; then
9038   # Let the user override the test.
9039   lt_cv_path_NM="$NM"
9040 else
9041   lt_nm_to_check="${ac_tool_prefix}nm"
9042   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9043     lt_nm_to_check="$lt_nm_to_check nm"
9044   fi
9045   for lt_tmp_nm in $lt_nm_to_check; do
9046     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9047     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9048       IFS="$lt_save_ifs"
9049       test -z "$ac_dir" && ac_dir=.
9050       tmp_nm="$ac_dir/$lt_tmp_nm"
9051       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9052         # Check to see if the nm accepts a BSD-compat flag.
9053         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9054         #   nm: unknown option "B" ignored
9055         # Tru64's nm complains that /dev/null is an invalid object file
9056         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9057         */dev/null* | *'Invalid file or object type'*)
9058           lt_cv_path_NM="$tmp_nm -B"
9059           break
9060           ;;
9061         *)
9062           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9063           */dev/null*)
9064             lt_cv_path_NM="$tmp_nm -p"
9065             break
9066             ;;
9067           *)
9068             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9069             continue # so that we can try to find one that supports BSD flags
9070             ;;
9071           esac
9072           ;;
9073         esac
9074       fi
9075     done
9076     IFS="$lt_save_ifs"
9077   done
9078   : ${lt_cv_path_NM=no}
9079 fi
9080 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9082 $as_echo "$lt_cv_path_NM" >&6; }
9083 if test "$lt_cv_path_NM" != "no"; then
9084   NM="$lt_cv_path_NM"
9085 else
9086   # Didn't find any BSD compatible name lister, look for dumpbin.
9087   if test -n "$ac_tool_prefix"; then
9088   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9089   do
9090     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9091 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9093 $as_echo_n "checking for $ac_word... " >&6; }
9094 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9095   $as_echo_n "(cached) " >&6
9096 else
9097   if test -n "$DUMPBIN"; then
9098   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9099 else
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 for as_dir in $PATH
9102 do
9103   IFS=$as_save_IFS
9104   test -z "$as_dir" && as_dir=.
9105     for ac_exec_ext in '' $ac_executable_extensions; do
9106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9107     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9109     break 2
9110   fi
9111 done
9112   done
9113 IFS=$as_save_IFS
9114
9115 fi
9116 fi
9117 DUMPBIN=$ac_cv_prog_DUMPBIN
9118 if test -n "$DUMPBIN"; then
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9120 $as_echo "$DUMPBIN" >&6; }
9121 else
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125
9126
9127     test -n "$DUMPBIN" && break
9128   done
9129 fi
9130 if test -z "$DUMPBIN"; then
9131   ac_ct_DUMPBIN=$DUMPBIN
9132   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9133 do
9134   # Extract the first word of "$ac_prog", so it can be a program name with args.
9135 set dummy $ac_prog; ac_word=$2
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 $as_echo_n "checking for $ac_word... " >&6; }
9138 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9139   $as_echo_n "(cached) " >&6
9140 else
9141   if test -n "$ac_ct_DUMPBIN"; then
9142   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9143 else
9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145 for as_dir in $PATH
9146 do
9147   IFS=$as_save_IFS
9148   test -z "$as_dir" && as_dir=.
9149     for ac_exec_ext in '' $ac_executable_extensions; do
9150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9151     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9153     break 2
9154   fi
9155 done
9156   done
9157 IFS=$as_save_IFS
9158
9159 fi
9160 fi
9161 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9162 if test -n "$ac_ct_DUMPBIN"; then
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9164 $as_echo "$ac_ct_DUMPBIN" >&6; }
9165 else
9166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9167 $as_echo "no" >&6; }
9168 fi
9169
9170
9171   test -n "$ac_ct_DUMPBIN" && break
9172 done
9173
9174   if test "x$ac_ct_DUMPBIN" = x; then
9175     DUMPBIN=":"
9176   else
9177     case $cross_compiling:$ac_tool_warned in
9178 yes:)
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9181 ac_tool_warned=yes ;;
9182 esac
9183     DUMPBIN=$ac_ct_DUMPBIN
9184   fi
9185 fi
9186
9187
9188   if test "$DUMPBIN" != ":"; then
9189     NM="$DUMPBIN"
9190   fi
9191 fi
9192 test -z "$NM" && NM=nm
9193
9194
9195
9196
9197
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9200 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9201 if test "${lt_cv_nm_interface+set}" = set; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_nm_interface="BSD nm"
9205   echo "int some_variable = 0;" > conftest.$ac_ext
9206   (eval echo "\"\$as_me:9206: $ac_compile\"" >&5)
9207   (eval "$ac_compile" 2>conftest.err)
9208   cat conftest.err >&5
9209   (eval echo "\"\$as_me:9209: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9210   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9211   cat conftest.err >&5
9212   (eval echo "\"\$as_me:9212: output\"" >&5)
9213   cat conftest.out >&5
9214   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9215     lt_cv_nm_interface="MS dumpbin"
9216   fi
9217   rm -f conftest*
9218 fi
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9220 $as_echo "$lt_cv_nm_interface" >&6; }
9221
9222 # find the maximum length of command line arguments
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9224 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9225 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228     i=0
9229   teststring="ABCD"
9230
9231   case $build_os in
9232   msdosdjgpp*)
9233     # On DJGPP, this test can blow up pretty badly due to problems in libc
9234     # (any single argument exceeding 2000 bytes causes a buffer overrun
9235     # during glob expansion).  Even if it were fixed, the result of this
9236     # check would be larger than it should be.
9237     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9238     ;;
9239
9240   gnu*)
9241     # Under GNU Hurd, this test is not required because there is
9242     # no limit to the length of command line arguments.
9243     # Libtool will interpret -1 as no limit whatsoever
9244     lt_cv_sys_max_cmd_len=-1;
9245     ;;
9246
9247   cygwin* | mingw* | cegcc*)
9248     # On Win9x/ME, this test blows up -- it succeeds, but takes
9249     # about 5 minutes as the teststring grows exponentially.
9250     # Worse, since 9x/ME are not pre-emptively multitasking,
9251     # you end up with a "frozen" computer, even though with patience
9252     # the test eventually succeeds (with a max line length of 256k).
9253     # Instead, let's just punt: use the minimum linelength reported by
9254     # all of the supported platforms: 8192 (on NT/2K/XP).
9255     lt_cv_sys_max_cmd_len=8192;
9256     ;;
9257
9258   amigaos*)
9259     # On AmigaOS with pdksh, this test takes hours, literally.
9260     # So we just punt and use a minimum line length of 8192.
9261     lt_cv_sys_max_cmd_len=8192;
9262     ;;
9263
9264   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9265     # This has been around since 386BSD, at least.  Likely further.
9266     if test -x /sbin/sysctl; then
9267       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9268     elif test -x /usr/sbin/sysctl; then
9269       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9270     else
9271       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9272     fi
9273     # And add a safety zone
9274     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9276     ;;
9277
9278   interix*)
9279     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9280     lt_cv_sys_max_cmd_len=196608
9281     ;;
9282
9283   osf*)
9284     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9285     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9286     # nice to cause kernel panics so lets avoid the loop below.
9287     # First set a reasonable default.
9288     lt_cv_sys_max_cmd_len=16384
9289     #
9290     if test -x /sbin/sysconfig; then
9291       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9292         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9293       esac
9294     fi
9295     ;;
9296   sco3.2v5*)
9297     lt_cv_sys_max_cmd_len=102400
9298     ;;
9299   sysv5* | sco5v6* | sysv4.2uw2*)
9300     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9301     if test -n "$kargmax"; then
9302       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9303     else
9304       lt_cv_sys_max_cmd_len=32768
9305     fi
9306     ;;
9307   *)
9308     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9309     if test -n "$lt_cv_sys_max_cmd_len"; then
9310       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9311       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9312     else
9313       # Make teststring a little bigger before we do anything with it.
9314       # a 1K string should be a reasonable start.
9315       for i in 1 2 3 4 5 6 7 8 ; do
9316         teststring=$teststring$teststring
9317       done
9318       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9319       # If test is not a shell built-in, we'll probably end up computing a
9320       # maximum length that is only half of the actual maximum length, but
9321       # we can't tell.
9322       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9323                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9324               test $i != 17 # 1/2 MB should be enough
9325       do
9326         i=`expr $i + 1`
9327         teststring=$teststring$teststring
9328       done
9329       # Only check the string length outside the loop.
9330       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9331       teststring=
9332       # Add a significant safety factor because C++ compilers can tack on
9333       # massive amounts of additional arguments before passing them to the
9334       # linker.  It appears as though 1/2 is a usable value.
9335       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9336     fi
9337     ;;
9338   esac
9339
9340 fi
9341
9342 if test -n $lt_cv_sys_max_cmd_len ; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9344 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9347 $as_echo "none" >&6; }
9348 fi
9349 max_cmd_len=$lt_cv_sys_max_cmd_len
9350
9351
9352
9353
9354
9355
9356 : ${CP="cp -f"}
9357 : ${MV="mv -f"}
9358 : ${RM="rm -f"}
9359
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9361 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9362 # Try some XSI features
9363 xsi_shell=no
9364 ( _lt_dummy="a/b/c"
9365   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9366       = c,a/b,, \
9367     && eval 'test $(( 1 + 1 )) -eq 2 \
9368     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9369   && xsi_shell=yes
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9371 $as_echo "$xsi_shell" >&6; }
9372
9373
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9375 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9376 lt_shell_append=no
9377 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9378     >/dev/null 2>&1 \
9379   && lt_shell_append=yes
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9381 $as_echo "$lt_shell_append" >&6; }
9382
9383
9384 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9385   lt_unset=unset
9386 else
9387   lt_unset=false
9388 fi
9389
9390
9391
9392
9393
9394 # test EBCDIC or ASCII
9395 case `echo X|tr X '\101'` in
9396  A) # ASCII based system
9397     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9398   lt_SP2NL='tr \040 \012'
9399   lt_NL2SP='tr \015\012 \040\040'
9400   ;;
9401  *) # EBCDIC based system
9402   lt_SP2NL='tr \100 \n'
9403   lt_NL2SP='tr \r\n \100\100'
9404   ;;
9405 esac
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9416 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9417 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9418   $as_echo_n "(cached) " >&6
9419 else
9420   lt_cv_ld_reload_flag='-r'
9421 fi
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9423 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9424 reload_flag=$lt_cv_ld_reload_flag
9425 case $reload_flag in
9426 "" | " "*) ;;
9427 *) reload_flag=" $reload_flag" ;;
9428 esac
9429 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9430 case $host_os in
9431   darwin*)
9432     if test "$GCC" = yes; then
9433       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9434     else
9435       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9436     fi
9437     ;;
9438 esac
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448 if test -n "$ac_tool_prefix"; then
9449   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9450 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9452 $as_echo_n "checking for $ac_word... " >&6; }
9453 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9454   $as_echo_n "(cached) " >&6
9455 else
9456   if test -n "$OBJDUMP"; then
9457   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9458 else
9459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 for as_dir in $PATH
9461 do
9462   IFS=$as_save_IFS
9463   test -z "$as_dir" && as_dir=.
9464     for ac_exec_ext in '' $ac_executable_extensions; do
9465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9466     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9468     break 2
9469   fi
9470 done
9471   done
9472 IFS=$as_save_IFS
9473
9474 fi
9475 fi
9476 OBJDUMP=$ac_cv_prog_OBJDUMP
9477 if test -n "$OBJDUMP"; then
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9479 $as_echo "$OBJDUMP" >&6; }
9480 else
9481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9482 $as_echo "no" >&6; }
9483 fi
9484
9485
9486 fi
9487 if test -z "$ac_cv_prog_OBJDUMP"; then
9488   ac_ct_OBJDUMP=$OBJDUMP
9489   # Extract the first word of "objdump", so it can be a program name with args.
9490 set dummy objdump; ac_word=$2
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492 $as_echo_n "checking for $ac_word... " >&6; }
9493 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9494   $as_echo_n "(cached) " >&6
9495 else
9496   if test -n "$ac_ct_OBJDUMP"; then
9497   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502   IFS=$as_save_IFS
9503   test -z "$as_dir" && as_dir=.
9504     for ac_exec_ext in '' $ac_executable_extensions; do
9505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9508     break 2
9509   fi
9510 done
9511   done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9517 if test -n "$ac_ct_OBJDUMP"; then
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9519 $as_echo "$ac_ct_OBJDUMP" >&6; }
9520 else
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522 $as_echo "no" >&6; }
9523 fi
9524
9525   if test "x$ac_ct_OBJDUMP" = x; then
9526     OBJDUMP="false"
9527   else
9528     case $cross_compiling:$ac_tool_warned in
9529 yes:)
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9532 ac_tool_warned=yes ;;
9533 esac
9534     OBJDUMP=$ac_ct_OBJDUMP
9535   fi
9536 else
9537   OBJDUMP="$ac_cv_prog_OBJDUMP"
9538 fi
9539
9540 test -z "$OBJDUMP" && OBJDUMP=objdump
9541
9542
9543
9544
9545
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9548 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9549 if test "${lt_cv_deplibs_check_method+set}" = set; then :
9550   $as_echo_n "(cached) " >&6
9551 else
9552   lt_cv_file_magic_cmd='$MAGIC_CMD'
9553 lt_cv_file_magic_test_file=
9554 lt_cv_deplibs_check_method='unknown'
9555 # Need to set the preceding variable on all platforms that support
9556 # interlibrary dependencies.
9557 # 'none' -- dependencies not supported.
9558 # `unknown' -- same as none, but documents that we really don't know.
9559 # 'pass_all' -- all dependencies passed with no checks.
9560 # 'test_compile' -- check by making test program.
9561 # 'file_magic [[regex]]' -- check by looking for files in library path
9562 # which responds to the $file_magic_cmd with a given extended regex.
9563 # If you have `file' or equivalent on your system and you're not sure
9564 # whether `pass_all' will *always* work, you probably want this one.
9565
9566 case $host_os in
9567 aix[4-9]*)
9568   lt_cv_deplibs_check_method=pass_all
9569   ;;
9570
9571 beos*)
9572   lt_cv_deplibs_check_method=pass_all
9573   ;;
9574
9575 bsdi[45]*)
9576   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9577   lt_cv_file_magic_cmd='/usr/bin/file -L'
9578   lt_cv_file_magic_test_file=/shlib/libc.so
9579   ;;
9580
9581 cygwin*)
9582   # func_win32_libid is a shell function defined in ltmain.sh
9583   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9584   lt_cv_file_magic_cmd='func_win32_libid'
9585   ;;
9586
9587 mingw* | pw32*)
9588   # Base MSYS/MinGW do not provide the 'file' command needed by
9589   # func_win32_libid shell function, so use a weaker test based on 'objdump',
9590   # unless we find 'file', for example because we are cross-compiling.
9591   if ( file / ) >/dev/null 2>&1; then
9592     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9593     lt_cv_file_magic_cmd='func_win32_libid'
9594   else
9595     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9596     lt_cv_file_magic_cmd='$OBJDUMP -f'
9597   fi
9598   ;;
9599
9600 cegcc)
9601   # use the weaker test based on 'objdump'. See mingw*.
9602   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9603   lt_cv_file_magic_cmd='$OBJDUMP -f'
9604   ;;
9605
9606 darwin* | rhapsody*)
9607   lt_cv_deplibs_check_method=pass_all
9608   ;;
9609
9610 freebsd* | dragonfly*)
9611   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9612     case $host_cpu in
9613     i*86 )
9614       # Not sure whether the presence of OpenBSD here was a mistake.
9615       # Let's accept both of them until this is cleared up.
9616       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9617       lt_cv_file_magic_cmd=/usr/bin/file
9618       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9619       ;;
9620     esac
9621   else
9622     lt_cv_deplibs_check_method=pass_all
9623   fi
9624   ;;
9625
9626 gnu*)
9627   lt_cv_deplibs_check_method=pass_all
9628   ;;
9629
9630 hpux10.20* | hpux11*)
9631   lt_cv_file_magic_cmd=/usr/bin/file
9632   case $host_cpu in
9633   ia64*)
9634     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9635     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9636     ;;
9637   hppa*64*)
9638     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
9639     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9640     ;;
9641   *)
9642     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9643     lt_cv_file_magic_test_file=/usr/lib/libc.sl
9644     ;;
9645   esac
9646   ;;
9647
9648 interix[3-9]*)
9649   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9650   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9651   ;;
9652
9653 irix5* | irix6* | nonstopux*)
9654   case $LD in
9655   *-32|*"-32 ") libmagic=32-bit;;
9656   *-n32|*"-n32 ") libmagic=N32;;
9657   *-64|*"-64 ") libmagic=64-bit;;
9658   *) libmagic=never-match;;
9659   esac
9660   lt_cv_deplibs_check_method=pass_all
9661   ;;
9662
9663 # This must be Linux ELF.
9664 linux* | k*bsd*-gnu)
9665   lt_cv_deplibs_check_method=pass_all
9666   ;;
9667
9668 netbsd*)
9669   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9670     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9671   else
9672     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9673   fi
9674   ;;
9675
9676 newos6*)
9677   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9678   lt_cv_file_magic_cmd=/usr/bin/file
9679   lt_cv_file_magic_test_file=/usr/lib/libnls.so
9680   ;;
9681
9682 *nto* | *qnx*)
9683   lt_cv_deplibs_check_method=pass_all
9684   ;;
9685
9686 openbsd*)
9687   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9689   else
9690     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9691   fi
9692   ;;
9693
9694 osf3* | osf4* | osf5*)
9695   lt_cv_deplibs_check_method=pass_all
9696   ;;
9697
9698 rdos*)
9699   lt_cv_deplibs_check_method=pass_all
9700   ;;
9701
9702 solaris*)
9703   lt_cv_deplibs_check_method=pass_all
9704   ;;
9705
9706 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9707   lt_cv_deplibs_check_method=pass_all
9708   ;;
9709
9710 sysv4 | sysv4.3*)
9711   case $host_vendor in
9712   motorola)
9713     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]'
9714     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9715     ;;
9716   ncr)
9717     lt_cv_deplibs_check_method=pass_all
9718     ;;
9719   sequent)
9720     lt_cv_file_magic_cmd='/bin/file'
9721     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9722     ;;
9723   sni)
9724     lt_cv_file_magic_cmd='/bin/file'
9725     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9726     lt_cv_file_magic_test_file=/lib/libc.so
9727     ;;
9728   siemens)
9729     lt_cv_deplibs_check_method=pass_all
9730     ;;
9731   pc)
9732     lt_cv_deplibs_check_method=pass_all
9733     ;;
9734   esac
9735   ;;
9736
9737 tpf*)
9738   lt_cv_deplibs_check_method=pass_all
9739   ;;
9740 esac
9741
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9744 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9745 file_magic_cmd=$lt_cv_file_magic_cmd
9746 deplibs_check_method=$lt_cv_deplibs_check_method
9747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760 if test -n "$ac_tool_prefix"; then
9761   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9762 set dummy ${ac_tool_prefix}ar; 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 test "${ac_cv_prog_AR+set}" = set; then :
9766   $as_echo_n "(cached) " >&6
9767 else
9768   if test -n "$AR"; then
9769   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
9789 if test -n "$AR"; then
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9791 $as_echo "$AR" >&6; }
9792 else
9793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_AR"; then
9800   ac_ct_AR=$AR
9801   # Extract the first word of "ar", so it can be a program name with args.
9802 set dummy ar; ac_word=$2
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9804 $as_echo_n "checking for $ac_word... " >&6; }
9805 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9806   $as_echo_n "(cached) " >&6
9807 else
9808   if test -n "$ac_ct_AR"; then
9809   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9810 else
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9813 do
9814   IFS=$as_save_IFS
9815   test -z "$as_dir" && as_dir=.
9816     for ac_exec_ext in '' $ac_executable_extensions; do
9817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818     ac_cv_prog_ac_ct_AR="ar"
9819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9820     break 2
9821   fi
9822 done
9823   done
9824 IFS=$as_save_IFS
9825
9826 fi
9827 fi
9828 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9829 if test -n "$ac_ct_AR"; then
9830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9831 $as_echo "$ac_ct_AR" >&6; }
9832 else
9833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9834 $as_echo "no" >&6; }
9835 fi
9836
9837   if test "x$ac_ct_AR" = x; then
9838     AR="false"
9839   else
9840     case $cross_compiling:$ac_tool_warned in
9841 yes:)
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9844 ac_tool_warned=yes ;;
9845 esac
9846     AR=$ac_ct_AR
9847   fi
9848 else
9849   AR="$ac_cv_prog_AR"
9850 fi
9851
9852 test -z "$AR" && AR=ar
9853 test -z "$AR_FLAGS" && AR_FLAGS=cru
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865 if test -n "$ac_tool_prefix"; then
9866   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9867 set dummy ${ac_tool_prefix}strip; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if test "${ac_cv_prog_STRIP+set}" = set; then :
9871   $as_echo_n "(cached) " >&6
9872 else
9873   if test -n "$STRIP"; then
9874   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881     for ac_exec_ext in '' $ac_executable_extensions; do
9882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885     break 2
9886   fi
9887 done
9888   done
9889 IFS=$as_save_IFS
9890
9891 fi
9892 fi
9893 STRIP=$ac_cv_prog_STRIP
9894 if test -n "$STRIP"; then
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9896 $as_echo "$STRIP" >&6; }
9897 else
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901
9902
9903 fi
9904 if test -z "$ac_cv_prog_STRIP"; then
9905   ac_ct_STRIP=$STRIP
9906   # Extract the first word of "strip", so it can be a program name with args.
9907 set dummy strip; ac_word=$2
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909 $as_echo_n "checking for $ac_word... " >&6; }
9910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9911   $as_echo_n "(cached) " >&6
9912 else
9913   if test -n "$ac_ct_STRIP"; then
9914   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9915 else
9916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917 for as_dir in $PATH
9918 do
9919   IFS=$as_save_IFS
9920   test -z "$as_dir" && as_dir=.
9921     for ac_exec_ext in '' $ac_executable_extensions; do
9922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9923     ac_cv_prog_ac_ct_STRIP="strip"
9924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925     break 2
9926   fi
9927 done
9928   done
9929 IFS=$as_save_IFS
9930
9931 fi
9932 fi
9933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9934 if test -n "$ac_ct_STRIP"; then
9935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9936 $as_echo "$ac_ct_STRIP" >&6; }
9937 else
9938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939 $as_echo "no" >&6; }
9940 fi
9941
9942   if test "x$ac_ct_STRIP" = x; then
9943     STRIP=":"
9944   else
9945     case $cross_compiling:$ac_tool_warned in
9946 yes:)
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9949 ac_tool_warned=yes ;;
9950 esac
9951     STRIP=$ac_ct_STRIP
9952   fi
9953 else
9954   STRIP="$ac_cv_prog_STRIP"
9955 fi
9956
9957 test -z "$STRIP" && STRIP=:
9958
9959
9960
9961
9962
9963
9964 if test -n "$ac_tool_prefix"; then
9965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9970   $as_echo_n "(cached) " >&6
9971 else
9972   if test -n "$RANLIB"; then
9973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9974 else
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH
9977 do
9978   IFS=$as_save_IFS
9979   test -z "$as_dir" && as_dir=.
9980     for ac_exec_ext in '' $ac_executable_extensions; do
9981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984     break 2
9985   fi
9986 done
9987   done
9988 IFS=$as_save_IFS
9989
9990 fi
9991 fi
9992 RANLIB=$ac_cv_prog_RANLIB
9993 if test -n "$RANLIB"; then
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9995 $as_echo "$RANLIB" >&6; }
9996 else
9997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
9999 fi
10000
10001
10002 fi
10003 if test -z "$ac_cv_prog_RANLIB"; then
10004   ac_ct_RANLIB=$RANLIB
10005   # Extract the first word of "ranlib", so it can be a program name with args.
10006 set dummy ranlib; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   if test -n "$ac_ct_RANLIB"; then
10013   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10014 else
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10017 do
10018   IFS=$as_save_IFS
10019   test -z "$as_dir" && as_dir=.
10020     for ac_exec_ext in '' $ac_executable_extensions; do
10021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10022     ac_cv_prog_ac_ct_RANLIB="ranlib"
10023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10024     break 2
10025   fi
10026 done
10027   done
10028 IFS=$as_save_IFS
10029
10030 fi
10031 fi
10032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10033 if test -n "$ac_ct_RANLIB"; then
10034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10035 $as_echo "$ac_ct_RANLIB" >&6; }
10036 else
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10039 fi
10040
10041   if test "x$ac_ct_RANLIB" = x; then
10042     RANLIB=":"
10043   else
10044     case $cross_compiling:$ac_tool_warned in
10045 yes:)
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10048 ac_tool_warned=yes ;;
10049 esac
10050     RANLIB=$ac_ct_RANLIB
10051   fi
10052 else
10053   RANLIB="$ac_cv_prog_RANLIB"
10054 fi
10055
10056 test -z "$RANLIB" && RANLIB=:
10057
10058
10059
10060
10061
10062
10063 # Determine commands to create old-style static archives.
10064 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10065 old_postinstall_cmds='chmod 644 $oldlib'
10066 old_postuninstall_cmds=
10067
10068 if test -n "$RANLIB"; then
10069   case $host_os in
10070   openbsd*)
10071     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10072     ;;
10073   *)
10074     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10075     ;;
10076   esac
10077   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10078 fi
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 # If no C compiler was specified, use CC.
10114 LTCC=${LTCC-"$CC"}
10115
10116 # If no C compiler flags were specified, use CFLAGS.
10117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10118
10119 # Allow CC to be a program name with arguments.
10120 compiler=$CC
10121
10122
10123 # Check for command to grab the raw symbol name followed by C symbol from nm.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10126 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10127   $as_echo_n "(cached) " >&6
10128 else
10129
10130 # These are sane defaults that work on at least a few old systems.
10131 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10132
10133 # Character class describing NM global symbol codes.
10134 symcode='[BCDEGRST]'
10135
10136 # Regexp to match symbols that can be accessed directly from C.
10137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10138
10139 # Define system-specific variables.
10140 case $host_os in
10141 aix*)
10142   symcode='[BCDT]'
10143   ;;
10144 cygwin* | mingw* | pw32* | cegcc*)
10145   symcode='[ABCDGISTW]'
10146   ;;
10147 hpux*)
10148   if test "$host_cpu" = ia64; then
10149     symcode='[ABCDEGRST]'
10150   fi
10151   ;;
10152 irix* | nonstopux*)
10153   symcode='[BCDEGRST]'
10154   ;;
10155 osf*)
10156   symcode='[BCDEGQRST]'
10157   ;;
10158 solaris*)
10159   symcode='[BDRT]'
10160   ;;
10161 sco3.2v5*)
10162   symcode='[DT]'
10163   ;;
10164 sysv4.2uw2*)
10165   symcode='[DT]'
10166   ;;
10167 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10168   symcode='[ABDT]'
10169   ;;
10170 sysv4)
10171   symcode='[DFNSTU]'
10172   ;;
10173 esac
10174
10175 # If we're using GNU nm, then use its standard symbol codes.
10176 case `$NM -V 2>&1` in
10177 *GNU* | *'with BFD'*)
10178   symcode='[ABCDGIRSTW]' ;;
10179 esac
10180
10181 # Transform an extracted symbol line into a proper C declaration.
10182 # Some systems (esp. on ia64) link data and code symbols differently,
10183 # so use this general approach.
10184 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10185
10186 # Transform an extracted symbol line into symbol name and symbol address
10187 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10188 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'"
10189
10190 # Handle CRLF in mingw tool chain
10191 opt_cr=
10192 case $build_os in
10193 mingw*)
10194   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10195   ;;
10196 esac
10197
10198 # Try without a prefix underscore, then with it.
10199 for ac_symprfx in "" "_"; do
10200
10201   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10202   symxfrm="\\1 $ac_symprfx\\2 \\2"
10203
10204   # Write the raw and C identifiers.
10205   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10206     # Fake it for dumpbin and say T for any non-static function
10207     # and D for any global variable.
10208     # Also find C++ and __fastcall symbols from MSVC++,
10209     # which start with @ or ?.
10210     lt_cv_sys_global_symbol_pipe="$AWK '"\
10211 "     {last_section=section; section=\$ 3};"\
10212 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10213 "     \$ 0!~/External *\|/{next};"\
10214 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10215 "     {if(hide[section]) next};"\
10216 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10217 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10218 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10219 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10220 "     ' prfx=^$ac_symprfx"
10221   else
10222     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10223   fi
10224
10225   # Check to see that the pipe works correctly.
10226   pipe_works=no
10227
10228   rm -f conftest*
10229   cat > conftest.$ac_ext <<_LT_EOF
10230 #ifdef __cplusplus
10231 extern "C" {
10232 #endif
10233 char nm_test_var;
10234 void nm_test_func(void);
10235 void nm_test_func(void){}
10236 #ifdef __cplusplus
10237 }
10238 #endif
10239 int main(){nm_test_var='a';nm_test_func();return(0);}
10240 _LT_EOF
10241
10242   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10243   (eval $ac_compile) 2>&5
10244   ac_status=$?
10245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10246   test $ac_status = 0; }; then
10247     # Now try to grab the symbols.
10248     nlist=conftest.nm
10249     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10250   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10251   ac_status=$?
10252   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253   test $ac_status = 0; } && test -s "$nlist"; then
10254       # Try sorting and uniquifying the output.
10255       if sort "$nlist" | uniq > "$nlist"T; then
10256         mv -f "$nlist"T "$nlist"
10257       else
10258         rm -f "$nlist"T
10259       fi
10260
10261       # Make sure that we snagged all the symbols we need.
10262       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10263         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10264           cat <<_LT_EOF > conftest.$ac_ext
10265 #ifdef __cplusplus
10266 extern "C" {
10267 #endif
10268
10269 _LT_EOF
10270           # Now generate the symbol file.
10271           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10272
10273           cat <<_LT_EOF >> conftest.$ac_ext
10274
10275 /* The mapping between symbol names and symbols.  */
10276 const struct {
10277   const char *name;
10278   void       *address;
10279 }
10280 lt__PROGRAM__LTX_preloaded_symbols[] =
10281 {
10282   { "@PROGRAM@", (void *) 0 },
10283 _LT_EOF
10284           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10285           cat <<\_LT_EOF >> conftest.$ac_ext
10286   {0, (void *) 0}
10287 };
10288
10289 /* This works around a problem in FreeBSD linker */
10290 #ifdef FREEBSD_WORKAROUND
10291 static const void *lt_preloaded_setup() {
10292   return lt__PROGRAM__LTX_preloaded_symbols;
10293 }
10294 #endif
10295
10296 #ifdef __cplusplus
10297 }
10298 #endif
10299 _LT_EOF
10300           # Now try linking the two files.
10301           mv conftest.$ac_objext conftstm.$ac_objext
10302           lt_save_LIBS="$LIBS"
10303           lt_save_CFLAGS="$CFLAGS"
10304           LIBS="conftstm.$ac_objext"
10305           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10306           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10307   (eval $ac_link) 2>&5
10308   ac_status=$?
10309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10310   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10311             pipe_works=yes
10312           fi
10313           LIBS="$lt_save_LIBS"
10314           CFLAGS="$lt_save_CFLAGS"
10315         else
10316           echo "cannot find nm_test_func in $nlist" >&5
10317         fi
10318       else
10319         echo "cannot find nm_test_var in $nlist" >&5
10320       fi
10321     else
10322       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10323     fi
10324   else
10325     echo "$progname: failed program was:" >&5
10326     cat conftest.$ac_ext >&5
10327   fi
10328   rm -rf conftest* conftst*
10329
10330   # Do not use the global_symbol_pipe unless it works.
10331   if test "$pipe_works" = yes; then
10332     break
10333   else
10334     lt_cv_sys_global_symbol_pipe=
10335   fi
10336 done
10337
10338 fi
10339
10340 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10341   lt_cv_sys_global_symbol_to_cdecl=
10342 fi
10343 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10345 $as_echo "failed" >&6; }
10346 else
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10348 $as_echo "ok" >&6; }
10349 fi
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372 # Check whether --enable-libtool-lock was given.
10373 if test "${enable_libtool_lock+set}" = set; then :
10374   enableval=$enable_libtool_lock;
10375 fi
10376
10377 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10378
10379 # Some flags need to be propagated to the compiler or linker for good
10380 # libtool support.
10381 case $host in
10382 ia64-*-hpux*)
10383   # Find out which ABI we are using.
10384   echo 'int i;' > conftest.$ac_ext
10385   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10386   (eval $ac_compile) 2>&5
10387   ac_status=$?
10388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10389   test $ac_status = 0; }; then
10390     case `/usr/bin/file conftest.$ac_objext` in
10391       *ELF-32*)
10392         HPUX_IA64_MODE="32"
10393         ;;
10394       *ELF-64*)
10395         HPUX_IA64_MODE="64"
10396         ;;
10397     esac
10398   fi
10399   rm -rf conftest*
10400   ;;
10401 *-*-irix6*)
10402   # Find out which ABI we are using.
10403   echo '#line 10403 "configure"' > conftest.$ac_ext
10404   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10405   (eval $ac_compile) 2>&5
10406   ac_status=$?
10407   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10408   test $ac_status = 0; }; then
10409     if test "$lt_cv_prog_gnu_ld" = yes; then
10410       case `/usr/bin/file conftest.$ac_objext` in
10411         *32-bit*)
10412           LD="${LD-ld} -melf32bsmip"
10413           ;;
10414         *N32*)
10415           LD="${LD-ld} -melf32bmipn32"
10416           ;;
10417         *64-bit*)
10418           LD="${LD-ld} -melf64bmip"
10419         ;;
10420       esac
10421     else
10422       case `/usr/bin/file conftest.$ac_objext` in
10423         *32-bit*)
10424           LD="${LD-ld} -32"
10425           ;;
10426         *N32*)
10427           LD="${LD-ld} -n32"
10428           ;;
10429         *64-bit*)
10430           LD="${LD-ld} -64"
10431           ;;
10432       esac
10433     fi
10434   fi
10435   rm -rf conftest*
10436   ;;
10437
10438 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10439 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10440   # Find out which ABI we are using.
10441   echo 'int i;' > conftest.$ac_ext
10442   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10443   (eval $ac_compile) 2>&5
10444   ac_status=$?
10445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10446   test $ac_status = 0; }; then
10447     case `/usr/bin/file conftest.o` in
10448       *32-bit*)
10449         case $host in
10450           x86_64-*kfreebsd*-gnu)
10451             LD="${LD-ld} -m elf_i386_fbsd"
10452             ;;
10453           x86_64-*linux*)
10454             LD="${LD-ld} -m elf_i386"
10455             ;;
10456           ppc64-*linux*|powerpc64-*linux*)
10457             LD="${LD-ld} -m elf32ppclinux"
10458             ;;
10459           s390x-*linux*)
10460             LD="${LD-ld} -m elf_s390"
10461             ;;
10462           sparc64-*linux*)
10463             LD="${LD-ld} -m elf32_sparc"
10464             ;;
10465         esac
10466         ;;
10467       *64-bit*)
10468         case $host in
10469           x86_64-*kfreebsd*-gnu)
10470             LD="${LD-ld} -m elf_x86_64_fbsd"
10471             ;;
10472           x86_64-*linux*)
10473             LD="${LD-ld} -m elf_x86_64"
10474             ;;
10475           ppc*-*linux*|powerpc*-*linux*)
10476             LD="${LD-ld} -m elf64ppc"
10477             ;;
10478           s390*-*linux*|s390*-*tpf*)
10479             LD="${LD-ld} -m elf64_s390"
10480             ;;
10481           sparc*-*linux*)
10482             LD="${LD-ld} -m elf64_sparc"
10483             ;;
10484         esac
10485         ;;
10486     esac
10487   fi
10488   rm -rf conftest*
10489   ;;
10490
10491 *-*-sco3.2v5*)
10492   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10493   SAVE_CFLAGS="$CFLAGS"
10494   CFLAGS="$CFLAGS -belf"
10495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10496 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10497 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10498   $as_echo_n "(cached) " >&6
10499 else
10500   ac_ext=c
10501 ac_cpp='$CPP $CPPFLAGS'
10502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10505
10506      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507 /* end confdefs.h.  */
10508
10509 int
10510 main ()
10511 {
10512
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 if ac_fn_c_try_link "$LINENO"; then :
10518   lt_cv_cc_needs_belf=yes
10519 else
10520   lt_cv_cc_needs_belf=no
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext \
10523     conftest$ac_exeext conftest.$ac_ext
10524      ac_ext=c
10525 ac_cpp='$CPP $CPPFLAGS'
10526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529
10530 fi
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10532 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10533   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10534     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10535     CFLAGS="$SAVE_CFLAGS"
10536   fi
10537   ;;
10538 sparc*-*solaris*)
10539   # Find out which ABI we are using.
10540   echo 'int i;' > conftest.$ac_ext
10541   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10542   (eval $ac_compile) 2>&5
10543   ac_status=$?
10544   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10545   test $ac_status = 0; }; then
10546     case `/usr/bin/file conftest.o` in
10547     *64-bit*)
10548       case $lt_cv_prog_gnu_ld in
10549       yes*) LD="${LD-ld} -m elf64_sparc" ;;
10550       *)
10551         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10552           LD="${LD-ld} -64"
10553         fi
10554         ;;
10555       esac
10556       ;;
10557     esac
10558   fi
10559   rm -rf conftest*
10560   ;;
10561 esac
10562
10563 need_locks="$enable_libtool_lock"
10564
10565
10566   case $host_os in
10567     rhapsody* | darwin*)
10568     if test -n "$ac_tool_prefix"; then
10569   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10570 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   if test -n "$DSYMUTIL"; then
10577   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10597 if test -n "$DSYMUTIL"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10599 $as_echo "$DSYMUTIL" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605
10606 fi
10607 if test -z "$ac_cv_prog_DSYMUTIL"; then
10608   ac_ct_DSYMUTIL=$DSYMUTIL
10609   # Extract the first word of "dsymutil", so it can be a program name with args.
10610 set dummy dsymutil; ac_word=$2
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10612 $as_echo_n "checking for $ac_word... " >&6; }
10613 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10614   $as_echo_n "(cached) " >&6
10615 else
10616   if test -n "$ac_ct_DSYMUTIL"; then
10617   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10618 else
10619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10620 for as_dir in $PATH
10621 do
10622   IFS=$as_save_IFS
10623   test -z "$as_dir" && as_dir=.
10624     for ac_exec_ext in '' $ac_executable_extensions; do
10625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10626     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10628     break 2
10629   fi
10630 done
10631   done
10632 IFS=$as_save_IFS
10633
10634 fi
10635 fi
10636 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10637 if test -n "$ac_ct_DSYMUTIL"; then
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10639 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 fi
10644
10645   if test "x$ac_ct_DSYMUTIL" = x; then
10646     DSYMUTIL=":"
10647   else
10648     case $cross_compiling:$ac_tool_warned in
10649 yes:)
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10652 ac_tool_warned=yes ;;
10653 esac
10654     DSYMUTIL=$ac_ct_DSYMUTIL
10655   fi
10656 else
10657   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10658 fi
10659
10660     if test -n "$ac_tool_prefix"; then
10661   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10662 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   if test -n "$NMEDIT"; then
10669   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674   IFS=$as_save_IFS
10675   test -z "$as_dir" && as_dir=.
10676     for ac_exec_ext in '' $ac_executable_extensions; do
10677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680     break 2
10681   fi
10682 done
10683   done
10684 IFS=$as_save_IFS
10685
10686 fi
10687 fi
10688 NMEDIT=$ac_cv_prog_NMEDIT
10689 if test -n "$NMEDIT"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10691 $as_echo "$NMEDIT" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698 fi
10699 if test -z "$ac_cv_prog_NMEDIT"; then
10700   ac_ct_NMEDIT=$NMEDIT
10701   # Extract the first word of "nmedit", so it can be a program name with args.
10702 set dummy nmedit; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10706   $as_echo_n "(cached) " >&6
10707 else
10708   if test -n "$ac_ct_NMEDIT"; then
10709   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10710 else
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10713 do
10714   IFS=$as_save_IFS
10715   test -z "$as_dir" && as_dir=.
10716     for ac_exec_ext in '' $ac_executable_extensions; do
10717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720     break 2
10721   fi
10722 done
10723   done
10724 IFS=$as_save_IFS
10725
10726 fi
10727 fi
10728 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10729 if test -n "$ac_ct_NMEDIT"; then
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10731 $as_echo "$ac_ct_NMEDIT" >&6; }
10732 else
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10735 fi
10736
10737   if test "x$ac_ct_NMEDIT" = x; then
10738     NMEDIT=":"
10739   else
10740     case $cross_compiling:$ac_tool_warned in
10741 yes:)
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10745 esac
10746     NMEDIT=$ac_ct_NMEDIT
10747   fi
10748 else
10749   NMEDIT="$ac_cv_prog_NMEDIT"
10750 fi
10751
10752     if test -n "$ac_tool_prefix"; then
10753   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10754 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756 $as_echo_n "checking for $ac_word... " >&6; }
10757 if test "${ac_cv_prog_LIPO+set}" = set; then :
10758   $as_echo_n "(cached) " >&6
10759 else
10760   if test -n "$LIPO"; then
10761   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10762 else
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10765 do
10766   IFS=$as_save_IFS
10767   test -z "$as_dir" && as_dir=.
10768     for ac_exec_ext in '' $ac_executable_extensions; do
10769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10770     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10772     break 2
10773   fi
10774 done
10775   done
10776 IFS=$as_save_IFS
10777
10778 fi
10779 fi
10780 LIPO=$ac_cv_prog_LIPO
10781 if test -n "$LIPO"; then
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10783 $as_echo "$LIPO" >&6; }
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }
10787 fi
10788
10789
10790 fi
10791 if test -z "$ac_cv_prog_LIPO"; then
10792   ac_ct_LIPO=$LIPO
10793   # Extract the first word of "lipo", so it can be a program name with args.
10794 set dummy lipo; ac_word=$2
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796 $as_echo_n "checking for $ac_word... " >&6; }
10797 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10798   $as_echo_n "(cached) " >&6
10799 else
10800   if test -n "$ac_ct_LIPO"; then
10801   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10802 else
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10805 do
10806   IFS=$as_save_IFS
10807   test -z "$as_dir" && as_dir=.
10808     for ac_exec_ext in '' $ac_executable_extensions; do
10809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810     ac_cv_prog_ac_ct_LIPO="lipo"
10811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812     break 2
10813   fi
10814 done
10815   done
10816 IFS=$as_save_IFS
10817
10818 fi
10819 fi
10820 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10821 if test -n "$ac_ct_LIPO"; then
10822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10823 $as_echo "$ac_ct_LIPO" >&6; }
10824 else
10825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10827 fi
10828
10829   if test "x$ac_ct_LIPO" = x; then
10830     LIPO=":"
10831   else
10832     case $cross_compiling:$ac_tool_warned in
10833 yes:)
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10836 ac_tool_warned=yes ;;
10837 esac
10838     LIPO=$ac_ct_LIPO
10839   fi
10840 else
10841   LIPO="$ac_cv_prog_LIPO"
10842 fi
10843
10844     if test -n "$ac_tool_prefix"; then
10845   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10846 set dummy ${ac_tool_prefix}otool; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10850   $as_echo_n "(cached) " >&6
10851 else
10852   if test -n "$OTOOL"; then
10853   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10854 else
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858   IFS=$as_save_IFS
10859   test -z "$as_dir" && as_dir=.
10860     for ac_exec_ext in '' $ac_executable_extensions; do
10861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864     break 2
10865   fi
10866 done
10867   done
10868 IFS=$as_save_IFS
10869
10870 fi
10871 fi
10872 OTOOL=$ac_cv_prog_OTOOL
10873 if test -n "$OTOOL"; then
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10875 $as_echo "$OTOOL" >&6; }
10876 else
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10879 fi
10880
10881
10882 fi
10883 if test -z "$ac_cv_prog_OTOOL"; then
10884   ac_ct_OTOOL=$OTOOL
10885   # Extract the first word of "otool", so it can be a program name with args.
10886 set dummy otool; ac_word=$2
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10890   $as_echo_n "(cached) " >&6
10891 else
10892   if test -n "$ac_ct_OTOOL"; then
10893   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10894 else
10895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896 for as_dir in $PATH
10897 do
10898   IFS=$as_save_IFS
10899   test -z "$as_dir" && as_dir=.
10900     for ac_exec_ext in '' $ac_executable_extensions; do
10901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10902     ac_cv_prog_ac_ct_OTOOL="otool"
10903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10904     break 2
10905   fi
10906 done
10907   done
10908 IFS=$as_save_IFS
10909
10910 fi
10911 fi
10912 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10913 if test -n "$ac_ct_OTOOL"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10915 $as_echo "$ac_ct_OTOOL" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920
10921   if test "x$ac_ct_OTOOL" = x; then
10922     OTOOL=":"
10923   else
10924     case $cross_compiling:$ac_tool_warned in
10925 yes:)
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10928 ac_tool_warned=yes ;;
10929 esac
10930     OTOOL=$ac_ct_OTOOL
10931   fi
10932 else
10933   OTOOL="$ac_cv_prog_OTOOL"
10934 fi
10935
10936     if test -n "$ac_tool_prefix"; then
10937   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10938 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10940 $as_echo_n "checking for $ac_word... " >&6; }
10941 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10942   $as_echo_n "(cached) " >&6
10943 else
10944   if test -n "$OTOOL64"; then
10945   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10946 else
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948 for as_dir in $PATH
10949 do
10950   IFS=$as_save_IFS
10951   test -z "$as_dir" && as_dir=.
10952     for ac_exec_ext in '' $ac_executable_extensions; do
10953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956     break 2
10957   fi
10958 done
10959   done
10960 IFS=$as_save_IFS
10961
10962 fi
10963 fi
10964 OTOOL64=$ac_cv_prog_OTOOL64
10965 if test -n "$OTOOL64"; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10967 $as_echo "$OTOOL64" >&6; }
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972
10973
10974 fi
10975 if test -z "$ac_cv_prog_OTOOL64"; then
10976   ac_ct_OTOOL64=$OTOOL64
10977   # Extract the first word of "otool64", so it can be a program name with args.
10978 set dummy otool64; ac_word=$2
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10980 $as_echo_n "checking for $ac_word... " >&6; }
10981 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984   if test -n "$ac_ct_OTOOL64"; then
10985   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10986 else
10987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10988 for as_dir in $PATH
10989 do
10990   IFS=$as_save_IFS
10991   test -z "$as_dir" && as_dir=.
10992     for ac_exec_ext in '' $ac_executable_extensions; do
10993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10994     ac_cv_prog_ac_ct_OTOOL64="otool64"
10995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996     break 2
10997   fi
10998 done
10999   done
11000 IFS=$as_save_IFS
11001
11002 fi
11003 fi
11004 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11005 if test -n "$ac_ct_OTOOL64"; then
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11007 $as_echo "$ac_ct_OTOOL64" >&6; }
11008 else
11009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 $as_echo "no" >&6; }
11011 fi
11012
11013   if test "x$ac_ct_OTOOL64" = x; then
11014     OTOOL64=":"
11015   else
11016     case $cross_compiling:$ac_tool_warned in
11017 yes:)
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020 ac_tool_warned=yes ;;
11021 esac
11022     OTOOL64=$ac_ct_OTOOL64
11023   fi
11024 else
11025   OTOOL64="$ac_cv_prog_OTOOL64"
11026 fi
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11055 $as_echo_n "checking for -single_module linker flag... " >&6; }
11056 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11057   $as_echo_n "(cached) " >&6
11058 else
11059   lt_cv_apple_cc_single_mod=no
11060       if test -z "${LT_MULTI_MODULE}"; then
11061         # By default we will add the -single_module flag. You can override
11062         # by either setting the environment variable LT_MULTI_MODULE
11063         # non-empty at configure time, or by adding -multi_module to the
11064         # link flags.
11065         rm -rf libconftest.dylib*
11066         echo "int foo(void){return 1;}" > conftest.c
11067         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11068 -dynamiclib -Wl,-single_module conftest.c" >&5
11069         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11070           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11071         _lt_result=$?
11072         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11073           lt_cv_apple_cc_single_mod=yes
11074         else
11075           cat conftest.err >&5
11076         fi
11077         rm -rf libconftest.dylib*
11078         rm -f conftest.*
11079       fi
11080 fi
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11082 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11084 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11085 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   lt_cv_ld_exported_symbols_list=no
11089       save_LDFLAGS=$LDFLAGS
11090       echo "_main" > conftest.sym
11091       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h.  */
11094
11095 int
11096 main ()
11097 {
11098
11099   ;
11100   return 0;
11101 }
11102 _ACEOF
11103 if ac_fn_c_try_link "$LINENO"; then :
11104   lt_cv_ld_exported_symbols_list=yes
11105 else
11106   lt_cv_ld_exported_symbols_list=no
11107 fi
11108 rm -f core conftest.err conftest.$ac_objext \
11109     conftest$ac_exeext conftest.$ac_ext
11110         LDFLAGS="$save_LDFLAGS"
11111
11112 fi
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11114 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11115     case $host_os in
11116     rhapsody* | darwin1.[012])
11117       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11118     darwin1.*)
11119       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11120     darwin*) # darwin 5.x on
11121       # if running on 10.5 or later, the deployment target defaults
11122       # to the OS version, if on x86, and 10.4, the deployment
11123       # target defaults to 10.4. Don't you love it?
11124       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11125         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11126           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11127         10.[012]*)
11128           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11129         10.*)
11130           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11131       esac
11132     ;;
11133   esac
11134     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11135       _lt_dar_single_mod='$single_module'
11136     fi
11137     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11138       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11139     else
11140       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11141     fi
11142     if test "$DSYMUTIL" != ":"; then
11143       _lt_dsymutil='~$DSYMUTIL $lib || :'
11144     else
11145       _lt_dsymutil=
11146     fi
11147     ;;
11148   esac
11149
11150 for ac_header in dlfcn.h
11151 do :
11152   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11153 "
11154 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11155   cat >>confdefs.h <<_ACEOF
11156 #define HAVE_DLFCN_H 1
11157 _ACEOF
11158
11159 fi
11160
11161 done
11162
11163
11164
11165 ac_ext=cpp
11166 ac_cpp='$CXXCPP $CPPFLAGS'
11167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11170 if test -z "$CXX"; then
11171   if test -n "$CCC"; then
11172     CXX=$CCC
11173   else
11174     if test -n "$ac_tool_prefix"; then
11175   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11176   do
11177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11180 $as_echo_n "checking for $ac_word... " >&6; }
11181 if test "${ac_cv_prog_CXX+set}" = set; then :
11182   $as_echo_n "(cached) " >&6
11183 else
11184   if test -n "$CXX"; then
11185   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11186 else
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11189 do
11190   IFS=$as_save_IFS
11191   test -z "$as_dir" && as_dir=.
11192     for ac_exec_ext in '' $ac_executable_extensions; do
11193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11194     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11196     break 2
11197   fi
11198 done
11199   done
11200 IFS=$as_save_IFS
11201
11202 fi
11203 fi
11204 CXX=$ac_cv_prog_CXX
11205 if test -n "$CXX"; then
11206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11207 $as_echo "$CXX" >&6; }
11208 else
11209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 fi
11212
11213
11214     test -n "$CXX" && break
11215   done
11216 fi
11217 if test -z "$CXX"; then
11218   ac_ct_CXX=$CXX
11219   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11220 do
11221   # Extract the first word of "$ac_prog", so it can be a program name with args.
11222 set dummy $ac_prog; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11226   $as_echo_n "(cached) " >&6
11227 else
11228   if test -n "$ac_ct_CXX"; then
11229   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11230 else
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11233 do
11234   IFS=$as_save_IFS
11235   test -z "$as_dir" && as_dir=.
11236     for ac_exec_ext in '' $ac_executable_extensions; do
11237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11238     ac_cv_prog_ac_ct_CXX="$ac_prog"
11239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240     break 2
11241   fi
11242 done
11243   done
11244 IFS=$as_save_IFS
11245
11246 fi
11247 fi
11248 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11249 if test -n "$ac_ct_CXX"; then
11250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11251 $as_echo "$ac_ct_CXX" >&6; }
11252 else
11253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11255 fi
11256
11257
11258   test -n "$ac_ct_CXX" && break
11259 done
11260
11261   if test "x$ac_ct_CXX" = x; then
11262     CXX="g++"
11263   else
11264     case $cross_compiling:$ac_tool_warned in
11265 yes:)
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11268 ac_tool_warned=yes ;;
11269 esac
11270     CXX=$ac_ct_CXX
11271   fi
11272 fi
11273
11274   fi
11275 fi
11276 # Provide some information about the compiler.
11277 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11278 set X $ac_compile
11279 ac_compiler=$2
11280 for ac_option in --version -v -V -qversion; do
11281   { { ac_try="$ac_compiler $ac_option >&5"
11282 case "(($ac_try" in
11283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284   *) ac_try_echo=$ac_try;;
11285 esac
11286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11287 $as_echo "$ac_try_echo"; } >&5
11288   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11289   ac_status=$?
11290   if test -s conftest.err; then
11291     sed '10a\
11292 ... rest of stderr output deleted ...
11293          10q' conftest.err >conftest.er1
11294     cat conftest.er1 >&5
11295   fi
11296   rm -f conftest.er1 conftest.err
11297   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298   test $ac_status = 0; }
11299 done
11300
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11302 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11303 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h.  */
11308
11309 int
11310 main ()
11311 {
11312 #ifndef __GNUC__
11313        choke me
11314 #endif
11315
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_cxx_try_compile "$LINENO"; then :
11321   ac_compiler_gnu=yes
11322 else
11323   ac_compiler_gnu=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11327
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11330 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11331 if test $ac_compiler_gnu = yes; then
11332   GXX=yes
11333 else
11334   GXX=
11335 fi
11336 ac_test_CXXFLAGS=${CXXFLAGS+set}
11337 ac_save_CXXFLAGS=$CXXFLAGS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11339 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11340 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11341   $as_echo_n "(cached) " >&6
11342 else
11343   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11344    ac_cxx_werror_flag=yes
11345    ac_cv_prog_cxx_g=no
11346    CXXFLAGS="-g"
11347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h.  */
11349
11350 int
11351 main ()
11352 {
11353
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 if ac_fn_cxx_try_compile "$LINENO"; then :
11359   ac_cv_prog_cxx_g=yes
11360 else
11361   CXXFLAGS=""
11362       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11363 /* end confdefs.h.  */
11364
11365 int
11366 main ()
11367 {
11368
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_cxx_try_compile "$LINENO"; then :
11374
11375 else
11376   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11377          CXXFLAGS="-g"
11378          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h.  */
11380
11381 int
11382 main ()
11383 {
11384
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_cxx_try_compile "$LINENO"; then :
11390   ac_cv_prog_cxx_g=yes
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11395 fi
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11398 fi
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11400 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11401 if test "$ac_test_CXXFLAGS" = set; then
11402   CXXFLAGS=$ac_save_CXXFLAGS
11403 elif test $ac_cv_prog_cxx_g = yes; then
11404   if test "$GXX" = yes; then
11405     CXXFLAGS="-g -O2"
11406   else
11407     CXXFLAGS="-g"
11408   fi
11409 else
11410   if test "$GXX" = yes; then
11411     CXXFLAGS="-O2"
11412   else
11413     CXXFLAGS=
11414   fi
11415 fi
11416 ac_ext=c
11417 ac_cpp='$CPP $CPPFLAGS'
11418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11421
11422 depcc="$CXX"  am_compiler_list=
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11425 $as_echo_n "checking dependency style of $depcc... " >&6; }
11426 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11427   $as_echo_n "(cached) " >&6
11428 else
11429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11430   # We make a subdir and do the tests there.  Otherwise we can end up
11431   # making bogus files that we don't know about and never remove.  For
11432   # instance it was reported that on HP-UX the gcc test will end up
11433   # making a dummy file named `D' -- because `-MD' means `put the output
11434   # in D'.
11435   mkdir conftest.dir
11436   # Copy depcomp to subdir because otherwise we won't find it if we're
11437   # using a relative directory.
11438   cp "$am_depcomp" conftest.dir
11439   cd conftest.dir
11440   # We will build objects and dependencies in a subdirectory because
11441   # it helps to detect inapplicable dependency modes.  For instance
11442   # both Tru64's cc and ICC support -MD to output dependencies as a
11443   # side effect of compilation, but ICC will put the dependencies in
11444   # the current directory while Tru64 will put them in the object
11445   # directory.
11446   mkdir sub
11447
11448   am_cv_CXX_dependencies_compiler_type=none
11449   if test "$am_compiler_list" = ""; then
11450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11451   fi
11452   am__universal=false
11453   case " $depcc " in #(
11454      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11455      esac
11456
11457   for depmode in $am_compiler_list; do
11458     # Setup a source with many dependencies, because some compilers
11459     # like to wrap large dependency lists on column 80 (with \), and
11460     # we should not choose a depcomp mode which is confused by this.
11461     #
11462     # We need to recreate these files for each test, as the compiler may
11463     # overwrite some of them when testing with obscure command lines.
11464     # This happens at least with the AIX C compiler.
11465     : > sub/conftest.c
11466     for i in 1 2 3 4 5 6; do
11467       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11468       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11469       # Solaris 8's {/usr,}/bin/sh.
11470       touch sub/conftst$i.h
11471     done
11472     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11473
11474     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11475     # mode.  It turns out that the SunPro C++ compiler does not properly
11476     # handle `-M -o', and we need to detect this.  Also, some Intel
11477     # versions had trouble with output in subdirs
11478     am__obj=sub/conftest.${OBJEXT-o}
11479     am__minus_obj="-o $am__obj"
11480     case $depmode in
11481     gcc)
11482       # This depmode causes a compiler race in universal mode.
11483       test "$am__universal" = false || continue
11484       ;;
11485     nosideeffect)
11486       # after this tag, mechanisms are not by side-effect, so they'll
11487       # only be used when explicitly requested
11488       if test "x$enable_dependency_tracking" = xyes; then
11489         continue
11490       else
11491         break
11492       fi
11493       ;;
11494     msvisualcpp | msvcmsys)
11495       # This compiler won't grok `-c -o', but also, the minuso test has
11496       # not run yet.  These depmodes are late enough in the game, and
11497       # so weak that their functioning should not be impacted.
11498       am__obj=conftest.${OBJEXT-o}
11499       am__minus_obj=
11500       ;;
11501     none) break ;;
11502     esac
11503     if depmode=$depmode \
11504        source=sub/conftest.c object=$am__obj \
11505        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11506        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11507          >/dev/null 2>conftest.err &&
11508        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11509        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11510        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11511        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11512       # icc doesn't choke on unknown options, it will just issue warnings
11513       # or remarks (even with -Werror).  So we grep stderr for any message
11514       # that says an option was ignored or not supported.
11515       # When given -MP, icc 7.0 and 7.1 complain thusly:
11516       #   icc: Command line warning: ignoring option '-M'; no argument required
11517       # The diagnosis changed in icc 8.0:
11518       #   icc: Command line remark: option '-MP' not supported
11519       if (grep 'ignoring option' conftest.err ||
11520           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11521         am_cv_CXX_dependencies_compiler_type=$depmode
11522         break
11523       fi
11524     fi
11525   done
11526
11527   cd ..
11528   rm -rf conftest.dir
11529 else
11530   am_cv_CXX_dependencies_compiler_type=none
11531 fi
11532
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11535 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11536 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11537
11538  if
11539   test "x$enable_dependency_tracking" != xno \
11540   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11541   am__fastdepCXX_TRUE=
11542   am__fastdepCXX_FALSE='#'
11543 else
11544   am__fastdepCXX_TRUE='#'
11545   am__fastdepCXX_FALSE=
11546 fi
11547
11548
11549 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11550     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11551     (test "X$CXX" != "Xg++"))) ; then
11552   ac_ext=cpp
11553 ac_cpp='$CXXCPP $CPPFLAGS'
11554 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11558 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11559 if test -z "$CXXCPP"; then
11560   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11561   $as_echo_n "(cached) " >&6
11562 else
11563       # Double quotes because CXXCPP needs to be expanded
11564     for CXXCPP in "$CXX -E" "/lib/cpp"
11565     do
11566       ac_preproc_ok=false
11567 for ac_cxx_preproc_warn_flag in '' yes
11568 do
11569   # Use a header file that comes with gcc, so configuring glibc
11570   # with a fresh cross-compiler works.
11571   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11572   # <limits.h> exists even on freestanding compilers.
11573   # On the NeXT, cc -E runs the code through the compiler's parser,
11574   # not just through cpp. "Syntax error" is here to catch this case.
11575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577 #ifdef __STDC__
11578 # include <limits.h>
11579 #else
11580 # include <assert.h>
11581 #endif
11582                      Syntax error
11583 _ACEOF
11584 if ac_fn_cxx_try_cpp "$LINENO"; then :
11585
11586 else
11587   # Broken: fails on valid input.
11588 continue
11589 fi
11590 rm -f conftest.err conftest.$ac_ext
11591
11592   # OK, works on sane cases.  Now check whether nonexistent headers
11593   # can be detected and how.
11594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h.  */
11596 #include <ac_nonexistent.h>
11597 _ACEOF
11598 if ac_fn_cxx_try_cpp "$LINENO"; then :
11599   # Broken: success on invalid input.
11600 continue
11601 else
11602   # Passes both tests.
11603 ac_preproc_ok=:
11604 break
11605 fi
11606 rm -f conftest.err conftest.$ac_ext
11607
11608 done
11609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11610 rm -f conftest.err conftest.$ac_ext
11611 if $ac_preproc_ok; then :
11612   break
11613 fi
11614
11615     done
11616     ac_cv_prog_CXXCPP=$CXXCPP
11617
11618 fi
11619   CXXCPP=$ac_cv_prog_CXXCPP
11620 else
11621   ac_cv_prog_CXXCPP=$CXXCPP
11622 fi
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11624 $as_echo "$CXXCPP" >&6; }
11625 ac_preproc_ok=false
11626 for ac_cxx_preproc_warn_flag in '' yes
11627 do
11628   # Use a header file that comes with gcc, so configuring glibc
11629   # with a fresh cross-compiler works.
11630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631   # <limits.h> exists even on freestanding compilers.
11632   # On the NeXT, cc -E runs the code through the compiler's parser,
11633   # not just through cpp. "Syntax error" is here to catch this case.
11634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h.  */
11636 #ifdef __STDC__
11637 # include <limits.h>
11638 #else
11639 # include <assert.h>
11640 #endif
11641                      Syntax error
11642 _ACEOF
11643 if ac_fn_cxx_try_cpp "$LINENO"; then :
11644
11645 else
11646   # Broken: fails on valid input.
11647 continue
11648 fi
11649 rm -f conftest.err conftest.$ac_ext
11650
11651   # OK, works on sane cases.  Now check whether nonexistent headers
11652   # can be detected and how.
11653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h.  */
11655 #include <ac_nonexistent.h>
11656 _ACEOF
11657 if ac_fn_cxx_try_cpp "$LINENO"; then :
11658   # Broken: success on invalid input.
11659 continue
11660 else
11661   # Passes both tests.
11662 ac_preproc_ok=:
11663 break
11664 fi
11665 rm -f conftest.err conftest.$ac_ext
11666
11667 done
11668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11669 rm -f conftest.err conftest.$ac_ext
11670 if $ac_preproc_ok; then :
11671
11672 else
11673   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11675 _lt_caught_CXX_error=yes; }
11676 fi
11677
11678 ac_ext=c
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
11684 else
11685   _lt_caught_CXX_error=yes
11686 fi
11687
11688
11689
11690
11691
11692 # Set options
11693 enable_win32_dll=yes
11694
11695 case $host in
11696 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11697   if test -n "$ac_tool_prefix"; then
11698   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699 set dummy ${ac_tool_prefix}as; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_AS+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   if test -n "$AS"; then
11706   ac_cv_prog_AS="$AS" # Let the user override the test.
11707 else
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11710 do
11711   IFS=$as_save_IFS
11712   test -z "$as_dir" && as_dir=.
11713     for ac_exec_ext in '' $ac_executable_extensions; do
11714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715     ac_cv_prog_AS="${ac_tool_prefix}as"
11716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11717     break 2
11718   fi
11719 done
11720   done
11721 IFS=$as_save_IFS
11722
11723 fi
11724 fi
11725 AS=$ac_cv_prog_AS
11726 if test -n "$AS"; then
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11728 $as_echo "$AS" >&6; }
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735 fi
11736 if test -z "$ac_cv_prog_AS"; then
11737   ac_ct_AS=$AS
11738   # Extract the first word of "as", so it can be a program name with args.
11739 set dummy as; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   if test -n "$ac_ct_AS"; then
11746   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11747 else
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11750 do
11751   IFS=$as_save_IFS
11752   test -z "$as_dir" && as_dir=.
11753     for ac_exec_ext in '' $ac_executable_extensions; do
11754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755     ac_cv_prog_ac_ct_AS="as"
11756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11757     break 2
11758   fi
11759 done
11760   done
11761 IFS=$as_save_IFS
11762
11763 fi
11764 fi
11765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766 if test -n "$ac_ct_AS"; then
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11768 $as_echo "$ac_ct_AS" >&6; }
11769 else
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772 fi
11773
11774   if test "x$ac_ct_AS" = x; then
11775     AS="false"
11776   else
11777     case $cross_compiling:$ac_tool_warned in
11778 yes:)
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781 ac_tool_warned=yes ;;
11782 esac
11783     AS=$ac_ct_AS
11784   fi
11785 else
11786   AS="$ac_cv_prog_AS"
11787 fi
11788
11789   if test -n "$ac_tool_prefix"; then
11790   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   if test -n "$DLLTOOL"; then
11798   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803   IFS=$as_save_IFS
11804   test -z "$as_dir" && as_dir=.
11805     for ac_exec_ext in '' $ac_executable_extensions; do
11806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809     break 2
11810   fi
11811 done
11812   done
11813 IFS=$as_save_IFS
11814
11815 fi
11816 fi
11817 DLLTOOL=$ac_cv_prog_DLLTOOL
11818 if test -n "$DLLTOOL"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11820 $as_echo "$DLLTOOL" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 fi
11828 if test -z "$ac_cv_prog_DLLTOOL"; then
11829   ac_ct_DLLTOOL=$DLLTOOL
11830   # Extract the first word of "dlltool", so it can be a program name with args.
11831 set dummy dlltool; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   if test -n "$ac_ct_DLLTOOL"; then
11838   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11839 else
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11842 do
11843   IFS=$as_save_IFS
11844   test -z "$as_dir" && as_dir=.
11845     for ac_exec_ext in '' $ac_executable_extensions; do
11846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849     break 2
11850   fi
11851 done
11852   done
11853 IFS=$as_save_IFS
11854
11855 fi
11856 fi
11857 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858 if test -n "$ac_ct_DLLTOOL"; then
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11860 $as_echo "$ac_ct_DLLTOOL" >&6; }
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865
11866   if test "x$ac_ct_DLLTOOL" = x; then
11867     DLLTOOL="false"
11868   else
11869     case $cross_compiling:$ac_tool_warned in
11870 yes:)
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11874 esac
11875     DLLTOOL=$ac_ct_DLLTOOL
11876   fi
11877 else
11878   DLLTOOL="$ac_cv_prog_DLLTOOL"
11879 fi
11880
11881   if test -n "$ac_tool_prefix"; then
11882   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889   if test -n "$OBJDUMP"; then
11890   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11891 else
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11894 do
11895   IFS=$as_save_IFS
11896   test -z "$as_dir" && as_dir=.
11897     for ac_exec_ext in '' $ac_executable_extensions; do
11898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901     break 2
11902   fi
11903 done
11904   done
11905 IFS=$as_save_IFS
11906
11907 fi
11908 fi
11909 OBJDUMP=$ac_cv_prog_OBJDUMP
11910 if test -n "$OBJDUMP"; then
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912 $as_echo "$OBJDUMP" >&6; }
11913 else
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 fi
11917
11918
11919 fi
11920 if test -z "$ac_cv_prog_OBJDUMP"; then
11921   ac_ct_OBJDUMP=$OBJDUMP
11922   # Extract the first word of "objdump", so it can be a program name with args.
11923 set dummy objdump; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if test -n "$ac_ct_OBJDUMP"; then
11930   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11931 else
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11934 do
11935   IFS=$as_save_IFS
11936   test -z "$as_dir" && as_dir=.
11937     for ac_exec_ext in '' $ac_executable_extensions; do
11938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941     break 2
11942   fi
11943 done
11944   done
11945 IFS=$as_save_IFS
11946
11947 fi
11948 fi
11949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950 if test -n "$ac_ct_OBJDUMP"; then
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952 $as_echo "$ac_ct_OBJDUMP" >&6; }
11953 else
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11956 fi
11957
11958   if test "x$ac_ct_OBJDUMP" = x; then
11959     OBJDUMP="false"
11960   else
11961     case $cross_compiling:$ac_tool_warned in
11962 yes:)
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11966 esac
11967     OBJDUMP=$ac_ct_OBJDUMP
11968   fi
11969 else
11970   OBJDUMP="$ac_cv_prog_OBJDUMP"
11971 fi
11972
11973   ;;
11974 esac
11975
11976 test -z "$AS" && AS=as
11977
11978
11979
11980
11981
11982 test -z "$DLLTOOL" && DLLTOOL=dlltool
11983
11984
11985
11986
11987
11988 test -z "$OBJDUMP" && OBJDUMP=objdump
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998             # Check whether --enable-shared was given.
11999 if test "${enable_shared+set}" = set; then :
12000   enableval=$enable_shared; p=${PACKAGE-default}
12001     case $enableval in
12002     yes) enable_shared=yes ;;
12003     no) enable_shared=no ;;
12004     *)
12005       enable_shared=no
12006       # Look at the argument we got.  We use all the common list separators.
12007       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008       for pkg in $enableval; do
12009         IFS="$lt_save_ifs"
12010         if test "X$pkg" = "X$p"; then
12011           enable_shared=yes
12012         fi
12013       done
12014       IFS="$lt_save_ifs"
12015       ;;
12016     esac
12017 else
12018   enable_shared=yes
12019 fi
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029   # Check whether --enable-static was given.
12030 if test "${enable_static+set}" = set; then :
12031   enableval=$enable_static; p=${PACKAGE-default}
12032     case $enableval in
12033     yes) enable_static=yes ;;
12034     no) enable_static=no ;;
12035     *)
12036      enable_static=no
12037       # Look at the argument we got.  We use all the common list separators.
12038       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039       for pkg in $enableval; do
12040         IFS="$lt_save_ifs"
12041         if test "X$pkg" = "X$p"; then
12042           enable_static=yes
12043         fi
12044       done
12045       IFS="$lt_save_ifs"
12046       ;;
12047     esac
12048 else
12049   enable_static=yes
12050 fi
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061 # Check whether --with-pic was given.
12062 if test "${with_pic+set}" = set; then :
12063   withval=$with_pic; pic_mode="$withval"
12064 else
12065   pic_mode=default
12066 fi
12067
12068
12069 test -z "$pic_mode" && pic_mode=default
12070
12071
12072
12073
12074
12075
12076
12077   # Check whether --enable-fast-install was given.
12078 if test "${enable_fast_install+set}" = set; then :
12079   enableval=$enable_fast_install; p=${PACKAGE-default}
12080     case $enableval in
12081     yes) enable_fast_install=yes ;;
12082     no) enable_fast_install=no ;;
12083     *)
12084       enable_fast_install=no
12085       # Look at the argument we got.  We use all the common list separators.
12086       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087       for pkg in $enableval; do
12088         IFS="$lt_save_ifs"
12089         if test "X$pkg" = "X$p"; then
12090           enable_fast_install=yes
12091         fi
12092       done
12093       IFS="$lt_save_ifs"
12094       ;;
12095     esac
12096 else
12097   enable_fast_install=yes
12098 fi
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110 # This can be used to rebuild libtool when needed
12111 LIBTOOL_DEPS="$ltmain"
12112
12113 # Always use our own libtool.
12114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140 test -z "$LN_S" && LN_S="ln -s"
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155 if test -n "${ZSH_VERSION+set}" ; then
12156    setopt NO_GLOB_SUBST
12157 fi
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12160 $as_echo_n "checking for objdir... " >&6; }
12161 if test "${lt_cv_objdir+set}" = set; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   rm -f .libs 2>/dev/null
12165 mkdir .libs 2>/dev/null
12166 if test -d .libs; then
12167   lt_cv_objdir=.libs
12168 else
12169   # MS-DOS does not allow filenames that begin with a dot.
12170   lt_cv_objdir=_libs
12171 fi
12172 rmdir .libs 2>/dev/null
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12175 $as_echo "$lt_cv_objdir" >&6; }
12176 objdir=$lt_cv_objdir
12177
12178
12179
12180
12181
12182 cat >>confdefs.h <<_ACEOF
12183 #define LT_OBJDIR "$lt_cv_objdir/"
12184 _ACEOF
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202 case $host_os in
12203 aix3*)
12204   # AIX sometimes has problems with the GCC collect2 program.  For some
12205   # reason, if we set the COLLECT_NAMES environment variable, the problems
12206   # vanish in a puff of smoke.
12207   if test "X${COLLECT_NAMES+set}" != Xset; then
12208     COLLECT_NAMES=
12209     export COLLECT_NAMES
12210   fi
12211   ;;
12212 esac
12213
12214 # Sed substitution that helps us do robust quoting.  It backslashifies
12215 # metacharacters that are still active within double-quoted strings.
12216 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12217
12218 # Same as above, but do not quote variable references.
12219 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12220
12221 # Sed substitution to delay expansion of an escaped shell variable in a
12222 # double_quote_subst'ed string.
12223 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12224
12225 # Sed substitution to delay expansion of an escaped single quote.
12226 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12227
12228 # Sed substitution to avoid accidental globbing in evaled expressions
12229 no_glob_subst='s/\*/\\\*/g'
12230
12231 # Global variables:
12232 ofile=libtool
12233 can_build_shared=yes
12234
12235 # All known linkers require a `.a' archive for static linking (except MSVC,
12236 # which needs '.lib').
12237 libext=a
12238
12239 with_gnu_ld="$lt_cv_prog_gnu_ld"
12240
12241 old_CC="$CC"
12242 old_CFLAGS="$CFLAGS"
12243
12244 # Set sane defaults for various variables
12245 test -z "$CC" && CC=cc
12246 test -z "$LTCC" && LTCC=$CC
12247 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12248 test -z "$LD" && LD=ld
12249 test -z "$ac_objext" && ac_objext=o
12250
12251 for cc_temp in $compiler""; do
12252   case $cc_temp in
12253     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12254     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12255     \-*) ;;
12256     *) break;;
12257   esac
12258 done
12259 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12260
12261
12262 # Only perform the check for file, if the check method requires it
12263 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12264 case $deplibs_check_method in
12265 file_magic*)
12266   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12268 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12270   $as_echo_n "(cached) " >&6
12271 else
12272   case $MAGIC_CMD in
12273 [\\/*] |  ?:[\\/]*)
12274   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12275   ;;
12276 *)
12277   lt_save_MAGIC_CMD="$MAGIC_CMD"
12278   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12279   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12280   for ac_dir in $ac_dummy; do
12281     IFS="$lt_save_ifs"
12282     test -z "$ac_dir" && ac_dir=.
12283     if test -f $ac_dir/${ac_tool_prefix}file; then
12284       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12285       if test -n "$file_magic_test_file"; then
12286         case $deplibs_check_method in
12287         "file_magic "*)
12288           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12289           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12291             $EGREP "$file_magic_regex" > /dev/null; then
12292             :
12293           else
12294             cat <<_LT_EOF 1>&2
12295
12296 *** Warning: the command libtool uses to detect shared libraries,
12297 *** $file_magic_cmd, produces output that libtool cannot recognize.
12298 *** The result is that libtool may fail to recognize shared libraries
12299 *** as such.  This will affect the creation of libtool libraries that
12300 *** depend on shared libraries, but programs linked with such libtool
12301 *** libraries will work regardless of this problem.  Nevertheless, you
12302 *** may want to report the problem to your system manager and/or to
12303 *** bug-libtool@gnu.org
12304
12305 _LT_EOF
12306           fi ;;
12307         esac
12308       fi
12309       break
12310     fi
12311   done
12312   IFS="$lt_save_ifs"
12313   MAGIC_CMD="$lt_save_MAGIC_CMD"
12314   ;;
12315 esac
12316 fi
12317
12318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12319 if test -n "$MAGIC_CMD"; then
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12321 $as_echo "$MAGIC_CMD" >&6; }
12322 else
12323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12325 fi
12326
12327
12328
12329
12330
12331 if test -z "$lt_cv_path_MAGIC_CMD"; then
12332   if test -n "$ac_tool_prefix"; then
12333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12334 $as_echo_n "checking for file... " >&6; }
12335 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12336   $as_echo_n "(cached) " >&6
12337 else
12338   case $MAGIC_CMD in
12339 [\\/*] |  ?:[\\/]*)
12340   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12341   ;;
12342 *)
12343   lt_save_MAGIC_CMD="$MAGIC_CMD"
12344   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12345   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12346   for ac_dir in $ac_dummy; do
12347     IFS="$lt_save_ifs"
12348     test -z "$ac_dir" && ac_dir=.
12349     if test -f $ac_dir/file; then
12350       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12351       if test -n "$file_magic_test_file"; then
12352         case $deplibs_check_method in
12353         "file_magic "*)
12354           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12355           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12357             $EGREP "$file_magic_regex" > /dev/null; then
12358             :
12359           else
12360             cat <<_LT_EOF 1>&2
12361
12362 *** Warning: the command libtool uses to detect shared libraries,
12363 *** $file_magic_cmd, produces output that libtool cannot recognize.
12364 *** The result is that libtool may fail to recognize shared libraries
12365 *** as such.  This will affect the creation of libtool libraries that
12366 *** depend on shared libraries, but programs linked with such libtool
12367 *** libraries will work regardless of this problem.  Nevertheless, you
12368 *** may want to report the problem to your system manager and/or to
12369 *** bug-libtool@gnu.org
12370
12371 _LT_EOF
12372           fi ;;
12373         esac
12374       fi
12375       break
12376     fi
12377   done
12378   IFS="$lt_save_ifs"
12379   MAGIC_CMD="$lt_save_MAGIC_CMD"
12380   ;;
12381 esac
12382 fi
12383
12384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12385 if test -n "$MAGIC_CMD"; then
12386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12387 $as_echo "$MAGIC_CMD" >&6; }
12388 else
12389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390 $as_echo "no" >&6; }
12391 fi
12392
12393
12394   else
12395     MAGIC_CMD=:
12396   fi
12397 fi
12398
12399   fi
12400   ;;
12401 esac
12402
12403 # Use C for the default configuration in the libtool script
12404
12405 lt_save_CC="$CC"
12406 ac_ext=c
12407 ac_cpp='$CPP $CPPFLAGS'
12408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12411
12412
12413 # Source file extension for C test sources.
12414 ac_ext=c
12415
12416 # Object file extension for compiled C test sources.
12417 objext=o
12418 objext=$objext
12419
12420 # Code to be used in simple compile tests
12421 lt_simple_compile_test_code="int some_variable = 0;"
12422
12423 # Code to be used in simple link tests
12424 lt_simple_link_test_code='int main(){return(0);}'
12425
12426
12427
12428
12429
12430
12431
12432 # If no C compiler was specified, use CC.
12433 LTCC=${LTCC-"$CC"}
12434
12435 # If no C compiler flags were specified, use CFLAGS.
12436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12437
12438 # Allow CC to be a program name with arguments.
12439 compiler=$CC
12440
12441 # Save the default compiler, since it gets overwritten when the other
12442 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12443 compiler_DEFAULT=$CC
12444
12445 # save warnings/boilerplate of simple test code
12446 ac_outfile=conftest.$ac_objext
12447 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12448 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12449 _lt_compiler_boilerplate=`cat conftest.err`
12450 $RM conftest*
12451
12452 ac_outfile=conftest.$ac_objext
12453 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12454 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12455 _lt_linker_boilerplate=`cat conftest.err`
12456 $RM -r conftest*
12457
12458
12459 ## CAVEAT EMPTOR:
12460 ## There is no encapsulation within the following macros, do not change
12461 ## the running order or otherwise move them around unless you know exactly
12462 ## what you are doing...
12463 if test -n "$compiler"; then
12464
12465 lt_prog_compiler_no_builtin_flag=
12466
12467 if test "$GCC" = yes; then
12468   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12469
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12471 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12472 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12473   $as_echo_n "(cached) " >&6
12474 else
12475   lt_cv_prog_compiler_rtti_exceptions=no
12476    ac_outfile=conftest.$ac_objext
12477    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12478    lt_compiler_flag="-fno-rtti -fno-exceptions"
12479    # Insert the option either (1) after the last *FLAGS variable, or
12480    # (2) before a word containing "conftest.", or (3) at the end.
12481    # Note that $ac_compile itself does not contain backslashes and begins
12482    # with a dollar sign (not a hyphen), so the echo should work correctly.
12483    # The option is referenced via a variable to avoid confusing sed.
12484    lt_compile=`echo "$ac_compile" | $SED \
12485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12487    -e 's:$: $lt_compiler_flag:'`
12488    (eval echo "\"\$as_me:12488: $lt_compile\"" >&5)
12489    (eval "$lt_compile" 2>conftest.err)
12490    ac_status=$?
12491    cat conftest.err >&5
12492    echo "$as_me:12492: \$? = $ac_status" >&5
12493    if (exit $ac_status) && test -s "$ac_outfile"; then
12494      # The compiler can only warn and ignore the option if not recognized
12495      # So say no if there are warnings other than the usual output.
12496      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12499        lt_cv_prog_compiler_rtti_exceptions=yes
12500      fi
12501    fi
12502    $RM conftest*
12503
12504 fi
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12506 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12507
12508 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12509     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12510 else
12511     :
12512 fi
12513
12514 fi
12515
12516
12517
12518
12519
12520
12521   lt_prog_compiler_wl=
12522 lt_prog_compiler_pic=
12523 lt_prog_compiler_static=
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12527
12528   if test "$GCC" = yes; then
12529     lt_prog_compiler_wl='-Wl,'
12530     lt_prog_compiler_static='-static'
12531
12532     case $host_os in
12533       aix*)
12534       # All AIX code is PIC.
12535       if test "$host_cpu" = ia64; then
12536         # AIX 5 now supports IA64 processor
12537         lt_prog_compiler_static='-Bstatic'
12538       fi
12539       ;;
12540
12541     amigaos*)
12542       case $host_cpu in
12543       powerpc)
12544             # see comment about AmigaOS4 .so support
12545             lt_prog_compiler_pic='-fPIC'
12546         ;;
12547       m68k)
12548             # FIXME: we need at least 68020 code to build shared libraries, but
12549             # adding the `-m68020' flag to GCC prevents building anything better,
12550             # like `-m68040'.
12551             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12552         ;;
12553       esac
12554       ;;
12555
12556     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12557       # PIC is the default for these OSes.
12558       ;;
12559
12560     mingw* | cygwin* | pw32* | os2* | cegcc*)
12561       # This hack is so that the source file can tell whether it is being
12562       # built for inclusion in a dll (and should export symbols for example).
12563       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12564       # (--disable-auto-import) libraries
12565       lt_prog_compiler_pic='-DDLL_EXPORT'
12566       ;;
12567
12568     darwin* | rhapsody*)
12569       # PIC is the default on this platform
12570       # Common symbols not allowed in MH_DYLIB files
12571       lt_prog_compiler_pic='-fno-common'
12572       ;;
12573
12574     hpux*)
12575       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12576       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12577       # sets the default TLS model and affects inlining.
12578       case $host_cpu in
12579       hppa*64*)
12580         # +Z the default
12581         ;;
12582       *)
12583         lt_prog_compiler_pic='-fPIC'
12584         ;;
12585       esac
12586       ;;
12587
12588     interix[3-9]*)
12589       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12590       # Instead, we relocate shared libraries at runtime.
12591       ;;
12592
12593     msdosdjgpp*)
12594       # Just because we use GCC doesn't mean we suddenly get shared libraries
12595       # on systems that don't support them.
12596       lt_prog_compiler_can_build_shared=no
12597       enable_shared=no
12598       ;;
12599
12600     *nto* | *qnx*)
12601       # QNX uses GNU C++, but need to define -shared option too, otherwise
12602       # it will coredump.
12603       lt_prog_compiler_pic='-fPIC -shared'
12604       ;;
12605
12606     sysv4*MP*)
12607       if test -d /usr/nec; then
12608         lt_prog_compiler_pic=-Kconform_pic
12609       fi
12610       ;;
12611
12612     *)
12613       lt_prog_compiler_pic='-fPIC'
12614       ;;
12615     esac
12616   else
12617     # PORTME Check for flag to pass linker flags through the system compiler.
12618     case $host_os in
12619     aix*)
12620       lt_prog_compiler_wl='-Wl,'
12621       if test "$host_cpu" = ia64; then
12622         # AIX 5 now supports IA64 processor
12623         lt_prog_compiler_static='-Bstatic'
12624       else
12625         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12626       fi
12627       ;;
12628
12629     mingw* | cygwin* | pw32* | os2* | cegcc*)
12630       # This hack is so that the source file can tell whether it is being
12631       # built for inclusion in a dll (and should export symbols for example).
12632       lt_prog_compiler_pic='-DDLL_EXPORT'
12633       ;;
12634
12635     hpux9* | hpux10* | hpux11*)
12636       lt_prog_compiler_wl='-Wl,'
12637       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12638       # not for PA HP-UX.
12639       case $host_cpu in
12640       hppa*64*|ia64*)
12641         # +Z the default
12642         ;;
12643       *)
12644         lt_prog_compiler_pic='+Z'
12645         ;;
12646       esac
12647       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12648       lt_prog_compiler_static='${wl}-a ${wl}archive'
12649       ;;
12650
12651     irix5* | irix6* | nonstopux*)
12652       lt_prog_compiler_wl='-Wl,'
12653       # PIC (with -KPIC) is the default.
12654       lt_prog_compiler_static='-non_shared'
12655       ;;
12656
12657     linux* | k*bsd*-gnu)
12658       case $cc_basename in
12659       # old Intel for x86_64 which still supported -KPIC.
12660       ecc*)
12661         lt_prog_compiler_wl='-Wl,'
12662         lt_prog_compiler_pic='-KPIC'
12663         lt_prog_compiler_static='-static'
12664         ;;
12665       # icc used to be incompatible with GCC.
12666       # ICC 10 doesn't accept -KPIC any more.
12667       icc* | ifort*)
12668         lt_prog_compiler_wl='-Wl,'
12669         lt_prog_compiler_pic='-fPIC'
12670         lt_prog_compiler_static='-static'
12671         ;;
12672       # Lahey Fortran 8.1.
12673       lf95*)
12674         lt_prog_compiler_wl='-Wl,'
12675         lt_prog_compiler_pic='--shared'
12676         lt_prog_compiler_static='--static'
12677         ;;
12678       pgcc* | pgf77* | pgf90* | pgf95*)
12679         # Portland Group compilers (*not* the Pentium gcc compiler,
12680         # which looks to be a dead project)
12681         lt_prog_compiler_wl='-Wl,'
12682         lt_prog_compiler_pic='-fpic'
12683         lt_prog_compiler_static='-Bstatic'
12684         ;;
12685       ccc*)
12686         lt_prog_compiler_wl='-Wl,'
12687         # All Alpha code is PIC.
12688         lt_prog_compiler_static='-non_shared'
12689         ;;
12690       xl*)
12691         # IBM XL C 8.0/Fortran 10.1 on PPC
12692         lt_prog_compiler_wl='-Wl,'
12693         lt_prog_compiler_pic='-qpic'
12694         lt_prog_compiler_static='-qstaticlink'
12695         ;;
12696       *)
12697         case `$CC -V 2>&1 | sed 5q` in
12698         *Sun\ C*)
12699           # Sun C 5.9
12700           lt_prog_compiler_pic='-KPIC'
12701           lt_prog_compiler_static='-Bstatic'
12702           lt_prog_compiler_wl='-Wl,'
12703           ;;
12704         *Sun\ F*)
12705           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12706           lt_prog_compiler_pic='-KPIC'
12707           lt_prog_compiler_static='-Bstatic'
12708           lt_prog_compiler_wl=''
12709           ;;
12710         esac
12711         ;;
12712       esac
12713       ;;
12714
12715     newsos6)
12716       lt_prog_compiler_pic='-KPIC'
12717       lt_prog_compiler_static='-Bstatic'
12718       ;;
12719
12720     *nto* | *qnx*)
12721       # QNX uses GNU C++, but need to define -shared option too, otherwise
12722       # it will coredump.
12723       lt_prog_compiler_pic='-fPIC -shared'
12724       ;;
12725
12726     osf3* | osf4* | osf5*)
12727       lt_prog_compiler_wl='-Wl,'
12728       # All OSF/1 code is PIC.
12729       lt_prog_compiler_static='-non_shared'
12730       ;;
12731
12732     rdos*)
12733       lt_prog_compiler_static='-non_shared'
12734       ;;
12735
12736     solaris*)
12737       lt_prog_compiler_pic='-KPIC'
12738       lt_prog_compiler_static='-Bstatic'
12739       case $cc_basename in
12740       f77* | f90* | f95*)
12741         lt_prog_compiler_wl='-Qoption ld ';;
12742       *)
12743         lt_prog_compiler_wl='-Wl,';;
12744       esac
12745       ;;
12746
12747     sunos4*)
12748       lt_prog_compiler_wl='-Qoption ld '
12749       lt_prog_compiler_pic='-PIC'
12750       lt_prog_compiler_static='-Bstatic'
12751       ;;
12752
12753     sysv4 | sysv4.2uw2* | sysv4.3*)
12754       lt_prog_compiler_wl='-Wl,'
12755       lt_prog_compiler_pic='-KPIC'
12756       lt_prog_compiler_static='-Bstatic'
12757       ;;
12758
12759     sysv4*MP*)
12760       if test -d /usr/nec ;then
12761         lt_prog_compiler_pic='-Kconform_pic'
12762         lt_prog_compiler_static='-Bstatic'
12763       fi
12764       ;;
12765
12766     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12767       lt_prog_compiler_wl='-Wl,'
12768       lt_prog_compiler_pic='-KPIC'
12769       lt_prog_compiler_static='-Bstatic'
12770       ;;
12771
12772     unicos*)
12773       lt_prog_compiler_wl='-Wl,'
12774       lt_prog_compiler_can_build_shared=no
12775       ;;
12776
12777     uts4*)
12778       lt_prog_compiler_pic='-pic'
12779       lt_prog_compiler_static='-Bstatic'
12780       ;;
12781
12782     *)
12783       lt_prog_compiler_can_build_shared=no
12784       ;;
12785     esac
12786   fi
12787
12788 case $host_os in
12789   # For platforms which do not support PIC, -DPIC is meaningless:
12790   *djgpp*)
12791     lt_prog_compiler_pic=
12792     ;;
12793   *)
12794     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12795     ;;
12796 esac
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12798 $as_echo "$lt_prog_compiler_pic" >&6; }
12799
12800
12801
12802
12803
12804
12805 #
12806 # Check to make sure the PIC flag actually works.
12807 #
12808 if test -n "$lt_prog_compiler_pic"; then
12809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12810 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12811 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12812   $as_echo_n "(cached) " >&6
12813 else
12814   lt_cv_prog_compiler_pic_works=no
12815    ac_outfile=conftest.$ac_objext
12816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12817    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12818    # Insert the option either (1) after the last *FLAGS variable, or
12819    # (2) before a word containing "conftest.", or (3) at the end.
12820    # Note that $ac_compile itself does not contain backslashes and begins
12821    # with a dollar sign (not a hyphen), so the echo should work correctly.
12822    # The option is referenced via a variable to avoid confusing sed.
12823    lt_compile=`echo "$ac_compile" | $SED \
12824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12826    -e 's:$: $lt_compiler_flag:'`
12827    (eval echo "\"\$as_me:12827: $lt_compile\"" >&5)
12828    (eval "$lt_compile" 2>conftest.err)
12829    ac_status=$?
12830    cat conftest.err >&5
12831    echo "$as_me:12831: \$? = $ac_status" >&5
12832    if (exit $ac_status) && test -s "$ac_outfile"; then
12833      # The compiler can only warn and ignore the option if not recognized
12834      # So say no if there are warnings other than the usual output.
12835      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12836      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12837      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12838        lt_cv_prog_compiler_pic_works=yes
12839      fi
12840    fi
12841    $RM conftest*
12842
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12845 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12846
12847 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12848     case $lt_prog_compiler_pic in
12849      "" | " "*) ;;
12850      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12851      esac
12852 else
12853     lt_prog_compiler_pic=
12854      lt_prog_compiler_can_build_shared=no
12855 fi
12856
12857 fi
12858
12859
12860
12861
12862
12863
12864 #
12865 # Check to make sure the static flag actually works.
12866 #
12867 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12869 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12870 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   lt_cv_prog_compiler_static_works=no
12874    save_LDFLAGS="$LDFLAGS"
12875    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12876    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12877    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12878      # The linker can only warn and ignore the option if not recognized
12879      # So say no if there are warnings
12880      if test -s conftest.err; then
12881        # Append any errors to the config.log.
12882        cat conftest.err 1>&5
12883        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12884        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12885        if diff conftest.exp conftest.er2 >/dev/null; then
12886          lt_cv_prog_compiler_static_works=yes
12887        fi
12888      else
12889        lt_cv_prog_compiler_static_works=yes
12890      fi
12891    fi
12892    $RM -r conftest*
12893    LDFLAGS="$save_LDFLAGS"
12894
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12897 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12898
12899 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12900     :
12901 else
12902     lt_prog_compiler_static=
12903 fi
12904
12905
12906
12907
12908
12909
12910
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12912 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12913 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916   lt_cv_prog_compiler_c_o=no
12917    $RM -r conftest 2>/dev/null
12918    mkdir conftest
12919    cd conftest
12920    mkdir out
12921    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12922
12923    lt_compiler_flag="-o out/conftest2.$ac_objext"
12924    # Insert the option either (1) after the last *FLAGS variable, or
12925    # (2) before a word containing "conftest.", or (3) at the end.
12926    # Note that $ac_compile itself does not contain backslashes and begins
12927    # with a dollar sign (not a hyphen), so the echo should work correctly.
12928    lt_compile=`echo "$ac_compile" | $SED \
12929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12931    -e 's:$: $lt_compiler_flag:'`
12932    (eval echo "\"\$as_me:12932: $lt_compile\"" >&5)
12933    (eval "$lt_compile" 2>out/conftest.err)
12934    ac_status=$?
12935    cat out/conftest.err >&5
12936    echo "$as_me:12936: \$? = $ac_status" >&5
12937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12938    then
12939      # The compiler can only warn and ignore the option if not recognized
12940      # So say no if there are warnings
12941      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12944        lt_cv_prog_compiler_c_o=yes
12945      fi
12946    fi
12947    chmod u+w . 2>&5
12948    $RM conftest*
12949    # SGI C++ compiler will create directory out/ii_files/ for
12950    # template instantiation
12951    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12952    $RM out/* && rmdir out
12953    cd ..
12954    $RM -r conftest
12955    $RM conftest*
12956
12957 fi
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12959 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12960
12961
12962
12963
12964
12965
12966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   lt_cv_prog_compiler_c_o=no
12972    $RM -r conftest 2>/dev/null
12973    mkdir conftest
12974    cd conftest
12975    mkdir out
12976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12977
12978    lt_compiler_flag="-o out/conftest2.$ac_objext"
12979    # Insert the option either (1) after the last *FLAGS variable, or
12980    # (2) before a word containing "conftest.", or (3) at the end.
12981    # Note that $ac_compile itself does not contain backslashes and begins
12982    # with a dollar sign (not a hyphen), so the echo should work correctly.
12983    lt_compile=`echo "$ac_compile" | $SED \
12984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12986    -e 's:$: $lt_compiler_flag:'`
12987    (eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
12988    (eval "$lt_compile" 2>out/conftest.err)
12989    ac_status=$?
12990    cat out/conftest.err >&5
12991    echo "$as_me:12991: \$? = $ac_status" >&5
12992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12993    then
12994      # The compiler can only warn and ignore the option if not recognized
12995      # So say no if there are warnings
12996      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12999        lt_cv_prog_compiler_c_o=yes
13000      fi
13001    fi
13002    chmod u+w . 2>&5
13003    $RM conftest*
13004    # SGI C++ compiler will create directory out/ii_files/ for
13005    # template instantiation
13006    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13007    $RM out/* && rmdir out
13008    cd ..
13009    $RM -r conftest
13010    $RM conftest*
13011
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13015
13016
13017
13018
13019 hard_links="nottested"
13020 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13021   # do not overwrite the value of need_locks provided by the user
13022   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13023 $as_echo_n "checking if we can lock with hard links... " >&6; }
13024   hard_links=yes
13025   $RM conftest*
13026   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13027   touch conftest.a
13028   ln conftest.a conftest.b 2>&5 || hard_links=no
13029   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13031 $as_echo "$hard_links" >&6; }
13032   if test "$hard_links" = no; then
13033     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13034 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13035     need_locks=warn
13036   fi
13037 else
13038   need_locks=no
13039 fi
13040
13041
13042
13043
13044
13045
13046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13047 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13048
13049   runpath_var=
13050   allow_undefined_flag=
13051   always_export_symbols=no
13052   archive_cmds=
13053   archive_expsym_cmds=
13054   compiler_needs_object=no
13055   enable_shared_with_static_runtimes=no
13056   export_dynamic_flag_spec=
13057   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13058   hardcode_automatic=no
13059   hardcode_direct=no
13060   hardcode_direct_absolute=no
13061   hardcode_libdir_flag_spec=
13062   hardcode_libdir_flag_spec_ld=
13063   hardcode_libdir_separator=
13064   hardcode_minus_L=no
13065   hardcode_shlibpath_var=unsupported
13066   inherit_rpath=no
13067   link_all_deplibs=unknown
13068   module_cmds=
13069   module_expsym_cmds=
13070   old_archive_from_new_cmds=
13071   old_archive_from_expsyms_cmds=
13072   thread_safe_flag_spec=
13073   whole_archive_flag_spec=
13074   # include_expsyms should be a list of space-separated symbols to be *always*
13075   # included in the symbol list
13076   include_expsyms=
13077   # exclude_expsyms can be an extended regexp of symbols to exclude
13078   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13079   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13080   # as well as any symbol that contains `d'.
13081   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13082   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13083   # platforms (ab)use it in PIC code, but their linkers get confused if
13084   # the symbol is explicitly referenced.  Since portable code cannot
13085   # rely on this symbol name, it's probably fine to never include it in
13086   # preloaded symbol tables.
13087   # Exclude shared library initialization/finalization symbols.
13088   extract_expsyms_cmds=
13089
13090   case $host_os in
13091   cygwin* | mingw* | pw32* | cegcc*)
13092     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13093     # When not using gcc, we currently assume that we are using
13094     # Microsoft Visual C++.
13095     if test "$GCC" != yes; then
13096       with_gnu_ld=no
13097     fi
13098     ;;
13099   interix*)
13100     # we just hope/assume this is gcc and not c89 (= MSVC++)
13101     with_gnu_ld=yes
13102     ;;
13103   openbsd*)
13104     with_gnu_ld=no
13105     ;;
13106   esac
13107
13108   ld_shlibs=yes
13109   if test "$with_gnu_ld" = yes; then
13110     # If archive_cmds runs LD, not CC, wlarc should be empty
13111     wlarc='${wl}'
13112
13113     # Set some defaults for GNU ld with shared library support. These
13114     # are reset later if shared libraries are not supported. Putting them
13115     # here allows them to be overridden if necessary.
13116     runpath_var=LD_RUN_PATH
13117     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13118     export_dynamic_flag_spec='${wl}--export-dynamic'
13119     # ancient GNU ld didn't support --whole-archive et. al.
13120     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13121       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13122     else
13123       whole_archive_flag_spec=
13124     fi
13125     supports_anon_versioning=no
13126     case `$LD -v 2>&1` in
13127       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13128       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13129       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13130       *\ 2.11.*) ;; # other 2.11 versions
13131       *) supports_anon_versioning=yes ;;
13132     esac
13133
13134     # See if GNU ld supports shared libraries.
13135     case $host_os in
13136     aix[3-9]*)
13137       # On AIX/PPC, the GNU linker is very broken
13138       if test "$host_cpu" != ia64; then
13139         ld_shlibs=no
13140         cat <<_LT_EOF 1>&2
13141
13142 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13143 *** to be unable to reliably create shared libraries on AIX.
13144 *** Therefore, libtool is disabling shared libraries support.  If you
13145 *** really care for shared libraries, you may want to modify your PATH
13146 *** so that a non-GNU linker is found, and then restart.
13147
13148 _LT_EOF
13149       fi
13150       ;;
13151
13152     amigaos*)
13153       case $host_cpu in
13154       powerpc)
13155             # see comment about AmigaOS4 .so support
13156             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13157             archive_expsym_cmds=''
13158         ;;
13159       m68k)
13160             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)'
13161             hardcode_libdir_flag_spec='-L$libdir'
13162             hardcode_minus_L=yes
13163         ;;
13164       esac
13165       ;;
13166
13167     beos*)
13168       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13169         allow_undefined_flag=unsupported
13170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13171         # support --undefined.  This deserves some investigation.  FIXME
13172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13173       else
13174         ld_shlibs=no
13175       fi
13176       ;;
13177
13178     cygwin* | mingw* | pw32* | cegcc*)
13179       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13180       # as there is no search path for DLLs.
13181       hardcode_libdir_flag_spec='-L$libdir'
13182       allow_undefined_flag=unsupported
13183       always_export_symbols=no
13184       enable_shared_with_static_runtimes=yes
13185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13186
13187       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13189         # If the export-symbols file already is a .def file (1st line
13190         # is EXPORTS), use it as is; otherwise, prepend...
13191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13192           cp $export_symbols $output_objdir/$soname.def;
13193         else
13194           echo EXPORTS > $output_objdir/$soname.def;
13195           cat $export_symbols >> $output_objdir/$soname.def;
13196         fi~
13197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13198       else
13199         ld_shlibs=no
13200       fi
13201       ;;
13202
13203     interix[3-9]*)
13204       hardcode_direct=no
13205       hardcode_shlibpath_var=no
13206       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13207       export_dynamic_flag_spec='${wl}-E'
13208       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13209       # Instead, shared libraries are loaded at an image base (0x10000000 by
13210       # default) and relocated if they conflict, which is a slow very memory
13211       # consuming and fragmenting process.  To avoid this, we pick a random,
13212       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13213       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13214       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13215       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'
13216       ;;
13217
13218     gnu* | linux* | tpf* | k*bsd*-gnu)
13219       tmp_diet=no
13220       if test "$host_os" = linux-dietlibc; then
13221         case $cc_basename in
13222           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13223         esac
13224       fi
13225       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13226          && test "$tmp_diet" = no
13227       then
13228         tmp_addflag=
13229         tmp_sharedflag='-shared'
13230         case $cc_basename,$host_cpu in
13231         pgcc*)                          # Portland Group C compiler
13232           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13233           tmp_addflag=' $pic_flag'
13234           ;;
13235         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13236           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13237           tmp_addflag=' $pic_flag -Mnomain' ;;
13238         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13239           tmp_addflag=' -i_dynamic' ;;
13240         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13241           tmp_addflag=' -i_dynamic -nofor_main' ;;
13242         ifc* | ifort*)                  # Intel Fortran compiler
13243           tmp_addflag=' -nofor_main' ;;
13244         lf95*)                          # Lahey Fortran 8.1
13245           whole_archive_flag_spec=
13246           tmp_sharedflag='--shared' ;;
13247         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
13248           tmp_sharedflag='-qmkshrobj'
13249           tmp_addflag= ;;
13250         esac
13251         case `$CC -V 2>&1 | sed 5q` in
13252         *Sun\ C*)                       # Sun C 5.9
13253           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13254           compiler_needs_object=yes
13255           tmp_sharedflag='-G' ;;
13256         *Sun\ F*)                       # Sun Fortran 8.3
13257           tmp_sharedflag='-G' ;;
13258         esac
13259         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13260
13261         if test "x$supports_anon_versioning" = xyes; then
13262           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13263             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13264             echo "local: *; };" >> $output_objdir/$libname.ver~
13265             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13266         fi
13267
13268         case $cc_basename in
13269         xlf*)
13270           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13271           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13272           hardcode_libdir_flag_spec=
13273           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13274           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13275           if test "x$supports_anon_versioning" = xyes; then
13276             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13277               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13278               echo "local: *; };" >> $output_objdir/$libname.ver~
13279               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13280           fi
13281           ;;
13282         esac
13283       else
13284         ld_shlibs=no
13285       fi
13286       ;;
13287
13288     netbsd*)
13289       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13290         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13291         wlarc=
13292       else
13293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13295       fi
13296       ;;
13297
13298     solaris*)
13299       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13300         ld_shlibs=no
13301         cat <<_LT_EOF 1>&2
13302
13303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13304 *** create shared libraries on Solaris systems.  Therefore, libtool
13305 *** is disabling shared libraries support.  We urge you to upgrade GNU
13306 *** binutils to release 2.9.1 or newer.  Another option is to modify
13307 *** your PATH or compiler configuration so that the native linker is
13308 *** used, and then restart.
13309
13310 _LT_EOF
13311       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13314       else
13315         ld_shlibs=no
13316       fi
13317       ;;
13318
13319     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13320       case `$LD -v 2>&1` in
13321         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13322         ld_shlibs=no
13323         cat <<_LT_EOF 1>&2
13324
13325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13326 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13327 *** is disabling shared libraries support.  We urge you to upgrade GNU
13328 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13329 *** your PATH or compiler configuration so that the native linker is
13330 *** used, and then restart.
13331
13332 _LT_EOF
13333         ;;
13334         *)
13335           # For security reasons, it is highly recommended that you always
13336           # use absolute paths for naming shared libraries, and exclude the
13337           # DT_RUNPATH tag from executables and libraries.  But doing so
13338           # requires that you compile everything twice, which is a pain.
13339           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13341             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13343           else
13344             ld_shlibs=no
13345           fi
13346         ;;
13347       esac
13348       ;;
13349
13350     sunos4*)
13351       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13352       wlarc=
13353       hardcode_direct=yes
13354       hardcode_shlibpath_var=no
13355       ;;
13356
13357     *)
13358       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13361       else
13362         ld_shlibs=no
13363       fi
13364       ;;
13365     esac
13366
13367     if test "$ld_shlibs" = no; then
13368       runpath_var=
13369       hardcode_libdir_flag_spec=
13370       export_dynamic_flag_spec=
13371       whole_archive_flag_spec=
13372     fi
13373   else
13374     # PORTME fill in a description of your system's linker (not GNU ld)
13375     case $host_os in
13376     aix3*)
13377       allow_undefined_flag=unsupported
13378       always_export_symbols=yes
13379       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'
13380       # Note: this linker hardcodes the directories in LIBPATH if there
13381       # are no directories specified by -L.
13382       hardcode_minus_L=yes
13383       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13384         # Neither direct hardcoding nor static linking is supported with a
13385         # broken collect2.
13386         hardcode_direct=unsupported
13387       fi
13388       ;;
13389
13390     aix[4-9]*)
13391       if test "$host_cpu" = ia64; then
13392         # On IA64, the linker does run time linking by default, so we don't
13393         # have to do anything special.
13394         aix_use_runtimelinking=no
13395         exp_sym_flag='-Bexport'
13396         no_entry_flag=""
13397       else
13398         # If we're using GNU nm, then we don't want the "-C" option.
13399         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13400         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13401           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13402         else
13403           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'
13404         fi
13405         aix_use_runtimelinking=no
13406
13407         # Test if we are trying to use run time linking or normal
13408         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13409         # need to do runtime linking.
13410         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13411           for ld_flag in $LDFLAGS; do
13412           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13413             aix_use_runtimelinking=yes
13414             break
13415           fi
13416           done
13417           ;;
13418         esac
13419
13420         exp_sym_flag='-bexport'
13421         no_entry_flag='-bnoentry'
13422       fi
13423
13424       # When large executables or shared objects are built, AIX ld can
13425       # have problems creating the table of contents.  If linking a library
13426       # or program results in "error TOC overflow" add -mminimal-toc to
13427       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13428       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13429
13430       archive_cmds=''
13431       hardcode_direct=yes
13432       hardcode_direct_absolute=yes
13433       hardcode_libdir_separator=':'
13434       link_all_deplibs=yes
13435       file_list_spec='${wl}-f,'
13436
13437       if test "$GCC" = yes; then
13438         case $host_os in aix4.[012]|aix4.[012].*)
13439         # We only want to do this on AIX 4.2 and lower, the check
13440         # below for broken collect2 doesn't work under 4.3+
13441           collect2name=`${CC} -print-prog-name=collect2`
13442           if test -f "$collect2name" &&
13443            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13444           then
13445           # We have reworked collect2
13446           :
13447           else
13448           # We have old collect2
13449           hardcode_direct=unsupported
13450           # It fails to find uninstalled libraries when the uninstalled
13451           # path is not listed in the libpath.  Setting hardcode_minus_L
13452           # to unsupported forces relinking
13453           hardcode_minus_L=yes
13454           hardcode_libdir_flag_spec='-L$libdir'
13455           hardcode_libdir_separator=
13456           fi
13457           ;;
13458         esac
13459         shared_flag='-shared'
13460         if test "$aix_use_runtimelinking" = yes; then
13461           shared_flag="$shared_flag "'${wl}-G'
13462         fi
13463       else
13464         # not using gcc
13465         if test "$host_cpu" = ia64; then
13466         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467         # chokes on -Wl,-G. The following line is correct:
13468           shared_flag='-G'
13469         else
13470           if test "$aix_use_runtimelinking" = yes; then
13471             shared_flag='${wl}-G'
13472           else
13473             shared_flag='${wl}-bM:SRE'
13474           fi
13475         fi
13476       fi
13477
13478       export_dynamic_flag_spec='${wl}-bexpall'
13479       # It seems that -bexpall does not export symbols beginning with
13480       # underscore (_), so it is better to generate a list of symbols to export.
13481       always_export_symbols=yes
13482       if test "$aix_use_runtimelinking" = yes; then
13483         # Warning - without using the other runtime loading flags (-brtl),
13484         # -berok will link without error, but may produce a broken library.
13485         allow_undefined_flag='-berok'
13486         # Determine the default libpath from the value encoded in an
13487         # empty executable.
13488         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h.  */
13490
13491 int
13492 main ()
13493 {
13494
13495   ;
13496   return 0;
13497 }
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500
13501 lt_aix_libpath_sed='
13502     /Import File Strings/,/^$/ {
13503         /^0/ {
13504             s/^0  *\(.*\)$/\1/
13505             p
13506         }
13507     }'
13508 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13509 # Check for a 64-bit object if we didn't find anything.
13510 if test -z "$aix_libpath"; then
13511   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13512 fi
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext \
13515     conftest$ac_exeext conftest.$ac_ext
13516 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13517
13518         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13519         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13520       else
13521         if test "$host_cpu" = ia64; then
13522           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13523           allow_undefined_flag="-z nodefs"
13524           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"
13525         else
13526          # Determine the default libpath from the value encoded in an
13527          # empty executable.
13528          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h.  */
13530
13531 int
13532 main ()
13533 {
13534
13535   ;
13536   return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_c_try_link "$LINENO"; then :
13540
13541 lt_aix_libpath_sed='
13542     /Import File Strings/,/^$/ {
13543         /^0/ {
13544             s/^0  *\(.*\)$/\1/
13545             p
13546         }
13547     }'
13548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13549 # Check for a 64-bit object if we didn't find anything.
13550 if test -z "$aix_libpath"; then
13551   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13552 fi
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext \
13555     conftest$ac_exeext conftest.$ac_ext
13556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13557
13558          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13559           # Warning - without using the other run time loading flags,
13560           # -berok will link without error, but may produce a broken library.
13561           no_undefined_flag=' ${wl}-bernotok'
13562           allow_undefined_flag=' ${wl}-berok'
13563           # Exported symbols can be pulled into shared objects from archives
13564           whole_archive_flag_spec='$convenience'
13565           archive_cmds_need_lc=yes
13566           # This is similar to how AIX traditionally builds its shared libraries.
13567           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'
13568         fi
13569       fi
13570       ;;
13571
13572     amigaos*)
13573       case $host_cpu in
13574       powerpc)
13575             # see comment about AmigaOS4 .so support
13576             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13577             archive_expsym_cmds=''
13578         ;;
13579       m68k)
13580             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)'
13581             hardcode_libdir_flag_spec='-L$libdir'
13582             hardcode_minus_L=yes
13583         ;;
13584       esac
13585       ;;
13586
13587     bsdi[45]*)
13588       export_dynamic_flag_spec=-rdynamic
13589       ;;
13590
13591     cygwin* | mingw* | pw32* | cegcc*)
13592       # When not using gcc, we currently assume that we are using
13593       # Microsoft Visual C++.
13594       # hardcode_libdir_flag_spec is actually meaningless, as there is
13595       # no search path for DLLs.
13596       hardcode_libdir_flag_spec=' '
13597       allow_undefined_flag=unsupported
13598       # Tell ltmain to make .lib files, not .a files.
13599       libext=lib
13600       # Tell ltmain to make .dll files, not .so files.
13601       shrext_cmds=".dll"
13602       # FIXME: Setting linknames here is a bad hack.
13603       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13604       # The linker will automatically build a .lib file if we build a DLL.
13605       old_archive_from_new_cmds='true'
13606       # FIXME: Should let the user specify the lib program.
13607       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13608       fix_srcfile_path='`cygpath -w "$srcfile"`'
13609       enable_shared_with_static_runtimes=yes
13610       ;;
13611
13612     darwin* | rhapsody*)
13613
13614
13615   archive_cmds_need_lc=no
13616   hardcode_direct=no
13617   hardcode_automatic=yes
13618   hardcode_shlibpath_var=unsupported
13619   whole_archive_flag_spec=''
13620   link_all_deplibs=yes
13621   allow_undefined_flag="$_lt_dar_allow_undefined"
13622   case $cc_basename in
13623      ifort*) _lt_dar_can_shared=yes ;;
13624      *) _lt_dar_can_shared=$GCC ;;
13625   esac
13626   if test "$_lt_dar_can_shared" = "yes"; then
13627     output_verbose_link_cmd=echo
13628     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13629     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13630     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}"
13631     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}"
13632
13633   else
13634   ld_shlibs=no
13635   fi
13636
13637       ;;
13638
13639     dgux*)
13640       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641       hardcode_libdir_flag_spec='-L$libdir'
13642       hardcode_shlibpath_var=no
13643       ;;
13644
13645     freebsd1*)
13646       ld_shlibs=no
13647       ;;
13648
13649     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13650     # support.  Future versions do this automatically, but an explicit c++rt0.o
13651     # does not break anything, and helps significantly (at the cost of a little
13652     # extra space).
13653     freebsd2.2*)
13654       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13655       hardcode_libdir_flag_spec='-R$libdir'
13656       hardcode_direct=yes
13657       hardcode_shlibpath_var=no
13658       ;;
13659
13660     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13661     freebsd2*)
13662       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13663       hardcode_direct=yes
13664       hardcode_minus_L=yes
13665       hardcode_shlibpath_var=no
13666       ;;
13667
13668     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13669     freebsd* | dragonfly*)
13670       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13671       hardcode_libdir_flag_spec='-R$libdir'
13672       hardcode_direct=yes
13673       hardcode_shlibpath_var=no
13674       ;;
13675
13676     hpux9*)
13677       if test "$GCC" = yes; then
13678         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13679       else
13680         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'
13681       fi
13682       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13683       hardcode_libdir_separator=:
13684       hardcode_direct=yes
13685
13686       # hardcode_minus_L: Not really in the search PATH,
13687       # but as the default location of the library.
13688       hardcode_minus_L=yes
13689       export_dynamic_flag_spec='${wl}-E'
13690       ;;
13691
13692     hpux10*)
13693       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13694         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13695       else
13696         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13697       fi
13698       if test "$with_gnu_ld" = no; then
13699         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13700         hardcode_libdir_flag_spec_ld='+b $libdir'
13701         hardcode_libdir_separator=:
13702         hardcode_direct=yes
13703         hardcode_direct_absolute=yes
13704         export_dynamic_flag_spec='${wl}-E'
13705         # hardcode_minus_L: Not really in the search PATH,
13706         # but as the default location of the library.
13707         hardcode_minus_L=yes
13708       fi
13709       ;;
13710
13711     hpux11*)
13712       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13713         case $host_cpu in
13714         hppa*64*)
13715           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13716           ;;
13717         ia64*)
13718           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13719           ;;
13720         *)
13721           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13722           ;;
13723         esac
13724       else
13725         case $host_cpu in
13726         hppa*64*)
13727           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13728           ;;
13729         ia64*)
13730           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13731           ;;
13732         *)
13733           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13734           ;;
13735         esac
13736       fi
13737       if test "$with_gnu_ld" = no; then
13738         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739         hardcode_libdir_separator=:
13740
13741         case $host_cpu in
13742         hppa*64*|ia64*)
13743           hardcode_direct=no
13744           hardcode_shlibpath_var=no
13745           ;;
13746         *)
13747           hardcode_direct=yes
13748           hardcode_direct_absolute=yes
13749           export_dynamic_flag_spec='${wl}-E'
13750
13751           # hardcode_minus_L: Not really in the search PATH,
13752           # but as the default location of the library.
13753           hardcode_minus_L=yes
13754           ;;
13755         esac
13756       fi
13757       ;;
13758
13759     irix5* | irix6* | nonstopux*)
13760       if test "$GCC" = yes; then
13761         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13762         # Try to use the -exported_symbol ld option, if it does not
13763         # work, assume that -exports_file does not work either and
13764         # implicitly export all symbols.
13765         save_LDFLAGS="$LDFLAGS"
13766         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13767         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769 int foo(void) {}
13770 _ACEOF
13771 if ac_fn_c_try_link "$LINENO"; then :
13772   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13773
13774 fi
13775 rm -f core conftest.err conftest.$ac_objext \
13776     conftest$ac_exeext conftest.$ac_ext
13777         LDFLAGS="$save_LDFLAGS"
13778       else
13779         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13780         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
13781       fi
13782       archive_cmds_need_lc='no'
13783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13784       hardcode_libdir_separator=:
13785       inherit_rpath=yes
13786       link_all_deplibs=yes
13787       ;;
13788
13789     netbsd*)
13790       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13791         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13792       else
13793         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13794       fi
13795       hardcode_libdir_flag_spec='-R$libdir'
13796       hardcode_direct=yes
13797       hardcode_shlibpath_var=no
13798       ;;
13799
13800     newsos6)
13801       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13802       hardcode_direct=yes
13803       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13804       hardcode_libdir_separator=:
13805       hardcode_shlibpath_var=no
13806       ;;
13807
13808     *nto* | *qnx*)
13809       ;;
13810
13811     openbsd*)
13812       if test -f /usr/libexec/ld.so; then
13813         hardcode_direct=yes
13814         hardcode_shlibpath_var=no
13815         hardcode_direct_absolute=yes
13816         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13817           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13818           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13819           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13820           export_dynamic_flag_spec='${wl}-E'
13821         else
13822           case $host_os in
13823            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13824              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13825              hardcode_libdir_flag_spec='-R$libdir'
13826              ;;
13827            *)
13828              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13829              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13830              ;;
13831           esac
13832         fi
13833       else
13834         ld_shlibs=no
13835       fi
13836       ;;
13837
13838     os2*)
13839       hardcode_libdir_flag_spec='-L$libdir'
13840       hardcode_minus_L=yes
13841       allow_undefined_flag=unsupported
13842       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'
13843       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13844       ;;
13845
13846     osf3*)
13847       if test "$GCC" = yes; then
13848         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13849         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13850       else
13851         allow_undefined_flag=' -expect_unresolved \*'
13852         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13853       fi
13854       archive_cmds_need_lc='no'
13855       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13856       hardcode_libdir_separator=:
13857       ;;
13858
13859     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13860       if test "$GCC" = yes; then
13861         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13862         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13863         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13864       else
13865         allow_undefined_flag=' -expect_unresolved \*'
13866         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13867         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~
13868         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13869
13870         # Both c and cxx compiler support -rpath directly
13871         hardcode_libdir_flag_spec='-rpath $libdir'
13872       fi
13873       archive_cmds_need_lc='no'
13874       hardcode_libdir_separator=:
13875       ;;
13876
13877     solaris*)
13878       no_undefined_flag=' -z defs'
13879       if test "$GCC" = yes; then
13880         wlarc='${wl}'
13881         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13882         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13883           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13884       else
13885         case `$CC -V 2>&1` in
13886         *"Compilers 5.0"*)
13887           wlarc=''
13888           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13889           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13890           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13891           ;;
13892         *)
13893           wlarc='${wl}'
13894           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13895           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13896           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13897           ;;
13898         esac
13899       fi
13900       hardcode_libdir_flag_spec='-R$libdir'
13901       hardcode_shlibpath_var=no
13902       case $host_os in
13903       solaris2.[0-5] | solaris2.[0-5].*) ;;
13904       *)
13905         # The compiler driver will combine and reorder linker options,
13906         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13907         # but is careful enough not to reorder.
13908         # Supported since Solaris 2.6 (maybe 2.5.1?)
13909         if test "$GCC" = yes; then
13910           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13911         else
13912           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13913         fi
13914         ;;
13915       esac
13916       link_all_deplibs=yes
13917       ;;
13918
13919     sunos4*)
13920       if test "x$host_vendor" = xsequent; then
13921         # Use $CC to link under sequent, because it throws in some extra .o
13922         # files that make .init and .fini sections work.
13923         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13924       else
13925         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13926       fi
13927       hardcode_libdir_flag_spec='-L$libdir'
13928       hardcode_direct=yes
13929       hardcode_minus_L=yes
13930       hardcode_shlibpath_var=no
13931       ;;
13932
13933     sysv4)
13934       case $host_vendor in
13935         sni)
13936           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13937           hardcode_direct=yes # is this really true???
13938         ;;
13939         siemens)
13940           ## LD is ld it makes a PLAMLIB
13941           ## CC just makes a GrossModule.
13942           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13943           reload_cmds='$CC -r -o $output$reload_objs'
13944           hardcode_direct=no
13945         ;;
13946         motorola)
13947           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13948           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13949         ;;
13950       esac
13951       runpath_var='LD_RUN_PATH'
13952       hardcode_shlibpath_var=no
13953       ;;
13954
13955     sysv4.3*)
13956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13957       hardcode_shlibpath_var=no
13958       export_dynamic_flag_spec='-Bexport'
13959       ;;
13960
13961     sysv4*MP*)
13962       if test -d /usr/nec; then
13963         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13964         hardcode_shlibpath_var=no
13965         runpath_var=LD_RUN_PATH
13966         hardcode_runpath_var=yes
13967         ld_shlibs=yes
13968       fi
13969       ;;
13970
13971     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13972       no_undefined_flag='${wl}-z,text'
13973       archive_cmds_need_lc=no
13974       hardcode_shlibpath_var=no
13975       runpath_var='LD_RUN_PATH'
13976
13977       if test "$GCC" = yes; then
13978         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13980       else
13981         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13982         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983       fi
13984       ;;
13985
13986     sysv5* | sco3.2v5* | sco5v6*)
13987       # Note: We can NOT use -z defs as we might desire, because we do not
13988       # link with -lc, and that would cause any symbols used from libc to
13989       # always be unresolved, which means just about no library would
13990       # ever link correctly.  If we're not using GNU ld we use -z text
13991       # though, which does catch some bad symbols but isn't as heavy-handed
13992       # as -z defs.
13993       no_undefined_flag='${wl}-z,text'
13994       allow_undefined_flag='${wl}-z,nodefs'
13995       archive_cmds_need_lc=no
13996       hardcode_shlibpath_var=no
13997       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13998       hardcode_libdir_separator=':'
13999       link_all_deplibs=yes
14000       export_dynamic_flag_spec='${wl}-Bexport'
14001       runpath_var='LD_RUN_PATH'
14002
14003       if test "$GCC" = yes; then
14004         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14005         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14006       else
14007         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14008         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14009       fi
14010       ;;
14011
14012     uts4*)
14013       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14014       hardcode_libdir_flag_spec='-L$libdir'
14015       hardcode_shlibpath_var=no
14016       ;;
14017
14018     *)
14019       ld_shlibs=no
14020       ;;
14021     esac
14022
14023     if test x$host_vendor = xsni; then
14024       case $host in
14025       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14026         export_dynamic_flag_spec='${wl}-Blargedynsym'
14027         ;;
14028       esac
14029     fi
14030   fi
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14033 $as_echo "$ld_shlibs" >&6; }
14034 test "$ld_shlibs" = no && can_build_shared=no
14035
14036 with_gnu_ld=$with_gnu_ld
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052 #
14053 # Do we need to explicitly link libc?
14054 #
14055 case "x$archive_cmds_need_lc" in
14056 x|xyes)
14057   # Assume -lc should be added
14058   archive_cmds_need_lc=yes
14059
14060   if test "$enable_shared" = yes && test "$GCC" = yes; then
14061     case $archive_cmds in
14062     *'~'*)
14063       # FIXME: we may have to deal with multi-command sequences.
14064       ;;
14065     '$CC '*)
14066       # Test whether the compiler implicitly links with -lc since on some
14067       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14068       # to ld, don't add -lc before -lgcc.
14069       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14070 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14071       $RM conftest*
14072       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073
14074       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14075   (eval $ac_compile) 2>&5
14076   ac_status=$?
14077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14078   test $ac_status = 0; } 2>conftest.err; then
14079         soname=conftest
14080         lib=conftest
14081         libobjs=conftest.$ac_objext
14082         deplibs=
14083         wl=$lt_prog_compiler_wl
14084         pic_flag=$lt_prog_compiler_pic
14085         compiler_flags=-v
14086         linker_flags=-v
14087         verstring=
14088         output_objdir=.
14089         libname=conftest
14090         lt_save_allow_undefined_flag=$allow_undefined_flag
14091         allow_undefined_flag=
14092         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14093   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14094   ac_status=$?
14095   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096   test $ac_status = 0; }
14097         then
14098           archive_cmds_need_lc=no
14099         else
14100           archive_cmds_need_lc=yes
14101         fi
14102         allow_undefined_flag=$lt_save_allow_undefined_flag
14103       else
14104         cat conftest.err 1>&5
14105       fi
14106       $RM conftest*
14107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14108 $as_echo "$archive_cmds_need_lc" >&6; }
14109       ;;
14110     esac
14111   fi
14112   ;;
14113 esac
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14272 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14273
14274 if test "$GCC" = yes; then
14275   case $host_os in
14276     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14277     *) lt_awk_arg="/^libraries:/" ;;
14278   esac
14279   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14280   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14281     # if the path contains ";" then we assume it to be the separator
14282     # otherwise default to the standard path separator (i.e. ":") - it is
14283     # assumed that no part of a normal pathname contains ";" but that should
14284     # okay in the real world where ";" in dirpaths is itself problematic.
14285     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14286   else
14287     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14288   fi
14289   # Ok, now we have the path, separated by spaces, we can step through it
14290   # and add multilib dir if necessary.
14291   lt_tmp_lt_search_path_spec=
14292   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14293   for lt_sys_path in $lt_search_path_spec; do
14294     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14295       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14296     else
14297       test -d "$lt_sys_path" && \
14298         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14299     fi
14300   done
14301   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14302 BEGIN {RS=" "; FS="/|\n";} {
14303   lt_foo="";
14304   lt_count=0;
14305   for (lt_i = NF; lt_i > 0; lt_i--) {
14306     if ($lt_i != "" && $lt_i != ".") {
14307       if ($lt_i == "..") {
14308         lt_count++;
14309       } else {
14310         if (lt_count == 0) {
14311           lt_foo="/" $lt_i lt_foo;
14312         } else {
14313           lt_count--;
14314         }
14315       }
14316     }
14317   }
14318   if (lt_foo != "") { lt_freq[lt_foo]++; }
14319   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14320 }'`
14321   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14322 else
14323   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14324 fi
14325 library_names_spec=
14326 libname_spec='lib$name'
14327 soname_spec=
14328 shrext_cmds=".so"
14329 postinstall_cmds=
14330 postuninstall_cmds=
14331 finish_cmds=
14332 finish_eval=
14333 shlibpath_var=
14334 shlibpath_overrides_runpath=unknown
14335 version_type=none
14336 dynamic_linker="$host_os ld.so"
14337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14338 need_lib_prefix=unknown
14339 hardcode_into_libs=no
14340
14341 # when you set need_version to no, make sure it does not cause -set_version
14342 # flags to be left without arguments
14343 need_version=unknown
14344
14345 case $host_os in
14346 aix3*)
14347   version_type=linux
14348   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14349   shlibpath_var=LIBPATH
14350
14351   # AIX 3 has no versioning support, so we append a major version to the name.
14352   soname_spec='${libname}${release}${shared_ext}$major'
14353   ;;
14354
14355 aix[4-9]*)
14356   version_type=linux
14357   need_lib_prefix=no
14358   need_version=no
14359   hardcode_into_libs=yes
14360   if test "$host_cpu" = ia64; then
14361     # AIX 5 supports IA64
14362     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14363     shlibpath_var=LD_LIBRARY_PATH
14364   else
14365     # With GCC up to 2.95.x, collect2 would create an import file
14366     # for dependence libraries.  The import file would start with
14367     # the line `#! .'.  This would cause the generated library to
14368     # depend on `.', always an invalid library.  This was fixed in
14369     # development snapshots of GCC prior to 3.0.
14370     case $host_os in
14371       aix4 | aix4.[01] | aix4.[01].*)
14372       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14373            echo ' yes '
14374            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14375         :
14376       else
14377         can_build_shared=no
14378       fi
14379       ;;
14380     esac
14381     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14382     # soname into executable. Probably we can add versioning support to
14383     # collect2, so additional links can be useful in future.
14384     if test "$aix_use_runtimelinking" = yes; then
14385       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14386       # instead of lib<name>.a to let people know that these are not
14387       # typical AIX shared libraries.
14388       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389     else
14390       # We preserve .a as extension for shared libraries through AIX4.2
14391       # and later when we are not doing run time linking.
14392       library_names_spec='${libname}${release}.a $libname.a'
14393       soname_spec='${libname}${release}${shared_ext}$major'
14394     fi
14395     shlibpath_var=LIBPATH
14396   fi
14397   ;;
14398
14399 amigaos*)
14400   case $host_cpu in
14401   powerpc)
14402     # Since July 2007 AmigaOS4 officially supports .so libraries.
14403     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405     ;;
14406   m68k)
14407     library_names_spec='$libname.ixlibrary $libname.a'
14408     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14409     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14410     ;;
14411   esac
14412   ;;
14413
14414 beos*)
14415   library_names_spec='${libname}${shared_ext}'
14416   dynamic_linker="$host_os ld.so"
14417   shlibpath_var=LIBRARY_PATH
14418   ;;
14419
14420 bsdi[45]*)
14421   version_type=linux
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14426   shlibpath_var=LD_LIBRARY_PATH
14427   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14428   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14429   # the default ld.so.conf also contains /usr/contrib/lib and
14430   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14431   # libtool to hard-code these into programs
14432   ;;
14433
14434 cygwin* | mingw* | pw32* | cegcc*)
14435   version_type=windows
14436   shrext_cmds=".dll"
14437   need_version=no
14438   need_lib_prefix=no
14439
14440   case $GCC,$host_os in
14441   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14442     library_names_spec='$libname.dll.a'
14443     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14444     postinstall_cmds='base_file=`basename \${file}`~
14445       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14446       dldir=$destdir/`dirname \$dlpath`~
14447       test -d \$dldir || mkdir -p \$dldir~
14448       $install_prog $dir/$dlname \$dldir/$dlname~
14449       chmod a+x \$dldir/$dlname~
14450       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14451         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14452       fi'
14453     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14454       dlpath=$dir/\$dldll~
14455        $RM \$dlpath'
14456     shlibpath_overrides_runpath=yes
14457
14458     case $host_os in
14459     cygwin*)
14460       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14461       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14462       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14463       ;;
14464     mingw* | cegcc*)
14465       # MinGW DLLs use traditional 'lib' prefix
14466       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14467       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14468       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14469         # It is most probably a Windows format PATH printed by
14470         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14471         # path with ; separators, and with drive letters. We can handle the
14472         # drive letters (cygwin fileutils understands them), so leave them,
14473         # especially as we might pass files found there to a mingw objdump,
14474         # which wouldn't understand a cygwinified path. Ahh.
14475         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14476       else
14477         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14478       fi
14479       ;;
14480     pw32*)
14481       # pw32 DLLs use 'pw' prefix rather than 'lib'
14482       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14483       ;;
14484     esac
14485     ;;
14486
14487   *)
14488     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14489     ;;
14490   esac
14491   dynamic_linker='Win32 ld.exe'
14492   # FIXME: first we should search . and the directory the executable is in
14493   shlibpath_var=PATH
14494   ;;
14495
14496 darwin* | rhapsody*)
14497   dynamic_linker="$host_os dyld"
14498   version_type=darwin
14499   need_lib_prefix=no
14500   need_version=no
14501   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14502   soname_spec='${libname}${release}${major}$shared_ext'
14503   shlibpath_overrides_runpath=yes
14504   shlibpath_var=DYLD_LIBRARY_PATH
14505   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14506
14507   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14508   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14509   ;;
14510
14511 dgux*)
14512   version_type=linux
14513   need_lib_prefix=no
14514   need_version=no
14515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14516   soname_spec='${libname}${release}${shared_ext}$major'
14517   shlibpath_var=LD_LIBRARY_PATH
14518   ;;
14519
14520 freebsd1*)
14521   dynamic_linker=no
14522   ;;
14523
14524 freebsd* | dragonfly*)
14525   # DragonFly does not have aout.  When/if they implement a new
14526   # versioning mechanism, adjust this.
14527   if test -x /usr/bin/objformat; then
14528     objformat=`/usr/bin/objformat`
14529   else
14530     case $host_os in
14531     freebsd[123]*) objformat=aout ;;
14532     *) objformat=elf ;;
14533     esac
14534   fi
14535   version_type=freebsd-$objformat
14536   case $version_type in
14537     freebsd-elf*)
14538       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14539       need_version=no
14540       need_lib_prefix=no
14541       ;;
14542     freebsd-*)
14543       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14544       need_version=yes
14545       ;;
14546   esac
14547   shlibpath_var=LD_LIBRARY_PATH
14548   case $host_os in
14549   freebsd2*)
14550     shlibpath_overrides_runpath=yes
14551     ;;
14552   freebsd3.[01]* | freebsdelf3.[01]*)
14553     shlibpath_overrides_runpath=yes
14554     hardcode_into_libs=yes
14555     ;;
14556   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14557   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14558     shlibpath_overrides_runpath=no
14559     hardcode_into_libs=yes
14560     ;;
14561   *) # from 4.6 on, and DragonFly
14562     shlibpath_overrides_runpath=yes
14563     hardcode_into_libs=yes
14564     ;;
14565   esac
14566   ;;
14567
14568 gnu*)
14569   version_type=linux
14570   need_lib_prefix=no
14571   need_version=no
14572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14573   soname_spec='${libname}${release}${shared_ext}$major'
14574   shlibpath_var=LD_LIBRARY_PATH
14575   hardcode_into_libs=yes
14576   ;;
14577
14578 hpux9* | hpux10* | hpux11*)
14579   # Give a soname corresponding to the major version so that dld.sl refuses to
14580   # link against other versions.
14581   version_type=sunos
14582   need_lib_prefix=no
14583   need_version=no
14584   case $host_cpu in
14585   ia64*)
14586     shrext_cmds='.so'
14587     hardcode_into_libs=yes
14588     dynamic_linker="$host_os dld.so"
14589     shlibpath_var=LD_LIBRARY_PATH
14590     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592     soname_spec='${libname}${release}${shared_ext}$major'
14593     if test "X$HPUX_IA64_MODE" = X32; then
14594       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14595     else
14596       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14597     fi
14598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14599     ;;
14600   hppa*64*)
14601     shrext_cmds='.sl'
14602     hardcode_into_libs=yes
14603     dynamic_linker="$host_os dld.sl"
14604     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607     soname_spec='${libname}${release}${shared_ext}$major'
14608     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14610     ;;
14611   *)
14612     shrext_cmds='.sl'
14613     dynamic_linker="$host_os dld.sl"
14614     shlibpath_var=SHLIB_PATH
14615     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617     soname_spec='${libname}${release}${shared_ext}$major'
14618     ;;
14619   esac
14620   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14621   postinstall_cmds='chmod 555 $lib'
14622   ;;
14623
14624 interix[3-9]*)
14625   version_type=linux
14626   need_lib_prefix=no
14627   need_version=no
14628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14629   soname_spec='${libname}${release}${shared_ext}$major'
14630   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14631   shlibpath_var=LD_LIBRARY_PATH
14632   shlibpath_overrides_runpath=no
14633   hardcode_into_libs=yes
14634   ;;
14635
14636 irix5* | irix6* | nonstopux*)
14637   case $host_os in
14638     nonstopux*) version_type=nonstopux ;;
14639     *)
14640         if test "$lt_cv_prog_gnu_ld" = yes; then
14641                 version_type=linux
14642         else
14643                 version_type=irix
14644         fi ;;
14645   esac
14646   need_lib_prefix=no
14647   need_version=no
14648   soname_spec='${libname}${release}${shared_ext}$major'
14649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14650   case $host_os in
14651   irix5* | nonstopux*)
14652     libsuff= shlibsuff=
14653     ;;
14654   *)
14655     case $LD in # libtool.m4 will add one of these switches to LD
14656     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14657       libsuff= shlibsuff= libmagic=32-bit;;
14658     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14659       libsuff=32 shlibsuff=N32 libmagic=N32;;
14660     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14661       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14662     *) libsuff= shlibsuff= libmagic=never-match;;
14663     esac
14664     ;;
14665   esac
14666   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14667   shlibpath_overrides_runpath=no
14668   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14669   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14670   hardcode_into_libs=yes
14671   ;;
14672
14673 # No shared lib support for Linux oldld, aout, or coff.
14674 linux*oldld* | linux*aout* | linux*coff*)
14675   dynamic_linker=no
14676   ;;
14677
14678 # This must be Linux ELF.
14679 linux* | k*bsd*-gnu)
14680   version_type=linux
14681   need_lib_prefix=no
14682   need_version=no
14683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684   soname_spec='${libname}${release}${shared_ext}$major'
14685   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14686   shlibpath_var=LD_LIBRARY_PATH
14687   shlibpath_overrides_runpath=no
14688   # Some binutils ld are patched to set DT_RUNPATH
14689   save_LDFLAGS=$LDFLAGS
14690   save_libdir=$libdir
14691   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14692        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h.  */
14695
14696 int
14697 main ()
14698 {
14699
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 if ac_fn_c_try_link "$LINENO"; then :
14705   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14706   shlibpath_overrides_runpath=yes
14707 fi
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext \
14710     conftest$ac_exeext conftest.$ac_ext
14711   LDFLAGS=$save_LDFLAGS
14712   libdir=$save_libdir
14713
14714   # This implies no fast_install, which is unacceptable.
14715   # Some rework will be needed to allow for fast_install
14716   # before this can be enabled.
14717   hardcode_into_libs=yes
14718
14719   # Add ABI-specific directories to the system library path.
14720   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14721
14722   # Append ld.so.conf contents to the search path
14723   if test -f /etc/ld.so.conf; then
14724     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;/^$/d' | tr '\n' ' '`
14725     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14726   fi
14727
14728   # We used to test for /lib/ld.so.1 and disable shared libraries on
14729   # powerpc, because MkLinux only supported shared libraries with the
14730   # GNU dynamic linker.  Since this was broken with cross compilers,
14731   # most powerpc-linux boxes support dynamic linking these days and
14732   # people can always --disable-shared, the test was removed, and we
14733   # assume the GNU/Linux dynamic linker is in use.
14734   dynamic_linker='GNU/Linux ld.so'
14735   ;;
14736
14737 netbsd*)
14738   version_type=sunos
14739   need_lib_prefix=no
14740   need_version=no
14741   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14742     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14743     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14744     dynamic_linker='NetBSD (a.out) ld.so'
14745   else
14746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14747     soname_spec='${libname}${release}${shared_ext}$major'
14748     dynamic_linker='NetBSD ld.elf_so'
14749   fi
14750   shlibpath_var=LD_LIBRARY_PATH
14751   shlibpath_overrides_runpath=yes
14752   hardcode_into_libs=yes
14753   ;;
14754
14755 newsos6)
14756   version_type=linux
14757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14758   shlibpath_var=LD_LIBRARY_PATH
14759   shlibpath_overrides_runpath=yes
14760   ;;
14761
14762 *nto* | *qnx*)
14763   version_type=qnx
14764   need_lib_prefix=no
14765   need_version=no
14766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767   soname_spec='${libname}${release}${shared_ext}$major'
14768   shlibpath_var=LD_LIBRARY_PATH
14769   shlibpath_overrides_runpath=no
14770   hardcode_into_libs=yes
14771   dynamic_linker='ldqnx.so'
14772   ;;
14773
14774 openbsd*)
14775   version_type=sunos
14776   sys_lib_dlsearch_path_spec="/usr/lib"
14777   need_lib_prefix=no
14778   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14779   case $host_os in
14780     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14781     *)                          need_version=no  ;;
14782   esac
14783   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14784   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14785   shlibpath_var=LD_LIBRARY_PATH
14786   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14787     case $host_os in
14788       openbsd2.[89] | openbsd2.[89].*)
14789         shlibpath_overrides_runpath=no
14790         ;;
14791       *)
14792         shlibpath_overrides_runpath=yes
14793         ;;
14794       esac
14795   else
14796     shlibpath_overrides_runpath=yes
14797   fi
14798   ;;
14799
14800 os2*)
14801   libname_spec='$name'
14802   shrext_cmds=".dll"
14803   need_lib_prefix=no
14804   library_names_spec='$libname${shared_ext} $libname.a'
14805   dynamic_linker='OS/2 ld.exe'
14806   shlibpath_var=LIBPATH
14807   ;;
14808
14809 osf3* | osf4* | osf5*)
14810   version_type=osf
14811   need_lib_prefix=no
14812   need_version=no
14813   soname_spec='${libname}${release}${shared_ext}$major'
14814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815   shlibpath_var=LD_LIBRARY_PATH
14816   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14817   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14818   ;;
14819
14820 rdos*)
14821   dynamic_linker=no
14822   ;;
14823
14824 solaris*)
14825   version_type=linux
14826   need_lib_prefix=no
14827   need_version=no
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829   soname_spec='${libname}${release}${shared_ext}$major'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   shlibpath_overrides_runpath=yes
14832   hardcode_into_libs=yes
14833   # ldd complains unless libraries are executable
14834   postinstall_cmds='chmod +x $lib'
14835   ;;
14836
14837 sunos4*)
14838   version_type=sunos
14839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14841   shlibpath_var=LD_LIBRARY_PATH
14842   shlibpath_overrides_runpath=yes
14843   if test "$with_gnu_ld" = yes; then
14844     need_lib_prefix=no
14845   fi
14846   need_version=yes
14847   ;;
14848
14849 sysv4 | sysv4.3*)
14850   version_type=linux
14851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14852   soname_spec='${libname}${release}${shared_ext}$major'
14853   shlibpath_var=LD_LIBRARY_PATH
14854   case $host_vendor in
14855     sni)
14856       shlibpath_overrides_runpath=no
14857       need_lib_prefix=no
14858       runpath_var=LD_RUN_PATH
14859       ;;
14860     siemens)
14861       need_lib_prefix=no
14862       ;;
14863     motorola)
14864       need_lib_prefix=no
14865       need_version=no
14866       shlibpath_overrides_runpath=no
14867       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14868       ;;
14869   esac
14870   ;;
14871
14872 sysv4*MP*)
14873   if test -d /usr/nec ;then
14874     version_type=linux
14875     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14876     soname_spec='$libname${shared_ext}.$major'
14877     shlibpath_var=LD_LIBRARY_PATH
14878   fi
14879   ;;
14880
14881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14882   version_type=freebsd-elf
14883   need_lib_prefix=no
14884   need_version=no
14885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14886   soname_spec='${libname}${release}${shared_ext}$major'
14887   shlibpath_var=LD_LIBRARY_PATH
14888   shlibpath_overrides_runpath=yes
14889   hardcode_into_libs=yes
14890   if test "$with_gnu_ld" = yes; then
14891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14892   else
14893     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14894     case $host_os in
14895       sco3.2v5*)
14896         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14897         ;;
14898     esac
14899   fi
14900   sys_lib_dlsearch_path_spec='/usr/lib'
14901   ;;
14902
14903 tpf*)
14904   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14905   version_type=linux
14906   need_lib_prefix=no
14907   need_version=no
14908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14909   shlibpath_var=LD_LIBRARY_PATH
14910   shlibpath_overrides_runpath=no
14911   hardcode_into_libs=yes
14912   ;;
14913
14914 uts4*)
14915   version_type=linux
14916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14917   soname_spec='${libname}${release}${shared_ext}$major'
14918   shlibpath_var=LD_LIBRARY_PATH
14919   ;;
14920
14921 *)
14922   dynamic_linker=no
14923   ;;
14924 esac
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14926 $as_echo "$dynamic_linker" >&6; }
14927 test "$dynamic_linker" = no && can_build_shared=no
14928
14929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14930 if test "$GCC" = yes; then
14931   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14932 fi
14933
14934 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14935   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14936 fi
14937 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14938   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14939 fi
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15028 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15029 hardcode_action=
15030 if test -n "$hardcode_libdir_flag_spec" ||
15031    test -n "$runpath_var" ||
15032    test "X$hardcode_automatic" = "Xyes" ; then
15033
15034   # We can hardcode non-existent directories.
15035   if test "$hardcode_direct" != no &&
15036      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15037      # have to relink, otherwise we might link with an installed library
15038      # when we should be linking with a yet-to-be-installed one
15039      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15040      test "$hardcode_minus_L" != no; then
15041     # Linking always hardcodes the temporary library directory.
15042     hardcode_action=relink
15043   else
15044     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15045     hardcode_action=immediate
15046   fi
15047 else
15048   # We cannot hardcode anything, or else we can only hardcode existing
15049   # directories.
15050   hardcode_action=unsupported
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15053 $as_echo "$hardcode_action" >&6; }
15054
15055 if test "$hardcode_action" = relink ||
15056    test "$inherit_rpath" = yes; then
15057   # Fast installation is not supported
15058   enable_fast_install=no
15059 elif test "$shlibpath_overrides_runpath" = yes ||
15060      test "$enable_shared" = no; then
15061   # Fast installation is not necessary
15062   enable_fast_install=needless
15063 fi
15064
15065
15066
15067
15068
15069
15070   if test "x$enable_dlopen" != xyes; then
15071   enable_dlopen=unknown
15072   enable_dlopen_self=unknown
15073   enable_dlopen_self_static=unknown
15074 else
15075   lt_cv_dlopen=no
15076   lt_cv_dlopen_libs=
15077
15078   case $host_os in
15079   beos*)
15080     lt_cv_dlopen="load_add_on"
15081     lt_cv_dlopen_libs=
15082     lt_cv_dlopen_self=yes
15083     ;;
15084
15085   mingw* | pw32* | cegcc*)
15086     lt_cv_dlopen="LoadLibrary"
15087     lt_cv_dlopen_libs=
15088     ;;
15089
15090   cygwin*)
15091     lt_cv_dlopen="dlopen"
15092     lt_cv_dlopen_libs=
15093     ;;
15094
15095   darwin*)
15096   # if libdl is installed we need to link against it
15097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15099 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15100   $as_echo_n "(cached) " >&6
15101 else
15102   ac_check_lib_save_LIBS=$LIBS
15103 LIBS="-ldl  $LIBS"
15104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h.  */
15106
15107 /* Override any GCC internal prototype to avoid an error.
15108    Use char because int might match the return type of a GCC
15109    builtin and then its argument prototype would still apply.  */
15110 #ifdef __cplusplus
15111 extern "C"
15112 #endif
15113 char dlopen ();
15114 int
15115 main ()
15116 {
15117 return dlopen ();
15118   ;
15119   return 0;
15120 }
15121 _ACEOF
15122 if ac_fn_c_try_link "$LINENO"; then :
15123   ac_cv_lib_dl_dlopen=yes
15124 else
15125   ac_cv_lib_dl_dlopen=no
15126 fi
15127 rm -f core conftest.err conftest.$ac_objext \
15128     conftest$ac_exeext conftest.$ac_ext
15129 LIBS=$ac_check_lib_save_LIBS
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15133 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15135 else
15136
15137     lt_cv_dlopen="dyld"
15138     lt_cv_dlopen_libs=
15139     lt_cv_dlopen_self=yes
15140
15141 fi
15142
15143     ;;
15144
15145   *)
15146     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15147 if test "x$ac_cv_func_shl_load" = x""yes; then :
15148   lt_cv_dlopen="shl_load"
15149 else
15150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15151 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15152 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15153   $as_echo_n "(cached) " >&6
15154 else
15155   ac_check_lib_save_LIBS=$LIBS
15156 LIBS="-ldld  $LIBS"
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h.  */
15159
15160 /* Override any GCC internal prototype to avoid an error.
15161    Use char because int might match the return type of a GCC
15162    builtin and then its argument prototype would still apply.  */
15163 #ifdef __cplusplus
15164 extern "C"
15165 #endif
15166 char shl_load ();
15167 int
15168 main ()
15169 {
15170 return shl_load ();
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 if ac_fn_c_try_link "$LINENO"; then :
15176   ac_cv_lib_dld_shl_load=yes
15177 else
15178   ac_cv_lib_dld_shl_load=no
15179 fi
15180 rm -f core conftest.err conftest.$ac_objext \
15181     conftest$ac_exeext conftest.$ac_ext
15182 LIBS=$ac_check_lib_save_LIBS
15183 fi
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15185 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15186 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15187   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15188 else
15189   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15190 if test "x$ac_cv_func_dlopen" = x""yes; then :
15191   lt_cv_dlopen="dlopen"
15192 else
15193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15196   $as_echo_n "(cached) " >&6
15197 else
15198   ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-ldl  $LIBS"
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h.  */
15202
15203 /* Override any GCC internal prototype to avoid an error.
15204    Use char because int might match the return type of a GCC
15205    builtin and then its argument prototype would still apply.  */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 char dlopen ();
15210 int
15211 main ()
15212 {
15213 return dlopen ();
15214   ;
15215   return 0;
15216 }
15217 _ACEOF
15218 if ac_fn_c_try_link "$LINENO"; then :
15219   ac_cv_lib_dl_dlopen=yes
15220 else
15221   ac_cv_lib_dl_dlopen=no
15222 fi
15223 rm -f core conftest.err conftest.$ac_objext \
15224     conftest$ac_exeext conftest.$ac_ext
15225 LIBS=$ac_check_lib_save_LIBS
15226 fi
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15229 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15231 else
15232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15233 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15234 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15235   $as_echo_n "(cached) " >&6
15236 else
15237   ac_check_lib_save_LIBS=$LIBS
15238 LIBS="-lsvld  $LIBS"
15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15240 /* end confdefs.h.  */
15241
15242 /* Override any GCC internal prototype to avoid an error.
15243    Use char because int might match the return type of a GCC
15244    builtin and then its argument prototype would still apply.  */
15245 #ifdef __cplusplus
15246 extern "C"
15247 #endif
15248 char dlopen ();
15249 int
15250 main ()
15251 {
15252 return dlopen ();
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 if ac_fn_c_try_link "$LINENO"; then :
15258   ac_cv_lib_svld_dlopen=yes
15259 else
15260   ac_cv_lib_svld_dlopen=no
15261 fi
15262 rm -f core conftest.err conftest.$ac_objext \
15263     conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_check_lib_save_LIBS
15265 fi
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15267 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15268 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15270 else
15271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15272 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15273 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15274   $as_echo_n "(cached) " >&6
15275 else
15276   ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-ldld  $LIBS"
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h.  */
15280
15281 /* Override any GCC internal prototype to avoid an error.
15282    Use char because int might match the return type of a GCC
15283    builtin and then its argument prototype would still apply.  */
15284 #ifdef __cplusplus
15285 extern "C"
15286 #endif
15287 char dld_link ();
15288 int
15289 main ()
15290 {
15291 return dld_link ();
15292   ;
15293   return 0;
15294 }
15295 _ACEOF
15296 if ac_fn_c_try_link "$LINENO"; then :
15297   ac_cv_lib_dld_dld_link=yes
15298 else
15299   ac_cv_lib_dld_dld_link=no
15300 fi
15301 rm -f core conftest.err conftest.$ac_objext \
15302     conftest$ac_exeext conftest.$ac_ext
15303 LIBS=$ac_check_lib_save_LIBS
15304 fi
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15307 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15308   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15309 fi
15310
15311
15312 fi
15313
15314
15315 fi
15316
15317
15318 fi
15319
15320
15321 fi
15322
15323
15324 fi
15325
15326     ;;
15327   esac
15328
15329   if test "x$lt_cv_dlopen" != xno; then
15330     enable_dlopen=yes
15331   else
15332     enable_dlopen=no
15333   fi
15334
15335   case $lt_cv_dlopen in
15336   dlopen)
15337     save_CPPFLAGS="$CPPFLAGS"
15338     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15339
15340     save_LDFLAGS="$LDFLAGS"
15341     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15342
15343     save_LIBS="$LIBS"
15344     LIBS="$lt_cv_dlopen_libs $LIBS"
15345
15346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15347 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15348 if test "${lt_cv_dlopen_self+set}" = set; then :
15349   $as_echo_n "(cached) " >&6
15350 else
15351           if test "$cross_compiling" = yes; then :
15352   lt_cv_dlopen_self=cross
15353 else
15354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15355   lt_status=$lt_dlunknown
15356   cat > conftest.$ac_ext <<_LT_EOF
15357 #line 15357 "configure"
15358 #include "confdefs.h"
15359
15360 #if HAVE_DLFCN_H
15361 #include <dlfcn.h>
15362 #endif
15363
15364 #include <stdio.h>
15365
15366 #ifdef RTLD_GLOBAL
15367 #  define LT_DLGLOBAL           RTLD_GLOBAL
15368 #else
15369 #  ifdef DL_GLOBAL
15370 #    define LT_DLGLOBAL         DL_GLOBAL
15371 #  else
15372 #    define LT_DLGLOBAL         0
15373 #  endif
15374 #endif
15375
15376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15377    find out it does not work in some platform. */
15378 #ifndef LT_DLLAZY_OR_NOW
15379 #  ifdef RTLD_LAZY
15380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15381 #  else
15382 #    ifdef DL_LAZY
15383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15384 #    else
15385 #      ifdef RTLD_NOW
15386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15387 #      else
15388 #        ifdef DL_NOW
15389 #          define LT_DLLAZY_OR_NOW      DL_NOW
15390 #        else
15391 #          define LT_DLLAZY_OR_NOW      0
15392 #        endif
15393 #      endif
15394 #    endif
15395 #  endif
15396 #endif
15397
15398 void fnord() { int i=42;}
15399 int main ()
15400 {
15401   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15402   int status = $lt_dlunknown;
15403
15404   if (self)
15405     {
15406       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15407       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15408       /* dlclose (self); */
15409     }
15410   else
15411     puts (dlerror ());
15412
15413   return status;
15414 }
15415 _LT_EOF
15416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15417   (eval $ac_link) 2>&5
15418   ac_status=$?
15419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15420   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15421     (./conftest; exit; ) >&5 2>/dev/null
15422     lt_status=$?
15423     case x$lt_status in
15424       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15425       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15426       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15427     esac
15428   else :
15429     # compilation failed
15430     lt_cv_dlopen_self=no
15431   fi
15432 fi
15433 rm -fr conftest*
15434
15435
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15438 $as_echo "$lt_cv_dlopen_self" >&6; }
15439
15440     if test "x$lt_cv_dlopen_self" = xyes; then
15441       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15442       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15443 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15444 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15445   $as_echo_n "(cached) " >&6
15446 else
15447           if test "$cross_compiling" = yes; then :
15448   lt_cv_dlopen_self_static=cross
15449 else
15450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15451   lt_status=$lt_dlunknown
15452   cat > conftest.$ac_ext <<_LT_EOF
15453 #line 15453 "configure"
15454 #include "confdefs.h"
15455
15456 #if HAVE_DLFCN_H
15457 #include <dlfcn.h>
15458 #endif
15459
15460 #include <stdio.h>
15461
15462 #ifdef RTLD_GLOBAL
15463 #  define LT_DLGLOBAL           RTLD_GLOBAL
15464 #else
15465 #  ifdef DL_GLOBAL
15466 #    define LT_DLGLOBAL         DL_GLOBAL
15467 #  else
15468 #    define LT_DLGLOBAL         0
15469 #  endif
15470 #endif
15471
15472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15473    find out it does not work in some platform. */
15474 #ifndef LT_DLLAZY_OR_NOW
15475 #  ifdef RTLD_LAZY
15476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15477 #  else
15478 #    ifdef DL_LAZY
15479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15480 #    else
15481 #      ifdef RTLD_NOW
15482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15483 #      else
15484 #        ifdef DL_NOW
15485 #          define LT_DLLAZY_OR_NOW      DL_NOW
15486 #        else
15487 #          define LT_DLLAZY_OR_NOW      0
15488 #        endif
15489 #      endif
15490 #    endif
15491 #  endif
15492 #endif
15493
15494 void fnord() { int i=42;}
15495 int main ()
15496 {
15497   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15498   int status = $lt_dlunknown;
15499
15500   if (self)
15501     {
15502       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15503       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15504       /* dlclose (self); */
15505     }
15506   else
15507     puts (dlerror ());
15508
15509   return status;
15510 }
15511 _LT_EOF
15512   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15513   (eval $ac_link) 2>&5
15514   ac_status=$?
15515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15517     (./conftest; exit; ) >&5 2>/dev/null
15518     lt_status=$?
15519     case x$lt_status in
15520       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15521       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15522       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15523     esac
15524   else :
15525     # compilation failed
15526     lt_cv_dlopen_self_static=no
15527   fi
15528 fi
15529 rm -fr conftest*
15530
15531
15532 fi
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15534 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15535     fi
15536
15537     CPPFLAGS="$save_CPPFLAGS"
15538     LDFLAGS="$save_LDFLAGS"
15539     LIBS="$save_LIBS"
15540     ;;
15541   esac
15542
15543   case $lt_cv_dlopen_self in
15544   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15545   *) enable_dlopen_self=unknown ;;
15546   esac
15547
15548   case $lt_cv_dlopen_self_static in
15549   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15550   *) enable_dlopen_self_static=unknown ;;
15551   esac
15552 fi
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570 striplib=
15571 old_striplib=
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15573 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15574 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15575   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15576   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15578 $as_echo "yes" >&6; }
15579 else
15580 # FIXME - insert some real tests, host_os isn't really good enough
15581   case $host_os in
15582   darwin*)
15583     if test -n "$STRIP" ; then
15584       striplib="$STRIP -x"
15585       old_striplib="$STRIP -S"
15586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15587 $as_echo "yes" >&6; }
15588     else
15589       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15591     fi
15592     ;;
15593   *)
15594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15595 $as_echo "no" >&6; }
15596     ;;
15597   esac
15598 fi
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611   # Report which library types will actually be built
15612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15613 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15615 $as_echo "$can_build_shared" >&6; }
15616
15617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15618 $as_echo_n "checking whether to build shared libraries... " >&6; }
15619   test "$can_build_shared" = "no" && enable_shared=no
15620
15621   # On AIX, shared libraries and static libraries use the same namespace, and
15622   # are all built from PIC.
15623   case $host_os in
15624   aix3*)
15625     test "$enable_shared" = yes && enable_static=no
15626     if test -n "$RANLIB"; then
15627       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15628       postinstall_cmds='$RANLIB $lib'
15629     fi
15630     ;;
15631
15632   aix[4-9]*)
15633     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15634       test "$enable_shared" = yes && enable_static=no
15635     fi
15636     ;;
15637   esac
15638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15639 $as_echo "$enable_shared" >&6; }
15640
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15642 $as_echo_n "checking whether to build static libraries... " >&6; }
15643   # Make sure either enable_shared or enable_static is yes.
15644   test "$enable_shared" = yes || enable_static=yes
15645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15646 $as_echo "$enable_static" >&6; }
15647
15648
15649
15650
15651 fi
15652 ac_ext=c
15653 ac_cpp='$CPP $CPPFLAGS'
15654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15657
15658 CC="$lt_save_CC"
15659
15660
15661 ac_ext=cpp
15662 ac_cpp='$CXXCPP $CPPFLAGS'
15663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15666
15667 archive_cmds_need_lc_CXX=no
15668 allow_undefined_flag_CXX=
15669 always_export_symbols_CXX=no
15670 archive_expsym_cmds_CXX=
15671 compiler_needs_object_CXX=no
15672 export_dynamic_flag_spec_CXX=
15673 hardcode_direct_CXX=no
15674 hardcode_direct_absolute_CXX=no
15675 hardcode_libdir_flag_spec_CXX=
15676 hardcode_libdir_flag_spec_ld_CXX=
15677 hardcode_libdir_separator_CXX=
15678 hardcode_minus_L_CXX=no
15679 hardcode_shlibpath_var_CXX=unsupported
15680 hardcode_automatic_CXX=no
15681 inherit_rpath_CXX=no
15682 module_cmds_CXX=
15683 module_expsym_cmds_CXX=
15684 link_all_deplibs_CXX=unknown
15685 old_archive_cmds_CXX=$old_archive_cmds
15686 no_undefined_flag_CXX=
15687 whole_archive_flag_spec_CXX=
15688 enable_shared_with_static_runtimes_CXX=no
15689
15690 # Source file extension for C++ test sources.
15691 ac_ext=cpp
15692
15693 # Object file extension for compiled C++ test sources.
15694 objext=o
15695 objext_CXX=$objext
15696
15697 # No sense in running all these tests if we already determined that
15698 # the CXX compiler isn't working.  Some variables (like enable_shared)
15699 # are currently assumed to apply to all compilers on this platform,
15700 # and will be corrupted by setting them based on a non-working compiler.
15701 if test "$_lt_caught_CXX_error" != yes; then
15702   # Code to be used in simple compile tests
15703   lt_simple_compile_test_code="int some_variable = 0;"
15704
15705   # Code to be used in simple link tests
15706   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15707
15708   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15709
15710
15711
15712
15713
15714
15715 # If no C compiler was specified, use CC.
15716 LTCC=${LTCC-"$CC"}
15717
15718 # If no C compiler flags were specified, use CFLAGS.
15719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15720
15721 # Allow CC to be a program name with arguments.
15722 compiler=$CC
15723
15724
15725   # save warnings/boilerplate of simple test code
15726   ac_outfile=conftest.$ac_objext
15727 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15728 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15729 _lt_compiler_boilerplate=`cat conftest.err`
15730 $RM conftest*
15731
15732   ac_outfile=conftest.$ac_objext
15733 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15734 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15735 _lt_linker_boilerplate=`cat conftest.err`
15736 $RM -r conftest*
15737
15738
15739   # Allow CC to be a program name with arguments.
15740   lt_save_CC=$CC
15741   lt_save_LD=$LD
15742   lt_save_GCC=$GCC
15743   GCC=$GXX
15744   lt_save_with_gnu_ld=$with_gnu_ld
15745   lt_save_path_LD=$lt_cv_path_LD
15746   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15747     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15748   else
15749     $as_unset lt_cv_prog_gnu_ld
15750   fi
15751   if test -n "${lt_cv_path_LDCXX+set}"; then
15752     lt_cv_path_LD=$lt_cv_path_LDCXX
15753   else
15754     $as_unset lt_cv_path_LD
15755   fi
15756   test -z "${LDCXX+set}" || LD=$LDCXX
15757   CC=${CXX-"c++"}
15758   compiler=$CC
15759   compiler_CXX=$CC
15760   for cc_temp in $compiler""; do
15761   case $cc_temp in
15762     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15763     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15764     \-*) ;;
15765     *) break;;
15766   esac
15767 done
15768 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15769
15770
15771   if test -n "$compiler"; then
15772     # We don't want -fno-exception when compiling C++ code, so set the
15773     # no_builtin_flag separately
15774     if test "$GXX" = yes; then
15775       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15776     else
15777       lt_prog_compiler_no_builtin_flag_CXX=
15778     fi
15779
15780     if test "$GXX" = yes; then
15781       # Set up default GNU C++ configuration
15782
15783
15784
15785 # Check whether --with-gnu-ld was given.
15786 if test "${with_gnu_ld+set}" = set; then :
15787   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15788 else
15789   with_gnu_ld=no
15790 fi
15791
15792 ac_prog=ld
15793 if test "$GCC" = yes; then
15794   # Check if gcc -print-prog-name=ld gives a path.
15795   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15796 $as_echo_n "checking for ld used by $CC... " >&6; }
15797   case $host in
15798   *-*-mingw*)
15799     # gcc leaves a trailing carriage return which upsets mingw
15800     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15801   *)
15802     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15803   esac
15804   case $ac_prog in
15805     # Accept absolute paths.
15806     [\\/]* | ?:[\\/]*)
15807       re_direlt='/[^/][^/]*/\.\./'
15808       # Canonicalize the pathname of ld
15809       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15810       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15811         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15812       done
15813       test -z "$LD" && LD="$ac_prog"
15814       ;;
15815   "")
15816     # If it fails, then pretend we aren't using GCC.
15817     ac_prog=ld
15818     ;;
15819   *)
15820     # If it is relative, then search for the first ld in PATH.
15821     with_gnu_ld=unknown
15822     ;;
15823   esac
15824 elif test "$with_gnu_ld" = yes; then
15825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15826 $as_echo_n "checking for GNU ld... " >&6; }
15827 else
15828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15829 $as_echo_n "checking for non-GNU ld... " >&6; }
15830 fi
15831 if test "${lt_cv_path_LD+set}" = set; then :
15832   $as_echo_n "(cached) " >&6
15833 else
15834   if test -z "$LD"; then
15835   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15836   for ac_dir in $PATH; do
15837     IFS="$lt_save_ifs"
15838     test -z "$ac_dir" && ac_dir=.
15839     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15840       lt_cv_path_LD="$ac_dir/$ac_prog"
15841       # Check to see if the program is GNU ld.  I'd rather use --version,
15842       # but apparently some variants of GNU ld only accept -v.
15843       # Break only if it was the GNU/non-GNU ld that we prefer.
15844       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15845       *GNU* | *'with BFD'*)
15846         test "$with_gnu_ld" != no && break
15847         ;;
15848       *)
15849         test "$with_gnu_ld" != yes && break
15850         ;;
15851       esac
15852     fi
15853   done
15854   IFS="$lt_save_ifs"
15855 else
15856   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15857 fi
15858 fi
15859
15860 LD="$lt_cv_path_LD"
15861 if test -n "$LD"; then
15862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15863 $as_echo "$LD" >&6; }
15864 else
15865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866 $as_echo "no" >&6; }
15867 fi
15868 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15870 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15871 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15872   $as_echo_n "(cached) " >&6
15873 else
15874   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15875 case `$LD -v 2>&1 </dev/null` in
15876 *GNU* | *'with BFD'*)
15877   lt_cv_prog_gnu_ld=yes
15878   ;;
15879 *)
15880   lt_cv_prog_gnu_ld=no
15881   ;;
15882 esac
15883 fi
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15885 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15886 with_gnu_ld=$lt_cv_prog_gnu_ld
15887
15888
15889
15890
15891
15892
15893
15894       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15895       # archiving commands below assume that GNU ld is being used.
15896       if test "$with_gnu_ld" = yes; then
15897         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15899
15900         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15901         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15902
15903         # If archive_cmds runs LD, not CC, wlarc should be empty
15904         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15905         #     investigate it a little bit more. (MM)
15906         wlarc='${wl}'
15907
15908         # ancient GNU ld didn't support --whole-archive et. al.
15909         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15910           $GREP 'no-whole-archive' > /dev/null; then
15911           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15912         else
15913           whole_archive_flag_spec_CXX=
15914         fi
15915       else
15916         with_gnu_ld=no
15917         wlarc=
15918
15919         # A generic and very simple default shared library creation
15920         # command for GNU C++ for the case where it uses the native
15921         # linker, instead of GNU ld.  If possible, this setting should
15922         # overridden to take advantage of the native linker features on
15923         # the platform it is being used on.
15924         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15925       fi
15926
15927       # Commands to make compiler produce verbose output that lists
15928       # what "hidden" libraries, object files and flags are used when
15929       # linking a shared library.
15930       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15931
15932     else
15933       GXX=no
15934       with_gnu_ld=no
15935       wlarc=
15936     fi
15937
15938     # PORTME: fill in a description of your system's C++ link characteristics
15939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15941     ld_shlibs_CXX=yes
15942     case $host_os in
15943       aix3*)
15944         # FIXME: insert proper C++ library support
15945         ld_shlibs_CXX=no
15946         ;;
15947       aix[4-9]*)
15948         if test "$host_cpu" = ia64; then
15949           # On IA64, the linker does run time linking by default, so we don't
15950           # have to do anything special.
15951           aix_use_runtimelinking=no
15952           exp_sym_flag='-Bexport'
15953           no_entry_flag=""
15954         else
15955           aix_use_runtimelinking=no
15956
15957           # Test if we are trying to use run time linking or normal
15958           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15959           # need to do runtime linking.
15960           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15961             for ld_flag in $LDFLAGS; do
15962               case $ld_flag in
15963               *-brtl*)
15964                 aix_use_runtimelinking=yes
15965                 break
15966                 ;;
15967               esac
15968             done
15969             ;;
15970           esac
15971
15972           exp_sym_flag='-bexport'
15973           no_entry_flag='-bnoentry'
15974         fi
15975
15976         # When large executables or shared objects are built, AIX ld can
15977         # have problems creating the table of contents.  If linking a library
15978         # or program results in "error TOC overflow" add -mminimal-toc to
15979         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15980         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15981
15982         archive_cmds_CXX=''
15983         hardcode_direct_CXX=yes
15984         hardcode_direct_absolute_CXX=yes
15985         hardcode_libdir_separator_CXX=':'
15986         link_all_deplibs_CXX=yes
15987         file_list_spec_CXX='${wl}-f,'
15988
15989         if test "$GXX" = yes; then
15990           case $host_os in aix4.[012]|aix4.[012].*)
15991           # We only want to do this on AIX 4.2 and lower, the check
15992           # below for broken collect2 doesn't work under 4.3+
15993           collect2name=`${CC} -print-prog-name=collect2`
15994           if test -f "$collect2name" &&
15995              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15996           then
15997             # We have reworked collect2
15998             :
15999           else
16000             # We have old collect2
16001             hardcode_direct_CXX=unsupported
16002             # It fails to find uninstalled libraries when the uninstalled
16003             # path is not listed in the libpath.  Setting hardcode_minus_L
16004             # to unsupported forces relinking
16005             hardcode_minus_L_CXX=yes
16006             hardcode_libdir_flag_spec_CXX='-L$libdir'
16007             hardcode_libdir_separator_CXX=
16008           fi
16009           esac
16010           shared_flag='-shared'
16011           if test "$aix_use_runtimelinking" = yes; then
16012             shared_flag="$shared_flag "'${wl}-G'
16013           fi
16014         else
16015           # not using gcc
16016           if test "$host_cpu" = ia64; then
16017           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16018           # chokes on -Wl,-G. The following line is correct:
16019           shared_flag='-G'
16020           else
16021             if test "$aix_use_runtimelinking" = yes; then
16022               shared_flag='${wl}-G'
16023             else
16024               shared_flag='${wl}-bM:SRE'
16025             fi
16026           fi
16027         fi
16028
16029         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16030         # It seems that -bexpall does not export symbols beginning with
16031         # underscore (_), so it is better to generate a list of symbols to
16032         # export.
16033         always_export_symbols_CXX=yes
16034         if test "$aix_use_runtimelinking" = yes; then
16035           # Warning - without using the other runtime loading flags (-brtl),
16036           # -berok will link without error, but may produce a broken library.
16037           allow_undefined_flag_CXX='-berok'
16038           # Determine the default libpath from the value encoded in an empty
16039           # executable.
16040           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h.  */
16042
16043 int
16044 main ()
16045 {
16046
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_cxx_try_link "$LINENO"; then :
16052
16053 lt_aix_libpath_sed='
16054     /Import File Strings/,/^$/ {
16055         /^0/ {
16056             s/^0  *\(.*\)$/\1/
16057             p
16058         }
16059     }'
16060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16061 # Check for a 64-bit object if we didn't find anything.
16062 if test -z "$aix_libpath"; then
16063   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16064 fi
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext \
16067     conftest$ac_exeext conftest.$ac_ext
16068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16069
16070           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16071
16072           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16073         else
16074           if test "$host_cpu" = ia64; then
16075             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16076             allow_undefined_flag_CXX="-z nodefs"
16077             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"
16078           else
16079             # Determine the default libpath from the value encoded in an
16080             # empty executable.
16081             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h.  */
16083
16084 int
16085 main ()
16086 {
16087
16088   ;
16089   return 0;
16090 }
16091 _ACEOF
16092 if ac_fn_cxx_try_link "$LINENO"; then :
16093
16094 lt_aix_libpath_sed='
16095     /Import File Strings/,/^$/ {
16096         /^0/ {
16097             s/^0  *\(.*\)$/\1/
16098             p
16099         }
16100     }'
16101 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16102 # Check for a 64-bit object if we didn't find anything.
16103 if test -z "$aix_libpath"; then
16104   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16105 fi
16106 fi
16107 rm -f core conftest.err conftest.$ac_objext \
16108     conftest$ac_exeext conftest.$ac_ext
16109 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16110
16111             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16112             # Warning - without using the other run time loading flags,
16113             # -berok will link without error, but may produce a broken library.
16114             no_undefined_flag_CXX=' ${wl}-bernotok'
16115             allow_undefined_flag_CXX=' ${wl}-berok'
16116             # Exported symbols can be pulled into shared objects from archives
16117             whole_archive_flag_spec_CXX='$convenience'
16118             archive_cmds_need_lc_CXX=yes
16119             # This is similar to how AIX traditionally builds its shared
16120             # libraries.
16121             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'
16122           fi
16123         fi
16124         ;;
16125
16126       beos*)
16127         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16128           allow_undefined_flag_CXX=unsupported
16129           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16130           # support --undefined.  This deserves some investigation.  FIXME
16131           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16132         else
16133           ld_shlibs_CXX=no
16134         fi
16135         ;;
16136
16137       chorus*)
16138         case $cc_basename in
16139           *)
16140           # FIXME: insert proper C++ library support
16141           ld_shlibs_CXX=no
16142           ;;
16143         esac
16144         ;;
16145
16146       cygwin* | mingw* | pw32* | cegcc*)
16147         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16148         # as there is no search path for DLLs.
16149         hardcode_libdir_flag_spec_CXX='-L$libdir'
16150         allow_undefined_flag_CXX=unsupported
16151         always_export_symbols_CXX=no
16152         enable_shared_with_static_runtimes_CXX=yes
16153
16154         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16155           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'
16156           # If the export-symbols file already is a .def file (1st line
16157           # is EXPORTS), use it as is; otherwise, prepend...
16158           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16159             cp $export_symbols $output_objdir/$soname.def;
16160           else
16161             echo EXPORTS > $output_objdir/$soname.def;
16162             cat $export_symbols >> $output_objdir/$soname.def;
16163           fi~
16164           $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'
16165         else
16166           ld_shlibs_CXX=no
16167         fi
16168         ;;
16169       darwin* | rhapsody*)
16170
16171
16172   archive_cmds_need_lc_CXX=no
16173   hardcode_direct_CXX=no
16174   hardcode_automatic_CXX=yes
16175   hardcode_shlibpath_var_CXX=unsupported
16176   whole_archive_flag_spec_CXX=''
16177   link_all_deplibs_CXX=yes
16178   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16179   case $cc_basename in
16180      ifort*) _lt_dar_can_shared=yes ;;
16181      *) _lt_dar_can_shared=$GCC ;;
16182   esac
16183   if test "$_lt_dar_can_shared" = "yes"; then
16184     output_verbose_link_cmd=echo
16185     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}"
16186     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16187     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}"
16188     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}"
16189        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16190       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}"
16191       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}"
16192     fi
16193
16194   else
16195   ld_shlibs_CXX=no
16196   fi
16197
16198         ;;
16199
16200       dgux*)
16201         case $cc_basename in
16202           ec++*)
16203             # FIXME: insert proper C++ library support
16204             ld_shlibs_CXX=no
16205             ;;
16206           ghcx*)
16207             # Green Hills C++ Compiler
16208             # FIXME: insert proper C++ library support
16209             ld_shlibs_CXX=no
16210             ;;
16211           *)
16212             # FIXME: insert proper C++ library support
16213             ld_shlibs_CXX=no
16214             ;;
16215         esac
16216         ;;
16217
16218       freebsd[12]*)
16219         # C++ shared libraries reported to be fairly broken before
16220         # switch to ELF
16221         ld_shlibs_CXX=no
16222         ;;
16223
16224       freebsd-elf*)
16225         archive_cmds_need_lc_CXX=no
16226         ;;
16227
16228       freebsd* | dragonfly*)
16229         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16230         # conventions
16231         ld_shlibs_CXX=yes
16232         ;;
16233
16234       gnu*)
16235         ;;
16236
16237       hpux9*)
16238         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16239         hardcode_libdir_separator_CXX=:
16240         export_dynamic_flag_spec_CXX='${wl}-E'
16241         hardcode_direct_CXX=yes
16242         hardcode_minus_L_CXX=yes # Not in the search PATH,
16243                                              # but as the default
16244                                              # location of the library.
16245
16246         case $cc_basename in
16247           CC*)
16248             # FIXME: insert proper C++ library support
16249             ld_shlibs_CXX=no
16250             ;;
16251           aCC*)
16252             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'
16253             # Commands to make compiler produce verbose output that lists
16254             # what "hidden" libraries, object files and flags are used when
16255             # linking a shared library.
16256             #
16257             # There doesn't appear to be a way to prevent this compiler from
16258             # explicitly linking system object files so we need to strip them
16259             # from the output so that they don't get included in the library
16260             # dependencies.
16261             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; $ECHO "X$list" | $Xsed'
16262             ;;
16263           *)
16264             if test "$GXX" = yes; then
16265               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16266             else
16267               # FIXME: insert proper C++ library support
16268               ld_shlibs_CXX=no
16269             fi
16270             ;;
16271         esac
16272         ;;
16273
16274       hpux10*|hpux11*)
16275         if test $with_gnu_ld = no; then
16276           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16277           hardcode_libdir_separator_CXX=:
16278
16279           case $host_cpu in
16280             hppa*64*|ia64*)
16281               ;;
16282             *)
16283               export_dynamic_flag_spec_CXX='${wl}-E'
16284               ;;
16285           esac
16286         fi
16287         case $host_cpu in
16288           hppa*64*|ia64*)
16289             hardcode_direct_CXX=no
16290             hardcode_shlibpath_var_CXX=no
16291             ;;
16292           *)
16293             hardcode_direct_CXX=yes
16294             hardcode_direct_absolute_CXX=yes
16295             hardcode_minus_L_CXX=yes # Not in the search PATH,
16296                                                  # but as the default
16297                                                  # location of the library.
16298             ;;
16299         esac
16300
16301         case $cc_basename in
16302           CC*)
16303             # FIXME: insert proper C++ library support
16304             ld_shlibs_CXX=no
16305             ;;
16306           aCC*)
16307             case $host_cpu in
16308               hppa*64*)
16309                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16310                 ;;
16311               ia64*)
16312                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16313                 ;;
16314               *)
16315                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16316                 ;;
16317             esac
16318             # Commands to make compiler produce verbose output that lists
16319             # what "hidden" libraries, object files and flags are used when
16320             # linking a shared library.
16321             #
16322             # There doesn't appear to be a way to prevent this compiler from
16323             # explicitly linking system object files so we need to strip them
16324             # from the output so that they don't get included in the library
16325             # dependencies.
16326             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; $ECHO "X$list" | $Xsed'
16327             ;;
16328           *)
16329             if test "$GXX" = yes; then
16330               if test $with_gnu_ld = no; then
16331                 case $host_cpu in
16332                   hppa*64*)
16333                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16334                     ;;
16335                   ia64*)
16336                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16337                     ;;
16338                   *)
16339                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16340                     ;;
16341                 esac
16342               fi
16343             else
16344               # FIXME: insert proper C++ library support
16345               ld_shlibs_CXX=no
16346             fi
16347             ;;
16348         esac
16349         ;;
16350
16351       interix[3-9]*)
16352         hardcode_direct_CXX=no
16353         hardcode_shlibpath_var_CXX=no
16354         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16355         export_dynamic_flag_spec_CXX='${wl}-E'
16356         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16357         # Instead, shared libraries are loaded at an image base (0x10000000 by
16358         # default) and relocated if they conflict, which is a slow very memory
16359         # consuming and fragmenting process.  To avoid this, we pick a random,
16360         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16361         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16362         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'
16363         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'
16364         ;;
16365       irix5* | irix6*)
16366         case $cc_basename in
16367           CC*)
16368             # SGI C++
16369             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16370
16371             # Archives containing C++ object files must be created using
16372             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16373             # necessary to make sure instantiated templates are included
16374             # in the archive.
16375             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16376             ;;
16377           *)
16378             if test "$GXX" = yes; then
16379               if test "$with_gnu_ld" = no; then
16380                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16381               else
16382                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
16383               fi
16384             fi
16385             link_all_deplibs_CXX=yes
16386             ;;
16387         esac
16388         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16389         hardcode_libdir_separator_CXX=:
16390         inherit_rpath_CXX=yes
16391         ;;
16392
16393       linux* | k*bsd*-gnu)
16394         case $cc_basename in
16395           KCC*)
16396             # Kuck and Associates, Inc. (KAI) C++ Compiler
16397
16398             # KCC will only create a shared library if the output file
16399             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16400             # to its proper name (with version) after linking.
16401             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'
16402             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'
16403             # Commands to make compiler produce verbose output that lists
16404             # what "hidden" libraries, object files and flags are used when
16405             # linking a shared library.
16406             #
16407             # There doesn't appear to be a way to prevent this compiler from
16408             # explicitly linking system object files so we need to strip them
16409             # from the output so that they don't get included in the library
16410             # dependencies.
16411             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; $ECHO "X$list" | $Xsed'
16412
16413             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16414             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16415
16416             # Archives containing C++ object files must be created using
16417             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16418             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16419             ;;
16420           icpc* | ecpc* )
16421             # Intel C++
16422             with_gnu_ld=yes
16423             # version 8.0 and above of icpc choke on multiply defined symbols
16424             # if we add $predep_objects and $postdep_objects, however 7.1 and
16425             # earlier do not add the objects themselves.
16426             case `$CC -V 2>&1` in
16427               *"Version 7."*)
16428                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16429                 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'
16430                 ;;
16431               *)  # Version 8.0 or newer
16432                 tmp_idyn=
16433                 case $host_cpu in
16434                   ia64*) tmp_idyn=' -i_dynamic';;
16435                 esac
16436                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16437                 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'
16438                 ;;
16439             esac
16440             archive_cmds_need_lc_CXX=no
16441             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16442             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16443             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16444             ;;
16445           pgCC* | pgcpp*)
16446             # Portland Group C++ compiler
16447             case `$CC -V` in
16448             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16449               prelink_cmds_CXX='tpldir=Template.dir~
16450                 rm -rf $tpldir~
16451                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16452                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16453               old_archive_cmds_CXX='tpldir=Template.dir~
16454                 rm -rf $tpldir~
16455                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16456                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16457                 $RANLIB $oldlib'
16458               archive_cmds_CXX='tpldir=Template.dir~
16459                 rm -rf $tpldir~
16460                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16461                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16462               archive_expsym_cmds_CXX='tpldir=Template.dir~
16463                 rm -rf $tpldir~
16464                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16465                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16466               ;;
16467             *) # Version 6 will use weak symbols
16468               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16469               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'
16470               ;;
16471             esac
16472
16473             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16474             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16475             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16476             ;;
16477           cxx*)
16478             # Compaq C++
16479             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16480             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'
16481
16482             runpath_var=LD_RUN_PATH
16483             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16484             hardcode_libdir_separator_CXX=:
16485
16486             # Commands to make compiler produce verbose output that lists
16487             # what "hidden" libraries, object files and flags are used when
16488             # linking a shared library.
16489             #
16490             # There doesn't appear to be a way to prevent this compiler from
16491             # explicitly linking system object files so we need to strip them
16492             # from the output so that they don't get included in the library
16493             # dependencies.
16494             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16495             ;;
16496           xl*)
16497             # IBM XL 8.0 on PPC, with GNU ld
16498             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16499             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16500             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16501             if test "x$supports_anon_versioning" = xyes; then
16502               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16503                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16504                 echo "local: *; };" >> $output_objdir/$libname.ver~
16505                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16506             fi
16507             ;;
16508           *)
16509             case `$CC -V 2>&1 | sed 5q` in
16510             *Sun\ C*)
16511               # Sun C++ 5.9
16512               no_undefined_flag_CXX=' -zdefs'
16513               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16514               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'
16515               hardcode_libdir_flag_spec_CXX='-R$libdir'
16516               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16517               compiler_needs_object_CXX=yes
16518
16519               # Not sure whether something based on
16520               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16521               # would be better.
16522               output_verbose_link_cmd='echo'
16523
16524               # Archives containing C++ object files must be created using
16525               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16526               # necessary to make sure instantiated templates are included
16527               # in the archive.
16528               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16529               ;;
16530             esac
16531             ;;
16532         esac
16533         ;;
16534
16535       lynxos*)
16536         # FIXME: insert proper C++ library support
16537         ld_shlibs_CXX=no
16538         ;;
16539
16540       m88k*)
16541         # FIXME: insert proper C++ library support
16542         ld_shlibs_CXX=no
16543         ;;
16544
16545       mvs*)
16546         case $cc_basename in
16547           cxx*)
16548             # FIXME: insert proper C++ library support
16549             ld_shlibs_CXX=no
16550             ;;
16551           *)
16552             # FIXME: insert proper C++ library support
16553             ld_shlibs_CXX=no
16554             ;;
16555         esac
16556         ;;
16557
16558       netbsd*)
16559         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16560           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16561           wlarc=
16562           hardcode_libdir_flag_spec_CXX='-R$libdir'
16563           hardcode_direct_CXX=yes
16564           hardcode_shlibpath_var_CXX=no
16565         fi
16566         # Workaround some broken pre-1.5 toolchains
16567         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16568         ;;
16569
16570       *nto* | *qnx*)
16571         ld_shlibs_CXX=yes
16572         ;;
16573
16574       openbsd2*)
16575         # C++ shared libraries are fairly broken
16576         ld_shlibs_CXX=no
16577         ;;
16578
16579       openbsd*)
16580         if test -f /usr/libexec/ld.so; then
16581           hardcode_direct_CXX=yes
16582           hardcode_shlibpath_var_CXX=no
16583           hardcode_direct_absolute_CXX=yes
16584           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16585           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16586           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16587             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16588             export_dynamic_flag_spec_CXX='${wl}-E'
16589             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16590           fi
16591           output_verbose_link_cmd=echo
16592         else
16593           ld_shlibs_CXX=no
16594         fi
16595         ;;
16596
16597       osf3* | osf4* | osf5*)
16598         case $cc_basename in
16599           KCC*)
16600             # Kuck and Associates, Inc. (KAI) C++ Compiler
16601
16602             # KCC will only create a shared library if the output file
16603             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16604             # to its proper name (with version) after linking.
16605             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'
16606
16607             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16608             hardcode_libdir_separator_CXX=:
16609
16610             # Archives containing C++ object files must be created using
16611             # the KAI C++ compiler.
16612             case $host in
16613               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16614               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16615             esac
16616             ;;
16617           RCC*)
16618             # Rational C++ 2.4.1
16619             # FIXME: insert proper C++ library support
16620             ld_shlibs_CXX=no
16621             ;;
16622           cxx*)
16623             case $host in
16624               osf3*)
16625                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16626                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16627                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16628                 ;;
16629               *)
16630                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16631                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
16632                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16633                   echo "-hidden">> $lib.exp~
16634                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
16635                   $RM $lib.exp'
16636                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16637                 ;;
16638             esac
16639
16640             hardcode_libdir_separator_CXX=:
16641
16642             # Commands to make compiler produce verbose output that lists
16643             # what "hidden" libraries, object files and flags are used when
16644             # linking a shared library.
16645             #
16646             # There doesn't appear to be a way to prevent this compiler from
16647             # explicitly linking system object files so we need to strip them
16648             # from the output so that they don't get included in the library
16649             # dependencies.
16650             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
16651             ;;
16652           *)
16653             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16654               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16655               case $host in
16656                 osf3*)
16657                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16658                   ;;
16659                 *)
16660                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16661                   ;;
16662               esac
16663
16664               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16665               hardcode_libdir_separator_CXX=:
16666
16667               # Commands to make compiler produce verbose output that lists
16668               # what "hidden" libraries, object files and flags are used when
16669               # linking a shared library.
16670               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16671
16672             else
16673               # FIXME: insert proper C++ library support
16674               ld_shlibs_CXX=no
16675             fi
16676             ;;
16677         esac
16678         ;;
16679
16680       psos*)
16681         # FIXME: insert proper C++ library support
16682         ld_shlibs_CXX=no
16683         ;;
16684
16685       sunos4*)
16686         case $cc_basename in
16687           CC*)
16688             # Sun C++ 4.x
16689             # FIXME: insert proper C++ library support
16690             ld_shlibs_CXX=no
16691             ;;
16692           lcc*)
16693             # Lucid
16694             # FIXME: insert proper C++ library support
16695             ld_shlibs_CXX=no
16696             ;;
16697           *)
16698             # FIXME: insert proper C++ library support
16699             ld_shlibs_CXX=no
16700             ;;
16701         esac
16702         ;;
16703
16704       solaris*)
16705         case $cc_basename in
16706           CC*)
16707             # Sun C++ 4.2, 5.x and Centerline C++
16708             archive_cmds_need_lc_CXX=yes
16709             no_undefined_flag_CXX=' -zdefs'
16710             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16711             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16712               $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'
16713
16714             hardcode_libdir_flag_spec_CXX='-R$libdir'
16715             hardcode_shlibpath_var_CXX=no
16716             case $host_os in
16717               solaris2.[0-5] | solaris2.[0-5].*) ;;
16718               *)
16719                 # The compiler driver will combine and reorder linker options,
16720                 # but understands `-z linker_flag'.
16721                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16722                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16723                 ;;
16724             esac
16725             link_all_deplibs_CXX=yes
16726
16727             output_verbose_link_cmd='echo'
16728
16729             # Archives containing C++ object files must be created using
16730             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16731             # necessary to make sure instantiated templates are included
16732             # in the archive.
16733             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16734             ;;
16735           gcx*)
16736             # Green Hills C++ Compiler
16737             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16738
16739             # The C++ compiler must be used to create the archive.
16740             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16741             ;;
16742           *)
16743             # GNU C++ compiler with Solaris linker
16744             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16745               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16746               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16747                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16748                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16749                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16750
16751                 # Commands to make compiler produce verbose output that lists
16752                 # what "hidden" libraries, object files and flags are used when
16753                 # linking a shared library.
16754                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16755               else
16756                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16757                 # platform.
16758                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16759                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16760                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16761
16762                 # Commands to make compiler produce verbose output that lists
16763                 # what "hidden" libraries, object files and flags are used when
16764                 # linking a shared library.
16765                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16766               fi
16767
16768               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16769               case $host_os in
16770                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16771                 *)
16772                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16773                   ;;
16774               esac
16775             fi
16776             ;;
16777         esac
16778         ;;
16779
16780     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16781       no_undefined_flag_CXX='${wl}-z,text'
16782       archive_cmds_need_lc_CXX=no
16783       hardcode_shlibpath_var_CXX=no
16784       runpath_var='LD_RUN_PATH'
16785
16786       case $cc_basename in
16787         CC*)
16788           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16789           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790           ;;
16791         *)
16792           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16794           ;;
16795       esac
16796       ;;
16797
16798       sysv5* | sco3.2v5* | sco5v6*)
16799         # Note: We can NOT use -z defs as we might desire, because we do not
16800         # link with -lc, and that would cause any symbols used from libc to
16801         # always be unresolved, which means just about no library would
16802         # ever link correctly.  If we're not using GNU ld we use -z text
16803         # though, which does catch some bad symbols but isn't as heavy-handed
16804         # as -z defs.
16805         no_undefined_flag_CXX='${wl}-z,text'
16806         allow_undefined_flag_CXX='${wl}-z,nodefs'
16807         archive_cmds_need_lc_CXX=no
16808         hardcode_shlibpath_var_CXX=no
16809         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16810         hardcode_libdir_separator_CXX=':'
16811         link_all_deplibs_CXX=yes
16812         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16813         runpath_var='LD_RUN_PATH'
16814
16815         case $cc_basename in
16816           CC*)
16817             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819             ;;
16820           *)
16821             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16822             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16823             ;;
16824         esac
16825       ;;
16826
16827       tandem*)
16828         case $cc_basename in
16829           NCC*)
16830             # NonStop-UX NCC 3.20
16831             # FIXME: insert proper C++ library support
16832             ld_shlibs_CXX=no
16833             ;;
16834           *)
16835             # FIXME: insert proper C++ library support
16836             ld_shlibs_CXX=no
16837             ;;
16838         esac
16839         ;;
16840
16841       vxworks*)
16842         # FIXME: insert proper C++ library support
16843         ld_shlibs_CXX=no
16844         ;;
16845
16846       *)
16847         # FIXME: insert proper C++ library support
16848         ld_shlibs_CXX=no
16849         ;;
16850     esac
16851
16852     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16853 $as_echo "$ld_shlibs_CXX" >&6; }
16854     test "$ld_shlibs_CXX" = no && can_build_shared=no
16855
16856     GCC_CXX="$GXX"
16857     LD_CXX="$LD"
16858
16859     ## CAVEAT EMPTOR:
16860     ## There is no encapsulation within the following macros, do not change
16861     ## the running order or otherwise move them around unless you know exactly
16862     ## what you are doing...
16863     # Dependencies to place before and after the object being linked:
16864 predep_objects_CXX=
16865 postdep_objects_CXX=
16866 predeps_CXX=
16867 postdeps_CXX=
16868 compiler_lib_search_path_CXX=
16869
16870 cat > conftest.$ac_ext <<_LT_EOF
16871 class Foo
16872 {
16873 public:
16874   Foo (void) { a = 0; }
16875 private:
16876   int a;
16877 };
16878 _LT_EOF
16879
16880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16881   (eval $ac_compile) 2>&5
16882   ac_status=$?
16883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16884   test $ac_status = 0; }; then
16885   # Parse the compiler output and extract the necessary
16886   # objects, libraries and library flags.
16887
16888   # Sentinel used to keep track of whether or not we are before
16889   # the conftest object file.
16890   pre_test_object_deps_done=no
16891
16892   for p in `eval "$output_verbose_link_cmd"`; do
16893     case $p in
16894
16895     -L* | -R* | -l*)
16896        # Some compilers place space between "-{L,R}" and the path.
16897        # Remove the space.
16898        if test $p = "-L" ||
16899           test $p = "-R"; then
16900          prev=$p
16901          continue
16902        else
16903          prev=
16904        fi
16905
16906        if test "$pre_test_object_deps_done" = no; then
16907          case $p in
16908          -L* | -R*)
16909            # Internal compiler library paths should come after those
16910            # provided the user.  The postdeps already come after the
16911            # user supplied libs so there is no need to process them.
16912            if test -z "$compiler_lib_search_path_CXX"; then
16913              compiler_lib_search_path_CXX="${prev}${p}"
16914            else
16915              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16916            fi
16917            ;;
16918          # The "-l" case would never come before the object being
16919          # linked, so don't bother handling this case.
16920          esac
16921        else
16922          if test -z "$postdeps_CXX"; then
16923            postdeps_CXX="${prev}${p}"
16924          else
16925            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16926          fi
16927        fi
16928        ;;
16929
16930     *.$objext)
16931        # This assumes that the test object file only shows up
16932        # once in the compiler output.
16933        if test "$p" = "conftest.$objext"; then
16934          pre_test_object_deps_done=yes
16935          continue
16936        fi
16937
16938        if test "$pre_test_object_deps_done" = no; then
16939          if test -z "$predep_objects_CXX"; then
16940            predep_objects_CXX="$p"
16941          else
16942            predep_objects_CXX="$predep_objects_CXX $p"
16943          fi
16944        else
16945          if test -z "$postdep_objects_CXX"; then
16946            postdep_objects_CXX="$p"
16947          else
16948            postdep_objects_CXX="$postdep_objects_CXX $p"
16949          fi
16950        fi
16951        ;;
16952
16953     *) ;; # Ignore the rest.
16954
16955     esac
16956   done
16957
16958   # Clean up.
16959   rm -f a.out a.exe
16960 else
16961   echo "libtool.m4: error: problem compiling CXX test program"
16962 fi
16963
16964 $RM -f confest.$objext
16965
16966 # PORTME: override above test on systems where it is broken
16967 case $host_os in
16968 interix[3-9]*)
16969   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16970   # hack all around it, let's just trust "g++" to DTRT.
16971   predep_objects_CXX=
16972   postdep_objects_CXX=
16973   postdeps_CXX=
16974   ;;
16975
16976 linux*)
16977   case `$CC -V 2>&1 | sed 5q` in
16978   *Sun\ C*)
16979     # Sun C++ 5.9
16980
16981     # The more standards-conforming stlport4 library is
16982     # incompatible with the Cstd library. Avoid specifying
16983     # it if it's in CXXFLAGS. Ignore libCrun as
16984     # -library=stlport4 depends on it.
16985     case " $CXX $CXXFLAGS " in
16986     *" -library=stlport4 "*)
16987       solaris_use_stlport4=yes
16988       ;;
16989     esac
16990
16991     if test "$solaris_use_stlport4" != yes; then
16992       postdeps_CXX='-library=Cstd -library=Crun'
16993     fi
16994     ;;
16995   esac
16996   ;;
16997
16998 solaris*)
16999   case $cc_basename in
17000   CC*)
17001     # The more standards-conforming stlport4 library is
17002     # incompatible with the Cstd library. Avoid specifying
17003     # it if it's in CXXFLAGS. Ignore libCrun as
17004     # -library=stlport4 depends on it.
17005     case " $CXX $CXXFLAGS " in
17006     *" -library=stlport4 "*)
17007       solaris_use_stlport4=yes
17008       ;;
17009     esac
17010
17011     # Adding this requires a known-good setup of shared libraries for
17012     # Sun compiler versions before 5.6, else PIC objects from an old
17013     # archive will be linked into the output, leading to subtle bugs.
17014     if test "$solaris_use_stlport4" != yes; then
17015       postdeps_CXX='-library=Cstd -library=Crun'
17016     fi
17017     ;;
17018   esac
17019   ;;
17020 esac
17021
17022
17023 case " $postdeps_CXX " in
17024 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17025 esac
17026  compiler_lib_search_dirs_CXX=
17027 if test -n "${compiler_lib_search_path_CXX}"; then
17028  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17029 fi
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061     lt_prog_compiler_wl_CXX=
17062 lt_prog_compiler_pic_CXX=
17063 lt_prog_compiler_static_CXX=
17064
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17066 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17067
17068   # C++ specific cases for pic, static, wl, etc.
17069   if test "$GXX" = yes; then
17070     lt_prog_compiler_wl_CXX='-Wl,'
17071     lt_prog_compiler_static_CXX='-static'
17072
17073     case $host_os in
17074     aix*)
17075       # All AIX code is PIC.
17076       if test "$host_cpu" = ia64; then
17077         # AIX 5 now supports IA64 processor
17078         lt_prog_compiler_static_CXX='-Bstatic'
17079       fi
17080       ;;
17081
17082     amigaos*)
17083       case $host_cpu in
17084       powerpc)
17085             # see comment about AmigaOS4 .so support
17086             lt_prog_compiler_pic_CXX='-fPIC'
17087         ;;
17088       m68k)
17089             # FIXME: we need at least 68020 code to build shared libraries, but
17090             # adding the `-m68020' flag to GCC prevents building anything better,
17091             # like `-m68040'.
17092             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17093         ;;
17094       esac
17095       ;;
17096
17097     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17098       # PIC is the default for these OSes.
17099       ;;
17100     mingw* | cygwin* | os2* | pw32* | cegcc*)
17101       # This hack is so that the source file can tell whether it is being
17102       # built for inclusion in a dll (and should export symbols for example).
17103       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17104       # (--disable-auto-import) libraries
17105       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17106       ;;
17107     darwin* | rhapsody*)
17108       # PIC is the default on this platform
17109       # Common symbols not allowed in MH_DYLIB files
17110       lt_prog_compiler_pic_CXX='-fno-common'
17111       ;;
17112     *djgpp*)
17113       # DJGPP does not support shared libraries at all
17114       lt_prog_compiler_pic_CXX=
17115       ;;
17116     interix[3-9]*)
17117       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17118       # Instead, we relocate shared libraries at runtime.
17119       ;;
17120     sysv4*MP*)
17121       if test -d /usr/nec; then
17122         lt_prog_compiler_pic_CXX=-Kconform_pic
17123       fi
17124       ;;
17125     hpux*)
17126       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17127       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17128       # sets the default TLS model and affects inlining.
17129       case $host_cpu in
17130       hppa*64*)
17131         ;;
17132       *)
17133         lt_prog_compiler_pic_CXX='-fPIC'
17134         ;;
17135       esac
17136       ;;
17137     *qnx* | *nto*)
17138       # QNX uses GNU C++, but need to define -shared option too, otherwise
17139       # it will coredump.
17140       lt_prog_compiler_pic_CXX='-fPIC -shared'
17141       ;;
17142     *)
17143       lt_prog_compiler_pic_CXX='-fPIC'
17144       ;;
17145     esac
17146   else
17147     case $host_os in
17148       aix[4-9]*)
17149         # All AIX code is PIC.
17150         if test "$host_cpu" = ia64; then
17151           # AIX 5 now supports IA64 processor
17152           lt_prog_compiler_static_CXX='-Bstatic'
17153         else
17154           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17155         fi
17156         ;;
17157       chorus*)
17158         case $cc_basename in
17159         cxch68*)
17160           # Green Hills C++ Compiler
17161           # _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"
17162           ;;
17163         esac
17164         ;;
17165       dgux*)
17166         case $cc_basename in
17167           ec++*)
17168             lt_prog_compiler_pic_CXX='-KPIC'
17169             ;;
17170           ghcx*)
17171             # Green Hills C++ Compiler
17172             lt_prog_compiler_pic_CXX='-pic'
17173             ;;
17174           *)
17175             ;;
17176         esac
17177         ;;
17178       freebsd* | dragonfly*)
17179         # FreeBSD uses GNU C++
17180         ;;
17181       hpux9* | hpux10* | hpux11*)
17182         case $cc_basename in
17183           CC*)
17184             lt_prog_compiler_wl_CXX='-Wl,'
17185             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17186             if test "$host_cpu" != ia64; then
17187               lt_prog_compiler_pic_CXX='+Z'
17188             fi
17189             ;;
17190           aCC*)
17191             lt_prog_compiler_wl_CXX='-Wl,'
17192             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17193             case $host_cpu in
17194             hppa*64*|ia64*)
17195               # +Z the default
17196               ;;
17197             *)
17198               lt_prog_compiler_pic_CXX='+Z'
17199               ;;
17200             esac
17201             ;;
17202           *)
17203             ;;
17204         esac
17205         ;;
17206       interix*)
17207         # This is c89, which is MS Visual C++ (no shared libs)
17208         # Anyone wants to do a port?
17209         ;;
17210       irix5* | irix6* | nonstopux*)
17211         case $cc_basename in
17212           CC*)
17213             lt_prog_compiler_wl_CXX='-Wl,'
17214             lt_prog_compiler_static_CXX='-non_shared'
17215             # CC pic flag -KPIC is the default.
17216             ;;
17217           *)
17218             ;;
17219         esac
17220         ;;
17221       linux* | k*bsd*-gnu)
17222         case $cc_basename in
17223           KCC*)
17224             # KAI C++ Compiler
17225             lt_prog_compiler_wl_CXX='--backend -Wl,'
17226             lt_prog_compiler_pic_CXX='-fPIC'
17227             ;;
17228           ecpc* )
17229             # old Intel C++ for x86_64 which still supported -KPIC.
17230             lt_prog_compiler_wl_CXX='-Wl,'
17231             lt_prog_compiler_pic_CXX='-KPIC'
17232             lt_prog_compiler_static_CXX='-static'
17233             ;;
17234           icpc* )
17235             # Intel C++, used to be incompatible with GCC.
17236             # ICC 10 doesn't accept -KPIC any more.
17237             lt_prog_compiler_wl_CXX='-Wl,'
17238             lt_prog_compiler_pic_CXX='-fPIC'
17239             lt_prog_compiler_static_CXX='-static'
17240             ;;
17241           pgCC* | pgcpp*)
17242             # Portland Group C++ compiler
17243             lt_prog_compiler_wl_CXX='-Wl,'
17244             lt_prog_compiler_pic_CXX='-fpic'
17245             lt_prog_compiler_static_CXX='-Bstatic'
17246             ;;
17247           cxx*)
17248             # Compaq C++
17249             # Make sure the PIC flag is empty.  It appears that all Alpha
17250             # Linux and Compaq Tru64 Unix objects are PIC.
17251             lt_prog_compiler_pic_CXX=
17252             lt_prog_compiler_static_CXX='-non_shared'
17253             ;;
17254           xlc* | xlC*)
17255             # IBM XL 8.0 on PPC
17256             lt_prog_compiler_wl_CXX='-Wl,'
17257             lt_prog_compiler_pic_CXX='-qpic'
17258             lt_prog_compiler_static_CXX='-qstaticlink'
17259             ;;
17260           *)
17261             case `$CC -V 2>&1 | sed 5q` in
17262             *Sun\ C*)
17263               # Sun C++ 5.9
17264               lt_prog_compiler_pic_CXX='-KPIC'
17265               lt_prog_compiler_static_CXX='-Bstatic'
17266               lt_prog_compiler_wl_CXX='-Qoption ld '
17267               ;;
17268             esac
17269             ;;
17270         esac
17271         ;;
17272       lynxos*)
17273         ;;
17274       m88k*)
17275         ;;
17276       mvs*)
17277         case $cc_basename in
17278           cxx*)
17279             lt_prog_compiler_pic_CXX='-W c,exportall'
17280             ;;
17281           *)
17282             ;;
17283         esac
17284         ;;
17285       netbsd*)
17286         ;;
17287       *qnx* | *nto*)
17288         # QNX uses GNU C++, but need to define -shared option too, otherwise
17289         # it will coredump.
17290         lt_prog_compiler_pic_CXX='-fPIC -shared'
17291         ;;
17292       osf3* | osf4* | osf5*)
17293         case $cc_basename in
17294           KCC*)
17295             lt_prog_compiler_wl_CXX='--backend -Wl,'
17296             ;;
17297           RCC*)
17298             # Rational C++ 2.4.1
17299             lt_prog_compiler_pic_CXX='-pic'
17300             ;;
17301           cxx*)
17302             # Digital/Compaq C++
17303             lt_prog_compiler_wl_CXX='-Wl,'
17304             # Make sure the PIC flag is empty.  It appears that all Alpha
17305             # Linux and Compaq Tru64 Unix objects are PIC.
17306             lt_prog_compiler_pic_CXX=
17307             lt_prog_compiler_static_CXX='-non_shared'
17308             ;;
17309           *)
17310             ;;
17311         esac
17312         ;;
17313       psos*)
17314         ;;
17315       solaris*)
17316         case $cc_basename in
17317           CC*)
17318             # Sun C++ 4.2, 5.x and Centerline C++
17319             lt_prog_compiler_pic_CXX='-KPIC'
17320             lt_prog_compiler_static_CXX='-Bstatic'
17321             lt_prog_compiler_wl_CXX='-Qoption ld '
17322             ;;
17323           gcx*)
17324             # Green Hills C++ Compiler
17325             lt_prog_compiler_pic_CXX='-PIC'
17326             ;;
17327           *)
17328             ;;
17329         esac
17330         ;;
17331       sunos4*)
17332         case $cc_basename in
17333           CC*)
17334             # Sun C++ 4.x
17335             lt_prog_compiler_pic_CXX='-pic'
17336             lt_prog_compiler_static_CXX='-Bstatic'
17337             ;;
17338           lcc*)
17339             # Lucid
17340             lt_prog_compiler_pic_CXX='-pic'
17341             ;;
17342           *)
17343             ;;
17344         esac
17345         ;;
17346       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17347         case $cc_basename in
17348           CC*)
17349             lt_prog_compiler_wl_CXX='-Wl,'
17350             lt_prog_compiler_pic_CXX='-KPIC'
17351             lt_prog_compiler_static_CXX='-Bstatic'
17352             ;;
17353         esac
17354         ;;
17355       tandem*)
17356         case $cc_basename in
17357           NCC*)
17358             # NonStop-UX NCC 3.20
17359             lt_prog_compiler_pic_CXX='-KPIC'
17360             ;;
17361           *)
17362             ;;
17363         esac
17364         ;;
17365       vxworks*)
17366         ;;
17367       *)
17368         lt_prog_compiler_can_build_shared_CXX=no
17369         ;;
17370     esac
17371   fi
17372
17373 case $host_os in
17374   # For platforms which do not support PIC, -DPIC is meaningless:
17375   *djgpp*)
17376     lt_prog_compiler_pic_CXX=
17377     ;;
17378   *)
17379     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17380     ;;
17381 esac
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17383 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17384
17385
17386
17387 #
17388 # Check to make sure the PIC flag actually works.
17389 #
17390 if test -n "$lt_prog_compiler_pic_CXX"; then
17391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17393 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17394   $as_echo_n "(cached) " >&6
17395 else
17396   lt_cv_prog_compiler_pic_works_CXX=no
17397    ac_outfile=conftest.$ac_objext
17398    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17400    # Insert the option either (1) after the last *FLAGS variable, or
17401    # (2) before a word containing "conftest.", or (3) at the end.
17402    # Note that $ac_compile itself does not contain backslashes and begins
17403    # with a dollar sign (not a hyphen), so the echo should work correctly.
17404    # The option is referenced via a variable to avoid confusing sed.
17405    lt_compile=`echo "$ac_compile" | $SED \
17406    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408    -e 's:$: $lt_compiler_flag:'`
17409    (eval echo "\"\$as_me:17409: $lt_compile\"" >&5)
17410    (eval "$lt_compile" 2>conftest.err)
17411    ac_status=$?
17412    cat conftest.err >&5
17413    echo "$as_me:17413: \$? = $ac_status" >&5
17414    if (exit $ac_status) && test -s "$ac_outfile"; then
17415      # The compiler can only warn and ignore the option if not recognized
17416      # So say no if there are warnings other than the usual output.
17417      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17418      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17420        lt_cv_prog_compiler_pic_works_CXX=yes
17421      fi
17422    fi
17423    $RM conftest*
17424
17425 fi
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17427 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17428
17429 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17430     case $lt_prog_compiler_pic_CXX in
17431      "" | " "*) ;;
17432      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17433      esac
17434 else
17435     lt_prog_compiler_pic_CXX=
17436      lt_prog_compiler_can_build_shared_CXX=no
17437 fi
17438
17439 fi
17440
17441
17442
17443 #
17444 # Check to make sure the static flag actually works.
17445 #
17446 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17448 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17449 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17450   $as_echo_n "(cached) " >&6
17451 else
17452   lt_cv_prog_compiler_static_works_CXX=no
17453    save_LDFLAGS="$LDFLAGS"
17454    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17455    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17456    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17457      # The linker can only warn and ignore the option if not recognized
17458      # So say no if there are warnings
17459      if test -s conftest.err; then
17460        # Append any errors to the config.log.
17461        cat conftest.err 1>&5
17462        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17463        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17464        if diff conftest.exp conftest.er2 >/dev/null; then
17465          lt_cv_prog_compiler_static_works_CXX=yes
17466        fi
17467      else
17468        lt_cv_prog_compiler_static_works_CXX=yes
17469      fi
17470    fi
17471    $RM -r conftest*
17472    LDFLAGS="$save_LDFLAGS"
17473
17474 fi
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17476 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17477
17478 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17479     :
17480 else
17481     lt_prog_compiler_static_CXX=
17482 fi
17483
17484
17485
17486
17487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17489 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17490   $as_echo_n "(cached) " >&6
17491 else
17492   lt_cv_prog_compiler_c_o_CXX=no
17493    $RM -r conftest 2>/dev/null
17494    mkdir conftest
17495    cd conftest
17496    mkdir out
17497    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498
17499    lt_compiler_flag="-o out/conftest2.$ac_objext"
17500    # Insert the option either (1) after the last *FLAGS variable, or
17501    # (2) before a word containing "conftest.", or (3) at the end.
17502    # Note that $ac_compile itself does not contain backslashes and begins
17503    # with a dollar sign (not a hyphen), so the echo should work correctly.
17504    lt_compile=`echo "$ac_compile" | $SED \
17505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507    -e 's:$: $lt_compiler_flag:'`
17508    (eval echo "\"\$as_me:17508: $lt_compile\"" >&5)
17509    (eval "$lt_compile" 2>out/conftest.err)
17510    ac_status=$?
17511    cat out/conftest.err >&5
17512    echo "$as_me:17512: \$? = $ac_status" >&5
17513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17514    then
17515      # The compiler can only warn and ignore the option if not recognized
17516      # So say no if there are warnings
17517      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17518      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17519      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17520        lt_cv_prog_compiler_c_o_CXX=yes
17521      fi
17522    fi
17523    chmod u+w . 2>&5
17524    $RM conftest*
17525    # SGI C++ compiler will create directory out/ii_files/ for
17526    # template instantiation
17527    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17528    $RM out/* && rmdir out
17529    cd ..
17530    $RM -r conftest
17531    $RM conftest*
17532
17533 fi
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17535 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17536
17537
17538
17539     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17542   $as_echo_n "(cached) " >&6
17543 else
17544   lt_cv_prog_compiler_c_o_CXX=no
17545    $RM -r conftest 2>/dev/null
17546    mkdir conftest
17547    cd conftest
17548    mkdir out
17549    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17550
17551    lt_compiler_flag="-o out/conftest2.$ac_objext"
17552    # Insert the option either (1) after the last *FLAGS variable, or
17553    # (2) before a word containing "conftest.", or (3) at the end.
17554    # Note that $ac_compile itself does not contain backslashes and begins
17555    # with a dollar sign (not a hyphen), so the echo should work correctly.
17556    lt_compile=`echo "$ac_compile" | $SED \
17557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17559    -e 's:$: $lt_compiler_flag:'`
17560    (eval echo "\"\$as_me:17560: $lt_compile\"" >&5)
17561    (eval "$lt_compile" 2>out/conftest.err)
17562    ac_status=$?
17563    cat out/conftest.err >&5
17564    echo "$as_me:17564: \$? = $ac_status" >&5
17565    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17566    then
17567      # The compiler can only warn and ignore the option if not recognized
17568      # So say no if there are warnings
17569      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17570      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17571      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17572        lt_cv_prog_compiler_c_o_CXX=yes
17573      fi
17574    fi
17575    chmod u+w . 2>&5
17576    $RM conftest*
17577    # SGI C++ compiler will create directory out/ii_files/ for
17578    # template instantiation
17579    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17580    $RM out/* && rmdir out
17581    cd ..
17582    $RM -r conftest
17583    $RM conftest*
17584
17585 fi
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17587 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17588
17589
17590
17591
17592 hard_links="nottested"
17593 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17594   # do not overwrite the value of need_locks provided by the user
17595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17596 $as_echo_n "checking if we can lock with hard links... " >&6; }
17597   hard_links=yes
17598   $RM conftest*
17599   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17600   touch conftest.a
17601   ln conftest.a conftest.b 2>&5 || hard_links=no
17602   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17604 $as_echo "$hard_links" >&6; }
17605   if test "$hard_links" = no; then
17606     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17607 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17608     need_locks=warn
17609   fi
17610 else
17611   need_locks=no
17612 fi
17613
17614
17615
17616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17618
17619   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17620   case $host_os in
17621   aix[4-9]*)
17622     # If we're using GNU nm, then we don't want the "-C" option.
17623     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17624     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17625       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17626     else
17627       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'
17628     fi
17629     ;;
17630   pw32*)
17631     export_symbols_cmds_CXX="$ltdll_cmds"
17632   ;;
17633   cygwin* | mingw* | cegcc*)
17634     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17635   ;;
17636   *)
17637     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17638   ;;
17639   esac
17640   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17641
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17643 $as_echo "$ld_shlibs_CXX" >&6; }
17644 test "$ld_shlibs_CXX" = no && can_build_shared=no
17645
17646 with_gnu_ld_CXX=$with_gnu_ld
17647
17648
17649
17650
17651
17652
17653 #
17654 # Do we need to explicitly link libc?
17655 #
17656 case "x$archive_cmds_need_lc_CXX" in
17657 x|xyes)
17658   # Assume -lc should be added
17659   archive_cmds_need_lc_CXX=yes
17660
17661   if test "$enable_shared" = yes && test "$GCC" = yes; then
17662     case $archive_cmds_CXX in
17663     *'~'*)
17664       # FIXME: we may have to deal with multi-command sequences.
17665       ;;
17666     '$CC '*)
17667       # Test whether the compiler implicitly links with -lc since on some
17668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17669       # to ld, don't add -lc before -lgcc.
17670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17672       $RM conftest*
17673       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17674
17675       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17676   (eval $ac_compile) 2>&5
17677   ac_status=$?
17678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679   test $ac_status = 0; } 2>conftest.err; then
17680         soname=conftest
17681         lib=conftest
17682         libobjs=conftest.$ac_objext
17683         deplibs=
17684         wl=$lt_prog_compiler_wl_CXX
17685         pic_flag=$lt_prog_compiler_pic_CXX
17686         compiler_flags=-v
17687         linker_flags=-v
17688         verstring=
17689         output_objdir=.
17690         libname=conftest
17691         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17692         allow_undefined_flag_CXX=
17693         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17694   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17695   ac_status=$?
17696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17697   test $ac_status = 0; }
17698         then
17699           archive_cmds_need_lc_CXX=no
17700         else
17701           archive_cmds_need_lc_CXX=yes
17702         fi
17703         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17704       else
17705         cat conftest.err 1>&5
17706       fi
17707       $RM conftest*
17708       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
17709 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
17710       ;;
17711     esac
17712   fi
17713   ;;
17714 esac
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17780 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17781
17782 library_names_spec=
17783 libname_spec='lib$name'
17784 soname_spec=
17785 shrext_cmds=".so"
17786 postinstall_cmds=
17787 postuninstall_cmds=
17788 finish_cmds=
17789 finish_eval=
17790 shlibpath_var=
17791 shlibpath_overrides_runpath=unknown
17792 version_type=none
17793 dynamic_linker="$host_os ld.so"
17794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17795 need_lib_prefix=unknown
17796 hardcode_into_libs=no
17797
17798 # when you set need_version to no, make sure it does not cause -set_version
17799 # flags to be left without arguments
17800 need_version=unknown
17801
17802 case $host_os in
17803 aix3*)
17804   version_type=linux
17805   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17806   shlibpath_var=LIBPATH
17807
17808   # AIX 3 has no versioning support, so we append a major version to the name.
17809   soname_spec='${libname}${release}${shared_ext}$major'
17810   ;;
17811
17812 aix[4-9]*)
17813   version_type=linux
17814   need_lib_prefix=no
17815   need_version=no
17816   hardcode_into_libs=yes
17817   if test "$host_cpu" = ia64; then
17818     # AIX 5 supports IA64
17819     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17820     shlibpath_var=LD_LIBRARY_PATH
17821   else
17822     # With GCC up to 2.95.x, collect2 would create an import file
17823     # for dependence libraries.  The import file would start with
17824     # the line `#! .'.  This would cause the generated library to
17825     # depend on `.', always an invalid library.  This was fixed in
17826     # development snapshots of GCC prior to 3.0.
17827     case $host_os in
17828       aix4 | aix4.[01] | aix4.[01].*)
17829       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17830            echo ' yes '
17831            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17832         :
17833       else
17834         can_build_shared=no
17835       fi
17836       ;;
17837     esac
17838     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17839     # soname into executable. Probably we can add versioning support to
17840     # collect2, so additional links can be useful in future.
17841     if test "$aix_use_runtimelinking" = yes; then
17842       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17843       # instead of lib<name>.a to let people know that these are not
17844       # typical AIX shared libraries.
17845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17846     else
17847       # We preserve .a as extension for shared libraries through AIX4.2
17848       # and later when we are not doing run time linking.
17849       library_names_spec='${libname}${release}.a $libname.a'
17850       soname_spec='${libname}${release}${shared_ext}$major'
17851     fi
17852     shlibpath_var=LIBPATH
17853   fi
17854   ;;
17855
17856 amigaos*)
17857   case $host_cpu in
17858   powerpc)
17859     # Since July 2007 AmigaOS4 officially supports .so libraries.
17860     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17862     ;;
17863   m68k)
17864     library_names_spec='$libname.ixlibrary $libname.a'
17865     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17866     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
17867     ;;
17868   esac
17869   ;;
17870
17871 beos*)
17872   library_names_spec='${libname}${shared_ext}'
17873   dynamic_linker="$host_os ld.so"
17874   shlibpath_var=LIBRARY_PATH
17875   ;;
17876
17877 bsdi[45]*)
17878   version_type=linux
17879   need_version=no
17880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881   soname_spec='${libname}${release}${shared_ext}$major'
17882   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17883   shlibpath_var=LD_LIBRARY_PATH
17884   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17885   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17886   # the default ld.so.conf also contains /usr/contrib/lib and
17887   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17888   # libtool to hard-code these into programs
17889   ;;
17890
17891 cygwin* | mingw* | pw32* | cegcc*)
17892   version_type=windows
17893   shrext_cmds=".dll"
17894   need_version=no
17895   need_lib_prefix=no
17896
17897   case $GCC,$host_os in
17898   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17899     library_names_spec='$libname.dll.a'
17900     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17901     postinstall_cmds='base_file=`basename \${file}`~
17902       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17903       dldir=$destdir/`dirname \$dlpath`~
17904       test -d \$dldir || mkdir -p \$dldir~
17905       $install_prog $dir/$dlname \$dldir/$dlname~
17906       chmod a+x \$dldir/$dlname~
17907       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17908         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17909       fi'
17910     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17911       dlpath=$dir/\$dldll~
17912        $RM \$dlpath'
17913     shlibpath_overrides_runpath=yes
17914
17915     case $host_os in
17916     cygwin*)
17917       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17918       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17919       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17920       ;;
17921     mingw* | cegcc*)
17922       # MinGW DLLs use traditional 'lib' prefix
17923       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17924       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17925       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17926         # It is most probably a Windows format PATH printed by
17927         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17928         # path with ; separators, and with drive letters. We can handle the
17929         # drive letters (cygwin fileutils understands them), so leave them,
17930         # especially as we might pass files found there to a mingw objdump,
17931         # which wouldn't understand a cygwinified path. Ahh.
17932         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17933       else
17934         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17935       fi
17936       ;;
17937     pw32*)
17938       # pw32 DLLs use 'pw' prefix rather than 'lib'
17939       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17940       ;;
17941     esac
17942     ;;
17943
17944   *)
17945     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17946     ;;
17947   esac
17948   dynamic_linker='Win32 ld.exe'
17949   # FIXME: first we should search . and the directory the executable is in
17950   shlibpath_var=PATH
17951   ;;
17952
17953 darwin* | rhapsody*)
17954   dynamic_linker="$host_os dyld"
17955   version_type=darwin
17956   need_lib_prefix=no
17957   need_version=no
17958   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17959   soname_spec='${libname}${release}${major}$shared_ext'
17960   shlibpath_overrides_runpath=yes
17961   shlibpath_var=DYLD_LIBRARY_PATH
17962   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17963
17964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17965   ;;
17966
17967 dgux*)
17968   version_type=linux
17969   need_lib_prefix=no
17970   need_version=no
17971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17972   soname_spec='${libname}${release}${shared_ext}$major'
17973   shlibpath_var=LD_LIBRARY_PATH
17974   ;;
17975
17976 freebsd1*)
17977   dynamic_linker=no
17978   ;;
17979
17980 freebsd* | dragonfly*)
17981   # DragonFly does not have aout.  When/if they implement a new
17982   # versioning mechanism, adjust this.
17983   if test -x /usr/bin/objformat; then
17984     objformat=`/usr/bin/objformat`
17985   else
17986     case $host_os in
17987     freebsd[123]*) objformat=aout ;;
17988     *) objformat=elf ;;
17989     esac
17990   fi
17991   version_type=freebsd-$objformat
17992   case $version_type in
17993     freebsd-elf*)
17994       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17995       need_version=no
17996       need_lib_prefix=no
17997       ;;
17998     freebsd-*)
17999       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18000       need_version=yes
18001       ;;
18002   esac
18003   shlibpath_var=LD_LIBRARY_PATH
18004   case $host_os in
18005   freebsd2*)
18006     shlibpath_overrides_runpath=yes
18007     ;;
18008   freebsd3.[01]* | freebsdelf3.[01]*)
18009     shlibpath_overrides_runpath=yes
18010     hardcode_into_libs=yes
18011     ;;
18012   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18013   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18014     shlibpath_overrides_runpath=no
18015     hardcode_into_libs=yes
18016     ;;
18017   *) # from 4.6 on, and DragonFly
18018     shlibpath_overrides_runpath=yes
18019     hardcode_into_libs=yes
18020     ;;
18021   esac
18022   ;;
18023
18024 gnu*)
18025   version_type=linux
18026   need_lib_prefix=no
18027   need_version=no
18028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18029   soname_spec='${libname}${release}${shared_ext}$major'
18030   shlibpath_var=LD_LIBRARY_PATH
18031   hardcode_into_libs=yes
18032   ;;
18033
18034 hpux9* | hpux10* | hpux11*)
18035   # Give a soname corresponding to the major version so that dld.sl refuses to
18036   # link against other versions.
18037   version_type=sunos
18038   need_lib_prefix=no
18039   need_version=no
18040   case $host_cpu in
18041   ia64*)
18042     shrext_cmds='.so'
18043     hardcode_into_libs=yes
18044     dynamic_linker="$host_os dld.so"
18045     shlibpath_var=LD_LIBRARY_PATH
18046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18048     soname_spec='${libname}${release}${shared_ext}$major'
18049     if test "X$HPUX_IA64_MODE" = X32; then
18050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18051     else
18052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18053     fi
18054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18055     ;;
18056   hppa*64*)
18057     shrext_cmds='.sl'
18058     hardcode_into_libs=yes
18059     dynamic_linker="$host_os dld.sl"
18060     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18063     soname_spec='${libname}${release}${shared_ext}$major'
18064     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18066     ;;
18067   *)
18068     shrext_cmds='.sl'
18069     dynamic_linker="$host_os dld.sl"
18070     shlibpath_var=SHLIB_PATH
18071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18073     soname_spec='${libname}${release}${shared_ext}$major'
18074     ;;
18075   esac
18076   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18077   postinstall_cmds='chmod 555 $lib'
18078   ;;
18079
18080 interix[3-9]*)
18081   version_type=linux
18082   need_lib_prefix=no
18083   need_version=no
18084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18085   soname_spec='${libname}${release}${shared_ext}$major'
18086   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18087   shlibpath_var=LD_LIBRARY_PATH
18088   shlibpath_overrides_runpath=no
18089   hardcode_into_libs=yes
18090   ;;
18091
18092 irix5* | irix6* | nonstopux*)
18093   case $host_os in
18094     nonstopux*) version_type=nonstopux ;;
18095     *)
18096         if test "$lt_cv_prog_gnu_ld" = yes; then
18097                 version_type=linux
18098         else
18099                 version_type=irix
18100         fi ;;
18101   esac
18102   need_lib_prefix=no
18103   need_version=no
18104   soname_spec='${libname}${release}${shared_ext}$major'
18105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18106   case $host_os in
18107   irix5* | nonstopux*)
18108     libsuff= shlibsuff=
18109     ;;
18110   *)
18111     case $LD in # libtool.m4 will add one of these switches to LD
18112     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18113       libsuff= shlibsuff= libmagic=32-bit;;
18114     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18115       libsuff=32 shlibsuff=N32 libmagic=N32;;
18116     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18117       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18118     *) libsuff= shlibsuff= libmagic=never-match;;
18119     esac
18120     ;;
18121   esac
18122   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18123   shlibpath_overrides_runpath=no
18124   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18125   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18126   hardcode_into_libs=yes
18127   ;;
18128
18129 # No shared lib support for Linux oldld, aout, or coff.
18130 linux*oldld* | linux*aout* | linux*coff*)
18131   dynamic_linker=no
18132   ;;
18133
18134 # This must be Linux ELF.
18135 linux* | k*bsd*-gnu)
18136   version_type=linux
18137   need_lib_prefix=no
18138   need_version=no
18139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18140   soname_spec='${libname}${release}${shared_ext}$major'
18141   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18142   shlibpath_var=LD_LIBRARY_PATH
18143   shlibpath_overrides_runpath=no
18144   # Some binutils ld are patched to set DT_RUNPATH
18145   save_LDFLAGS=$LDFLAGS
18146   save_libdir=$libdir
18147   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18148        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18150 /* end confdefs.h.  */
18151
18152 int
18153 main ()
18154 {
18155
18156   ;
18157   return 0;
18158 }
18159 _ACEOF
18160 if ac_fn_cxx_try_link "$LINENO"; then :
18161   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18162   shlibpath_overrides_runpath=yes
18163 fi
18164 fi
18165 rm -f core conftest.err conftest.$ac_objext \
18166     conftest$ac_exeext conftest.$ac_ext
18167   LDFLAGS=$save_LDFLAGS
18168   libdir=$save_libdir
18169
18170   # This implies no fast_install, which is unacceptable.
18171   # Some rework will be needed to allow for fast_install
18172   # before this can be enabled.
18173   hardcode_into_libs=yes
18174
18175   # Add ABI-specific directories to the system library path.
18176   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18177
18178   # Append ld.so.conf contents to the search path
18179   if test -f /etc/ld.so.conf; then
18180     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;/^$/d' | tr '\n' ' '`
18181     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18182   fi
18183
18184   # We used to test for /lib/ld.so.1 and disable shared libraries on
18185   # powerpc, because MkLinux only supported shared libraries with the
18186   # GNU dynamic linker.  Since this was broken with cross compilers,
18187   # most powerpc-linux boxes support dynamic linking these days and
18188   # people can always --disable-shared, the test was removed, and we
18189   # assume the GNU/Linux dynamic linker is in use.
18190   dynamic_linker='GNU/Linux ld.so'
18191   ;;
18192
18193 netbsd*)
18194   version_type=sunos
18195   need_lib_prefix=no
18196   need_version=no
18197   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18199     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18200     dynamic_linker='NetBSD (a.out) ld.so'
18201   else
18202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18203     soname_spec='${libname}${release}${shared_ext}$major'
18204     dynamic_linker='NetBSD ld.elf_so'
18205   fi
18206   shlibpath_var=LD_LIBRARY_PATH
18207   shlibpath_overrides_runpath=yes
18208   hardcode_into_libs=yes
18209   ;;
18210
18211 newsos6)
18212   version_type=linux
18213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18214   shlibpath_var=LD_LIBRARY_PATH
18215   shlibpath_overrides_runpath=yes
18216   ;;
18217
18218 *nto* | *qnx*)
18219   version_type=qnx
18220   need_lib_prefix=no
18221   need_version=no
18222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223   soname_spec='${libname}${release}${shared_ext}$major'
18224   shlibpath_var=LD_LIBRARY_PATH
18225   shlibpath_overrides_runpath=no
18226   hardcode_into_libs=yes
18227   dynamic_linker='ldqnx.so'
18228   ;;
18229
18230 openbsd*)
18231   version_type=sunos
18232   sys_lib_dlsearch_path_spec="/usr/lib"
18233   need_lib_prefix=no
18234   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18235   case $host_os in
18236     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18237     *)                          need_version=no  ;;
18238   esac
18239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18240   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18241   shlibpath_var=LD_LIBRARY_PATH
18242   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18243     case $host_os in
18244       openbsd2.[89] | openbsd2.[89].*)
18245         shlibpath_overrides_runpath=no
18246         ;;
18247       *)
18248         shlibpath_overrides_runpath=yes
18249         ;;
18250       esac
18251   else
18252     shlibpath_overrides_runpath=yes
18253   fi
18254   ;;
18255
18256 os2*)
18257   libname_spec='$name'
18258   shrext_cmds=".dll"
18259   need_lib_prefix=no
18260   library_names_spec='$libname${shared_ext} $libname.a'
18261   dynamic_linker='OS/2 ld.exe'
18262   shlibpath_var=LIBPATH
18263   ;;
18264
18265 osf3* | osf4* | osf5*)
18266   version_type=osf
18267   need_lib_prefix=no
18268   need_version=no
18269   soname_spec='${libname}${release}${shared_ext}$major'
18270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18273   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18274   ;;
18275
18276 rdos*)
18277   dynamic_linker=no
18278   ;;
18279
18280 solaris*)
18281   version_type=linux
18282   need_lib_prefix=no
18283   need_version=no
18284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285   soname_spec='${libname}${release}${shared_ext}$major'
18286   shlibpath_var=LD_LIBRARY_PATH
18287   shlibpath_overrides_runpath=yes
18288   hardcode_into_libs=yes
18289   # ldd complains unless libraries are executable
18290   postinstall_cmds='chmod +x $lib'
18291   ;;
18292
18293 sunos4*)
18294   version_type=sunos
18295   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18296   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18297   shlibpath_var=LD_LIBRARY_PATH
18298   shlibpath_overrides_runpath=yes
18299   if test "$with_gnu_ld" = yes; then
18300     need_lib_prefix=no
18301   fi
18302   need_version=yes
18303   ;;
18304
18305 sysv4 | sysv4.3*)
18306   version_type=linux
18307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18308   soname_spec='${libname}${release}${shared_ext}$major'
18309   shlibpath_var=LD_LIBRARY_PATH
18310   case $host_vendor in
18311     sni)
18312       shlibpath_overrides_runpath=no
18313       need_lib_prefix=no
18314       runpath_var=LD_RUN_PATH
18315       ;;
18316     siemens)
18317       need_lib_prefix=no
18318       ;;
18319     motorola)
18320       need_lib_prefix=no
18321       need_version=no
18322       shlibpath_overrides_runpath=no
18323       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18324       ;;
18325   esac
18326   ;;
18327
18328 sysv4*MP*)
18329   if test -d /usr/nec ;then
18330     version_type=linux
18331     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18332     soname_spec='$libname${shared_ext}.$major'
18333     shlibpath_var=LD_LIBRARY_PATH
18334   fi
18335   ;;
18336
18337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18338   version_type=freebsd-elf
18339   need_lib_prefix=no
18340   need_version=no
18341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18342   soname_spec='${libname}${release}${shared_ext}$major'
18343   shlibpath_var=LD_LIBRARY_PATH
18344   shlibpath_overrides_runpath=yes
18345   hardcode_into_libs=yes
18346   if test "$with_gnu_ld" = yes; then
18347     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18348   else
18349     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18350     case $host_os in
18351       sco3.2v5*)
18352         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18353         ;;
18354     esac
18355   fi
18356   sys_lib_dlsearch_path_spec='/usr/lib'
18357   ;;
18358
18359 tpf*)
18360   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18361   version_type=linux
18362   need_lib_prefix=no
18363   need_version=no
18364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18365   shlibpath_var=LD_LIBRARY_PATH
18366   shlibpath_overrides_runpath=no
18367   hardcode_into_libs=yes
18368   ;;
18369
18370 uts4*)
18371   version_type=linux
18372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373   soname_spec='${libname}${release}${shared_ext}$major'
18374   shlibpath_var=LD_LIBRARY_PATH
18375   ;;
18376
18377 *)
18378   dynamic_linker=no
18379   ;;
18380 esac
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18382 $as_echo "$dynamic_linker" >&6; }
18383 test "$dynamic_linker" = no && can_build_shared=no
18384
18385 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18386 if test "$GCC" = yes; then
18387   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18388 fi
18389
18390 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18391   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18392 fi
18393 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18394   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18395 fi
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18433 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18434 hardcode_action_CXX=
18435 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18436    test -n "$runpath_var_CXX" ||
18437    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18438
18439   # We can hardcode non-existent directories.
18440   if test "$hardcode_direct_CXX" != no &&
18441      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18442      # have to relink, otherwise we might link with an installed library
18443      # when we should be linking with a yet-to-be-installed one
18444      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18445      test "$hardcode_minus_L_CXX" != no; then
18446     # Linking always hardcodes the temporary library directory.
18447     hardcode_action_CXX=relink
18448   else
18449     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18450     hardcode_action_CXX=immediate
18451   fi
18452 else
18453   # We cannot hardcode anything, or else we can only hardcode existing
18454   # directories.
18455   hardcode_action_CXX=unsupported
18456 fi
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18458 $as_echo "$hardcode_action_CXX" >&6; }
18459
18460 if test "$hardcode_action_CXX" = relink ||
18461    test "$inherit_rpath_CXX" = yes; then
18462   # Fast installation is not supported
18463   enable_fast_install=no
18464 elif test "$shlibpath_overrides_runpath" = yes ||
18465      test "$enable_shared" = no; then
18466   # Fast installation is not necessary
18467   enable_fast_install=needless
18468 fi
18469
18470
18471
18472
18473
18474
18475
18476   fi # test -n "$compiler"
18477
18478   CC=$lt_save_CC
18479   LDCXX=$LD
18480   LD=$lt_save_LD
18481   GCC=$lt_save_GCC
18482   with_gnu_ld=$lt_save_with_gnu_ld
18483   lt_cv_path_LDCXX=$lt_cv_path_LD
18484   lt_cv_path_LD=$lt_save_path_LD
18485   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18486   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18487 fi # test "$_lt_caught_CXX_error" != yes
18488
18489 ac_ext=c
18490 ac_cpp='$CPP $CPPFLAGS'
18491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507         ac_config_commands="$ac_config_commands libtool"
18508
18509
18510
18511
18512 # Only expand once:
18513
18514
18515
18516
18517
18518 # Configure libltdl
18519
18520
18521
18522
18523
18524
18525
18526
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18528 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18529 if test "${libltdl_cv_shlibext+set}" = set; then :
18530   $as_echo_n "(cached) " >&6
18531 else
18532
18533 module=yes
18534 eval libltdl_cv_shlibext=$shrext_cmds
18535
18536 fi
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18538 $as_echo "$libltdl_cv_shlibext" >&6; }
18539 if test -n "$libltdl_cv_shlibext"; then
18540
18541 cat >>confdefs.h <<_ACEOF
18542 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18543 _ACEOF
18544
18545 fi
18546
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18548 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18549 if test "${lt_cv_module_path_var+set}" = set; then :
18550   $as_echo_n "(cached) " >&6
18551 else
18552   lt_cv_module_path_var="$shlibpath_var"
18553 fi
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18555 $as_echo "$lt_cv_module_path_var" >&6; }
18556 if test -n "$lt_cv_module_path_var"; then
18557
18558 cat >>confdefs.h <<_ACEOF
18559 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18560 _ACEOF
18561
18562 fi
18563
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18565 $as_echo_n "checking for the default library search path... " >&6; }
18566 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18567   $as_echo_n "(cached) " >&6
18568 else
18569   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18570 fi
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18572 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18573 if test -n "$lt_cv_sys_dlsearch_path"; then
18574   sys_dlsearch_path=
18575   for dir in $lt_cv_sys_dlsearch_path; do
18576     if test -z "$sys_dlsearch_path"; then
18577       sys_dlsearch_path="$dir"
18578     else
18579       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18580     fi
18581   done
18582
18583 cat >>confdefs.h <<_ACEOF
18584 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18585 _ACEOF
18586
18587 fi
18588
18589
18590 LT_DLLOADERS=
18591
18592
18593 ac_ext=c
18594 ac_cpp='$CPP $CPPFLAGS'
18595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18598
18599
18600 LIBADD_DLOPEN=
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18602 $as_echo_n "checking for library containing dlopen... " >&6; }
18603 if test "${ac_cv_search_dlopen+set}" = set; then :
18604   $as_echo_n "(cached) " >&6
18605 else
18606   ac_func_search_save_LIBS=$LIBS
18607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608 /* end confdefs.h.  */
18609
18610 /* Override any GCC internal prototype to avoid an error.
18611    Use char because int might match the return type of a GCC
18612    builtin and then its argument prototype would still apply.  */
18613 #ifdef __cplusplus
18614 extern "C"
18615 #endif
18616 char dlopen ();
18617 int
18618 main ()
18619 {
18620 return dlopen ();
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 for ac_lib in '' dl; do
18626   if test -z "$ac_lib"; then
18627     ac_res="none required"
18628   else
18629     ac_res=-l$ac_lib
18630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18631   fi
18632   if ac_fn_c_try_link "$LINENO"; then :
18633   ac_cv_search_dlopen=$ac_res
18634 fi
18635 rm -f core conftest.err conftest.$ac_objext \
18636     conftest$ac_exeext
18637   if test "${ac_cv_search_dlopen+set}" = set; then :
18638   break
18639 fi
18640 done
18641 if test "${ac_cv_search_dlopen+set}" = set; then :
18642
18643 else
18644   ac_cv_search_dlopen=no
18645 fi
18646 rm conftest.$ac_ext
18647 LIBS=$ac_func_search_save_LIBS
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18650 $as_echo "$ac_cv_search_dlopen" >&6; }
18651 ac_res=$ac_cv_search_dlopen
18652 if test "$ac_res" != no; then :
18653   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18654
18655 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18656
18657         if test "$ac_cv_search_dlopen" != "none required" ; then
18658           LIBADD_DLOPEN="-ldl"
18659         fi
18660         libltdl_cv_lib_dl_dlopen="yes"
18661         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18662 else
18663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h.  */
18665 #if HAVE_DLFCN_H
18666 #  include <dlfcn.h>
18667 #endif
18668
18669 int
18670 main ()
18671 {
18672 dlopen(0, 0);
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678
18679 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18680
18681             libltdl_cv_func_dlopen="yes"
18682             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18683 else
18684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18685 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18687   $as_echo_n "(cached) " >&6
18688 else
18689   ac_check_lib_save_LIBS=$LIBS
18690 LIBS="-lsvld  $LIBS"
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h.  */
18693
18694 /* Override any GCC internal prototype to avoid an error.
18695    Use char because int might match the return type of a GCC
18696    builtin and then its argument prototype would still apply.  */
18697 #ifdef __cplusplus
18698 extern "C"
18699 #endif
18700 char dlopen ();
18701 int
18702 main ()
18703 {
18704 return dlopen ();
18705   ;
18706   return 0;
18707 }
18708 _ACEOF
18709 if ac_fn_c_try_link "$LINENO"; then :
18710   ac_cv_lib_svld_dlopen=yes
18711 else
18712   ac_cv_lib_svld_dlopen=no
18713 fi
18714 rm -f core conftest.err conftest.$ac_objext \
18715     conftest$ac_exeext conftest.$ac_ext
18716 LIBS=$ac_check_lib_save_LIBS
18717 fi
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18720 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18721
18722 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18723
18724                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
18725                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18726 fi
18727
18728 fi
18729 rm -f core conftest.err conftest.$ac_objext \
18730     conftest$ac_exeext conftest.$ac_ext
18731 fi
18732
18733 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
18734 then
18735   lt_save_LIBS="$LIBS"
18736   LIBS="$LIBS $LIBADD_DLOPEN"
18737   for ac_func in dlerror
18738 do :
18739   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
18740 if test "x$ac_cv_func_dlerror" = x""yes; then :
18741   cat >>confdefs.h <<_ACEOF
18742 #define HAVE_DLERROR 1
18743 _ACEOF
18744
18745 fi
18746 done
18747
18748   LIBS="$lt_save_LIBS"
18749 fi
18750
18751
18752 LIBADD_SHL_LOAD=
18753 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18754 if test "x$ac_cv_func_shl_load" = x""yes; then :
18755
18756 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18757
18758         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18759 else
18760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18761 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18763   $as_echo_n "(cached) " >&6
18764 else
18765   ac_check_lib_save_LIBS=$LIBS
18766 LIBS="-ldld  $LIBS"
18767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18768 /* end confdefs.h.  */
18769
18770 /* Override any GCC internal prototype to avoid an error.
18771    Use char because int might match the return type of a GCC
18772    builtin and then its argument prototype would still apply.  */
18773 #ifdef __cplusplus
18774 extern "C"
18775 #endif
18776 char shl_load ();
18777 int
18778 main ()
18779 {
18780 return shl_load ();
18781   ;
18782   return 0;
18783 }
18784 _ACEOF
18785 if ac_fn_c_try_link "$LINENO"; then :
18786   ac_cv_lib_dld_shl_load=yes
18787 else
18788   ac_cv_lib_dld_shl_load=no
18789 fi
18790 rm -f core conftest.err conftest.$ac_objext \
18791     conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18793 fi
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18795 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18796 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18797
18798 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
18799
18800             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
18801             LIBADD_SHL_LOAD="-ldld"
18802 fi
18803
18804 fi
18805
18806
18807
18808 case $host_os in
18809 darwin[1567].*)
18810 # We only want this for pre-Mac OS X 10.4.
18811   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
18812 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
18813
18814 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
18815
18816         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
18817 fi
18818
18819   ;;
18820 beos*)
18821   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
18822   ;;
18823 cygwin* | mingw* | os2* | pw32*)
18824   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
18825 "
18826 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
18827   ac_have_decl=1
18828 else
18829   ac_have_decl=0
18830 fi
18831
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
18834 _ACEOF
18835
18836   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
18837   ;;
18838 esac
18839
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18841 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18842 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18843   $as_echo_n "(cached) " >&6
18844 else
18845   ac_check_lib_save_LIBS=$LIBS
18846 LIBS="-ldld  $LIBS"
18847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h.  */
18849
18850 /* Override any GCC internal prototype to avoid an error.
18851    Use char because int might match the return type of a GCC
18852    builtin and then its argument prototype would still apply.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char dld_link ();
18857 int
18858 main ()
18859 {
18860 return dld_link ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 if ac_fn_c_try_link "$LINENO"; then :
18866   ac_cv_lib_dld_dld_link=yes
18867 else
18868   ac_cv_lib_dld_dld_link=no
18869 fi
18870 rm -f core conftest.err conftest.$ac_objext \
18871     conftest$ac_exeext conftest.$ac_ext
18872 LIBS=$ac_check_lib_save_LIBS
18873 fi
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18875 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18876 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18877
18878 $as_echo "#define HAVE_DLD 1" >>confdefs.h
18879
18880                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
18881 fi
18882
18883
18884
18885
18886 LT_DLPREOPEN=
18887 if test -n "$LT_DLLOADERS"
18888 then
18889   for lt_loader in $LT_DLLOADERS; do
18890     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
18891   done
18892
18893 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
18894
18895 fi
18896
18897
18898 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
18899
18900
18901 ac_ext=c
18902 ac_cpp='$CPP $CPPFLAGS'
18903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18906
18907
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18909 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18910 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
18911   $as_echo_n "(cached) " >&6
18912 else
18913   lt_cv_sys_symbol_underscore=no
18914   cat > conftest.$ac_ext <<_LT_EOF
18915 void nm_test_func(){}
18916 int main(){nm_test_func;return 0;}
18917 _LT_EOF
18918   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18919   (eval $ac_compile) 2>&5
18920   ac_status=$?
18921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18922   test $ac_status = 0; }; then
18923     # Now try to grab the symbols.
18924     ac_nlist=conftest.nm
18925     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18926   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18927   ac_status=$?
18928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929   test $ac_status = 0; } && test -s "$ac_nlist"; then
18930       # See whether the symbols have a leading underscore.
18931       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18932         lt_cv_sys_symbol_underscore=yes
18933       else
18934         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18935           :
18936         else
18937           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18938         fi
18939       fi
18940     else
18941       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18942     fi
18943   else
18944     echo "configure: failed program was:" >&5
18945     cat conftest.c >&5
18946   fi
18947   rm -rf conftest*
18948
18949 fi
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18951 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18952   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18953
18954
18955 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18956   if test x"$libltdl_cv_func_dlopen" = xyes ||
18957      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18958         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18959 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18960 if test "${libltdl_cv_need_uscore+set}" = set; then :
18961   $as_echo_n "(cached) " >&6
18962 else
18963   libltdl_cv_need_uscore=unknown
18964           save_LIBS="$LIBS"
18965           LIBS="$LIBS $LIBADD_DLOPEN"
18966           if test "$cross_compiling" = yes; then :
18967   libltdl_cv_need_uscore=cross
18968 else
18969   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18970   lt_status=$lt_dlunknown
18971   cat > conftest.$ac_ext <<_LT_EOF
18972 #line 18972 "configure"
18973 #include "confdefs.h"
18974
18975 #if HAVE_DLFCN_H
18976 #include <dlfcn.h>
18977 #endif
18978
18979 #include <stdio.h>
18980
18981 #ifdef RTLD_GLOBAL
18982 #  define LT_DLGLOBAL           RTLD_GLOBAL
18983 #else
18984 #  ifdef DL_GLOBAL
18985 #    define LT_DLGLOBAL         DL_GLOBAL
18986 #  else
18987 #    define LT_DLGLOBAL         0
18988 #  endif
18989 #endif
18990
18991 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18992    find out it does not work in some platform. */
18993 #ifndef LT_DLLAZY_OR_NOW
18994 #  ifdef RTLD_LAZY
18995 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18996 #  else
18997 #    ifdef DL_LAZY
18998 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18999 #    else
19000 #      ifdef RTLD_NOW
19001 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19002 #      else
19003 #        ifdef DL_NOW
19004 #          define LT_DLLAZY_OR_NOW      DL_NOW
19005 #        else
19006 #          define LT_DLLAZY_OR_NOW      0
19007 #        endif
19008 #      endif
19009 #    endif
19010 #  endif
19011 #endif
19012
19013 void fnord() { int i=42;}
19014 int main ()
19015 {
19016   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19017   int status = $lt_dlunknown;
19018
19019   if (self)
19020     {
19021       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19022       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19023       /* dlclose (self); */
19024     }
19025   else
19026     puts (dlerror ());
19027
19028   return status;
19029 }
19030 _LT_EOF
19031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19032   (eval $ac_link) 2>&5
19033   ac_status=$?
19034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19035   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19036     (./conftest; exit; ) >&5 2>/dev/null
19037     lt_status=$?
19038     case x$lt_status in
19039       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19040       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19041       x$lt_dlunknown|x*)  ;;
19042     esac
19043   else :
19044     # compilation failed
19045
19046   fi
19047 fi
19048 rm -fr conftest*
19049
19050           LIBS="$save_LIBS"
19051
19052 fi
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19054 $as_echo "$libltdl_cv_need_uscore" >&6; }
19055   fi
19056 fi
19057
19058 if test x"$libltdl_cv_need_uscore" = xyes; then
19059
19060 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19061
19062 fi
19063
19064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19065 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19066 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19067   $as_echo_n "(cached) " >&6
19068 else
19069   # PORTME does your system automatically load deplibs for dlopen?
19070   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19071   # For now, we just catch OSes we know something about -- in the
19072   # future, we'll try test this programmatically.
19073   lt_cv_sys_dlopen_deplibs=unknown
19074   case $host_os in
19075   aix3*|aix4.1.*|aix4.2.*)
19076     # Unknown whether this is true for these versions of AIX, but
19077     # we want this `case' here to explicitly catch those versions.
19078     lt_cv_sys_dlopen_deplibs=unknown
19079     ;;
19080   aix[4-9]*)
19081     lt_cv_sys_dlopen_deplibs=yes
19082     ;;
19083   amigaos*)
19084     case $host_cpu in
19085     powerpc)
19086       lt_cv_sys_dlopen_deplibs=no
19087       ;;
19088     esac
19089     ;;
19090   darwin*)
19091     # Assuming the user has installed a libdl from somewhere, this is true
19092     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19093     lt_cv_sys_dlopen_deplibs=yes
19094     ;;
19095   freebsd* | dragonfly*)
19096     lt_cv_sys_dlopen_deplibs=yes
19097     ;;
19098   gnu* | linux* | k*bsd*-gnu)
19099     # GNU and its variants, using gnu ld.so (Glibc)
19100     lt_cv_sys_dlopen_deplibs=yes
19101     ;;
19102   hpux10*|hpux11*)
19103     lt_cv_sys_dlopen_deplibs=yes
19104     ;;
19105   interix*)
19106     lt_cv_sys_dlopen_deplibs=yes
19107     ;;
19108   irix[12345]*|irix6.[01]*)
19109     # Catch all versions of IRIX before 6.2, and indicate that we don't
19110     # know how it worked for any of those versions.
19111     lt_cv_sys_dlopen_deplibs=unknown
19112     ;;
19113   irix*)
19114     # The case above catches anything before 6.2, and it's known that
19115     # at 6.2 and later dlopen does load deplibs.
19116     lt_cv_sys_dlopen_deplibs=yes
19117     ;;
19118   netbsd*)
19119     lt_cv_sys_dlopen_deplibs=yes
19120     ;;
19121   openbsd*)
19122     lt_cv_sys_dlopen_deplibs=yes
19123     ;;
19124   osf[1234]*)
19125     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19126     # it did *not* use an RPATH in a shared library to find objects the
19127     # library depends on, so we explicitly say `no'.
19128     lt_cv_sys_dlopen_deplibs=no
19129     ;;
19130   osf5.0|osf5.0a|osf5.1)
19131     # dlopen *does* load deplibs and with the right loader patch applied
19132     # it even uses RPATH in a shared library to search for shared objects
19133     # that the library depends on, but there's no easy way to know if that
19134     # patch is installed.  Since this is the case, all we can really
19135     # say is unknown -- it depends on the patch being installed.  If
19136     # it is, this changes to `yes'.  Without it, it would be `no'.
19137     lt_cv_sys_dlopen_deplibs=unknown
19138     ;;
19139   osf*)
19140     # the two cases above should catch all versions of osf <= 5.1.  Read
19141     # the comments above for what we know about them.
19142     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19143     # is used to find them so we can finally say `yes'.
19144     lt_cv_sys_dlopen_deplibs=yes
19145     ;;
19146   qnx*)
19147     lt_cv_sys_dlopen_deplibs=yes
19148     ;;
19149   solaris*)
19150     lt_cv_sys_dlopen_deplibs=yes
19151     ;;
19152   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19153     libltdl_cv_sys_dlopen_deplibs=yes
19154     ;;
19155   esac
19156
19157 fi
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19159 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19160 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19161
19162 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19163
19164 fi
19165
19166 :
19167
19168 for ac_header in argz.h
19169 do :
19170   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19171 "
19172 if test "x$ac_cv_header_argz_h" = x""yes; then :
19173   cat >>confdefs.h <<_ACEOF
19174 #define HAVE_ARGZ_H 1
19175 _ACEOF
19176
19177 fi
19178
19179 done
19180
19181
19182 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19183 #  include <argz.h>
19184 #endif
19185 "
19186 if test "x$ac_cv_type_error_t" = x""yes; then :
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define HAVE_ERROR_T 1
19190 _ACEOF
19191
19192
19193 else
19194
19195 $as_echo "#define error_t int" >>confdefs.h
19196
19197
19198 $as_echo "#define __error_t_defined 1" >>confdefs.h
19199
19200 fi
19201
19202
19203 ARGZ_H=
19204 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19205         argz_next argz_stringify
19206 do :
19207   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19209 eval as_val=\$$as_ac_var
19210    if test "x$as_val" = x""yes; then :
19211   cat >>confdefs.h <<_ACEOF
19212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19213 _ACEOF
19214
19215 else
19216   ARGZ_H=argz.h;
19217
19218   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19219
19220 fi
19221 done
19222
19223
19224 if test -z "$ARGZ_H"; then :
19225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19226 $as_echo_n "checking if argz actually works... " >&6; }
19227 if test "${lt_cv_sys_argz_works+set}" = set; then :
19228   $as_echo_n "(cached) " >&6
19229 else
19230   case $host_os in #(
19231          *cygwin*)
19232            lt_cv_sys_argz_works=no
19233            if test "$cross_compiling" != no; then
19234              lt_cv_sys_argz_works="guessing no"
19235            else
19236              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19237              save_IFS=$IFS
19238              IFS=-.
19239              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19240              IFS=$save_IFS
19241              lt_os_major=${2-0}
19242              lt_os_minor=${3-0}
19243              lt_os_micro=${4-0}
19244              if test "$lt_os_major" -gt 1 \
19245                 || { test "$lt_os_major" -eq 1 \
19246                   && { test "$lt_os_minor" -gt 5 \
19247                     || { test "$lt_os_minor" -eq 5 \
19248                       && test "$lt_os_micro" -gt 24; }; }; }; then
19249                lt_cv_sys_argz_works=yes
19250              fi
19251            fi
19252            ;; #(
19253          *) lt_cv_sys_argz_works=yes ;;
19254          esac
19255 fi
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19257 $as_echo "$lt_cv_sys_argz_works" >&6; }
19258      if test $lt_cv_sys_argz_works = yes; then :
19259
19260 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19261
19262 else
19263   ARGZ_H=argz.h
19264
19265
19266   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19267
19268 fi
19269 fi
19270
19271
19272
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19274 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19275 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19276   $as_echo_n "(cached) " >&6
19277 else
19278   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19279     libltdl_cv_preloaded_symbols=yes
19280   else
19281     libltdl_cv_preloaded_symbols=no
19282   fi
19283
19284 fi
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19286 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19287 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19288
19289 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19290
19291 fi
19292
19293 # Set options
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305 # Check whether --with-included_ltdl was given.
19306 if test "${with_included_ltdl+set}" = set; then :
19307   withval=$with_included_ltdl;
19308 fi
19309
19310
19311 if test "x$with_included_ltdl" != xyes; then
19312   # We are not being forced to use the included libltdl sources, so
19313   # decide whether there is a useful installed version we can use.
19314   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19315
19316 "
19317 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19318   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19319             #include <ltdl.h>
19320 "
19321 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19323 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19324 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327   ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lltdl  $LIBS"
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h.  */
19331
19332 /* Override any GCC internal prototype to avoid an error.
19333    Use char because int might match the return type of a GCC
19334    builtin and then its argument prototype would still apply.  */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 char lt_dladvise_preload ();
19339 int
19340 main ()
19341 {
19342 return lt_dladvise_preload ();
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 if ac_fn_c_try_link "$LINENO"; then :
19348   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19349 else
19350   ac_cv_lib_ltdl_lt_dladvise_preload=no
19351 fi
19352 rm -f core conftest.err conftest.$ac_objext \
19353     conftest$ac_exeext conftest.$ac_ext
19354 LIBS=$ac_check_lib_save_LIBS
19355 fi
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19357 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19358 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19359   with_included_ltdl=no
19360 else
19361   with_included_ltdl=yes
19362 fi
19363
19364 else
19365   with_included_ltdl=yes
19366 fi
19367
19368 else
19369   with_included_ltdl=yes
19370 fi
19371
19372
19373 fi
19374
19375
19376
19377
19378 # Check whether --with-ltdl_include was given.
19379 if test "${with_ltdl_include+set}" = set; then :
19380   withval=$with_ltdl_include;
19381 fi
19382
19383
19384 if test -n "$with_ltdl_include"; then
19385   if test -f "$with_ltdl_include/ltdl.h"; then :
19386   else
19387     as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19388   fi
19389 else
19390   with_ltdl_include=no
19391 fi
19392
19393
19394 # Check whether --with-ltdl_lib was given.
19395 if test "${with_ltdl_lib+set}" = set; then :
19396   withval=$with_ltdl_lib;
19397 fi
19398
19399
19400 if test -n "$with_ltdl_lib"; then
19401   if test -f "$with_ltdl_lib/libltdl.la"; then :
19402   else
19403     as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19404   fi
19405 else
19406   with_ltdl_lib=no
19407 fi
19408
19409 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19410   ,yes,no,no,)
19411         case $enable_ltdl_convenience in
19412   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19413   "") enable_ltdl_convenience=yes
19414       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19415 esac
19416 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19417 LTDLDEPS=$LIBLTDL
19418 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19419
19420
19421
19422
19423
19424 # For backwards non-gettext consistent compatibility...
19425 INCLTDL="$LTDLINCL"
19426
19427
19428         ;;
19429   ,no,no,no,)
19430         # If the included ltdl is not to be used, then use the
19431         # preinstalled libltdl we found.
19432
19433 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19434
19435         LIBLTDL=-lltdl
19436         LTDLDEPS=
19437         LTDLINCL=
19438         ;;
19439   ,no*,no,*)
19440         as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19441         ;;
19442   *)    with_included_ltdl=no
19443         LIBLTDL="-L$with_ltdl_lib -lltdl"
19444         LTDLDEPS=
19445         LTDLINCL="-I$with_ltdl_include"
19446         ;;
19447 esac
19448 INCLTDL="$LTDLINCL"
19449
19450 # Report our decision...
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19452 $as_echo_n "checking where to find libltdl headers... " >&6; }
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19454 $as_echo "$LTDLINCL" >&6; }
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19456 $as_echo_n "checking where to find libltdl library... " >&6; }
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19458 $as_echo "$LIBLTDL" >&6; }
19459
19460
19461
19462 # Check whether --enable-ltdl-install was given.
19463 if test "${enable_ltdl_install+set}" = set; then :
19464   enableval=$enable_ltdl_install;
19465 fi
19466
19467
19468 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19469   *yes*) ;;
19470   *) enable_ltdl_convenience=yes ;;
19471 esac
19472
19473  if test x"${enable_ltdl_install-no}" != xno; then
19474   INSTALL_LTDL_TRUE=
19475   INSTALL_LTDL_FALSE='#'
19476 else
19477   INSTALL_LTDL_TRUE='#'
19478   INSTALL_LTDL_FALSE=
19479 fi
19480
19481   if test x"${enable_ltdl_convenience-no}" != xno; then
19482   CONVENIENCE_LTDL_TRUE=
19483   CONVENIENCE_LTDL_FALSE='#'
19484 else
19485   CONVENIENCE_LTDL_TRUE='#'
19486   CONVENIENCE_LTDL_FALSE=
19487 fi
19488
19489
19490
19491
19492
19493
19494
19495 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19496 # the user used.  This is so that ltdl.h can pick up the parent projects
19497 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19498 # definitions required by ltdl.c.
19499 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19500
19501
19502
19503 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19504 do :
19505   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19506 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19507 "
19508 eval as_val=\$$as_ac_Header
19509    if test "x$as_val" = x""yes; then :
19510   cat >>confdefs.h <<_ACEOF
19511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19512 _ACEOF
19513
19514 fi
19515
19516 done
19517
19518
19519 for ac_func in closedir opendir readdir
19520 do :
19521   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19523 eval as_val=\$$as_ac_var
19524    if test "x$as_val" = x""yes; then :
19525   cat >>confdefs.h <<_ACEOF
19526 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19527 _ACEOF
19528
19529 else
19530
19531
19532   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19533
19534 fi
19535 done
19536
19537 for ac_func in strlcat strlcpy
19538 do :
19539   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19540 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19541 eval as_val=\$$as_ac_var
19542    if test "x$as_val" = x""yes; then :
19543   cat >>confdefs.h <<_ACEOF
19544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545 _ACEOF
19546
19547 else
19548
19549
19550   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19551
19552 fi
19553 done
19554
19555
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define LT_LIBEXT "$libext"
19559 _ACEOF
19560
19561
19562 name=ltdl
19563 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19564
19565
19566
19567
19568
19569
19570
19571
19572 # Only expand once:
19573
19574
19575
19576 # Check to see if building shared libraries
19577 libtool_build_shared_libs='no'
19578 if test "$enable_shared" = 'yes'; then
19579     libtool_build_shared_libs='yes'
19580 fi
19581
19582 # Check to see if building static libraries
19583 libtool_build_static_libs='no'
19584 if test "$enable_static" = 'yes'; then
19585     libtool_build_static_libs='yes'
19586 fi
19587
19588  if test "${libtool_build_shared_libs}" = 'yes'; then
19589   WITH_SHARED_LIBS_TRUE=
19590   WITH_SHARED_LIBS_FALSE='#'
19591 else
19592   WITH_SHARED_LIBS_TRUE='#'
19593   WITH_SHARED_LIBS_FALSE=
19594 fi
19595
19596 #
19597 # Enable support for building loadable modules
19598 #
19599
19600 # Check whether --with-modules was given.
19601 if test "${with_modules+set}" = set; then :
19602   withval=$with_modules; with_modules=$withval
19603 else
19604   with_modules='no'
19605 fi
19606
19607
19608 # Only allow building loadable modules if we are building shared libraries
19609 if test "$with_modules" != 'no' ; then
19610     if test "$libtool_build_shared_libs" = 'no'; then
19611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19612 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19613         with_modules='no'
19614     fi
19615 fi
19616 if test "$with_modules" != 'no'; then
19617
19618 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19619
19620 fi
19621  if test "$with_modules" != 'no'; then
19622   WITH_MODULES_TRUE=
19623   WITH_MODULES_FALSE='#'
19624 else
19625   WITH_MODULES_TRUE='#'
19626   WITH_MODULES_FALSE=
19627 fi
19628
19629
19630 # Enable building/use of libltdl if we are building shared libraries regardless
19631 # of whether modules are built or not.
19632 with_ltdl='no'
19633 if test "$libtool_build_shared_libs" != 'no'; then
19634     with_ltdl='yes'
19635 fi
19636
19637  if test "$with_ltdl" != 'no'; then
19638   WITH_LTDL_TRUE=
19639   WITH_LTDL_FALSE='#'
19640 else
19641   WITH_LTDL_TRUE='#'
19642   WITH_LTDL_FALSE=
19643 fi
19644
19645 if test "$with_ltdl" != 'no'; then
19646
19647 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19648
19649
19650     # Set DLLDFLAGS
19651     if test X"$enable_shared" = Xyes; then
19652         DLLDFLAGS=-export-dynamic
19653
19654     fi
19655 fi
19656
19657 # Enable build using delegate libraries built in subdirectories rather than installed
19658 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19659 # Check whether --enable-delegate-build was given.
19660 if test "${enable_delegate_build+set}" = set; then :
19661   enableval=$enable_delegate_build; enable_delegate_build=$enableval
19662 else
19663   enable_delegate_build='no'
19664 fi
19665
19666
19667 # Check whether --enable-deprecated was given.
19668 if test "${enable_deprecated+set}" = set; then :
19669   enableval=$enable_deprecated; enable_deprecated=$enableval
19670 else
19671   enable_deprecated='no'
19672 fi
19673
19674
19675 if test "$enable_deprecated" = 'yes'; then
19676
19677 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
19678
19679 else
19680   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
19681 fi
19682
19683 # Build a version of ImageMagick which operates uninstalled.
19684 # Used to build distributions located via MAGICK_HOME / executable path
19685 # Check whether --enable-installed was given.
19686 if test "${enable_installed+set}" = set; then :
19687   enableval=$enable_installed; enable_installed=$enableval
19688 else
19689   enable_installed='yes'
19690 fi
19691
19692
19693 if test "$enable_installed" = 'yes'; then
19694
19695 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
19696
19697 else
19698     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
19699 fi
19700
19701 # Permit enciphering and deciphering image pixels.
19702 # Check whether --enable-cipher was given.
19703 if test "${enable_cipher+set}" = set; then :
19704   enableval=$enable_cipher; enable_cipher=$enableval
19705 else
19706   enable_cipher='yes'
19707 fi
19708
19709
19710 if test "$enable_cipher" = 'yes'; then
19711
19712 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
19713
19714 fi
19715
19716 # Build an embeddable version of ImageMagick.
19717 # Check whether --enable-embeddable was given.
19718 if test "${enable_embeddable+set}" = set; then :
19719   enableval=$enable_embeddable; enable_embeddable=$enableval
19720 else
19721   enable_embeddable='no'
19722 fi
19723
19724
19725 if test "$enable_embeddable" = 'yes'; then
19726
19727 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
19728
19729 fi
19730
19731 # Build a high dynamic range version of ImageMagick.
19732 # Check whether --enable-hdri was given.
19733 if test "${enable_hdri+set}" = set; then :
19734   enableval=$enable_hdri; enable_hdri=$enableval
19735 else
19736   enable_hdri='no'
19737 fi
19738
19739
19740 MAGICK_HDRI=""
19741 if test "$enable_hdri" = 'yes'; then
19742     MAGICK_HDRI="HDRI"
19743
19744 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
19745
19746 fi
19747
19748 # Build a version of ImageMagick with assert statements.
19749 # Check whether --enable-assert was given.
19750 if test "${enable_assert+set}" = set; then :
19751   enableval=$enable_assert; enable_assert=$enableval
19752 else
19753   enable_assert='yes'
19754 fi
19755
19756
19757 if test "$enable_assert" = 'no'; then
19758
19759 $as_echo "#define NDEBUG 1" >>confdefs.h
19760
19761 fi
19762
19763 # Add configure option --enable-maintainer-mode which enables dependency
19764 # checking and generation useful to package maintainers.  This is made an
19765 # option to avoid confusing end users.
19766
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
19768 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
19769     # Check whether --enable-maintainer-mode was given.
19770 if test "${enable_maintainer_mode+set}" = set; then :
19771   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19772 else
19773   USE_MAINTAINER_MODE=no
19774 fi
19775
19776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
19777 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19778    if test $USE_MAINTAINER_MODE = yes; then
19779   MAINTAINER_MODE_TRUE=
19780   MAINTAINER_MODE_FALSE='#'
19781 else
19782   MAINTAINER_MODE_TRUE='#'
19783   MAINTAINER_MODE_FALSE=
19784 fi
19785
19786   MAINT=$MAINTAINER_MODE_TRUE
19787
19788
19789
19790
19791 # Enable ccmalloc memory debugging support
19792 # Check whether --enable-ccmalloc was given.
19793 if test "${enable_ccmalloc+set}" = set; then :
19794   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
19795 else
19796   enable_ccmalloc='no'
19797 fi
19798
19799
19800 # Enable Electric Fence memory debugging support
19801 # Check whether --enable-efence was given.
19802 if test "${enable_efence+set}" = set; then :
19803   enableval=$enable_efence; enable_efence=$enableval
19804 else
19805   enable_efence='no'
19806 fi
19807
19808
19809 # Enable prof-based profiling support
19810 # Check whether --enable-prof was given.
19811 if test "${enable_prof+set}" = set; then :
19812   enableval=$enable_prof; enable_prof=$enableval
19813 else
19814   enable_prof='no'
19815 fi
19816
19817
19818 # Enable gprof-based profiling support
19819 # Check whether --enable-gprof was given.
19820 if test "${enable_gprof+set}" = set; then :
19821   enableval=$enable_gprof; enable_gprof=$enableval
19822 else
19823   enable_gprof='no'
19824 fi
19825
19826
19827 # Enable gcov-based profiling support
19828 # Check whether --enable-gcov was given.
19829 if test "${enable_gcov+set}" = set; then :
19830   enableval=$enable_gcov; enable_gcov=$enableval
19831 else
19832   enable_gcov='no'
19833 fi
19834
19835
19836 enable_profiling='no'
19837 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
19838     enable_profiling='yes'
19839     if test "$libtool_build_shared_libs" = 'yes'; then
19840         echo "Warning: Can not profile code using shared libraries"
19841     fi
19842 fi
19843
19844 # Magick API method prefix
19845
19846 # Check whether --with-method-prefix was given.
19847 if test "${with_method_prefix+set}" = set; then :
19848   withval=$with_method_prefix; with_method_prefix=$enableval
19849 else
19850   with_method_prefix=''
19851 fi
19852
19853
19854 if test "$with_method_prefix" != ''; then
19855
19856 cat >>confdefs.h <<_ACEOF
19857 #define NAMESPACE_PREFIX $with_method_prefix
19858 _ACEOF
19859
19860 fi
19861
19862 # Number of bits in a Quantum
19863
19864 # Check whether --with-quantum-depth was given.
19865 if test "${with_quantum_depth+set}" = set; then :
19866   withval=$with_quantum_depth; with_quantum_depth=$withval
19867 else
19868   with_quantum_depth=16
19869 fi
19870
19871
19872 if test "$with_quantum_depth" != '8'; then
19873     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
19874 fi
19875
19876 case "${with_quantum_depth}" in
19877     8 ) ;;
19878     16 ) ;;
19879     32 ) ;;
19880     64 ) ;;
19881     * ) { as_fn_set_status 16
19882 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
19883 esac
19884 QUANTUM_DEPTH="$with_quantum_depth"
19885
19886 cat >>confdefs.h <<_ACEOF
19887 #define QUANTUM_DEPTH $QUANTUM_DEPTH
19888 _ACEOF
19889
19890
19891 # Set pixel cache threshold
19892
19893 # Check whether --with-cache was given.
19894 if test "${with_cache+set}" = set; then :
19895   withval=$with_cache; with_cache=$withval
19896 else
19897   with_cache=''
19898 fi
19899
19900
19901 if test "$with_cache" != ''; then
19902
19903 cat >>confdefs.h <<_ACEOF
19904 #define PixelCacheThreshold $with_cache
19905 _ACEOF
19906
19907     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
19908 fi
19909
19910 # Disable/Enable support for full delegate paths
19911
19912 # Check whether --with-frozenpaths was given.
19913 if test "${with_frozenpaths+set}" = set; then :
19914   withval=$with_frozenpaths; with_frozenpaths=$withval
19915 else
19916   with_frozenpaths='no'
19917 fi
19918
19919
19920 # Enable build/install of Magick++
19921
19922 # Check whether --with-magick-plus-plus was given.
19923 if test "${with_magick_plus_plus+set}" = set; then :
19924   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
19925 else
19926   with_magick_plus_plus='yes'
19927 fi
19928
19929
19930 # Disable build/install of PerlMagick.
19931
19932 # Check whether --with-perl was given.
19933 if test "${with_perl+set}" = set; then :
19934   withval=$with_perl; with_perl=$withval
19935 else
19936   with_perl=$libtool_build_shared_libs
19937 fi
19938
19939
19940 # Options to pass when configuring PerlMagick
19941
19942 # Check whether --with-perl-options was given.
19943 if test "${with_perl_options+set}" = set; then :
19944   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
19945 fi
19946
19947
19948
19949 # Enable umem, object-caching memory allocation library.
19950
19951 # Check whether --with-umem was given.
19952 if test "${with_umem+set}" = set; then :
19953   withval=$with_umem; with_umem=$withval
19954 else
19955   with_umem='no'
19956 fi
19957
19958 if test "$with_umem" != 'yes' ; then
19959     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19960 fi
19961
19962 #
19963 # Specify path to shared libstdc++ if not in normal location
19964 #
19965
19966 # Check whether --with-libstdc was given.
19967 if test "${with_libstdc+set}" = set; then :
19968   withval=$with_libstdc; with_libstdc=$withval
19969 else
19970   with_libstdc=''
19971 fi
19972
19973
19974 if test "$with_libstdc" != ''; then
19975     if test -d "$with_libstdc"; then
19976         LIBSTDCLDFLAGS="-L$with_libstdc"
19977     fi
19978 fi
19979
19980
19981 # Does gcc required -traditional?
19982 if test $ac_cv_c_compiler_gnu = yes; then
19983     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19984 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19985 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19986   $as_echo_n "(cached) " >&6
19987 else
19988     ac_pattern="Autoconf.*'x'"
19989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h.  */
19991 #include <sgtty.h>
19992 Autoconf TIOCGETP
19993 _ACEOF
19994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19995   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19996   ac_cv_prog_gcc_traditional=yes
19997 else
19998   ac_cv_prog_gcc_traditional=no
19999 fi
20000 rm -f conftest*
20001
20002
20003   if test $ac_cv_prog_gcc_traditional = no; then
20004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005 /* end confdefs.h.  */
20006 #include <termio.h>
20007 Autoconf TCGETA
20008 _ACEOF
20009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20010   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20011   ac_cv_prog_gcc_traditional=yes
20012 fi
20013 rm -f conftest*
20014
20015   fi
20016 fi
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20018 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20019   if test $ac_cv_prog_gcc_traditional = yes; then
20020     CC="$CC -traditional"
20021   fi
20022 fi
20023
20024
20025 ########
20026 #
20027 # Set defines required to build DLLs and modules using MinGW
20028 #
20029 ########
20030 # These options are set for multi-thread DLL module build
20031 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20032 #  module:              _DLL
20033 #  executable/Magick++: _DLL _MAGICKMOD_
20034 MODULE_EXTRA_CPPFLAGS=''
20035 LIBRARY_EXTRA_CPPFLAGS=''
20036 if test "${native_win32_build}" = 'yes'; then
20037     if test "${libtool_build_shared_libs}" = 'yes'; then
20038         CPPFLAGS="$CPPFLAGS -D_DLL"
20039         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20040         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20041         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20042         if test "$with_modules" = 'yes'; then
20043             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20044         else
20045             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20046         fi
20047     else
20048         CPPFLAGS="$CPPFLAGS -D_LIB"
20049         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20050         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20051     fi
20052     if test "$with_threads" = 'yes'; then
20053          CPPFLAGS="$CPPFLAGS -D_MT"
20054          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20055          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20056     fi
20057 fi
20058
20059
20060
20061 # Check standard headers
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20063 $as_echo_n "checking for ANSI C header files... " >&6; }
20064 if test "${ac_cv_header_stdc+set}" = set; then :
20065   $as_echo_n "(cached) " >&6
20066 else
20067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h.  */
20069 #include <stdlib.h>
20070 #include <stdarg.h>
20071 #include <string.h>
20072 #include <float.h>
20073
20074 int
20075 main ()
20076 {
20077
20078   ;
20079   return 0;
20080 }
20081 _ACEOF
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083   ac_cv_header_stdc=yes
20084 else
20085   ac_cv_header_stdc=no
20086 fi
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088
20089 if test $ac_cv_header_stdc = yes; then
20090   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h.  */
20093 #include <string.h>
20094
20095 _ACEOF
20096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20097   $EGREP "memchr" >/dev/null 2>&1; then :
20098
20099 else
20100   ac_cv_header_stdc=no
20101 fi
20102 rm -f conftest*
20103
20104 fi
20105
20106 if test $ac_cv_header_stdc = yes; then
20107   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h.  */
20110 #include <stdlib.h>
20111
20112 _ACEOF
20113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20114   $EGREP "free" >/dev/null 2>&1; then :
20115
20116 else
20117   ac_cv_header_stdc=no
20118 fi
20119 rm -f conftest*
20120
20121 fi
20122
20123 if test $ac_cv_header_stdc = yes; then
20124   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20125   if test "$cross_compiling" = yes; then :
20126   :
20127 else
20128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h.  */
20130 #include <ctype.h>
20131 #include <stdlib.h>
20132 #if ((' ' & 0x0FF) == 0x020)
20133 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20134 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20135 #else
20136 # define ISLOWER(c) \
20137                    (('a' <= (c) && (c) <= 'i') \
20138                      || ('j' <= (c) && (c) <= 'r') \
20139                      || ('s' <= (c) && (c) <= 'z'))
20140 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20141 #endif
20142
20143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20144 int
20145 main ()
20146 {
20147   int i;
20148   for (i = 0; i < 256; i++)
20149     if (XOR (islower (i), ISLOWER (i))
20150         || toupper (i) != TOUPPER (i))
20151       return 2;
20152   return 0;
20153 }
20154 _ACEOF
20155 if ac_fn_c_try_run "$LINENO"; then :
20156
20157 else
20158   ac_cv_header_stdc=no
20159 fi
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20161   conftest.$ac_objext conftest.beam conftest.$ac_ext
20162 fi
20163
20164 fi
20165 fi
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20167 $as_echo "$ac_cv_header_stdc" >&6; }
20168 if test $ac_cv_header_stdc = yes; then
20169
20170 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20171
20172 fi
20173
20174 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20176     header files.  Compilation cannot proceed.  Please install the ANSI C
20177     headers and rerun this script." >&5
20178 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20179     header files.  Compilation cannot proceed.  Please install the ANSI C
20180     headers and rerun this script." >&2;};
20181 fi
20182
20183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20184 $as_echo_n "checking whether to enable assertions... " >&6; }
20185   # Check whether --enable-assert was given.
20186 if test "${enable_assert+set}" = set; then :
20187   enableval=$enable_assert; ac_enable_assert=$enableval
20188      if       test "x$enableval" = xno; then :
20189
20190 $as_echo "#define NDEBUG 1" >>confdefs.h
20191
20192 elif test "x$enableval" != xyes; then :
20193   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20194 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20195         ac_enable_assert=yes
20196 fi
20197 else
20198   ac_enable_assert=yes
20199 fi
20200
20201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20202 $as_echo "$ac_enable_assert" >&6; }
20203
20204 ac_header_dirent=no
20205 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20206   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20208 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20210   $as_echo_n "(cached) " >&6
20211 else
20212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h.  */
20214 #include <sys/types.h>
20215 #include <$ac_hdr>
20216
20217 int
20218 main ()
20219 {
20220 if ((DIR *) 0)
20221 return 0;
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 if ac_fn_c_try_compile "$LINENO"; then :
20227   eval "$as_ac_Header=yes"
20228 else
20229   eval "$as_ac_Header=no"
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 fi
20233 eval ac_res=\$$as_ac_Header
20234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20235 $as_echo "$ac_res" >&6; }
20236 eval as_val=\$$as_ac_Header
20237    if test "x$as_val" = x""yes; then :
20238   cat >>confdefs.h <<_ACEOF
20239 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20240 _ACEOF
20241
20242 ac_header_dirent=$ac_hdr; break
20243 fi
20244
20245 done
20246 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20247 if test $ac_header_dirent = dirent.h; then
20248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20249 $as_echo_n "checking for library containing opendir... " >&6; }
20250 if test "${ac_cv_search_opendir+set}" = set; then :
20251   $as_echo_n "(cached) " >&6
20252 else
20253   ac_func_search_save_LIBS=$LIBS
20254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20255 /* end confdefs.h.  */
20256
20257 /* Override any GCC internal prototype to avoid an error.
20258    Use char because int might match the return type of a GCC
20259    builtin and then its argument prototype would still apply.  */
20260 #ifdef __cplusplus
20261 extern "C"
20262 #endif
20263 char opendir ();
20264 int
20265 main ()
20266 {
20267 return opendir ();
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 for ac_lib in '' dir; do
20273   if test -z "$ac_lib"; then
20274     ac_res="none required"
20275   else
20276     ac_res=-l$ac_lib
20277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20278   fi
20279   if ac_fn_c_try_link "$LINENO"; then :
20280   ac_cv_search_opendir=$ac_res
20281 fi
20282 rm -f core conftest.err conftest.$ac_objext \
20283     conftest$ac_exeext
20284   if test "${ac_cv_search_opendir+set}" = set; then :
20285   break
20286 fi
20287 done
20288 if test "${ac_cv_search_opendir+set}" = set; then :
20289
20290 else
20291   ac_cv_search_opendir=no
20292 fi
20293 rm conftest.$ac_ext
20294 LIBS=$ac_func_search_save_LIBS
20295 fi
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20297 $as_echo "$ac_cv_search_opendir" >&6; }
20298 ac_res=$ac_cv_search_opendir
20299 if test "$ac_res" != no; then :
20300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20301
20302 fi
20303
20304 else
20305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20306 $as_echo_n "checking for library containing opendir... " >&6; }
20307 if test "${ac_cv_search_opendir+set}" = set; then :
20308   $as_echo_n "(cached) " >&6
20309 else
20310   ac_func_search_save_LIBS=$LIBS
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h.  */
20313
20314 /* Override any GCC internal prototype to avoid an error.
20315    Use char because int might match the return type of a GCC
20316    builtin and then its argument prototype would still apply.  */
20317 #ifdef __cplusplus
20318 extern "C"
20319 #endif
20320 char opendir ();
20321 int
20322 main ()
20323 {
20324 return opendir ();
20325   ;
20326   return 0;
20327 }
20328 _ACEOF
20329 for ac_lib in '' x; do
20330   if test -z "$ac_lib"; then
20331     ac_res="none required"
20332   else
20333     ac_res=-l$ac_lib
20334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20335   fi
20336   if ac_fn_c_try_link "$LINENO"; then :
20337   ac_cv_search_opendir=$ac_res
20338 fi
20339 rm -f core conftest.err conftest.$ac_objext \
20340     conftest$ac_exeext
20341   if test "${ac_cv_search_opendir+set}" = set; then :
20342   break
20343 fi
20344 done
20345 if test "${ac_cv_search_opendir+set}" = set; then :
20346
20347 else
20348   ac_cv_search_opendir=no
20349 fi
20350 rm conftest.$ac_ext
20351 LIBS=$ac_func_search_save_LIBS
20352 fi
20353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20354 $as_echo "$ac_cv_search_opendir" >&6; }
20355 ac_res=$ac_cv_search_opendir
20356 if test "$ac_res" != no; then :
20357   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20358
20359 fi
20360
20361 fi
20362
20363
20364 # Check additional headers
20365 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
20366 do :
20367   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20368 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20369 eval as_val=\$$as_ac_Header
20370    if test "x$as_val" = x""yes; then :
20371   cat >>confdefs.h <<_ACEOF
20372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20373 _ACEOF
20374
20375 fi
20376
20377 done
20378
20379
20380 ########
20381 #
20382 # Checks for typedefs, structures, and compiler characteristics.
20383 #
20384 ########
20385
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20387 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20388 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20389   $as_echo_n "(cached) " >&6
20390 else
20391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h.  */
20393
20394 #include <stdbool.h>
20395 #ifndef bool
20396  "error: bool is not defined"
20397 #endif
20398 #ifndef false
20399  "error: false is not defined"
20400 #endif
20401 #if false
20402  "error: false is not 0"
20403 #endif
20404 #ifndef true
20405  "error: true is not defined"
20406 #endif
20407 #if true != 1
20408  "error: true is not 1"
20409 #endif
20410 #ifndef __bool_true_false_are_defined
20411  "error: __bool_true_false_are_defined is not defined"
20412 #endif
20413
20414         struct s { _Bool s: 1; _Bool t; } s;
20415
20416         char a[true == 1 ? 1 : -1];
20417         char b[false == 0 ? 1 : -1];
20418         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20419         char d[(bool) 0.5 == true ? 1 : -1];
20420         bool e = &s;
20421         char f[(_Bool) 0.0 == false ? 1 : -1];
20422         char g[true];
20423         char h[sizeof (_Bool)];
20424         char i[sizeof s.t];
20425         enum { j = false, k = true, l = false * true, m = true * 256 };
20426         /* The following fails for
20427            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20428         _Bool n[m];
20429         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20430         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20431 #       if defined __xlc__ || defined __GNUC__
20432          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20433             reported by James Lemley on 2005-10-05; see
20434             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20435             This test is not quite right, since xlc is allowed to
20436             reject this program, as the initializer for xlcbug is
20437             not one of the forms that C requires support for.
20438             However, doing the test right would require a runtime
20439             test, and that would make cross-compilation harder.
20440             Let us hope that IBM fixes the xlc bug, and also adds
20441             support for this kind of constant expression.  In the
20442             meantime, this test will reject xlc, which is OK, since
20443             our stdbool.h substitute should suffice.  We also test
20444             this with GCC, where it should work, to detect more
20445             quickly whether someone messes up the test in the
20446             future.  */
20447          char digs[] = "0123456789";
20448          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20449 #       endif
20450         /* Catch a bug in an HP-UX C compiler.  See
20451            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20452            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20453          */
20454         _Bool q = true;
20455         _Bool *pq = &q;
20456
20457 int
20458 main ()
20459 {
20460
20461         *pq |= q;
20462         *pq |= ! q;
20463         /* Refer to every declared value, to avoid compiler optimizations.  */
20464         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20465                 + !m + !n + !o + !p + !q + !pq);
20466
20467   ;
20468   return 0;
20469 }
20470 _ACEOF
20471 if ac_fn_c_try_compile "$LINENO"; then :
20472   ac_cv_header_stdbool_h=yes
20473 else
20474   ac_cv_header_stdbool_h=no
20475 fi
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20477 fi
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20479 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20480 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20481 if test "x$ac_cv_type__Bool" = x""yes; then :
20482
20483 cat >>confdefs.h <<_ACEOF
20484 #define HAVE__BOOL 1
20485 _ACEOF
20486
20487
20488 fi
20489
20490 if test $ac_cv_header_stdbool_h = yes; then
20491
20492 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20493
20494 fi
20495
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20497 $as_echo_n "checking for working volatile... " >&6; }
20498 if test "${ac_cv_c_volatile+set}" = set; then :
20499   $as_echo_n "(cached) " >&6
20500 else
20501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20502 /* end confdefs.h.  */
20503
20504 int
20505 main ()
20506 {
20507
20508 volatile int x;
20509 int * volatile y = (int *) 0;
20510 return !x && !y;
20511   ;
20512   return 0;
20513 }
20514 _ACEOF
20515 if ac_fn_c_try_compile "$LINENO"; then :
20516   ac_cv_c_volatile=yes
20517 else
20518   ac_cv_c_volatile=no
20519 fi
20520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20521 fi
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20523 $as_echo "$ac_cv_c_volatile" >&6; }
20524 if test $ac_cv_c_volatile = no; then
20525
20526 $as_echo "#define volatile /**/" >>confdefs.h
20527
20528 fi
20529
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20531 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20532 if test "${ac_cv_c_stringize+set}" = set; then :
20533   $as_echo_n "(cached) " >&6
20534 else
20535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h.  */
20537 #define x(y) #y
20538
20539 char *s = x(teststring);
20540 _ACEOF
20541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20542   $EGREP "#teststring" >/dev/null 2>&1; then :
20543   ac_cv_c_stringize=no
20544 else
20545   ac_cv_c_stringize=yes
20546 fi
20547 rm -f conftest*
20548
20549 fi
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20551 $as_echo "$ac_cv_c_stringize" >&6; }
20552 if test $ac_cv_c_stringize = yes; then
20553
20554 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20555
20556 fi
20557
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20559 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20560 if test "${ac_cv_header_stat_broken+set}" = set; then :
20561   $as_echo_n "(cached) " >&6
20562 else
20563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h.  */
20565 #include <sys/types.h>
20566 #include <sys/stat.h>
20567
20568 #if defined S_ISBLK && defined S_IFDIR
20569 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20570 #endif
20571
20572 #if defined S_ISBLK && defined S_IFCHR
20573 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20574 #endif
20575
20576 #if defined S_ISLNK && defined S_IFREG
20577 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20578 #endif
20579
20580 #if defined S_ISSOCK && defined S_IFREG
20581 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20582 #endif
20583
20584 _ACEOF
20585 if ac_fn_c_try_compile "$LINENO"; then :
20586   ac_cv_header_stat_broken=no
20587 else
20588   ac_cv_header_stat_broken=yes
20589 fi
20590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20591 fi
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20593 $as_echo "$ac_cv_header_stat_broken" >&6; }
20594 if test $ac_cv_header_stat_broken = yes; then
20595
20596 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20597
20598 fi
20599
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20601 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20602 if test "${ac_cv_header_time+set}" = set; then :
20603   $as_echo_n "(cached) " >&6
20604 else
20605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h.  */
20607 #include <sys/types.h>
20608 #include <sys/time.h>
20609 #include <time.h>
20610
20611 int
20612 main ()
20613 {
20614 if ((struct tm *) 0)
20615 return 0;
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 if ac_fn_c_try_compile "$LINENO"; then :
20621   ac_cv_header_time=yes
20622 else
20623   ac_cv_header_time=no
20624 fi
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20628 $as_echo "$ac_cv_header_time" >&6; }
20629 if test $ac_cv_header_time = yes; then
20630
20631 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20632
20633 fi
20634
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20636 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20637 if test "${ac_cv_struct_tm+set}" = set; then :
20638   $as_echo_n "(cached) " >&6
20639 else
20640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642 #include <sys/types.h>
20643 #include <time.h>
20644
20645 int
20646 main ()
20647 {
20648 struct tm tm;
20649                                      int *p = &tm.tm_sec;
20650                                      return !p;
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656   ac_cv_struct_tm=time.h
20657 else
20658   ac_cv_struct_tm=sys/time.h
20659 fi
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20663 $as_echo "$ac_cv_struct_tm" >&6; }
20664 if test $ac_cv_struct_tm = sys/time.h; then
20665
20666 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20667
20668 fi
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
20671 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
20672 if test "${ac_cv_sys_interpreter+set}" = set; then :
20673   $as_echo_n "(cached) " >&6
20674 else
20675   echo '#! /bin/cat
20676 exit 69
20677 ' >conftest
20678 chmod u+x conftest
20679 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
20680 if test $? -ne 69; then
20681    ac_cv_sys_interpreter=yes
20682 else
20683    ac_cv_sys_interpreter=no
20684 fi
20685 rm -f conftest
20686 fi
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
20688 $as_echo "$ac_cv_sys_interpreter" >&6; }
20689 interpval=$ac_cv_sys_interpreter
20690
20691
20692 # If the C compiler supports the keyword inline, do nothing. Otherwise
20693 # define inline to __inline__ or __inline if it accepts one of those,
20694 # otherwise define inline to be empty.
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20696 $as_echo_n "checking for inline... " >&6; }
20697 if test "${ac_cv_c_inline+set}" = set; then :
20698   $as_echo_n "(cached) " >&6
20699 else
20700   ac_cv_c_inline=no
20701 for ac_kw in inline __inline__ __inline; do
20702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h.  */
20704 #ifndef __cplusplus
20705 typedef int foo_t;
20706 static $ac_kw foo_t static_foo () {return 0; }
20707 $ac_kw foo_t foo () {return 0; }
20708 #endif
20709
20710 _ACEOF
20711 if ac_fn_c_try_compile "$LINENO"; then :
20712   ac_cv_c_inline=$ac_kw
20713 fi
20714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715   test "$ac_cv_c_inline" != no && break
20716 done
20717
20718 fi
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20720 $as_echo "$ac_cv_c_inline" >&6; }
20721
20722 case $ac_cv_c_inline in
20723   inline | yes) ;;
20724   *)
20725     case $ac_cv_c_inline in
20726       no) ac_val=;;
20727       *) ac_val=$ac_cv_c_inline;;
20728     esac
20729     cat >>confdefs.h <<_ACEOF
20730 #ifndef __cplusplus
20731 #define inline $ac_val
20732 #endif
20733 _ACEOF
20734     ;;
20735 esac
20736
20737
20738 # If the C compiler supports the keyword restrict, do nothing. Otherwise
20739 # define restrict to __restrict__ or __restrict if it accepts one of those,
20740 # otherwise define restrict to be empty.
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
20742 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
20743 if test "${ac_cv_c_restrict+set}" = set; then :
20744   $as_echo_n "(cached) " >&6
20745 else
20746   ac_cv_c_restrict=no
20747    # The order here caters to the fact that C++ does not require restrict.
20748    for ac_kw in __restrict __restrict__ _Restrict restrict; do
20749      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h.  */
20751 typedef int * int_ptr;
20752         int foo (int_ptr $ac_kw ip) {
20753         return ip[0];
20754        }
20755 int
20756 main ()
20757 {
20758 int s[1];
20759         int * $ac_kw t = s;
20760         t[0] = 0;
20761         return foo(t)
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 if ac_fn_c_try_compile "$LINENO"; then :
20767   ac_cv_c_restrict=$ac_kw
20768 fi
20769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20770      test "$ac_cv_c_restrict" != no && break
20771    done
20772
20773 fi
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
20775 $as_echo "$ac_cv_c_restrict" >&6; }
20776
20777  case $ac_cv_c_restrict in
20778    restrict) ;;
20779    no) $as_echo "#define restrict /**/" >>confdefs.h
20780  ;;
20781    *)  cat >>confdefs.h <<_ACEOF
20782 #define restrict $ac_cv_c_restrict
20783 _ACEOF
20784  ;;
20785  esac
20786
20787
20788 # If words are stored with the most significant byte first (like
20789 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
20790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
20791 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
20792 if test "${ac_cv_c_bigendian+set}" = set; then :
20793   $as_echo_n "(cached) " >&6
20794 else
20795   ac_cv_c_bigendian=unknown
20796     # See if we're dealing with a universal compiler.
20797     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h.  */
20799 #ifndef __APPLE_CC__
20800                not a universal capable compiler
20801              #endif
20802              typedef int dummy;
20803
20804 _ACEOF
20805 if ac_fn_c_try_compile "$LINENO"; then :
20806
20807         # Check for potential -arch flags.  It is not universal unless
20808         # there are at least two -arch flags with different values.
20809         ac_arch=
20810         ac_prev=
20811         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
20812          if test -n "$ac_prev"; then
20813            case $ac_word in
20814              i?86 | x86_64 | ppc | ppc64)
20815                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
20816                  ac_arch=$ac_word
20817                else
20818                  ac_cv_c_bigendian=universal
20819                  break
20820                fi
20821                ;;
20822            esac
20823            ac_prev=
20824          elif test "x$ac_word" = "x-arch"; then
20825            ac_prev=arch
20826          fi
20827        done
20828 fi
20829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20830     if test $ac_cv_c_bigendian = unknown; then
20831       # See if sys/param.h defines the BYTE_ORDER macro.
20832       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20833 /* end confdefs.h.  */
20834 #include <sys/types.h>
20835              #include <sys/param.h>
20836
20837 int
20838 main ()
20839 {
20840 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
20841                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
20842                      && LITTLE_ENDIAN)
20843               bogus endian macros
20844              #endif
20845
20846   ;
20847   return 0;
20848 }
20849 _ACEOF
20850 if ac_fn_c_try_compile "$LINENO"; then :
20851   # It does; now see whether it defined to BIG_ENDIAN or not.
20852          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20853 /* end confdefs.h.  */
20854 #include <sys/types.h>
20855                 #include <sys/param.h>
20856
20857 int
20858 main ()
20859 {
20860 #if BYTE_ORDER != BIG_ENDIAN
20861                  not big endian
20862                 #endif
20863
20864   ;
20865   return 0;
20866 }
20867 _ACEOF
20868 if ac_fn_c_try_compile "$LINENO"; then :
20869   ac_cv_c_bigendian=yes
20870 else
20871   ac_cv_c_bigendian=no
20872 fi
20873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20874 fi
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876     fi
20877     if test $ac_cv_c_bigendian = unknown; then
20878       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20879       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h.  */
20881 #include <limits.h>
20882
20883 int
20884 main ()
20885 {
20886 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20887               bogus endian macros
20888              #endif
20889
20890   ;
20891   return 0;
20892 }
20893 _ACEOF
20894 if ac_fn_c_try_compile "$LINENO"; then :
20895   # It does; now see whether it defined to _BIG_ENDIAN or not.
20896          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h.  */
20898 #include <limits.h>
20899
20900 int
20901 main ()
20902 {
20903 #ifndef _BIG_ENDIAN
20904                  not big endian
20905                 #endif
20906
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912   ac_cv_c_bigendian=yes
20913 else
20914   ac_cv_c_bigendian=no
20915 fi
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919     fi
20920     if test $ac_cv_c_bigendian = unknown; then
20921       # Compile a test program.
20922       if test "$cross_compiling" = yes; then :
20923   # Try to guess by grepping values from an object file.
20924          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925 /* end confdefs.h.  */
20926 short int ascii_mm[] =
20927                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20928                 short int ascii_ii[] =
20929                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20930                 int use_ascii (int i) {
20931                   return ascii_mm[i] + ascii_ii[i];
20932                 }
20933                 short int ebcdic_ii[] =
20934                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20935                 short int ebcdic_mm[] =
20936                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20937                 int use_ebcdic (int i) {
20938                   return ebcdic_mm[i] + ebcdic_ii[i];
20939                 }
20940                 extern int foo;
20941
20942 int
20943 main ()
20944 {
20945 return use_ascii (foo) == use_ebcdic (foo);
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 if ac_fn_c_try_compile "$LINENO"; then :
20951   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20952               ac_cv_c_bigendian=yes
20953             fi
20954             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20955               if test "$ac_cv_c_bigendian" = unknown; then
20956                 ac_cv_c_bigendian=no
20957               else
20958                 # finding both strings is unlikely to happen, but who knows?
20959                 ac_cv_c_bigendian=unknown
20960               fi
20961             fi
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 else
20965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h.  */
20967 $ac_includes_default
20968 int
20969 main ()
20970 {
20971
20972              /* Are we little or big endian?  From Harbison&Steele.  */
20973              union
20974              {
20975                long int l;
20976                char c[sizeof (long int)];
20977              } u;
20978              u.l = 1;
20979              return u.c[sizeof (long int) - 1] == 1;
20980
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 if ac_fn_c_try_run "$LINENO"; then :
20986   ac_cv_c_bigendian=no
20987 else
20988   ac_cv_c_bigendian=yes
20989 fi
20990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20991   conftest.$ac_objext conftest.beam conftest.$ac_ext
20992 fi
20993
20994     fi
20995 fi
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20997 $as_echo "$ac_cv_c_bigendian" >&6; }
20998  case $ac_cv_c_bigendian in #(
20999    yes)
21000      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21001 ;; #(
21002    no)
21003       ;; #(
21004    universal)
21005
21006 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21007
21008      ;; #(
21009    *)
21010      as_fn_error "unknown endianness
21011  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21012  esac
21013
21014
21015 # Define mode_t to a suitable type, if standard headers do not define it.
21016 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21017 if test "x$ac_cv_type_mode_t" = x""yes; then :
21018
21019 else
21020
21021 cat >>confdefs.h <<_ACEOF
21022 #define mode_t int
21023 _ACEOF
21024
21025 fi
21026
21027 AC_TYPE_BOOLEAN
21028
21029 # Define off_t to a suitable type, if standard headers do not define it.
21030 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21031 if test "x$ac_cv_type_off_t" = x""yes; then :
21032
21033 else
21034
21035 cat >>confdefs.h <<_ACEOF
21036 #define off_t long int
21037 _ACEOF
21038
21039 fi
21040
21041
21042 # Define pid_t to a suitable type, if standard headers do not define it.
21043 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21044 if test "x$ac_cv_type_pid_t" = x""yes; then :
21045
21046 else
21047
21048 cat >>confdefs.h <<_ACEOF
21049 #define pid_t int
21050 _ACEOF
21051
21052 fi
21053
21054
21055 # Define size_t to a suitable type, if standard headers do not define it.
21056 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21057 if test "x$ac_cv_type_size_t" = x""yes; then :
21058
21059 else
21060
21061 cat >>confdefs.h <<_ACEOF
21062 #define size_t unsigned int
21063 _ACEOF
21064
21065 fi
21066
21067
21068 # Define ssize_t to a suitable type, if standard headers do not define it.
21069 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21070 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21071
21072 else
21073
21074 cat >>confdefs.h <<_ACEOF
21075 #define ssize_t int
21076 _ACEOF
21077
21078 fi
21079
21080
21081 # If the C compiler supports a working long double type with more range
21082 # or precision than the double type, define HAVE_LONG_DOUBLE.
21083
21084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21085 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21086 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21087   $as_echo_n "(cached) " >&6
21088 else
21089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h.  */
21091 #include <float.h>
21092             long double const a[] =
21093               {
21094                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21095                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21096               };
21097             long double
21098             f (long double x)
21099             {
21100                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21101                         + (x ? f (x) : 'c'));
21102             }
21103
21104 int
21105 main ()
21106 {
21107 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21108                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21109                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21110                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21111             && (int) LDBL_EPSILON == 0
21112           )];
21113 test_array [0] = 0
21114
21115   ;
21116   return 0;
21117 }
21118 _ACEOF
21119 if ac_fn_c_try_compile "$LINENO"; then :
21120   ac_cv_type_long_double_wider=yes
21121 else
21122   ac_cv_type_long_double_wider=no
21123 fi
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 fi
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21127 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21128   if test $ac_cv_type_long_double_wider = yes; then
21129
21130 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21131
21132   fi
21133
21134
21135 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21136 # C compiler predefines it.
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21138 $as_echo_n "checking whether char is unsigned... " >&6; }
21139 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21140   $as_echo_n "(cached) " >&6
21141 else
21142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21143 /* end confdefs.h.  */
21144 $ac_includes_default
21145 int
21146 main ()
21147 {
21148 static int test_array [1 - 2 * !(((char) -1) < 0)];
21149 test_array [0] = 0
21150
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 if ac_fn_c_try_compile "$LINENO"; then :
21156   ac_cv_c_char_unsigned=no
21157 else
21158   ac_cv_c_char_unsigned=yes
21159 fi
21160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21161 fi
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21163 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21164 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21165   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21166
21167 fi
21168
21169
21170 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21171 # The cast to long int works around a bug in the HP C Compiler
21172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21174 # This bug is HP SR number 8606223364.
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21176 $as_echo_n "checking size of signed short... " >&6; }
21177 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21178   $as_echo_n "(cached) " >&6
21179 else
21180   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21181
21182 else
21183   if test "$ac_cv_type_signed_short" = yes; then
21184      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21186 { as_fn_set_status 77
21187 as_fn_error "cannot compute sizeof (signed short)
21188 See \`config.log' for more details." "$LINENO" 5; }; }
21189    else
21190      ac_cv_sizeof_signed_short=0
21191    fi
21192 fi
21193
21194 fi
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21196 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21197
21198
21199
21200 cat >>confdefs.h <<_ACEOF
21201 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21202 _ACEOF
21203
21204
21205
21206 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21207 # The cast to long int works around a bug in the HP C Compiler
21208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21210 # This bug is HP SR number 8606223364.
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21212 $as_echo_n "checking size of unsigned short... " >&6; }
21213 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21214   $as_echo_n "(cached) " >&6
21215 else
21216   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21217
21218 else
21219   if test "$ac_cv_type_unsigned_short" = yes; then
21220      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21222 { as_fn_set_status 77
21223 as_fn_error "cannot compute sizeof (unsigned short)
21224 See \`config.log' for more details." "$LINENO" 5; }; }
21225    else
21226      ac_cv_sizeof_unsigned_short=0
21227    fi
21228 fi
21229
21230 fi
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21232 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21233
21234
21235
21236 cat >>confdefs.h <<_ACEOF
21237 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21238 _ACEOF
21239
21240
21241
21242 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21243 # The cast to long int works around a bug in the HP C Compiler
21244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21246 # This bug is HP SR number 8606223364.
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21248 $as_echo_n "checking size of signed int... " >&6; }
21249 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21250   $as_echo_n "(cached) " >&6
21251 else
21252   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21253
21254 else
21255   if test "$ac_cv_type_signed_int" = yes; then
21256      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21258 { as_fn_set_status 77
21259 as_fn_error "cannot compute sizeof (signed int)
21260 See \`config.log' for more details." "$LINENO" 5; }; }
21261    else
21262      ac_cv_sizeof_signed_int=0
21263    fi
21264 fi
21265
21266 fi
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21268 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21269
21270
21271
21272 cat >>confdefs.h <<_ACEOF
21273 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21274 _ACEOF
21275
21276
21277
21278 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21279 # The cast to long int works around a bug in the HP C Compiler
21280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21282 # This bug is HP SR number 8606223364.
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21284 $as_echo_n "checking size of unsigned int... " >&6; }
21285 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21286   $as_echo_n "(cached) " >&6
21287 else
21288   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21289
21290 else
21291   if test "$ac_cv_type_unsigned_int" = yes; then
21292      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21294 { as_fn_set_status 77
21295 as_fn_error "cannot compute sizeof (unsigned int)
21296 See \`config.log' for more details." "$LINENO" 5; }; }
21297    else
21298      ac_cv_sizeof_unsigned_int=0
21299    fi
21300 fi
21301
21302 fi
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21304 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21305
21306
21307
21308 cat >>confdefs.h <<_ACEOF
21309 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21310 _ACEOF
21311
21312
21313
21314 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21315 # The cast to long int works around a bug in the HP C Compiler
21316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21318 # This bug is HP SR number 8606223364.
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21320 $as_echo_n "checking size of signed long... " >&6; }
21321 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21322   $as_echo_n "(cached) " >&6
21323 else
21324   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21325
21326 else
21327   if test "$ac_cv_type_signed_long" = yes; then
21328      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21330 { as_fn_set_status 77
21331 as_fn_error "cannot compute sizeof (signed long)
21332 See \`config.log' for more details." "$LINENO" 5; }; }
21333    else
21334      ac_cv_sizeof_signed_long=0
21335    fi
21336 fi
21337
21338 fi
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21340 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21341
21342
21343
21344 cat >>confdefs.h <<_ACEOF
21345 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21346 _ACEOF
21347
21348
21349
21350 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21351 # The cast to long int works around a bug in the HP C Compiler
21352 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21353 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21354 # This bug is HP SR number 8606223364.
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21356 $as_echo_n "checking size of unsigned long... " >&6; }
21357 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21358   $as_echo_n "(cached) " >&6
21359 else
21360   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21361
21362 else
21363   if test "$ac_cv_type_unsigned_long" = yes; then
21364      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21366 { as_fn_set_status 77
21367 as_fn_error "cannot compute sizeof (unsigned long)
21368 See \`config.log' for more details." "$LINENO" 5; }; }
21369    else
21370      ac_cv_sizeof_unsigned_long=0
21371    fi
21372 fi
21373
21374 fi
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21376 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21377
21378
21379
21380 cat >>confdefs.h <<_ACEOF
21381 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21382 _ACEOF
21383
21384
21385
21386 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21387 # 'signed long long' is not supported then the value defined is zero.
21388 # The cast to long int works around a bug in the HP C Compiler
21389 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21390 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21391 # This bug is HP SR number 8606223364.
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21393 $as_echo_n "checking size of signed long long... " >&6; }
21394 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21395   $as_echo_n "(cached) " >&6
21396 else
21397   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21398
21399 else
21400   if test "$ac_cv_type_signed_long_long" = yes; then
21401      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21403 { as_fn_set_status 77
21404 as_fn_error "cannot compute sizeof (signed long long)
21405 See \`config.log' for more details." "$LINENO" 5; }; }
21406    else
21407      ac_cv_sizeof_signed_long_long=0
21408    fi
21409 fi
21410
21411 fi
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21413 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21414
21415
21416
21417 cat >>confdefs.h <<_ACEOF
21418 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21419 _ACEOF
21420
21421
21422
21423 # Obtain size of a 'unsigned long long' and define as
21424 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
21425 # supported then the value defined is zero.
21426 # The cast to long int works around a bug in the HP C Compiler
21427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21429 # This bug is HP SR number 8606223364.
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21431 $as_echo_n "checking size of unsigned long long... " >&6; }
21432 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21433   $as_echo_n "(cached) " >&6
21434 else
21435   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
21436
21437 else
21438   if test "$ac_cv_type_unsigned_long_long" = yes; then
21439      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21441 { as_fn_set_status 77
21442 as_fn_error "cannot compute sizeof (unsigned long long)
21443 See \`config.log' for more details." "$LINENO" 5; }; }
21444    else
21445      ac_cv_sizeof_unsigned_long_long=0
21446    fi
21447 fi
21448
21449 fi
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21451 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21452
21453
21454
21455 cat >>confdefs.h <<_ACEOF
21456 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21457 _ACEOF
21458
21459
21460
21461 # Obtain size of off_t and define as SIZEOF_OFF_T
21462 # The cast to long int works around a bug in the HP C Compiler
21463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21465 # This bug is HP SR number 8606223364.
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21467 $as_echo_n "checking size of off_t... " >&6; }
21468 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21469   $as_echo_n "(cached) " >&6
21470 else
21471   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
21472
21473 else
21474   if test "$ac_cv_type_off_t" = yes; then
21475      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21477 { as_fn_set_status 77
21478 as_fn_error "cannot compute sizeof (off_t)
21479 See \`config.log' for more details." "$LINENO" 5; }; }
21480    else
21481      ac_cv_sizeof_off_t=0
21482    fi
21483 fi
21484
21485 fi
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21487 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21488
21489
21490
21491 cat >>confdefs.h <<_ACEOF
21492 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21493 _ACEOF
21494
21495
21496
21497 # Obtain size of size_t and define as SIZEOF_SIZE_T
21498 # The cast to long int works around a bug in the HP C Compiler
21499 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21500 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21501 # This bug is HP SR number 8606223364.
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21503 $as_echo_n "checking size of size_t... " >&6; }
21504 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21505   $as_echo_n "(cached) " >&6
21506 else
21507   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
21508
21509 else
21510   if test "$ac_cv_type_size_t" = yes; then
21511      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21513 { as_fn_set_status 77
21514 as_fn_error "cannot compute sizeof (size_t)
21515 See \`config.log' for more details." "$LINENO" 5; }; }
21516    else
21517      ac_cv_sizeof_size_t=0
21518    fi
21519 fi
21520
21521 fi
21522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21523 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21524
21525
21526
21527 cat >>confdefs.h <<_ACEOF
21528 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21529 _ACEOF
21530
21531
21532
21533 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21534 # The cast to long int works around a bug in the HP C Compiler
21535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21537 # This bug is HP SR number 8606223364.
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21539 $as_echo_n "checking size of unsigned int*... " >&6; }
21540 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21541   $as_echo_n "(cached) " >&6
21542 else
21543   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
21544
21545 else
21546   if test "$ac_cv_type_unsigned_intp" = yes; then
21547      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21549 { as_fn_set_status 77
21550 as_fn_error "cannot compute sizeof (unsigned int*)
21551 See \`config.log' for more details." "$LINENO" 5; }; }
21552    else
21553      ac_cv_sizeof_unsigned_intp=0
21554    fi
21555 fi
21556
21557 fi
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21559 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21560
21561
21562
21563 cat >>confdefs.h <<_ACEOF
21564 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21565 _ACEOF
21566
21567
21568
21569 #
21570 # Compute sized types for current CPU and compiler options.
21571 #
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21574 $as_echo_n "checking for signed 8-bit type... " >&6; }
21575 INT8_T='signed char'
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21577 $as_echo "$INT8_T" >&6; }
21578
21579
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
21581 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
21582 UINT8_T='unsigned char'
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
21584 $as_echo "$UINT8_T" >&6; }
21585
21586
21587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
21588 $as_echo_n "checking for signed 16-bit type... " >&6; }
21589 INT16_T='signed short'
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
21591 $as_echo "$INT16_T" >&6; }
21592
21593
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
21595 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
21596 UINT16_T='unsigned short'
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
21598 $as_echo "$UINT16_T" >&6; }
21599
21600
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
21602 $as_echo_n "checking for signed 32-bit type... " >&6; }
21603 INT32_T='none'
21604 if test $ac_cv_sizeof_signed_int -eq 4; then
21605   INT32_T='signed int'
21606 elif test $ac_cv_sizeof_signed_long -eq 4; then
21607   INT32_T='signed long'
21608 fi
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
21610 $as_echo "$INT32_T" >&6; }
21611
21612
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
21614 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
21615 UINT32_T='none'
21616 if test $ac_cv_sizeof_unsigned_int -eq 4; then
21617   UINT32_T='unsigned int'
21618 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
21619   UINT32_T='unsigned long'
21620 fi
21621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
21622 $as_echo "$UINT32_T" >&6; }
21623
21624
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
21626 $as_echo_n "checking for signed 64-bit type... " >&6; }
21627 INT64_T='none'
21628 if test $ac_cv_sizeof_signed_long -eq 8; then
21629   INT64_T='signed long'
21630 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
21631   INT64_T='signed long long'
21632 fi
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
21634 $as_echo "$INT64_T" >&6; }
21635
21636
21637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
21638 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
21639 UINT64_T='none'
21640 if test $ac_cv_sizeof_unsigned_long -eq 8; then
21641   UINT64_T='unsigned long'
21642 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
21643   UINT64_T='unsigned long long'
21644 fi
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
21646 $as_echo "$UINT64_T" >&6; }
21647
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
21650 $as_echo_n "checking for unsigned maximum type... " >&6; }
21651 UINTMAX_T='none'
21652 if test "$UINT64_T" != 'none'; then
21653   UINTMAX_T=$UINT64_T
21654 elif test "$UINT32_T" != 'none'; then
21655   UINTMAX_T=$UINT32_T
21656 fi
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
21658 $as_echo "$UINTMAX_T" >&6; }
21659
21660
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
21662 $as_echo_n "checking for pointer difference type... " >&6; }
21663 UINTPTR_T='none'
21664 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
21665   UINTPTR_T='unsigned long'
21666 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
21667   UINTPTR_T='unsigned long long'
21668 fi
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
21670 $as_echo "$UINTPTR_T" >&6; }
21671
21672
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
21674 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h.  */
21677
21678 int
21679 main ()
21680 {
21681 { const char *func = __func__; return(func != 0 ? 0 : 1); }
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 if ac_fn_c_try_compile "$LINENO"; then :
21687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21688 $as_echo "yes" >&6; }
21689 else
21690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21691 $as_echo "no" >&6; }
21692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
21693 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
21694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695 /* end confdefs.h.  */
21696
21697 int
21698 main ()
21699 {
21700 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
21701   ;
21702   return 0;
21703 }
21704 _ACEOF
21705 if ac_fn_c_try_compile "$LINENO"; then :
21706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21707 $as_echo "yes" >&6; }
21708
21709 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
21710
21711 else
21712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21713 $as_echo "no" >&6; }
21714
21715 $as_echo "#define __func__ __FILE__" >>confdefs.h
21716
21717 fi
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719 fi
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721
21722 ########
21723 #
21724 # Check for functions
21725 #
21726 ########
21727 for ac_header in stdlib.h unistd.h
21728 do :
21729   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21730 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21731 eval as_val=\$$as_ac_Header
21732    if test "x$as_val" = x""yes; then :
21733   cat >>confdefs.h <<_ACEOF
21734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21735 _ACEOF
21736
21737 fi
21738
21739 done
21740
21741 for ac_func in getpagesize
21742 do :
21743   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21744 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21745   cat >>confdefs.h <<_ACEOF
21746 #define HAVE_GETPAGESIZE 1
21747 _ACEOF
21748
21749 fi
21750 done
21751
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
21753 $as_echo_n "checking for working mmap file i/o... " >&6; }
21754 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
21755   $as_echo_n "(cached) " >&6
21756 else
21757   if test "$cross_compiling" = yes; then :
21758   magick_cv_func_mmap_fileio=no
21759 else
21760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21761 /* end confdefs.h.  */
21762 $ac_includes_default
21763 /* malloc might have been renamed as rpl_malloc. */
21764 #undef malloc
21765
21766 /*
21767    This test is derived from GNU Autoconf's similar macro.
21768    The purpose of this test is to verify that files may be memory
21769    mapped, and that memory mapping and file I/O are coherent.
21770
21771    The test creates a test file, memory maps the file, updates
21772    the file using the memory map, and then reads the file using
21773    file I/O to verify that the file contains the updates.
21774 */
21775
21776 #include <fcntl.h>
21777 #include <sys/mman.h>
21778
21779 #if !STDC_HEADERS && !HAVE_STDLIB_H
21780 char *malloc ();
21781 #endif
21782
21783 /* This mess was copied from the GNU getpagesize.h.  */
21784 #if !HAVE_GETPAGESIZE
21785 /* Assume that all systems that can run configure have sys/param.h.  */
21786 # if !HAVE_SYS_PARAM_H
21787 #  define HAVE_SYS_PARAM_H 1
21788 # endif
21789
21790 # ifdef _SC_PAGESIZE
21791 #  define getpagesize() sysconf(_SC_PAGESIZE)
21792 # else /* no _SC_PAGESIZE */
21793 #  if HAVE_SYS_PARAM_H
21794 #   include <sys/param.h>
21795 #   ifdef EXEC_PAGESIZE
21796 #    define getpagesize() EXEC_PAGESIZE
21797 #   else /* no EXEC_PAGESIZE */
21798 #    ifdef NBPG
21799 #     define getpagesize() NBPG * CLSIZE
21800 #     ifndef CLSIZE
21801 #      define CLSIZE 1
21802 #     endif /* no CLSIZE */
21803 #    else /* no NBPG */
21804 #     ifdef NBPC
21805 #      define getpagesize() NBPC
21806 #     else /* no NBPC */
21807 #      ifdef PAGESIZE
21808 #       define getpagesize() PAGESIZE
21809 #      endif /* PAGESIZE */
21810 #     endif /* no NBPC */
21811 #    endif /* no NBPG */
21812 #   endif /* no EXEC_PAGESIZE */
21813 #  else /* no HAVE_SYS_PARAM_H */
21814 #   define getpagesize() 8192   /* punt totally */
21815 #  endif /* no HAVE_SYS_PARAM_H */
21816 # endif /* no _SC_PAGESIZE */
21817
21818 #endif /* no HAVE_GETPAGESIZE */
21819
21820 int
21821 main ()
21822 {
21823   char *data, *data2, *data3;
21824   int i, pagesize;
21825   int fd;
21826
21827   pagesize = getpagesize ();
21828
21829   /* First, make a file with some known garbage in it. */
21830   data = (char *) malloc (pagesize);
21831   if (!data)
21832     exit (1);
21833   for (i = 0; i < pagesize; ++i)
21834     *(data + i) = rand ();
21835   umask (0);
21836   fd = creat ("conftest.mmap", 0600);
21837   if (fd < 0)
21838     exit (1);
21839   if (write (fd, data, pagesize) != pagesize)
21840     exit (1);
21841   close (fd);
21842
21843   /* Mmap the file as read/write/shared and verify that we see the
21844   same garbage. */
21845   fd = open ("conftest.mmap", O_RDWR);
21846   if (fd < 0)
21847     exit (1);
21848   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
21849   if (data2 == 0)
21850     exit (1);
21851   for (i = 0; i < pagesize; ++i)
21852     if (*(data + i) != *(data2 + i))
21853       exit (1);
21854
21855   /* Finally, make sure that changes to the mapped area
21856      percolate back to the file as seen by read().  */
21857   for (i = 0; i < pagesize; ++i)
21858     *(data2 + i) = *(data2 + i) + 1;
21859   data3 = (char *) malloc (pagesize);
21860   if (!data3)
21861     exit (1);
21862   if (read (fd, data3, pagesize) != pagesize)
21863     exit (1);
21864   for (i = 0; i < pagesize; ++i)
21865     if (*(data2 + i) != *(data3 + i))
21866       exit (1);
21867   close (fd);
21868   exit (0);
21869 }
21870 _ACEOF
21871 if ac_fn_c_try_run "$LINENO"; then :
21872   magick_cv_func_mmap_fileio=yes
21873 else
21874   magick_cv_func_mmap_fileio=no
21875 fi
21876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21877   conftest.$ac_objext conftest.beam conftest.$ac_ext
21878 fi
21879
21880 fi
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21882 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21883 if test $magick_cv_func_mmap_fileio = yes; then
21884
21885 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21886
21887 fi
21888 rm -f conftest.mmap
21889
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21891 $as_echo_n "checking whether closedir returns void... " >&6; }
21892 if test "${ac_cv_func_closedir_void+set}" = set; then :
21893   $as_echo_n "(cached) " >&6
21894 else
21895   if test "$cross_compiling" = yes; then :
21896   ac_cv_func_closedir_void=yes
21897 else
21898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21899 /* end confdefs.h.  */
21900 $ac_includes_default
21901 #include <$ac_header_dirent>
21902 #ifndef __cplusplus
21903 int closedir ();
21904 #endif
21905
21906 int
21907 main ()
21908 {
21909 return closedir (opendir (".")) != 0;
21910   ;
21911   return 0;
21912 }
21913 _ACEOF
21914 if ac_fn_c_try_run "$LINENO"; then :
21915   ac_cv_func_closedir_void=no
21916 else
21917   ac_cv_func_closedir_void=yes
21918 fi
21919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21920   conftest.$ac_objext conftest.beam conftest.$ac_ext
21921 fi
21922
21923 fi
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21925 $as_echo "$ac_cv_func_closedir_void" >&6; }
21926 if test $ac_cv_func_closedir_void = yes; then
21927
21928 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21929
21930 fi
21931
21932
21933
21934
21935   for ac_header in $ac_header_list
21936 do :
21937   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21939 "
21940 eval as_val=\$$as_ac_Header
21941    if test "x$as_val" = x""yes; then :
21942   cat >>confdefs.h <<_ACEOF
21943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21944 _ACEOF
21945
21946 fi
21947
21948 done
21949
21950
21951
21952
21953
21954
21955
21956
21957 for ac_func in getpagesize
21958 do :
21959   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21960 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21961   cat >>confdefs.h <<_ACEOF
21962 #define HAVE_GETPAGESIZE 1
21963 _ACEOF
21964
21965 fi
21966 done
21967
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21969 $as_echo_n "checking for working mmap... " >&6; }
21970 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21971   $as_echo_n "(cached) " >&6
21972 else
21973   if test "$cross_compiling" = yes; then :
21974   ac_cv_func_mmap_fixed_mapped=no
21975 else
21976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21977 /* end confdefs.h.  */
21978 $ac_includes_default
21979 /* malloc might have been renamed as rpl_malloc. */
21980 #undef malloc
21981
21982 /* Thanks to Mike Haertel and Jim Avera for this test.
21983    Here is a matrix of mmap possibilities:
21984         mmap private not fixed
21985         mmap private fixed at somewhere currently unmapped
21986         mmap private fixed at somewhere already mapped
21987         mmap shared not fixed
21988         mmap shared fixed at somewhere currently unmapped
21989         mmap shared fixed at somewhere already mapped
21990    For private mappings, we should verify that changes cannot be read()
21991    back from the file, nor mmap's back from the file at a different
21992    address.  (There have been systems where private was not correctly
21993    implemented like the infamous i386 svr4.0, and systems where the
21994    VM page cache was not coherent with the file system buffer cache
21995    like early versions of FreeBSD and possibly contemporary NetBSD.)
21996    For shared mappings, we should conversely verify that changes get
21997    propagated back to all the places they're supposed to be.
21998
21999    Grep wants private fixed already mapped.
22000    The main things grep needs to know about mmap are:
22001    * does it exist and is it safe to write into the mmap'd area
22002    * how to use it (BSD variants)  */
22003
22004 #include <fcntl.h>
22005 #include <sys/mman.h>
22006
22007 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22008 char *malloc ();
22009 #endif
22010
22011 /* This mess was copied from the GNU getpagesize.h.  */
22012 #ifndef HAVE_GETPAGESIZE
22013 # ifdef _SC_PAGESIZE
22014 #  define getpagesize() sysconf(_SC_PAGESIZE)
22015 # else /* no _SC_PAGESIZE */
22016 #  ifdef HAVE_SYS_PARAM_H
22017 #   include <sys/param.h>
22018 #   ifdef EXEC_PAGESIZE
22019 #    define getpagesize() EXEC_PAGESIZE
22020 #   else /* no EXEC_PAGESIZE */
22021 #    ifdef NBPG
22022 #     define getpagesize() NBPG * CLSIZE
22023 #     ifndef CLSIZE
22024 #      define CLSIZE 1
22025 #     endif /* no CLSIZE */
22026 #    else /* no NBPG */
22027 #     ifdef NBPC
22028 #      define getpagesize() NBPC
22029 #     else /* no NBPC */
22030 #      ifdef PAGESIZE
22031 #       define getpagesize() PAGESIZE
22032 #      endif /* PAGESIZE */
22033 #     endif /* no NBPC */
22034 #    endif /* no NBPG */
22035 #   endif /* no EXEC_PAGESIZE */
22036 #  else /* no HAVE_SYS_PARAM_H */
22037 #   define getpagesize() 8192   /* punt totally */
22038 #  endif /* no HAVE_SYS_PARAM_H */
22039 # endif /* no _SC_PAGESIZE */
22040
22041 #endif /* no HAVE_GETPAGESIZE */
22042
22043 int
22044 main ()
22045 {
22046   char *data, *data2, *data3;
22047   const char *cdata2;
22048   int i, pagesize;
22049   int fd, fd2;
22050
22051   pagesize = getpagesize ();
22052
22053   /* First, make a file with some known garbage in it. */
22054   data = (char *) malloc (pagesize);
22055   if (!data)
22056     return 1;
22057   for (i = 0; i < pagesize; ++i)
22058     *(data + i) = rand ();
22059   umask (0);
22060   fd = creat ("conftest.mmap", 0600);
22061   if (fd < 0)
22062     return 2;
22063   if (write (fd, data, pagesize) != pagesize)
22064     return 3;
22065   close (fd);
22066
22067   /* Next, check that the tail of a page is zero-filled.  File must have
22068      non-zero length, otherwise we risk SIGBUS for entire page.  */
22069   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22070   if (fd2 < 0)
22071     return 4;
22072   cdata2 = "";
22073   if (write (fd2, cdata2, 1) != 1)
22074     return 5;
22075   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22076   if (data2 == MAP_FAILED)
22077     return 6;
22078   for (i = 0; i < pagesize; ++i)
22079     if (*(data2 + i))
22080       return 7;
22081   close (fd2);
22082   if (munmap (data2, pagesize))
22083     return 8;
22084
22085   /* Next, try to mmap the file at a fixed address which already has
22086      something else allocated at it.  If we can, also make sure that
22087      we see the same garbage.  */
22088   fd = open ("conftest.mmap", O_RDWR);
22089   if (fd < 0)
22090     return 9;
22091   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22092                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22093     return 10;
22094   for (i = 0; i < pagesize; ++i)
22095     if (*(data + i) != *(data2 + i))
22096       return 11;
22097
22098   /* Finally, make sure that changes to the mapped area do not
22099      percolate back to the file as seen by read().  (This is a bug on
22100      some variants of i386 svr4.0.)  */
22101   for (i = 0; i < pagesize; ++i)
22102     *(data2 + i) = *(data2 + i) + 1;
22103   data3 = (char *) malloc (pagesize);
22104   if (!data3)
22105     return 12;
22106   if (read (fd, data3, pagesize) != pagesize)
22107     return 13;
22108   for (i = 0; i < pagesize; ++i)
22109     if (*(data + i) != *(data3 + i))
22110       return 14;
22111   close (fd);
22112   return 0;
22113 }
22114 _ACEOF
22115 if ac_fn_c_try_run "$LINENO"; then :
22116   ac_cv_func_mmap_fixed_mapped=yes
22117 else
22118   ac_cv_func_mmap_fixed_mapped=no
22119 fi
22120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22121   conftest.$ac_objext conftest.beam conftest.$ac_ext
22122 fi
22123
22124 fi
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22126 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22127 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22128
22129 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22130
22131 fi
22132 rm -f conftest.mmap conftest.txt
22133
22134 for ac_header in vfork.h
22135 do :
22136   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22137 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22138   cat >>confdefs.h <<_ACEOF
22139 #define HAVE_VFORK_H 1
22140 _ACEOF
22141
22142 fi
22143
22144 done
22145
22146 for ac_func in fork vfork
22147 do :
22148   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22149 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22150 eval as_val=\$$as_ac_var
22151    if test "x$as_val" = x""yes; then :
22152   cat >>confdefs.h <<_ACEOF
22153 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22154 _ACEOF
22155
22156 fi
22157 done
22158
22159 if test "x$ac_cv_func_fork" = xyes; then
22160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22161 $as_echo_n "checking for working fork... " >&6; }
22162 if test "${ac_cv_func_fork_works+set}" = set; then :
22163   $as_echo_n "(cached) " >&6
22164 else
22165   if test "$cross_compiling" = yes; then :
22166   ac_cv_func_fork_works=cross
22167 else
22168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h.  */
22170 $ac_includes_default
22171 int
22172 main ()
22173 {
22174
22175           /* By Ruediger Kuhlmann. */
22176           return fork () < 0;
22177
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 if ac_fn_c_try_run "$LINENO"; then :
22183   ac_cv_func_fork_works=yes
22184 else
22185   ac_cv_func_fork_works=no
22186 fi
22187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22188   conftest.$ac_objext conftest.beam conftest.$ac_ext
22189 fi
22190
22191 fi
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22193 $as_echo "$ac_cv_func_fork_works" >&6; }
22194
22195 else
22196   ac_cv_func_fork_works=$ac_cv_func_fork
22197 fi
22198 if test "x$ac_cv_func_fork_works" = xcross; then
22199   case $host in
22200     *-*-amigaos* | *-*-msdosdjgpp*)
22201       # Override, as these systems have only a dummy fork() stub
22202       ac_cv_func_fork_works=no
22203       ;;
22204     *)
22205       ac_cv_func_fork_works=yes
22206       ;;
22207   esac
22208   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22209 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22210 fi
22211 ac_cv_func_vfork_works=$ac_cv_func_vfork
22212 if test "x$ac_cv_func_vfork" = xyes; then
22213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22214 $as_echo_n "checking for working vfork... " >&6; }
22215 if test "${ac_cv_func_vfork_works+set}" = set; then :
22216   $as_echo_n "(cached) " >&6
22217 else
22218   if test "$cross_compiling" = yes; then :
22219   ac_cv_func_vfork_works=cross
22220 else
22221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22222 /* end confdefs.h.  */
22223 /* Thanks to Paul Eggert for this test.  */
22224 $ac_includes_default
22225 #include <sys/wait.h>
22226 #ifdef HAVE_VFORK_H
22227 # include <vfork.h>
22228 #endif
22229 /* On some sparc systems, changes by the child to local and incoming
22230    argument registers are propagated back to the parent.  The compiler
22231    is told about this with #include <vfork.h>, but some compilers
22232    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22233    static variable whose address is put into a register that is
22234    clobbered by the vfork.  */
22235 static void
22236 #ifdef __cplusplus
22237 sparc_address_test (int arg)
22238 # else
22239 sparc_address_test (arg) int arg;
22240 #endif
22241 {
22242   static pid_t child;
22243   if (!child) {
22244     child = vfork ();
22245     if (child < 0) {
22246       perror ("vfork");
22247       _exit(2);
22248     }
22249     if (!child) {
22250       arg = getpid();
22251       write(-1, "", 0);
22252       _exit (arg);
22253     }
22254   }
22255 }
22256
22257 int
22258 main ()
22259 {
22260   pid_t parent = getpid ();
22261   pid_t child;
22262
22263   sparc_address_test (0);
22264
22265   child = vfork ();
22266
22267   if (child == 0) {
22268     /* Here is another test for sparc vfork register problems.  This
22269        test uses lots of local variables, at least as many local
22270        variables as main has allocated so far including compiler
22271        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22272        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22273        reuse the register of parent for one of the local variables,
22274        since it will think that parent can't possibly be used any more
22275        in this routine.  Assigning to the local variable will thus
22276        munge parent in the parent process.  */
22277     pid_t
22278       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22279       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22280     /* Convince the compiler that p..p7 are live; otherwise, it might
22281        use the same hardware register for all 8 local variables.  */
22282     if (p != p1 || p != p2 || p != p3 || p != p4
22283         || p != p5 || p != p6 || p != p7)
22284       _exit(1);
22285
22286     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22287        from child file descriptors.  If the child closes a descriptor
22288        before it execs or exits, this munges the parent's descriptor
22289        as well.  Test for this by closing stdout in the child.  */
22290     _exit(close(fileno(stdout)) != 0);
22291   } else {
22292     int status;
22293     struct stat st;
22294
22295     while (wait(&status) != child)
22296       ;
22297     return (
22298          /* Was there some problem with vforking?  */
22299          child < 0
22300
22301          /* Did the child fail?  (This shouldn't happen.)  */
22302          || status
22303
22304          /* Did the vfork/compiler bug occur?  */
22305          || parent != getpid()
22306
22307          /* Did the file descriptor bug occur?  */
22308          || fstat(fileno(stdout), &st) != 0
22309          );
22310   }
22311 }
22312 _ACEOF
22313 if ac_fn_c_try_run "$LINENO"; then :
22314   ac_cv_func_vfork_works=yes
22315 else
22316   ac_cv_func_vfork_works=no
22317 fi
22318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22319   conftest.$ac_objext conftest.beam conftest.$ac_ext
22320 fi
22321
22322 fi
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22324 $as_echo "$ac_cv_func_vfork_works" >&6; }
22325
22326 fi;
22327 if test "x$ac_cv_func_fork_works" = xcross; then
22328   ac_cv_func_vfork_works=$ac_cv_func_vfork
22329   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22330 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22331 fi
22332
22333 if test "x$ac_cv_func_vfork_works" = xyes; then
22334
22335 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22336
22337 else
22338
22339 $as_echo "#define vfork fork" >>confdefs.h
22340
22341 fi
22342 if test "x$ac_cv_func_fork_works" = xyes; then
22343
22344 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22345
22346 fi
22347
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22349 $as_echo_n "checking for working memcmp... " >&6; }
22350 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22351   $as_echo_n "(cached) " >&6
22352 else
22353   if test "$cross_compiling" = yes; then :
22354   ac_cv_func_memcmp_working=no
22355 else
22356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22357 /* end confdefs.h.  */
22358 $ac_includes_default
22359 int
22360 main ()
22361 {
22362
22363   /* Some versions of memcmp are not 8-bit clean.  */
22364   char c0 = '\100', c1 = '\200', c2 = '\201';
22365   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22366     return 1;
22367
22368   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22369      or more and with at least one buffer not starting on a 4-byte boundary.
22370      William Lewis provided this test program.   */
22371   {
22372     char foo[21];
22373     char bar[21];
22374     int i;
22375     for (i = 0; i < 4; i++)
22376       {
22377         char *a = foo + i;
22378         char *b = bar + i;
22379         strcpy (a, "--------01111111");
22380         strcpy (b, "--------10000000");
22381         if (memcmp (a, b, 16) >= 0)
22382           return 1;
22383       }
22384     return 0;
22385   }
22386
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 if ac_fn_c_try_run "$LINENO"; then :
22392   ac_cv_func_memcmp_working=yes
22393 else
22394   ac_cv_func_memcmp_working=no
22395 fi
22396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22397   conftest.$ac_objext conftest.beam conftest.$ac_ext
22398 fi
22399
22400 fi
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22402 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22403 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22404   *" memcmp.$ac_objext "* ) ;;
22405   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22406  ;;
22407 esac
22408
22409
22410 for ac_header in sys/select.h sys/socket.h
22411 do :
22412   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22414 eval as_val=\$$as_ac_Header
22415    if test "x$as_val" = x""yes; then :
22416   cat >>confdefs.h <<_ACEOF
22417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22418 _ACEOF
22419
22420 fi
22421
22422 done
22423
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22425 $as_echo_n "checking types of arguments for select... " >&6; }
22426 if test "${ac_cv_func_select_args+set}" = set; then :
22427   $as_echo_n "(cached) " >&6
22428 else
22429   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22430  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22431   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22432    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h.  */
22434 $ac_includes_default
22435 #ifdef HAVE_SYS_SELECT_H
22436 # include <sys/select.h>
22437 #endif
22438 #ifdef HAVE_SYS_SOCKET_H
22439 # include <sys/socket.h>
22440 #endif
22441
22442 int
22443 main ()
22444 {
22445 extern int select ($ac_arg1,
22446                                             $ac_arg234, $ac_arg234, $ac_arg234,
22447                                             $ac_arg5);
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 if ac_fn_c_try_compile "$LINENO"; then :
22453   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22454 fi
22455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22456   done
22457  done
22458 done
22459 # Provide a safe default value.
22460 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22461
22462 fi
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22464 $as_echo "$ac_cv_func_select_args" >&6; }
22465 ac_save_IFS=$IFS; IFS=','
22466 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22467 IFS=$ac_save_IFS
22468 shift
22469
22470 cat >>confdefs.h <<_ACEOF
22471 #define SELECT_TYPE_ARG1 $1
22472 _ACEOF
22473
22474
22475 cat >>confdefs.h <<_ACEOF
22476 #define SELECT_TYPE_ARG234 ($2)
22477 _ACEOF
22478
22479
22480 cat >>confdefs.h <<_ACEOF
22481 #define SELECT_TYPE_ARG5 ($3)
22482 _ACEOF
22483
22484 rm -f conftest*
22485
22486 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22487   $as_echo_n "(cached) " >&6
22488 else
22489   ac_cv_func_setvbuf_reversed=no
22490 fi
22491
22492
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22494 $as_echo_n "checking return type of signal handlers... " >&6; }
22495 if test "${ac_cv_type_signal+set}" = set; then :
22496   $as_echo_n "(cached) " >&6
22497 else
22498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h.  */
22500 #include <sys/types.h>
22501 #include <signal.h>
22502
22503 int
22504 main ()
22505 {
22506 return *(signal (0, 0)) (0) == 1;
22507   ;
22508   return 0;
22509 }
22510 _ACEOF
22511 if ac_fn_c_try_compile "$LINENO"; then :
22512   ac_cv_type_signal=int
22513 else
22514   ac_cv_type_signal=void
22515 fi
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 fi
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22519 $as_echo "$ac_cv_type_signal" >&6; }
22520
22521 cat >>confdefs.h <<_ACEOF
22522 #define RETSIGTYPE $ac_cv_type_signal
22523 _ACEOF
22524
22525
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22527 $as_echo_n "checking for working strtod... " >&6; }
22528 if test "${ac_cv_func_strtod+set}" = set; then :
22529   $as_echo_n "(cached) " >&6
22530 else
22531   if test "$cross_compiling" = yes; then :
22532   ac_cv_func_strtod=no
22533 else
22534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h.  */
22536
22537 $ac_includes_default
22538 #ifndef strtod
22539 double strtod ();
22540 #endif
22541 int
22542 main()
22543 {
22544   {
22545     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
22546     char *string = " +69";
22547     char *term;
22548     double value;
22549     value = strtod (string, &term);
22550     if (value != 69 || term != (string + 4))
22551       return 1;
22552   }
22553
22554   {
22555     /* Under Solaris 2.4, strtod returns the wrong value for the
22556        terminating character under some conditions.  */
22557     char *string = "NaN";
22558     char *term;
22559     strtod (string, &term);
22560     if (term != string && *(term - 1) == 0)
22561       return 1;
22562   }
22563   return 0;
22564 }
22565
22566 _ACEOF
22567 if ac_fn_c_try_run "$LINENO"; then :
22568   ac_cv_func_strtod=yes
22569 else
22570   ac_cv_func_strtod=no
22571 fi
22572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22573   conftest.$ac_objext conftest.beam conftest.$ac_ext
22574 fi
22575
22576 fi
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22578 $as_echo "$ac_cv_func_strtod" >&6; }
22579 if test $ac_cv_func_strtod = no; then
22580   case " $LIBOBJS " in
22581   *" strtod.$ac_objext "* ) ;;
22582   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22583  ;;
22584 esac
22585
22586 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22587 if test "x$ac_cv_func_pow" = x""yes; then :
22588
22589 fi
22590
22591 if test $ac_cv_func_pow = no; then
22592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
22593 $as_echo_n "checking for pow in -lm... " >&6; }
22594 if test "${ac_cv_lib_m_pow+set}" = set; then :
22595   $as_echo_n "(cached) " >&6
22596 else
22597   ac_check_lib_save_LIBS=$LIBS
22598 LIBS="-lm  $LIBS"
22599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22600 /* end confdefs.h.  */
22601
22602 /* Override any GCC internal prototype to avoid an error.
22603    Use char because int might match the return type of a GCC
22604    builtin and then its argument prototype would still apply.  */
22605 #ifdef __cplusplus
22606 extern "C"
22607 #endif
22608 char pow ();
22609 int
22610 main ()
22611 {
22612 return pow ();
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 if ac_fn_c_try_link "$LINENO"; then :
22618   ac_cv_lib_m_pow=yes
22619 else
22620   ac_cv_lib_m_pow=no
22621 fi
22622 rm -f core conftest.err conftest.$ac_objext \
22623     conftest$ac_exeext conftest.$ac_ext
22624 LIBS=$ac_check_lib_save_LIBS
22625 fi
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
22627 $as_echo "$ac_cv_lib_m_pow" >&6; }
22628 if test "x$ac_cv_lib_m_pow" = x""yes; then :
22629   POW_LIB=-lm
22630 else
22631   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
22632 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
22633 fi
22634
22635 fi
22636
22637 fi
22638
22639 for ac_func in vprintf
22640 do :
22641   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
22642 if test "x$ac_cv_func_vprintf" = x""yes; then :
22643   cat >>confdefs.h <<_ACEOF
22644 #define HAVE_VPRINTF 1
22645 _ACEOF
22646
22647 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
22648 if test "x$ac_cv_func__doprnt" = x""yes; then :
22649
22650 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
22651
22652 fi
22653
22654 fi
22655 done
22656
22657
22658
22659 #
22660 # Find math library
22661 #
22662 MATH_LIBS=''
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22664 $as_echo_n "checking for sqrt in -lm... " >&6; }
22665 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
22666   $as_echo_n "(cached) " >&6
22667 else
22668   ac_check_lib_save_LIBS=$LIBS
22669 LIBS="-lm  $LIBS"
22670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22671 /* end confdefs.h.  */
22672
22673 /* Override any GCC internal prototype to avoid an error.
22674    Use char because int might match the return type of a GCC
22675    builtin and then its argument prototype would still apply.  */
22676 #ifdef __cplusplus
22677 extern "C"
22678 #endif
22679 char sqrt ();
22680 int
22681 main ()
22682 {
22683 return sqrt ();
22684   ;
22685   return 0;
22686 }
22687 _ACEOF
22688 if ac_fn_c_try_link "$LINENO"; then :
22689   ac_cv_lib_m_sqrt=yes
22690 else
22691   ac_cv_lib_m_sqrt=no
22692 fi
22693 rm -f core conftest.err conftest.$ac_objext \
22694     conftest$ac_exeext conftest.$ac_ext
22695 LIBS=$ac_check_lib_save_LIBS
22696 fi
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22698 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
22699 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
22700   MATH_LIBS="-lm"
22701 fi
22702
22703 LIBS="$MATH_LIBS $LIBS"
22704
22705
22706 for ac_func in _exit atexit cimag clock directio execvp fchmod floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
22707 do :
22708   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22709 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22710 eval as_val=\$$as_ac_var
22711    if test "x$as_val" = x""yes; then :
22712   cat >>confdefs.h <<_ACEOF
22713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22714 _ACEOF
22715
22716 fi
22717 done
22718
22719
22720 #
22721 # Check for clock_gettime().
22722 #
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
22724 $as_echo_n "checking for library containing clock_gettime... " >&6; }
22725 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22726   $as_echo_n "(cached) " >&6
22727 else
22728   ac_func_search_save_LIBS=$LIBS
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731
22732 /* Override any GCC internal prototype to avoid an error.
22733    Use char because int might match the return type of a GCC
22734    builtin and then its argument prototype would still apply.  */
22735 #ifdef __cplusplus
22736 extern "C"
22737 #endif
22738 char clock_gettime ();
22739 int
22740 main ()
22741 {
22742 return clock_gettime ();
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 for ac_lib in '' rt; do
22748   if test -z "$ac_lib"; then
22749     ac_res="none required"
22750   else
22751     ac_res=-l$ac_lib
22752     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22753   fi
22754   if ac_fn_c_try_link "$LINENO"; then :
22755   ac_cv_search_clock_gettime=$ac_res
22756 fi
22757 rm -f core conftest.err conftest.$ac_objext \
22758     conftest$ac_exeext
22759   if test "${ac_cv_search_clock_gettime+set}" = set; then :
22760   break
22761 fi
22762 done
22763 if test "${ac_cv_search_clock_gettime+set}" = set; then :
22764
22765 else
22766   ac_cv_search_clock_gettime=no
22767 fi
22768 rm conftest.$ac_ext
22769 LIBS=$ac_func_search_save_LIBS
22770 fi
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
22772 $as_echo "$ac_cv_search_clock_gettime" >&6; }
22773 ac_res=$ac_cv_search_clock_gettime
22774 if test "$ac_res" != no; then :
22775   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22776
22777
22778 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22779
22780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
22781 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
22782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22783 /* end confdefs.h.  */
22784 #include <time.h>
22785 int
22786 main ()
22787 {
22788 clockid_t clockType = CLOCK_REALTIME;
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 if ac_fn_c_try_compile "$LINENO"; then :
22794
22795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22796 $as_echo "yes" >&6; }
22797
22798 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
22799
22800
22801 else
22802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22803 $as_echo "no" >&6; }
22804
22805 fi
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807
22808 else
22809
22810     for ac_func in gettimeofday ftime
22811 do :
22812   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22814 eval as_val=\$$as_ac_var
22815    if test "x$as_val" = x""yes; then :
22816   cat >>confdefs.h <<_ACEOF
22817 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22818 _ACEOF
22819  break
22820 fi
22821 done
22822
22823
22824
22825 fi
22826
22827
22828 ########
22829 #
22830 # Check for function prototypes
22831 #
22832 ########
22833
22834 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
22835 #include <unistd.h>
22836 "
22837 if test "x$ac_cv_have_decl_pread" = x""yes; then :
22838   ac_have_decl=1
22839 else
22840   ac_have_decl=0
22841 fi
22842
22843 cat >>confdefs.h <<_ACEOF
22844 #define HAVE_DECL_PREAD $ac_have_decl
22845 _ACEOF
22846 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
22847 #include <unistd.h>
22848 "
22849 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
22850   ac_have_decl=1
22851 else
22852   ac_have_decl=0
22853 fi
22854
22855 cat >>confdefs.h <<_ACEOF
22856 #define HAVE_DECL_PWRITE $ac_have_decl
22857 _ACEOF
22858
22859
22860 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
22861 #include <strings.h>
22862 "
22863 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
22864   ac_have_decl=1
22865 else
22866   ac_have_decl=0
22867 fi
22868
22869 cat >>confdefs.h <<_ACEOF
22870 #define HAVE_DECL_STRLCPY $ac_have_decl
22871 _ACEOF
22872
22873
22874 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
22875 #include <stdio.h>
22876 #include <stdarg.h>
22877 "
22878 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
22879   ac_have_decl=1
22880 else
22881   ac_have_decl=0
22882 fi
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define HAVE_DECL_VSNPRINTF $ac_have_decl
22886 _ACEOF
22887
22888
22889 ########
22890 #
22891 # C++ Support Tests (For Magick++)
22892 #
22893 ########
22894 have_magick_plus_plus='no'
22895 if test "$with_magick_plus_plus" = 'yes'; then
22896     OLIBS="$LIBS"
22897     LIBS=''
22898     ac_ext=cpp
22899 ac_cpp='$CXXCPP $CPPFLAGS'
22900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22903
22904
22905     # Full set of headers used...
22906     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
22907     # functional iomanip iosfwd iostream iterator list string strstream utility
22908     ac_ext=cpp
22909 ac_cpp='$CXXCPP $CPPFLAGS'
22910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22913
22914     ac_ext=cpp
22915 ac_cpp='$CXXCPP $CPPFLAGS'
22916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22919 if test -z "$CXX"; then
22920   if test -n "$CCC"; then
22921     CXX=$CCC
22922   else
22923     if test -n "$ac_tool_prefix"; then
22924   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22925   do
22926     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22929 $as_echo_n "checking for $ac_word... " >&6; }
22930 if test "${ac_cv_prog_CXX+set}" = set; then :
22931   $as_echo_n "(cached) " >&6
22932 else
22933   if test -n "$CXX"; then
22934   ac_cv_prog_CXX="$CXX" # Let the user override the test.
22935 else
22936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22937 for as_dir in $PATH
22938 do
22939   IFS=$as_save_IFS
22940   test -z "$as_dir" && as_dir=.
22941     for ac_exec_ext in '' $ac_executable_extensions; do
22942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22943     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22945     break 2
22946   fi
22947 done
22948   done
22949 IFS=$as_save_IFS
22950
22951 fi
22952 fi
22953 CXX=$ac_cv_prog_CXX
22954 if test -n "$CXX"; then
22955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22956 $as_echo "$CXX" >&6; }
22957 else
22958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960 fi
22961
22962
22963     test -n "$CXX" && break
22964   done
22965 fi
22966 if test -z "$CXX"; then
22967   ac_ct_CXX=$CXX
22968   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22969 do
22970   # Extract the first word of "$ac_prog", so it can be a program name with args.
22971 set dummy $ac_prog; ac_word=$2
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22973 $as_echo_n "checking for $ac_word... " >&6; }
22974 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22975   $as_echo_n "(cached) " >&6
22976 else
22977   if test -n "$ac_ct_CXX"; then
22978   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22979 else
22980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22981 for as_dir in $PATH
22982 do
22983   IFS=$as_save_IFS
22984   test -z "$as_dir" && as_dir=.
22985     for ac_exec_ext in '' $ac_executable_extensions; do
22986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22987     ac_cv_prog_ac_ct_CXX="$ac_prog"
22988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22989     break 2
22990   fi
22991 done
22992   done
22993 IFS=$as_save_IFS
22994
22995 fi
22996 fi
22997 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22998 if test -n "$ac_ct_CXX"; then
22999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23000 $as_echo "$ac_ct_CXX" >&6; }
23001 else
23002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23003 $as_echo "no" >&6; }
23004 fi
23005
23006
23007   test -n "$ac_ct_CXX" && break
23008 done
23009
23010   if test "x$ac_ct_CXX" = x; then
23011     CXX="g++"
23012   else
23013     case $cross_compiling:$ac_tool_warned in
23014 yes:)
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23017 ac_tool_warned=yes ;;
23018 esac
23019     CXX=$ac_ct_CXX
23020   fi
23021 fi
23022
23023   fi
23024 fi
23025 # Provide some information about the compiler.
23026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23027 set X $ac_compile
23028 ac_compiler=$2
23029 for ac_option in --version -v -V -qversion; do
23030   { { ac_try="$ac_compiler $ac_option >&5"
23031 case "(($ac_try" in
23032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23033   *) ac_try_echo=$ac_try;;
23034 esac
23035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23036 $as_echo "$ac_try_echo"; } >&5
23037   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23038   ac_status=$?
23039   if test -s conftest.err; then
23040     sed '10a\
23041 ... rest of stderr output deleted ...
23042          10q' conftest.err >conftest.er1
23043     cat conftest.er1 >&5
23044   fi
23045   rm -f conftest.er1 conftest.err
23046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23047   test $ac_status = 0; }
23048 done
23049
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23051 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23052 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23053   $as_echo_n "(cached) " >&6
23054 else
23055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058 int
23059 main ()
23060 {
23061 #ifndef __GNUC__
23062        choke me
23063 #endif
23064
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 if ac_fn_cxx_try_compile "$LINENO"; then :
23070   ac_compiler_gnu=yes
23071 else
23072   ac_compiler_gnu=no
23073 fi
23074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23075 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23076
23077 fi
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23079 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23080 if test $ac_compiler_gnu = yes; then
23081   GXX=yes
23082 else
23083   GXX=
23084 fi
23085 ac_test_CXXFLAGS=${CXXFLAGS+set}
23086 ac_save_CXXFLAGS=$CXXFLAGS
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23088 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23089 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23090   $as_echo_n "(cached) " >&6
23091 else
23092   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23093    ac_cxx_werror_flag=yes
23094    ac_cv_prog_cxx_g=no
23095    CXXFLAGS="-g"
23096    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23097 /* end confdefs.h.  */
23098
23099 int
23100 main ()
23101 {
23102
23103   ;
23104   return 0;
23105 }
23106 _ACEOF
23107 if ac_fn_cxx_try_compile "$LINENO"; then :
23108   ac_cv_prog_cxx_g=yes
23109 else
23110   CXXFLAGS=""
23111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23112 /* end confdefs.h.  */
23113
23114 int
23115 main ()
23116 {
23117
23118   ;
23119   return 0;
23120 }
23121 _ACEOF
23122 if ac_fn_cxx_try_compile "$LINENO"; then :
23123
23124 else
23125   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23126          CXXFLAGS="-g"
23127          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23128 /* end confdefs.h.  */
23129
23130 int
23131 main ()
23132 {
23133
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 if ac_fn_cxx_try_compile "$LINENO"; then :
23139   ac_cv_prog_cxx_g=yes
23140 fi
23141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 fi
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 fi
23145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23146    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23147 fi
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23149 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23150 if test "$ac_test_CXXFLAGS" = set; then
23151   CXXFLAGS=$ac_save_CXXFLAGS
23152 elif test $ac_cv_prog_cxx_g = yes; then
23153   if test "$GXX" = yes; then
23154     CXXFLAGS="-g -O2"
23155   else
23156     CXXFLAGS="-g"
23157   fi
23158 else
23159   if test "$GXX" = yes; then
23160     CXXFLAGS="-O2"
23161   else
23162     CXXFLAGS=
23163   fi
23164 fi
23165 ac_ext=cpp
23166 ac_cpp='$CXXCPP $CPPFLAGS'
23167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23170
23171 depcc="$CXX"  am_compiler_list=
23172
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23174 $as_echo_n "checking dependency style of $depcc... " >&6; }
23175 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23176   $as_echo_n "(cached) " >&6
23177 else
23178   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23179   # We make a subdir and do the tests there.  Otherwise we can end up
23180   # making bogus files that we don't know about and never remove.  For
23181   # instance it was reported that on HP-UX the gcc test will end up
23182   # making a dummy file named `D' -- because `-MD' means `put the output
23183   # in D'.
23184   mkdir conftest.dir
23185   # Copy depcomp to subdir because otherwise we won't find it if we're
23186   # using a relative directory.
23187   cp "$am_depcomp" conftest.dir
23188   cd conftest.dir
23189   # We will build objects and dependencies in a subdirectory because
23190   # it helps to detect inapplicable dependency modes.  For instance
23191   # both Tru64's cc and ICC support -MD to output dependencies as a
23192   # side effect of compilation, but ICC will put the dependencies in
23193   # the current directory while Tru64 will put them in the object
23194   # directory.
23195   mkdir sub
23196
23197   am_cv_CXX_dependencies_compiler_type=none
23198   if test "$am_compiler_list" = ""; then
23199      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23200   fi
23201   am__universal=false
23202   case " $depcc " in #(
23203      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23204      esac
23205
23206   for depmode in $am_compiler_list; do
23207     # Setup a source with many dependencies, because some compilers
23208     # like to wrap large dependency lists on column 80 (with \), and
23209     # we should not choose a depcomp mode which is confused by this.
23210     #
23211     # We need to recreate these files for each test, as the compiler may
23212     # overwrite some of them when testing with obscure command lines.
23213     # This happens at least with the AIX C compiler.
23214     : > sub/conftest.c
23215     for i in 1 2 3 4 5 6; do
23216       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23217       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23218       # Solaris 8's {/usr,}/bin/sh.
23219       touch sub/conftst$i.h
23220     done
23221     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23222
23223     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23224     # mode.  It turns out that the SunPro C++ compiler does not properly
23225     # handle `-M -o', and we need to detect this.  Also, some Intel
23226     # versions had trouble with output in subdirs
23227     am__obj=sub/conftest.${OBJEXT-o}
23228     am__minus_obj="-o $am__obj"
23229     case $depmode in
23230     gcc)
23231       # This depmode causes a compiler race in universal mode.
23232       test "$am__universal" = false || continue
23233       ;;
23234     nosideeffect)
23235       # after this tag, mechanisms are not by side-effect, so they'll
23236       # only be used when explicitly requested
23237       if test "x$enable_dependency_tracking" = xyes; then
23238         continue
23239       else
23240         break
23241       fi
23242       ;;
23243     msvisualcpp | msvcmsys)
23244       # This compiler won't grok `-c -o', but also, the minuso test has
23245       # not run yet.  These depmodes are late enough in the game, and
23246       # so weak that their functioning should not be impacted.
23247       am__obj=conftest.${OBJEXT-o}
23248       am__minus_obj=
23249       ;;
23250     none) break ;;
23251     esac
23252     if depmode=$depmode \
23253        source=sub/conftest.c object=$am__obj \
23254        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23255        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23256          >/dev/null 2>conftest.err &&
23257        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23258        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23259        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23260        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23261       # icc doesn't choke on unknown options, it will just issue warnings
23262       # or remarks (even with -Werror).  So we grep stderr for any message
23263       # that says an option was ignored or not supported.
23264       # When given -MP, icc 7.0 and 7.1 complain thusly:
23265       #   icc: Command line warning: ignoring option '-M'; no argument required
23266       # The diagnosis changed in icc 8.0:
23267       #   icc: Command line remark: option '-MP' not supported
23268       if (grep 'ignoring option' conftest.err ||
23269           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23270         am_cv_CXX_dependencies_compiler_type=$depmode
23271         break
23272       fi
23273     fi
23274   done
23275
23276   cd ..
23277   rm -rf conftest.dir
23278 else
23279   am_cv_CXX_dependencies_compiler_type=none
23280 fi
23281
23282 fi
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23284 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23285 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23286
23287  if
23288   test "x$enable_dependency_tracking" != xno \
23289   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23290   am__fastdepCXX_TRUE=
23291   am__fastdepCXX_FALSE='#'
23292 else
23293   am__fastdepCXX_TRUE='#'
23294   am__fastdepCXX_FALSE=
23295 fi
23296
23297
23298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23299 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23300 if test "${ac_cv_cxx_have_bool+set}" = set; then :
23301   $as_echo_n "(cached) " >&6
23302 else
23303
23304  ac_ext=cpp
23305 ac_cpp='$CXXCPP $CPPFLAGS'
23306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23309
23310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311 /* end confdefs.h.  */
23312
23313 int f(int  x){return 1;}
23314 int f(char x){return 1;}
23315 int f(bool x){return 1;}
23316
23317 int
23318 main ()
23319 {
23320 bool b = true; return f(b);
23321   ;
23322   return 0;
23323 }
23324 _ACEOF
23325 if ac_fn_cxx_try_compile "$LINENO"; then :
23326   ac_cv_cxx_have_bool=yes
23327 else
23328   ac_cv_cxx_have_bool=no
23329 fi
23330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23331  ac_ext=cpp
23332 ac_cpp='$CXXCPP $CPPFLAGS'
23333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23336
23337
23338 fi
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
23340 $as_echo "$ac_cv_cxx_have_bool" >&6; }
23341 if test "$ac_cv_cxx_have_bool" = yes; then
23342
23343 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23344
23345 fi
23346
23347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23348 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23349 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
23350   $as_echo_n "(cached) " >&6
23351 else
23352
23353  ac_ext=cpp
23354 ac_cpp='$CXXCPP $CPPFLAGS'
23355 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23358
23359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360 /* end confdefs.h.  */
23361 namespace Outer { namespace Inner { int i = 0; }}
23362 int
23363 main ()
23364 {
23365 using namespace Outer::Inner; return i;
23366   ;
23367   return 0;
23368 }
23369 _ACEOF
23370 if ac_fn_cxx_try_compile "$LINENO"; then :
23371   ac_cv_cxx_have_namespaces=yes
23372 else
23373   ac_cv_cxx_have_namespaces=no
23374 fi
23375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376  ac_ext=cpp
23377 ac_cpp='$CXXCPP $CPPFLAGS'
23378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23381
23382
23383 fi
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
23385 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
23386 if test "$ac_cv_cxx_have_namespaces" = yes; then
23387
23388 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23389
23390 fi
23391
23392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
23393 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
23394 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
23395   $as_echo_n "(cached) " >&6
23396 else
23397
23398  ac_ext=cpp
23399 ac_cpp='$CXXCPP $CPPFLAGS'
23400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23403
23404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23405 /* end confdefs.h.  */
23406 #include <iostream>
23407         std::istream& is = std::cin;
23408
23409 int
23410 main ()
23411 {
23412 return 0;
23413   ;
23414   return 0;
23415 }
23416 _ACEOF
23417 if ac_fn_cxx_try_compile "$LINENO"; then :
23418   ac_cv_cxx_have_std_namespace=yes
23419 else
23420   ac_cv_cxx_have_std_namespace=no
23421 fi
23422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423  ac_ext=cpp
23424 ac_cpp='$CXXCPP $CPPFLAGS'
23425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23428
23429
23430 fi
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
23432 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
23433 if test "$ac_cv_cxx_have_std_namespace" = yes; then
23434
23435 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
23436
23437 fi
23438
23439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23440 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23441 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23442   $as_echo_n "(cached) " >&6
23443 else
23444
23445
23446  ac_ext=cpp
23447 ac_cpp='$CXXCPP $CPPFLAGS'
23448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23451
23452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23453 /* end confdefs.h.  */
23454 #include <iostream>
23455 #include <map>
23456 #include <iomanip>
23457 #include <cmath>
23458 #ifdef HAVE_NAMESPACES
23459 using namespace std;
23460 #endif
23461 int
23462 main ()
23463 {
23464 return 0;
23465   ;
23466   return 0;
23467 }
23468 _ACEOF
23469 if ac_fn_cxx_try_compile "$LINENO"; then :
23470   ac_cv_cxx_have_std_libs=yes
23471 else
23472   ac_cv_cxx_have_std_libs=no
23473 fi
23474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23475  ac_ext=cpp
23476 ac_cpp='$CXXCPP $CPPFLAGS'
23477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23480
23481
23482 fi
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23484 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23485 if test "$ac_cv_cxx_have_std_libs" = yes; then
23486
23487 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23488
23489 fi
23490
23491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23492 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23493 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23494   $as_echo_n "(cached) " >&6
23495 else
23496
23497  ac_ext=cpp
23498 ac_cpp='$CXXCPP $CPPFLAGS'
23499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23502
23503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h.  */
23505 const wchar_t* s=L"wide string";
23506 _ACEOF
23507 if ac_fn_cxx_try_compile "$LINENO"; then :
23508   ac_cv_cxx_have_lstring=yes
23509 else
23510   ac_cv_cxx_have_lstring=no
23511 fi
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513  ac_ext=cpp
23514 ac_cpp='$CXXCPP $CPPFLAGS'
23515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23518
23519
23520 fi
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23522 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23523 if test "$ac_cv_cxx_have_lstring" = yes; then
23524
23525 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23526
23527 fi
23528
23529
23530   OPENMP_CXXFLAGS=
23531   # Check whether --enable-openmp was given.
23532 if test "${enable_openmp+set}" = set; then :
23533   enableval=$enable_openmp;
23534 fi
23535
23536   if test "$enable_openmp" != no; then
23537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23538 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23539 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23540   $as_echo_n "(cached) " >&6
23541 else
23542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h.  */
23544
23545 #ifndef _OPENMP
23546  choke me
23547 #endif
23548 #include <omp.h>
23549 int main () { return omp_get_num_threads (); }
23550
23551 _ACEOF
23552 if ac_fn_cxx_try_link "$LINENO"; then :
23553   ac_cv_prog_cxx_openmp='none needed'
23554 else
23555   ac_cv_prog_cxx_openmp='unsupported'
23556                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23557             ac_save_CXXFLAGS=$CXXFLAGS
23558             CXXFLAGS="$CXXFLAGS $ac_option"
23559             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23560 /* end confdefs.h.  */
23561
23562 #ifndef _OPENMP
23563  choke me
23564 #endif
23565 #include <omp.h>
23566 int main () { return omp_get_num_threads (); }
23567
23568 _ACEOF
23569 if ac_fn_cxx_try_link "$LINENO"; then :
23570   ac_cv_prog_cxx_openmp=$ac_option
23571 fi
23572 rm -f core conftest.err conftest.$ac_objext \
23573     conftest$ac_exeext conftest.$ac_ext
23574             CXXFLAGS=$ac_save_CXXFLAGS
23575             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23576               break
23577             fi
23578           done
23579 fi
23580 rm -f core conftest.err conftest.$ac_objext \
23581     conftest$ac_exeext conftest.$ac_ext
23582 fi
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23584 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23585     case $ac_cv_prog_cxx_openmp in #(
23586       "none needed" | unsupported)
23587         ;; #(
23588       *)
23589         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
23590     esac
23591   fi
23592
23593
23594     ac_ext=c
23595 ac_cpp='$CPP $CPPFLAGS'
23596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23599
23600
23601     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
23602 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
23603     if \
23604         test $ac_cv_cxx_have_bool = 'yes' && \
23605         test $ac_cv_cxx_have_lstring = 'yes' && \
23606         test $ac_cv_cxx_have_namespaces = 'yes' && \
23607         test $ac_cv_cxx_have_std_libs = 'yes' && \
23608         test $ac_cv_cxx_have_std_namespace = 'yes'; then
23609         have_magick_plus_plus='yes'
23610     else
23611         have_magick_plus_plus='no (failed tests)'
23612     fi
23613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
23614 $as_echo "$have_magick_plus_plus" >&6; }
23615     LIBS="$OLIBS"
23616 fi
23617  if test "$have_magick_plus_plus" = 'yes'; then
23618   WITH_MAGICK_PLUS_PLUS_TRUE=
23619   WITH_MAGICK_PLUS_PLUS_FALSE='#'
23620 else
23621   WITH_MAGICK_PLUS_PLUS_TRUE='#'
23622   WITH_MAGICK_PLUS_PLUS_FALSE=
23623 fi
23624
23625
23626 # Only check for delegate libraries in subdirectories if requested.
23627 if test "$enable_delegate_build" != 'no'; then
23628     # Check for delegate sub-directories and add -I & -L options as required.
23629     # This presumes that delegates are installed as detailed in the ImageMagick
23630     # README. If delegates are installed in a standard location where the
23631     # compiler will automatically find them then these options should not be
23632     # required.
23633
23634     #
23635     # Most delegates have includes in the same directory as the library, but not all...
23636     #
23637     # Includes
23638     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
23639         if test -d "$builddir/$dir"; then
23640             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
23641         else
23642             if test -d "$srcdirfull/$dir"; then
23643                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
23644             fi
23645         fi
23646     done
23647
23648     # Libraries
23649     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
23650     if test -d "$builddir/$dir/.libs"; then
23651         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
23652     else
23653         if test -d "$srcdirfull/$dir/.libs"; then
23654             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
23655         fi
23656     fi
23657     if test -d "$builddir/$dir"; then
23658         LDFLAGS="$LDFLAGS -L$builddir/$dir"
23659     else
23660         if test -d "$srcdirfull/$dir"; then
23661             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
23662         fi
23663     fi
23664   done
23665 fi
23666
23667 # Assume that delegate headers reside under same directory as ImageMagick
23668 # installation prefix.
23669 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
23670
23671 #
23672 # Find the X11 RGB database
23673 #
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
23675 $as_echo_n "checking for X11 configure files... " >&6; }
23676 if test "${im_cv_x_configure+set}" = set; then :
23677   $as_echo_n "(cached) " >&6
23678 else
23679   # Look for the header file in a standard set of common directories.
23680 # Check X11 before X11Rn because it is often a symlink to the current release.
23681     for ac_dir in          \
23682     /lib/usr/lib/X11       \
23683     /usr/X11/lib           \
23684     /usr/X11R4/lib         \
23685     /usr/X11R5/lib         \
23686     /usr/X11R6/lib         \
23687     /usr/X11R7/lib         \
23688     /usr/X386/lib          \
23689     /usr/XFree86/lib/X11   \
23690     /usr/athena/lib        \
23691     /usr/lib               \
23692     /usr/lib/X11           \
23693     /usr/lib/X11R4         \
23694     /usr/lib/X11R5         \
23695     /usr/lib/X11R6         \
23696     /usr/lib/X11R7         \
23697     /usr/local/X11/lib     \
23698     /usr/local/X11R4/lib   \
23699     /usr/local/X11R5/lib   \
23700     /usr/local/X11R6/lib   \
23701     /usr/local/lib         \
23702     /usr/local/lib/X11     \
23703     /usr/local/lib/X11R4   \
23704     /usr/local/lib/X11R5   \
23705     /usr/local/lib/X11R6   \
23706     /usr/local/lib/X11R7   \
23707     /usr/local/x11r5/lib   \
23708     /usr/lpp/Xamples/lib   \
23709     /usr/openwin/lib       \
23710     /usr/openwin/share/lib \
23711     /usr/unsupported/lib   \
23712     /usr/x386/lib          \
23713     ; do
23714     if test -f "$ac_dir/X11/rgb.txt"; then
23715       im_cv_x_configure="$ac_dir/X11/"
23716       break
23717     elif test -f "$ac_dir/rgb.txt"; then
23718       im_cv_x_configure="$ac_dir/"
23719       break
23720     fi
23721
23722   done
23723 fi
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
23725 $as_echo "$im_cv_x_configure" >&6; }
23726 X11_CONFIGURE_PATH="$im_cv_x_configure"
23727 case "${build_os}" in
23728   mingw* )
23729     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
23730   ;;
23731 esac
23732
23733 cat >>confdefs.h <<_ACEOF
23734 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
23735 _ACEOF
23736
23737
23738 #
23739 # Find OpenMP library
23740 #
23741 GOMP_LIBS=''
23742 if test "$enable_openmp" != 'no'; then
23743   if test "${GCC}" = "yes"; then
23744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
23745 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
23746 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
23747   $as_echo_n "(cached) " >&6
23748 else
23749   ac_check_lib_save_LIBS=$LIBS
23750 LIBS="-lgomp  $LIBS"
23751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23752 /* end confdefs.h.  */
23753
23754 /* Override any GCC internal prototype to avoid an error.
23755    Use char because int might match the return type of a GCC
23756    builtin and then its argument prototype would still apply.  */
23757 #ifdef __cplusplus
23758 extern "C"
23759 #endif
23760 char GOMP_parallel_start ();
23761 int
23762 main ()
23763 {
23764 return GOMP_parallel_start ();
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 if ac_fn_c_try_link "$LINENO"; then :
23770   ac_cv_lib_gomp_GOMP_parallel_start=yes
23771 else
23772   ac_cv_lib_gomp_GOMP_parallel_start=no
23773 fi
23774 rm -f core conftest.err conftest.$ac_objext \
23775     conftest$ac_exeext conftest.$ac_ext
23776 LIBS=$ac_check_lib_save_LIBS
23777 fi
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
23779 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
23780 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
23781   GOMP_LIBS="-lgomp"
23782 fi
23783   # gcc
23784   else
23785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
23786 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
23787 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
23788   $as_echo_n "(cached) " >&6
23789 else
23790   ac_check_lib_save_LIBS=$LIBS
23791 LIBS="-lmtsk  $LIBS"
23792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23793 /* end confdefs.h.  */
23794
23795 /* Override any GCC internal prototype to avoid an error.
23796    Use char because int might match the return type of a GCC
23797    builtin and then its argument prototype would still apply.  */
23798 #ifdef __cplusplus
23799 extern "C"
23800 #endif
23801 char sunw_mp_register_warn ();
23802 int
23803 main ()
23804 {
23805 return sunw_mp_register_warn ();
23806   ;
23807   return 0;
23808 }
23809 _ACEOF
23810 if ac_fn_c_try_link "$LINENO"; then :
23811   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
23812 else
23813   ac_cv_lib_mtsk_sunw_mp_register_warn=no
23814 fi
23815 rm -f core conftest.err conftest.$ac_objext \
23816     conftest$ac_exeext conftest.$ac_ext
23817 LIBS=$ac_check_lib_save_LIBS
23818 fi
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
23820 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
23821 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
23822   GOMP_LIBS="-lmtsk"
23823 fi
23824   # solaris cc
23825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
23826 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
23827 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
23828   $as_echo_n "(cached) " >&6
23829 else
23830   ac_check_lib_save_LIBS=$LIBS
23831 LIBS="-lxlsmp  $LIBS"
23832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23833 /* end confdefs.h.  */
23834
23835 /* Override any GCC internal prototype to avoid an error.
23836    Use char because int might match the return type of a GCC
23837    builtin and then its argument prototype would still apply.  */
23838 #ifdef __cplusplus
23839 extern "C"
23840 #endif
23841 char _xlsmpFlush ();
23842 int
23843 main ()
23844 {
23845 return _xlsmpFlush ();
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 if ac_fn_c_try_link "$LINENO"; then :
23851   ac_cv_lib_xlsmp__xlsmpFlush=yes
23852 else
23853   ac_cv_lib_xlsmp__xlsmpFlush=no
23854 fi
23855 rm -f core conftest.err conftest.$ac_objext \
23856     conftest$ac_exeext conftest.$ac_ext
23857 LIBS=$ac_check_lib_save_LIBS
23858 fi
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
23860 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
23861 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
23862   GOMP_LIBS="-lxlsmp"
23863 fi
23864   # AIX xlc
23865     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
23866 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
23867 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
23868   $as_echo_n "(cached) " >&6
23869 else
23870   ac_check_lib_save_LIBS=$LIBS
23871 LIBS="-lmp  $LIBS"
23872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23873 /* end confdefs.h.  */
23874
23875 /* Override any GCC internal prototype to avoid an error.
23876    Use char because int might match the return type of a GCC
23877    builtin and then its argument prototype would still apply.  */
23878 #ifdef __cplusplus
23879 extern "C"
23880 #endif
23881 char mp_destroy ();
23882 int
23883 main ()
23884 {
23885 return mp_destroy ();
23886   ;
23887   return 0;
23888 }
23889 _ACEOF
23890 if ac_fn_c_try_link "$LINENO"; then :
23891   ac_cv_lib_mp_mp_destroy=yes
23892 else
23893   ac_cv_lib_mp_mp_destroy=no
23894 fi
23895 rm -f core conftest.err conftest.$ac_objext \
23896     conftest$ac_exeext conftest.$ac_ext
23897 LIBS=$ac_check_lib_save_LIBS
23898 fi
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
23900 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
23901 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
23902   GOMP_LIBS="-lmp"
23903 fi
23904   # SGI IRIX 6.5 MIPSpro C/C++
23905   fi
23906   LIBS="$GOMP_LIBS $LIBS"
23907 fi
23908
23909
23910 #
23911 # Find Posix threads library
23912 #
23913 THREAD_LIBS=''
23914 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23915
23916     if test "x$PTHREAD_LIBS" = "x"; then
23917     case "${host_cpu}-${host_os}" in
23918       *-freebsd*)
23919
23920
23921
23922 ac_ext=c
23923 ac_cpp='$CPP $CPPFLAGS'
23924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23927
23928 magick_pthread_lib_ok=no
23929
23930 LIB=-lc_r
23931 save_LIBS="$LIBS"
23932 LIBS="$LIBS $LIB"
23933
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23935 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h.  */
23938 #include <pthread.h>
23939 int
23940 main ()
23941 {
23942   pthread_t th;
23943   pthread_join(th, 0);
23944   pthread_attr_init(0);
23945   pthread_cleanup_push(0, 0);
23946   pthread_create(0,0,0,0);
23947   pthread_cleanup_pop(0);
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 if ac_fn_c_try_link "$LINENO"; then :
23953   magick_pthread_lib_ok=yes
23954 fi
23955 rm -f core conftest.err conftest.$ac_objext \
23956     conftest$ac_exeext conftest.$ac_ext
23957
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23959 $as_echo "${magick_pthread_lib_ok}" >&6; }
23960 if test "$magick_pthread_lib_ok" = yes
23961 then
23962   PTHREAD_LIBS=-lc_r
23963   :
23964 else
23965
23966   :
23967 fi
23968
23969 LIBS="$save_LIBS"
23970
23971 ac_ext=c
23972 ac_cpp='$CPP $CPPFLAGS'
23973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23976
23977  ;;
23978     esac
23979     fi
23980
23981     for lib in pthread pthreads; do
23982         if test "x$PTHREAD_LIBS" = "x"; then
23983
23984
23985
23986 ac_ext=c
23987 ac_cpp='$CPP $CPPFLAGS'
23988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23991
23992 magick_pthread_lib_ok=no
23993
23994 LIB=-l$lib
23995 save_LIBS="$LIBS"
23996 LIBS="$LIBS $LIB"
23997
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23999 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h.  */
24002 #include <pthread.h>
24003 int
24004 main ()
24005 {
24006   pthread_t th;
24007   pthread_join(th, 0);
24008   pthread_attr_init(0);
24009   pthread_cleanup_push(0, 0);
24010   pthread_create(0,0,0,0);
24011   pthread_cleanup_pop(0);
24012   ;
24013   return 0;
24014 }
24015 _ACEOF
24016 if ac_fn_c_try_link "$LINENO"; then :
24017   magick_pthread_lib_ok=yes
24018 fi
24019 rm -f core conftest.err conftest.$ac_objext \
24020     conftest$ac_exeext conftest.$ac_ext
24021
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24023 $as_echo "${magick_pthread_lib_ok}" >&6; }
24024 if test "$magick_pthread_lib_ok" = yes
24025 then
24026   PTHREAD_LIBS=-l$lib
24027   :
24028 else
24029
24030   :
24031 fi
24032
24033 LIBS="$save_LIBS"
24034
24035 ac_ext=c
24036 ac_cpp='$CPP $CPPFLAGS'
24037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24040
24041
24042         fi
24043     done
24044
24045     THREAD_LIBS="$PTHREAD_LIBS"
24046     LIBS="$LIBS $THREAD_LIBS"
24047 fi
24048
24049
24050 #
24051 # Check for umem.
24052 #
24053 have_umem='no'
24054 UMEM_LIBS=''
24055 if test "$with_umem" != 'no'; then
24056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24057 $as_echo_n "checking for UMEM support ... " >&6; }
24058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24059 $as_echo "" >&6; }
24060   failed=0
24061   passed=0
24062   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24063 if test "x$ac_cv_header_umem_h" = x""yes; then :
24064   passed=`expr $passed + 1`
24065 else
24066   failed=`expr $failed + 1`
24067 fi
24068
24069
24070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24071 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24072 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24073   $as_echo_n "(cached) " >&6
24074 else
24075   ac_check_lib_save_LIBS=$LIBS
24076 LIBS="-lumem  $LIBS"
24077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078 /* end confdefs.h.  */
24079
24080 /* Override any GCC internal prototype to avoid an error.
24081    Use char because int might match the return type of a GCC
24082    builtin and then its argument prototype would still apply.  */
24083 #ifdef __cplusplus
24084 extern "C"
24085 #endif
24086 char umem_alloc ();
24087 int
24088 main ()
24089 {
24090 return umem_alloc ();
24091   ;
24092   return 0;
24093 }
24094 _ACEOF
24095 if ac_fn_c_try_link "$LINENO"; then :
24096   ac_cv_lib_umem_umem_alloc=yes
24097 else
24098   ac_cv_lib_umem_umem_alloc=no
24099 fi
24100 rm -f core conftest.err conftest.$ac_objext \
24101     conftest$ac_exeext conftest.$ac_ext
24102 LIBS=$ac_check_lib_save_LIBS
24103 fi
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24105 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24106 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24107   passed=`expr $passed + 1`
24108 else
24109   failed=`expr $failed + 1`
24110 fi
24111
24112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24113 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24114 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24115   $as_echo_n "(cached) " >&6
24116 else
24117   ac_check_lib_save_LIBS=$LIBS
24118 LIBS="-lumem  $LIBS"
24119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h.  */
24121
24122 /* Override any GCC internal prototype to avoid an error.
24123    Use char because int might match the return type of a GCC
24124    builtin and then its argument prototype would still apply.  */
24125 #ifdef __cplusplus
24126 extern "C"
24127 #endif
24128 char umem_free ();
24129 int
24130 main ()
24131 {
24132 return umem_free ();
24133   ;
24134   return 0;
24135 }
24136 _ACEOF
24137 if ac_fn_c_try_link "$LINENO"; then :
24138   ac_cv_lib_umem_umem_free=yes
24139 else
24140   ac_cv_lib_umem_umem_free=no
24141 fi
24142 rm -f core conftest.err conftest.$ac_objext \
24143     conftest$ac_exeext conftest.$ac_ext
24144 LIBS=$ac_check_lib_save_LIBS
24145 fi
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24147 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24148 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24149   passed=`expr $passed + 1`
24150 else
24151   failed=`expr $failed + 1`
24152 fi
24153
24154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24155 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24156   if test $passed -gt 0; then
24157     if test $failed -gt 0; then
24158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24159 $as_echo "no -- some components failed test" >&6; }
24160       have_umem='no (failed tests)'
24161     else
24162       UMEM_LIBS='-lumem'
24163       LIBS="$UMEM_LIBS $LIBS"
24164
24165 $as_echo "#define HasUMEM 1" >>confdefs.h
24166
24167       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24168 $as_echo "yes" >&6; }
24169       have_umem='yes'
24170     fi
24171   else
24172     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24174   fi
24175 fi
24176  if test "$have_umem" = 'yes'; then
24177   HasUMEM_TRUE=
24178   HasUMEM_FALSE='#'
24179 else
24180   HasUMEM_TRUE='#'
24181   HasUMEM_FALSE=
24182 fi
24183
24184
24185
24186 #
24187 # Add support for ccmalloc memory debugging library if requested
24188 #
24189 have_ccmalloc='no'
24190 CCMALLOC_LIBS=''
24191 if test "$enable_ccmalloc" = 'yes'; then
24192     # Extract the first word of "ccmalloc", so it can be a program name with args.
24193 set dummy ccmalloc; ac_word=$2
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24195 $as_echo_n "checking for $ac_word... " >&6; }
24196 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24197   $as_echo_n "(cached) " >&6
24198 else
24199   case $CCMALLOCDelegate in
24200   [\\/]* | ?:[\\/]*)
24201   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24202   ;;
24203   *)
24204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24205 for as_dir in $PATH
24206 do
24207   IFS=$as_save_IFS
24208   test -z "$as_dir" && as_dir=.
24209     for ac_exec_ext in '' $ac_executable_extensions; do
24210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24211     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24213     break 2
24214   fi
24215 done
24216   done
24217 IFS=$as_save_IFS
24218
24219   ;;
24220 esac
24221 fi
24222 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24223 if test -n "$CCMALLOCDelegate"; then
24224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24225 $as_echo "$CCMALLOCDelegate" >&6; }
24226 else
24227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24228 $as_echo "no" >&6; }
24229 fi
24230
24231
24232     if test -n "$CCMALLOCDelegate"; then
24233         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24234         OLIBS="$LIBS"
24235         # Assume that gcc is used with ccmalloc.
24236         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24237        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24238 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24239 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24240   $as_echo_n "(cached) " >&6
24241 else
24242   ac_check_lib_save_LIBS=$LIBS
24243 LIBS="-lccmalloc -ldl $LIBS"
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h.  */
24246
24247 /* Override any GCC internal prototype to avoid an error.
24248    Use char because int might match the return type of a GCC
24249    builtin and then its argument prototype would still apply.  */
24250 #ifdef __cplusplus
24251 extern "C"
24252 #endif
24253 char ccmalloc_malloc ();
24254 int
24255 main ()
24256 {
24257 return ccmalloc_malloc ();
24258   ;
24259   return 0;
24260 }
24261 _ACEOF
24262 if ac_fn_c_try_link "$LINENO"; then :
24263   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24264 else
24265   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24266 fi
24267 rm -f core conftest.err conftest.$ac_objext \
24268     conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24270 fi
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24272 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24273 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24274   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24275 fi
24276
24277         if test -n "$CCMALLOC_LIBS"; then
24278             LIBS="$OLIBS"
24279             LIBS="$LIBS $CCMALLOC_LIBS"
24280             have_ccmalloc='yes'
24281         else
24282             LIBS="$OLIBS"
24283         fi
24284     fi
24285 fi
24286
24287 #
24288 # Add support for efence memory debugging library if requested
24289 #
24290 if test "$enable_efence" = 'yes'; then
24291     EFENCE_LIBS='-lefence'
24292     LIBS="$EFENCE_LIBS $LIBS"
24293 fi
24294
24295
24296 #
24297 # Check for BZLIB
24298 #
24299
24300
24301 # Check whether --with-bzlib was given.
24302 if test "${with_bzlib+set}" = set; then :
24303   withval=$with_bzlib; with_bzlib=$withval
24304 else
24305   with_bzlib='yes'
24306 fi
24307
24308
24309 if test "$with_bzlib" != 'yes'; then
24310     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24311 fi
24312
24313 have_bzlib='no'
24314 if test "$with_bzlib" != 'no'; then
24315     BZLIB_LIBS=''
24316     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24317 $as_echo "-------------------------------------------------------------" >&6; }
24318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24319 $as_echo_n "checking for BZLIB... " >&6; }
24320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24321 $as_echo "" >&6; }
24322     failed=0
24323     passed=0
24324     found_libbz=0
24325     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24326 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24327   passed=`expr $passed + 1`
24328 else
24329   failed=`expr $failed + 1`
24330 fi
24331
24332
24333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24334 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24335 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24336   $as_echo_n "(cached) " >&6
24337 else
24338   ac_check_lib_save_LIBS=$LIBS
24339 LIBS="-lbz2  $LIBS"
24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h.  */
24342
24343 /* Override any GCC internal prototype to avoid an error.
24344    Use char because int might match the return type of a GCC
24345    builtin and then its argument prototype would still apply.  */
24346 #ifdef __cplusplus
24347 extern "C"
24348 #endif
24349 char BZ2_bzDecompress ();
24350 int
24351 main ()
24352 {
24353 return BZ2_bzDecompress ();
24354   ;
24355   return 0;
24356 }
24357 _ACEOF
24358 if ac_fn_c_try_link "$LINENO"; then :
24359   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24360 else
24361   ac_cv_lib_bz2_BZ2_bzDecompress=no
24362 fi
24363 rm -f core conftest.err conftest.$ac_objext \
24364     conftest$ac_exeext conftest.$ac_ext
24365 LIBS=$ac_check_lib_save_LIBS
24366 fi
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24368 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24369 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24370   found_libbz=`expr $found_libbz + 1`
24371 fi
24372
24373     if test "$native_win32_build" = 'yes'; then
24374       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24375 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24376 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24377   $as_echo_n "(cached) " >&6
24378 else
24379   ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lbz2  $LIBS"
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h.  */
24383
24384 /* Override any GCC internal prototype to avoid an error.
24385    Use char because int might match the return type of a GCC
24386    builtin and then its argument prototype would still apply.  */
24387 #ifdef __cplusplus
24388 extern "C"
24389 #endif
24390 char _imp__BZ2_decompress ();
24391 int
24392 main ()
24393 {
24394 return _imp__BZ2_decompress ();
24395   ;
24396   return 0;
24397 }
24398 _ACEOF
24399 if ac_fn_c_try_link "$LINENO"; then :
24400   ac_cv_lib_bz2__imp__BZ2_decompress=yes
24401 else
24402   ac_cv_lib_bz2__imp__BZ2_decompress=no
24403 fi
24404 rm -f core conftest.err conftest.$ac_objext \
24405     conftest$ac_exeext conftest.$ac_ext
24406 LIBS=$ac_check_lib_save_LIBS
24407 fi
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24409 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24410 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24411   found_libbz=`expr $found_libbz + 1`
24412 fi
24413
24414     fi
24415     if test $found_libbz -gt 0; then
24416       passed=`expr $passed + 1`
24417     else
24418       failed=`expr $failed + 1`
24419     fi
24420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24421 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24422     if test $passed -gt 0; then
24423       if test $failed -gt 0; then
24424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24425 $as_echo "no -- some components failed test" >&6; }
24426         have_bzlib='no (failed tests)'
24427       else
24428         BZLIB_LIBS='-lbz2'
24429         LIBS="$BZLIB_LIBS $LIBS"
24430
24431 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24432
24433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24434 $as_echo "yes" >&6; }
24435         have_bzlib='yes'
24436       fi
24437     else
24438       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24439 $as_echo "no" >&6; }
24440     fi
24441 fi
24442  if test "$have_bzlib" = 'yes'; then
24443   BZLIB_DELEGATE_TRUE=
24444   BZLIB_DELEGATE_FALSE='#'
24445 else
24446   BZLIB_DELEGATE_TRUE='#'
24447   BZLIB_DELEGATE_FALSE=
24448 fi
24449
24450
24451
24452 #
24453 # Find the X11 include and library directories.
24454 #
24455 IPC_LIBS=''
24456 X11_LIBS=''
24457 XEXT_LIBS=''
24458 XT_LIBS=''
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24460 $as_echo_n "checking for X... " >&6; }
24461
24462
24463 # Check whether --with-x was given.
24464 if test "${with_x+set}" = set; then :
24465   withval=$with_x;
24466 fi
24467
24468 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24469 if test "x$with_x" = xno; then
24470   # The user explicitly disabled X.
24471   have_x=disabled
24472 else
24473   case $x_includes,$x_libraries in #(
24474     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24475     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24476   $as_echo_n "(cached) " >&6
24477 else
24478   # One or both of the vars are not set, and there is no cached value.
24479 ac_x_includes=no ac_x_libraries=no
24480 rm -f -r conftest.dir
24481 if mkdir conftest.dir; then
24482   cd conftest.dir
24483   cat >Imakefile <<'_ACEOF'
24484 incroot:
24485         @echo incroot='${INCROOT}'
24486 usrlibdir:
24487         @echo usrlibdir='${USRLIBDIR}'
24488 libdir:
24489         @echo libdir='${LIBDIR}'
24490 _ACEOF
24491   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24492     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24493     for ac_var in incroot usrlibdir libdir; do
24494       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24495     done
24496     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24497     for ac_extension in a so sl dylib la dll; do
24498       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24499          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24500         ac_im_usrlibdir=$ac_im_libdir; break
24501       fi
24502     done
24503     # Screen out bogus values from the imake configuration.  They are
24504     # bogus both because they are the default anyway, and because
24505     # using them would break gcc on systems where it needs fixed includes.
24506     case $ac_im_incroot in
24507         /usr/include) ac_x_includes= ;;
24508         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24509     esac
24510     case $ac_im_usrlibdir in
24511         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24512         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24513     esac
24514   fi
24515   cd ..
24516   rm -f -r conftest.dir
24517 fi
24518
24519 # Standard set of common directories for X headers.
24520 # Check X11 before X11Rn because it is often a symlink to the current release.
24521 ac_x_header_dirs='
24522 /usr/X11/include
24523 /usr/X11R7/include
24524 /usr/X11R6/include
24525 /usr/X11R5/include
24526 /usr/X11R4/include
24527
24528 /usr/include/X11
24529 /usr/include/X11R7
24530 /usr/include/X11R6
24531 /usr/include/X11R5
24532 /usr/include/X11R4
24533
24534 /usr/local/X11/include
24535 /usr/local/X11R7/include
24536 /usr/local/X11R6/include
24537 /usr/local/X11R5/include
24538 /usr/local/X11R4/include
24539
24540 /usr/local/include/X11
24541 /usr/local/include/X11R7
24542 /usr/local/include/X11R6
24543 /usr/local/include/X11R5
24544 /usr/local/include/X11R4
24545
24546 /usr/X386/include
24547 /usr/x386/include
24548 /usr/XFree86/include/X11
24549
24550 /usr/include
24551 /usr/local/include
24552 /usr/unsupported/include
24553 /usr/athena/include
24554 /usr/local/x11r5/include
24555 /usr/lpp/Xamples/include
24556
24557 /usr/openwin/include
24558 /usr/openwin/share/include'
24559
24560 if test "$ac_x_includes" = no; then
24561   # Guess where to find include files, by looking for Xlib.h.
24562   # First, try using that file with no special directory specified.
24563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564 /* end confdefs.h.  */
24565 #include <X11/Xlib.h>
24566 _ACEOF
24567 if ac_fn_c_try_cpp "$LINENO"; then :
24568   # We can compile using X headers with no special include directory.
24569 ac_x_includes=
24570 else
24571   for ac_dir in $ac_x_header_dirs; do
24572   if test -r "$ac_dir/X11/Xlib.h"; then
24573     ac_x_includes=$ac_dir
24574     break
24575   fi
24576 done
24577 fi
24578 rm -f conftest.err conftest.$ac_ext
24579 fi # $ac_x_includes = no
24580
24581 if test "$ac_x_libraries" = no; then
24582   # Check for the libraries.
24583   # See if we find them without any special options.
24584   # Don't add to $LIBS permanently.
24585   ac_save_LIBS=$LIBS
24586   LIBS="-lX11 $LIBS"
24587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24588 /* end confdefs.h.  */
24589 #include <X11/Xlib.h>
24590 int
24591 main ()
24592 {
24593 XrmInitialize ()
24594   ;
24595   return 0;
24596 }
24597 _ACEOF
24598 if ac_fn_c_try_link "$LINENO"; then :
24599   LIBS=$ac_save_LIBS
24600 # We can link X programs with no special library path.
24601 ac_x_libraries=
24602 else
24603   LIBS=$ac_save_LIBS
24604 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24605 do
24606   # Don't even attempt the hair of trying to link an X program!
24607   for ac_extension in a so sl dylib la dll; do
24608     if test -r "$ac_dir/libX11.$ac_extension"; then
24609       ac_x_libraries=$ac_dir
24610       break 2
24611     fi
24612   done
24613 done
24614 fi
24615 rm -f core conftest.err conftest.$ac_objext \
24616     conftest$ac_exeext conftest.$ac_ext
24617 fi # $ac_x_libraries = no
24618
24619 case $ac_x_includes,$ac_x_libraries in #(
24620   no,* | *,no | *\'*)
24621     # Didn't find X, or a directory has "'" in its name.
24622     ac_cv_have_x="have_x=no";; #(
24623   *)
24624     # Record where we found X for the cache.
24625     ac_cv_have_x="have_x=yes\
24626         ac_x_includes='$ac_x_includes'\
24627         ac_x_libraries='$ac_x_libraries'"
24628 esac
24629 fi
24630 ;; #(
24631     *) have_x=yes;;
24632   esac
24633   eval "$ac_cv_have_x"
24634 fi # $with_x != no
24635
24636 if test "$have_x" != yes; then
24637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24638 $as_echo "$have_x" >&6; }
24639   no_x=yes
24640 else
24641   # If each of the values was on the command line, it overrides each guess.
24642   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24643   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24644   # Update the cache value to reflect the command line values.
24645   ac_cv_have_x="have_x=yes\
24646         ac_x_includes='$x_includes'\
24647         ac_x_libraries='$x_libraries'"
24648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24649 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24650 fi
24651
24652 if test "$no_x" = yes; then
24653   # Not all programs may use this symbol, but it does not hurt to define it.
24654
24655 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24656
24657   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24658 else
24659   if test -n "$x_includes"; then
24660     X_CFLAGS="$X_CFLAGS -I$x_includes"
24661   fi
24662
24663   # It would also be nice to do this for all -L options, not just this one.
24664   if test -n "$x_libraries"; then
24665     X_LIBS="$X_LIBS -L$x_libraries"
24666     # For Solaris; some versions of Sun CC require a space after -R and
24667     # others require no space.  Words are not sufficient . . . .
24668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24669 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24670     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24671     ac_xsave_c_werror_flag=$ac_c_werror_flag
24672     ac_c_werror_flag=yes
24673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24674 /* end confdefs.h.  */
24675
24676 int
24677 main ()
24678 {
24679
24680   ;
24681   return 0;
24682 }
24683 _ACEOF
24684 if ac_fn_c_try_link "$LINENO"; then :
24685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24687        X_LIBS="$X_LIBS -R$x_libraries"
24688 else
24689   LIBS="$ac_xsave_LIBS -R $x_libraries"
24690        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h.  */
24692
24693 int
24694 main ()
24695 {
24696
24697   ;
24698   return 0;
24699 }
24700 _ACEOF
24701 if ac_fn_c_try_link "$LINENO"; then :
24702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24703 $as_echo "yes" >&6; }
24704           X_LIBS="$X_LIBS -R $x_libraries"
24705 else
24706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24707 $as_echo "neither works" >&6; }
24708 fi
24709 rm -f core conftest.err conftest.$ac_objext \
24710     conftest$ac_exeext conftest.$ac_ext
24711 fi
24712 rm -f core conftest.err conftest.$ac_objext \
24713     conftest$ac_exeext conftest.$ac_ext
24714     ac_c_werror_flag=$ac_xsave_c_werror_flag
24715     LIBS=$ac_xsave_LIBS
24716   fi
24717
24718   # Check for system-dependent libraries X programs must link with.
24719   # Do this before checking for the system-independent R6 libraries
24720   # (-lICE), since we may need -lsocket or whatever for X linking.
24721
24722   if test "$ISC" = yes; then
24723     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24724   else
24725     # Martyn Johnson says this is needed for Ultrix, if the X
24726     # libraries were built with DECnet support.  And Karl Berry says
24727     # the Alpha needs dnet_stub (dnet does not exist).
24728     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h.  */
24731
24732 /* Override any GCC internal prototype to avoid an error.
24733    Use char because int might match the return type of a GCC
24734    builtin and then its argument prototype would still apply.  */
24735 #ifdef __cplusplus
24736 extern "C"
24737 #endif
24738 char XOpenDisplay ();
24739 int
24740 main ()
24741 {
24742 return XOpenDisplay ();
24743   ;
24744   return 0;
24745 }
24746 _ACEOF
24747 if ac_fn_c_try_link "$LINENO"; then :
24748
24749 else
24750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24751 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24752 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
24753   $as_echo_n "(cached) " >&6
24754 else
24755   ac_check_lib_save_LIBS=$LIBS
24756 LIBS="-ldnet  $LIBS"
24757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24758 /* end confdefs.h.  */
24759
24760 /* Override any GCC internal prototype to avoid an error.
24761    Use char because int might match the return type of a GCC
24762    builtin and then its argument prototype would still apply.  */
24763 #ifdef __cplusplus
24764 extern "C"
24765 #endif
24766 char dnet_ntoa ();
24767 int
24768 main ()
24769 {
24770 return dnet_ntoa ();
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 if ac_fn_c_try_link "$LINENO"; then :
24776   ac_cv_lib_dnet_dnet_ntoa=yes
24777 else
24778   ac_cv_lib_dnet_dnet_ntoa=no
24779 fi
24780 rm -f core conftest.err conftest.$ac_objext \
24781     conftest$ac_exeext conftest.$ac_ext
24782 LIBS=$ac_check_lib_save_LIBS
24783 fi
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24785 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24786 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
24787   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24788 fi
24789
24790     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24791       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24792 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24793 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
24794   $as_echo_n "(cached) " >&6
24795 else
24796   ac_check_lib_save_LIBS=$LIBS
24797 LIBS="-ldnet_stub  $LIBS"
24798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24799 /* end confdefs.h.  */
24800
24801 /* Override any GCC internal prototype to avoid an error.
24802    Use char because int might match the return type of a GCC
24803    builtin and then its argument prototype would still apply.  */
24804 #ifdef __cplusplus
24805 extern "C"
24806 #endif
24807 char dnet_ntoa ();
24808 int
24809 main ()
24810 {
24811 return dnet_ntoa ();
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 if ac_fn_c_try_link "$LINENO"; then :
24817   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24818 else
24819   ac_cv_lib_dnet_stub_dnet_ntoa=no
24820 fi
24821 rm -f core conftest.err conftest.$ac_objext \
24822     conftest$ac_exeext conftest.$ac_ext
24823 LIBS=$ac_check_lib_save_LIBS
24824 fi
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24826 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24827 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
24828   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24829 fi
24830
24831     fi
24832 fi
24833 rm -f core conftest.err conftest.$ac_objext \
24834     conftest$ac_exeext conftest.$ac_ext
24835     LIBS="$ac_xsave_LIBS"
24836
24837     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24838     # to get the SysV transport functions.
24839     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24840     # needs -lnsl.
24841     # The nsl library prevents programs from opening the X display
24842     # on Irix 5.2, according to T.E. Dickey.
24843     # The functions gethostbyname, getservbyname, and inet_addr are
24844     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24845     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24846 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
24847
24848 fi
24849
24850     if test $ac_cv_func_gethostbyname = no; then
24851       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24852 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24853 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
24854   $as_echo_n "(cached) " >&6
24855 else
24856   ac_check_lib_save_LIBS=$LIBS
24857 LIBS="-lnsl  $LIBS"
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h.  */
24860
24861 /* Override any GCC internal prototype to avoid an error.
24862    Use char because int might match the return type of a GCC
24863    builtin and then its argument prototype would still apply.  */
24864 #ifdef __cplusplus
24865 extern "C"
24866 #endif
24867 char gethostbyname ();
24868 int
24869 main ()
24870 {
24871 return gethostbyname ();
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 if ac_fn_c_try_link "$LINENO"; then :
24877   ac_cv_lib_nsl_gethostbyname=yes
24878 else
24879   ac_cv_lib_nsl_gethostbyname=no
24880 fi
24881 rm -f core conftest.err conftest.$ac_objext \
24882     conftest$ac_exeext conftest.$ac_ext
24883 LIBS=$ac_check_lib_save_LIBS
24884 fi
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24886 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24887 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24888   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24889 fi
24890
24891       if test $ac_cv_lib_nsl_gethostbyname = no; then
24892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24893 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24894 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24895   $as_echo_n "(cached) " >&6
24896 else
24897   ac_check_lib_save_LIBS=$LIBS
24898 LIBS="-lbsd  $LIBS"
24899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24900 /* end confdefs.h.  */
24901
24902 /* Override any GCC internal prototype to avoid an error.
24903    Use char because int might match the return type of a GCC
24904    builtin and then its argument prototype would still apply.  */
24905 #ifdef __cplusplus
24906 extern "C"
24907 #endif
24908 char gethostbyname ();
24909 int
24910 main ()
24911 {
24912 return gethostbyname ();
24913   ;
24914   return 0;
24915 }
24916 _ACEOF
24917 if ac_fn_c_try_link "$LINENO"; then :
24918   ac_cv_lib_bsd_gethostbyname=yes
24919 else
24920   ac_cv_lib_bsd_gethostbyname=no
24921 fi
24922 rm -f core conftest.err conftest.$ac_objext \
24923     conftest$ac_exeext conftest.$ac_ext
24924 LIBS=$ac_check_lib_save_LIBS
24925 fi
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24927 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24928 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24929   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24930 fi
24931
24932       fi
24933     fi
24934
24935     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24936     # socket/setsockopt and other routines are undefined under SCO ODT
24937     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24938     # on later versions), says Simon Leinen: it contains gethostby*
24939     # variants that don't use the name server (or something).  -lsocket
24940     # must be given before -lnsl if both are needed.  We assume that
24941     # if connect needs -lnsl, so does gethostbyname.
24942     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24943 if test "x$ac_cv_func_connect" = x""yes; then :
24944
24945 fi
24946
24947     if test $ac_cv_func_connect = no; then
24948       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24949 $as_echo_n "checking for connect in -lsocket... " >&6; }
24950 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24951   $as_echo_n "(cached) " >&6
24952 else
24953   ac_check_lib_save_LIBS=$LIBS
24954 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24956 /* end confdefs.h.  */
24957
24958 /* Override any GCC internal prototype to avoid an error.
24959    Use char because int might match the return type of a GCC
24960    builtin and then its argument prototype would still apply.  */
24961 #ifdef __cplusplus
24962 extern "C"
24963 #endif
24964 char connect ();
24965 int
24966 main ()
24967 {
24968 return connect ();
24969   ;
24970   return 0;
24971 }
24972 _ACEOF
24973 if ac_fn_c_try_link "$LINENO"; then :
24974   ac_cv_lib_socket_connect=yes
24975 else
24976   ac_cv_lib_socket_connect=no
24977 fi
24978 rm -f core conftest.err conftest.$ac_objext \
24979     conftest$ac_exeext conftest.$ac_ext
24980 LIBS=$ac_check_lib_save_LIBS
24981 fi
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24983 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24984 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24985   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24986 fi
24987
24988     fi
24989
24990     # Guillermo Gomez says -lposix is necessary on A/UX.
24991     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24992 if test "x$ac_cv_func_remove" = x""yes; then :
24993
24994 fi
24995
24996     if test $ac_cv_func_remove = no; then
24997       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24998 $as_echo_n "checking for remove in -lposix... " >&6; }
24999 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25000   $as_echo_n "(cached) " >&6
25001 else
25002   ac_check_lib_save_LIBS=$LIBS
25003 LIBS="-lposix  $LIBS"
25004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005 /* end confdefs.h.  */
25006
25007 /* Override any GCC internal prototype to avoid an error.
25008    Use char because int might match the return type of a GCC
25009    builtin and then its argument prototype would still apply.  */
25010 #ifdef __cplusplus
25011 extern "C"
25012 #endif
25013 char remove ();
25014 int
25015 main ()
25016 {
25017 return remove ();
25018   ;
25019   return 0;
25020 }
25021 _ACEOF
25022 if ac_fn_c_try_link "$LINENO"; then :
25023   ac_cv_lib_posix_remove=yes
25024 else
25025   ac_cv_lib_posix_remove=no
25026 fi
25027 rm -f core conftest.err conftest.$ac_objext \
25028     conftest$ac_exeext conftest.$ac_ext
25029 LIBS=$ac_check_lib_save_LIBS
25030 fi
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25032 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25033 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25034   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25035 fi
25036
25037     fi
25038
25039     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25040     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25041 if test "x$ac_cv_func_shmat" = x""yes; then :
25042
25043 fi
25044
25045     if test $ac_cv_func_shmat = no; then
25046       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25047 $as_echo_n "checking for shmat in -lipc... " >&6; }
25048 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25049   $as_echo_n "(cached) " >&6
25050 else
25051   ac_check_lib_save_LIBS=$LIBS
25052 LIBS="-lipc  $LIBS"
25053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25054 /* end confdefs.h.  */
25055
25056 /* Override any GCC internal prototype to avoid an error.
25057    Use char because int might match the return type of a GCC
25058    builtin and then its argument prototype would still apply.  */
25059 #ifdef __cplusplus
25060 extern "C"
25061 #endif
25062 char shmat ();
25063 int
25064 main ()
25065 {
25066 return shmat ();
25067   ;
25068   return 0;
25069 }
25070 _ACEOF
25071 if ac_fn_c_try_link "$LINENO"; then :
25072   ac_cv_lib_ipc_shmat=yes
25073 else
25074   ac_cv_lib_ipc_shmat=no
25075 fi
25076 rm -f core conftest.err conftest.$ac_objext \
25077     conftest$ac_exeext conftest.$ac_ext
25078 LIBS=$ac_check_lib_save_LIBS
25079 fi
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25081 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25082 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25083   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25084 fi
25085
25086     fi
25087   fi
25088
25089   # Check for libraries that X11R6 Xt/Xaw programs need.
25090   ac_save_LDFLAGS=$LDFLAGS
25091   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25092   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25093   # check for ICE first), but we must link in the order -lSM -lICE or
25094   # we get undefined symbols.  So assume we have SM if we have ICE.
25095   # These have to be linked with before -lX11, unlike the other
25096   # libraries we check for below, so use a different variable.
25097   # John Interrante, Karl Berry
25098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25099 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25100 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   ac_check_lib_save_LIBS=$LIBS
25104 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25106 /* end confdefs.h.  */
25107
25108 /* Override any GCC internal prototype to avoid an error.
25109    Use char because int might match the return type of a GCC
25110    builtin and then its argument prototype would still apply.  */
25111 #ifdef __cplusplus
25112 extern "C"
25113 #endif
25114 char IceConnectionNumber ();
25115 int
25116 main ()
25117 {
25118 return IceConnectionNumber ();
25119   ;
25120   return 0;
25121 }
25122 _ACEOF
25123 if ac_fn_c_try_link "$LINENO"; then :
25124   ac_cv_lib_ICE_IceConnectionNumber=yes
25125 else
25126   ac_cv_lib_ICE_IceConnectionNumber=no
25127 fi
25128 rm -f core conftest.err conftest.$ac_objext \
25129     conftest$ac_exeext conftest.$ac_ext
25130 LIBS=$ac_check_lib_save_LIBS
25131 fi
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25133 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25134 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25135   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25136 fi
25137
25138   LDFLAGS=$ac_save_LDFLAGS
25139
25140 fi
25141
25142 if test "$no_x" != 'yes'; then
25143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25144 $as_echo "-------------------------------------------------------------" >&6; }
25145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25146 $as_echo_n "checking for X11... " >&6; }
25147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25148 $as_echo "" >&6; }
25149     LDFLAGS="$LDFLAGS $X_LIBS"
25150     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25151     LIBS="$X11_LIBS $LIBS"
25152     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25153
25154
25155 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25156
25157     #
25158     # Check for X11 shared memory extension
25159     #
25160     # shmctl is required to support the shared memory extension
25161     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25162 if test "x$ac_cv_func_shmctl" = x""yes; then :
25163   have_shmctl='yes'
25164 fi
25165
25166     if test "$have_shmctl" != 'yes'; then
25167         PERSIST_LIBS=$LIBS
25168         LIBS="$LIBS -lcygipc"
25169         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25170 /* end confdefs.h.  */
25171
25172 /* Override any GCC internal prototype to avoid an error.
25173    Use char because int might match the return type of a GCC
25174    builtin and then its argument prototype would still apply.  */
25175 #ifdef __cplusplus
25176 extern "C"
25177 #endif
25178 char shmctl ();
25179 int
25180 main ()
25181 {
25182 return shmctl ();
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 if ac_fn_c_try_link "$LINENO"; then :
25188   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25189 fi
25190 rm -f core conftest.err conftest.$ac_objext \
25191     conftest$ac_exeext conftest.$ac_ext
25192         LIBS=$PERSIST_LIBS
25193     fi
25194
25195     if test "$have_shmctl" = 'yes'; then
25196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25197 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25198 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25199   $as_echo_n "(cached) " >&6
25200 else
25201   ac_check_lib_save_LIBS=$LIBS
25202 LIBS="-lXext  $LIBS"
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h.  */
25205
25206 /* Override any GCC internal prototype to avoid an error.
25207    Use char because int might match the return type of a GCC
25208    builtin and then its argument prototype would still apply.  */
25209 #ifdef __cplusplus
25210 extern "C"
25211 #endif
25212 char XShmAttach ();
25213 int
25214 main ()
25215 {
25216 return XShmAttach ();
25217   ;
25218   return 0;
25219 }
25220 _ACEOF
25221 if ac_fn_c_try_link "$LINENO"; then :
25222   ac_cv_lib_Xext_XShmAttach=yes
25223 else
25224   ac_cv_lib_Xext_XShmAttach=no
25225 fi
25226 rm -f core conftest.err conftest.$ac_objext \
25227     conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25229 fi
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25231 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25232 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25233   XEXT_LIBS='-lXext' ;
25234 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25235
25236 fi
25237
25238     fi
25239
25240     #
25241     # Check for X11 shape extension
25242     #
25243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25244 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25245 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25246   $as_echo_n "(cached) " >&6
25247 else
25248   ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lXext  $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h.  */
25252
25253 /* Override any GCC internal prototype to avoid an error.
25254    Use char because int might match the return type of a GCC
25255    builtin and then its argument prototype would still apply.  */
25256 #ifdef __cplusplus
25257 extern "C"
25258 #endif
25259 char XShapeCombineMask ();
25260 int
25261 main ()
25262 {
25263 return XShapeCombineMask ();
25264   ;
25265   return 0;
25266 }
25267 _ACEOF
25268 if ac_fn_c_try_link "$LINENO"; then :
25269   ac_cv_lib_Xext_XShapeCombineMask=yes
25270 else
25271   ac_cv_lib_Xext_XShapeCombineMask=no
25272 fi
25273 rm -f core conftest.err conftest.$ac_objext \
25274     conftest$ac_exeext conftest.$ac_ext
25275 LIBS=$ac_check_lib_save_LIBS
25276 fi
25277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25278 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25279 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25280   XEXT_LIBS='-lXext' ;
25281 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25282
25283 fi
25284
25285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25286 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25287 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25288   $as_echo_n "(cached) " >&6
25289 else
25290   ac_check_lib_save_LIBS=$LIBS
25291 LIBS="-lXt  $LIBS"
25292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25293 /* end confdefs.h.  */
25294
25295 /* Override any GCC internal prototype to avoid an error.
25296    Use char because int might match the return type of a GCC
25297    builtin and then its argument prototype would still apply.  */
25298 #ifdef __cplusplus
25299 extern "C"
25300 #endif
25301 char XtSetEventDispatcher ();
25302 int
25303 main ()
25304 {
25305 return XtSetEventDispatcher ();
25306   ;
25307   return 0;
25308 }
25309 _ACEOF
25310 if ac_fn_c_try_link "$LINENO"; then :
25311   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25312 else
25313   ac_cv_lib_Xt_XtSetEventDispatcher=no
25314 fi
25315 rm -f core conftest.err conftest.$ac_objext \
25316     conftest$ac_exeext conftest.$ac_ext
25317 LIBS=$ac_check_lib_save_LIBS
25318 fi
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25320 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25321 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25322   XT_LIBS='-lXt'
25323 fi
25324
25325     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25326 fi
25327 if test "$no_x" != 'yes'; then
25328   have_x='yes'
25329 else
25330   have_x='no'
25331 fi
25332  if test "$have_x" = 'yes'; then
25333   X11_DELEGATE_TRUE=
25334   X11_DELEGATE_FALSE='#'
25335 else
25336   X11_DELEGATE_TRUE='#'
25337   X11_DELEGATE_FALSE=
25338 fi
25339
25340
25341
25342
25343
25344 #
25345 # Check for ZLIB
25346 #
25347
25348 # Check whether --with-zlib was given.
25349 if test "${with_zlib+set}" = set; then :
25350   withval=$with_zlib; with_zlib=$withval
25351 else
25352   with_zlib='yes'
25353 fi
25354
25355
25356 if test "$with_zlib" != 'yes'; then
25357     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25358 fi
25359
25360 have_zlib='no'
25361 ZLIB_LIBS=''
25362 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25363     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25364 $as_echo "-------------------------------------------------------------" >&6; }
25365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25366 $as_echo_n "checking for ZLIB... " >&6; }
25367     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25368 $as_echo "" >&6; }
25369     ZLIB_LIBS=''
25370     failed=0
25371     passed=0
25372     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25373 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25374   passed=`expr $passed + 1`
25375 else
25376   failed=`expr $failed + 1`
25377 fi
25378
25379
25380     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25381 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25382   passed=`expr $passed + 1`
25383 else
25384   failed=`expr $failed + 1`
25385 fi
25386
25387
25388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25389 $as_echo_n "checking for compress in -lz... " >&6; }
25390 if test "${ac_cv_lib_z_compress+set}" = set; then :
25391   $as_echo_n "(cached) " >&6
25392 else
25393   ac_check_lib_save_LIBS=$LIBS
25394 LIBS="-lz  $LIBS"
25395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25396 /* end confdefs.h.  */
25397
25398 /* Override any GCC internal prototype to avoid an error.
25399    Use char because int might match the return type of a GCC
25400    builtin and then its argument prototype would still apply.  */
25401 #ifdef __cplusplus
25402 extern "C"
25403 #endif
25404 char compress ();
25405 int
25406 main ()
25407 {
25408 return compress ();
25409   ;
25410   return 0;
25411 }
25412 _ACEOF
25413 if ac_fn_c_try_link "$LINENO"; then :
25414   ac_cv_lib_z_compress=yes
25415 else
25416   ac_cv_lib_z_compress=no
25417 fi
25418 rm -f core conftest.err conftest.$ac_objext \
25419     conftest$ac_exeext conftest.$ac_ext
25420 LIBS=$ac_check_lib_save_LIBS
25421 fi
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25423 $as_echo "$ac_cv_lib_z_compress" >&6; }
25424 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25425   passed=`expr $passed + 1`
25426 else
25427   failed=`expr $failed + 1`
25428 fi
25429
25430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25431 $as_echo_n "checking for uncompress in -lz... " >&6; }
25432 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25433   $as_echo_n "(cached) " >&6
25434 else
25435   ac_check_lib_save_LIBS=$LIBS
25436 LIBS="-lz  $LIBS"
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h.  */
25439
25440 /* Override any GCC internal prototype to avoid an error.
25441    Use char because int might match the return type of a GCC
25442    builtin and then its argument prototype would still apply.  */
25443 #ifdef __cplusplus
25444 extern "C"
25445 #endif
25446 char uncompress ();
25447 int
25448 main ()
25449 {
25450 return uncompress ();
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 if ac_fn_c_try_link "$LINENO"; then :
25456   ac_cv_lib_z_uncompress=yes
25457 else
25458   ac_cv_lib_z_uncompress=no
25459 fi
25460 rm -f core conftest.err conftest.$ac_objext \
25461     conftest$ac_exeext conftest.$ac_ext
25462 LIBS=$ac_check_lib_save_LIBS
25463 fi
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25465 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25466 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25467   passed=`expr $passed + 1`
25468 else
25469   failed=`expr $failed + 1`
25470 fi
25471
25472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25473 $as_echo_n "checking for deflate in -lz... " >&6; }
25474 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25475   $as_echo_n "(cached) " >&6
25476 else
25477   ac_check_lib_save_LIBS=$LIBS
25478 LIBS="-lz  $LIBS"
25479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25480 /* end confdefs.h.  */
25481
25482 /* Override any GCC internal prototype to avoid an error.
25483    Use char because int might match the return type of a GCC
25484    builtin and then its argument prototype would still apply.  */
25485 #ifdef __cplusplus
25486 extern "C"
25487 #endif
25488 char deflate ();
25489 int
25490 main ()
25491 {
25492 return deflate ();
25493   ;
25494   return 0;
25495 }
25496 _ACEOF
25497 if ac_fn_c_try_link "$LINENO"; then :
25498   ac_cv_lib_z_deflate=yes
25499 else
25500   ac_cv_lib_z_deflate=no
25501 fi
25502 rm -f core conftest.err conftest.$ac_objext \
25503     conftest$ac_exeext conftest.$ac_ext
25504 LIBS=$ac_check_lib_save_LIBS
25505 fi
25506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25507 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25508 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25509   passed=`expr $passed + 1`
25510 else
25511   failed=`expr $failed + 1`
25512 fi
25513
25514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25515 $as_echo_n "checking for inflate in -lz... " >&6; }
25516 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25517   $as_echo_n "(cached) " >&6
25518 else
25519   ac_check_lib_save_LIBS=$LIBS
25520 LIBS="-lz  $LIBS"
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h.  */
25523
25524 /* Override any GCC internal prototype to avoid an error.
25525    Use char because int might match the return type of a GCC
25526    builtin and then its argument prototype would still apply.  */
25527 #ifdef __cplusplus
25528 extern "C"
25529 #endif
25530 char inflate ();
25531 int
25532 main ()
25533 {
25534 return inflate ();
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 if ac_fn_c_try_link "$LINENO"; then :
25540   ac_cv_lib_z_inflate=yes
25541 else
25542   ac_cv_lib_z_inflate=no
25543 fi
25544 rm -f core conftest.err conftest.$ac_objext \
25545     conftest$ac_exeext conftest.$ac_ext
25546 LIBS=$ac_check_lib_save_LIBS
25547 fi
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25549 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25550 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25551   passed=`expr $passed + 1`
25552 else
25553   failed=`expr $failed + 1`
25554 fi
25555
25556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25557 $as_echo_n "checking for gzseek in -lz... " >&6; }
25558 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25559   $as_echo_n "(cached) " >&6
25560 else
25561   ac_check_lib_save_LIBS=$LIBS
25562 LIBS="-lz  $LIBS"
25563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25564 /* end confdefs.h.  */
25565
25566 /* Override any GCC internal prototype to avoid an error.
25567    Use char because int might match the return type of a GCC
25568    builtin and then its argument prototype would still apply.  */
25569 #ifdef __cplusplus
25570 extern "C"
25571 #endif
25572 char gzseek ();
25573 int
25574 main ()
25575 {
25576 return gzseek ();
25577   ;
25578   return 0;
25579 }
25580 _ACEOF
25581 if ac_fn_c_try_link "$LINENO"; then :
25582   ac_cv_lib_z_gzseek=yes
25583 else
25584   ac_cv_lib_z_gzseek=no
25585 fi
25586 rm -f core conftest.err conftest.$ac_objext \
25587     conftest$ac_exeext conftest.$ac_ext
25588 LIBS=$ac_check_lib_save_LIBS
25589 fi
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
25591 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
25592 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
25593   passed=`expr $passed + 1`
25594 else
25595   failed=`expr $failed + 1`
25596 fi
25597
25598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
25599 $as_echo_n "checking for gztell in -lz... " >&6; }
25600 if test "${ac_cv_lib_z_gztell+set}" = set; then :
25601   $as_echo_n "(cached) " >&6
25602 else
25603   ac_check_lib_save_LIBS=$LIBS
25604 LIBS="-lz  $LIBS"
25605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h.  */
25607
25608 /* Override any GCC internal prototype to avoid an error.
25609    Use char because int might match the return type of a GCC
25610    builtin and then its argument prototype would still apply.  */
25611 #ifdef __cplusplus
25612 extern "C"
25613 #endif
25614 char gztell ();
25615 int
25616 main ()
25617 {
25618 return gztell ();
25619   ;
25620   return 0;
25621 }
25622 _ACEOF
25623 if ac_fn_c_try_link "$LINENO"; then :
25624   ac_cv_lib_z_gztell=yes
25625 else
25626   ac_cv_lib_z_gztell=no
25627 fi
25628 rm -f core conftest.err conftest.$ac_objext \
25629     conftest$ac_exeext conftest.$ac_ext
25630 LIBS=$ac_check_lib_save_LIBS
25631 fi
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
25633 $as_echo "$ac_cv_lib_z_gztell" >&6; }
25634 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
25635   passed=`expr $passed + 1`
25636 else
25637   failed=`expr $failed + 1`
25638 fi
25639
25640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
25641 $as_echo_n "checking if ZLIB package is complete... " >&6; }
25642     if test $passed -gt 0; then
25643         if test $failed -gt 0; then
25644             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25645 $as_echo "no -- some components failed test" >&6; }
25646             have_zlib='no (failed tests)'
25647         else
25648             ZLIB_LIBS='-lz'
25649             LIBS="$ZLIB_LIBS $LIBS"
25650
25651 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
25652
25653             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25654 $as_echo "yes" >&6; }
25655             have_zlib='yes'
25656         fi
25657     else
25658         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25659 $as_echo "no" >&6; }
25660     fi
25661 fi
25662  if test "$have_zlib" = 'yes'; then
25663   ZLIB_DELEGATE_TRUE=
25664   ZLIB_DELEGATE_FALSE='#'
25665 else
25666   ZLIB_DELEGATE_TRUE='#'
25667   ZLIB_DELEGATE_FALSE=
25668 fi
25669
25670
25671
25672 #
25673 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
25674 #
25675 LIB_DL=''
25676 if test "$enable_profiling" = 'yes'; then
25677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25678 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25679 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
25680   $as_echo_n "(cached) " >&6
25681 else
25682   ac_check_lib_save_LIBS=$LIBS
25683 LIBS="-ldl  $LIBS"
25684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25685 /* end confdefs.h.  */
25686
25687 /* Override any GCC internal prototype to avoid an error.
25688    Use char because int might match the return type of a GCC
25689    builtin and then its argument prototype would still apply.  */
25690 #ifdef __cplusplus
25691 extern "C"
25692 #endif
25693 char dlopen ();
25694 int
25695 main ()
25696 {
25697 return dlopen ();
25698   ;
25699   return 0;
25700 }
25701 _ACEOF
25702 if ac_fn_c_try_link "$LINENO"; then :
25703   ac_cv_lib_dl_dlopen=yes
25704 else
25705   ac_cv_lib_dl_dlopen=no
25706 fi
25707 rm -f core conftest.err conftest.$ac_objext \
25708     conftest$ac_exeext conftest.$ac_ext
25709 LIBS=$ac_check_lib_save_LIBS
25710 fi
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25712 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25713 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
25714   LIB_DL='-ldl'
25715 fi
25716
25717     LIBS="$LIB_DL $LIBS"
25718 fi
25719
25720
25721
25722 #
25723 # Check for Autotrace delegate library.
25724 #
25725
25726 # Check whether --with-autotrace was given.
25727 if test "${with_autotrace+set}" = set; then :
25728   withval=$with_autotrace; with_autotrace=$withval
25729 else
25730   with_autotrace='no'
25731 fi
25732
25733
25734 if test "$with_autotrace" != 'yes'; then
25735     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
25736 fi
25737
25738 have_autotrace='no'
25739 AUTOTRACE_CFLAGS=""
25740 AUTOTRACE_LIBS=""
25741 AUTOTRACE_PKG=""
25742 if test "x$with_autotrace" = "xyes"; then
25743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25744 $as_echo "-------------------------------------------------------------" >&6; }
25745
25746 pkg_failed=no
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
25748 $as_echo_n "checking for AUTOTRACE... " >&6; }
25749
25750 if test -n "$AUTOTRACE_CFLAGS"; then
25751     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
25752  elif test -n "$PKG_CONFIG"; then
25753     if test -n "$PKG_CONFIG" && \
25754     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
25755   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25756   ac_status=$?
25757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25758   test $ac_status = 0; }; then
25759   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
25760 else
25761   pkg_failed=yes
25762 fi
25763  else
25764     pkg_failed=untried
25765 fi
25766 if test -n "$AUTOTRACE_LIBS"; then
25767     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
25768  elif test -n "$PKG_CONFIG"; then
25769     if test -n "$PKG_CONFIG" && \
25770     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
25771   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
25772   ac_status=$?
25773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25774   test $ac_status = 0; }; then
25775   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
25776 else
25777   pkg_failed=yes
25778 fi
25779  else
25780     pkg_failed=untried
25781 fi
25782
25783
25784
25785 if test $pkg_failed = yes; then
25786
25787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25788         _pkg_short_errors_supported=yes
25789 else
25790         _pkg_short_errors_supported=no
25791 fi
25792         if test $_pkg_short_errors_supported = yes; then
25793                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
25794         else
25795                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
25796         fi
25797         # Put the nasty error message in config.log where it belongs
25798         echo "$AUTOTRACE_PKG_ERRORS" >&5
25799
25800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25801 $as_echo "no" >&6; }
25802                 have_autotrace=no
25803 elif test $pkg_failed = untried; then
25804         have_autotrace=no
25805 else
25806         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
25807         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
25808         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25809 $as_echo "yes" >&6; }
25810         have_autotrace=yes
25811 fi
25812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25813 $as_echo "" >&6; }
25814 fi
25815
25816 if test "$have_autotrace" = 'yes'; then
25817     failed=0
25818
25819 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
25820
25821     if test "$with_modules" = 'no'; then
25822     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
25823     fi
25824 fi
25825
25826  if test "$have_autotrace" = 'yes'; then
25827   AUTOTRACE_DELEGATE_TRUE=
25828   AUTOTRACE_DELEGATE_FALSE='#'
25829 else
25830   AUTOTRACE_DELEGATE_TRUE='#'
25831   AUTOTRACE_DELEGATE_FALSE=
25832 fi
25833
25834
25835
25836
25837
25838 #
25839 # Check for Display Postscript delegate library.
25840 #
25841
25842 # Check whether --with-dps was given.
25843 if test "${with_dps+set}" = set; then :
25844   withval=$with_dps; with_dps=$withval
25845 else
25846   with_dps='yes'
25847 fi
25848
25849
25850 if test "$with_dps" != 'yes'; then
25851     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
25852 fi
25853
25854 have_dps='no'
25855 DPS_LIBS=''
25856 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
25857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25858 $as_echo "-------------------------------------------------------------" >&6; }
25859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
25860 $as_echo_n "checking for DPS... " >&6; }
25861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25862 $as_echo "" >&6; }
25863     failed=0
25864     passed=0
25865     PERSIST_CPPFLAGS="$CPPFLAGS"
25866     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
25867     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
25868 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25869   passed=`expr $passed + 1`
25870 else
25871   failed=`expr $failed + 1`
25872 fi
25873
25874
25875     # DPS issues:
25876     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25877     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25878     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25879     # ImageMagick itself doesn't use -lXt.
25880     have_libdps='no'
25881     LIBDPS_XT=''
25882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25883 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25884 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25885   $as_echo_n "(cached) " >&6
25886 else
25887   ac_check_lib_save_LIBS=$LIBS
25888 LIBS="-ldps  $LIBS"
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h.  */
25891
25892 /* Override any GCC internal prototype to avoid an error.
25893    Use char because int might match the return type of a GCC
25894    builtin and then its argument prototype would still apply.  */
25895 #ifdef __cplusplus
25896 extern "C"
25897 #endif
25898 char DPSInitialize ();
25899 int
25900 main ()
25901 {
25902 return DPSInitialize ();
25903   ;
25904   return 0;
25905 }
25906 _ACEOF
25907 if ac_fn_c_try_link "$LINENO"; then :
25908   ac_cv_lib_dps_DPSInitialize=yes
25909 else
25910   ac_cv_lib_dps_DPSInitialize=no
25911 fi
25912 rm -f core conftest.err conftest.$ac_objext \
25913     conftest$ac_exeext conftest.$ac_ext
25914 LIBS=$ac_check_lib_save_LIBS
25915 fi
25916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25917 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25918 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25919   have_libdps='yes'
25920 else
25921   have_libdps='no'
25922 fi
25923
25924     if test "$have_libdps" != 'yes'; then
25925         # Unset cache variable so we can try again.
25926         unset ac_cv_lib_dps_DPSInitialize
25927         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25928 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25929 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25930   $as_echo_n "(cached) " >&6
25931 else
25932   ac_check_lib_save_LIBS=$LIBS
25933 LIBS="-ldps -lXt $LIBS"
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h.  */
25936
25937 /* Override any GCC internal prototype to avoid an error.
25938    Use char because int might match the return type of a GCC
25939    builtin and then its argument prototype would still apply.  */
25940 #ifdef __cplusplus
25941 extern "C"
25942 #endif
25943 char DPSInitialize ();
25944 int
25945 main ()
25946 {
25947 return DPSInitialize ();
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 if ac_fn_c_try_link "$LINENO"; then :
25953   ac_cv_lib_dps_DPSInitialize=yes
25954 else
25955   ac_cv_lib_dps_DPSInitialize=no
25956 fi
25957 rm -f core conftest.err conftest.$ac_objext \
25958     conftest$ac_exeext conftest.$ac_ext
25959 LIBS=$ac_check_lib_save_LIBS
25960 fi
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25962 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25963 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25964   have_libdps='yes'
25965 else
25966   have_libdps='no'
25967 fi
25968
25969         if test "$have_libdps" = 'yes'; then
25970             LIBDPS_XT='-lXt'
25971         fi
25972     fi
25973     if test "$have_libdps" = 'yes'; then
25974         passed=`expr $passed + 1`
25975     else
25976         failed=`expr $failed + 1`
25977     fi
25978     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25979 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25980 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25981   $as_echo_n "(cached) " >&6
25982 else
25983   ac_check_lib_save_LIBS=$LIBS
25984 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25986 /* end confdefs.h.  */
25987
25988 /* Override any GCC internal prototype to avoid an error.
25989    Use char because int might match the return type of a GCC
25990    builtin and then its argument prototype would still apply.  */
25991 #ifdef __cplusplus
25992 extern "C"
25993 #endif
25994 char XDPSPixelsPerPoint ();
25995 int
25996 main ()
25997 {
25998 return XDPSPixelsPerPoint ();
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 if ac_fn_c_try_link "$LINENO"; then :
26004   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26005 else
26006   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26007 fi
26008 rm -f core conftest.err conftest.$ac_objext \
26009     conftest$ac_exeext conftest.$ac_ext
26010 LIBS=$ac_check_lib_save_LIBS
26011 fi
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26013 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26014 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26015   passed=`expr $passed + 1`
26016 else
26017   failed=`expr $failed + 1`
26018 fi
26019
26020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26021 $as_echo_n "checking if DPS package is complete... " >&6; }
26022     if test $passed -gt 0; then
26023         if test $failed -gt 0; then
26024             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26025 $as_echo "no -- some components failed test" >&6; }
26026             have_dps='no (failed tests)'
26027             CPPFLAGS="$PERSIST_CPPFLAGS"
26028         else
26029             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26030             LIBS="$DPS_LIBS $LIBS"
26031
26032 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26033
26034             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26035 $as_echo "yes" >&6; }
26036             have_dps='yes'
26037         fi
26038     else
26039         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26040 $as_echo "no" >&6; }
26041         CPPFLAGS=$PERSIST_CPPFLAGS
26042     fi
26043 fi
26044  if test "$have_dps" = 'yes'; then
26045   DPS_DELEGATE_TRUE=
26046   DPS_DELEGATE_FALSE='#'
26047 else
26048   DPS_DELEGATE_TRUE='#'
26049   DPS_DELEGATE_FALSE=
26050 fi
26051
26052
26053
26054
26055 #
26056 # Check for DJVU delegate library.
26057 #
26058
26059 # Check whether --with-djvu was given.
26060 if test "${with_djvu+set}" = set; then :
26061   withval=$with_djvu; with_djvu=$withval
26062 else
26063   with_djvu='yes'
26064 fi
26065
26066
26067 if test "$with_djvu" != 'yes'; then
26068     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26069 fi
26070
26071 have_djvu='no'
26072 DJVU_LIBS=''
26073 if test "$with_djvu" != 'no'; then
26074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26075 $as_echo "-------------------------------------------------------------" >&6; }
26076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26077 $as_echo_n "checking for DJVU... " >&6; }
26078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26079 $as_echo "" >&6; }
26080     failed=0
26081     passed=0
26082     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26083 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26084   passed=`expr $passed + 1`
26085 else
26086   failed=`expr $failed + 1`
26087 fi
26088
26089
26090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26091 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26092 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26093   $as_echo_n "(cached) " >&6
26094 else
26095   ac_check_lib_save_LIBS=$LIBS
26096 LIBS="-ldjvulibre  $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 ddjvu_context_create ();
26107 int
26108 main ()
26109 {
26110 return ddjvu_context_create ();
26111   ;
26112   return 0;
26113 }
26114 _ACEOF
26115 if ac_fn_c_try_link "$LINENO"; then :
26116   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26117 else
26118   ac_cv_lib_djvulibre_ddjvu_context_create=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_djvulibre_ddjvu_context_create" >&5
26125 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26126 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; 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 DJVU package is complete" >&5
26133 $as_echo_n "checking if DJVU package 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_djvu='no (failed tests)'
26139         else
26140             DJVU_LIBS='-ldjvulibre'
26141             LIBS="$DJVU_LIBS $LIBS"
26142
26143 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26144
26145             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26146 $as_echo "yes" >&6; }
26147             have_djvu='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_djvu" = 'yes'; then
26155   DJVU_DELEGATE_TRUE=
26156   DJVU_DELEGATE_FALSE='#'
26157 else
26158   DJVU_DELEGATE_TRUE='#'
26159   DJVU_DELEGATE_FALSE=
26160 fi
26161
26162
26163
26164
26165 #
26166 # Set DejaVu font directory.
26167 #
26168
26169 # Check whether --with-dejavu-font-dir was given.
26170 if test "${with_dejavu_font_dir+set}" = set; then :
26171   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26172 else
26173   with_dejavu_font_dir='default'
26174 fi
26175
26176
26177 if test "$with_dejavu_font_dir" != 'default'; then
26178     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26179 fi
26180
26181
26182 #
26183 # Check for FFTW delegate library.
26184 #
26185
26186 # Check whether --with-fftw was given.
26187 if test "${with_fftw+set}" = set; then :
26188   withval=$with_fftw; with_fftw=$withval
26189 else
26190   with_fftw='yes'
26191 fi
26192
26193
26194 if test "$with_fftw" != 'yes'; then
26195     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26196 fi
26197
26198 have_fftw='no'
26199 FFTW_LIBS=''
26200 if test "$with_fftw" != 'no'; then
26201     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26202 $as_echo "-------------------------------------------------------------" >&6; }
26203     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26204 $as_echo_n "checking for FFTW... " >&6; }
26205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26206 $as_echo "" >&6; }
26207     failed=0
26208     passed=0
26209     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26210 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26211   passed=`expr $passed + 1`
26212 else
26213   failed=`expr $failed + 1`
26214 fi
26215
26216
26217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26218 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26219 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26220   $as_echo_n "(cached) " >&6
26221 else
26222   ac_check_lib_save_LIBS=$LIBS
26223 LIBS="-lfftw3  $LIBS"
26224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26225 /* end confdefs.h.  */
26226
26227 /* Override any GCC internal prototype to avoid an error.
26228    Use char because int might match the return type of a GCC
26229    builtin and then its argument prototype would still apply.  */
26230 #ifdef __cplusplus
26231 extern "C"
26232 #endif
26233 char fftw_execute ();
26234 int
26235 main ()
26236 {
26237 return fftw_execute ();
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 if ac_fn_c_try_link "$LINENO"; then :
26243   ac_cv_lib_fftw3_fftw_execute=yes
26244 else
26245   ac_cv_lib_fftw3_fftw_execute=no
26246 fi
26247 rm -f core conftest.err conftest.$ac_objext \
26248     conftest$ac_exeext conftest.$ac_ext
26249 LIBS=$ac_check_lib_save_LIBS
26250 fi
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26252 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26253 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26254   passed=`expr $passed + 1`
26255 else
26256   failed=`expr $failed + 1`
26257 fi
26258
26259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26260 $as_echo_n "checking if FFTW package is complete... " >&6; }
26261     if test $passed -gt 0; then
26262         if test $failed -gt 0; then
26263             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26264 $as_echo "no -- some components failed test" >&6; }
26265             have_fftw='no (failed tests)'
26266         else
26267             FFTW_LIBS='-lfftw3'
26268             LIBS="$FFTW_LIBS $LIBS"
26269
26270 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26271
26272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26273 $as_echo "yes" >&6; }
26274             have_fftw='yes'
26275         fi
26276     else
26277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26278 $as_echo "no" >&6; }
26279     fi
26280 fi
26281  if test "$have_fftw" = 'yes'; then
26282   FFTW_DELEGATE_TRUE=
26283   FFTW_DELEGATE_FALSE='#'
26284 else
26285   FFTW_DELEGATE_TRUE='#'
26286   FFTW_DELEGATE_FALSE=
26287 fi
26288
26289
26290
26291
26292 #
26293 # Check for FlashPIX delegate library.
26294 #
26295
26296 # Check whether --with-fpx was given.
26297 if test "${with_fpx+set}" = set; then :
26298   withval=$with_fpx; with_fpx=$withval
26299 else
26300   with_fpx='yes'
26301 fi
26302
26303
26304 if test "$with_fpx" != 'yes'; then
26305     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26306 fi
26307
26308 have_fpx='no'
26309 FPX_LIBS=''
26310 if test "$with_fpx" != 'no'; then
26311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26312 $as_echo "-------------------------------------------------------------" >&6; }
26313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26314 $as_echo_n "checking for FlashPIX... " >&6; }
26315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26316 $as_echo "" >&6; }
26317     failed=0
26318     passed=0
26319     ac_ext=cpp
26320 ac_cpp='$CXXCPP $CPPFLAGS'
26321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26324
26325
26326 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26327 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26328   passed=`expr $passed + 1`
26329 else
26330   failed=`expr $failed + 1`
26331 fi
26332
26333
26334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26335 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26336 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26337   $as_echo_n "(cached) " >&6
26338 else
26339   ac_check_lib_save_LIBS=$LIBS
26340 LIBS="-lfpx  $LIBS"
26341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h.  */
26343
26344 /* Override any GCC internal prototype to avoid an error.
26345    Use char because int might match the return type of a GCC
26346    builtin and then its argument prototype would still apply.  */
26347 #ifdef __cplusplus
26348 extern "C"
26349 #endif
26350 char FPX_OpenImageByFilename ();
26351 int
26352 main ()
26353 {
26354 return FPX_OpenImageByFilename ();
26355   ;
26356   return 0;
26357 }
26358 _ACEOF
26359 if ac_fn_cxx_try_link "$LINENO"; then :
26360   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26361 else
26362   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26363 fi
26364 rm -f core conftest.err conftest.$ac_objext \
26365     conftest$ac_exeext conftest.$ac_ext
26366 LIBS=$ac_check_lib_save_LIBS
26367 fi
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26369 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26370 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26371   passed=`expr $passed + 1`
26372 else
26373   failed=`expr $failed + 1`
26374 fi
26375
26376     ac_ext=c
26377 ac_cpp='$CPP $CPPFLAGS'
26378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26381
26382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26383 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26384     if test $passed -gt 0; then
26385         if test $failed -gt 0; then
26386             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26387 $as_echo "no -- some components failed test" >&6; }
26388             have_fpx='no (failed tests)'
26389         else
26390             FPX_LIBS='-lfpx'
26391
26392 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26393
26394             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26395 $as_echo "yes" >&6; }
26396             have_fpx='yes'
26397             PERLMAINCC="$CXX"
26398         fi
26399     else
26400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26401 $as_echo "no" >&6; }
26402     fi
26403 fi
26404  if test "$have_fpx" = 'yes'; then
26405   FPX_DELEGATE_TRUE=
26406   FPX_DELEGATE_FALSE='#'
26407 else
26408   FPX_DELEGATE_TRUE='#'
26409   FPX_DELEGATE_FALSE=
26410 fi
26411
26412
26413
26414
26415 #
26416 # Check for fontconfig delegate library.
26417 #
26418
26419 # Check whether --with-fontconfig was given.
26420 if test "${with_fontconfig+set}" = set; then :
26421   withval=$with_fontconfig; with_fontconfig=$withval
26422 else
26423   with_fontconfig=$have_x
26424 fi
26425
26426
26427 if test "$with_fontconfig" != 'yes'; then
26428     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26429 fi
26430
26431 have_fontconfig='no'
26432 FONTCONFIG_CFLAGS=""
26433 FONTCONFIG_LIBS=""
26434 FONTCONFIG_PKG=""
26435 if test "x$with_fontconfig" = "xyes"; then
26436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26437 $as_echo "-------------------------------------------------------------" >&6; }
26438
26439 pkg_failed=no
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26441 $as_echo_n "checking for FONTCONFIG... " >&6; }
26442
26443 if test -n "$FONTCONFIG_CFLAGS"; then
26444     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26445  elif test -n "$PKG_CONFIG"; then
26446     if test -n "$PKG_CONFIG" && \
26447     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26448   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26449   ac_status=$?
26450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451   test $ac_status = 0; }; then
26452   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26453 else
26454   pkg_failed=yes
26455 fi
26456  else
26457     pkg_failed=untried
26458 fi
26459 if test -n "$FONTCONFIG_LIBS"; then
26460     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26461  elif test -n "$PKG_CONFIG"; then
26462     if test -n "$PKG_CONFIG" && \
26463     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26464   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26465   ac_status=$?
26466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26467   test $ac_status = 0; }; then
26468   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26469 else
26470   pkg_failed=yes
26471 fi
26472  else
26473     pkg_failed=untried
26474 fi
26475
26476
26477
26478 if test $pkg_failed = yes; then
26479
26480 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26481         _pkg_short_errors_supported=yes
26482 else
26483         _pkg_short_errors_supported=no
26484 fi
26485         if test $_pkg_short_errors_supported = yes; then
26486                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26487         else
26488                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26489         fi
26490         # Put the nasty error message in config.log where it belongs
26491         echo "$FONTCONFIG_PKG_ERRORS" >&5
26492
26493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26494 $as_echo "no" >&6; }
26495                 have_fontconfig=no
26496 elif test $pkg_failed = untried; then
26497         have_fontconfig=no
26498 else
26499         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26500         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26502 $as_echo "yes" >&6; }
26503         have_fontconfig=yes
26504 fi
26505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26506 $as_echo "" >&6; }
26507 fi
26508
26509 if test "$have_fontconfig" = 'yes'; then
26510
26511 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26512
26513   if test "$with_modules" = 'no'; then
26514     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26515   fi
26516 fi
26517
26518  if test "$have_fontconfig" = 'yes'; then
26519   FONTCONFIG_DELEGATE_TRUE=
26520   FONTCONFIG_DELEGATE_FALSE='#'
26521 else
26522   FONTCONFIG_DELEGATE_TRUE='#'
26523   FONTCONFIG_DELEGATE_FALSE=
26524 fi
26525
26526
26527
26528
26529
26530 #
26531 # Check for freetype delegate library.
26532 #
26533
26534 # Check whether --with-freetype was given.
26535 if test "${with_freetype+set}" = set; then :
26536   withval=$with_freetype; with_freetype=$withval
26537 else
26538   with_freetype='yes'
26539 fi
26540
26541
26542
26543 if test "$with_freetype" != 'yes'; then
26544     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26545 fi
26546
26547 have_freetype='no'
26548 FREETYPE_LIBS=''
26549 if test "$with_freetype" != 'no'; then
26550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26551 $as_echo "-------------------------------------------------------------" >&6; }
26552     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26553 $as_echo_n "checking for FreeType 2.0... " >&6; }
26554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26555 $as_echo "" >&6; }
26556     failed=0
26557     passed=0
26558     PERSIST_LIBS="$LIBS"
26559     PERSIST_CPPFLAGS="$CPPFLAGS"
26560     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26561         :
26562     else
26563         freetype_config=''
26564         for ac_prog in freetype-config
26565 do
26566   # Extract the first word of "$ac_prog", so it can be a program name with args.
26567 set dummy $ac_prog; ac_word=$2
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26569 $as_echo_n "checking for $ac_word... " >&6; }
26570 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26571   $as_echo_n "(cached) " >&6
26572 else
26573   if test -n "$freetype_config"; then
26574   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26575 else
26576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26577 for as_dir in $PATH
26578 do
26579   IFS=$as_save_IFS
26580   test -z "$as_dir" && as_dir=.
26581     for ac_exec_ext in '' $ac_executable_extensions; do
26582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26583     ac_cv_prog_freetype_config="$ac_prog"
26584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26585     break 2
26586   fi
26587 done
26588   done
26589 IFS=$as_save_IFS
26590
26591 fi
26592 fi
26593 freetype_config=$ac_cv_prog_freetype_config
26594 if test -n "$freetype_config"; then
26595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
26596 $as_echo "$freetype_config" >&6; }
26597 else
26598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26599 $as_echo "no" >&6; }
26600 fi
26601
26602
26603   test -n "$freetype_config" && break
26604 done
26605         if test -n "$freetype_config"; then
26606             freetype_cflags=`$freetype_config --cflags`
26607             freetype_libs=`$freetype_config --libs`
26608             LIBS="$LIBS $freetype_libs"
26609             CPPFLAGS="$freetype_cflags $CPPFLAGS"
26610         fi
26611     fi
26612
26613     if test "$FREETYPE_LIBS" = ''; then
26614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
26615 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
26616 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
26617   $as_echo_n "(cached) " >&6
26618 else
26619   ac_check_lib_save_LIBS=$LIBS
26620 LIBS="-lfreetype  $LIBS"
26621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26622 /* end confdefs.h.  */
26623
26624 /* Override any GCC internal prototype to avoid an error.
26625    Use char because int might match the return type of a GCC
26626    builtin and then its argument prototype would still apply.  */
26627 #ifdef __cplusplus
26628 extern "C"
26629 #endif
26630 char FT_Init_FreeType ();
26631 int
26632 main ()
26633 {
26634 return FT_Init_FreeType ();
26635   ;
26636   return 0;
26637 }
26638 _ACEOF
26639 if ac_fn_c_try_link "$LINENO"; then :
26640   ac_cv_lib_freetype_FT_Init_FreeType=yes
26641 else
26642   ac_cv_lib_freetype_FT_Init_FreeType=no
26643 fi
26644 rm -f core conftest.err conftest.$ac_objext \
26645     conftest$ac_exeext conftest.$ac_ext
26646 LIBS=$ac_check_lib_save_LIBS
26647 fi
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
26649 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
26650 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
26651   FREETYPE_LIBS='-lfreetype'
26652 fi
26653
26654         if test "$FREETYPE_LIBS" != ''; then
26655             passed=`expr $passed + 1`
26656         else
26657             failed=`expr $failed + 1`
26658             LIBS="$PERSIST_LIBS"
26659         fi
26660     fi
26661
26662     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
26663 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
26664   FT2BUILD_H='#include <ft2build.h>'
26665 else
26666   ft2build=''
26667 fi
26668
26669
26670     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
26671 "
26672 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
26673   have_freetype_h='yes'
26674 else
26675   have_freetype_h='no'
26676 fi
26677
26678
26679     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
26680         passed=`expr $passed + 1`
26681     else
26682         failed=`expr $failed + 1`
26683         CPPFLAGS="$PERSIST_CPPFLAGS"
26684     fi
26685
26686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
26687 $as_echo_n "checking if FreeType package is complete... " >&6; }
26688     if test $passed -gt 0; then
26689         if test $failed -gt 0; then
26690             FREETYPE_LIBS=''
26691             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26692 $as_echo "no -- some components failed test" >&6; }
26693             have_freetype='no (failed tests)'
26694         else
26695             LIBS="$FREETYPE_LIBS $LIBS"
26696
26697 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
26698
26699             if test "$ac_cv_header_ft2build_h" = 'yes'; then
26700
26701 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
26702
26703             fi
26704             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26705 $as_echo "yes" >&6; }
26706             have_freetype='yes'
26707         fi
26708     else
26709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26710 $as_echo "no" >&6; }
26711     fi
26712 fi
26713  if test "$have_freetype" = 'yes'; then
26714   FREETYPE_DELEGATE_TRUE=
26715   FREETYPE_DELEGATE_FALSE='#'
26716 else
26717   FREETYPE_DELEGATE_TRUE='#'
26718   FREETYPE_DELEGATE_FALSE=
26719 fi
26720
26721
26722
26723
26724
26725 #
26726 # Check for Ghostscript library or framework.
26727 #
26728 # Test for iapi.h & test for gsapi_new_instance in -lgs
26729 # or -framework Ghostscript
26730
26731
26732 # Check whether --with-gslib was given.
26733 if test "${with_gslib+set}" = set; then :
26734   withval=$with_gslib; with_gslib=$withval
26735 else
26736   with_gslib='no'
26737 fi
26738
26739
26740 gslib_framework='no'
26741 if test "$with_gslib" != 'yes'; then
26742     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
26743 fi
26744
26745 have_gslib='no'
26746 GS_LIBS=''
26747 if test "$with_gslib" != 'no'; then
26748     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26749 $as_echo "-------------------------------------------------------------" >&6; }
26750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
26751 $as_echo_n "checking for Ghostscript... " >&6; }
26752     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26753 $as_echo "" >&6; }
26754     framework=0
26755     failed=0
26756     passed=0
26757     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
26758 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
26759   passed=`expr $passed + 1`
26760 else
26761   failed=`expr $failed + 1`
26762 fi
26763
26764
26765     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
26766 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
26767   passed=`expr $passed + 1`
26768 else
26769   failed=`expr $failed + 1`
26770 fi
26771
26772
26773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
26774 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
26775 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
26776   $as_echo_n "(cached) " >&6
26777 else
26778   ac_check_framework_save_LIBS=$LIBS
26779 LIBS="-framework Ghostscript  $LIBS"
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h.  */
26782
26783 /* Override any GCC internal prototype to avoid an error.
26784    Use char because int might match the return type of a GCC
26785    builtin and then its argument prototype would still apply.  */
26786 #ifdef __cplusplus
26787 extern "C"
26788 #endif
26789 char gsapi_new_instance ();
26790 int
26791 main ()
26792 {
26793 return gsapi_new_instance ();
26794   ;
26795   return 0;
26796 }
26797 _ACEOF
26798 if ac_fn_c_try_link "$LINENO"; then :
26799   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
26800 else
26801   ac_cv_framework_Ghostscript_gsapi_new_instance=no
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext \
26804     conftest$ac_exeext conftest.$ac_ext
26805 LIBS=$ac_check_framework_save_LIBS
26806 fi
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
26808 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
26809 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
26810   framework=`expr $framework + 1`
26811 else
26812   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
26813 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
26814 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
26815   $as_echo_n "(cached) " >&6
26816 else
26817   ac_check_lib_save_LIBS=$LIBS
26818 LIBS="-lgs  $LIBS"
26819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26820 /* end confdefs.h.  */
26821
26822 /* Override any GCC internal prototype to avoid an error.
26823    Use char because int might match the return type of a GCC
26824    builtin and then its argument prototype would still apply.  */
26825 #ifdef __cplusplus
26826 extern "C"
26827 #endif
26828 char gsapi_new_instance ();
26829 int
26830 main ()
26831 {
26832 return gsapi_new_instance ();
26833   ;
26834   return 0;
26835 }
26836 _ACEOF
26837 if ac_fn_c_try_link "$LINENO"; then :
26838   ac_cv_lib_gs_gsapi_new_instance=yes
26839 else
26840   ac_cv_lib_gs_gsapi_new_instance=no
26841 fi
26842 rm -f core conftest.err conftest.$ac_objext \
26843     conftest$ac_exeext conftest.$ac_ext
26844 LIBS=$ac_check_lib_save_LIBS
26845 fi
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
26847 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
26848 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
26849   passed=`expr $passed + 1`
26850 else
26851   failed=`expr $failed + 1`
26852 fi
26853
26854 fi
26855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
26856 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
26857     if test $passed -gt 0; then
26858         if test $failed -gt 0; then
26859             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26860 $as_echo "no -- some components failed test" >&6; }
26861             have_gslib='no (failed tests)'
26862         else
26863             if test $framework -gt 0; then
26864                 GS_LIBS='-framework Ghostscript'
26865                 gslib_framework='yes'
26866                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
26867 $as_echo "yes, using framework." >&6; }
26868             else
26869                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
26870 $as_echo "yes, using library." >&6; }
26871                 GS_LIBS='-lgs'
26872             fi
26873             LIBS="$GS_LIBS $LIBS"
26874
26875 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
26876
26877             have_gslib='yes'
26878         fi
26879     else
26880         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26881 $as_echo "no" >&6; }
26882     fi
26883 fi
26884  if test "$have_gslib" = 'yes'; then
26885   GS_DELEGATE_TRUE=
26886   GS_DELEGATE_FALSE='#'
26887 else
26888   GS_DELEGATE_TRUE='#'
26889   GS_DELEGATE_FALSE=
26890 fi
26891
26892
26893
26894 # Set default font search path
26895
26896 # Check whether --with-fontpath was given.
26897 if test "${with_fontpath+set}" = set; then :
26898   withval=$with_fontpath; with_fontpath=$withval
26899 else
26900   with_fontpath=''
26901 fi
26902
26903
26904 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26905     with_fontpath=''
26906 else
26907
26908 cat >>confdefs.h <<_ACEOF
26909 #define MAGICK_FONT_PATH "$with_fontpath"
26910 _ACEOF
26911
26912 fi
26913 if test "$with_fontpath=" != ''; then
26914     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26915 fi
26916
26917 # Set Ghostscript font directory
26918
26919 # Check whether --with-gs-font-dir was given.
26920 if test "${with_gs_font_dir+set}" = set; then :
26921   withval=$with_gs_font_dir; with_gs_font_dir=$withval
26922 else
26923   with_gs_font_dir='default'
26924 fi
26925
26926
26927 if test "$with_gs_font_dir" != 'default'; then
26928     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26929 fi
26930
26931
26932 #
26933 # Check for GVC delegate library.
26934 #
26935
26936 # Check whether --with-gvc was given.
26937 if test "${with_gvc+set}" = set; then :
26938   withval=$with_gvc; with_gvc=$withval
26939 else
26940   with_gvc='yes'
26941 fi
26942
26943
26944 if test "$with_gvc" != 'yes'; then
26945     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26946 fi
26947
26948 GVC_PKG=""
26949 if test "x$with_gvc" = "xyes"; then
26950     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26951 $as_echo "-------------------------------------------------------------" >&6; }
26952
26953 pkg_failed=no
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26955 $as_echo_n "checking for GVC... " >&6; }
26956
26957 if test -n "$GVC_CFLAGS"; then
26958     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26959  elif test -n "$PKG_CONFIG"; then
26960     if test -n "$PKG_CONFIG" && \
26961     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26962   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26963   ac_status=$?
26964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26965   test $ac_status = 0; }; then
26966   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26967 else
26968   pkg_failed=yes
26969 fi
26970  else
26971     pkg_failed=untried
26972 fi
26973 if test -n "$GVC_LIBS"; then
26974     pkg_cv_GVC_LIBS="$GVC_LIBS"
26975  elif test -n "$PKG_CONFIG"; then
26976     if test -n "$PKG_CONFIG" && \
26977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26978   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26979   ac_status=$?
26980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26981   test $ac_status = 0; }; then
26982   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26983 else
26984   pkg_failed=yes
26985 fi
26986  else
26987     pkg_failed=untried
26988 fi
26989
26990
26991
26992 if test $pkg_failed = yes; then
26993
26994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26995         _pkg_short_errors_supported=yes
26996 else
26997         _pkg_short_errors_supported=no
26998 fi
26999         if test $_pkg_short_errors_supported = yes; then
27000                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27001         else
27002                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27003         fi
27004         # Put the nasty error message in config.log where it belongs
27005         echo "$GVC_PKG_ERRORS" >&5
27006
27007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27008 $as_echo "no" >&6; }
27009                 have_gvc=no
27010 elif test $pkg_failed = untried; then
27011         have_gvc=no
27012 else
27013         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27014         GVC_LIBS=$pkg_cv_GVC_LIBS
27015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27016 $as_echo "yes" >&6; }
27017         have_gvc=yes
27018 fi
27019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27020 $as_echo "" >&6; }
27021 fi
27022
27023 if test "$have_gvc" = 'yes'; then
27024
27025 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27026
27027     if test "$with_modules" = 'no'; then
27028         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27029     fi
27030 fi
27031
27032  if test "$have_gvc" = 'yes'; then
27033   GVC_DELEGATE_TRUE=
27034   GVC_DELEGATE_FALSE='#'
27035 else
27036   GVC_DELEGATE_TRUE='#'
27037   GVC_DELEGATE_FALSE=
27038 fi
27039
27040
27041
27042
27043
27044 #
27045 # Check for JBIG delegate library.
27046 #
27047
27048
27049 # Check whether --with-jbig was given.
27050 if test "${with_jbig+set}" = set; then :
27051   withval=$with_jbig; with_jbig=$withval
27052 else
27053   with_jbig='yes'
27054 fi
27055
27056
27057 have_jbig='no'
27058 JBIG_LIBS=''
27059 if test "$with_jbig" != 'no'; then
27060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27061 $as_echo "-------------------------------------------------------------" >&6; }
27062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27063 $as_echo_n "checking for JBIG... " >&6; }
27064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27065 $as_echo "" >&6; }
27066     failed=0
27067     passed=0
27068     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27069 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27070   passed=`expr $passed + 1`
27071 else
27072   failed=`expr $failed + 1`
27073 fi
27074
27075
27076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27077 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27078 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27079   $as_echo_n "(cached) " >&6
27080 else
27081   ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-ljbig  $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 jbg_dec_init ();
27093 int
27094 main ()
27095 {
27096 return jbg_dec_init ();
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 if ac_fn_c_try_link "$LINENO"; then :
27102   ac_cv_lib_jbig_jbg_dec_init=yes
27103 else
27104   ac_cv_lib_jbig_jbg_dec_init=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_jbig_jbg_dec_init" >&5
27111 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27112 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27113   passed=`expr $passed + 1`
27114 else
27115   failed=`expr $failed + 1`
27116 fi
27117
27118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27119 $as_echo_n "checking if JBIG package is complete... " >&6; }
27120     if test $passed -gt 0; then
27121         if test $failed -gt 0; then
27122             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27123 $as_echo "no -- some components failed test" >&6; }
27124             have_jbig='no (failed tests)'
27125         else
27126             JBIG_LIBS='-ljbig'
27127             LIBS="$JBIG_LIBS $LIBS"
27128
27129 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27130
27131             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27132 $as_echo "yes" >&6; }
27133             have_jbig='yes'
27134         fi
27135     else
27136         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27137 $as_echo "no" >&6; }
27138     fi
27139 fi
27140  if test "$have_jbig" = 'yes'; then
27141   JBIG_DELEGATE_TRUE=
27142   JBIG_DELEGATE_FALSE='#'
27143 else
27144   JBIG_DELEGATE_TRUE='#'
27145   JBIG_DELEGATE_FALSE=
27146 fi
27147
27148
27149
27150
27151 #
27152 # Check for JPEG delegate library.
27153 #
27154
27155 # Check whether --with-jpeg was given.
27156 if test "${with_jpeg+set}" = set; then :
27157   withval=$with_jpeg; with_jpeg=$withval
27158 else
27159   with_jpeg='yes'
27160 fi
27161
27162
27163 if test "$with_jpeg" != 'yes'; then
27164     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27165 fi
27166
27167 have_jpeg='no'
27168 JPEG_LIBS=''
27169 if test "$with_jpeg" != 'no'; then
27170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27171 $as_echo "-------------------------------------------------------------" >&6; }
27172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27173 $as_echo_n "checking for JPEG... " >&6; }
27174     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27175 $as_echo "" >&6; }
27176     failed=0
27177     passed=0
27178     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27179 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27180   passed=`expr $passed + 1`
27181 else
27182   failed=`expr $failed + 1`
27183 fi
27184
27185
27186     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27187 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27188   passed=`expr $passed + 1`
27189 else
27190   failed=`expr $failed + 1`
27191 fi
27192
27193
27194     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27195 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27196   passed=`expr $passed + 1`
27197 else
27198   failed=`expr $failed + 1`
27199 fi
27200
27201
27202     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27203 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27204   passed=`expr $passed + 1`
27205 else
27206   failed=`expr $failed + 1`
27207 fi
27208
27209
27210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27211 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27212 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27213   $as_echo_n "(cached) " >&6
27214 else
27215   ac_check_lib_save_LIBS=$LIBS
27216 LIBS="-ljpeg  $LIBS"
27217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27218 /* end confdefs.h.  */
27219
27220 /* Override any GCC internal prototype to avoid an error.
27221    Use char because int might match the return type of a GCC
27222    builtin and then its argument prototype would still apply.  */
27223 #ifdef __cplusplus
27224 extern "C"
27225 #endif
27226 char jpeg_read_header ();
27227 int
27228 main ()
27229 {
27230 return jpeg_read_header ();
27231   ;
27232   return 0;
27233 }
27234 _ACEOF
27235 if ac_fn_c_try_link "$LINENO"; then :
27236   ac_cv_lib_jpeg_jpeg_read_header=yes
27237 else
27238   ac_cv_lib_jpeg_jpeg_read_header=no
27239 fi
27240 rm -f core conftest.err conftest.$ac_objext \
27241     conftest$ac_exeext conftest.$ac_ext
27242 LIBS=$ac_check_lib_save_LIBS
27243 fi
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27245 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27246 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27247   passed=`expr $passed + 1`
27248 else
27249   failed=`expr $failed + 1`
27250 fi
27251
27252
27253 # Test for compatible JPEG library
27254 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27256 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27257 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27258   $as_echo_n "(cached) " >&6
27259 else
27260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27261 /* end confdefs.h.  */
27262 #include <stdio.h>
27263 #include <stdlib.h>
27264 #include <jpeglib.h>
27265
27266 int
27267 main ()
27268 {
27269
27270 #if JPEG_LIB_VERSION < 62
27271 #error IJG JPEG library must be version 6b or newer!
27272 #endif
27273 return 0;
27274
27275   ;
27276   return 0;
27277 }
27278 _ACEOF
27279 if ac_fn_c_try_compile "$LINENO"; then :
27280   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27281 else
27282   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27283 fi
27284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27285 fi
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27287 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27288 fi
27289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27290 $as_echo_n "checking if JPEG package is complete... " >&6; }
27291     if test $passed -gt 0; then
27292         if test $failed -gt 0; then
27293             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27294 $as_echo "no -- some components failed test" >&6; }
27295             have_jpeg='no (failed tests)'
27296         else
27297             JPEG_LIBS='-ljpeg'
27298             LIBS="$JPEG_LIBS $LIBS"
27299
27300 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27301
27302             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27303 $as_echo "yes" >&6; }
27304             have_jpeg='yes'
27305         fi
27306     else
27307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27308 $as_echo "no" >&6; }
27309     fi
27310 fi
27311  if test "$have_jpeg" = 'yes'; then
27312   JPEG_DELEGATE_TRUE=
27313   JPEG_DELEGATE_FALSE='#'
27314 else
27315   JPEG_DELEGATE_TRUE='#'
27316   JPEG_DELEGATE_FALSE=
27317 fi
27318
27319
27320
27321
27322 #
27323 # Check for JPEG Version 2 delegate library.
27324 #
27325
27326 # Check whether --with-jp2 was given.
27327 if test "${with_jp2+set}" = set; then :
27328   withval=$with_jp2; with_jp2=$withval
27329 else
27330   with_jp2='yes'
27331 fi
27332
27333
27334 if test "$with_jp2" != 'yes'; then
27335     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27336 fi
27337
27338 have_jp2='no'
27339 JP2_LIBS=''
27340 if test "$with_jp2" != '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 JPEG Version 2" >&5
27344 $as_echo_n "checking for JPEG Version 2... " >&6; }
27345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27346 $as_echo "" >&6; }
27347     failed=0
27348     passed=0
27349     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27350 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27351   passed=`expr $passed + 1`
27352 else
27353   failed=`expr $failed + 1`
27354 fi
27355
27356
27357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27358 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27359 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27360   $as_echo_n "(cached) " >&6
27361 else
27362   ac_check_lib_save_LIBS=$LIBS
27363 LIBS="-ljasper  $LIBS"
27364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h.  */
27366
27367 /* Override any GCC internal prototype to avoid an error.
27368    Use char because int might match the return type of a GCC
27369    builtin and then its argument prototype would still apply.  */
27370 #ifdef __cplusplus
27371 extern "C"
27372 #endif
27373 char jas_stream_fopen ();
27374 int
27375 main ()
27376 {
27377 return jas_stream_fopen ();
27378   ;
27379   return 0;
27380 }
27381 _ACEOF
27382 if ac_fn_c_try_link "$LINENO"; then :
27383   ac_cv_lib_jasper_jas_stream_fopen=yes
27384 else
27385   ac_cv_lib_jasper_jas_stream_fopen=no
27386 fi
27387 rm -f core conftest.err conftest.$ac_objext \
27388     conftest$ac_exeext conftest.$ac_ext
27389 LIBS=$ac_check_lib_save_LIBS
27390 fi
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27392 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27393 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27394   passed=`expr $passed + 1`
27395 else
27396   failed=`expr $failed + 1`
27397 fi
27398
27399     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27400 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27401     if test $passed -gt 0; then
27402         if test $failed -gt 0; then
27403             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27404 $as_echo "no -- some components failed test" >&6; }
27405             have_jp2='no (failed tests)'
27406         else
27407             JP2_LIBS='-ljasper'
27408             LIBS="$JP2_LIBS $LIBS"
27409
27410 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27411
27412             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27413 $as_echo "yes" >&6; }
27414             have_jp2='yes'
27415         fi
27416     else
27417         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27418 $as_echo "no" >&6; }
27419     fi
27420 fi
27421  if test "$have_jp2" = 'yes'; then
27422   JP2_DELEGATE_TRUE=
27423   JP2_DELEGATE_FALSE='#'
27424 else
27425   JP2_DELEGATE_TRUE='#'
27426   JP2_DELEGATE_FALSE=
27427 fi
27428
27429
27430
27431
27432 #
27433 # Check for LCMS delegate library.
27434 #
27435
27436 # Check whether --with-lcms was given.
27437 if test "${with_lcms+set}" = set; then :
27438   withval=$with_lcms; with_lcms=$withval
27439 else
27440   with_lcms='yes'
27441 fi
27442
27443
27444 if test "$with_lcms" != 'yes'; then
27445     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27446 fi
27447
27448 have_lcms='no'
27449 LCMS_LIBS=''
27450 if test "$with_lcms" != 'no'; then
27451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27452 $as_echo "-------------------------------------------------------------" >&6; }
27453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27454 $as_echo_n "checking for LCMS... " >&6; }
27455     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27456 $as_echo "" >&6; }
27457     failed=0
27458     passed=0
27459     have_lcms_header='no'
27460     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27461 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27462   have_lcms_header='yes'
27463 fi
27464
27465
27466     if test "$have_lcms_header" = 'yes'; then
27467         passed=`expr $passed + 1`
27468
27469 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27470
27471     else
27472         ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms2.h" "ac_cv_header_lcms_lcms2_h" "$ac_includes_default"
27473 if test "x$ac_cv_header_lcms_lcms2_h" = x""yes; then :
27474   have_lcms_header='yes'
27475 fi
27476
27477
27478         if test "$have_lcms_header" = 'yes'; then
27479             passed=`expr $passed + 1`
27480
27481 $as_echo "#define HAVE_LCMS_LCMS2_H 1" >>confdefs.h
27482
27483         else
27484             failed=`expr $failed + 1`
27485         fi
27486     fi
27487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms2" >&5
27488 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms2... " >&6; }
27489 if test "${ac_cv_lib_lcms2_cmsOpenProfileFromMem+set}" = set; then :
27490   $as_echo_n "(cached) " >&6
27491 else
27492   ac_check_lib_save_LIBS=$LIBS
27493 LIBS="-llcms2  $LIBS"
27494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27495 /* end confdefs.h.  */
27496
27497 /* Override any GCC internal prototype to avoid an error.
27498    Use char because int might match the return type of a GCC
27499    builtin and then its argument prototype would still apply.  */
27500 #ifdef __cplusplus
27501 extern "C"
27502 #endif
27503 char cmsOpenProfileFromMem ();
27504 int
27505 main ()
27506 {
27507 return cmsOpenProfileFromMem ();
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 if ac_fn_c_try_link "$LINENO"; then :
27513   ac_cv_lib_lcms2_cmsOpenProfileFromMem=yes
27514 else
27515   ac_cv_lib_lcms2_cmsOpenProfileFromMem=no
27516 fi
27517 rm -f core conftest.err conftest.$ac_objext \
27518     conftest$ac_exeext conftest.$ac_ext
27519 LIBS=$ac_check_lib_save_LIBS
27520 fi
27521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&5
27522 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromMem" >&6; }
27523 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromMem" = x""yes; then :
27524   passed=`expr $passed + 1`
27525 else
27526   failed=`expr $failed + 1`
27527 fi
27528
27529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS2 package is complete" >&5
27530 $as_echo_n "checking if LCMS2 package is complete... " >&6; }
27531     if test $passed -gt 0; then
27532         if test $failed -gt 0; then
27533             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27534 $as_echo "no -- some components failed test" >&6; }
27535             have_lcms='no (failed tests)'
27536         else
27537             LCMS_LIBS='-llcms2'
27538             LIBS="$LCMS_LIBS $LIBS"
27539
27540 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27541
27542             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27543 $as_echo "yes" >&6; }
27544             have_lcms='yes'
27545         fi
27546     else
27547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27548 $as_echo "no" >&6; }
27549     fi
27550 fi
27551
27552 if test "$with_lcms" != 'no'; then
27553 if test "$have_lcms" == 'no'; then
27554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27555 $as_echo "-------------------------------------------------------------" >&6; }
27556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
27557 $as_echo_n "checking for LCMS... " >&6; }
27558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27559 $as_echo "" >&6; }
27560     failed=0
27561     passed=0
27562     have_lcms_header='no'
27563     ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27564 if test "x$ac_cv_header_lcms_h" = x""yes; then :
27565   have_lcms_header='yes'
27566 fi
27567
27568
27569     if test "$have_lcms_header" = 'yes'; then
27570         passed=`expr $passed + 1`
27571
27572 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
27573
27574     else
27575         ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
27576 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
27577   have_lcms_header='yes'
27578 fi
27579
27580
27581         if test "$have_lcms_header" = 'yes'; then
27582             passed=`expr $passed + 1`
27583
27584 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
27585
27586         else
27587             failed=`expr $failed + 1`
27588         fi
27589     fi
27590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
27591 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
27592 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
27593   $as_echo_n "(cached) " >&6
27594 else
27595   ac_check_lib_save_LIBS=$LIBS
27596 LIBS="-llcms  $LIBS"
27597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27598 /* end confdefs.h.  */
27599
27600 /* Override any GCC internal prototype to avoid an error.
27601    Use char because int might match the return type of a GCC
27602    builtin and then its argument prototype would still apply.  */
27603 #ifdef __cplusplus
27604 extern "C"
27605 #endif
27606 char cmsOpenProfileFromMem ();
27607 int
27608 main ()
27609 {
27610 return cmsOpenProfileFromMem ();
27611   ;
27612   return 0;
27613 }
27614 _ACEOF
27615 if ac_fn_c_try_link "$LINENO"; then :
27616   ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
27617 else
27618   ac_cv_lib_lcms_cmsOpenProfileFromMem=no
27619 fi
27620 rm -f core conftest.err conftest.$ac_objext \
27621     conftest$ac_exeext conftest.$ac_ext
27622 LIBS=$ac_check_lib_save_LIBS
27623 fi
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
27625 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
27626 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
27627   passed=`expr $passed + 1`
27628 else
27629   failed=`expr $failed + 1`
27630 fi
27631
27632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
27633 $as_echo_n "checking if LCMS package is complete... " >&6; }
27634     if test $passed -gt 0; then
27635         if test $failed -gt 0; then
27636             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27637 $as_echo "no -- some components failed test" >&6; }
27638             have_lcms='no (failed tests)'
27639         else
27640             LCMS_LIBS='-llcms'
27641             LIBS="$LCMS_LIBS $LIBS"
27642
27643 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
27644
27645             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27646 $as_echo "yes" >&6; }
27647             have_lcms='yes'
27648         fi
27649     else
27650         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27651 $as_echo "no" >&6; }
27652     fi
27653 fi
27654 fi
27655  if test "$have_lcms" = 'yes'; then
27656   LCMS_DELEGATE_TRUE=
27657   LCMS_DELEGATE_FALSE='#'
27658 else
27659   LCMS_DELEGATE_TRUE='#'
27660   LCMS_DELEGATE_FALSE=
27661 fi
27662
27663
27664
27665
27666 #
27667 # Check for the LQR (Liquid Rescale) delegate library.
27668 #
27669
27670 # Check whether --with-lqr was given.
27671 if test "${with_lqr+set}" = set; then :
27672   withval=$with_lqr; with_lqr=$withval
27673 else
27674   with_lqr='yes'
27675 fi
27676
27677
27678 if test "$with_lqr" != 'yes'; then
27679     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
27680 fi
27681
27682 have_lqr='no'
27683 LQR_CFLAGS=""
27684 LQR_LIBS=""
27685 LQR_PKG=""
27686 if test "x$with_lqr" = "xyes"; then
27687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27688 $as_echo "-------------------------------------------------------------" >&6; }
27689
27690 pkg_failed=no
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
27692 $as_echo_n "checking for LQR... " >&6; }
27693
27694 if test -n "$LQR_CFLAGS"; then
27695     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
27696  elif test -n "$PKG_CONFIG"; then
27697     if test -n "$PKG_CONFIG" && \
27698     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
27699   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27700   ac_status=$?
27701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27702   test $ac_status = 0; }; then
27703   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
27704 else
27705   pkg_failed=yes
27706 fi
27707  else
27708     pkg_failed=untried
27709 fi
27710 if test -n "$LQR_LIBS"; then
27711     pkg_cv_LQR_LIBS="$LQR_LIBS"
27712  elif test -n "$PKG_CONFIG"; then
27713     if test -n "$PKG_CONFIG" && \
27714     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
27715   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
27716   ac_status=$?
27717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27718   test $ac_status = 0; }; then
27719   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
27720 else
27721   pkg_failed=yes
27722 fi
27723  else
27724     pkg_failed=untried
27725 fi
27726
27727
27728
27729 if test $pkg_failed = yes; then
27730
27731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27732         _pkg_short_errors_supported=yes
27733 else
27734         _pkg_short_errors_supported=no
27735 fi
27736         if test $_pkg_short_errors_supported = yes; then
27737                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
27738         else
27739                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
27740         fi
27741         # Put the nasty error message in config.log where it belongs
27742         echo "$LQR_PKG_ERRORS" >&5
27743
27744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27745 $as_echo "no" >&6; }
27746                 have_lqr=no
27747 elif test $pkg_failed = untried; then
27748         have_lqr=no
27749 else
27750         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
27751         LQR_LIBS=$pkg_cv_LQR_LIBS
27752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27753 $as_echo "yes" >&6; }
27754         have_lqr=yes
27755 fi
27756     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27757 $as_echo "" >&6; }
27758 fi
27759
27760 if test "$have_lqr" = 'yes'; then
27761
27762 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
27763
27764     CFLAGS="$LQR_CFLAGS $CFLAGS"
27765 fi
27766
27767  if test "$have_lqr" = 'yes'; then
27768   LQR_DELEGATE_TRUE=
27769   LQR_DELEGATE_FALSE='#'
27770 else
27771   LQR_DELEGATE_TRUE='#'
27772   LQR_DELEGATE_FALSE=
27773 fi
27774
27775
27776
27777
27778
27779 #
27780 # Check for the OpenEXR delegate library.
27781 #
27782
27783 # Check whether --with-openexr was given.
27784 if test "${with_openexr+set}" = set; then :
27785   withval=$with_openexr; with_openexr=$withval
27786 else
27787   with_openexr='yes'
27788 fi
27789
27790
27791 if test "$with_openexr" != 'yes'; then
27792     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
27793 fi
27794
27795 have_openexr='no'
27796 OPENEXR_CFLAGS=""
27797 OPENEXR_LIBS=""
27798 OPENEXR_PKG=""
27799 if test "x$with_openexr" = "xyes"; then
27800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27801 $as_echo "-------------------------------------------------------------" >&6; }
27802
27803 pkg_failed=no
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
27805 $as_echo_n "checking for OPENEXR... " >&6; }
27806
27807 if test -n "$OPENEXR_CFLAGS"; then
27808     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
27809  elif test -n "$PKG_CONFIG"; then
27810     if test -n "$PKG_CONFIG" && \
27811     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
27812   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27813   ac_status=$?
27814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27815   test $ac_status = 0; }; then
27816   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
27817 else
27818   pkg_failed=yes
27819 fi
27820  else
27821     pkg_failed=untried
27822 fi
27823 if test -n "$OPENEXR_LIBS"; then
27824     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
27825  elif test -n "$PKG_CONFIG"; then
27826     if test -n "$PKG_CONFIG" && \
27827     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
27828   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
27829   ac_status=$?
27830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27831   test $ac_status = 0; }; then
27832   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
27833 else
27834   pkg_failed=yes
27835 fi
27836  else
27837     pkg_failed=untried
27838 fi
27839
27840
27841
27842 if test $pkg_failed = yes; then
27843
27844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27845         _pkg_short_errors_supported=yes
27846 else
27847         _pkg_short_errors_supported=no
27848 fi
27849         if test $_pkg_short_errors_supported = yes; then
27850                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
27851         else
27852                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
27853         fi
27854         # Put the nasty error message in config.log where it belongs
27855         echo "$OPENEXR_PKG_ERRORS" >&5
27856
27857         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27858 $as_echo "no" >&6; }
27859                 have_openexr=no
27860 elif test $pkg_failed = untried; then
27861         have_openexr=no
27862 else
27863         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
27864         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
27865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27866 $as_echo "yes" >&6; }
27867         have_openexr=yes
27868 fi
27869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27870 $as_echo "" >&6; }
27871 fi
27872
27873 if test "$have_openexr" = 'yes'; then
27874
27875 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
27876
27877     if test "$with_modules" = 'no'; then
27878         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
27879     fi
27880 fi
27881
27882  if test "$have_openexr" = 'yes'; then
27883   OPENEXR_DELEGATE_TRUE=
27884   OPENEXR_DELEGATE_FALSE='#'
27885 else
27886   OPENEXR_DELEGATE_TRUE='#'
27887   OPENEXR_DELEGATE_FALSE=
27888 fi
27889
27890
27891
27892
27893
27894 #
27895 # Check for PNG delegate library.
27896 #
27897
27898 # Check whether --with-png was given.
27899 if test "${with_png+set}" = set; then :
27900   withval=$with_png; with_png=$withval
27901 else
27902   with_png='yes'
27903 fi
27904
27905
27906 if test "$with_png" != 'yes'; then
27907     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
27908 fi
27909
27910 have_png='no'
27911 PNG_LIBS=''
27912 if test "$with_png" != 'no'; then
27913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27914 $as_echo "-------------------------------------------------------------" >&6; }
27915     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
27916 $as_echo_n "checking for PNG... " >&6; }
27917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27918 $as_echo "" >&6; }
27919     failed=0
27920     passed=0
27921     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
27922 if test "x$ac_cv_header_png_h" = x""yes; then :
27923   passed=`expr $passed + 1`
27924 else
27925   failed=`expr $failed + 1`
27926 fi
27927
27928
27929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
27930 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
27931 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
27932   $as_echo_n "(cached) " >&6
27933 else
27934   ac_check_lib_save_LIBS=$LIBS
27935 LIBS="-lpng  $LIBS"
27936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27937 /* end confdefs.h.  */
27938
27939 /* Override any GCC internal prototype to avoid an error.
27940    Use char because int might match the return type of a GCC
27941    builtin and then its argument prototype would still apply.  */
27942 #ifdef __cplusplus
27943 extern "C"
27944 #endif
27945 char png_get_io_ptr ();
27946 int
27947 main ()
27948 {
27949 return png_get_io_ptr ();
27950   ;
27951   return 0;
27952 }
27953 _ACEOF
27954 if ac_fn_c_try_link "$LINENO"; then :
27955   ac_cv_lib_png_png_get_io_ptr=yes
27956 else
27957   ac_cv_lib_png_png_get_io_ptr=no
27958 fi
27959 rm -f core conftest.err conftest.$ac_objext \
27960     conftest$ac_exeext conftest.$ac_ext
27961 LIBS=$ac_check_lib_save_LIBS
27962 fi
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
27964 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
27965 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
27966   passed=`expr $passed + 1`
27967 else
27968   failed=`expr $failed + 1`
27969 fi
27970
27971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
27972 $as_echo_n "checking if PNG package is complete... " >&6; }
27973     if test $passed -gt 0; then
27974         if test $failed -gt 0; then
27975             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27976 $as_echo "no -- some components failed test" >&6; }
27977             have_png='no (failed tests)'
27978         else
27979             PNG_LIBS='-lpng'
27980             LIBS="$PNG_LIBS $LIBS"
27981
27982 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
27983
27984             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27985 $as_echo "yes" >&6; }
27986             have_png='yes'
27987         fi
27988     else
27989         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27990 $as_echo "no" >&6; }
27991     fi
27992 fi
27993  if test "$have_png" = 'yes'; then
27994   PNG_DELEGATE_TRUE=
27995   PNG_DELEGATE_FALSE='#'
27996 else
27997   PNG_DELEGATE_TRUE='#'
27998   PNG_DELEGATE_FALSE=
27999 fi
28000
28001
28002
28003
28004 #
28005 # Check for RSVG delegate library.
28006 #
28007
28008 # Check whether --with-rsvg was given.
28009 if test "${with_rsvg+set}" = set; then :
28010   withval=$with_rsvg; with_rsvg=$withval
28011 else
28012   with_rsvg=$have_x
28013 fi
28014
28015
28016 if test "$with_rsvg" != 'yes'; then
28017     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28018 fi
28019
28020 have_rsvg='no'
28021 have_cairo='no'
28022 RSVG_CFLAGS=""
28023 RSVG_LIBS=""
28024 RSVG_PKG=""
28025 if test "x$with_rsvg" = "xyes"; then
28026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28027 $as_echo "-------------------------------------------------------------" >&6; }
28028
28029 pkg_failed=no
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28031 $as_echo_n "checking for RSVG... " >&6; }
28032
28033 if test -n "$RSVG_CFLAGS"; then
28034     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28035  elif test -n "$PKG_CONFIG"; then
28036     if test -n "$PKG_CONFIG" && \
28037     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28038   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28039   ac_status=$?
28040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28041   test $ac_status = 0; }; then
28042   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28043 else
28044   pkg_failed=yes
28045 fi
28046  else
28047     pkg_failed=untried
28048 fi
28049 if test -n "$RSVG_LIBS"; then
28050     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28051  elif test -n "$PKG_CONFIG"; then
28052     if test -n "$PKG_CONFIG" && \
28053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28054   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28055   ac_status=$?
28056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28057   test $ac_status = 0; }; then
28058   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28059 else
28060   pkg_failed=yes
28061 fi
28062  else
28063     pkg_failed=untried
28064 fi
28065
28066
28067
28068 if test $pkg_failed = yes; then
28069
28070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28071         _pkg_short_errors_supported=yes
28072 else
28073         _pkg_short_errors_supported=no
28074 fi
28075         if test $_pkg_short_errors_supported = yes; then
28076                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28077         else
28078                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28079         fi
28080         # Put the nasty error message in config.log where it belongs
28081         echo "$RSVG_PKG_ERRORS" >&5
28082
28083         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28084 $as_echo "no" >&6; }
28085                 have_rsvg=no
28086 elif test $pkg_failed = untried; then
28087         have_rsvg=no
28088 else
28089         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28090         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28092 $as_echo "yes" >&6; }
28093         have_rsvg=yes
28094 fi
28095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28096 $as_echo "" >&6; }
28097
28098 pkg_failed=no
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28100 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28101
28102 if test -n "$CAIRO_SVG_CFLAGS"; then
28103     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28104  elif test -n "$PKG_CONFIG"; then
28105     if test -n "$PKG_CONFIG" && \
28106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28107   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28108   ac_status=$?
28109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28110   test $ac_status = 0; }; then
28111   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28112 else
28113   pkg_failed=yes
28114 fi
28115  else
28116     pkg_failed=untried
28117 fi
28118 if test -n "$CAIRO_SVG_LIBS"; then
28119     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28120  elif test -n "$PKG_CONFIG"; then
28121     if test -n "$PKG_CONFIG" && \
28122     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28123   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28124   ac_status=$?
28125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28126   test $ac_status = 0; }; then
28127   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28128 else
28129   pkg_failed=yes
28130 fi
28131  else
28132     pkg_failed=untried
28133 fi
28134
28135
28136
28137 if test $pkg_failed = yes; then
28138
28139 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28140         _pkg_short_errors_supported=yes
28141 else
28142         _pkg_short_errors_supported=no
28143 fi
28144         if test $_pkg_short_errors_supported = yes; then
28145                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28146         else
28147                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28148         fi
28149         # Put the nasty error message in config.log where it belongs
28150         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28151
28152         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28153 $as_echo "no" >&6; }
28154                 have_cairo=no
28155 elif test $pkg_failed = untried; then
28156         have_cairo=no
28157 else
28158         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28159         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28160         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28161 $as_echo "yes" >&6; }
28162         have_cairo=yes
28163 fi
28164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28165 $as_echo "" >&6; }
28166 fi
28167
28168 if test "$have_rsvg" = 'yes'; then
28169
28170 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28171
28172     if test "$with_modules" = 'no'; then
28173         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28174     fi
28175 fi
28176
28177 if test "$have_cairo" = 'yes'; then
28178
28179 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28180
28181     if test "$with_modules" = 'no'; then
28182         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28183     fi
28184 fi
28185
28186  if test "$have_rsvg" = 'yes'; then
28187   RSVG_DELEGATE_TRUE=
28188   RSVG_DELEGATE_FALSE='#'
28189 else
28190   RSVG_DELEGATE_TRUE='#'
28191   RSVG_DELEGATE_FALSE=
28192 fi
28193
28194  if test "$have_cairo" = 'yes'; then
28195   CAIRO_DELEGATE_TRUE=
28196   CAIRO_DELEGATE_FALSE='#'
28197 else
28198   CAIRO_DELEGATE_TRUE='#'
28199   CAIRO_DELEGATE_FALSE=
28200 fi
28201
28202
28203
28204
28205
28206 #
28207 # Check for TIFF delegate library.
28208 #
28209
28210 # Check whether --with-tiff was given.
28211 if test "${with_tiff+set}" = set; then :
28212   withval=$with_tiff; with_tiff=$withval
28213 else
28214   with_tiff='yes'
28215 fi
28216
28217
28218 if test "$with_tiff" != 'yes'; then
28219     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28220 fi
28221
28222 have_tiff='no'
28223 TIFF_LIBS=''
28224 if test "$with_tiff" != 'no'; then
28225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28226 $as_echo "-------------------------------------------------------------" >&6; }
28227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28228 $as_echo_n "checking for TIFF... " >&6; }
28229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28230 $as_echo "" >&6; }
28231     failed=0
28232     passed=0
28233     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28234 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28235   passed=`expr $passed + 1`
28236 else
28237   failed=`expr $failed + 1`
28238 fi
28239
28240
28241     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28242 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28243   passed=`expr $passed + 1`
28244 else
28245   failed=`expr $failed + 1`
28246 fi
28247
28248
28249     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28250 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28251 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28252   $as_echo_n "(cached) " >&6
28253 else
28254   ac_check_lib_save_LIBS=$LIBS
28255 LIBS="-ltiff  $LIBS"
28256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28257 /* end confdefs.h.  */
28258
28259 /* Override any GCC internal prototype to avoid an error.
28260    Use char because int might match the return type of a GCC
28261    builtin and then its argument prototype would still apply.  */
28262 #ifdef __cplusplus
28263 extern "C"
28264 #endif
28265 char TIFFOpen ();
28266 int
28267 main ()
28268 {
28269 return TIFFOpen ();
28270   ;
28271   return 0;
28272 }
28273 _ACEOF
28274 if ac_fn_c_try_link "$LINENO"; then :
28275   ac_cv_lib_tiff_TIFFOpen=yes
28276 else
28277   ac_cv_lib_tiff_TIFFOpen=no
28278 fi
28279 rm -f core conftest.err conftest.$ac_objext \
28280     conftest$ac_exeext conftest.$ac_ext
28281 LIBS=$ac_check_lib_save_LIBS
28282 fi
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28284 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28285 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28286   passed=`expr $passed + 1`
28287 else
28288   failed=`expr $failed + 1`
28289 fi
28290
28291     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28292 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28293 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28294   $as_echo_n "(cached) " >&6
28295 else
28296   ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-ltiff  $LIBS"
28298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28299 /* end confdefs.h.  */
28300
28301 /* Override any GCC internal prototype to avoid an error.
28302    Use char because int might match the return type of a GCC
28303    builtin and then its argument prototype would still apply.  */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 char TIFFClientOpen ();
28308 int
28309 main ()
28310 {
28311 return TIFFClientOpen ();
28312   ;
28313   return 0;
28314 }
28315 _ACEOF
28316 if ac_fn_c_try_link "$LINENO"; then :
28317   ac_cv_lib_tiff_TIFFClientOpen=yes
28318 else
28319   ac_cv_lib_tiff_TIFFClientOpen=no
28320 fi
28321 rm -f core conftest.err conftest.$ac_objext \
28322     conftest$ac_exeext conftest.$ac_ext
28323 LIBS=$ac_check_lib_save_LIBS
28324 fi
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28326 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28327 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28328   passed=`expr $passed + 1`
28329 else
28330   failed=`expr $failed + 1`
28331 fi
28332
28333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28334 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28335 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28336   $as_echo_n "(cached) " >&6
28337 else
28338   ac_check_lib_save_LIBS=$LIBS
28339 LIBS="-ltiff  $LIBS"
28340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28341 /* end confdefs.h.  */
28342
28343 /* Override any GCC internal prototype to avoid an error.
28344    Use char because int might match the return type of a GCC
28345    builtin and then its argument prototype would still apply.  */
28346 #ifdef __cplusplus
28347 extern "C"
28348 #endif
28349 char TIFFIsByteSwapped ();
28350 int
28351 main ()
28352 {
28353 return TIFFIsByteSwapped ();
28354   ;
28355   return 0;
28356 }
28357 _ACEOF
28358 if ac_fn_c_try_link "$LINENO"; then :
28359   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28360 else
28361   ac_cv_lib_tiff_TIFFIsByteSwapped=no
28362 fi
28363 rm -f core conftest.err conftest.$ac_objext \
28364     conftest$ac_exeext conftest.$ac_ext
28365 LIBS=$ac_check_lib_save_LIBS
28366 fi
28367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28368 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28369 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28370   passed=`expr $passed + 1`
28371 else
28372   failed=`expr $failed + 1`
28373 fi
28374
28375     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28376 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28377 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28378   $as_echo_n "(cached) " >&6
28379 else
28380   ac_check_lib_save_LIBS=$LIBS
28381 LIBS="-ltiff  $LIBS"
28382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28383 /* end confdefs.h.  */
28384
28385 /* Override any GCC internal prototype to avoid an error.
28386    Use char because int might match the return type of a GCC
28387    builtin and then its argument prototype would still apply.  */
28388 #ifdef __cplusplus
28389 extern "C"
28390 #endif
28391 char TIFFReadRGBATile ();
28392 int
28393 main ()
28394 {
28395 return TIFFReadRGBATile ();
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 if ac_fn_c_try_link "$LINENO"; then :
28401   ac_cv_lib_tiff_TIFFReadRGBATile=yes
28402 else
28403   ac_cv_lib_tiff_TIFFReadRGBATile=no
28404 fi
28405 rm -f core conftest.err conftest.$ac_objext \
28406     conftest$ac_exeext conftest.$ac_ext
28407 LIBS=$ac_check_lib_save_LIBS
28408 fi
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28410 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28411 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28412   passed=`expr $passed + 1`
28413 else
28414   failed=`expr $failed + 1`
28415 fi
28416
28417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28418 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28419 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28420   $as_echo_n "(cached) " >&6
28421 else
28422   ac_check_lib_save_LIBS=$LIBS
28423 LIBS="-ltiff  $LIBS"
28424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h.  */
28426
28427 /* Override any GCC internal prototype to avoid an error.
28428    Use char because int might match the return type of a GCC
28429    builtin and then its argument prototype would still apply.  */
28430 #ifdef __cplusplus
28431 extern "C"
28432 #endif
28433 char TIFFReadRGBAStrip ();
28434 int
28435 main ()
28436 {
28437 return TIFFReadRGBAStrip ();
28438   ;
28439   return 0;
28440 }
28441 _ACEOF
28442 if ac_fn_c_try_link "$LINENO"; then :
28443   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28444 else
28445   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28446 fi
28447 rm -f core conftest.err conftest.$ac_objext \
28448     conftest$ac_exeext conftest.$ac_ext
28449 LIBS=$ac_check_lib_save_LIBS
28450 fi
28451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28452 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28453 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28454   passed=`expr $passed + 1`
28455 else
28456   failed=`expr $failed + 1`
28457 fi
28458
28459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28460 $as_echo_n "checking if TIFF package is complete... " >&6; }
28461     if test $passed -gt 0; then
28462         if test $failed -gt 0; then
28463             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28464 $as_echo "no -- some components failed test" >&6; }
28465             have_tiff='no (failed tests)'
28466         else
28467             TIFF_LIBS='-ltiff'
28468             LIBS="$TIFF_LIBS $LIBS"
28469
28470 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28471
28472             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28474             have_tiff='yes'
28475             for ac_header in tiffconf.h
28476 do :
28477   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28478 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28479   cat >>confdefs.h <<_ACEOF
28480 #define HAVE_TIFFCONF_H 1
28481 _ACEOF
28482
28483 fi
28484
28485 done
28486
28487             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28488               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28489               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28490 do :
28491   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28492 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28493 eval as_val=\$$as_ac_var
28494    if test "x$as_val" = x""yes; then :
28495   cat >>confdefs.h <<_ACEOF
28496 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28497 _ACEOF
28498
28499 fi
28500 done
28501
28502         fi
28503     else
28504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28506     fi
28507 fi
28508  if test "$have_tiff" = 'yes'; then
28509   TIFF_DELEGATE_TRUE=
28510   TIFF_DELEGATE_FALSE='#'
28511 else
28512   TIFF_DELEGATE_TRUE='#'
28513   TIFF_DELEGATE_FALSE=
28514 fi
28515
28516
28517
28518
28519 #
28520 # Set Windows font directory.
28521 #
28522
28523 # Check whether --with-windows-font-dir was given.
28524 if test "${with_windows_font_dir+set}" = set; then :
28525   withval=$with_windows_font_dir; with_windows_font_dir=$withval
28526 else
28527   with_windows_font_dir=''
28528 fi
28529
28530 if test "$with_windows_font_dir" != '' ; then
28531     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
28532 fi
28533
28534
28535 #
28536 # Check for WMF delegate library.
28537 #
28538
28539 # Check whether --with-wmf was given.
28540 if test "${with_wmf+set}" = set; then :
28541   withval=$with_wmf; with_wmf=$withval
28542 else
28543   with_wmf='yes'
28544 fi
28545
28546
28547 if test "$with_wmf" != 'yes'; then
28548     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
28549 fi
28550
28551 have_wmf='no'
28552 WMF_LIBS=''
28553 if test "$with_wmf" != 'no'; then
28554     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28555 $as_echo "-------------------------------------------------------------" >&6; }
28556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
28557 $as_echo_n "checking for WMF... " >&6; }
28558     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28559 $as_echo "" >&6; }
28560     failed=0
28561     passed=0
28562     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
28563 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
28564   passed=`expr $passed + 1`
28565 else
28566   failed=`expr $failed + 1`
28567 fi
28568
28569
28570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
28571 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
28572 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
28573   $as_echo_n "(cached) " >&6
28574 else
28575   ac_check_lib_save_LIBS=$LIBS
28576 LIBS="-lwmf "-lwmflite" $LIBS"
28577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28578 /* end confdefs.h.  */
28579
28580 /* Override any GCC internal prototype to avoid an error.
28581    Use char because int might match the return type of a GCC
28582    builtin and then its argument prototype would still apply.  */
28583 #ifdef __cplusplus
28584 extern "C"
28585 #endif
28586 char wmf_eps_function ();
28587 int
28588 main ()
28589 {
28590 return wmf_eps_function ();
28591   ;
28592   return 0;
28593 }
28594 _ACEOF
28595 if ac_fn_c_try_link "$LINENO"; then :
28596   ac_cv_lib_wmf_wmf_eps_function=yes
28597 else
28598   ac_cv_lib_wmf_wmf_eps_function=no
28599 fi
28600 rm -f core conftest.err conftest.$ac_objext \
28601     conftest$ac_exeext conftest.$ac_ext
28602 LIBS=$ac_check_lib_save_LIBS
28603 fi
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
28605 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
28606 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
28607   passed=`expr $passed + 1`
28608 else
28609   failed=`expr $failed + 1`
28610 fi
28611
28612     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
28613 $as_echo_n "checking if WMF package is complete... " >&6; }
28614     if test $passed -gt 0; then
28615         if test $failed -gt 0; then
28616             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28617 $as_echo "no -- some components failed test" >&6; }
28618             have_wmf='no (failed tests)'
28619         else
28620             WMF_LIBS='-lwmf -lwmflite'
28621             LIBS="$WMF_LIBS $LIBS"
28622
28623 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
28624
28625             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28626 $as_echo "yes" >&6; }
28627             have_wmf='yes'
28628         fi
28629     else
28630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28631 $as_echo "no" >&6; }
28632     fi
28633 fi
28634  if test "$have_wmf" = 'yes'; then
28635   WMF_DELEGATE_TRUE=
28636   WMF_DELEGATE_FALSE='#'
28637 else
28638   WMF_DELEGATE_TRUE='#'
28639   WMF_DELEGATE_FALSE=
28640 fi
28641
28642
28643
28644
28645
28646
28647 #
28648 # Check for XML delegate library.
28649 #
28650
28651 # Check whether --with-xml was given.
28652 if test "${with_xml+set}" = set; then :
28653   withval=$with_xml; with_xml=$withval
28654 else
28655   with_xml=$have_x
28656 fi
28657
28658
28659 if test "$with_xml" != 'yes' ; then
28660     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
28661 fi
28662
28663 have_xml='no'
28664 XML_LIBS=''
28665 if test "$with_xml" != 'no'; then
28666     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28667 $as_echo "-------------------------------------------------------------" >&6; }
28668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
28669 $as_echo_n "checking for XML... " >&6; }
28670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28671 $as_echo "" >&6; }
28672     PERSIST_LDFLAGS=$LDFLAGS
28673     PERSIST_CPPFLAGS=$CPPFLAGS
28674     xml2_config=''
28675     for ac_prog in xml2-config
28676 do
28677   # Extract the first word of "$ac_prog", so it can be a program name with args.
28678 set dummy $ac_prog; ac_word=$2
28679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28680 $as_echo_n "checking for $ac_word... " >&6; }
28681 if test "${ac_cv_prog_xml2_config+set}" = set; then :
28682   $as_echo_n "(cached) " >&6
28683 else
28684   if test -n "$xml2_config"; then
28685   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
28686 else
28687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28688 for as_dir in $PATH
28689 do
28690   IFS=$as_save_IFS
28691   test -z "$as_dir" && as_dir=.
28692     for ac_exec_ext in '' $ac_executable_extensions; do
28693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28694     ac_cv_prog_xml2_config="$ac_prog"
28695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28696     break 2
28697   fi
28698 done
28699   done
28700 IFS=$as_save_IFS
28701
28702 fi
28703 fi
28704 xml2_config=$ac_cv_prog_xml2_config
28705 if test -n "$xml2_config"; then
28706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
28707 $as_echo "$xml2_config" >&6; }
28708 else
28709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28710 $as_echo "no" >&6; }
28711 fi
28712
28713
28714   test -n "$xml2_config" && break
28715 done
28716     if test -n "$xml2_config"; then
28717         # Debian installs libxml headers under /usr/include/libxml2/libxml with
28718         # the shared library installed under /usr/lib, whereas the package
28719         # installs itself under $prefix/libxml and $prefix/lib.
28720         xml2_prefix=`xml2-config --prefix`
28721         if test -d "${xml2_prefix}/include/libxml2"; then
28722             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
28723         fi
28724         if test "${xml2_prefix}" != '/usr'; then
28725             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
28726         fi
28727     fi
28728     failed=0
28729     passed=0
28730     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
28731 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
28732   passed=`expr $passed + 1`
28733 else
28734   failed=`expr $failed + 1`
28735 fi
28736
28737
28738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
28739 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
28740 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
28741   $as_echo_n "(cached) " >&6
28742 else
28743   ac_check_lib_save_LIBS=$LIBS
28744 LIBS="-lxml2  $LIBS"
28745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28746 /* end confdefs.h.  */
28747
28748 /* Override any GCC internal prototype to avoid an error.
28749    Use char because int might match the return type of a GCC
28750    builtin and then its argument prototype would still apply.  */
28751 #ifdef __cplusplus
28752 extern "C"
28753 #endif
28754 char xmlParseExternalEntity ();
28755 int
28756 main ()
28757 {
28758 return xmlParseExternalEntity ();
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 if ac_fn_c_try_link "$LINENO"; then :
28764   ac_cv_lib_xml2_xmlParseExternalEntity=yes
28765 else
28766   ac_cv_lib_xml2_xmlParseExternalEntity=no
28767 fi
28768 rm -f core conftest.err conftest.$ac_objext \
28769     conftest$ac_exeext conftest.$ac_ext
28770 LIBS=$ac_check_lib_save_LIBS
28771 fi
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
28773 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
28774 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
28775   passed=`expr $passed + 1`
28776 else
28777   failed=`expr $failed + 1`
28778 fi
28779
28780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
28781 $as_echo_n "checking if XML package is complete... " >&6; }
28782     if test $passed -gt 0; then
28783         if test $failed -gt 0; then
28784             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28785 $as_echo "no -- some components failed test" >&6; }
28786             have_xml='no (failed tests)'
28787             LDFLAGS="$PERSIST_LDFLAGS"
28788             CPPFLAGS="$PERSIST_CPPFLAGS"
28789         else
28790             XML_LIBS='-lxml2'
28791             LIBS="$XML_LIBS $LIBS"
28792
28793 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
28794
28795             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28796 $as_echo "yes" >&6; }
28797             have_xml='yes'
28798         fi
28799     else
28800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28801 $as_echo "no" >&6; }
28802     fi
28803 fi
28804  if test "$have_xml" = 'yes'; then
28805   XML_DELEGATE_TRUE=
28806   XML_DELEGATE_FALSE='#'
28807 else
28808   XML_DELEGATE_TRUE='#'
28809   XML_DELEGATE_FALSE=
28810 fi
28811
28812
28813
28814
28815 # Substitute compiler name to build/link PerlMagick
28816 #
28817
28818
28819 #
28820 # Configure install Paths
28821 #
28822
28823 # Subdirectory under lib to place ImageMagick lib files
28824 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28825
28826 cat >>confdefs.h <<_ACEOF
28827 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
28828 _ACEOF
28829
28830
28831 # Path to ImageMagick bin directory
28832 EXECUTABLE_PATH="${BIN_DIR}"
28833 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
28834 case "${build_os}" in
28835   mingw* )
28836     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
28837     ;;
28838 esac
28839
28840 cat >>confdefs.h <<_ACEOF
28841 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
28842 _ACEOF
28843
28844
28845
28846 # Path to ImageMagick lib
28847 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
28848 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
28849 case "${build_os}" in
28850   mingw* )
28851     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
28852     ;;
28853 esac
28854
28855 cat >>confdefs.h <<_ACEOF
28856 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
28857 _ACEOF
28858
28859
28860
28861 # Subdirectory under lib to place ImageMagick configuration files
28862 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28863
28864 cat >>confdefs.h <<_ACEOF
28865 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
28866 _ACEOF
28867
28868 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28869 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
28870 case "${build_os}" in
28871   mingw* )
28872     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
28873     ;;
28874 esac
28875
28876 cat >>confdefs.h <<_ACEOF
28877 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
28878 _ACEOF
28879
28880
28881
28882 #
28883 # Subdirectory under lib to place ImageMagick coder module files
28884 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
28885
28886 cat >>confdefs.h <<_ACEOF
28887 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
28888 _ACEOF
28889
28890 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
28891 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
28892 case "${build_os}" in
28893   mingw* )
28894     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
28895     ;;
28896 esac
28897
28898 cat >>confdefs.h <<_ACEOF
28899 #define CODER_PATH "$DEFINE_CODER_PATH"
28900 _ACEOF
28901
28902
28903
28904 #
28905 # Subdirectory under lib to place ImageMagick filter module files
28906 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
28907
28908 cat >>confdefs.h <<_ACEOF
28909 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
28910 _ACEOF
28911
28912 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
28913 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
28914 case "${build_os}" in
28915   mingw* )
28916     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
28917     ;;
28918 esac
28919
28920 cat >>confdefs.h <<_ACEOF
28921 #define FILTER_PATH "$DEFINE_FILTER_PATH"
28922 _ACEOF
28923
28924
28925
28926 #
28927 # Path to ImageMagick documentation files
28928 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28929 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28930 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28931 case "${build_os}" in
28932   mingw* )
28933     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28934     ;;
28935 esac
28936
28937 cat >>confdefs.h <<_ACEOF
28938 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28939 _ACEOF
28940
28941
28942
28943 #
28944 # Path to ImageMagick share files
28945 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28946 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28947 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28948 case "${build_os}" in
28949   mingw* )
28950     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28951     ;;
28952 esac
28953
28954 cat >>confdefs.h <<_ACEOF
28955 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28956 _ACEOF
28957
28958
28959
28960 # Subdirectory under share to place ImageMagick configuration files
28961 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28962
28963 cat >>confdefs.h <<_ACEOF
28964 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28965 _ACEOF
28966
28967 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28968 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28969 case "${build_os}" in
28970   mingw* )
28971     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28972     ;;
28973 esac
28974
28975 cat >>confdefs.h <<_ACEOF
28976 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28977 _ACEOF
28978
28979
28980
28981 #
28982 # program_transform_name is formed for use in a Makefile, so create a
28983 # modified version for use in a shell script.
28984 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28985
28986 # Default delegate definitions
28987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28988 $as_echo "-------------------------------------------------------------" >&6; }
28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28990 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28992 $as_echo "" >&6; }
28993 AutotraceDecodeDelegateDefault='autotrace'
28994 AVIDecodeDelegateDefault='mplayer'
28995 BlenderDecodeDelegateDefault='blender'
28996 BZIPDelegateDefault='bzip2'
28997 BrowseDelegateDefault='xdg-open'
28998 CGMDecodeDelegateDefault='ralcgm'
28999 CatDelegateDefault='cat'
29000 DNGDecodeDelegateDefault='ufraw-batch'
29001 GVCDecodeDelegateDefault='dot'
29002 DVIDecodeDelegateDefault='dvips'
29003 EchoDelegateDefault='echo'
29004 EditorDelegateDefault='xterm'
29005 FIGDecodeDelegateDefault='fig2dev'
29006 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29007 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29008 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29009 GnuplotDecodeDelegateDefault='gnuplot'
29010 HDRDecodeDelegateDefault='ra_pfm'
29011 HPGLDecodeDelegateDefault='hp2xx'
29012 HTMLDecodeDelegateDefault='html2ps'
29013 ILBMDecodeDelegateDefault='ilbmtoppm'
29014 ILBMEncodeDelegateDefault='ppmtoilbm'
29015 LPDelegateDefault='lp'
29016 LPRDelegateDefault='lpr'
29017 LZWDecodeDelegateDefault='uncompress'
29018 LZWEncodeDelegateDefault='compress'
29019 LaunchDelegateDefault='gimp'
29020 MANDelegateDefault='groff'
29021 MPEGDecodeDelegateDefault='ffmpeg'
29022 MPEGEncodeDelegateDefault='ffmpeg'
29023 MVDelegateDefault='mv'
29024 PCLDelegateDefault='pcl6'
29025 PGPDecodeDelegateDefault='pgpv'
29026 POVDelegateDefault='povray'
29027 if test "$native_win32_build" = 'yes'; then
29028     PSDelegateDefault='gswin32c'
29029 elif test "$gslib_framework" = 'yes'; then
29030     PSDelegateDefault='gsc'
29031 else
29032     PSDelegateDefault='gs'
29033 fi
29034 RLEEncodeDelegateDefault='rawtorle'
29035 RMDelegateDefault='rm'
29036 RSVGDecodeDelegateDefault='rsvg'
29037 SCANDecodeDelegateDefault='scanimage'
29038 TXTDelegateDefault='enscript'
29039 WMFDecodeDelegateDefault='wmf2eps'
29040 WWWDecodeDelegateDefault='curl'
29041 XPSDelegateDefault='gxps'
29042 ZipDelegateDefault='gzip'
29043
29044 # Search for delegates
29045 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29046 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29048 $as_echo_n "checking for $ac_word... " >&6; }
29049 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29050   $as_echo_n "(cached) " >&6
29051 else
29052   case $AutotraceDecodeDelegate in
29053   [\\/]* | ?:[\\/]*)
29054   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29055   ;;
29056   *)
29057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29058 for as_dir in $PATH
29059 do
29060   IFS=$as_save_IFS
29061   test -z "$as_dir" && as_dir=.
29062     for ac_exec_ext in '' $ac_executable_extensions; do
29063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29064     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29066     break 2
29067   fi
29068 done
29069   done
29070 IFS=$as_save_IFS
29071
29072   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29073   ;;
29074 esac
29075 fi
29076 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29077 if test -n "$AutotraceDecodeDelegate"; then
29078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29079 $as_echo "$AutotraceDecodeDelegate" >&6; }
29080 else
29081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29082 $as_echo "no" >&6; }
29083 fi
29084
29085
29086 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29087 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29089 $as_echo_n "checking for $ac_word... " >&6; }
29090 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29091   $as_echo_n "(cached) " >&6
29092 else
29093   case $AVIDecodeDelegate in
29094   [\\/]* | ?:[\\/]*)
29095   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29096   ;;
29097   *)
29098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29099 for as_dir in $PATH
29100 do
29101   IFS=$as_save_IFS
29102   test -z "$as_dir" && as_dir=.
29103     for ac_exec_ext in '' $ac_executable_extensions; do
29104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29105     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29107     break 2
29108   fi
29109 done
29110   done
29111 IFS=$as_save_IFS
29112
29113   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29114   ;;
29115 esac
29116 fi
29117 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29118 if test -n "$AVIDecodeDelegate"; then
29119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29120 $as_echo "$AVIDecodeDelegate" >&6; }
29121 else
29122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29123 $as_echo "no" >&6; }
29124 fi
29125
29126
29127 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29128 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29130 $as_echo_n "checking for $ac_word... " >&6; }
29131 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29132   $as_echo_n "(cached) " >&6
29133 else
29134   case $BlenderDecodeDelegate in
29135   [\\/]* | ?:[\\/]*)
29136   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29137   ;;
29138   *)
29139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29140 for as_dir in $PATH
29141 do
29142   IFS=$as_save_IFS
29143   test -z "$as_dir" && as_dir=.
29144     for ac_exec_ext in '' $ac_executable_extensions; do
29145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29146     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29148     break 2
29149   fi
29150 done
29151   done
29152 IFS=$as_save_IFS
29153
29154   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29155   ;;
29156 esac
29157 fi
29158 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29159 if test -n "$BlenderDecodeDelegate"; then
29160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29161 $as_echo "$BlenderDecodeDelegate" >&6; }
29162 else
29163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29164 $as_echo "no" >&6; }
29165 fi
29166
29167
29168 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29169 set dummy "$BZIPDelegateDefault"; ac_word=$2
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29171 $as_echo_n "checking for $ac_word... " >&6; }
29172 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29173   $as_echo_n "(cached) " >&6
29174 else
29175   case $BZIPDelegate in
29176   [\\/]* | ?:[\\/]*)
29177   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29178   ;;
29179   *)
29180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29181 for as_dir in $PATH
29182 do
29183   IFS=$as_save_IFS
29184   test -z "$as_dir" && as_dir=.
29185     for ac_exec_ext in '' $ac_executable_extensions; do
29186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29187     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29189     break 2
29190   fi
29191 done
29192   done
29193 IFS=$as_save_IFS
29194
29195   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29196   ;;
29197 esac
29198 fi
29199 BZIPDelegate=$ac_cv_path_BZIPDelegate
29200 if test -n "$BZIPDelegate"; then
29201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29202 $as_echo "$BZIPDelegate" >&6; }
29203 else
29204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29205 $as_echo "no" >&6; }
29206 fi
29207
29208
29209 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29210 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29212 $as_echo_n "checking for $ac_word... " >&6; }
29213 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29214   $as_echo_n "(cached) " >&6
29215 else
29216   case $BrowseDelegate in
29217   [\\/]* | ?:[\\/]*)
29218   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29219   ;;
29220   *)
29221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29222 for as_dir in $PATH
29223 do
29224   IFS=$as_save_IFS
29225   test -z "$as_dir" && as_dir=.
29226     for ac_exec_ext in '' $ac_executable_extensions; do
29227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29228     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29230     break 2
29231   fi
29232 done
29233   done
29234 IFS=$as_save_IFS
29235
29236   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29237   ;;
29238 esac
29239 fi
29240 BrowseDelegate=$ac_cv_path_BrowseDelegate
29241 if test -n "$BrowseDelegate"; then
29242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29243 $as_echo "$BrowseDelegate" >&6; }
29244 else
29245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29246 $as_echo "no" >&6; }
29247 fi
29248
29249
29250 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29251 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29253 $as_echo_n "checking for $ac_word... " >&6; }
29254 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29255   $as_echo_n "(cached) " >&6
29256 else
29257   case $CGMDecodeDelegate in
29258   [\\/]* | ?:[\\/]*)
29259   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29260   ;;
29261   *)
29262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29263 for as_dir in $PATH
29264 do
29265   IFS=$as_save_IFS
29266   test -z "$as_dir" && as_dir=.
29267     for ac_exec_ext in '' $ac_executable_extensions; do
29268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29269     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29271     break 2
29272   fi
29273 done
29274   done
29275 IFS=$as_save_IFS
29276
29277   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29278   ;;
29279 esac
29280 fi
29281 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29282 if test -n "$CGMDecodeDelegate"; then
29283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29284 $as_echo "$CGMDecodeDelegate" >&6; }
29285 else
29286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29288 fi
29289
29290
29291 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29292 set dummy "$CatDelegateDefault"; ac_word=$2
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29294 $as_echo_n "checking for $ac_word... " >&6; }
29295 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29296   $as_echo_n "(cached) " >&6
29297 else
29298   case $CatDelegate in
29299   [\\/]* | ?:[\\/]*)
29300   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29301   ;;
29302   *)
29303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29304 for as_dir in $PATH
29305 do
29306   IFS=$as_save_IFS
29307   test -z "$as_dir" && as_dir=.
29308     for ac_exec_ext in '' $ac_executable_extensions; do
29309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29310     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29312     break 2
29313   fi
29314 done
29315   done
29316 IFS=$as_save_IFS
29317
29318   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29319   ;;
29320 esac
29321 fi
29322 CatDelegate=$ac_cv_path_CatDelegate
29323 if test -n "$CatDelegate"; then
29324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29325 $as_echo "$CatDelegate" >&6; }
29326 else
29327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29328 $as_echo "no" >&6; }
29329 fi
29330
29331
29332 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29333 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29335 $as_echo_n "checking for $ac_word... " >&6; }
29336 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29337   $as_echo_n "(cached) " >&6
29338 else
29339   case $DNGDecodeDelegate in
29340   [\\/]* | ?:[\\/]*)
29341   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29342   ;;
29343   *)
29344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29345 for as_dir in $PATH
29346 do
29347   IFS=$as_save_IFS
29348   test -z "$as_dir" && as_dir=.
29349     for ac_exec_ext in '' $ac_executable_extensions; do
29350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29351     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29353     break 2
29354   fi
29355 done
29356   done
29357 IFS=$as_save_IFS
29358
29359   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29360   ;;
29361 esac
29362 fi
29363 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29364 if test -n "$DNGDecodeDelegate"; then
29365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29366 $as_echo "$DNGDecodeDelegate" >&6; }
29367 else
29368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29369 $as_echo "no" >&6; }
29370 fi
29371
29372
29373 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29374 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29376 $as_echo_n "checking for $ac_word... " >&6; }
29377 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29378   $as_echo_n "(cached) " >&6
29379 else
29380   case $GVCDecodeDelegate in
29381   [\\/]* | ?:[\\/]*)
29382   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29383   ;;
29384   *)
29385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29386 for as_dir in $PATH
29387 do
29388   IFS=$as_save_IFS
29389   test -z "$as_dir" && as_dir=.
29390     for ac_exec_ext in '' $ac_executable_extensions; do
29391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29392     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29394     break 2
29395   fi
29396 done
29397   done
29398 IFS=$as_save_IFS
29399
29400   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29401   ;;
29402 esac
29403 fi
29404 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29405 if test -n "$GVCDecodeDelegate"; then
29406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29407 $as_echo "$GVCDecodeDelegate" >&6; }
29408 else
29409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410 $as_echo "no" >&6; }
29411 fi
29412
29413
29414 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29415 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29417 $as_echo_n "checking for $ac_word... " >&6; }
29418 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29419   $as_echo_n "(cached) " >&6
29420 else
29421   case $DVIDecodeDelegate in
29422   [\\/]* | ?:[\\/]*)
29423   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29424   ;;
29425   *)
29426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29427 for as_dir in $PATH
29428 do
29429   IFS=$as_save_IFS
29430   test -z "$as_dir" && as_dir=.
29431     for ac_exec_ext in '' $ac_executable_extensions; do
29432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29433     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29435     break 2
29436   fi
29437 done
29438   done
29439 IFS=$as_save_IFS
29440
29441   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29442   ;;
29443 esac
29444 fi
29445 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29446 if test -n "$DVIDecodeDelegate"; then
29447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29448 $as_echo "$DVIDecodeDelegate" >&6; }
29449 else
29450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29451 $as_echo "no" >&6; }
29452 fi
29453
29454
29455 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29456 set dummy "$EchoDelegateDefault"; ac_word=$2
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29458 $as_echo_n "checking for $ac_word... " >&6; }
29459 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29460   $as_echo_n "(cached) " >&6
29461 else
29462   case $EchoDelegate in
29463   [\\/]* | ?:[\\/]*)
29464   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29465   ;;
29466   *)
29467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29468 for as_dir in $PATH
29469 do
29470   IFS=$as_save_IFS
29471   test -z "$as_dir" && as_dir=.
29472     for ac_exec_ext in '' $ac_executable_extensions; do
29473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29474     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29476     break 2
29477   fi
29478 done
29479   done
29480 IFS=$as_save_IFS
29481
29482   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29483   ;;
29484 esac
29485 fi
29486 EchoDelegate=$ac_cv_path_EchoDelegate
29487 if test -n "$EchoDelegate"; then
29488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29489 $as_echo "$EchoDelegate" >&6; }
29490 else
29491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29492 $as_echo "no" >&6; }
29493 fi
29494
29495
29496 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29497 set dummy "$EditorDelegateDefault"; ac_word=$2
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29499 $as_echo_n "checking for $ac_word... " >&6; }
29500 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29501   $as_echo_n "(cached) " >&6
29502 else
29503   case $EditorDelegate in
29504   [\\/]* | ?:[\\/]*)
29505   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29506   ;;
29507   *)
29508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29509 for as_dir in $PATH
29510 do
29511   IFS=$as_save_IFS
29512   test -z "$as_dir" && as_dir=.
29513     for ac_exec_ext in '' $ac_executable_extensions; do
29514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29515     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
29516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29517     break 2
29518   fi
29519 done
29520   done
29521 IFS=$as_save_IFS
29522
29523   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
29524   ;;
29525 esac
29526 fi
29527 EditorDelegate=$ac_cv_path_EditorDelegate
29528 if test -n "$EditorDelegate"; then
29529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
29530 $as_echo "$EditorDelegate" >&6; }
29531 else
29532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29533 $as_echo "no" >&6; }
29534 fi
29535
29536
29537 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
29538 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29540 $as_echo_n "checking for $ac_word... " >&6; }
29541 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
29542   $as_echo_n "(cached) " >&6
29543 else
29544   case $FIGDecodeDelegate in
29545   [\\/]* | ?:[\\/]*)
29546   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
29547   ;;
29548   *)
29549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29550 for as_dir in $PATH
29551 do
29552   IFS=$as_save_IFS
29553   test -z "$as_dir" && as_dir=.
29554     for ac_exec_ext in '' $ac_executable_extensions; do
29555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29556     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29558     break 2
29559   fi
29560 done
29561   done
29562 IFS=$as_save_IFS
29563
29564   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
29565   ;;
29566 esac
29567 fi
29568 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
29569 if test -n "$FIGDecodeDelegate"; then
29570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
29571 $as_echo "$FIGDecodeDelegate" >&6; }
29572 else
29573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29574 $as_echo "no" >&6; }
29575 fi
29576
29577
29578 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
29579 set dummy "$ConvertDelegateDefault"; ac_word=$2
29580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29581 $as_echo_n "checking for $ac_word... " >&6; }
29582 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
29583   $as_echo_n "(cached) " >&6
29584 else
29585   case $ConvertDelegate in
29586   [\\/]* | ?:[\\/]*)
29587   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
29588   ;;
29589   *)
29590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29591 for as_dir in $PATH
29592 do
29593   IFS=$as_save_IFS
29594   test -z "$as_dir" && as_dir=.
29595     for ac_exec_ext in '' $ac_executable_extensions; do
29596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29597     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
29598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29599     break 2
29600   fi
29601 done
29602   done
29603 IFS=$as_save_IFS
29604
29605   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
29606   ;;
29607 esac
29608 fi
29609 ConvertDelegate=$ac_cv_path_ConvertDelegate
29610 if test -n "$ConvertDelegate"; then
29611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
29612 $as_echo "$ConvertDelegate" >&6; }
29613 else
29614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29615 $as_echo "no" >&6; }
29616 fi
29617
29618
29619 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
29620 set dummy "$DisplayDelegateDefault"; ac_word=$2
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29622 $as_echo_n "checking for $ac_word... " >&6; }
29623 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
29624   $as_echo_n "(cached) " >&6
29625 else
29626   case $DisplayDelegate in
29627   [\\/]* | ?:[\\/]*)
29628   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
29629   ;;
29630   *)
29631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29632 for as_dir in $PATH
29633 do
29634   IFS=$as_save_IFS
29635   test -z "$as_dir" && as_dir=.
29636     for ac_exec_ext in '' $ac_executable_extensions; do
29637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29638     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
29639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29640     break 2
29641   fi
29642 done
29643   done
29644 IFS=$as_save_IFS
29645
29646   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
29647   ;;
29648 esac
29649 fi
29650 DisplayDelegate=$ac_cv_path_DisplayDelegate
29651 if test -n "$DisplayDelegate"; then
29652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
29653 $as_echo "$DisplayDelegate" >&6; }
29654 else
29655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29656 $as_echo "no" >&6; }
29657 fi
29658
29659
29660 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
29661 set dummy "$MogrifyDelegateDefault"; ac_word=$2
29662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29663 $as_echo_n "checking for $ac_word... " >&6; }
29664 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
29665   $as_echo_n "(cached) " >&6
29666 else
29667   case $MogrifyDelegate in
29668   [\\/]* | ?:[\\/]*)
29669   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
29670   ;;
29671   *)
29672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29673 for as_dir in $PATH
29674 do
29675   IFS=$as_save_IFS
29676   test -z "$as_dir" && as_dir=.
29677     for ac_exec_ext in '' $ac_executable_extensions; do
29678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29679     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
29680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29681     break 2
29682   fi
29683 done
29684   done
29685 IFS=$as_save_IFS
29686
29687   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
29688   ;;
29689 esac
29690 fi
29691 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
29692 if test -n "$MogrifyDelegate"; then
29693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
29694 $as_echo "$MogrifyDelegate" >&6; }
29695 else
29696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29697 $as_echo "no" >&6; }
29698 fi
29699
29700
29701 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
29702 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
29703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29704 $as_echo_n "checking for $ac_word... " >&6; }
29705 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
29706   $as_echo_n "(cached) " >&6
29707 else
29708   case $GnuplotDecodeDelegate in
29709   [\\/]* | ?:[\\/]*)
29710   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
29711   ;;
29712   *)
29713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29714 for as_dir in $PATH
29715 do
29716   IFS=$as_save_IFS
29717   test -z "$as_dir" && as_dir=.
29718     for ac_exec_ext in '' $ac_executable_extensions; do
29719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29720     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29722     break 2
29723   fi
29724 done
29725   done
29726 IFS=$as_save_IFS
29727
29728   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
29729   ;;
29730 esac
29731 fi
29732 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
29733 if test -n "$GnuplotDecodeDelegate"; then
29734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
29735 $as_echo "$GnuplotDecodeDelegate" >&6; }
29736 else
29737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29738 $as_echo "no" >&6; }
29739 fi
29740
29741
29742 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
29743 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29745 $as_echo_n "checking for $ac_word... " >&6; }
29746 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
29747   $as_echo_n "(cached) " >&6
29748 else
29749   case $HDRDecodeDelegate in
29750   [\\/]* | ?:[\\/]*)
29751   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
29752   ;;
29753   *)
29754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29755 for as_dir in $PATH
29756 do
29757   IFS=$as_save_IFS
29758   test -z "$as_dir" && as_dir=.
29759     for ac_exec_ext in '' $ac_executable_extensions; do
29760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29761     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29763     break 2
29764   fi
29765 done
29766   done
29767 IFS=$as_save_IFS
29768
29769   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
29770   ;;
29771 esac
29772 fi
29773 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
29774 if test -n "$HDRDecodeDelegate"; then
29775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
29776 $as_echo "$HDRDecodeDelegate" >&6; }
29777 else
29778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29779 $as_echo "no" >&6; }
29780 fi
29781
29782
29783 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
29784 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
29785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29786 $as_echo_n "checking for $ac_word... " >&6; }
29787 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
29788   $as_echo_n "(cached) " >&6
29789 else
29790   case $HPGLDecodeDelegate in
29791   [\\/]* | ?:[\\/]*)
29792   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
29793   ;;
29794   *)
29795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29796 for as_dir in $PATH
29797 do
29798   IFS=$as_save_IFS
29799   test -z "$as_dir" && as_dir=.
29800     for ac_exec_ext in '' $ac_executable_extensions; do
29801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29802     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29804     break 2
29805   fi
29806 done
29807   done
29808 IFS=$as_save_IFS
29809
29810   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
29811   ;;
29812 esac
29813 fi
29814 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
29815 if test -n "$HPGLDecodeDelegate"; then
29816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
29817 $as_echo "$HPGLDecodeDelegate" >&6; }
29818 else
29819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29820 $as_echo "no" >&6; }
29821 fi
29822
29823
29824 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
29825 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
29826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29827 $as_echo_n "checking for $ac_word... " >&6; }
29828 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
29829   $as_echo_n "(cached) " >&6
29830 else
29831   case $HTMLDecodeDelegate in
29832   [\\/]* | ?:[\\/]*)
29833   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
29834   ;;
29835   *)
29836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29837 for as_dir in $PATH
29838 do
29839   IFS=$as_save_IFS
29840   test -z "$as_dir" && as_dir=.
29841     for ac_exec_ext in '' $ac_executable_extensions; do
29842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29843     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29845     break 2
29846   fi
29847 done
29848   done
29849 IFS=$as_save_IFS
29850
29851   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
29852   ;;
29853 esac
29854 fi
29855 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
29856 if test -n "$HTMLDecodeDelegate"; then
29857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
29858 $as_echo "$HTMLDecodeDelegate" >&6; }
29859 else
29860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29861 $as_echo "no" >&6; }
29862 fi
29863
29864
29865 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
29866 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29868 $as_echo_n "checking for $ac_word... " >&6; }
29869 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
29870   $as_echo_n "(cached) " >&6
29871 else
29872   case $ILBMDecodeDelegate in
29873   [\\/]* | ?:[\\/]*)
29874   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
29875   ;;
29876   *)
29877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29878 for as_dir in $PATH
29879 do
29880   IFS=$as_save_IFS
29881   test -z "$as_dir" && as_dir=.
29882     for ac_exec_ext in '' $ac_executable_extensions; do
29883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29884     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29885     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29886     break 2
29887   fi
29888 done
29889   done
29890 IFS=$as_save_IFS
29891
29892   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
29893   ;;
29894 esac
29895 fi
29896 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
29897 if test -n "$ILBMDecodeDelegate"; then
29898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
29899 $as_echo "$ILBMDecodeDelegate" >&6; }
29900 else
29901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29902 $as_echo "no" >&6; }
29903 fi
29904
29905
29906 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
29907 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29909 $as_echo_n "checking for $ac_word... " >&6; }
29910 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
29911   $as_echo_n "(cached) " >&6
29912 else
29913   case $ILBMEncodeDelegate in
29914   [\\/]* | ?:[\\/]*)
29915   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
29916   ;;
29917   *)
29918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29919 for as_dir in $PATH
29920 do
29921   IFS=$as_save_IFS
29922   test -z "$as_dir" && as_dir=.
29923     for ac_exec_ext in '' $ac_executable_extensions; do
29924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29925     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29927     break 2
29928   fi
29929 done
29930   done
29931 IFS=$as_save_IFS
29932
29933   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29934   ;;
29935 esac
29936 fi
29937 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29938 if test -n "$ILBMEncodeDelegate"; then
29939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29940 $as_echo "$ILBMEncodeDelegate" >&6; }
29941 else
29942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29943 $as_echo "no" >&6; }
29944 fi
29945
29946
29947 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29948 set dummy "$LPDelegateDefault"; ac_word=$2
29949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29950 $as_echo_n "checking for $ac_word... " >&6; }
29951 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29952   $as_echo_n "(cached) " >&6
29953 else
29954   case $LPDelegate in
29955   [\\/]* | ?:[\\/]*)
29956   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29957   ;;
29958   *)
29959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29960 for as_dir in $PATH
29961 do
29962   IFS=$as_save_IFS
29963   test -z "$as_dir" && as_dir=.
29964     for ac_exec_ext in '' $ac_executable_extensions; do
29965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29966     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29968     break 2
29969   fi
29970 done
29971   done
29972 IFS=$as_save_IFS
29973
29974   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29975   ;;
29976 esac
29977 fi
29978 LPDelegate=$ac_cv_path_LPDelegate
29979 if test -n "$LPDelegate"; then
29980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29981 $as_echo "$LPDelegate" >&6; }
29982 else
29983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29984 $as_echo "no" >&6; }
29985 fi
29986
29987
29988 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29989 set dummy "$LPRDelegateDefault"; ac_word=$2
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29991 $as_echo_n "checking for $ac_word... " >&6; }
29992 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29993   $as_echo_n "(cached) " >&6
29994 else
29995   case $LPRDelegate in
29996   [\\/]* | ?:[\\/]*)
29997   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29998   ;;
29999   *)
30000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30001 for as_dir in $PATH
30002 do
30003   IFS=$as_save_IFS
30004   test -z "$as_dir" && as_dir=.
30005     for ac_exec_ext in '' $ac_executable_extensions; do
30006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30007     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30009     break 2
30010   fi
30011 done
30012   done
30013 IFS=$as_save_IFS
30014
30015   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30016   ;;
30017 esac
30018 fi
30019 LPRDelegate=$ac_cv_path_LPRDelegate
30020 if test -n "$LPRDelegate"; then
30021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30022 $as_echo "$LPRDelegate" >&6; }
30023 else
30024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }
30026 fi
30027
30028
30029 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30030 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30032 $as_echo_n "checking for $ac_word... " >&6; }
30033 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30034   $as_echo_n "(cached) " >&6
30035 else
30036   case $LZWDecodeDelegate in
30037   [\\/]* | ?:[\\/]*)
30038   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30039   ;;
30040   *)
30041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30042 for as_dir in $PATH
30043 do
30044   IFS=$as_save_IFS
30045   test -z "$as_dir" && as_dir=.
30046     for ac_exec_ext in '' $ac_executable_extensions; do
30047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30048     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30050     break 2
30051   fi
30052 done
30053   done
30054 IFS=$as_save_IFS
30055
30056   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30057   ;;
30058 esac
30059 fi
30060 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30061 if test -n "$LZWDecodeDelegate"; then
30062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30063 $as_echo "$LZWDecodeDelegate" >&6; }
30064 else
30065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30066 $as_echo "no" >&6; }
30067 fi
30068
30069
30070 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30071 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30073 $as_echo_n "checking for $ac_word... " >&6; }
30074 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30075   $as_echo_n "(cached) " >&6
30076 else
30077   case $LZWEncodeDelegate in
30078   [\\/]* | ?:[\\/]*)
30079   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30080   ;;
30081   *)
30082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30083 for as_dir in $PATH
30084 do
30085   IFS=$as_save_IFS
30086   test -z "$as_dir" && as_dir=.
30087     for ac_exec_ext in '' $ac_executable_extensions; do
30088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30089     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30091     break 2
30092   fi
30093 done
30094   done
30095 IFS=$as_save_IFS
30096
30097   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30098   ;;
30099 esac
30100 fi
30101 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30102 if test -n "$LZWEncodeDelegate"; then
30103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30104 $as_echo "$LZWEncodeDelegate" >&6; }
30105 else
30106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30107 $as_echo "no" >&6; }
30108 fi
30109
30110
30111 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30112 set dummy "$LaunchDelegateDefault"; ac_word=$2
30113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30114 $as_echo_n "checking for $ac_word... " >&6; }
30115 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30116   $as_echo_n "(cached) " >&6
30117 else
30118   case $LaunchDelegate in
30119   [\\/]* | ?:[\\/]*)
30120   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30121   ;;
30122   *)
30123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30124 for as_dir in $PATH
30125 do
30126   IFS=$as_save_IFS
30127   test -z "$as_dir" && as_dir=.
30128     for ac_exec_ext in '' $ac_executable_extensions; do
30129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30130     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30132     break 2
30133   fi
30134 done
30135   done
30136 IFS=$as_save_IFS
30137
30138   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30139   ;;
30140 esac
30141 fi
30142 LaunchDelegate=$ac_cv_path_LaunchDelegate
30143 if test -n "$LaunchDelegate"; then
30144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30145 $as_echo "$LaunchDelegate" >&6; }
30146 else
30147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30148 $as_echo "no" >&6; }
30149 fi
30150
30151
30152 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30153 set dummy "$MANDelegateDefault"; ac_word=$2
30154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30155 $as_echo_n "checking for $ac_word... " >&6; }
30156 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30157   $as_echo_n "(cached) " >&6
30158 else
30159   case $MANDelegate in
30160   [\\/]* | ?:[\\/]*)
30161   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30162   ;;
30163   *)
30164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30165 for as_dir in $PATH
30166 do
30167   IFS=$as_save_IFS
30168   test -z "$as_dir" && as_dir=.
30169     for ac_exec_ext in '' $ac_executable_extensions; do
30170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30171     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30173     break 2
30174   fi
30175 done
30176   done
30177 IFS=$as_save_IFS
30178
30179   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30180   ;;
30181 esac
30182 fi
30183 MANDelegate=$ac_cv_path_MANDelegate
30184 if test -n "$MANDelegate"; then
30185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30186 $as_echo "$MANDelegate" >&6; }
30187 else
30188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30189 $as_echo "no" >&6; }
30190 fi
30191
30192
30193 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30194 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30196 $as_echo_n "checking for $ac_word... " >&6; }
30197 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30198   $as_echo_n "(cached) " >&6
30199 else
30200   case $MPEGDecodeDelegate in
30201   [\\/]* | ?:[\\/]*)
30202   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30203   ;;
30204   *)
30205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30206 for as_dir in $PATH
30207 do
30208   IFS=$as_save_IFS
30209   test -z "$as_dir" && as_dir=.
30210     for ac_exec_ext in '' $ac_executable_extensions; do
30211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30212     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30214     break 2
30215   fi
30216 done
30217   done
30218 IFS=$as_save_IFS
30219
30220   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30221   ;;
30222 esac
30223 fi
30224 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30225 if test -n "$MPEGDecodeDelegate"; then
30226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30227 $as_echo "$MPEGDecodeDelegate" >&6; }
30228 else
30229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30230 $as_echo "no" >&6; }
30231 fi
30232
30233
30234 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30235 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30237 $as_echo_n "checking for $ac_word... " >&6; }
30238 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30239   $as_echo_n "(cached) " >&6
30240 else
30241   case $MPEGEncodeDelegate in
30242   [\\/]* | ?:[\\/]*)
30243   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30244   ;;
30245   *)
30246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30247 for as_dir in $PATH
30248 do
30249   IFS=$as_save_IFS
30250   test -z "$as_dir" && as_dir=.
30251     for ac_exec_ext in '' $ac_executable_extensions; do
30252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30253     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30255     break 2
30256   fi
30257 done
30258   done
30259 IFS=$as_save_IFS
30260
30261   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30262   ;;
30263 esac
30264 fi
30265 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30266 if test -n "$MPEGEncodeDelegate"; then
30267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30268 $as_echo "$MPEGEncodeDelegate" >&6; }
30269 else
30270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30271 $as_echo "no" >&6; }
30272 fi
30273
30274
30275 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30276 set dummy "$MVDelegateDefault"; ac_word=$2
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30278 $as_echo_n "checking for $ac_word... " >&6; }
30279 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30280   $as_echo_n "(cached) " >&6
30281 else
30282   case $MVDelegate in
30283   [\\/]* | ?:[\\/]*)
30284   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30285   ;;
30286   *)
30287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30288 for as_dir in $PATH
30289 do
30290   IFS=$as_save_IFS
30291   test -z "$as_dir" && as_dir=.
30292     for ac_exec_ext in '' $ac_executable_extensions; do
30293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30294     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30296     break 2
30297   fi
30298 done
30299   done
30300 IFS=$as_save_IFS
30301
30302   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30303   ;;
30304 esac
30305 fi
30306 MVDelegate=$ac_cv_path_MVDelegate
30307 if test -n "$MVDelegate"; then
30308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30309 $as_echo "$MVDelegate" >&6; }
30310 else
30311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30312 $as_echo "no" >&6; }
30313 fi
30314
30315
30316 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30317 set dummy "$PCLDelegateDefault"; ac_word=$2
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30319 $as_echo_n "checking for $ac_word... " >&6; }
30320 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30321   $as_echo_n "(cached) " >&6
30322 else
30323   case $PCLDelegate in
30324   [\\/]* | ?:[\\/]*)
30325   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30326   ;;
30327   *)
30328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30329 for as_dir in $PATH
30330 do
30331   IFS=$as_save_IFS
30332   test -z "$as_dir" && as_dir=.
30333     for ac_exec_ext in '' $ac_executable_extensions; do
30334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30335     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30337     break 2
30338   fi
30339 done
30340   done
30341 IFS=$as_save_IFS
30342
30343   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30344   ;;
30345 esac
30346 fi
30347 PCLDelegate=$ac_cv_path_PCLDelegate
30348 if test -n "$PCLDelegate"; then
30349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30350 $as_echo "$PCLDelegate" >&6; }
30351 else
30352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30353 $as_echo "no" >&6; }
30354 fi
30355
30356
30357 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30358 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30360 $as_echo_n "checking for $ac_word... " >&6; }
30361 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30362   $as_echo_n "(cached) " >&6
30363 else
30364   case $PGPDecodeDelegate in
30365   [\\/]* | ?:[\\/]*)
30366   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30367   ;;
30368   *)
30369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30370 for as_dir in $PATH
30371 do
30372   IFS=$as_save_IFS
30373   test -z "$as_dir" && as_dir=.
30374     for ac_exec_ext in '' $ac_executable_extensions; do
30375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30376     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30378     break 2
30379   fi
30380 done
30381   done
30382 IFS=$as_save_IFS
30383
30384   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30385   ;;
30386 esac
30387 fi
30388 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30389 if test -n "$PGPDecodeDelegate"; then
30390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30391 $as_echo "$PGPDecodeDelegate" >&6; }
30392 else
30393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394 $as_echo "no" >&6; }
30395 fi
30396
30397
30398 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30399 set dummy "$POVDelegateDefault"; ac_word=$2
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30401 $as_echo_n "checking for $ac_word... " >&6; }
30402 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30403   $as_echo_n "(cached) " >&6
30404 else
30405   case $POVDelegate in
30406   [\\/]* | ?:[\\/]*)
30407   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30408   ;;
30409   *)
30410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30411 for as_dir in $PATH
30412 do
30413   IFS=$as_save_IFS
30414   test -z "$as_dir" && as_dir=.
30415     for ac_exec_ext in '' $ac_executable_extensions; do
30416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30417     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30419     break 2
30420   fi
30421 done
30422   done
30423 IFS=$as_save_IFS
30424
30425   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30426   ;;
30427 esac
30428 fi
30429 POVDelegate=$ac_cv_path_POVDelegate
30430 if test -n "$POVDelegate"; then
30431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30432 $as_echo "$POVDelegate" >&6; }
30433 else
30434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30435 $as_echo "no" >&6; }
30436 fi
30437
30438
30439 for ac_prog in gsx gsc "$PSDelegateDefault"
30440 do
30441   # Extract the first word of "$ac_prog", so it can be a program name with args.
30442 set dummy $ac_prog; ac_word=$2
30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30444 $as_echo_n "checking for $ac_word... " >&6; }
30445 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30446   $as_echo_n "(cached) " >&6
30447 else
30448   case $PSDelegate in
30449   [\\/]* | ?:[\\/]*)
30450   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30451   ;;
30452   *)
30453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30454 for as_dir in $PATH
30455 do
30456   IFS=$as_save_IFS
30457   test -z "$as_dir" && as_dir=.
30458     for ac_exec_ext in '' $ac_executable_extensions; do
30459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30460     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30462     break 2
30463   fi
30464 done
30465   done
30466 IFS=$as_save_IFS
30467
30468   ;;
30469 esac
30470 fi
30471 PSDelegate=$ac_cv_path_PSDelegate
30472 if test -n "$PSDelegate"; then
30473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
30474 $as_echo "$PSDelegate" >&6; }
30475 else
30476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30477 $as_echo "no" >&6; }
30478 fi
30479
30480
30481   test -n "$PSDelegate" && break
30482 done
30483 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
30484
30485 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
30486 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30488 $as_echo_n "checking for $ac_word... " >&6; }
30489 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
30490   $as_echo_n "(cached) " >&6
30491 else
30492   case $RLEEncodeDelegate in
30493   [\\/]* | ?:[\\/]*)
30494   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
30495   ;;
30496   *)
30497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498 for as_dir in $PATH
30499 do
30500   IFS=$as_save_IFS
30501   test -z "$as_dir" && as_dir=.
30502     for ac_exec_ext in '' $ac_executable_extensions; do
30503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30506     break 2
30507   fi
30508 done
30509   done
30510 IFS=$as_save_IFS
30511
30512   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
30513   ;;
30514 esac
30515 fi
30516 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
30517 if test -n "$RLEEncodeDelegate"; then
30518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
30519 $as_echo "$RLEEncodeDelegate" >&6; }
30520 else
30521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522 $as_echo "no" >&6; }
30523 fi
30524
30525
30526 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
30527 set dummy "$RMDelegateDefault"; ac_word=$2
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30529 $as_echo_n "checking for $ac_word... " >&6; }
30530 if test "${ac_cv_path_RMDelegate+set}" = set; then :
30531   $as_echo_n "(cached) " >&6
30532 else
30533   case $RMDelegate in
30534   [\\/]* | ?:[\\/]*)
30535   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
30536   ;;
30537   *)
30538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539 for as_dir in $PATH
30540 do
30541   IFS=$as_save_IFS
30542   test -z "$as_dir" && as_dir=.
30543     for ac_exec_ext in '' $ac_executable_extensions; do
30544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
30546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30547     break 2
30548   fi
30549 done
30550   done
30551 IFS=$as_save_IFS
30552
30553   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
30554   ;;
30555 esac
30556 fi
30557 RMDelegate=$ac_cv_path_RMDelegate
30558 if test -n "$RMDelegate"; then
30559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
30560 $as_echo "$RMDelegate" >&6; }
30561 else
30562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30563 $as_echo "no" >&6; }
30564 fi
30565
30566
30567 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
30568 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30570 $as_echo_n "checking for $ac_word... " >&6; }
30571 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
30572   $as_echo_n "(cached) " >&6
30573 else
30574   case $RSVGDecodeDelegate in
30575   [\\/]* | ?:[\\/]*)
30576   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
30577   ;;
30578   *)
30579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30581 do
30582   IFS=$as_save_IFS
30583   test -z "$as_dir" && as_dir=.
30584     for ac_exec_ext in '' $ac_executable_extensions; do
30585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30588     break 2
30589   fi
30590 done
30591   done
30592 IFS=$as_save_IFS
30593
30594   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
30595   ;;
30596 esac
30597 fi
30598 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
30599 if test -n "$RSVGDecodeDelegate"; then
30600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
30601 $as_echo "$RSVGDecodeDelegate" >&6; }
30602 else
30603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604 $as_echo "no" >&6; }
30605 fi
30606
30607
30608 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
30609 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30611 $as_echo_n "checking for $ac_word... " >&6; }
30612 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
30613   $as_echo_n "(cached) " >&6
30614 else
30615   case $SCANDecodeDelegate in
30616   [\\/]* | ?:[\\/]*)
30617   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
30618   ;;
30619   *)
30620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621 for as_dir in $PATH
30622 do
30623   IFS=$as_save_IFS
30624   test -z "$as_dir" && as_dir=.
30625     for ac_exec_ext in '' $ac_executable_extensions; do
30626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30629     break 2
30630   fi
30631 done
30632   done
30633 IFS=$as_save_IFS
30634
30635   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
30636   ;;
30637 esac
30638 fi
30639 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
30640 if test -n "$SCANDecodeDelegate"; then
30641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
30642 $as_echo "$SCANDecodeDelegate" >&6; }
30643 else
30644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30646 fi
30647
30648
30649 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
30650 set dummy "$TXTDelegateDefault"; ac_word=$2
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30652 $as_echo_n "checking for $ac_word... " >&6; }
30653 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
30654   $as_echo_n "(cached) " >&6
30655 else
30656   case $TXTDelegate in
30657   [\\/]* | ?:[\\/]*)
30658   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
30659   ;;
30660   *)
30661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662 for as_dir in $PATH
30663 do
30664   IFS=$as_save_IFS
30665   test -z "$as_dir" && as_dir=.
30666     for ac_exec_ext in '' $ac_executable_extensions; do
30667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
30669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30670     break 2
30671   fi
30672 done
30673   done
30674 IFS=$as_save_IFS
30675
30676   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
30677   ;;
30678 esac
30679 fi
30680 TXTDelegate=$ac_cv_path_TXTDelegate
30681 if test -n "$TXTDelegate"; then
30682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
30683 $as_echo "$TXTDelegate" >&6; }
30684 else
30685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30687 fi
30688
30689
30690 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
30691 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30693 $as_echo_n "checking for $ac_word... " >&6; }
30694 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
30695   $as_echo_n "(cached) " >&6
30696 else
30697   case $WMFDecodeDelegate in
30698   [\\/]* | ?:[\\/]*)
30699   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
30700   ;;
30701   *)
30702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703 for as_dir in $PATH
30704 do
30705   IFS=$as_save_IFS
30706   test -z "$as_dir" && as_dir=.
30707     for ac_exec_ext in '' $ac_executable_extensions; do
30708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30711     break 2
30712   fi
30713 done
30714   done
30715 IFS=$as_save_IFS
30716
30717   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
30718   ;;
30719 esac
30720 fi
30721 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
30722 if test -n "$WMFDecodeDelegate"; then
30723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
30724 $as_echo "$WMFDecodeDelegate" >&6; }
30725 else
30726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727 $as_echo "no" >&6; }
30728 fi
30729
30730
30731 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
30732 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30734 $as_echo_n "checking for $ac_word... " >&6; }
30735 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
30736   $as_echo_n "(cached) " >&6
30737 else
30738   case $WWWDecodeDelegate in
30739   [\\/]* | ?:[\\/]*)
30740   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
30741   ;;
30742   *)
30743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30745 do
30746   IFS=$as_save_IFS
30747   test -z "$as_dir" && as_dir=.
30748     for ac_exec_ext in '' $ac_executable_extensions; do
30749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30752     break 2
30753   fi
30754 done
30755   done
30756 IFS=$as_save_IFS
30757
30758   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
30759   ;;
30760 esac
30761 fi
30762 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
30763 if test -n "$WWWDecodeDelegate"; then
30764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
30765 $as_echo "$WWWDecodeDelegate" >&6; }
30766 else
30767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30768 $as_echo "no" >&6; }
30769 fi
30770
30771
30772 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
30773 set dummy "$XPSDelegateDefault"; ac_word=$2
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775 $as_echo_n "checking for $ac_word... " >&6; }
30776 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
30777   $as_echo_n "(cached) " >&6
30778 else
30779   case $XPSDelegate in
30780   [\\/]* | ?:[\\/]*)
30781   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
30782   ;;
30783   *)
30784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785 for as_dir in $PATH
30786 do
30787   IFS=$as_save_IFS
30788   test -z "$as_dir" && as_dir=.
30789     for ac_exec_ext in '' $ac_executable_extensions; do
30790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
30792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30793     break 2
30794   fi
30795 done
30796   done
30797 IFS=$as_save_IFS
30798
30799   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
30800   ;;
30801 esac
30802 fi
30803 XPSDelegate=$ac_cv_path_XPSDelegate
30804 if test -n "$XPSDelegate"; then
30805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
30806 $as_echo "$XPSDelegate" >&6; }
30807 else
30808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809 $as_echo "no" >&6; }
30810 fi
30811
30812
30813 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
30814 set dummy "$ZipDelegateDefault"; ac_word=$2
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30816 $as_echo_n "checking for $ac_word... " >&6; }
30817 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
30818   $as_echo_n "(cached) " >&6
30819 else
30820   case $ZipDelegate in
30821   [\\/]* | ?:[\\/]*)
30822   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
30823   ;;
30824   *)
30825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826 for as_dir in $PATH
30827 do
30828   IFS=$as_save_IFS
30829   test -z "$as_dir" && as_dir=.
30830     for ac_exec_ext in '' $ac_executable_extensions; do
30831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
30833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30834     break 2
30835   fi
30836 done
30837   done
30838 IFS=$as_save_IFS
30839
30840   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
30841   ;;
30842 esac
30843 fi
30844 ZipDelegate=$ac_cv_path_ZipDelegate
30845 if test -n "$ZipDelegate"; then
30846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
30847 $as_echo "$ZipDelegate" >&6; }
30848 else
30849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30851 fi
30852
30853
30854
30855 # Prefer lpr to lp; lp needs options tacked on.
30856 if test "$LPRDelegate" != no; then
30857     PrintDelegate="$LPRDelegate"
30858 else
30859     PrintDelegate="$LPDelegate -c -s"
30860 fi
30861
30862
30863 # Installed ImageMagick utiltity paths
30864 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
30865 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
30866 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
30867
30868 # Set delegate booleans
30869 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
30870 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
30871 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
30872 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
30873 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
30874 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
30875 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
30876 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
30877 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
30878 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
30879 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
30880
30881 #
30882 # Test for font directories
30883 #
30884 type_include_files=''
30885
30886 # Dejavu fonts.
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
30888 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
30889 dejavu_font_dir=''
30890 if test "${with_dejavu_font_dir}" != 'default'; then
30891   dejavu_font_dir="${with_dejavu_font_dir}/"
30892 else
30893   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
30894     if test -f "${font_dir}DejaVuSerif.ttf"; then
30895       dejavu_font_dir="${font_dir}"
30896       break 1
30897     fi
30898   done
30899 fi
30900 if test "${dejavu_font_dir}x" != 'x'; then
30901   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
30902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
30903 $as_echo "$dejavu_font_dir" >&6; }
30904 else
30905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30906 $as_echo "not found!" >&6; };
30907 fi
30908
30909
30910 # Windows
30911 windows_font_dir=''
30912 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
30913    windows_font_dir="${with_windows_font_dir}/"
30914 fi
30915 if test "${windows_font_dir}x" != 'x'; then
30916     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
30917       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
30918     fi
30919     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
30920       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
30921     fi
30922     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
30923       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
30924     fi
30925 fi
30926 if test "${windows_font_dir}x" != 'x'; then
30927   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
30928 fi
30929
30930
30931 # Ghostscript
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
30933 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
30934 ghostscript_font_dir=''
30935 if test "${with_gs_font_dir}" != 'default'; then
30936   ghostscript_font_dir="${with_gs_font_dir}/"
30937 else
30938   if test "${native_win32_build}" = 'yes'; then
30939     # Native Windows Build
30940     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
30941       if test -f "${font_dir}a010013l.pfb"; then
30942         ghostscript_font_dir="$font_dir"
30943         break 1
30944       fi
30945     done
30946     if test "${PSDelegate}" != 'gswin32c'; then
30947       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
30948     fi
30949   else
30950     # Linux / Mac OS X / Unix Build
30951     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
30952       if test -f "${font_dir}a010013l.pfb"; then
30953         ghostscript_font_dir="${font_dir}"
30954         break 1
30955       fi
30956     done
30957     if test "${ghostscript_font_dir}x" = 'x'; then
30958       if test "$PSDelegate" != 'gs'; then
30959         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
30960       fi
30961     fi
30962   fi
30963 fi
30964 if test "${ghostscript_font_dir}x" != 'x'; then
30965   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
30966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
30967 $as_echo "$ghostscript_font_dir" >&6; }
30968 else
30969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
30970 $as_echo "not found!" >&6; };
30971 fi
30972
30973 case "${build_os}" in
30974   mingw* )
30975     PSDelegate=`$WinPathScript "$PSDelegate" 1`
30976     ;;
30977 esac
30978
30979
30980
30981 #
30982 # Handle case where user doesn't want frozen paths
30983 #
30984 if test "$with_frozenpaths" != 'yes'; then
30985   # Re-set delegate definitions to default (no paths)
30986   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
30987   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
30988   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
30989   BZIPDelegate="$BZIPDelegateDefault"
30990   BrowseDelegate="$BrowseDelegateDefault"
30991   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
30992   CatDelegate="$CatDelegateDefault"
30993   ConvertDelegate="$ConvertDelegateDefault"
30994   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
30995   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30996   EchoDelegate="$EchoDelegateDefault"
30997   EditorDelegate="$EditorDelegateDefault"
30998   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30999   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31000   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31001   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31002   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31003   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31004   LPDelegate="$LPDelegateDefault"
31005   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31006   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31007   LaunchDelegate="$LaunchDelegateDefault"
31008   MANDelegate="$MANDelegateDefault"
31009   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31010   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31011   MVDelegate="$MVDelegateDefault"
31012   MogrifyDelegate="$MogrifyDelegateDefault"
31013   PCLDelegate="$PCLDelegateDefault"
31014   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31015   POVDelegate="$POVDelegateDefault"
31016   PSDelegate="$PSDelegateDefault"
31017   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31018   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31019   RMDelegate="$RMDelegateDefault"
31020   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31021   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31022   ShowImageDelegate="$ShowImageDelegateDefault"
31023   TXTDelegate="$TXTDelegateDefault"
31024   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31025   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31026   XPSDelegate="$XPSDelegateDefault"
31027   ZipDelegate="$ZipDelegateDefault"
31028 fi
31029
31030 # Delegate substitutions
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073 #
31074 # RPM support.
31075 #
31076 RPM=''
31077 for ac_prog in gnutar gtar tar
31078 do
31079   # Extract the first word of "$ac_prog", so it can be a program name with args.
31080 set dummy $ac_prog; ac_word=$2
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31082 $as_echo_n "checking for $ac_word... " >&6; }
31083 if test "${ac_cv_prog_TAR+set}" = set; then :
31084   $as_echo_n "(cached) " >&6
31085 else
31086   if test -n "$TAR"; then
31087   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31088 else
31089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31090 for as_dir in $PATH
31091 do
31092   IFS=$as_save_IFS
31093   test -z "$as_dir" && as_dir=.
31094     for ac_exec_ext in '' $ac_executable_extensions; do
31095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31096     ac_cv_prog_TAR="$ac_prog"
31097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31098     break 2
31099   fi
31100 done
31101   done
31102 IFS=$as_save_IFS
31103
31104 fi
31105 fi
31106 TAR=$ac_cv_prog_TAR
31107 if test -n "$TAR"; then
31108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31109 $as_echo "$TAR" >&6; }
31110 else
31111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31112 $as_echo "no" >&6; }
31113 fi
31114
31115
31116   test -n "$TAR" && break
31117 done
31118
31119 for ac_prog in perl
31120 do
31121   # Extract the first word of "$ac_prog", so it can be a program name with args.
31122 set dummy $ac_prog; ac_word=$2
31123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31124 $as_echo_n "checking for $ac_word... " >&6; }
31125 if test "${ac_cv_prog_PERL+set}" = set; then :
31126   $as_echo_n "(cached) " >&6
31127 else
31128   if test -n "$PERL"; then
31129   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31130 else
31131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31132 for as_dir in $PATH
31133 do
31134   IFS=$as_save_IFS
31135   test -z "$as_dir" && as_dir=.
31136     for ac_exec_ext in '' $ac_executable_extensions; do
31137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31138     ac_cv_prog_PERL="$ac_prog"
31139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31140     break 2
31141   fi
31142 done
31143   done
31144 IFS=$as_save_IFS
31145
31146 fi
31147 fi
31148 PERL=$ac_cv_prog_PERL
31149 if test -n "$PERL"; then
31150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31151 $as_echo "$PERL" >&6; }
31152 else
31153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31154 $as_echo "no" >&6; }
31155 fi
31156
31157
31158   test -n "$PERL" && break
31159 done
31160
31161 for ac_prog in rpmbuild rpm
31162 do
31163   # Extract the first word of "$ac_prog", so it can be a program name with args.
31164 set dummy $ac_prog; ac_word=$2
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31166 $as_echo_n "checking for $ac_word... " >&6; }
31167 if test "${ac_cv_prog_RPM+set}" = set; then :
31168   $as_echo_n "(cached) " >&6
31169 else
31170   if test -n "$RPM"; then
31171   ac_cv_prog_RPM="$RPM" # Let the user override the test.
31172 else
31173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31174 for as_dir in $PATH
31175 do
31176   IFS=$as_save_IFS
31177   test -z "$as_dir" && as_dir=.
31178     for ac_exec_ext in '' $ac_executable_extensions; do
31179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31180     ac_cv_prog_RPM="$ac_prog"
31181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31182     break 2
31183   fi
31184 done
31185   done
31186 IFS=$as_save_IFS
31187
31188 fi
31189 fi
31190 RPM=$ac_cv_prog_RPM
31191 if test -n "$RPM"; then
31192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31193 $as_echo "$RPM" >&6; }
31194 else
31195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31196 $as_echo "no" >&6; }
31197 fi
31198
31199
31200   test -n "$RPM" && break
31201 done
31202
31203
31204 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31205
31206
31207 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31208
31209
31210 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31211
31212
31213 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31214
31215
31216  if test "x$RPM" != "x" ; then
31217   RPM_DELEGATE_TRUE=
31218   RPM_DELEGATE_FALSE='#'
31219 else
31220   RPM_DELEGATE_TRUE='#'
31221   RPM_DELEGATE_FALSE=
31222 fi
31223
31224
31225 #
31226 # 7ZIP support (http://p7zip.sourceforge.net/)
31227 #
31228 P7ZIP=''
31229 for ac_prog in 7za
31230 do
31231   # Extract the first word of "$ac_prog", so it can be a program name with args.
31232 set dummy $ac_prog; ac_word=$2
31233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31234 $as_echo_n "checking for $ac_word... " >&6; }
31235 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31236   $as_echo_n "(cached) " >&6
31237 else
31238   if test -n "$P7ZIP"; then
31239   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31240 else
31241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31242 for as_dir in $PATH
31243 do
31244   IFS=$as_save_IFS
31245   test -z "$as_dir" && as_dir=.
31246     for ac_exec_ext in '' $ac_executable_extensions; do
31247   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31248     ac_cv_prog_P7ZIP="$ac_prog"
31249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31250     break 2
31251   fi
31252 done
31253   done
31254 IFS=$as_save_IFS
31255
31256 fi
31257 fi
31258 P7ZIP=$ac_cv_prog_P7ZIP
31259 if test -n "$P7ZIP"; then
31260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31261 $as_echo "$P7ZIP" >&6; }
31262 else
31263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31264 $as_echo "no" >&6; }
31265 fi
31266
31267
31268   test -n "$P7ZIP" && break
31269 done
31270
31271
31272  if test "x$P7ZIP" != "x" ; then
31273   P7ZIP_DELEGATE_TRUE=
31274   P7ZIP_DELEGATE_FALSE='#'
31275 else
31276   P7ZIP_DELEGATE_TRUE='#'
31277   P7ZIP_DELEGATE_FALSE=
31278 fi
31279
31280
31281 #
31282 # ZIP support (http://www.info-zip.org/Zip.html)
31283 #
31284 ZIP=''
31285 for ac_prog in zip
31286 do
31287   # Extract the first word of "$ac_prog", so it can be a program name with args.
31288 set dummy $ac_prog; ac_word=$2
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31290 $as_echo_n "checking for $ac_word... " >&6; }
31291 if test "${ac_cv_prog_ZIP+set}" = set; then :
31292   $as_echo_n "(cached) " >&6
31293 else
31294   if test -n "$ZIP"; then
31295   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31296 else
31297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31298 for as_dir in $PATH
31299 do
31300   IFS=$as_save_IFS
31301   test -z "$as_dir" && as_dir=.
31302     for ac_exec_ext in '' $ac_executable_extensions; do
31303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31304     ac_cv_prog_ZIP="$ac_prog"
31305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31306     break 2
31307   fi
31308 done
31309   done
31310 IFS=$as_save_IFS
31311
31312 fi
31313 fi
31314 ZIP=$ac_cv_prog_ZIP
31315 if test -n "$ZIP"; then
31316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31317 $as_echo "$ZIP" >&6; }
31318 else
31319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31320 $as_echo "no" >&6; }
31321 fi
31322
31323
31324   test -n "$ZIP" && break
31325 done
31326
31327
31328  if test "x$ZIP" != "x" ; then
31329   ZIP_DELEGATE_TRUE=
31330   ZIP_DELEGATE_FALSE='#'
31331 else
31332   ZIP_DELEGATE_TRUE='#'
31333   ZIP_DELEGATE_FALSE=
31334 fi
31335
31336
31337 #
31338 # GhostPCL related configuration.
31339 #
31340 PCLColorDevice=ppmraw
31341 PCLCMYKDevice=bmpsep8
31342 PCLMonoDevice=pbmraw
31343 if test -z "$PCLVersion"; then
31344     PCLVersion='unknown'
31345 fi
31346 if test $have_pcl = 'yes'; then
31347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31348 $as_echo "-------------------------------------------------------------" >&6; }
31349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31350 $as_echo_n "checking for PCL... " >&6; }
31351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31352 $as_echo "" >&6; }
31353     # PCLColorDevice
31354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31355 $as_echo_n "checking for pcl color device... " >&6; }
31356     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31357         :
31358     else
31359         PCLColorDevice=ppmraw
31360     fi
31361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31362 $as_echo "$PCLColorDevice" >&6; }
31363
31364     # PCLCMYKDevice
31365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31366 $as_echo_n "checking for pcl CMYK device... " >&6; }
31367     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31368         :
31369     else
31370         PCLCMYKDevice=$PCLColorDevice
31371     fi
31372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
31373 $as_echo "$PCLCMYKDevice" >&6; }
31374
31375     # PCLMonoDevice
31376     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
31377 $as_echo_n "checking for pcl mono device... " >&6; }
31378     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31379         :
31380     else
31381         PCLMonoDevice=$PCLColorDevice
31382     fi
31383     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
31384 $as_echo "$PCLMonoDevice" >&6; }
31385 fi
31386
31387
31388
31389
31390
31391
31392 #
31393 # GhostXPS related configuration.
31394 #
31395 XPSColorDevice=ppmraw
31396 XPSCMYKDevice=bmpsep8
31397 XPSMonoDevice=pbmraw
31398 if test -z "$XPSVersion"; then
31399     XPSVersion='unknown'
31400 fi
31401 if test $have_xps = 'yes'; then
31402     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31403 $as_echo "-------------------------------------------------------------" >&6; }
31404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
31405 $as_echo_n "checking for XPS... " >&6; }
31406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31407 $as_echo "" >&6; }
31408     # XPSColorDevice
31409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
31410 $as_echo_n "checking for xps color device... " >&6; }
31411     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31412         :
31413     else
31414         XPSColorDevice=ppmraw
31415     fi
31416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
31417 $as_echo "$XPSColorDevice" >&6; }
31418
31419     # XPSCMYKDevice
31420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
31421 $as_echo_n "checking for xps CMYK device... " >&6; }
31422     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31423         :
31424     else
31425         XPSCMYKDevice=$XPSColorDevice
31426     fi
31427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
31428 $as_echo "$XPSCMYKDevice" >&6; }
31429
31430     # XPSMonoDevice
31431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
31432 $as_echo_n "checking for xps mono device... " >&6; }
31433     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31434         :
31435     else
31436         XPSMonoDevice=$XPSColorDevice
31437     fi
31438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
31439 $as_echo "$XPSMonoDevice" >&6; }
31440 fi
31441
31442
31443
31444
31445
31446
31447 #
31448 # Ghostscript related configuration.
31449 #
31450 if test "$have_png" = 'yes'; then
31451     GSAlphaDevice=pngalpha
31452 else
31453     GSAlphaDevice=pnmraw
31454 fi
31455 GSColorDevice=pnmraw
31456 GSCMYKDevice=pam
31457 GSMonoDevice=pbmraw
31458 GSPDFDevice=pdfwrite
31459 GSPSDevice=pswrite
31460 GSEPSDevice=epswrite
31461 GSVersion='unknown'
31462 if test $have_gs = 'yes'; then
31463     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31464 $as_echo "-------------------------------------------------------------" >&6; }
31465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
31466 $as_echo_n "checking for Ghostscript... " >&6; }
31467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31468 $as_echo "" >&6; }
31469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
31470 $as_echo_n "checking for Ghostscript version... " >&6; }
31471     if GSVersion=`$PSDelegate --version`; then
31472         :
31473     else
31474         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
31475     fi
31476     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
31477 $as_echo "$GSVersion" >&6; }
31478
31479     # GSAlphaDevice
31480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
31481 $as_echo_n "checking for gs alpha device... " >&6; }
31482     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31483         :
31484     else
31485         GSAlphaDevice=pnmraw
31486     fi
31487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
31488 $as_echo "$GSAlphaDevice" >&6; }
31489
31490     # GSColorDevice
31491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
31492 $as_echo_n "checking for gs color device... " >&6; }
31493     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31494         :
31495     else
31496         GSColorDevice=pnmraw
31497     fi
31498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
31499 $as_echo "$GSColorDevice" >&6; }
31500
31501     # GSCMYKDevice
31502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
31503 $as_echo_n "checking for gs CMYK device... " >&6; }
31504     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31505         :
31506     else
31507         GSCMYKDevice=bmpsep8
31508     fi
31509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
31510 $as_echo "$GSCMYKDevice" >&6; }
31511
31512     # GSMonoDevice
31513     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
31514 $as_echo_n "checking for gs mono device... " >&6; }
31515     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31516         :
31517     else
31518         GSMonoDevice=$GSColorDevice
31519     fi
31520     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
31521 $as_echo "$GSMonoDevice" >&6; }
31522
31523     # GSPDFDevice
31524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
31525 $as_echo_n "checking for gs PDF writing device... " >&6; }
31526     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31527         :
31528     else
31529         GSPDFDevice=nodevice
31530     fi
31531         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
31532 $as_echo "$GSPDFDevice" >&6; }
31533
31534     # GSPSDevice
31535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
31536 $as_echo_n "checking for gs PS writing device... " >&6; }
31537     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31538         :
31539     else
31540         GSPSDevice=nodevice
31541     fi
31542     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
31543 $as_echo "$GSPSDevice" >&6; }
31544
31545     # GSEPSDevice
31546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
31547 $as_echo_n "checking for gs EPS writing device... " >&6; }
31548     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31549         :
31550     else
31551         GSEPSDevice=nodevice
31552     fi
31553     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
31554 $as_echo "$GSEPSDevice" >&6; }
31555 fi
31556
31557
31558
31559
31560
31561
31562
31563
31564
31565
31566 #
31567 # PerlMagick-related configuration
31568 #
31569
31570 # Look for PERL if PerlMagick requested
31571 # If name/path of desired PERL interpreter is specified, look for that one first
31572 have_perl='no'
31573 if test "$with_perl" != 'no'; then
31574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31575 $as_echo "-------------------------------------------------------------" >&6; }
31576     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
31577 $as_echo_n "checking for Perl... " >&6; }
31578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31579 $as_echo "" >&6; }
31580     if test "$with_perl" != 'yes'; then
31581         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
31582 $as_echo_n "checking for perl... " >&6; }
31583 if test "${ac_cv_path_PERL+set}" = set; then :
31584   $as_echo_n "(cached) " >&6
31585 else
31586   ac_cv_path_PERL="$with_perl"
31587 fi
31588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
31589 $as_echo "$ac_cv_path_PERL" >&6; };
31590         PERL=$ac_cv_path_PERL
31591                 have_perl="$ac_cv_path_PERL"
31592     else
31593         for ac_prog in perl perl5
31594 do
31595   # Extract the first word of "$ac_prog", so it can be a program name with args.
31596 set dummy $ac_prog; ac_word=$2
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31598 $as_echo_n "checking for $ac_word... " >&6; }
31599 if test "${ac_cv_path_PERL+set}" = set; then :
31600   $as_echo_n "(cached) " >&6
31601 else
31602   case $PERL in
31603   [\\/]* | ?:[\\/]*)
31604   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31605   ;;
31606   *)
31607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31608 for as_dir in $PATH
31609 do
31610   IFS=$as_save_IFS
31611   test -z "$as_dir" && as_dir=.
31612     for ac_exec_ext in '' $ac_executable_extensions; do
31613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31614     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31616     break 2
31617   fi
31618 done
31619   done
31620 IFS=$as_save_IFS
31621
31622   ;;
31623 esac
31624 fi
31625 PERL=$ac_cv_path_PERL
31626 if test -n "$PERL"; then
31627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31628 $as_echo "$PERL" >&6; }
31629 else
31630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31631 $as_echo "no" >&6; }
31632 fi
31633
31634
31635   test -n "$PERL" && break
31636 done
31637         if test "$ac_cv_path_PERL"; then
31638             have_perl="$ac_cv_path_PERL"
31639         fi
31640     fi
31641 fi
31642
31643 if test "$with_perl" != 'yes' ; then
31644     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
31645 fi
31646
31647 PERL_SUPPORTS_DESTDIR='no'
31648
31649 with_perl_static='no'
31650 with_perl_dynamic='no'
31651 if test "$have_perl" != 'no'; then
31652     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
31653         with_perl_static='yes'
31654     fi
31655     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
31656         with_perl_dynamic='yes'
31657     fi
31658     # Is PERL's MakeMaker new enough to support DESTDIR?
31659     # Make sure we have perl
31660 if test -z "$PERL"; then
31661 # Extract the first word of "perl", so it can be a program name with args.
31662 set dummy perl; ac_word=$2
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31664 $as_echo_n "checking for $ac_word... " >&6; }
31665 if test "${ac_cv_prog_PERL+set}" = set; then :
31666   $as_echo_n "(cached) " >&6
31667 else
31668   if test -n "$PERL"; then
31669   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31670 else
31671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672 for as_dir in $PATH
31673 do
31674   IFS=$as_save_IFS
31675   test -z "$as_dir" && as_dir=.
31676     for ac_exec_ext in '' $ac_executable_extensions; do
31677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31678     ac_cv_prog_PERL="perl"
31679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31680     break 2
31681   fi
31682 done
31683   done
31684 IFS=$as_save_IFS
31685
31686 fi
31687 fi
31688 PERL=$ac_cv_prog_PERL
31689 if test -n "$PERL"; then
31690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31691 $as_echo "$PERL" >&6; }
31692 else
31693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31694 $as_echo "no" >&6; }
31695 fi
31696
31697
31698 fi
31699
31700 # Check if version of Perl is sufficient
31701 ac_perl_version="5.8.1"
31702
31703 if test "x$PERL" != "x"; then
31704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
31705 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
31706   # NB: It would be nice to log the error if there is one, but we cannot rely
31707   # on autoconf internals
31708   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31709   if test $? -ne 0; then
31710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31711 $as_echo "no" >&6; };
31712     PERL_SUPPORTS_DESTDIR='no'
31713   else
31714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
31715 $as_echo "ok" >&6; };
31716     PERL_SUPPORTS_DESTDIR='yes'
31717   fi
31718 else
31719   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
31720 $as_echo "$as_me: WARNING: could not find perl" >&2;}
31721 fi
31722
31723 fi
31724  if test "$have_perl" != 'no'; then
31725   WITH_PERL_TRUE=
31726   WITH_PERL_FALSE='#'
31727 else
31728   WITH_PERL_TRUE='#'
31729   WITH_PERL_FALSE=
31730 fi
31731
31732  if test $with_perl_static = 'yes'; then
31733   WITH_PERL_STATIC_TRUE=
31734   WITH_PERL_STATIC_FALSE='#'
31735 else
31736   WITH_PERL_STATIC_TRUE='#'
31737   WITH_PERL_STATIC_FALSE=
31738 fi
31739
31740  if test $with_perl_dynamic = 'yes'; then
31741   WITH_PERL_DYNAMIC_TRUE=
31742   WITH_PERL_DYNAMIC_FALSE='#'
31743 else
31744   WITH_PERL_DYNAMIC_TRUE='#'
31745   WITH_PERL_DYNAMIC_FALSE=
31746 fi
31747
31748
31749
31750 # Determine path to pick up MagickCore library from for use with building PerlMagick
31751 MAGICKCORE_PATH="${LIB_DIR}"
31752 if test $with_perl_static = 'yes'; then
31753     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
31754     libtool_objdir=$objdir
31755
31756     # Linker search path to library, followed by -lMagickCore
31757     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
31758 fi
31759
31760
31761 # Create a simple string containing format names for all delegate libraries
31762 DELEGATES=''
31763 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
31764 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
31765 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
31766 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
31767 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
31768 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
31769 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
31770 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
31771 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
31772 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
31773 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
31774 if test "$have_jpeg"       = 'yes'; then
31775   DELEGATES="$DELEGATES jpeg";
31776   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
31777 fi
31778 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
31779 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
31780 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
31781 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
31782 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
31783 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
31784 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
31785 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
31786 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
31787 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
31788 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
31789 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
31790
31791
31792
31793 #
31794 # Handle special compiler flags
31795 #
31796
31797 # Add '-p' if prof source profiling support enabled
31798 if test "$enable_prof" = 'yes'; then
31799     CFLAGS="-p $CFLAGS"
31800     CXXFLAGS="-p $CXXFLAGS"
31801     LDFLAGS="-p $LDFLAGS"
31802 fi
31803
31804 # Add '-pg' if gprof source profiling support enabled
31805 if test "$enable_gprof" = 'yes'; then
31806     CFLAGS="-pg $CFLAGS"
31807     CXXFLAGS="-pg $CXXFLAGS"
31808     LDFLAGS="-pg $LDFLAGS"
31809 fi
31810
31811 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
31812 # This is a gcc-specific feature
31813 if test "$enable_gcov" = 'yes'; then
31814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
31815 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
31816 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
31817   $as_echo_n "(cached) " >&6
31818 else
31819   ac_check_lib_save_LIBS=$LIBS
31820 LIBS="-lgcov  $LIBS"
31821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31822 /* end confdefs.h.  */
31823
31824 /* Override any GCC internal prototype to avoid an error.
31825    Use char because int might match the return type of a GCC
31826    builtin and then its argument prototype would still apply.  */
31827 #ifdef __cplusplus
31828 extern "C"
31829 #endif
31830 char _gcov_init ();
31831 int
31832 main ()
31833 {
31834 return _gcov_init ();
31835   ;
31836   return 0;
31837 }
31838 _ACEOF
31839 if ac_fn_c_try_link "$LINENO"; then :
31840   ac_cv_lib_gcov__gcov_init=yes
31841 else
31842   ac_cv_lib_gcov__gcov_init=no
31843 fi
31844 rm -f core conftest.err conftest.$ac_objext \
31845     conftest$ac_exeext conftest.$ac_ext
31846 LIBS=$ac_check_lib_save_LIBS
31847 fi
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
31849 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
31850 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
31851   cat >>confdefs.h <<_ACEOF
31852 #define HAVE_LIBGCOV 1
31853 _ACEOF
31854
31855   LIBS="-lgcov $LIBS"
31856
31857 fi
31858
31859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
31860 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
31861 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
31862   $as_echo_n "(cached) " >&6
31863 else
31864   ac_check_lib_save_LIBS=$LIBS
31865 LIBS="-lgcov  $LIBS"
31866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31867 /* end confdefs.h.  */
31868
31869 /* Override any GCC internal prototype to avoid an error.
31870    Use char because int might match the return type of a GCC
31871    builtin and then its argument prototype would still apply.  */
31872 #ifdef __cplusplus
31873 extern "C"
31874 #endif
31875 char __gcov_init ();
31876 int
31877 main ()
31878 {
31879 return __gcov_init ();
31880   ;
31881   return 0;
31882 }
31883 _ACEOF
31884 if ac_fn_c_try_link "$LINENO"; then :
31885   ac_cv_lib_gcov___gcov_init=yes
31886 else
31887   ac_cv_lib_gcov___gcov_init=no
31888 fi
31889 rm -f core conftest.err conftest.$ac_objext \
31890     conftest$ac_exeext conftest.$ac_ext
31891 LIBS=$ac_check_lib_save_LIBS
31892 fi
31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
31894 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
31895 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
31896   cat >>confdefs.h <<_ACEOF
31897 #define HAVE_LIBGCOV 1
31898 _ACEOF
31899
31900   LIBS="-lgcov $LIBS"
31901
31902 fi
31903
31904     case "$target_os" in
31905         darwin*)
31906             OSX_GCOV_LDFLAG="-Wl,-single_module"
31907         ;;
31908         *)
31909             OSX_GCOV_LDFLAG=""
31910         ;;
31911     esac
31912
31913     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
31914     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
31915     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
31916 fi
31917
31918 #
31919 # Build library dependency list for libMagickCore
31920 #
31921
31922 MAGICK_LIBLTDL='' # Libltdl for build
31923 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
31924 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
31925 if test "$with_ltdl" != 'no'
31926 then
31927   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
31928     MAGICK_API_LIBLTDL='-lltdl'
31929   fi
31930   MAGICK_LIBLTDL=${LIBLTDL}
31931   MAGICK_LTDLDEPS=${LTDLDEPS}
31932 fi
31933
31934
31935
31936 if test "$with_modules" != 'no'; then
31937     MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
31938 else
31939     MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
31940 fi
31941
31942
31943 #
31944 # Remove extraneous spaces from output variables (asthetic)
31945 #
31946 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
31947 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
31948 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
31949 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
31950
31951 CC=`echo $CC | sed -e 's/  */ /g'`
31952 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
31953 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
31954 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
31955 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
31956 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
31957 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
31958 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
31959 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
31960 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
31961
31962 # Pass only user-provided LIBS as "global" libraries
31963 LIBS=$USER_LIBS
31964
31965 #AC_SUBST(CPPFLAGS)
31966
31967 #AC_SUBST(LDFLAGS)
31968 #AC_SUBST(X_PRE_LIBS)
31969 #AC_SUBST(X_LIBS)
31970 #AC_SUBST(X_EXTRA_LIBS)
31971
31972 MAGICK_CFLAGS=$CFLAGS
31973 MAGICK_CXXFLAGS="$CXXFLAGS"
31974 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
31975 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
31976 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
31977 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
31978
31979
31980
31981
31982
31983
31984
31985
31986 # Set configured scripts to executable.
31987 ac_config_commands="$ac_config_commands default"
31988
31989 ac_config_commands="$ac_config_commands MagickCore-config.in"
31990
31991 ac_config_commands="$ac_config_commands Magick-config.in"
31992
31993 ac_config_commands="$ac_config_commands MagickWand-config.in"
31994
31995 ac_config_commands="$ac_config_commands Wand-config.in"
31996
31997 ac_config_commands="$ac_config_commands Magick++-config.in"
31998
31999 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32000
32001
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32003 $as_echo "-------------------------------------------------------------" >&6; }
32004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32005 $as_echo "Update ImageMagick configuration" >&6; }
32006 cat >confcache <<\_ACEOF
32007 # This file is a shell script that caches the results of configure
32008 # tests run on this system so they can be shared between configure
32009 # scripts and configure runs, see configure's option --config-cache.
32010 # It is not useful on other systems.  If it contains results you don't
32011 # want to keep, you may remove or edit it.
32012 #
32013 # config.status only pays attention to the cache file if you give it
32014 # the --recheck option to rerun configure.
32015 #
32016 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32017 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32018 # following values.
32019
32020 _ACEOF
32021
32022 # The following way of writing the cache mishandles newlines in values,
32023 # but we know of no workaround that is simple, portable, and efficient.
32024 # So, we kill variables containing newlines.
32025 # Ultrix sh set writes to stderr and can't be redirected directly,
32026 # and sets the high bit in the cache file unless we assign to the vars.
32027 (
32028   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32029     eval ac_val=\$$ac_var
32030     case $ac_val in #(
32031     *${as_nl}*)
32032       case $ac_var in #(
32033       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32035       esac
32036       case $ac_var in #(
32037       _ | IFS | as_nl) ;; #(
32038       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32039       *) { eval $ac_var=; unset $ac_var;} ;;
32040       esac ;;
32041     esac
32042   done
32043
32044   (set) 2>&1 |
32045     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32046     *${as_nl}ac_space=\ *)
32047       # `set' does not quote correctly, so add quotes: double-quote
32048       # substitution turns \\\\ into \\, and sed turns \\ into \.
32049       sed -n \
32050         "s/'/'\\\\''/g;
32051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32052       ;; #(
32053     *)
32054       # `set' quotes correctly as required by POSIX, so do not add quotes.
32055       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32056       ;;
32057     esac |
32058     sort
32059 ) |
32060   sed '
32061      /^ac_cv_env_/b end
32062      t clear
32063      :clear
32064      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32065      t end
32066      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32067      :end' >>confcache
32068 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32069   if test -w "$cache_file"; then
32070     test "x$cache_file" != "x/dev/null" &&
32071       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32072 $as_echo "$as_me: updating cache $cache_file" >&6;}
32073     cat confcache >$cache_file
32074   else
32075     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32076 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32077   fi
32078 fi
32079 rm -f confcache
32080
32081 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32082 # Let make expand exec_prefix.
32083 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32084
32085 DEFS=-DHAVE_CONFIG_H
32086
32087 ac_libobjs=
32088 ac_ltlibobjs=
32089 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32090   # 1. Remove the extension, and $U if already installed.
32091   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32092   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32093   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32094   #    will be set to the directory where LIBOBJS objects are built.
32095   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32096   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32097 done
32098 LIBOBJS=$ac_libobjs
32099
32100 LTLIBOBJS=$ac_ltlibobjs
32101
32102
32103  if test -n "$EXEEXT"; then
32104   am__EXEEXT_TRUE=
32105   am__EXEEXT_FALSE='#'
32106 else
32107   am__EXEEXT_TRUE='#'
32108   am__EXEEXT_FALSE=
32109 fi
32110
32111 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32112   as_fn_error "conditional \"AMDEP\" was never defined.
32113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32114 fi
32115 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32116   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32118 fi
32119 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32120   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32122 fi
32123 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32124   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32126 fi
32127 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32128   as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32130 fi
32131 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32132   as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32134 fi
32135 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32136   as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32138 fi
32139 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32140   as_fn_error "conditional \"USING_CL\" was never defined.
32141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32142 fi
32143 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32144   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32146 fi
32147 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32148   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32150 fi
32151 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32152   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
32153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32154 fi
32155 LT_CONFIG_H=config/config.h
32156
32157     _ltdl_libobjs=
32158     _ltdl_ltlibobjs=
32159     if test -n "$_LT_LIBOBJS"; then
32160       # Remove the extension.
32161       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32162       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32163         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32164         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32165       done
32166     fi
32167     ltdl_LIBOBJS=$_ltdl_libobjs
32168
32169     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32170
32171
32172 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32173   as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
32174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32175 fi
32176 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32177   as_fn_error "conditional \"WITH_MODULES\" was never defined.
32178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32179 fi
32180 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32181   as_fn_error "conditional \"WITH_LTDL\" was never defined.
32182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32183 fi
32184 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32185   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
32186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32187 fi
32188
32189 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32190   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32192 fi
32193 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32194   as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32196 fi
32197 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32198   as_fn_error "conditional \"HasUMEM\" was never defined.
32199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32200 fi
32201 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32202   as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
32203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32204 fi
32205 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32206   as_fn_error "conditional \"X11_DELEGATE\" was never defined.
32207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32208 fi
32209 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32210   as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
32211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32212 fi
32213 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32214   as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32216 fi
32217 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32218   as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
32219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32220 fi
32221 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32222   as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
32223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32224 fi
32225 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32226   as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
32227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32228 fi
32229 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32230   as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
32231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32232 fi
32233 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32234   as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32236 fi
32237 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32238   as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
32239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32240 fi
32241 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32242   as_fn_error "conditional \"GS_DELEGATE\" was never defined.
32243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32244 fi
32245 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32246   as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
32247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32248 fi
32249 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32250   as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
32251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32252 fi
32253 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32254   as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
32255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32256 fi
32257 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32258   as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
32259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32260 fi
32261 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32262   as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
32263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32264 fi
32265 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32266   as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
32267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32268 fi
32269 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32270   as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
32271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32272 fi
32273 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32274   as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
32275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32276 fi
32277 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32278   as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
32279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32280 fi
32281 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32282   as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
32283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32284 fi
32285 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32286   as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
32287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32288 fi
32289 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32290   as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
32291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32292 fi
32293 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32294   as_fn_error "conditional \"XML_DELEGATE\" was never defined.
32295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32296 fi
32297 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32298   as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
32299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32300 fi
32301 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32302   as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
32303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32304 fi
32305 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32306   as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
32307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32308 fi
32309 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32310   as_fn_error "conditional \"WITH_PERL\" was never defined.
32311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32312 fi
32313 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32314   as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
32315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32316 fi
32317 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32318   as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32320 fi
32321
32322 : ${CONFIG_STATUS=./config.status}
32323 ac_write_fail=0
32324 ac_clean_files_save=$ac_clean_files
32325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32328 as_write_fail=0
32329 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32330 #! $SHELL
32331 # Generated by $as_me.
32332 # Run this file to recreate the current configuration.
32333 # Compiler output produced by configure, useful for debugging
32334 # configure, is in config.log if it exists.
32335
32336 debug=false
32337 ac_cs_recheck=false
32338 ac_cs_silent=false
32339
32340 SHELL=\${CONFIG_SHELL-$SHELL}
32341 export SHELL
32342 _ASEOF
32343 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32344 ## -------------------- ##
32345 ## M4sh Initialization. ##
32346 ## -------------------- ##
32347
32348 # Be more Bourne compatible
32349 DUALCASE=1; export DUALCASE # for MKS sh
32350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32351   emulate sh
32352   NULLCMD=:
32353   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32354   # is contrary to our usage.  Disable this feature.
32355   alias -g '${1+"$@"}'='"$@"'
32356   setopt NO_GLOB_SUBST
32357 else
32358   case `(set -o) 2>/dev/null` in #(
32359   *posix*) :
32360     set -o posix ;; #(
32361   *) :
32362      ;;
32363 esac
32364 fi
32365
32366
32367 as_nl='
32368 '
32369 export as_nl
32370 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32371 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32374 # Prefer a ksh shell builtin over an external printf program on Solaris,
32375 # but without wasting forks for bash or zsh.
32376 if test -z "$BASH_VERSION$ZSH_VERSION" \
32377     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32378   as_echo='print -r --'
32379   as_echo_n='print -rn --'
32380 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32381   as_echo='printf %s\n'
32382   as_echo_n='printf %s'
32383 else
32384   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32385     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32386     as_echo_n='/usr/ucb/echo -n'
32387   else
32388     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32389     as_echo_n_body='eval
32390       arg=$1;
32391       case $arg in #(
32392       *"$as_nl"*)
32393         expr "X$arg" : "X\\(.*\\)$as_nl";
32394         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32395       esac;
32396       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32397     '
32398     export as_echo_n_body
32399     as_echo_n='sh -c $as_echo_n_body as_echo'
32400   fi
32401   export as_echo_body
32402   as_echo='sh -c $as_echo_body as_echo'
32403 fi
32404
32405 # The user is always right.
32406 if test "${PATH_SEPARATOR+set}" != set; then
32407   PATH_SEPARATOR=:
32408   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32409     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32410       PATH_SEPARATOR=';'
32411   }
32412 fi
32413
32414
32415 # IFS
32416 # We need space, tab and new line, in precisely that order.  Quoting is
32417 # there to prevent editors from complaining about space-tab.
32418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32419 # splitting by setting IFS to empty value.)
32420 IFS=" ""        $as_nl"
32421
32422 # Find who we are.  Look in the path if we contain no directory separator.
32423 case $0 in #((
32424   *[\\/]* ) as_myself=$0 ;;
32425   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32426 for as_dir in $PATH
32427 do
32428   IFS=$as_save_IFS
32429   test -z "$as_dir" && as_dir=.
32430     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32431   done
32432 IFS=$as_save_IFS
32433
32434      ;;
32435 esac
32436 # We did not find ourselves, most probably we were run as `sh COMMAND'
32437 # in which case we are not to be found in the path.
32438 if test "x$as_myself" = x; then
32439   as_myself=$0
32440 fi
32441 if test ! -f "$as_myself"; then
32442   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32443   exit 1
32444 fi
32445
32446 # Unset variables that we do not need and which cause bugs (e.g. in
32447 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
32448 # suppresses any "Segmentation fault" message there.  '((' could
32449 # trigger a bug in pdksh 5.2.14.
32450 for as_var in BASH_ENV ENV MAIL MAILPATH
32451 do eval test x\${$as_var+set} = xset \
32452   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
32453 done
32454 PS1='$ '
32455 PS2='> '
32456 PS4='+ '
32457
32458 # NLS nuisances.
32459 LC_ALL=C
32460 export LC_ALL
32461 LANGUAGE=C
32462 export LANGUAGE
32463
32464 # CDPATH.
32465 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32466
32467
32468 # as_fn_error ERROR [LINENO LOG_FD]
32469 # ---------------------------------
32470 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32471 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32472 # script with status $?, using 1 if that was 0.
32473 as_fn_error ()
32474 {
32475   as_status=$?; test $as_status -eq 0 && as_status=1
32476   if test "$3"; then
32477     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
32478     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
32479   fi
32480   $as_echo "$as_me: error: $1" >&2
32481   as_fn_exit $as_status
32482 } # as_fn_error
32483
32484
32485 # as_fn_set_status STATUS
32486 # -----------------------
32487 # Set $? to STATUS, without forking.
32488 as_fn_set_status ()
32489 {
32490   return $1
32491 } # as_fn_set_status
32492
32493 # as_fn_exit STATUS
32494 # -----------------
32495 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32496 as_fn_exit ()
32497 {
32498   set +e
32499   as_fn_set_status $1
32500   exit $1
32501 } # as_fn_exit
32502
32503 # as_fn_unset VAR
32504 # ---------------
32505 # Portably unset VAR.
32506 as_fn_unset ()
32507 {
32508   { eval $1=; unset $1;}
32509 }
32510 as_unset=as_fn_unset
32511 # as_fn_append VAR VALUE
32512 # ----------------------
32513 # Append the text in VALUE to the end of the definition contained in VAR. Take
32514 # advantage of any shell optimizations that allow amortized linear growth over
32515 # repeated appends, instead of the typical quadratic growth present in naive
32516 # implementations.
32517 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
32518   eval 'as_fn_append ()
32519   {
32520     eval $1+=\$2
32521   }'
32522 else
32523   as_fn_append ()
32524   {
32525     eval $1=\$$1\$2
32526   }
32527 fi # as_fn_append
32528
32529 # as_fn_arith ARG...
32530 # ------------------
32531 # Perform arithmetic evaluation on the ARGs, and store the result in the
32532 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32533 # must be portable across $(()) and expr.
32534 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
32535   eval 'as_fn_arith ()
32536   {
32537     as_val=$(( $* ))
32538   }'
32539 else
32540   as_fn_arith ()
32541   {
32542     as_val=`expr "$@" || test $? -eq 1`
32543   }
32544 fi # as_fn_arith
32545
32546
32547 if expr a : '\(a\)' >/dev/null 2>&1 &&
32548    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32549   as_expr=expr
32550 else
32551   as_expr=false
32552 fi
32553
32554 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32555   as_basename=basename
32556 else
32557   as_basename=false
32558 fi
32559
32560 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32561   as_dirname=dirname
32562 else
32563   as_dirname=false
32564 fi
32565
32566 as_me=`$as_basename -- "$0" ||
32567 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32568          X"$0" : 'X\(//\)$' \| \
32569          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32570 $as_echo X/"$0" |
32571     sed '/^.*\/\([^/][^/]*\)\/*$/{
32572             s//\1/
32573             q
32574           }
32575           /^X\/\(\/\/\)$/{
32576             s//\1/
32577             q
32578           }
32579           /^X\/\(\/\).*/{
32580             s//\1/
32581             q
32582           }
32583           s/.*/./; q'`
32584
32585 # Avoid depending upon Character Ranges.
32586 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32587 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32588 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32589 as_cr_digits='0123456789'
32590 as_cr_alnum=$as_cr_Letters$as_cr_digits
32591
32592 ECHO_C= ECHO_N= ECHO_T=
32593 case `echo -n x` in #(((((
32594 -n*)
32595   case `echo 'xy\c'` in
32596   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32597   xy)  ECHO_C='\c';;
32598   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
32599        ECHO_T=' ';;
32600   esac;;
32601 *)
32602   ECHO_N='-n';;
32603 esac
32604
32605 rm -f conf$$ conf$$.exe conf$$.file
32606 if test -d conf$$.dir; then
32607   rm -f conf$$.dir/conf$$.file
32608 else
32609   rm -f conf$$.dir
32610   mkdir conf$$.dir 2>/dev/null
32611 fi
32612 if (echo >conf$$.file) 2>/dev/null; then
32613   if ln -s conf$$.file conf$$ 2>/dev/null; then
32614     as_ln_s='ln -s'
32615     # ... but there are two gotchas:
32616     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32617     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32618     # In both cases, we have to default to `cp -p'.
32619     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32620       as_ln_s='cp -p'
32621   elif ln conf$$.file conf$$ 2>/dev/null; then
32622     as_ln_s=ln
32623   else
32624     as_ln_s='cp -p'
32625   fi
32626 else
32627   as_ln_s='cp -p'
32628 fi
32629 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32630 rmdir conf$$.dir 2>/dev/null
32631
32632
32633 # as_fn_mkdir_p
32634 # -------------
32635 # Create "$as_dir" as a directory, including parents if necessary.
32636 as_fn_mkdir_p ()
32637 {
32638
32639   case $as_dir in #(
32640   -*) as_dir=./$as_dir;;
32641   esac
32642   test -d "$as_dir" || eval $as_mkdir_p || {
32643     as_dirs=
32644     while :; do
32645       case $as_dir in #(
32646       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32647       *) as_qdir=$as_dir;;
32648       esac
32649       as_dirs="'$as_qdir' $as_dirs"
32650       as_dir=`$as_dirname -- "$as_dir" ||
32651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32652          X"$as_dir" : 'X\(//\)[^/]' \| \
32653          X"$as_dir" : 'X\(//\)$' \| \
32654          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32655 $as_echo X"$as_dir" |
32656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32657             s//\1/
32658             q
32659           }
32660           /^X\(\/\/\)[^/].*/{
32661             s//\1/
32662             q
32663           }
32664           /^X\(\/\/\)$/{
32665             s//\1/
32666             q
32667           }
32668           /^X\(\/\).*/{
32669             s//\1/
32670             q
32671           }
32672           s/.*/./; q'`
32673       test -d "$as_dir" && break
32674     done
32675     test -z "$as_dirs" || eval "mkdir $as_dirs"
32676   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
32677
32678
32679 } # as_fn_mkdir_p
32680 if mkdir -p . 2>/dev/null; then
32681   as_mkdir_p='mkdir -p "$as_dir"'
32682 else
32683   test -d ./-p && rmdir ./-p
32684   as_mkdir_p=false
32685 fi
32686
32687 if test -x / >/dev/null 2>&1; then
32688   as_test_x='test -x'
32689 else
32690   if ls -dL / >/dev/null 2>&1; then
32691     as_ls_L_option=L
32692   else
32693     as_ls_L_option=
32694   fi
32695   as_test_x='
32696     eval sh -c '\''
32697       if test -d "$1"; then
32698         test -d "$1/.";
32699       else
32700         case $1 in #(
32701         -*)set "./$1";;
32702         esac;
32703         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
32704         ???[sx]*):;;*)false;;esac;fi
32705     '\'' sh
32706   '
32707 fi
32708 as_executable_p=$as_test_x
32709
32710 # Sed expression to map a string onto a valid CPP name.
32711 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32712
32713 # Sed expression to map a string onto a valid variable name.
32714 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32715
32716
32717 exec 6>&1
32718 ## ----------------------------------- ##
32719 ## Main body of $CONFIG_STATUS script. ##
32720 ## ----------------------------------- ##
32721 _ASEOF
32722 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32723
32724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32725 # Save the log message, to keep $0 and so on meaningful, and to
32726 # report actual input values of CONFIG_FILES etc. instead of their
32727 # values after options handling.
32728 ac_log="
32729 This file was extended by ImageMagick $as_me 6.6.1, which was
32730 generated by GNU Autoconf 2.65.  Invocation command line was
32731
32732   CONFIG_FILES    = $CONFIG_FILES
32733   CONFIG_HEADERS  = $CONFIG_HEADERS
32734   CONFIG_LINKS    = $CONFIG_LINKS
32735   CONFIG_COMMANDS = $CONFIG_COMMANDS
32736   $ $0 $@
32737
32738 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32739 "
32740
32741 _ACEOF
32742
32743 case $ac_config_files in *"
32744 "*) set x $ac_config_files; shift; ac_config_files=$*;;
32745 esac
32746
32747 case $ac_config_headers in *"
32748 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32749 esac
32750
32751
32752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32753 # Files that config.status was made for.
32754 config_files="$ac_config_files"
32755 config_headers="$ac_config_headers"
32756 config_commands="$ac_config_commands"
32757
32758 _ACEOF
32759
32760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32761 ac_cs_usage="\
32762 \`$as_me' instantiates files and other configuration actions
32763 from templates according to the current configuration.  Unless the files
32764 and actions are specified as TAGs, all are instantiated by default.
32765
32766 Usage: $0 [OPTION]... [TAG]...
32767
32768   -h, --help       print this help, then exit
32769   -V, --version    print version number and configuration settings, then exit
32770       --config     print configuration, then exit
32771   -q, --quiet, --silent
32772                    do not print progress messages
32773   -d, --debug      don't remove temporary files
32774       --recheck    update $as_me by reconfiguring in the same conditions
32775       --file=FILE[:TEMPLATE]
32776                    instantiate the configuration file FILE
32777       --header=FILE[:TEMPLATE]
32778                    instantiate the configuration header FILE
32779
32780 Configuration files:
32781 $config_files
32782
32783 Configuration headers:
32784 $config_headers
32785
32786 Configuration commands:
32787 $config_commands
32788
32789 Report bugs to <http://www.imagemagick.org>."
32790
32791 _ACEOF
32792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32793 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32794 ac_cs_version="\\
32795 ImageMagick config.status 6.6.1
32796 configured by $0, generated by GNU Autoconf 2.65,
32797   with options \\"\$ac_cs_config\\"
32798
32799 Copyright (C) 2009 Free Software Foundation, Inc.
32800 This config.status script is free software; the Free Software Foundation
32801 gives unlimited permission to copy, distribute and modify it."
32802
32803 ac_pwd='$ac_pwd'
32804 srcdir='$srcdir'
32805 INSTALL='$INSTALL'
32806 MKDIR_P='$MKDIR_P'
32807 AWK='$AWK'
32808 test -n "\$AWK" || AWK=awk
32809 _ACEOF
32810
32811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32812 # The default lists apply if the user does not specify any file.
32813 ac_need_defaults=:
32814 while test $# != 0
32815 do
32816   case $1 in
32817   --*=*)
32818     ac_option=`expr "X$1" : 'X\([^=]*\)='`
32819     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32820     ac_shift=:
32821     ;;
32822   *)
32823     ac_option=$1
32824     ac_optarg=$2
32825     ac_shift=shift
32826     ;;
32827   esac
32828
32829   case $ac_option in
32830   # Handling of the options.
32831   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32832     ac_cs_recheck=: ;;
32833   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32834     $as_echo "$ac_cs_version"; exit ;;
32835   --config | --confi | --conf | --con | --co | --c )
32836     $as_echo "$ac_cs_config"; exit ;;
32837   --debug | --debu | --deb | --de | --d | -d )
32838     debug=: ;;
32839   --file | --fil | --fi | --f )
32840     $ac_shift
32841     case $ac_optarg in
32842     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32843     esac
32844     as_fn_append CONFIG_FILES " '$ac_optarg'"
32845     ac_need_defaults=false;;
32846   --header | --heade | --head | --hea )
32847     $ac_shift
32848     case $ac_optarg in
32849     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32850     esac
32851     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32852     ac_need_defaults=false;;
32853   --he | --h)
32854     # Conflict between --help and --header
32855     as_fn_error "ambiguous option: \`$1'
32856 Try \`$0 --help' for more information.";;
32857   --help | --hel | -h )
32858     $as_echo "$ac_cs_usage"; exit ;;
32859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
32861     ac_cs_silent=: ;;
32862
32863   # This is an error.
32864   -*) as_fn_error "unrecognized option: \`$1'
32865 Try \`$0 --help' for more information." ;;
32866
32867   *) as_fn_append ac_config_targets " $1"
32868      ac_need_defaults=false ;;
32869
32870   esac
32871   shift
32872 done
32873
32874 ac_configure_extra_args=
32875
32876 if $ac_cs_silent; then
32877   exec 6>/dev/null
32878   ac_configure_extra_args="$ac_configure_extra_args --silent"
32879 fi
32880
32881 _ACEOF
32882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32883 if \$ac_cs_recheck; then
32884   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32885   shift
32886   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32887   CONFIG_SHELL='$SHELL'
32888   export CONFIG_SHELL
32889   exec "\$@"
32890 fi
32891
32892 _ACEOF
32893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32894 exec 5>>config.log
32895 {
32896   echo
32897   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32898 ## Running $as_me. ##
32899 _ASBOX
32900   $as_echo "$ac_log"
32901 } >&5
32902
32903 _ACEOF
32904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32905 #
32906 # INIT-COMMANDS
32907 #
32908 PACKAGE="$PACKAGE"
32909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32910
32911
32912 # The HP-UX ksh and POSIX shell print the target directory to stdout
32913 # if CDPATH is set.
32914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32915
32916 sed_quote_subst='$sed_quote_subst'
32917 double_quote_subst='$double_quote_subst'
32918 delay_variable_subst='$delay_variable_subst'
32919 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
32920 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
32921 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
32922 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
32923 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
32924 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
32925 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
32926 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
32927 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
32928 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32929 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
32930 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
32931 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
32932 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
32933 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
32934 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
32935 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
32936 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
32937 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
32938 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
32939 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
32940 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
32941 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
32942 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
32943 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
32944 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
32945 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
32946 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
32947 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
32948 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
32949 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32950 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
32951 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
32952 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
32953 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32954 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
32955 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
32956 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32957 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32958 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32959 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
32960 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
32961 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
32962 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
32963 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
32964 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
32965 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
32966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32967 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
32968 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
32969 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
32970 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
32971 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
32972 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
32973 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
32974 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
32975 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
32976 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
32977 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
32978 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
32979 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
32980 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
32981 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
32982 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
32983 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32984 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32985 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
32986 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
32987 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32988 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
32989 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
32990 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32991 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32992 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32993 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32994 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32995 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32996 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
32997 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32998 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
32999 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33000 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33001 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33002 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33003 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33004 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33005 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33006 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33007 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33008 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33009 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33010 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33011 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33012 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33013 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33014 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33015 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33016 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33017 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33018 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33019 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33020 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33021 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33022 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33023 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33024 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33025 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33026 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33027 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33028 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33029 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33030 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33031 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33032 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33033 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33034 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33035 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33036 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33037 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33038 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33039 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33040 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33041 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33042 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33043 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33044 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33045 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33046 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33047 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33048 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33049 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33050 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33051 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33052 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33053 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33054 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33055 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33056 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33057 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33058 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33059 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33060 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33061 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33062 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33063 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33064 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33065 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33066 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33067 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33068 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33069 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33070 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33071 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33072 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33073 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33074 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33075 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33076 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33077 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33078 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33079 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33080 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33081 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33082 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33083 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33084 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33085 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33086 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33087 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33088 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33089 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33090 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33091 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33092
33093 LTCC='$LTCC'
33094 LTCFLAGS='$LTCFLAGS'
33095 compiler='$compiler_DEFAULT'
33096
33097 # Quote evaled strings.
33098 for var in SED \
33099 GREP \
33100 EGREP \
33101 FGREP \
33102 LD \
33103 NM \
33104 LN_S \
33105 lt_SP2NL \
33106 lt_NL2SP \
33107 reload_flag \
33108 deplibs_check_method \
33109 file_magic_cmd \
33110 AR \
33111 AR_FLAGS \
33112 STRIP \
33113 RANLIB \
33114 CC \
33115 CFLAGS \
33116 compiler \
33117 lt_cv_sys_global_symbol_pipe \
33118 lt_cv_sys_global_symbol_to_cdecl \
33119 lt_cv_sys_global_symbol_to_c_name_address \
33120 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33121 SHELL \
33122 ECHO \
33123 lt_prog_compiler_no_builtin_flag \
33124 lt_prog_compiler_wl \
33125 lt_prog_compiler_pic \
33126 lt_prog_compiler_static \
33127 lt_cv_prog_compiler_c_o \
33128 need_locks \
33129 DSYMUTIL \
33130 NMEDIT \
33131 LIPO \
33132 OTOOL \
33133 OTOOL64 \
33134 shrext_cmds \
33135 export_dynamic_flag_spec \
33136 whole_archive_flag_spec \
33137 compiler_needs_object \
33138 with_gnu_ld \
33139 allow_undefined_flag \
33140 no_undefined_flag \
33141 hardcode_libdir_flag_spec \
33142 hardcode_libdir_flag_spec_ld \
33143 hardcode_libdir_separator \
33144 fix_srcfile_path \
33145 exclude_expsyms \
33146 include_expsyms \
33147 file_list_spec \
33148 variables_saved_for_relink \
33149 libname_spec \
33150 library_names_spec \
33151 soname_spec \
33152 finish_eval \
33153 old_striplib \
33154 striplib \
33155 compiler_lib_search_dirs \
33156 predep_objects \
33157 postdep_objects \
33158 predeps \
33159 postdeps \
33160 compiler_lib_search_path \
33161 LD_CXX \
33162 compiler_CXX \
33163 lt_prog_compiler_no_builtin_flag_CXX \
33164 lt_prog_compiler_wl_CXX \
33165 lt_prog_compiler_pic_CXX \
33166 lt_prog_compiler_static_CXX \
33167 lt_cv_prog_compiler_c_o_CXX \
33168 export_dynamic_flag_spec_CXX \
33169 whole_archive_flag_spec_CXX \
33170 compiler_needs_object_CXX \
33171 with_gnu_ld_CXX \
33172 allow_undefined_flag_CXX \
33173 no_undefined_flag_CXX \
33174 hardcode_libdir_flag_spec_CXX \
33175 hardcode_libdir_flag_spec_ld_CXX \
33176 hardcode_libdir_separator_CXX \
33177 fix_srcfile_path_CXX \
33178 exclude_expsyms_CXX \
33179 include_expsyms_CXX \
33180 file_list_spec_CXX \
33181 compiler_lib_search_dirs_CXX \
33182 predep_objects_CXX \
33183 postdep_objects_CXX \
33184 predeps_CXX \
33185 postdeps_CXX \
33186 compiler_lib_search_path_CXX; do
33187     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33188     *[\\\\\\\`\\"\\\$]*)
33189       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33190       ;;
33191     *)
33192       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33193       ;;
33194     esac
33195 done
33196
33197 # Double-quote double-evaled strings.
33198 for var in reload_cmds \
33199 old_postinstall_cmds \
33200 old_postuninstall_cmds \
33201 old_archive_cmds \
33202 extract_expsyms_cmds \
33203 old_archive_from_new_cmds \
33204 old_archive_from_expsyms_cmds \
33205 archive_cmds \
33206 archive_expsym_cmds \
33207 module_cmds \
33208 module_expsym_cmds \
33209 export_symbols_cmds \
33210 prelink_cmds \
33211 postinstall_cmds \
33212 postuninstall_cmds \
33213 finish_cmds \
33214 sys_lib_search_path_spec \
33215 sys_lib_dlsearch_path_spec \
33216 old_archive_cmds_CXX \
33217 old_archive_from_new_cmds_CXX \
33218 old_archive_from_expsyms_cmds_CXX \
33219 archive_cmds_CXX \
33220 archive_expsym_cmds_CXX \
33221 module_cmds_CXX \
33222 module_expsym_cmds_CXX \
33223 export_symbols_cmds_CXX \
33224 prelink_cmds_CXX; do
33225     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
33226     *[\\\\\\\`\\"\\\$]*)
33227       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33228       ;;
33229     *)
33230       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33231       ;;
33232     esac
33233 done
33234
33235 # Fix-up fallback echo if it was mangled by the above quoting rules.
33236 case \$lt_ECHO in
33237 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
33238   ;;
33239 esac
33240
33241 ac_aux_dir='$ac_aux_dir'
33242 xsi_shell='$xsi_shell'
33243 lt_shell_append='$lt_shell_append'
33244
33245 # See if we are running on zsh, and set the options which allow our
33246 # commands through without removal of \ escapes INIT.
33247 if test -n "\${ZSH_VERSION+set}" ; then
33248    setopt NO_GLOB_SUBST
33249 fi
33250
33251
33252     PACKAGE='$PACKAGE'
33253     VERSION='$VERSION'
33254     TIMESTAMP='$TIMESTAMP'
33255     RM='$RM'
33256     ofile='$ofile'
33257
33258
33259
33260
33261
33262
33263 _ACEOF
33264
33265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33266
33267 # Handling of arguments.
33268 for ac_config_target in $ac_config_targets
33269 do
33270   case $ac_config_target in
33271     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33272     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33273     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33274     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33275     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33276     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33277     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33278     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33279     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33280     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33281     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33282     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33283     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33284     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33285     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33286     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33287     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33288     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33289     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33290     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33291     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33292     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33293     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33294     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33295     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33296     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33297     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33298     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33299     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33300     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33301     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33302     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33303     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33304     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33305     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33306     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33307     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33308     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33309     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33310     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33311     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33312     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33313     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33314     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33315     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33316     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33317     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33318     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33319     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33320     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33321
33322   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33323   esac
33324 done
33325
33326
33327 # If the user did not use the arguments to specify the items to instantiate,
33328 # then the envvar interface is used.  Set only those that are not.
33329 # We use the long form for the default assignment because of an extremely
33330 # bizarre bug on SunOS 4.1.3.
33331 if $ac_need_defaults; then
33332   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33333   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33334   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33335 fi
33336
33337 # Have a temporary directory for convenience.  Make it in the build tree
33338 # simply because there is no reason against having it here, and in addition,
33339 # creating and moving files from /tmp can sometimes cause problems.
33340 # Hook for its removal unless debugging.
33341 # Note that there is a small window in which the directory will not be cleaned:
33342 # after its creation but before its name has been assigned to `$tmp'.
33343 $debug ||
33344 {
33345   tmp=
33346   trap 'exit_status=$?
33347   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33348 ' 0
33349   trap 'as_fn_exit 1' 1 2 13 15
33350 }
33351 # Create a (secure) tmp directory for tmp files.
33352
33353 {
33354   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33355   test -n "$tmp" && test -d "$tmp"
33356 }  ||
33357 {
33358   tmp=./conf$$-$RANDOM
33359   (umask 077 && mkdir "$tmp")
33360 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
33361
33362 # Set up the scripts for CONFIG_FILES section.
33363 # No need to generate them if there are no CONFIG_FILES.
33364 # This happens for instance with `./config.status config.h'.
33365 if test -n "$CONFIG_FILES"; then
33366
33367
33368 ac_cr=`echo X | tr X '\015'`
33369 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33370 # But we know of no other shell where ac_cr would be empty at this
33371 # point, so we can use a bashism as a fallback.
33372 if test "x$ac_cr" = x; then
33373   eval ac_cr=\$\'\\r\'
33374 fi
33375 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33376 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33377   ac_cs_awk_cr='\r'
33378 else
33379   ac_cs_awk_cr=$ac_cr
33380 fi
33381
33382 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33383 _ACEOF
33384
33385
33386 {
33387   echo "cat >conf$$subs.awk <<_ACEOF" &&
33388   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33389   echo "_ACEOF"
33390 } >conf$$subs.sh ||
33391   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33392 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33393 ac_delim='%!_!# '
33394 for ac_last_try in false false false false false :; do
33395   . ./conf$$subs.sh ||
33396     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33397
33398   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33399   if test $ac_delim_n = $ac_delim_num; then
33400     break
33401   elif $ac_last_try; then
33402     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
33403   else
33404     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33405   fi
33406 done
33407 rm -f conf$$subs.sh
33408
33409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33410 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33411 _ACEOF
33412 sed -n '
33413 h
33414 s/^/S["/; s/!.*/"]=/
33415 p
33416 g
33417 s/^[^!]*!//
33418 :repl
33419 t repl
33420 s/'"$ac_delim"'$//
33421 t delim
33422 :nl
33423 h
33424 s/\(.\{148\}\)..*/\1/
33425 t more1
33426 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33427 p
33428 n
33429 b repl
33430 :more1
33431 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33432 p
33433 g
33434 s/.\{148\}//
33435 t nl
33436 :delim
33437 h
33438 s/\(.\{148\}\)..*/\1/
33439 t more2
33440 s/["\\]/\\&/g; s/^/"/; s/$/"/
33441 p
33442 b
33443 :more2
33444 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33445 p
33446 g
33447 s/.\{148\}//
33448 t delim
33449 ' <conf$$subs.awk | sed '
33450 /^[^""]/{
33451   N
33452   s/\n//
33453 }
33454 ' >>$CONFIG_STATUS || ac_write_fail=1
33455 rm -f conf$$subs.awk
33456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33457 _ACAWK
33458 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33459   for (key in S) S_is_set[key] = 1
33460   FS = "\a"
33461
33462 }
33463 {
33464   line = $ 0
33465   nfields = split(line, field, "@")
33466   substed = 0
33467   len = length(field[1])
33468   for (i = 2; i < nfields; i++) {
33469     key = field[i]
33470     keylen = length(key)
33471     if (S_is_set[key]) {
33472       value = S[key]
33473       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33474       len += length(value) + length(field[++i])
33475       substed = 1
33476     } else
33477       len += 1 + keylen
33478   }
33479
33480   print line
33481 }
33482
33483 _ACAWK
33484 _ACEOF
33485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33486 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33487   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33488 else
33489   cat
33490 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33491   || as_fn_error "could not setup config files machinery" "$LINENO" 5
33492 _ACEOF
33493
33494 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33495 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33496 # trailing colons and then remove the whole line if VPATH becomes empty
33497 # (actually we leave an empty line to preserve line numbers).
33498 if test "x$srcdir" = x.; then
33499   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33500 s/:*\$(srcdir):*/:/
33501 s/:*\${srcdir}:*/:/
33502 s/:*@srcdir@:*/:/
33503 s/^\([^=]*=[     ]*\):*/\1/
33504 s/:*$//
33505 s/^[^=]*=[       ]*$//
33506 }'
33507 fi
33508
33509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33510 fi # test -n "$CONFIG_FILES"
33511
33512 # Set up the scripts for CONFIG_HEADERS section.
33513 # No need to generate them if there are no CONFIG_HEADERS.
33514 # This happens for instance with `./config.status Makefile'.
33515 if test -n "$CONFIG_HEADERS"; then
33516 cat >"$tmp/defines.awk" <<\_ACAWK ||
33517 BEGIN {
33518 _ACEOF
33519
33520 # Transform confdefs.h into an awk script `defines.awk', embedded as
33521 # here-document in config.status, that substitutes the proper values into
33522 # config.h.in to produce config.h.
33523
33524 # Create a delimiter string that does not exist in confdefs.h, to ease
33525 # handling of long lines.
33526 ac_delim='%!_!# '
33527 for ac_last_try in false false :; do
33528   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
33529   if test -z "$ac_t"; then
33530     break
33531   elif $ac_last_try; then
33532     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
33533   else
33534     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33535   fi
33536 done
33537
33538 # For the awk script, D is an array of macro values keyed by name,
33539 # likewise P contains macro parameters if any.  Preserve backslash
33540 # newline sequences.
33541
33542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33543 sed -n '
33544 s/.\{148\}/&'"$ac_delim"'/g
33545 t rset
33546 :rset
33547 s/^[     ]*#[    ]*define[       ][      ]*/ /
33548 t def
33549 d
33550 :def
33551 s/\\$//
33552 t bsnl
33553 s/["\\]/\\&/g
33554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33555 D["\1"]=" \3"/p
33556 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
33557 d
33558 :bsnl
33559 s/["\\]/\\&/g
33560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
33561 D["\1"]=" \3\\\\\\n"\\/p
33562 t cont
33563 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
33564 t cont
33565 d
33566 :cont
33567 n
33568 s/.\{148\}/&'"$ac_delim"'/g
33569 t clear
33570 :clear
33571 s/\\$//
33572 t bsnlc
33573 s/["\\]/\\&/g; s/^/"/; s/$/"/p
33574 d
33575 :bsnlc
33576 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
33577 b cont
33578 ' <confdefs.h | sed '
33579 s/'"$ac_delim"'/"\\\
33580 "/g' >>$CONFIG_STATUS || ac_write_fail=1
33581
33582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33583   for (key in D) D_is_set[key] = 1
33584   FS = "\a"
33585 }
33586 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
33587   line = \$ 0
33588   split(line, arg, " ")
33589   if (arg[1] == "#") {
33590     defundef = arg[2]
33591     mac1 = arg[3]
33592   } else {
33593     defundef = substr(arg[1], 2)
33594     mac1 = arg[2]
33595   }
33596   split(mac1, mac2, "(") #)
33597   macro = mac2[1]
33598   prefix = substr(line, 1, index(line, defundef) - 1)
33599   if (D_is_set[macro]) {
33600     # Preserve the white space surrounding the "#".
33601     print prefix "define", macro P[macro] D[macro]
33602     next
33603   } else {
33604     # Replace #undef with comments.  This is necessary, for example,
33605     # in the case of _POSIX_SOURCE, which is predefined and required
33606     # on some systems where configure will not decide to define it.
33607     if (defundef == "undef") {
33608       print "/*", prefix defundef, macro, "*/"
33609       next
33610     }
33611   }
33612 }
33613 { print }
33614 _ACAWK
33615 _ACEOF
33616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33617   as_fn_error "could not setup config headers machinery" "$LINENO" 5
33618 fi # test -n "$CONFIG_HEADERS"
33619
33620
33621 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
33622 shift
33623 for ac_tag
33624 do
33625   case $ac_tag in
33626   :[FHLC]) ac_mode=$ac_tag; continue;;
33627   esac
33628   case $ac_mode$ac_tag in
33629   :[FHL]*:*);;
33630   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
33631   :[FH]-) ac_tag=-:-;;
33632   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33633   esac
33634   ac_save_IFS=$IFS
33635   IFS=:
33636   set x $ac_tag
33637   IFS=$ac_save_IFS
33638   shift
33639   ac_file=$1
33640   shift
33641
33642   case $ac_mode in
33643   :L) ac_source=$1;;
33644   :[FH])
33645     ac_file_inputs=
33646     for ac_f
33647     do
33648       case $ac_f in
33649       -) ac_f="$tmp/stdin";;
33650       *) # Look for the file first in the build tree, then in the source tree
33651          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33652          # because $ac_f cannot contain `:'.
33653          test -f "$ac_f" ||
33654            case $ac_f in
33655            [\\/$]*) false;;
33656            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33657            esac ||
33658            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33659       esac
33660       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33661       as_fn_append ac_file_inputs " '$ac_f'"
33662     done
33663
33664     # Let's still pretend it is `configure' which instantiates (i.e., don't
33665     # use $as_me), people would be surprised to read:
33666     #    /* config.h.  Generated by config.status.  */
33667     configure_input='Generated from '`
33668           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33669         `' by configure.'
33670     if test x"$ac_file" != x-; then
33671       configure_input="$ac_file.  $configure_input"
33672       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33673 $as_echo "$as_me: creating $ac_file" >&6;}
33674     fi
33675     # Neutralize special characters interpreted by sed in replacement strings.
33676     case $configure_input in #(
33677     *\&* | *\|* | *\\* )
33678        ac_sed_conf_input=`$as_echo "$configure_input" |
33679        sed 's/[\\\\&|]/\\\\&/g'`;; #(
33680     *) ac_sed_conf_input=$configure_input;;
33681     esac
33682
33683     case $ac_tag in
33684     *:-:* | *:-) cat >"$tmp/stdin" \
33685       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
33686     esac
33687     ;;
33688   esac
33689
33690   ac_dir=`$as_dirname -- "$ac_file" ||
33691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33692          X"$ac_file" : 'X\(//\)[^/]' \| \
33693          X"$ac_file" : 'X\(//\)$' \| \
33694          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33695 $as_echo X"$ac_file" |
33696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33697             s//\1/
33698             q
33699           }
33700           /^X\(\/\/\)[^/].*/{
33701             s//\1/
33702             q
33703           }
33704           /^X\(\/\/\)$/{
33705             s//\1/
33706             q
33707           }
33708           /^X\(\/\).*/{
33709             s//\1/
33710             q
33711           }
33712           s/.*/./; q'`
33713   as_dir="$ac_dir"; as_fn_mkdir_p
33714   ac_builddir=.
33715
33716 case "$ac_dir" in
33717 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33718 *)
33719   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33720   # A ".." for each directory in $ac_dir_suffix.
33721   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33722   case $ac_top_builddir_sub in
33723   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33724   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33725   esac ;;
33726 esac
33727 ac_abs_top_builddir=$ac_pwd
33728 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33729 # for backward compatibility:
33730 ac_top_builddir=$ac_top_build_prefix
33731
33732 case $srcdir in
33733   .)  # We are building in place.
33734     ac_srcdir=.
33735     ac_top_srcdir=$ac_top_builddir_sub
33736     ac_abs_top_srcdir=$ac_pwd ;;
33737   [\\/]* | ?:[\\/]* )  # Absolute name.
33738     ac_srcdir=$srcdir$ac_dir_suffix;
33739     ac_top_srcdir=$srcdir
33740     ac_abs_top_srcdir=$srcdir ;;
33741   *) # Relative name.
33742     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33743     ac_top_srcdir=$ac_top_build_prefix$srcdir
33744     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33745 esac
33746 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33747
33748
33749   case $ac_mode in
33750   :F)
33751   #
33752   # CONFIG_FILE
33753   #
33754
33755   case $INSTALL in
33756   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33757   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33758   esac
33759   ac_MKDIR_P=$MKDIR_P
33760   case $MKDIR_P in
33761   [\\/$]* | ?:[\\/]* ) ;;
33762   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33763   esac
33764 _ACEOF
33765
33766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33767 # If the template does not know about datarootdir, expand it.
33768 # FIXME: This hack should be removed a few years after 2.60.
33769 ac_datarootdir_hack=; ac_datarootdir_seen=
33770 ac_sed_dataroot='
33771 /datarootdir/ {
33772   p
33773   q
33774 }
33775 /@datadir@/p
33776 /@docdir@/p
33777 /@infodir@/p
33778 /@localedir@/p
33779 /@mandir@/p'
33780 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33781 *datarootdir*) ac_datarootdir_seen=yes;;
33782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33784 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33785 _ACEOF
33786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33787   ac_datarootdir_hack='
33788   s&@datadir@&$datadir&g
33789   s&@docdir@&$docdir&g
33790   s&@infodir@&$infodir&g
33791   s&@localedir@&$localedir&g
33792   s&@mandir@&$mandir&g
33793   s&\\\${datarootdir}&$datarootdir&g' ;;
33794 esac
33795 _ACEOF
33796
33797 # Neutralize VPATH when `$srcdir' = `.'.
33798 # Shell code in configure.ac might set extrasub.
33799 # FIXME: do we really want to maintain this feature?
33800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33801 ac_sed_extra="$ac_vpsub
33802 $extrasub
33803 _ACEOF
33804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33805 :t
33806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33807 s|@configure_input@|$ac_sed_conf_input|;t t
33808 s&@top_builddir@&$ac_top_builddir_sub&;t t
33809 s&@top_build_prefix@&$ac_top_build_prefix&;t t
33810 s&@srcdir@&$ac_srcdir&;t t
33811 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33812 s&@top_srcdir@&$ac_top_srcdir&;t t
33813 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33814 s&@builddir@&$ac_builddir&;t t
33815 s&@abs_builddir@&$ac_abs_builddir&;t t
33816 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33817 s&@INSTALL@&$ac_INSTALL&;t t
33818 s&@MKDIR_P@&$ac_MKDIR_P&;t t
33819 $ac_datarootdir_hack
33820 "
33821 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
33822   || as_fn_error "could not create $ac_file" "$LINENO" 5
33823
33824 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33825   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33826   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33828 which seems to be undefined.  Please make sure it is defined." >&5
33829 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33830 which seems to be undefined.  Please make sure it is defined." >&2;}
33831
33832   rm -f "$tmp/stdin"
33833   case $ac_file in
33834   -) cat "$tmp/out" && rm -f "$tmp/out";;
33835   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
33836   esac \
33837   || as_fn_error "could not create $ac_file" "$LINENO" 5
33838  ;;
33839   :H)
33840   #
33841   # CONFIG_HEADER
33842   #
33843   if test x"$ac_file" != x-; then
33844     {
33845       $as_echo "/* $configure_input  */" \
33846       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
33847     } >"$tmp/config.h" \
33848       || as_fn_error "could not create $ac_file" "$LINENO" 5
33849     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
33850       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33851 $as_echo "$as_me: $ac_file is unchanged" >&6;}
33852     else
33853       rm -f "$ac_file"
33854       mv "$tmp/config.h" "$ac_file" \
33855         || as_fn_error "could not create $ac_file" "$LINENO" 5
33856     fi
33857   else
33858     $as_echo "/* $configure_input  */" \
33859       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
33860       || as_fn_error "could not create -" "$LINENO" 5
33861   fi
33862 # Compute "$ac_file"'s index in $config_headers.
33863 _am_arg="$ac_file"
33864 _am_stamp_count=1
33865 for _am_header in $config_headers :; do
33866   case $_am_header in
33867     $_am_arg | $_am_arg:* )
33868       break ;;
33869     * )
33870       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33871   esac
33872 done
33873 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33874 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33875          X"$_am_arg" : 'X\(//\)[^/]' \| \
33876          X"$_am_arg" : 'X\(//\)$' \| \
33877          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33878 $as_echo X"$_am_arg" |
33879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33880             s//\1/
33881             q
33882           }
33883           /^X\(\/\/\)[^/].*/{
33884             s//\1/
33885             q
33886           }
33887           /^X\(\/\/\)$/{
33888             s//\1/
33889             q
33890           }
33891           /^X\(\/\).*/{
33892             s//\1/
33893             q
33894           }
33895           s/.*/./; q'`/stamp-h$_am_stamp_count
33896  ;;
33897
33898   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33899 $as_echo "$as_me: executing $ac_file commands" >&6;}
33900  ;;
33901   esac
33902
33903
33904   case $ac_file$ac_mode in
33905     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
33906 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
33907 ac_prefix_conf_PKG=`echo MagickCore`
33908 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
33909 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
33910 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
33911 if test ".$ac_prefix_conf_INP" = "."; then
33912    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
33913      case "$ac_file" in
33914         *.h) ac_prefix_conf_INP=$ac_file ;;
33915         *)
33916      esac
33917      test ".$ac_prefix_conf_INP" != "." && break
33918    done
33919 fi
33920 if test ".$ac_prefix_conf_INP" = "."; then
33921    case "$ac_prefix_conf_OUT" in
33922       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
33923       ;;
33924       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
33925       ;;
33926       *) ac_prefix_conf_INP=config.h
33927       ;;
33928    esac
33929 fi
33930 if test -z "$ac_prefix_conf_PKG" ; then
33931    as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
33932 else
33933   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
33934      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
33935   fi fi
33936   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
33937 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
33938   if test -f $ac_prefix_conf_INP ; then
33939     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
33940     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
33941     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
33942     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
33943     echo "#endif/" >>conftest.prefix
33944     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
33945     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
33946     echo "#endif/" >> conftest.prefix
33947     # now executing _script on _DEF input to create _OUT output file
33948     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
33949     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
33950     echo ' ' >>$tmp/pconfig.h
33951     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
33952
33953     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
33954     echo ' ' >>$tmp/pconfig.h
33955     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
33956     echo "#endif" >>$tmp/pconfig.h
33957     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
33958       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
33959 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
33960     else
33961       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
33962 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33963          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
33964          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
33965          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
33966 $as_echo X"$ac_prefix_conf_OUT" |
33967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33968             s//\1/
33969             q
33970           }
33971           /^X\(\/\/\)[^/].*/{
33972             s//\1/
33973             q
33974           }
33975           /^X\(\/\/\)$/{
33976             s//\1/
33977             q
33978           }
33979           /^X\(\/\).*/{
33980             s//\1/
33981             q
33982           }
33983           s/.*/./; q'`
33984       as_dir="$ac_dir"; as_fn_mkdir_p
33985       rm -f "$ac_prefix_conf_OUT"
33986       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
33987     fi
33988     cp conftest.prefix _configs.sed
33989   else
33990     as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
33991   fi
33992   rm -f conftest.*
33993 fi
33994  ;;
33995     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33996   # Autoconf 2.62 quotes --file arguments for eval, but not when files
33997   # are listed without --file.  Let's play safe and only enable the eval
33998   # if we detect the quoting.
33999   case $CONFIG_FILES in
34000   *\'*) eval set x "$CONFIG_FILES" ;;
34001   *)   set x $CONFIG_FILES ;;
34002   esac
34003   shift
34004   for mf
34005   do
34006     # Strip MF so we end up with the name of the file.
34007     mf=`echo "$mf" | sed -e 's/:.*$//'`
34008     # Check whether this is an Automake generated Makefile or not.
34009     # We used to match only the files named `Makefile.in', but
34010     # some people rename them; so instead we look at the file content.
34011     # Grep'ing the first line is not enough: some people post-process
34012     # each Makefile.in and add a new line on top of each file to say so.
34013     # Grep'ing the whole file is not good either: AIX grep has a line
34014     # limit of 2048, but all sed's we know have understand at least 4000.
34015     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34016       dirpart=`$as_dirname -- "$mf" ||
34017 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34018          X"$mf" : 'X\(//\)[^/]' \| \
34019          X"$mf" : 'X\(//\)$' \| \
34020          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34021 $as_echo X"$mf" |
34022     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34023             s//\1/
34024             q
34025           }
34026           /^X\(\/\/\)[^/].*/{
34027             s//\1/
34028             q
34029           }
34030           /^X\(\/\/\)$/{
34031             s//\1/
34032             q
34033           }
34034           /^X\(\/\).*/{
34035             s//\1/
34036             q
34037           }
34038           s/.*/./; q'`
34039     else
34040       continue
34041     fi
34042     # Extract the definition of DEPDIR, am__include, and am__quote
34043     # from the Makefile without running `make'.
34044     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34045     test -z "$DEPDIR" && continue
34046     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34047     test -z "am__include" && continue
34048     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34049     # When using ansi2knr, U may be empty or an underscore; expand it
34050     U=`sed -n 's/^U = //p' < "$mf"`
34051     # Find all dependency output files, they are included files with
34052     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34053     # simplest approach to changing $(DEPDIR) to its actual value in the
34054     # expansion.
34055     for file in `sed -n "
34056       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34057          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34058       # Make sure the directory exists.
34059       test -f "$dirpart/$file" && continue
34060       fdir=`$as_dirname -- "$file" ||
34061 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34062          X"$file" : 'X\(//\)[^/]' \| \
34063          X"$file" : 'X\(//\)$' \| \
34064          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34065 $as_echo X"$file" |
34066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34067             s//\1/
34068             q
34069           }
34070           /^X\(\/\/\)[^/].*/{
34071             s//\1/
34072             q
34073           }
34074           /^X\(\/\/\)$/{
34075             s//\1/
34076             q
34077           }
34078           /^X\(\/\).*/{
34079             s//\1/
34080             q
34081           }
34082           s/.*/./; q'`
34083       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34084       # echo "creating $dirpart/$file"
34085       echo '# dummy' > "$dirpart/$file"
34086     done
34087   done
34088 }
34089  ;;
34090     "libtool":C)
34091
34092     # See if we are running on zsh, and set the options which allow our
34093     # commands through without removal of \ escapes.
34094     if test -n "${ZSH_VERSION+set}" ; then
34095       setopt NO_GLOB_SUBST
34096     fi
34097
34098     cfgfile="${ofile}T"
34099     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34100     $RM "$cfgfile"
34101
34102     cat <<_LT_EOF >> "$cfgfile"
34103 #! $SHELL
34104
34105 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34106 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34108 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34109 #
34110 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34111 #                 2006, 2007, 2008 Free Software Foundation, Inc.
34112 #   Written by Gordon Matzigkeit, 1996
34113 #
34114 #   This file is part of GNU Libtool.
34115 #
34116 # GNU Libtool is free software; you can redistribute it and/or
34117 # modify it under the terms of the GNU General Public License as
34118 # published by the Free Software Foundation; either version 2 of
34119 # the License, or (at your option) any later version.
34120 #
34121 # As a special exception to the GNU General Public License,
34122 # if you distribute this file as part of a program or library that
34123 # is built using GNU Libtool, you may include this file under the
34124 # same distribution terms that you use for the rest of that program.
34125 #
34126 # GNU Libtool is distributed in the hope that it will be useful,
34127 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34128 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34129 # GNU General Public License for more details.
34130 #
34131 # You should have received a copy of the GNU General Public License
34132 # along with GNU Libtool; see the file COPYING.  If not, a copy
34133 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34134 # obtained by writing to the Free Software Foundation, Inc.,
34135 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34136
34137
34138 # The names of the tagged configurations supported by this script.
34139 available_tags="CXX "
34140
34141 # ### BEGIN LIBTOOL CONFIG
34142
34143 # A sed program that does not truncate output.
34144 SED=$lt_SED
34145
34146 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34147 Xsed="\$SED -e 1s/^X//"
34148
34149 # A grep program that handles long lines.
34150 GREP=$lt_GREP
34151
34152 # An ERE matcher.
34153 EGREP=$lt_EGREP
34154
34155 # A literal string matcher.
34156 FGREP=$lt_FGREP
34157
34158 # Which release of libtool.m4 was used?
34159 macro_version=$macro_version
34160 macro_revision=$macro_revision
34161
34162 # Assembler program.
34163 AS=$AS
34164
34165 # DLL creation program.
34166 DLLTOOL=$DLLTOOL
34167
34168 # Object dumper program.
34169 OBJDUMP=$OBJDUMP
34170
34171 # Whether or not to build shared libraries.
34172 build_libtool_libs=$enable_shared
34173
34174 # Whether or not to build static libraries.
34175 build_old_libs=$enable_static
34176
34177 # What type of objects to build.
34178 pic_mode=$pic_mode
34179
34180 # Whether or not to optimize for fast installation.
34181 fast_install=$enable_fast_install
34182
34183 # The host system.
34184 host_alias=$host_alias
34185 host=$host
34186 host_os=$host_os
34187
34188 # The build system.
34189 build_alias=$build_alias
34190 build=$build
34191 build_os=$build_os
34192
34193 # A BSD- or MS-compatible name lister.
34194 NM=$lt_NM
34195
34196 # Whether we need soft or hard links.
34197 LN_S=$lt_LN_S
34198
34199 # What is the maximum length of a command?
34200 max_cmd_len=$max_cmd_len
34201
34202 # Object file suffix (normally "o").
34203 objext=$ac_objext
34204
34205 # Executable file suffix (normally "").
34206 exeext=$exeext
34207
34208 # whether the shell understands "unset".
34209 lt_unset=$lt_unset
34210
34211 # turn spaces into newlines.
34212 SP2NL=$lt_lt_SP2NL
34213
34214 # turn newlines into spaces.
34215 NL2SP=$lt_lt_NL2SP
34216
34217 # How to create reloadable object files.
34218 reload_flag=$lt_reload_flag
34219 reload_cmds=$lt_reload_cmds
34220
34221 # Method to check whether dependent libraries are shared objects.
34222 deplibs_check_method=$lt_deplibs_check_method
34223
34224 # Command to use when deplibs_check_method == "file_magic".
34225 file_magic_cmd=$lt_file_magic_cmd
34226
34227 # The archiver.
34228 AR=$lt_AR
34229 AR_FLAGS=$lt_AR_FLAGS
34230
34231 # A symbol stripping program.
34232 STRIP=$lt_STRIP
34233
34234 # Commands used to install an old-style archive.
34235 RANLIB=$lt_RANLIB
34236 old_postinstall_cmds=$lt_old_postinstall_cmds
34237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34238
34239 # A C compiler.
34240 LTCC=$lt_CC
34241
34242 # LTCC compiler flags.
34243 LTCFLAGS=$lt_CFLAGS
34244
34245 # Take the output of nm and produce a listing of raw symbols and C names.
34246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34247
34248 # Transform the output of nm in a proper C declaration.
34249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34250
34251 # Transform the output of nm in a C name address pair.
34252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34253
34254 # Transform the output of nm in a C name address pair when lib prefix is needed.
34255 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34256
34257 # The name of the directory that contains temporary libtool files.
34258 objdir=$objdir
34259
34260 # Shell to use when invoking shell scripts.
34261 SHELL=$lt_SHELL
34262
34263 # An echo program that does not interpret backslashes.
34264 ECHO=$lt_ECHO
34265
34266 # Used to examine libraries when file_magic_cmd begins with "file".
34267 MAGIC_CMD=$MAGIC_CMD
34268
34269 # Must we lock files when doing compilation?
34270 need_locks=$lt_need_locks
34271
34272 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34273 DSYMUTIL=$lt_DSYMUTIL
34274
34275 # Tool to change global to local symbols on Mac OS X.
34276 NMEDIT=$lt_NMEDIT
34277
34278 # Tool to manipulate fat objects and archives on Mac OS X.
34279 LIPO=$lt_LIPO
34280
34281 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34282 OTOOL=$lt_OTOOL
34283
34284 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34285 OTOOL64=$lt_OTOOL64
34286
34287 # Old archive suffix (normally "a").
34288 libext=$libext
34289
34290 # Shared library suffix (normally ".so").
34291 shrext_cmds=$lt_shrext_cmds
34292
34293 # The commands to extract the exported symbol list from a shared archive.
34294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34295
34296 # Variables whose values should be saved in libtool wrapper scripts and
34297 # restored at link time.
34298 variables_saved_for_relink=$lt_variables_saved_for_relink
34299
34300 # Do we need the "lib" prefix for modules?
34301 need_lib_prefix=$need_lib_prefix
34302
34303 # Do we need a version for libraries?
34304 need_version=$need_version
34305
34306 # Library versioning type.
34307 version_type=$version_type
34308
34309 # Shared library runtime path variable.
34310 runpath_var=$runpath_var
34311
34312 # Shared library path variable.
34313 shlibpath_var=$shlibpath_var
34314
34315 # Is shlibpath searched before the hard-coded library search path?
34316 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34317
34318 # Format of library name prefix.
34319 libname_spec=$lt_libname_spec
34320
34321 # List of archive names.  First name is the real one, the rest are links.
34322 # The last name is the one that the linker finds with -lNAME
34323 library_names_spec=$lt_library_names_spec
34324
34325 # The coded name of the library, if different from the real name.
34326 soname_spec=$lt_soname_spec
34327
34328 # Command to use after installation of a shared archive.
34329 postinstall_cmds=$lt_postinstall_cmds
34330
34331 # Command to use after uninstallation of a shared archive.
34332 postuninstall_cmds=$lt_postuninstall_cmds
34333
34334 # Commands used to finish a libtool library installation in a directory.
34335 finish_cmds=$lt_finish_cmds
34336
34337 # As "finish_cmds", except a single script fragment to be evaled but
34338 # not shown.
34339 finish_eval=$lt_finish_eval
34340
34341 # Whether we should hardcode library paths into libraries.
34342 hardcode_into_libs=$hardcode_into_libs
34343
34344 # Compile-time system search path for libraries.
34345 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34346
34347 # Run-time system search path for libraries.
34348 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34349
34350 # Whether dlopen is supported.
34351 dlopen_support=$enable_dlopen
34352
34353 # Whether dlopen of programs is supported.
34354 dlopen_self=$enable_dlopen_self
34355
34356 # Whether dlopen of statically linked programs is supported.
34357 dlopen_self_static=$enable_dlopen_self_static
34358
34359 # Commands to strip libraries.
34360 old_striplib=$lt_old_striplib
34361 striplib=$lt_striplib
34362
34363
34364 # The linker used to build libraries.
34365 LD=$lt_LD
34366
34367 # Commands used to build an old-style archive.
34368 old_archive_cmds=$lt_old_archive_cmds
34369
34370 # A language specific compiler.
34371 CC=$lt_compiler
34372
34373 # Is the compiler the GNU compiler?
34374 with_gcc=$GCC
34375
34376 # Compiler flag to turn off builtin functions.
34377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34378
34379 # How to pass a linker flag through the compiler.
34380 wl=$lt_lt_prog_compiler_wl
34381
34382 # Additional compiler flags for building library objects.
34383 pic_flag=$lt_lt_prog_compiler_pic
34384
34385 # Compiler flag to prevent dynamic linking.
34386 link_static_flag=$lt_lt_prog_compiler_static
34387
34388 # Does compiler simultaneously support -c and -o options?
34389 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34390
34391 # Whether or not to add -lc for building shared libraries.
34392 build_libtool_need_lc=$archive_cmds_need_lc
34393
34394 # Whether or not to disallow shared libs when runtime libs are static.
34395 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
34396
34397 # Compiler flag to allow reflexive dlopens.
34398 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
34399
34400 # Compiler flag to generate shared objects directly from archives.
34401 whole_archive_flag_spec=$lt_whole_archive_flag_spec
34402
34403 # Whether the compiler copes with passing no objects directly.
34404 compiler_needs_object=$lt_compiler_needs_object
34405
34406 # Create an old-style archive from a shared archive.
34407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
34408
34409 # Create a temporary old-style archive to link instead of a shared archive.
34410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
34411
34412 # Commands used to build a shared archive.
34413 archive_cmds=$lt_archive_cmds
34414 archive_expsym_cmds=$lt_archive_expsym_cmds
34415
34416 # Commands used to build a loadable module if different from building
34417 # a shared archive.
34418 module_cmds=$lt_module_cmds
34419 module_expsym_cmds=$lt_module_expsym_cmds
34420
34421 # Whether we are building with GNU ld or not.
34422 with_gnu_ld=$lt_with_gnu_ld
34423
34424 # Flag that allows shared libraries with undefined symbols to be built.
34425 allow_undefined_flag=$lt_allow_undefined_flag
34426
34427 # Flag that enforces no undefined symbols.
34428 no_undefined_flag=$lt_no_undefined_flag
34429
34430 # Flag to hardcode \$libdir into a binary during linking.
34431 # This must work even if \$libdir does not exist
34432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
34433
34434 # If ld is used when linking, flag to hardcode \$libdir into a binary
34435 # during linking.  This must work even if \$libdir does not exist.
34436 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
34437
34438 # Whether we need a single "-rpath" flag with a separated argument.
34439 hardcode_libdir_separator=$lt_hardcode_libdir_separator
34440
34441 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34442 # DIR into the resulting binary.
34443 hardcode_direct=$hardcode_direct
34444
34445 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34446 # DIR into the resulting binary and the resulting library dependency is
34447 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34448 # library is relocated.
34449 hardcode_direct_absolute=$hardcode_direct_absolute
34450
34451 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34452 # into the resulting binary.
34453 hardcode_minus_L=$hardcode_minus_L
34454
34455 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34456 # into the resulting binary.
34457 hardcode_shlibpath_var=$hardcode_shlibpath_var
34458
34459 # Set to "yes" if building a shared library automatically hardcodes DIR
34460 # into the library and all subsequent libraries and executables linked
34461 # against it.
34462 hardcode_automatic=$hardcode_automatic
34463
34464 # Set to yes if linker adds runtime paths of dependent libraries
34465 # to runtime path list.
34466 inherit_rpath=$inherit_rpath
34467
34468 # Whether libtool must link a program against all its dependency libraries.
34469 link_all_deplibs=$link_all_deplibs
34470
34471 # Fix the shell variable \$srcfile for the compiler.
34472 fix_srcfile_path=$lt_fix_srcfile_path
34473
34474 # Set to "yes" if exported symbols are required.
34475 always_export_symbols=$always_export_symbols
34476
34477 # The commands to list exported symbols.
34478 export_symbols_cmds=$lt_export_symbols_cmds
34479
34480 # Symbols that should not be listed in the preloaded symbols.
34481 exclude_expsyms=$lt_exclude_expsyms
34482
34483 # Symbols that must always be exported.
34484 include_expsyms=$lt_include_expsyms
34485
34486 # Commands necessary for linking programs (against libraries) with templates.
34487 prelink_cmds=$lt_prelink_cmds
34488
34489 # Specify filename containing input files.
34490 file_list_spec=$lt_file_list_spec
34491
34492 # How to hardcode a shared library path into an executable.
34493 hardcode_action=$hardcode_action
34494
34495 # The directories searched by this compiler when creating a shared library.
34496 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
34497
34498 # Dependencies to place before and after the objects being linked to
34499 # create a shared library.
34500 predep_objects=$lt_predep_objects
34501 postdep_objects=$lt_postdep_objects
34502 predeps=$lt_predeps
34503 postdeps=$lt_postdeps
34504
34505 # The library search path used internally by the compiler when linking
34506 # a shared library.
34507 compiler_lib_search_path=$lt_compiler_lib_search_path
34508
34509 # ### END LIBTOOL CONFIG
34510
34511 _LT_EOF
34512
34513   case $host_os in
34514   aix3*)
34515     cat <<\_LT_EOF >> "$cfgfile"
34516 # AIX sometimes has problems with the GCC collect2 program.  For some
34517 # reason, if we set the COLLECT_NAMES environment variable, the problems
34518 # vanish in a puff of smoke.
34519 if test "X${COLLECT_NAMES+set}" != Xset; then
34520   COLLECT_NAMES=
34521   export COLLECT_NAMES
34522 fi
34523 _LT_EOF
34524     ;;
34525   esac
34526
34527
34528 ltmain="$ac_aux_dir/ltmain.sh"
34529
34530
34531   # We use sed instead of cat because bash on DJGPP gets confused if
34532   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
34533   # text mode, it properly converts lines to CR/LF.  This bash problem
34534   # is reportedly fixed, but why not run on old versions too?
34535   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
34536     || (rm -f "$cfgfile"; exit 1)
34537
34538   case $xsi_shell in
34539   yes)
34540     cat << \_LT_EOF >> "$cfgfile"
34541
34542 # func_dirname file append nondir_replacement
34543 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
34544 # otherwise set result to NONDIR_REPLACEMENT.
34545 func_dirname ()
34546 {
34547   case ${1} in
34548     */*) func_dirname_result="${1%/*}${2}" ;;
34549     *  ) func_dirname_result="${3}" ;;
34550   esac
34551 }
34552
34553 # func_basename file
34554 func_basename ()
34555 {
34556   func_basename_result="${1##*/}"
34557 }
34558
34559 # func_dirname_and_basename file append nondir_replacement
34560 # perform func_basename and func_dirname in a single function
34561 # call:
34562 #   dirname:  Compute the dirname of FILE.  If nonempty,
34563 #             add APPEND to the result, otherwise set result
34564 #             to NONDIR_REPLACEMENT.
34565 #             value returned in "$func_dirname_result"
34566 #   basename: Compute filename of FILE.
34567 #             value retuned in "$func_basename_result"
34568 # Implementation must be kept synchronized with func_dirname
34569 # and func_basename. For efficiency, we do not delegate to
34570 # those functions but instead duplicate the functionality here.
34571 func_dirname_and_basename ()
34572 {
34573   case ${1} in
34574     */*) func_dirname_result="${1%/*}${2}" ;;
34575     *  ) func_dirname_result="${3}" ;;
34576   esac
34577   func_basename_result="${1##*/}"
34578 }
34579
34580 # func_stripname prefix suffix name
34581 # strip PREFIX and SUFFIX off of NAME.
34582 # PREFIX and SUFFIX must not contain globbing or regex special
34583 # characters, hashes, percent signs, but SUFFIX may contain a leading
34584 # dot (in which case that matches only a dot).
34585 func_stripname ()
34586 {
34587   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
34588   # positional parameters, so assign one to ordinary parameter first.
34589   func_stripname_result=${3}
34590   func_stripname_result=${func_stripname_result#"${1}"}
34591   func_stripname_result=${func_stripname_result%"${2}"}
34592 }
34593
34594 # func_opt_split
34595 func_opt_split ()
34596 {
34597   func_opt_split_opt=${1%%=*}
34598   func_opt_split_arg=${1#*=}
34599 }
34600
34601 # func_lo2o object
34602 func_lo2o ()
34603 {
34604   case ${1} in
34605     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
34606     *)    func_lo2o_result=${1} ;;
34607   esac
34608 }
34609
34610 # func_xform libobj-or-source
34611 func_xform ()
34612 {
34613   func_xform_result=${1%.*}.lo
34614 }
34615
34616 # func_arith arithmetic-term...
34617 func_arith ()
34618 {
34619   func_arith_result=$(( $* ))
34620 }
34621
34622 # func_len string
34623 # STRING may not start with a hyphen.
34624 func_len ()
34625 {
34626   func_len_result=${#1}
34627 }
34628
34629 _LT_EOF
34630     ;;
34631   *) # Bourne compatible functions.
34632     cat << \_LT_EOF >> "$cfgfile"
34633
34634 # func_dirname file append nondir_replacement
34635 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
34636 # otherwise set result to NONDIR_REPLACEMENT.
34637 func_dirname ()
34638 {
34639   # Extract subdirectory from the argument.
34640   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
34641   if test "X$func_dirname_result" = "X${1}"; then
34642     func_dirname_result="${3}"
34643   else
34644     func_dirname_result="$func_dirname_result${2}"
34645   fi
34646 }
34647
34648 # func_basename file
34649 func_basename ()
34650 {
34651   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
34652 }
34653
34654
34655 # func_stripname prefix suffix name
34656 # strip PREFIX and SUFFIX off of NAME.
34657 # PREFIX and SUFFIX must not contain globbing or regex special
34658 # characters, hashes, percent signs, but SUFFIX may contain a leading
34659 # dot (in which case that matches only a dot).
34660 # func_strip_suffix prefix name
34661 func_stripname ()
34662 {
34663   case ${2} in
34664     .*) func_stripname_result=`$ECHO "X${3}" \
34665            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
34666     *)  func_stripname_result=`$ECHO "X${3}" \
34667            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
34668   esac
34669 }
34670
34671 # sed scripts:
34672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
34673 my_sed_long_arg='1s/^-[^=]*=//'
34674
34675 # func_opt_split
34676 func_opt_split ()
34677 {
34678   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
34679   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
34680 }
34681
34682 # func_lo2o object
34683 func_lo2o ()
34684 {
34685   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
34686 }
34687
34688 # func_xform libobj-or-source
34689 func_xform ()
34690 {
34691   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
34692 }
34693
34694 # func_arith arithmetic-term...
34695 func_arith ()
34696 {
34697   func_arith_result=`expr "$@"`
34698 }
34699
34700 # func_len string
34701 # STRING may not start with a hyphen.
34702 func_len ()
34703 {
34704   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
34705 }
34706
34707 _LT_EOF
34708 esac
34709
34710 case $lt_shell_append in
34711   yes)
34712     cat << \_LT_EOF >> "$cfgfile"
34713
34714 # func_append var value
34715 # Append VALUE to the end of shell variable VAR.
34716 func_append ()
34717 {
34718   eval "$1+=\$2"
34719 }
34720 _LT_EOF
34721     ;;
34722   *)
34723     cat << \_LT_EOF >> "$cfgfile"
34724
34725 # func_append var value
34726 # Append VALUE to the end of shell variable VAR.
34727 func_append ()
34728 {
34729   eval "$1=\$$1\$2"
34730 }
34731
34732 _LT_EOF
34733     ;;
34734   esac
34735
34736
34737   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
34738     || (rm -f "$cfgfile"; exit 1)
34739
34740   mv -f "$cfgfile" "$ofile" ||
34741     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34742   chmod +x "$ofile"
34743
34744
34745     cat <<_LT_EOF >> "$ofile"
34746
34747 # ### BEGIN LIBTOOL TAG CONFIG: CXX
34748
34749 # The linker used to build libraries.
34750 LD=$lt_LD_CXX
34751
34752 # Commands used to build an old-style archive.
34753 old_archive_cmds=$lt_old_archive_cmds_CXX
34754
34755 # A language specific compiler.
34756 CC=$lt_compiler_CXX
34757
34758 # Is the compiler the GNU compiler?
34759 with_gcc=$GCC_CXX
34760
34761 # Compiler flag to turn off builtin functions.
34762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
34763
34764 # How to pass a linker flag through the compiler.
34765 wl=$lt_lt_prog_compiler_wl_CXX
34766
34767 # Additional compiler flags for building library objects.
34768 pic_flag=$lt_lt_prog_compiler_pic_CXX
34769
34770 # Compiler flag to prevent dynamic linking.
34771 link_static_flag=$lt_lt_prog_compiler_static_CXX
34772
34773 # Does compiler simultaneously support -c and -o options?
34774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
34775
34776 # Whether or not to add -lc for building shared libraries.
34777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
34778
34779 # Whether or not to disallow shared libs when runtime libs are static.
34780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
34781
34782 # Compiler flag to allow reflexive dlopens.
34783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
34784
34785 # Compiler flag to generate shared objects directly from archives.
34786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
34787
34788 # Whether the compiler copes with passing no objects directly.
34789 compiler_needs_object=$lt_compiler_needs_object_CXX
34790
34791 # Create an old-style archive from a shared archive.
34792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
34793
34794 # Create a temporary old-style archive to link instead of a shared archive.
34795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
34796
34797 # Commands used to build a shared archive.
34798 archive_cmds=$lt_archive_cmds_CXX
34799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
34800
34801 # Commands used to build a loadable module if different from building
34802 # a shared archive.
34803 module_cmds=$lt_module_cmds_CXX
34804 module_expsym_cmds=$lt_module_expsym_cmds_CXX
34805
34806 # Whether we are building with GNU ld or not.
34807 with_gnu_ld=$lt_with_gnu_ld_CXX
34808
34809 # Flag that allows shared libraries with undefined symbols to be built.
34810 allow_undefined_flag=$lt_allow_undefined_flag_CXX
34811
34812 # Flag that enforces no undefined symbols.
34813 no_undefined_flag=$lt_no_undefined_flag_CXX
34814
34815 # Flag to hardcode \$libdir into a binary during linking.
34816 # This must work even if \$libdir does not exist
34817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
34818
34819 # If ld is used when linking, flag to hardcode \$libdir into a binary
34820 # during linking.  This must work even if \$libdir does not exist.
34821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
34822
34823 # Whether we need a single "-rpath" flag with a separated argument.
34824 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
34825
34826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34827 # DIR into the resulting binary.
34828 hardcode_direct=$hardcode_direct_CXX
34829
34830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
34831 # DIR into the resulting binary and the resulting library dependency is
34832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
34833 # library is relocated.
34834 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
34835
34836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
34837 # into the resulting binary.
34838 hardcode_minus_L=$hardcode_minus_L_CXX
34839
34840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
34841 # into the resulting binary.
34842 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
34843
34844 # Set to "yes" if building a shared library automatically hardcodes DIR
34845 # into the library and all subsequent libraries and executables linked
34846 # against it.
34847 hardcode_automatic=$hardcode_automatic_CXX
34848
34849 # Set to yes if linker adds runtime paths of dependent libraries
34850 # to runtime path list.
34851 inherit_rpath=$inherit_rpath_CXX
34852
34853 # Whether libtool must link a program against all its dependency libraries.
34854 link_all_deplibs=$link_all_deplibs_CXX
34855
34856 # Fix the shell variable \$srcfile for the compiler.
34857 fix_srcfile_path=$lt_fix_srcfile_path_CXX
34858
34859 # Set to "yes" if exported symbols are required.
34860 always_export_symbols=$always_export_symbols_CXX
34861
34862 # The commands to list exported symbols.
34863 export_symbols_cmds=$lt_export_symbols_cmds_CXX
34864
34865 # Symbols that should not be listed in the preloaded symbols.
34866 exclude_expsyms=$lt_exclude_expsyms_CXX
34867
34868 # Symbols that must always be exported.
34869 include_expsyms=$lt_include_expsyms_CXX
34870
34871 # Commands necessary for linking programs (against libraries) with templates.
34872 prelink_cmds=$lt_prelink_cmds_CXX
34873
34874 # Specify filename containing input files.
34875 file_list_spec=$lt_file_list_spec_CXX
34876
34877 # How to hardcode a shared library path into an executable.
34878 hardcode_action=$hardcode_action_CXX
34879
34880 # The directories searched by this compiler when creating a shared library.
34881 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
34882
34883 # Dependencies to place before and after the objects being linked to
34884 # create a shared library.
34885 predep_objects=$lt_predep_objects_CXX
34886 postdep_objects=$lt_postdep_objects_CXX
34887 predeps=$lt_predeps_CXX
34888 postdeps=$lt_postdeps_CXX
34889
34890 # The library search path used internally by the compiler when linking
34891 # a shared library.
34892 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
34893
34894 # ### END LIBTOOL TAG CONFIG: CXX
34895 _LT_EOF
34896
34897  ;;
34898     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
34899     "Magick-config.in":C) chmod +x magick/Magick-config ;;
34900     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
34901     "Wand-config.in":C) chmod +x wand/Wand-config ;;
34902     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
34903     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
34904
34905   esac
34906 done # for ac_tag
34907
34908
34909 as_fn_exit 0
34910 _ACEOF
34911 ac_clean_files=$ac_clean_files_save
34912
34913 test $ac_write_fail = 0 ||
34914   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
34915
34916
34917 # configure is writing to config.log, and then calls config.status.
34918 # config.status does its own redirection, appending to config.log.
34919 # Unfortunately, on DOS this fails, as config.log is still kept open
34920 # by configure, so config.status won't be able to write to it; its
34921 # output is simply discarded.  So we exec the FD to /dev/null,
34922 # effectively closing config.log, so it can be properly (re)opened and
34923 # appended to by config.status.  When coming back to configure, we
34924 # need to make the FD available again.
34925 if test "$no_create" != yes; then
34926   ac_cs_success=:
34927   ac_config_status_args=
34928   test "$silent" = yes &&
34929     ac_config_status_args="$ac_config_status_args --quiet"
34930   exec 5>/dev/null
34931   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34932   exec 5>>config.log
34933   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34934   # would make configure fail if this is the last instruction.
34935   $ac_cs_success || as_fn_exit $?
34936 fi
34937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34938   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
34939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
34940 fi
34941
34942
34943 rm -f magick-version
34944
34945 result_dejavu_font_dir='none'
34946 if test "${dejavu_font_dir}x" != 'x'; then
34947     result_dejavu_font_dir=$dejavu_font_dir
34948 fi
34949
34950 result_ghostscript_font_dir='none'
34951 if test "${ghostscript_font_dir}x" != 'x'; then
34952     result_ghostscript_font_dir=$ghostscript_font_dir
34953 fi
34954
34955 result_windows_font_dir='none'
34956 if test "${windows_font_dir}x" != 'x'; then
34957     result_windows_font_dir=${windows_font_dir}
34958 fi
34959
34960 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
34961 ImageMagick is configured as follows. Please verify that this configuration
34962 matches your expectations.
34963
34964 Host system type: $host
34965 Build system type: $build
34966
34967                   Option                        Value
34968 -------------------------------------------------------------------------------
34969 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
34970 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
34971 Module support    --with-modules=$with_modules          $with_modules
34972 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
34973 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
34974 High Dynamic Range Imagery
34975                   --enable-hdri=$enable_hdri            $enable_hdri
34976
34977 Delegate Configuration:
34978 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
34979 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
34980 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
34981 DJVU              --with-djvu=$with_djvu                $have_djvu
34982 DPS               --with-dps=$with_dps          $have_dps
34983 FFTW              --with-fftw=$with_fftw                $have_fftw
34984 FlashPIX          --with-fpx=$with_fpx          $have_fpx
34985 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
34986 FreeType          --with-freetype=$with_freetype                $have_freetype
34987 GhostPCL          None                          $PCLDelegate ($PCLVersion)
34988 GhostXPS          None                          $XPSDelegate ($XPSVersion)
34989 Ghostscript       None                          $PSDelegate ($GSVersion)
34990 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
34991 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
34992 Graphviz          --with-gvc=$with_gvc          $have_gvc
34993 JBIG              --with-jbig=$with_jbig                $have_jbig
34994 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
34995 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
34996 LCMS              --with-lcms=$with_lcms                $have_lcms
34997 LQR               --with-lqr=$with_lqr          $have_lqr
34998 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
34999 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35000 PERL              --with-perl=$with_perl                $have_perl
35001 PNG               --with-png=$with_png          $have_png
35002 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35003 TIFF              --with-tiff=$with_tiff                $have_tiff
35004 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35005 WMF               --with-wmf=$with_wmf          $have_wmf
35006 X11               --with-x=$with_x                      $have_x
35007 XML               --with-xml=$with_xml          $have_xml
35008 ZLIB              --with-zlib=$with_zlib                $have_zlib
35009
35010 X11 Configuration:
35011       X_CFLAGS        = $X_CFLAGS
35012       X_PRE_LIBS      = $X_PRE_LIBS
35013       X_LIBS          = $X_LIBS
35014       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35015
35016 Options used to compile and link:
35017   PREFIX          = $PREFIX_DIR
35018   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35019   VERSION         = $PACKAGE_VERSION
35020   CC              = $CC
35021   CFLAGS          = $CFLAGS
35022   CPPFLAGS        = $MAGICK_CPPFLAGS
35023   PCFLAGS         = $MAGICK_PCFLAGS
35024   DEFS            = $DEFS
35025   LDFLAGS         = $LDFLAGS
35026   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35027   LIBS            = $MAGICK_LIBS
35028   CXX             = $CXX
35029   CXXFLAGS        = $CXXFLAGS
35030 " >&5
35031 $as_echo "
35032 ImageMagick is configured as follows. Please verify that this configuration
35033 matches your expectations.
35034
35035 Host system type: $host
35036 Build system type: $build
35037
35038                   Option                        Value
35039 -------------------------------------------------------------------------------
35040 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35041 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35042 Module support    --with-modules=$with_modules          $with_modules
35043 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35044 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35045 High Dynamic Range Imagery
35046                   --enable-hdri=$enable_hdri            $enable_hdri
35047
35048 Delegate Configuration:
35049 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35050 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35051 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35052 DJVU              --with-djvu=$with_djvu                $have_djvu
35053 DPS               --with-dps=$with_dps          $have_dps
35054 FFTW              --with-fftw=$with_fftw                $have_fftw
35055 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35056 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35057 FreeType          --with-freetype=$with_freetype                $have_freetype
35058 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35059 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35060 Ghostscript       None                          $PSDelegate ($GSVersion)
35061 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35062 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35063 Graphviz          --with-gvc=$with_gvc          $have_gvc
35064 JBIG              --with-jbig=$with_jbig                $have_jbig
35065 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35066 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35067 LCMS              --with-lcms=$with_lcms                $have_lcms
35068 LQR               --with-lqr=$with_lqr          $have_lqr
35069 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35070 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35071 PERL              --with-perl=$with_perl                $have_perl
35072 PNG               --with-png=$with_png          $have_png
35073 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35074 TIFF              --with-tiff=$with_tiff                $have_tiff
35075 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35076 WMF               --with-wmf=$with_wmf          $have_wmf
35077 X11               --with-x=$with_x                      $have_x
35078 XML               --with-xml=$with_xml          $have_xml
35079 ZLIB              --with-zlib=$with_zlib                $have_zlib
35080
35081 X11 Configuration:
35082       X_CFLAGS        = $X_CFLAGS
35083       X_PRE_LIBS      = $X_PRE_LIBS
35084       X_LIBS          = $X_LIBS
35085       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35086
35087 Options used to compile and link:
35088   PREFIX          = $PREFIX_DIR
35089   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35090   VERSION         = $PACKAGE_VERSION
35091   CC              = $CC
35092   CFLAGS          = $CFLAGS
35093   CPPFLAGS        = $MAGICK_CPPFLAGS
35094   PCFLAGS         = $MAGICK_PCFLAGS
35095   DEFS            = $DEFS
35096   LDFLAGS         = $LDFLAGS
35097   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35098   LIBS            = $MAGICK_LIBS
35099   CXX             = $CXX
35100   CXXFLAGS        = $CXXFLAGS
35101 " >&6; }