]> granicus.if.org Git - imagemagick/blob - configure
(no commit message)
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
4 #
5 # Report bugs to <http://www.imagemagick.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.4'
709 PACKAGE_STRING='ImageMagick 6.6.4'
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_FEATURES
758 MAGICK_LIBS
759 MAGICK_LDFLAGS
760 MAGICK_PCFLAGS
761 MAGICK_CPPFLAGS
762 MAGICK_CXXFLAGS
763 MAGICK_CFLAGS
764 MAGICK_DEP_LIBS
765 MAGICK_LTDLDEPS
766 MAGICK_LIBLTDL
767 OSX_GCOV_LDFLAG
768 DELEGATES
769 MAGICKCORE_PATH
770 PERL_SUPPORTS_DESTDIR
771 WITH_PERL_DYNAMIC_FALSE
772 WITH_PERL_DYNAMIC_TRUE
773 WITH_PERL_STATIC_FALSE
774 WITH_PERL_STATIC_TRUE
775 WITH_PERL_FALSE
776 WITH_PERL_TRUE
777 PERL_VERSION
778 GSVersion
779 GSPSDevice
780 GSPDFDevice
781 GSMonoDevice
782 GSEPSDevice
783 GSColorDevice
784 GSCMYKDevice
785 GSAlphaDevice
786 XPSVersion
787 XPSCMYKDevice
788 XPSColorDevice
789 XPSMonoDevice
790 PCLVersion
791 PCLCMYKDevice
792 PCLColorDevice
793 PCLMonoDevice
794 ZIP_DELEGATE_FALSE
795 ZIP_DELEGATE_TRUE
796 ZIP
797 P7ZIP_DELEGATE_FALSE
798 P7ZIP_DELEGATE_TRUE
799 P7ZIP
800 RPM_DELEGATE_FALSE
801 RPM_DELEGATE_TRUE
802 RPM
803 PERL
804 TAR
805 ShowImageDelegate
806 type_include_files
807 ghostscript_font_dir
808 windows_font_dir
809 dejavu_font_dir
810 PrintDelegate
811 ZipDelegate
812 XPSDelegate
813 WWWDecodeDelegate
814 WMFDecodeDelegate
815 WEBPDelegate
816 UniconvertorDelegate
817 TXTDelegate
818 SCANDecodeDelegate
819 RSVGDecodeDelegate
820 RMDelegate
821 RLEEncodeDelegate
822 PSDelegate
823 POVDelegate
824 PGPDecodeDelegate
825 PCLDelegate
826 MVDelegate
827 MrSIDDecodeDelegate
828 MPEGEncodeDelegate
829 MPEGDecodeDelegate
830 MANDelegate
831 LaunchDelegate
832 LZWEncodeDelegate
833 LZWDecodeDelegate
834 LPRDelegate
835 LPDelegate
836 ILBMEncodeDelegate
837 ILBMDecodeDelegate
838 HTMLDecodeDelegate
839 HPGLDecodeDelegate
840 HDRDecodeDelegate
841 GnuplotDecodeDelegate
842 MogrifyDelegate
843 DisplayDelegate
844 ConvertDelegate
845 FIGDecodeDelegate
846 EditorDelegate
847 EchoDelegate
848 DVIDecodeDelegate
849 GVCDecodeDelegate
850 DNGDecodeDelegate
851 CatDelegate
852 CGMDecodeDelegate
853 BrowseDelegate
854 BZIPDelegate
855 BlenderDecodeDelegate
856 AVIDecodeDelegate
857 AutotraceDecodeDelegate
858 SHARE_CONFIGURE_PATH
859 SHARE_PATH
860 DOCUMENTATION_PATH
861 FILTER_PATH
862 CODER_PATH
863 CONFIGURE_PATH
864 LIBRARY_PATH
865 EXECUTABLE_PATH
866 PERLMAINCC
867 XML_LIBS
868 XML_DELEGATE_FALSE
869 XML_DELEGATE_TRUE
870 xml2_config
871 WMF_LIBS
872 WMF_DELEGATE_FALSE
873 WMF_DELEGATE_TRUE
874 TIFF_LIBS
875 TIFF_DELEGATE_FALSE
876 TIFF_DELEGATE_TRUE
877 CAIRO_DELEGATE_FALSE
878 CAIRO_DELEGATE_TRUE
879 RSVG_DELEGATE_FALSE
880 RSVG_DELEGATE_TRUE
881 CAIRO_SVG_LIBS
882 CAIRO_SVG_CFLAGS
883 RSVG_LIBS
884 RSVG_CFLAGS
885 PNG_LIBS
886 PNG_DELEGATE_FALSE
887 PNG_DELEGATE_TRUE
888 OPENEXR_DELEGATE_FALSE
889 OPENEXR_DELEGATE_TRUE
890 OPENEXR_LIBS
891 OPENEXR_CFLAGS
892 LQR_DELEGATE_FALSE
893 LQR_DELEGATE_TRUE
894 LQR_LIBS
895 LQR_CFLAGS
896 LCMS_LIBS
897 LCMS_DELEGATE_FALSE
898 LCMS_DELEGATE_TRUE
899 JP2_LIBS
900 JP2_DELEGATE_FALSE
901 JP2_DELEGATE_TRUE
902 JPEG_LIBS
903 JPEG_DELEGATE_FALSE
904 JPEG_DELEGATE_TRUE
905 JBIG_LIBS
906 JBIG_DELEGATE_FALSE
907 JBIG_DELEGATE_TRUE
908 GVC_DELEGATE_FALSE
909 GVC_DELEGATE_TRUE
910 GVC_LIBS
911 GVC_CFLAGS
912 GS_LIBS
913 GS_DELEGATE_FALSE
914 GS_DELEGATE_TRUE
915 FREETYPE_LIBS
916 FREETYPE_DELEGATE_FALSE
917 FREETYPE_DELEGATE_TRUE
918 freetype_config
919 FONTCONFIG_DELEGATE_FALSE
920 FONTCONFIG_DELEGATE_TRUE
921 FONTCONFIG_LIBS
922 FONTCONFIG_CFLAGS
923 FPX_LIBS
924 FPX_DELEGATE_FALSE
925 FPX_DELEGATE_TRUE
926 FFTW_LIBS
927 FFTW_DELEGATE_FALSE
928 FFTW_DELEGATE_TRUE
929 DJVU_LIBS
930 DJVU_DELEGATE_FALSE
931 DJVU_DELEGATE_TRUE
932 DPS_LIBS
933 DPS_DELEGATE_FALSE
934 DPS_DELEGATE_TRUE
935 AUTOTRACE_DELEGATE_FALSE
936 AUTOTRACE_DELEGATE_TRUE
937 AUTOTRACE_LIBS
938 AUTOTRACE_CFLAGS
939 LIB_DL
940 ZLIB_LIBS
941 ZLIB_DELEGATE_FALSE
942 ZLIB_DELEGATE_TRUE
943 XEXT_LIBS
944 X11_LIBS
945 X11_DELEGATE_FALSE
946 X11_DELEGATE_TRUE
947 X_EXTRA_LIBS
948 X_LIBS
949 X_PRE_LIBS
950 X_CFLAGS
951 XMKMF
952 BZLIB_LIBS
953 BZLIB_DELEGATE_FALSE
954 BZLIB_DELEGATE_TRUE
955 CCMALLOCDelegate
956 UMEM_LIBS
957 HasUMEM_FALSE
958 HasUMEM_TRUE
959 THREAD_LIBS
960 GOMP_LIBS
961 WITH_MAGICK_PLUS_PLUS_FALSE
962 WITH_MAGICK_PLUS_PLUS_TRUE
963 OPENMP_CXXFLAGS
964 MATH_LIBS
965 POW_LIB
966 LIBOBJS
967 UINTPTR_T
968 UINTMAX_T
969 UINT64_T
970 INT64_T
971 UINT32_T
972 INT32_T
973 UINT16_T
974 INT16_T
975 UINT8_T
976 INT8_T
977 LIBRARY_EXTRA_CPPFLAGS
978 MODULE_EXTRA_CPPFLAGS
979 LIBSTDCLDFLAGS
980 PERL_MAKE_OPTIONS
981 QUANTUM_DEPTH
982 MAINT
983 MAINTAINER_MODE_FALSE
984 MAINTAINER_MODE_TRUE
985 MAGICK_HDRI
986 DLLDFLAGS
987 WITH_LTDL_FALSE
988 WITH_LTDL_TRUE
989 WITH_MODULES_FALSE
990 WITH_MODULES_TRUE
991 WITH_SHARED_LIBS_FALSE
992 WITH_SHARED_LIBS_TRUE
993 LTDLOPEN
994 LT_CONFIG_H
995 CONVENIENCE_LTDL_FALSE
996 CONVENIENCE_LTDL_TRUE
997 INSTALL_LTDL_FALSE
998 INSTALL_LTDL_TRUE
999 ARGZ_H
1000 sys_symbol_underscore
1001 LIBADD_DL
1002 LT_DLPREOPEN
1003 LIBADD_DLD_LINK
1004 LIBADD_SHL_LOAD
1005 LIBADD_DLOPEN
1006 LT_DLLOADERS
1007 INCLTDL
1008 LTDLINCL
1009 LTDLDEPS
1010 LIBLTDL
1011 LIBTOOL_DEPS
1012 CXXCPP
1013 OTOOL64
1014 OTOOL
1015 LIPO
1016 NMEDIT
1017 DSYMUTIL
1018 lt_ECHO
1019 RANLIB
1020 AR
1021 NM
1022 ac_ct_DUMPBIN
1023 DUMPBIN
1024 LIBTOOL
1025 OBJDUMP
1026 DLLTOOL
1027 AS
1028 LFS_CPPFLAGS
1029 CL_LIBS
1030 CL_CFLAGS
1031 OPENMP_CFLAGS
1032 PTHREAD_CFLAGS
1033 PTHREAD_LIBS
1034 PTHREAD_CC
1035 ax_pthread_config
1036 WinPathScript
1037 USING_CL_FALSE
1038 USING_CL_TRUE
1039 CYGWIN_BUILD_FALSE
1040 CYGWIN_BUILD_TRUE
1041 WIN32_NATIVE_BUILD_FALSE
1042 WIN32_NATIVE_BUILD_TRUE
1043 WINGDI32_DELEGATE_FALSE
1044 WINGDI32_DELEGATE_TRUE
1045 GDI32_LIBS
1046 PKG_CONFIG
1047 LN_S
1048 LD
1049 FGREP
1050 SED
1051 am__fastdepCXX_FALSE
1052 am__fastdepCXX_TRUE
1053 CXXDEPMODE
1054 ac_ct_CXX
1055 CXXFLAGS
1056 CXX
1057 EGREP
1058 GREP
1059 CPP
1060 am__fastdepCC_FALSE
1061 am__fastdepCC_TRUE
1062 CCDEPMODE
1063 AMDEPBACKSLASH
1064 AMDEP_FALSE
1065 AMDEP_TRUE
1066 am__quote
1067 am__include
1068 DEPDIR
1069 OBJEXT
1070 EXEEXT
1071 ac_ct_CC
1072 CPPFLAGS
1073 LDFLAGS
1074 CFLAGS
1075 CC
1076 DIRSEP
1077 MAGICK_FILTER_MODULE_PATH
1078 MAGICK_CONFIGURE_BUILD_PATH
1079 MAGICK_CONFIGURE_SRC_PATH
1080 MAGICK_CODER_MODULE_PATH
1081 MAN_DIR
1082 INFO_DIR
1083 PERSISTINCLUDE_DIR
1084 INCLUDE_DIR
1085 LIB_DIR
1086 LOCALSTATE_DIR
1087 SHAREDSTATE_DIR
1088 SYSCONF_DIR
1089 DATA_DIR
1090 LIBEXEC_DIR
1091 SBIN_DIR
1092 BIN_DIR
1093 EXEC_PREFIX_DIR
1094 PREFIX_DIR
1095 CONFIG_STATUS_DEPENDENCIES
1096 MAGICK_LIB_VERSION_NUMBER
1097 MAGICK_LIB_VERSION_TEXT
1098 MAGICK_LIB_VERSION
1099 AM_BACKSLASH
1100 AM_DEFAULT_VERBOSITY
1101 am__untar
1102 am__tar
1103 AMTAR
1104 am__leading_dot
1105 SET_MAKE
1106 AWK
1107 mkdir_p
1108 MKDIR_P
1109 INSTALL_STRIP_PROGRAM
1110 STRIP
1111 install_sh
1112 MAKEINFO
1113 AUTOHEADER
1114 AUTOMAKE
1115 AUTOCONF
1116 ACLOCAL
1117 VERSION
1118 PACKAGE
1119 CYGPATH_W
1120 am__isrc
1121 INSTALL_DATA
1122 INSTALL_SCRIPT
1123 INSTALL_PROGRAM
1124 PACKAGE_VERSION_ADDENDUM
1125 PACKAGE_RELEASE_DATE
1126 PACKAGE_LIB_VERSION_NUMBER
1127 PACKAGE_LIB_VERSION
1128 PACKAGE_CHANGE_DATE
1129 PACKAGE_RELEASE
1130 MAGICK_LIBRARY_VERSION_INFO
1131 MAGICK_LIBRARY_CURRENT_MIN
1132 MAGICK_LIBRARY_AGE
1133 MAGICK_LIBRARY_REVISION
1134 MAGICK_LIBRARY_CURRENT
1135 MAGICK_TARGET_OS
1136 MAGICK_TARGET_VENDOR
1137 MAGICK_TARGET_CPU
1138 target_os
1139 target_vendor
1140 target_cpu
1141 target
1142 host_os
1143 host_vendor
1144 host_cpu
1145 host
1146 build_os
1147 build_vendor
1148 build_cpu
1149 build
1150 CONFIGURE_ARGS
1151 DISTCHECK_CONFIG_FLAGS
1152 target_alias
1153 host_alias
1154 build_alias
1155 LIBS
1156 ECHO_T
1157 ECHO_N
1158 ECHO_C
1159 DEFS
1160 mandir
1161 localedir
1162 libdir
1163 psdir
1164 pdfdir
1165 dvidir
1166 htmldir
1167 infodir
1168 docdir
1169 oldincludedir
1170 includedir
1171 localstatedir
1172 sharedstatedir
1173 sysconfdir
1174 datadir
1175 datarootdir
1176 libexecdir
1177 sbindir
1178 bindir
1179 program_transform_name
1180 prefix
1181 exec_prefix
1182 PACKAGE_URL
1183 PACKAGE_BUGREPORT
1184 PACKAGE_STRING
1185 PACKAGE_VERSION
1186 PACKAGE_TARNAME
1187 PACKAGE_NAME
1188 PATH_SEPARATOR
1189 SHELL'
1190 ac_subst_files=''
1191 ac_user_opts='
1192 enable_option_checking
1193 enable_silent_rules
1194 enable_dependency_tracking
1195 with_gnu_ld
1196 with_dmalloc
1197 enable_bounds_checking
1198 enable_osx_universal_binary
1199 with_threads
1200 enable_openmp
1201 enable_opencl
1202 enable_largefile
1203 enable_shared
1204 enable_static
1205 with_pic
1206 enable_fast_install
1207 enable_libtool_lock
1208 with_included_ltdl
1209 with_ltdl_include
1210 with_ltdl_lib
1211 enable_ltdl_install
1212 with_modules
1213 enable_delegate_build
1214 enable_deprecated
1215 enable_installed
1216 enable_cipher
1217 enable_embeddable
1218 enable_hdri
1219 enable_assert
1220 enable_maintainer_mode
1221 enable_ccmalloc
1222 enable_efence
1223 enable_prof
1224 enable_gprof
1225 enable_gcov
1226 with_method_prefix
1227 with_quantum_depth
1228 with_cache
1229 with_frozenpaths
1230 with_magick_plus_plus
1231 with_perl
1232 with_perl_options
1233 with_umem
1234 with_libstdc
1235 with_bzlib
1236 with_x
1237 with_zlib
1238 with_autotrace
1239 with_dps
1240 with_djvu
1241 with_dejavu_font_dir
1242 with_fftw
1243 with_fpx
1244 with_fontconfig
1245 with_freetype
1246 with_gslib
1247 with_fontpath
1248 with_gs_font_dir
1249 with_gvc
1250 with_jbig
1251 with_jpeg
1252 with_jp2
1253 with_lcms
1254 with_lcms2
1255 with_lqr
1256 with_openexr
1257 with_png
1258 with_rsvg
1259 with_tiff
1260 with_windows_font_dir
1261 with_wmf
1262 with_xml
1263 '
1264       ac_precious_vars='build_alias
1265 host_alias
1266 target_alias
1267 CC
1268 CFLAGS
1269 LDFLAGS
1270 LIBS
1271 CPPFLAGS
1272 CPP
1273 CXX
1274 CXXFLAGS
1275 CCC
1276 PKG_CONFIG
1277 CXXCPP
1278 XMKMF
1279 AUTOTRACE_CFLAGS
1280 AUTOTRACE_LIBS
1281 FONTCONFIG_CFLAGS
1282 FONTCONFIG_LIBS
1283 GVC_CFLAGS
1284 GVC_LIBS
1285 LQR_CFLAGS
1286 LQR_LIBS
1287 OPENEXR_CFLAGS
1288 OPENEXR_LIBS
1289 RSVG_CFLAGS
1290 RSVG_LIBS
1291 CAIRO_SVG_CFLAGS
1292 CAIRO_SVG_LIBS'
1293
1294
1295 # Initialize some variables set by options.
1296 ac_init_help=
1297 ac_init_version=false
1298 ac_unrecognized_opts=
1299 ac_unrecognized_sep=
1300 # The variables have the same names as the options, with
1301 # dashes changed to underlines.
1302 cache_file=/dev/null
1303 exec_prefix=NONE
1304 no_create=
1305 no_recursion=
1306 prefix=NONE
1307 program_prefix=NONE
1308 program_suffix=NONE
1309 program_transform_name=s,x,x,
1310 silent=
1311 site=
1312 srcdir=
1313 verbose=
1314 x_includes=NONE
1315 x_libraries=NONE
1316
1317 # Installation directory options.
1318 # These are left unexpanded so users can "make install exec_prefix=/foo"
1319 # and all the variables that are supposed to be based on exec_prefix
1320 # by default will actually change.
1321 # Use braces instead of parens because sh, perl, etc. also accept them.
1322 # (The list follows the same order as the GNU Coding Standards.)
1323 bindir='${exec_prefix}/bin'
1324 sbindir='${exec_prefix}/sbin'
1325 libexecdir='${exec_prefix}/libexec'
1326 datarootdir='${prefix}/share'
1327 datadir='${datarootdir}'
1328 sysconfdir='${prefix}/etc'
1329 sharedstatedir='${prefix}/com'
1330 localstatedir='${prefix}/var'
1331 includedir='${prefix}/include'
1332 oldincludedir='/usr/include'
1333 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334 infodir='${datarootdir}/info'
1335 htmldir='${docdir}'
1336 dvidir='${docdir}'
1337 pdfdir='${docdir}'
1338 psdir='${docdir}'
1339 libdir='${exec_prefix}/lib'
1340 localedir='${datarootdir}/locale'
1341 mandir='${datarootdir}/man'
1342
1343 ac_prev=
1344 ac_dashdash=
1345 for ac_option
1346 do
1347   # If the previous option needs an argument, assign it.
1348   if test -n "$ac_prev"; then
1349     eval $ac_prev=\$ac_option
1350     ac_prev=
1351     continue
1352   fi
1353
1354   case $ac_option in
1355   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1356   *)    ac_optarg=yes ;;
1357   esac
1358
1359   # Accept the important Cygnus configure options, so we can diagnose typos.
1360
1361   case $ac_dashdash$ac_option in
1362   --)
1363     ac_dashdash=yes ;;
1364
1365   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1366     ac_prev=bindir ;;
1367   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368     bindir=$ac_optarg ;;
1369
1370   -build | --build | --buil | --bui | --bu)
1371     ac_prev=build_alias ;;
1372   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373     build_alias=$ac_optarg ;;
1374
1375   -cache-file | --cache-file | --cache-fil | --cache-fi \
1376   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377     ac_prev=cache_file ;;
1378   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380     cache_file=$ac_optarg ;;
1381
1382   --config-cache | -C)
1383     cache_file=config.cache ;;
1384
1385   -datadir | --datadir | --datadi | --datad)
1386     ac_prev=datadir ;;
1387   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388     datadir=$ac_optarg ;;
1389
1390   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391   | --dataroo | --dataro | --datar)
1392     ac_prev=datarootdir ;;
1393   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395     datarootdir=$ac_optarg ;;
1396
1397   -disable-* | --disable-*)
1398     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401       as_fn_error "invalid feature name: $ac_useropt"
1402     ac_useropt_orig=$ac_useropt
1403     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404     case $ac_user_opts in
1405       *"
1406 "enable_$ac_useropt"
1407 "*) ;;
1408       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409          ac_unrecognized_sep=', ';;
1410     esac
1411     eval enable_$ac_useropt=no ;;
1412
1413   -docdir | --docdir | --docdi | --doc | --do)
1414     ac_prev=docdir ;;
1415   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416     docdir=$ac_optarg ;;
1417
1418   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1419     ac_prev=dvidir ;;
1420   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421     dvidir=$ac_optarg ;;
1422
1423   -enable-* | --enable-*)
1424     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425     # Reject names that are not valid shell variable names.
1426     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427       as_fn_error "invalid feature name: $ac_useropt"
1428     ac_useropt_orig=$ac_useropt
1429     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430     case $ac_user_opts in
1431       *"
1432 "enable_$ac_useropt"
1433 "*) ;;
1434       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435          ac_unrecognized_sep=', ';;
1436     esac
1437     eval enable_$ac_useropt=\$ac_optarg ;;
1438
1439   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441   | --exec | --exe | --ex)
1442     ac_prev=exec_prefix ;;
1443   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445   | --exec=* | --exe=* | --ex=*)
1446     exec_prefix=$ac_optarg ;;
1447
1448   -gas | --gas | --ga | --g)
1449     # Obsolete; use --with-gas.
1450     with_gas=yes ;;
1451
1452   -help | --help | --hel | --he | -h)
1453     ac_init_help=long ;;
1454   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455     ac_init_help=recursive ;;
1456   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457     ac_init_help=short ;;
1458
1459   -host | --host | --hos | --ho)
1460     ac_prev=host_alias ;;
1461   -host=* | --host=* | --hos=* | --ho=*)
1462     host_alias=$ac_optarg ;;
1463
1464   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1465     ac_prev=htmldir ;;
1466   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1467   | --ht=*)
1468     htmldir=$ac_optarg ;;
1469
1470   -includedir | --includedir | --includedi | --included | --include \
1471   | --includ | --inclu | --incl | --inc)
1472     ac_prev=includedir ;;
1473   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474   | --includ=* | --inclu=* | --incl=* | --inc=*)
1475     includedir=$ac_optarg ;;
1476
1477   -infodir | --infodir | --infodi | --infod | --info | --inf)
1478     ac_prev=infodir ;;
1479   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480     infodir=$ac_optarg ;;
1481
1482   -libdir | --libdir | --libdi | --libd)
1483     ac_prev=libdir ;;
1484   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485     libdir=$ac_optarg ;;
1486
1487   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488   | --libexe | --libex | --libe)
1489     ac_prev=libexecdir ;;
1490   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491   | --libexe=* | --libex=* | --libe=*)
1492     libexecdir=$ac_optarg ;;
1493
1494   -localedir | --localedir | --localedi | --localed | --locale)
1495     ac_prev=localedir ;;
1496   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497     localedir=$ac_optarg ;;
1498
1499   -localstatedir | --localstatedir | --localstatedi | --localstated \
1500   | --localstate | --localstat | --localsta | --localst | --locals)
1501     ac_prev=localstatedir ;;
1502   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504     localstatedir=$ac_optarg ;;
1505
1506   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1507     ac_prev=mandir ;;
1508   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509     mandir=$ac_optarg ;;
1510
1511   -nfp | --nfp | --nf)
1512     # Obsolete; use --without-fp.
1513     with_fp=no ;;
1514
1515   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516   | --no-cr | --no-c | -n)
1517     no_create=yes ;;
1518
1519   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1521     no_recursion=yes ;;
1522
1523   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525   | --oldin | --oldi | --old | --ol | --o)
1526     ac_prev=oldincludedir ;;
1527   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530     oldincludedir=$ac_optarg ;;
1531
1532   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1533     ac_prev=prefix ;;
1534   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535     prefix=$ac_optarg ;;
1536
1537   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538   | --program-pre | --program-pr | --program-p)
1539     ac_prev=program_prefix ;;
1540   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542     program_prefix=$ac_optarg ;;
1543
1544   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545   | --program-suf | --program-su | --program-s)
1546     ac_prev=program_suffix ;;
1547   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549     program_suffix=$ac_optarg ;;
1550
1551   -program-transform-name | --program-transform-name \
1552   | --program-transform-nam | --program-transform-na \
1553   | --program-transform-n | --program-transform- \
1554   | --program-transform | --program-transfor \
1555   | --program-transfo | --program-transf \
1556   | --program-trans | --program-tran \
1557   | --progr-tra | --program-tr | --program-t)
1558     ac_prev=program_transform_name ;;
1559   -program-transform-name=* | --program-transform-name=* \
1560   | --program-transform-nam=* | --program-transform-na=* \
1561   | --program-transform-n=* | --program-transform-=* \
1562   | --program-transform=* | --program-transfor=* \
1563   | --program-transfo=* | --program-transf=* \
1564   | --program-trans=* | --program-tran=* \
1565   | --progr-tra=* | --program-tr=* | --program-t=*)
1566     program_transform_name=$ac_optarg ;;
1567
1568   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1569     ac_prev=pdfdir ;;
1570   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571     pdfdir=$ac_optarg ;;
1572
1573   -psdir | --psdir | --psdi | --psd | --ps)
1574     ac_prev=psdir ;;
1575   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1576     psdir=$ac_optarg ;;
1577
1578   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579   | -silent | --silent | --silen | --sile | --sil)
1580     silent=yes ;;
1581
1582   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1583     ac_prev=sbindir ;;
1584   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1585   | --sbi=* | --sb=*)
1586     sbindir=$ac_optarg ;;
1587
1588   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590   | --sharedst | --shareds | --shared | --share | --shar \
1591   | --sha | --sh)
1592     ac_prev=sharedstatedir ;;
1593   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1596   | --sha=* | --sh=*)
1597     sharedstatedir=$ac_optarg ;;
1598
1599   -site | --site | --sit)
1600     ac_prev=site ;;
1601   -site=* | --site=* | --sit=*)
1602     site=$ac_optarg ;;
1603
1604   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605     ac_prev=srcdir ;;
1606   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607     srcdir=$ac_optarg ;;
1608
1609   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610   | --syscon | --sysco | --sysc | --sys | --sy)
1611     ac_prev=sysconfdir ;;
1612   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614     sysconfdir=$ac_optarg ;;
1615
1616   -target | --target | --targe | --targ | --tar | --ta | --t)
1617     ac_prev=target_alias ;;
1618   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619     target_alias=$ac_optarg ;;
1620
1621   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1622     verbose=yes ;;
1623
1624   -version | --version | --versio | --versi | --vers | -V)
1625     ac_init_version=: ;;
1626
1627   -with-* | --with-*)
1628     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629     # Reject names that are not valid shell variable names.
1630     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1631       as_fn_error "invalid package name: $ac_useropt"
1632     ac_useropt_orig=$ac_useropt
1633     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634     case $ac_user_opts in
1635       *"
1636 "with_$ac_useropt"
1637 "*) ;;
1638       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1639          ac_unrecognized_sep=', ';;
1640     esac
1641     eval with_$ac_useropt=\$ac_optarg ;;
1642
1643   -without-* | --without-*)
1644     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1645     # Reject names that are not valid shell variable names.
1646     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1647       as_fn_error "invalid package name: $ac_useropt"
1648     ac_useropt_orig=$ac_useropt
1649     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650     case $ac_user_opts in
1651       *"
1652 "with_$ac_useropt"
1653 "*) ;;
1654       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1655          ac_unrecognized_sep=', ';;
1656     esac
1657     eval with_$ac_useropt=no ;;
1658
1659   --x)
1660     # Obsolete; use --with-x.
1661     with_x=yes ;;
1662
1663   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1664   | --x-incl | --x-inc | --x-in | --x-i)
1665     ac_prev=x_includes ;;
1666   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1667   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1668     x_includes=$ac_optarg ;;
1669
1670   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1671   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1672     ac_prev=x_libraries ;;
1673   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1674   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1675     x_libraries=$ac_optarg ;;
1676
1677   -*) as_fn_error "unrecognized option: \`$ac_option'
1678 Try \`$0 --help' for more information."
1679     ;;
1680
1681   *=*)
1682     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1683     # Reject names that are not valid shell variable names.
1684     case $ac_envvar in #(
1685       '' | [0-9]* | *[!_$as_cr_alnum]* )
1686       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1687     esac
1688     eval $ac_envvar=\$ac_optarg
1689     export $ac_envvar ;;
1690
1691   *)
1692     # FIXME: should be removed in autoconf 3.0.
1693     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1694     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1695       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1696     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1697     ;;
1698
1699   esac
1700 done
1701
1702 if test -n "$ac_prev"; then
1703   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1704   as_fn_error "missing argument to $ac_option"
1705 fi
1706
1707 if test -n "$ac_unrecognized_opts"; then
1708   case $enable_option_checking in
1709     no) ;;
1710     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1711     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1712   esac
1713 fi
1714
1715 # Check all directory arguments for consistency.
1716 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1717                 datadir sysconfdir sharedstatedir localstatedir includedir \
1718                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1719                 libdir localedir mandir
1720 do
1721   eval ac_val=\$$ac_var
1722   # Remove trailing slashes.
1723   case $ac_val in
1724     */ )
1725       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1726       eval $ac_var=\$ac_val;;
1727   esac
1728   # Be sure to have absolute directory names.
1729   case $ac_val in
1730     [\\/$]* | ?:[\\/]* )  continue;;
1731     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1732   esac
1733   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1734 done
1735
1736 # There might be people who depend on the old broken behavior: `$host'
1737 # used to hold the argument of --host etc.
1738 # FIXME: To remove some day.
1739 build=$build_alias
1740 host=$host_alias
1741 target=$target_alias
1742
1743 # FIXME: To remove some day.
1744 if test "x$host_alias" != x; then
1745   if test "x$build_alias" = x; then
1746     cross_compiling=maybe
1747     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1748     If a cross compiler is detected then cross compile mode will be used." >&2
1749   elif test "x$build_alias" != "x$host_alias"; then
1750     cross_compiling=yes
1751   fi
1752 fi
1753
1754 ac_tool_prefix=
1755 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1756
1757 test "$silent" = yes && exec 6>/dev/null
1758
1759
1760 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1761 ac_ls_di=`ls -di .` &&
1762 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1763   as_fn_error "working directory cannot be determined"
1764 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1765   as_fn_error "pwd does not report name of working directory"
1766
1767
1768 # Find the source files, if location was not specified.
1769 if test -z "$srcdir"; then
1770   ac_srcdir_defaulted=yes
1771   # Try the directory containing this script, then the parent directory.
1772   ac_confdir=`$as_dirname -- "$as_myself" ||
1773 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1774          X"$as_myself" : 'X\(//\)[^/]' \| \
1775          X"$as_myself" : 'X\(//\)$' \| \
1776          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1777 $as_echo X"$as_myself" |
1778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1779             s//\1/
1780             q
1781           }
1782           /^X\(\/\/\)[^/].*/{
1783             s//\1/
1784             q
1785           }
1786           /^X\(\/\/\)$/{
1787             s//\1/
1788             q
1789           }
1790           /^X\(\/\).*/{
1791             s//\1/
1792             q
1793           }
1794           s/.*/./; q'`
1795   srcdir=$ac_confdir
1796   if test ! -r "$srcdir/$ac_unique_file"; then
1797     srcdir=..
1798   fi
1799 else
1800   ac_srcdir_defaulted=no
1801 fi
1802 if test ! -r "$srcdir/$ac_unique_file"; then
1803   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1804   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1805 fi
1806 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1807 ac_abs_confdir=`(
1808         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1809         pwd)`
1810 # When building in place, set srcdir=.
1811 if test "$ac_abs_confdir" = "$ac_pwd"; then
1812   srcdir=.
1813 fi
1814 # Remove unnecessary trailing slashes from srcdir.
1815 # Double slashes in file names in object file debugging info
1816 # mess up M-x gdb in Emacs.
1817 case $srcdir in
1818 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1819 esac
1820 for ac_var in $ac_precious_vars; do
1821   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1822   eval ac_env_${ac_var}_value=\$${ac_var}
1823   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1824   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1825 done
1826
1827 #
1828 # Report the --help message.
1829 #
1830 if test "$ac_init_help" = "long"; then
1831   # Omit some internal or obsolete options to make the list less imposing.
1832   # This message is too long to be a string in the A/UX 3.1 sh.
1833   cat <<_ACEOF
1834 \`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
1835
1836 Usage: $0 [OPTION]... [VAR=VALUE]...
1837
1838 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1839 VAR=VALUE.  See below for descriptions of some of the useful variables.
1840
1841 Defaults for the options are specified in brackets.
1842
1843 Configuration:
1844   -h, --help              display this help and exit
1845       --help=short        display options specific to this package
1846       --help=recursive    display the short help of all the included packages
1847   -V, --version           display version information and exit
1848   -q, --quiet, --silent   do not print \`checking...' messages
1849       --cache-file=FILE   cache test results in FILE [disabled]
1850   -C, --config-cache      alias for \`--cache-file=config.cache'
1851   -n, --no-create         do not create output files
1852       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1853
1854 Installation directories:
1855   --prefix=PREFIX         install architecture-independent files in PREFIX
1856                           [$ac_default_prefix]
1857   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1858                           [PREFIX]
1859
1860 By default, \`make install' will install all the files in
1861 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1862 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1863 for instance \`--prefix=\$HOME'.
1864
1865 For better control, use the options below.
1866
1867 Fine tuning of the installation directories:
1868   --bindir=DIR            user executables [EPREFIX/bin]
1869   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1870   --libexecdir=DIR        program executables [EPREFIX/libexec]
1871   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1872   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1873   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1874   --libdir=DIR            object code libraries [EPREFIX/lib]
1875   --includedir=DIR        C header files [PREFIX/include]
1876   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1877   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1878   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1879   --infodir=DIR           info documentation [DATAROOTDIR/info]
1880   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1881   --mandir=DIR            man documentation [DATAROOTDIR/man]
1882   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1883   --htmldir=DIR           html documentation [DOCDIR]
1884   --dvidir=DIR            dvi documentation [DOCDIR]
1885   --pdfdir=DIR            pdf documentation [DOCDIR]
1886   --psdir=DIR             ps documentation [DOCDIR]
1887 _ACEOF
1888
1889   cat <<\_ACEOF
1890
1891 Program names:
1892   --program-prefix=PREFIX            prepend PREFIX to installed program names
1893   --program-suffix=SUFFIX            append SUFFIX to installed program names
1894   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1895
1896 X features:
1897   --x-includes=DIR    X include files are in DIR
1898   --x-libraries=DIR   X library files are in DIR
1899
1900 System types:
1901   --build=BUILD     configure for building on BUILD [guessed]
1902   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1903   --target=TARGET   configure for building compilers for TARGET [HOST]
1904 _ACEOF
1905 fi
1906
1907 if test -n "$ac_init_help"; then
1908   case $ac_init_help in
1909      short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
1910    esac
1911   cat <<\_ACEOF
1912
1913 Optional Features:
1914   --disable-option-checking  ignore unrecognized --enable/--with options
1915   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1916   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1917   --enable-silent-rules          less verbose build output (undo: `make V=1')
1918   --disable-silent-rules         verbose build output (undo: `make V=0')
1919   --disable-dependency-tracking  speeds up one-time build
1920   --enable-dependency-tracking   do not reject slow dependency extractors
1921   --bounds-checking       enable run-time bounds-checking
1922   --enable-osx-universal-binary
1923                           build universal binary on OS X [[default=no]]
1924   --disable-openmp        do not use OpenMP
1925   --disable-opencl        do not use OpenCL
1926   --disable-largefile     omit support for large files
1927   --enable-shared[=PKGS]  build shared libraries [default=yes]
1928   --enable-static[=PKGS]  build static libraries [default=yes]
1929   --enable-fast-install[=PKGS]
1930                           optimize for fast installation [default=yes]
1931   --disable-libtool-lock  avoid locking (might break parallel builds)
1932   --enable-ltdl-install   install libltdl
1933   --enable-delegate-build look for delegate libraries in build directory
1934   --disable-deprecated    exclude deprecated methods in MagickCore and
1935                           MagickWand API's
1936   --disable-installed     Formally install ImageMagick under PREFIX
1937   --disable-cipher        disable enciphering and deciphering image pixels
1938   --enable-embeddable     enable self-contained, embeddable,
1939                           zero-configuration ImageMagick
1940   --enable-hdri           accurately represent the wide range of intensity
1941                           levels found in real scenes
1942   --disable-assert        disable assert() statements in build
1943   --enable-maintainer-mode  enable make rules and dependencies not useful
1944                           (and sometimes confusing) to the casual installer
1945   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1946   --enable-efence         enable 'efence' memory debug support
1947   --enable-prof           enable 'prof' profiling support
1948   --enable-gprof          enable 'gprof' profiling support
1949   --enable-gcov           enable 'gcov' profiling support
1950   --disable-assert        turn off assertions
1951
1952 Optional Packages:
1953   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1954   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1955   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1956   --with-dmalloc          use dmalloc, as in
1957                           http://www.dmalloc.com/dmalloc.tar.gz
1958   --without-threads       disable threads support
1959   --with-pic              try to use only PIC/non-PIC objects [default=use
1960                           both]
1961   --with-included-ltdl    use the GNU ltdl sources included here
1962   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1963   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1964   --with-modules          enable building dynamically loadable modules
1965   --with-method-prefix=PREFIX
1966                           prefix MagickCore API methods
1967   --with-quantum-depth=DEPTH
1968                           number of bits in a pixel quantum (default 16)
1969   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1970                           memory)
1971   --with-frozenpaths      freeze delegate paths
1972   --without-magick-plus-plus
1973                           disable build/install of Magick++
1974   --with-perl             enable build/install of PerlMagick
1975   --with-perl-options=OPTIONS
1976                           options to pass on command-line when generating
1977                           PerlMagick's build file
1978   --with-umem             enable umem memory allocation library support
1979   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1980   --without-bzlib         disable BZLIB support
1981   --with-x                use the X Window System
1982   --without-zlib          disable ZLIB support
1983   --with-autotrace        enable autotrace support
1984   --without-dps           disable Display Postscript support
1985   --without-djvu          disable DjVu support
1986   --with-dejavu-font-dir=DIR
1987                           DejaVu font directory
1988   --without-fftw          disable FFTW support
1989   --without-fpx           disable FlashPIX support
1990   --without-fontconfig    disable fontconfig support
1991   --without-freetype      disable Freetype support
1992   --without-gslib         enable Ghostscript library support
1993   --with-fontpath=DIR     prepend to default font search path
1994   --with-gs-font-dir=DIR  Ghostscript font directory
1995   --without-gvc           disable GVC support
1996   --without-jbig          disable JBIG support
1997   --without-jpeg          disable JPEG support
1998   --without-jp2           disable JPEG-2000 support
1999   --without-lcms          disable lcms (v1.1X) support
2000   --without-lcms2         disable lcms (v2.X) support
2001   --without-lqr           disable Liquid Rescale support
2002   --without-openexr       disable OpenEXR support
2003   --without-png           disable PNG support
2004   --without-rsvg          disable RSVG support
2005   --without-tiff          disable TIFF support
2006   --with-windows-font-dir=DIR
2007                           directory containing MS-Windows fonts
2008   --without-wmf           disable WMF support
2009   --without-xml           disable XML support
2010
2011 Some influential environment variables:
2012   CC          C compiler command
2013   CFLAGS      C compiler flags
2014   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2015               nonstandard directory <lib dir>
2016   LIBS        libraries to pass to the linker, e.g. -l<library>
2017   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2018               you have headers in a nonstandard directory <include dir>
2019   CPP         C preprocessor
2020   CXX         C++ compiler command
2021   CXXFLAGS    C++ compiler flags
2022   PKG_CONFIG  path to pkg-config utility
2023   CXXCPP      C++ preprocessor
2024   XMKMF       Path to xmkmf, Makefile generator for X Window System
2025   AUTOTRACE_CFLAGS
2026               C compiler flags for AUTOTRACE, overriding pkg-config
2027   AUTOTRACE_LIBS
2028               linker flags for AUTOTRACE, overriding pkg-config
2029   FONTCONFIG_CFLAGS
2030               C compiler flags for FONTCONFIG, overriding pkg-config
2031   FONTCONFIG_LIBS
2032               linker flags for FONTCONFIG, overriding pkg-config
2033   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2034   GVC_LIBS    linker flags for GVC, overriding pkg-config
2035   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2036   LQR_LIBS    linker flags for LQR, overriding pkg-config
2037   OPENEXR_CFLAGS
2038               C compiler flags for OPENEXR, overriding pkg-config
2039   OPENEXR_LIBS
2040               linker flags for OPENEXR, overriding pkg-config
2041   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2042   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2043   CAIRO_SVG_CFLAGS
2044               C compiler flags for CAIRO_SVG, overriding pkg-config
2045   CAIRO_SVG_LIBS
2046               linker flags for CAIRO_SVG, overriding pkg-config
2047
2048 Use these variables to override the choices made by `configure' or to help
2049 it to find libraries and programs with nonstandard names/locations.
2050
2051 Report bugs to <http://www.imagemagick.org>.
2052 _ACEOF
2053 ac_status=$?
2054 fi
2055
2056 if test "$ac_init_help" = "recursive"; then
2057   # If there are subdirs, report their specific --help.
2058   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2059     test -d "$ac_dir" ||
2060       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2061       continue
2062     ac_builddir=.
2063
2064 case "$ac_dir" in
2065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2066 *)
2067   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2068   # A ".." for each directory in $ac_dir_suffix.
2069   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2070   case $ac_top_builddir_sub in
2071   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2073   esac ;;
2074 esac
2075 ac_abs_top_builddir=$ac_pwd
2076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2077 # for backward compatibility:
2078 ac_top_builddir=$ac_top_build_prefix
2079
2080 case $srcdir in
2081   .)  # We are building in place.
2082     ac_srcdir=.
2083     ac_top_srcdir=$ac_top_builddir_sub
2084     ac_abs_top_srcdir=$ac_pwd ;;
2085   [\\/]* | ?:[\\/]* )  # Absolute name.
2086     ac_srcdir=$srcdir$ac_dir_suffix;
2087     ac_top_srcdir=$srcdir
2088     ac_abs_top_srcdir=$srcdir ;;
2089   *) # Relative name.
2090     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2091     ac_top_srcdir=$ac_top_build_prefix$srcdir
2092     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2093 esac
2094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2095
2096     cd "$ac_dir" || { ac_status=$?; continue; }
2097     # Check for guested configure.
2098     if test -f "$ac_srcdir/configure.gnu"; then
2099       echo &&
2100       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2101     elif test -f "$ac_srcdir/configure"; then
2102       echo &&
2103       $SHELL "$ac_srcdir/configure" --help=recursive
2104     else
2105       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2106     fi || ac_status=$?
2107     cd "$ac_pwd" || { ac_status=$?; break; }
2108   done
2109 fi
2110
2111 test -n "$ac_init_help" && exit $ac_status
2112 if $ac_init_version; then
2113   cat <<\_ACEOF
2114 ImageMagick configure 6.6.4
2115 generated by GNU Autoconf 2.65
2116
2117 Copyright (C) 2009 Free Software Foundation, Inc.
2118 This configure script is free software; the Free Software Foundation
2119 gives unlimited permission to copy, distribute and modify it.
2120 _ACEOF
2121   exit
2122 fi
2123
2124 ## ------------------------ ##
2125 ## Autoconf initialization. ##
2126 ## ------------------------ ##
2127
2128 # ac_fn_c_try_compile LINENO
2129 # --------------------------
2130 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_c_try_compile ()
2132 {
2133   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134   rm -f conftest.$ac_objext
2135   if { { ac_try="$ac_compile"
2136 case "(($ac_try" in
2137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138   *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142   (eval "$ac_compile") 2>conftest.err
2143   ac_status=$?
2144   if test -s conftest.err; then
2145     grep -v '^ *+' conftest.err >conftest.er1
2146     cat conftest.er1 >&5
2147     mv -f conftest.er1 conftest.err
2148   fi
2149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150   test $ac_status = 0; } && {
2151          test -z "$ac_c_werror_flag" ||
2152          test ! -s conftest.err
2153        } && test -s conftest.$ac_objext; then :
2154   ac_retval=0
2155 else
2156   $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159         ac_retval=1
2160 fi
2161   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162   as_fn_set_status $ac_retval
2163
2164 } # ac_fn_c_try_compile
2165
2166 # ac_fn_c_try_cpp LINENO
2167 # ----------------------
2168 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_c_try_cpp ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   if { { ac_try="$ac_cpp conftest.$ac_ext"
2173 case "(($ac_try" in
2174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175   *) ac_try_echo=$ac_try;;
2176 esac
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2180   ac_status=$?
2181   if test -s conftest.err; then
2182     grep -v '^ *+' conftest.err >conftest.er1
2183     cat conftest.er1 >&5
2184     mv -f conftest.er1 conftest.err
2185   fi
2186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187   test $ac_status = 0; } >/dev/null && {
2188          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2189          test ! -s conftest.err
2190        }; then :
2191   ac_retval=0
2192 else
2193   $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196     ac_retval=1
2197 fi
2198   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199   as_fn_set_status $ac_retval
2200
2201 } # ac_fn_c_try_cpp
2202
2203 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2204 # -------------------------------------------------------
2205 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2206 # the include files in INCLUDES and setting the cache variable VAR
2207 # accordingly.
2208 ac_fn_c_check_header_mongrel ()
2209 {
2210   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2215   $as_echo_n "(cached) " >&6
2216 fi
2217 eval ac_res=\$$3
2218                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 else
2221   # Is the header compilable?
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2223 $as_echo_n "checking $2 usability... " >&6; }
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h.  */
2226 $4
2227 #include <$2>
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   ac_header_compiler=yes
2231 else
2232   ac_header_compiler=no
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2236 $as_echo "$ac_header_compiler" >&6; }
2237
2238 # Is the header present?
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2240 $as_echo_n "checking $2 presence... " >&6; }
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h.  */
2243 #include <$2>
2244 _ACEOF
2245 if ac_fn_c_try_cpp "$LINENO"; then :
2246   ac_header_preproc=yes
2247 else
2248   ac_header_preproc=no
2249 fi
2250 rm -f conftest.err conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2252 $as_echo "$ac_header_preproc" >&6; }
2253
2254 # So?  What about this header?
2255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2256   yes:no: )
2257     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2258 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2259     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261     ;;
2262   no:yes:* )
2263     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2264 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2265     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2266 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2267     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2268 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2269     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2270 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2271     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2273 ( cat <<\_ASBOX
2274 ## ----------------------------------------- ##
2275 ## Report this to http://www.imagemagick.org ##
2276 ## ----------------------------------------- ##
2277 _ASBOX
2278      ) | sed "s/^/$as_me: WARNING:     /" >&2
2279     ;;
2280 esac
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284   $as_echo_n "(cached) " >&6
2285 else
2286   eval "$3=\$ac_header_compiler"
2287 fi
2288 eval ac_res=\$$3
2289                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2291 fi
2292   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2293
2294 } # ac_fn_c_check_header_mongrel
2295
2296 # ac_fn_c_try_run LINENO
2297 # ----------------------
2298 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2299 # that executables *can* be run.
2300 ac_fn_c_try_run ()
2301 {
2302   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303   if { { ac_try="$ac_link"
2304 case "(($ac_try" in
2305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306   *) ac_try_echo=$ac_try;;
2307 esac
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310   (eval "$ac_link") 2>&5
2311   ac_status=$?
2312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2314   { { case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319 $as_echo "$ac_try_echo"; } >&5
2320   (eval "$ac_try") 2>&5
2321   ac_status=$?
2322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323   test $ac_status = 0; }; }; then :
2324   ac_retval=0
2325 else
2326   $as_echo "$as_me: program exited with status $ac_status" >&5
2327        $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330        ac_retval=$ac_status
2331 fi
2332   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334   as_fn_set_status $ac_retval
2335
2336 } # ac_fn_c_try_run
2337
2338 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists and can be compiled using the include files in
2341 # INCLUDES, setting the cache variable VAR accordingly.
2342 ac_fn_c_check_header_compile ()
2343 {
2344   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2348   $as_echo_n "(cached) " >&6
2349 else
2350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h.  */
2352 $4
2353 #include <$2>
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"; then :
2356   eval "$3=yes"
2357 else
2358   eval "$3=no"
2359 fi
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 eval ac_res=\$$3
2363                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366
2367 } # ac_fn_c_check_header_compile
2368
2369 # ac_fn_cxx_try_compile LINENO
2370 # ----------------------------
2371 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_cxx_try_compile ()
2373 {
2374   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375   rm -f conftest.$ac_objext
2376   if { { ac_try="$ac_compile"
2377 case "(($ac_try" in
2378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379   *) ac_try_echo=$ac_try;;
2380 esac
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383   (eval "$ac_compile") 2>conftest.err
2384   ac_status=$?
2385   if test -s conftest.err; then
2386     grep -v '^ *+' conftest.err >conftest.er1
2387     cat conftest.er1 >&5
2388     mv -f conftest.er1 conftest.err
2389   fi
2390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391   test $ac_status = 0; } && {
2392          test -z "$ac_cxx_werror_flag" ||
2393          test ! -s conftest.err
2394        } && test -s conftest.$ac_objext; then :
2395   ac_retval=0
2396 else
2397   $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400         ac_retval=1
2401 fi
2402   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403   as_fn_set_status $ac_retval
2404
2405 } # ac_fn_cxx_try_compile
2406
2407 # ac_fn_c_try_link LINENO
2408 # -----------------------
2409 # Try to link conftest.$ac_ext, and return whether this succeeded.
2410 ac_fn_c_try_link ()
2411 {
2412   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413   rm -f conftest.$ac_objext conftest$ac_exeext
2414   if { { ac_try="$ac_link"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 $as_echo "$ac_try_echo"; } >&5
2421   (eval "$ac_link") 2>conftest.err
2422   ac_status=$?
2423   if test -s conftest.err; then
2424     grep -v '^ *+' conftest.err >conftest.er1
2425     cat conftest.er1 >&5
2426     mv -f conftest.er1 conftest.err
2427   fi
2428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429   test $ac_status = 0; } && {
2430          test -z "$ac_c_werror_flag" ||
2431          test ! -s conftest.err
2432        } && test -s conftest$ac_exeext && {
2433          test "$cross_compiling" = yes ||
2434          $as_test_x conftest$ac_exeext
2435        }; then :
2436   ac_retval=0
2437 else
2438   $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2440
2441         ac_retval=1
2442 fi
2443   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2444   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2445   # interfere with the next link command; also delete a directory that is
2446   # left behind by Apple's compiler.  We do this before executing the actions.
2447   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2448   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449   as_fn_set_status $ac_retval
2450
2451 } # ac_fn_c_try_link
2452
2453 # ac_fn_c_check_func LINENO FUNC VAR
2454 # ----------------------------------
2455 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2456 ac_fn_c_check_func ()
2457 {
2458   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462   $as_echo_n "(cached) " >&6
2463 else
2464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h.  */
2466 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2468 #define $2 innocuous_$2
2469
2470 /* System header to define __stub macros and hopefully few prototypes,
2471     which can conflict with char $2 (); below.
2472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473     <limits.h> exists even on freestanding compilers.  */
2474
2475 #ifdef __STDC__
2476 # include <limits.h>
2477 #else
2478 # include <assert.h>
2479 #endif
2480
2481 #undef $2
2482
2483 /* Override any GCC internal prototype to avoid an error.
2484    Use char because int might match the return type of a GCC
2485    builtin and then its argument prototype would still apply.  */
2486 #ifdef __cplusplus
2487 extern "C"
2488 #endif
2489 char $2 ();
2490 /* The GNU C library defines this for functions which it implements
2491     to always fail with ENOSYS.  Some functions are actually named
2492     something starting with __ and the normal name is an alias.  */
2493 #if defined __stub_$2 || defined __stub___$2
2494 choke me
2495 #endif
2496
2497 int
2498 main ()
2499 {
2500 return $2 ();
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 if ac_fn_c_try_link "$LINENO"; then :
2506   eval "$3=yes"
2507 else
2508   eval "$3=no"
2509 fi
2510 rm -f core conftest.err conftest.$ac_objext \
2511     conftest$ac_exeext conftest.$ac_ext
2512 fi
2513 eval ac_res=\$$3
2514                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2517
2518 } # ac_fn_c_check_func
2519
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2524 {
2525   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526   if { { ac_try="$ac_cpp conftest.$ac_ext"
2527 case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2534   ac_status=$?
2535   if test -s conftest.err; then
2536     grep -v '^ *+' conftest.err >conftest.er1
2537     cat conftest.er1 >&5
2538     mv -f conftest.er1 conftest.err
2539   fi
2540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541   test $ac_status = 0; } >/dev/null && {
2542          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543          test ! -s conftest.err
2544        }; then :
2545   ac_retval=0
2546 else
2547   $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550     ac_retval=1
2551 fi
2552   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553   as_fn_set_status $ac_retval
2554
2555 } # ac_fn_cxx_try_cpp
2556
2557 # ac_fn_cxx_try_link LINENO
2558 # -------------------------
2559 # Try to link conftest.$ac_ext, and return whether this succeeded.
2560 ac_fn_cxx_try_link ()
2561 {
2562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563   rm -f conftest.$ac_objext conftest$ac_exeext
2564   if { { ac_try="$ac_link"
2565 case "(($ac_try" in
2566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567   *) ac_try_echo=$ac_try;;
2568 esac
2569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571   (eval "$ac_link") 2>conftest.err
2572   ac_status=$?
2573   if test -s conftest.err; then
2574     grep -v '^ *+' conftest.err >conftest.er1
2575     cat conftest.er1 >&5
2576     mv -f conftest.er1 conftest.err
2577   fi
2578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579   test $ac_status = 0; } && {
2580          test -z "$ac_cxx_werror_flag" ||
2581          test ! -s conftest.err
2582        } && test -s conftest$ac_exeext && {
2583          test "$cross_compiling" = yes ||
2584          $as_test_x conftest$ac_exeext
2585        }; then :
2586   ac_retval=0
2587 else
2588   $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591         ac_retval=1
2592 fi
2593   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2594   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2595   # interfere with the next link command; also delete a directory that is
2596   # left behind by Apple's compiler.  We do this before executing the actions.
2597   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599   as_fn_set_status $ac_retval
2600
2601 } # ac_fn_cxx_try_link
2602
2603 # ac_fn_c_check_decl LINENO SYMBOL VAR
2604 # ------------------------------------
2605 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2606 ac_fn_c_check_decl ()
2607 {
2608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2610 $as_echo_n "checking whether $2 is declared... " >&6; }
2611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612   $as_echo_n "(cached) " >&6
2613 else
2614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h.  */
2616 $4
2617 int
2618 main ()
2619 {
2620 #ifndef $2
2621   (void) $2;
2622 #endif
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 if ac_fn_c_try_compile "$LINENO"; then :
2629   eval "$3=yes"
2630 else
2631   eval "$3=no"
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 eval ac_res=\$$3
2636                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2639
2640 } # ac_fn_c_check_decl
2641
2642 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2643 # -------------------------------------------
2644 # Tests whether TYPE exists after having included INCLUDES, setting cache
2645 # variable VAR accordingly.
2646 ac_fn_c_check_type ()
2647 {
2648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650 $as_echo_n "checking for $2... " >&6; }
2651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2652   $as_echo_n "(cached) " >&6
2653 else
2654   eval "$3=no"
2655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h.  */
2657 $4
2658 int
2659 main ()
2660 {
2661 if (sizeof ($2))
2662          return 0;
2663   ;
2664   return 0;
2665 }
2666 _ACEOF
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h.  */
2670 $4
2671 int
2672 main ()
2673 {
2674 if (sizeof (($2)))
2675             return 0;
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681
2682 else
2683   eval "$3=yes"
2684 fi
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 fi
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 fi
2689 eval ac_res=\$$3
2690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693
2694 } # ac_fn_c_check_type
2695
2696 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697 # ----------------------------------------------------
2698 # Tries to find if the field MEMBER exists in type AGGR, after including
2699 # INCLUDES, setting cache variable VAR accordingly.
2700 ac_fn_c_check_member ()
2701 {
2702   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704 $as_echo_n "checking for $2.$3... " >&6; }
2705 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2706   $as_echo_n "(cached) " >&6
2707 else
2708   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h.  */
2710 $5
2711 int
2712 main ()
2713 {
2714 static $2 ac_aggr;
2715 if (ac_aggr.$3)
2716 return 0;
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 if ac_fn_c_try_compile "$LINENO"; then :
2722   eval "$4=yes"
2723 else
2724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h.  */
2726 $5
2727 int
2728 main ()
2729 {
2730 static $2 ac_aggr;
2731 if (sizeof ac_aggr.$3)
2732 return 0;
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 if ac_fn_c_try_compile "$LINENO"; then :
2738   eval "$4=yes"
2739 else
2740   eval "$4=no"
2741 fi
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 fi
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2745 fi
2746 eval ac_res=\$$4
2747                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2750
2751 } # ac_fn_c_check_member
2752
2753 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2754 # --------------------------------------------
2755 # Tries to find the compile-time value of EXPR in a program that includes
2756 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2757 # computed
2758 ac_fn_c_compute_int ()
2759 {
2760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761   if test "$cross_compiling" = yes; then
2762     # Depending upon the size, compute the lo and hi bounds.
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h.  */
2765 $4
2766 int
2767 main ()
2768 {
2769 static int test_array [1 - 2 * !(($2) >= 0)];
2770 test_array [0] = 0
2771
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777   ac_lo=0 ac_mid=0
2778   while :; do
2779     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h.  */
2781 $4
2782 int
2783 main ()
2784 {
2785 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2786 test_array [0] = 0
2787
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 if ac_fn_c_try_compile "$LINENO"; then :
2793   ac_hi=$ac_mid; break
2794 else
2795   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2796                         if test $ac_lo -le $ac_mid; then
2797                           ac_lo= ac_hi=
2798                           break
2799                         fi
2800                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2801 fi
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803   done
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 int
2809 main ()
2810 {
2811 static int test_array [1 - 2 * !(($2) < 0)];
2812 test_array [0] = 0
2813
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_c_try_compile "$LINENO"; then :
2819   ac_hi=-1 ac_mid=-1
2820   while :; do
2821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 int
2825 main ()
2826 {
2827 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2828 test_array [0] = 0
2829
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 if ac_fn_c_try_compile "$LINENO"; then :
2835   ac_lo=$ac_mid; break
2836 else
2837   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2838                         if test $ac_mid -le $ac_hi; then
2839                           ac_lo= ac_hi=
2840                           break
2841                         fi
2842                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2843 fi
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845   done
2846 else
2847   ac_lo= ac_hi=
2848 fi
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 # Binary search between lo and hi bounds.
2853 while test "x$ac_lo" != "x$ac_hi"; do
2854   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h.  */
2857 $4
2858 int
2859 main ()
2860 {
2861 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2862 test_array [0] = 0
2863
2864   ;
2865   return 0;
2866 }
2867 _ACEOF
2868 if ac_fn_c_try_compile "$LINENO"; then :
2869   ac_hi=$ac_mid
2870 else
2871   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2872 fi
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 done
2875 case $ac_lo in #((
2876 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2877 '') ac_retval=1 ;;
2878 esac
2879   else
2880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h.  */
2882 $4
2883 static long int longval () { return $2; }
2884 static unsigned long int ulongval () { return $2; }
2885 #include <stdio.h>
2886 #include <stdlib.h>
2887 int
2888 main ()
2889 {
2890
2891   FILE *f = fopen ("conftest.val", "w");
2892   if (! f)
2893     return 1;
2894   if (($2) < 0)
2895     {
2896       long int i = longval ();
2897       if (i != ($2))
2898         return 1;
2899       fprintf (f, "%ld", i);
2900     }
2901   else
2902     {
2903       unsigned long int i = ulongval ();
2904       if (i != ($2))
2905         return 1;
2906       fprintf (f, "%lu", i);
2907     }
2908   /* Do not output a trailing newline, as this causes \r\n confusion
2909      on some platforms.  */
2910   return ferror (f) || fclose (f) != 0;
2911
2912   ;
2913   return 0;
2914 }
2915 _ACEOF
2916 if ac_fn_c_try_run "$LINENO"; then :
2917   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2918 else
2919   ac_retval=1
2920 fi
2921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2922   conftest.$ac_objext conftest.beam conftest.$ac_ext
2923 rm -f conftest.val
2924
2925   fi
2926   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2927   as_fn_set_status $ac_retval
2928
2929 } # ac_fn_c_compute_int
2930
2931 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2932 # ---------------------------------------------------------
2933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2934 # the include files in INCLUDES and setting the cache variable VAR
2935 # accordingly.
2936 ac_fn_cxx_check_header_mongrel ()
2937 {
2938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2939   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2941 $as_echo_n "checking for $2... " >&6; }
2942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2943   $as_echo_n "(cached) " >&6
2944 fi
2945 eval ac_res=\$$3
2946                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947 $as_echo "$ac_res" >&6; }
2948 else
2949   # Is the header compilable?
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2951 $as_echo_n "checking $2 usability... " >&6; }
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h.  */
2954 $4
2955 #include <$2>
2956 _ACEOF
2957 if ac_fn_cxx_try_compile "$LINENO"; then :
2958   ac_header_compiler=yes
2959 else
2960   ac_header_compiler=no
2961 fi
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2964 $as_echo "$ac_header_compiler" >&6; }
2965
2966 # Is the header present?
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2968 $as_echo_n "checking $2 presence... " >&6; }
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h.  */
2971 #include <$2>
2972 _ACEOF
2973 if ac_fn_cxx_try_cpp "$LINENO"; then :
2974   ac_header_preproc=yes
2975 else
2976   ac_header_preproc=no
2977 fi
2978 rm -f conftest.err conftest.$ac_ext
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2980 $as_echo "$ac_header_preproc" >&6; }
2981
2982 # So?  What about this header?
2983 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2984   yes:no: )
2985     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2989     ;;
2990   no:yes:* )
2991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2993     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2994 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2995     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2998 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2999     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3001 ( cat <<\_ASBOX
3002 ## ----------------------------------------- ##
3003 ## Report this to http://www.imagemagick.org ##
3004 ## ----------------------------------------- ##
3005 _ASBOX
3006      ) | sed "s/^/$as_me: WARNING:     /" >&2
3007     ;;
3008 esac
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010 $as_echo_n "checking for $2... " >&6; }
3011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3012   $as_echo_n "(cached) " >&6
3013 else
3014   eval "$3=\$ac_header_compiler"
3015 fi
3016 eval ac_res=\$$3
3017                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3018 $as_echo "$ac_res" >&6; }
3019 fi
3020   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3021
3022 } # ac_fn_cxx_check_header_mongrel
3023 cat >config.log <<_ACEOF
3024 This file contains any messages produced by compilers while
3025 running configure, to aid debugging if configure makes a mistake.
3026
3027 It was created by ImageMagick $as_me 6.6.4, which was
3028 generated by GNU Autoconf 2.65.  Invocation command line was
3029
3030   $ $0 $@
3031
3032 _ACEOF
3033 exec 5>>config.log
3034 {
3035 cat <<_ASUNAME
3036 ## --------- ##
3037 ## Platform. ##
3038 ## --------- ##
3039
3040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3045
3046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3047 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3048
3049 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3050 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3052 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3053 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3054 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3055 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3056
3057 _ASUNAME
3058
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3061 do
3062   IFS=$as_save_IFS
3063   test -z "$as_dir" && as_dir=.
3064     $as_echo "PATH: $as_dir"
3065   done
3066 IFS=$as_save_IFS
3067
3068 } >&5
3069
3070 cat >&5 <<_ACEOF
3071
3072
3073 ## ----------- ##
3074 ## Core tests. ##
3075 ## ----------- ##
3076
3077 _ACEOF
3078
3079
3080 # Keep a trace of the command line.
3081 # Strip out --no-create and --no-recursion so they do not pile up.
3082 # Strip out --silent because we don't want to record it for future runs.
3083 # Also quote any args containing shell meta-characters.
3084 # Make two passes to allow for proper duplicate-argument suppression.
3085 ac_configure_args=
3086 ac_configure_args0=
3087 ac_configure_args1=
3088 ac_must_keep_next=false
3089 for ac_pass in 1 2
3090 do
3091   for ac_arg
3092   do
3093     case $ac_arg in
3094     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3095     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3096     | -silent | --silent | --silen | --sile | --sil)
3097       continue ;;
3098     *\'*)
3099       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3100     esac
3101     case $ac_pass in
3102     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3103     2)
3104       as_fn_append ac_configure_args1 " '$ac_arg'"
3105       if test $ac_must_keep_next = true; then
3106         ac_must_keep_next=false # Got value, back to normal.
3107       else
3108         case $ac_arg in
3109           *=* | --config-cache | -C | -disable-* | --disable-* \
3110           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3111           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3112           | -with-* | --with-* | -without-* | --without-* | --x)
3113             case "$ac_configure_args0 " in
3114               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3115             esac
3116             ;;
3117           -* ) ac_must_keep_next=true ;;
3118         esac
3119       fi
3120       as_fn_append ac_configure_args " '$ac_arg'"
3121       ;;
3122     esac
3123   done
3124 done
3125 { ac_configure_args0=; unset ac_configure_args0;}
3126 { ac_configure_args1=; unset ac_configure_args1;}
3127
3128 # When interrupted or exit'd, cleanup temporary files, and complete
3129 # config.log.  We remove comments because anyway the quotes in there
3130 # would cause problems or look ugly.
3131 # WARNING: Use '\'' to represent an apostrophe within the trap.
3132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3133 trap 'exit_status=$?
3134   # Save into config.log some information that might help in debugging.
3135   {
3136     echo
3137
3138     cat <<\_ASBOX
3139 ## ---------------- ##
3140 ## Cache variables. ##
3141 ## ---------------- ##
3142 _ASBOX
3143     echo
3144     # The following way of writing the cache mishandles newlines in values,
3145 (
3146   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3147     eval ac_val=\$$ac_var
3148     case $ac_val in #(
3149     *${as_nl}*)
3150       case $ac_var in #(
3151       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3153       esac
3154       case $ac_var in #(
3155       _ | IFS | as_nl) ;; #(
3156       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3157       *) { eval $ac_var=; unset $ac_var;} ;;
3158       esac ;;
3159     esac
3160   done
3161   (set) 2>&1 |
3162     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3163     *${as_nl}ac_space=\ *)
3164       sed -n \
3165         "s/'\''/'\''\\\\'\'''\''/g;
3166           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3167       ;; #(
3168     *)
3169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3170       ;;
3171     esac |
3172     sort
3173 )
3174     echo
3175
3176     cat <<\_ASBOX
3177 ## ----------------- ##
3178 ## Output variables. ##
3179 ## ----------------- ##
3180 _ASBOX
3181     echo
3182     for ac_var in $ac_subst_vars
3183     do
3184       eval ac_val=\$$ac_var
3185       case $ac_val in
3186       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3187       esac
3188       $as_echo "$ac_var='\''$ac_val'\''"
3189     done | sort
3190     echo
3191
3192     if test -n "$ac_subst_files"; then
3193       cat <<\_ASBOX
3194 ## ------------------- ##
3195 ## File substitutions. ##
3196 ## ------------------- ##
3197 _ASBOX
3198       echo
3199       for ac_var in $ac_subst_files
3200       do
3201         eval ac_val=\$$ac_var
3202         case $ac_val in
3203         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204         esac
3205         $as_echo "$ac_var='\''$ac_val'\''"
3206       done | sort
3207       echo
3208     fi
3209
3210     if test -s confdefs.h; then
3211       cat <<\_ASBOX
3212 ## ----------- ##
3213 ## confdefs.h. ##
3214 ## ----------- ##
3215 _ASBOX
3216       echo
3217       cat confdefs.h
3218       echo
3219     fi
3220     test "$ac_signal" != 0 &&
3221       $as_echo "$as_me: caught signal $ac_signal"
3222     $as_echo "$as_me: exit $exit_status"
3223   } >&5
3224   rm -f core *.core core.conftest.* &&
3225     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3226     exit $exit_status
3227 ' 0
3228 for ac_signal in 1 2 13 15; do
3229   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3230 done
3231 ac_signal=0
3232
3233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3234 rm -f -r conftest* confdefs.h
3235
3236 $as_echo "/* confdefs.h */" > confdefs.h
3237
3238 # Predefined preprocessor variables.
3239
3240 cat >>confdefs.h <<_ACEOF
3241 #define PACKAGE_NAME "$PACKAGE_NAME"
3242 _ACEOF
3243
3244 cat >>confdefs.h <<_ACEOF
3245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3246 _ACEOF
3247
3248 cat >>confdefs.h <<_ACEOF
3249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3250 _ACEOF
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_STRING "$PACKAGE_STRING"
3254 _ACEOF
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3258 _ACEOF
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_URL "$PACKAGE_URL"
3262 _ACEOF
3263
3264
3265 # Let the site file select an alternate cache file if it wants to.
3266 # Prefer an explicitly selected file to automatically selected ones.
3267 ac_site_file1=NONE
3268 ac_site_file2=NONE
3269 if test -n "$CONFIG_SITE"; then
3270   ac_site_file1=$CONFIG_SITE
3271 elif test "x$prefix" != xNONE; then
3272   ac_site_file1=$prefix/share/config.site
3273   ac_site_file2=$prefix/etc/config.site
3274 else
3275   ac_site_file1=$ac_default_prefix/share/config.site
3276   ac_site_file2=$ac_default_prefix/etc/config.site
3277 fi
3278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3279 do
3280   test "x$ac_site_file" = xNONE && continue
3281   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3282     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3284     sed 's/^/| /' "$ac_site_file" >&5
3285     . "$ac_site_file"
3286   fi
3287 done
3288
3289 if test -r "$cache_file"; then
3290   # Some versions of bash will fail to source /dev/null (special files
3291   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3292   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3293     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3294 $as_echo "$as_me: loading cache $cache_file" >&6;}
3295     case $cache_file in
3296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3297       *)                      . "./$cache_file";;
3298     esac
3299   fi
3300 else
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3302 $as_echo "$as_me: creating cache $cache_file" >&6;}
3303   >$cache_file
3304 fi
3305
3306 as_fn_append ac_header_list " stdlib.h"
3307 as_fn_append ac_header_list " unistd.h"
3308 as_fn_append ac_header_list " sys/param.h"
3309 # Check that the precious variables saved in the cache have kept the same
3310 # value.
3311 ac_cache_corrupted=false
3312 for ac_var in $ac_precious_vars; do
3313   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3314   eval ac_new_set=\$ac_env_${ac_var}_set
3315   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3316   eval ac_new_val=\$ac_env_${ac_var}_value
3317   case $ac_old_set,$ac_new_set in
3318     set,)
3319       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3320 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3321       ac_cache_corrupted=: ;;
3322     ,set)
3323       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3324 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3325       ac_cache_corrupted=: ;;
3326     ,);;
3327     *)
3328       if test "x$ac_old_val" != "x$ac_new_val"; then
3329         # differences in whitespace do not lead to failure.
3330         ac_old_val_w=`echo x $ac_old_val`
3331         ac_new_val_w=`echo x $ac_new_val`
3332         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3333           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3334 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3335           ac_cache_corrupted=:
3336         else
3337           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3338 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3339           eval $ac_var=\$ac_old_val
3340         fi
3341         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3342 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3343         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3344 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3345       fi;;
3346   esac
3347   # Pass precious variables to config.status.
3348   if test "$ac_new_set" = set; then
3349     case $ac_new_val in
3350     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3351     *) ac_arg=$ac_var=$ac_new_val ;;
3352     esac
3353     case " $ac_configure_args " in
3354       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3355       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3356     esac
3357   fi
3358 done
3359 if $ac_cache_corrupted; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3363 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3364   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3365 fi
3366 ## -------------------- ##
3367 ## Main body of script. ##
3368 ## -------------------- ##
3369
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376
3377
3378 ac_aux_dir=
3379 for ac_dir in config "$srcdir"/config; do
3380   for ac_t in install-sh install.sh shtool; do
3381     if test -f "$ac_dir/$ac_t"; then
3382       ac_aux_dir=$ac_dir
3383       ac_install_sh="$ac_aux_dir/$ac_t -c"
3384       break 2
3385     fi
3386   done
3387 done
3388 if test -z "$ac_aux_dir"; then
3389   as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3390 fi
3391
3392 # These three variables are undocumented and unsupported,
3393 # and are intended to be withdrawn in a future Autoconf release.
3394 # They can cause serious problems if a builder's source tree is in a directory
3395 # whose full name contains unusual characters.
3396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3398 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3399
3400
3401
3402
3403 ac_config_headers="$ac_config_headers config/config.h"
3404
3405
3406 ac_config_commands="$ac_config_commands magick/magick-config.h"
3407
3408 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"
3409
3410
3411 #
3412 # Save initial user-tunable values
3413 #
3414 USER_LIBS=$LIBS
3415 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3416   eval isset=\${$var+set}
3417     if test "$isset" = 'set'; then
3418         eval val=$`echo $var`
3419         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3420     fi
3421 done
3422
3423
3424 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3425
3426
3427 # Source file containing package/library versioning information.
3428 . ${srcdir}/version.sh
3429
3430 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3431 # Make sure we can run config.sub.
3432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3433   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3434
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3436 $as_echo_n "checking build system type... " >&6; }
3437 if test "${ac_cv_build+set}" = set; then :
3438   $as_echo_n "(cached) " >&6
3439 else
3440   ac_build_alias=$build_alias
3441 test "x$ac_build_alias" = x &&
3442   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3443 test "x$ac_build_alias" = x &&
3444   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3446   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3447
3448 fi
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3450 $as_echo "$ac_cv_build" >&6; }
3451 case $ac_cv_build in
3452 *-*-*) ;;
3453 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3454 esac
3455 build=$ac_cv_build
3456 ac_save_IFS=$IFS; IFS='-'
3457 set x $ac_cv_build
3458 shift
3459 build_cpu=$1
3460 build_vendor=$2
3461 shift; shift
3462 # Remember, the first character of IFS is used to create $*,
3463 # except with old shells:
3464 build_os=$*
3465 IFS=$ac_save_IFS
3466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3467
3468
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3470 $as_echo_n "checking host system type... " >&6; }
3471 if test "${ac_cv_host+set}" = set; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test "x$host_alias" = x; then
3475   ac_cv_host=$ac_cv_build
3476 else
3477   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3478     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3479 fi
3480
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3483 $as_echo "$ac_cv_host" >&6; }
3484 case $ac_cv_host in
3485 *-*-*) ;;
3486 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3487 esac
3488 host=$ac_cv_host
3489 ac_save_IFS=$IFS; IFS='-'
3490 set x $ac_cv_host
3491 shift
3492 host_cpu=$1
3493 host_vendor=$2
3494 shift; shift
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3497 host_os=$*
3498 IFS=$ac_save_IFS
3499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3500
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3503 $as_echo_n "checking target system type... " >&6; }
3504 if test "${ac_cv_target+set}" = set; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   if test "x$target_alias" = x; then
3508   ac_cv_target=$ac_cv_host
3509 else
3510   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3511     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3512 fi
3513
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3516 $as_echo "$ac_cv_target" >&6; }
3517 case $ac_cv_target in
3518 *-*-*) ;;
3519 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3520 esac
3521 target=$ac_cv_target
3522 ac_save_IFS=$IFS; IFS='-'
3523 set x $ac_cv_target
3524 shift
3525 target_cpu=$1
3526 target_vendor=$2
3527 shift; shift
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3530 target_os=$*
3531 IFS=$ac_save_IFS
3532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3533
3534
3535 # The aliases save the names the user supplied, while $host etc.
3536 # will get canonicalized.
3537 test -n "$target_alias" &&
3538   test "$program_prefix$program_suffix$program_transform_name" = \
3539     NONENONEs,x,x, &&
3540   program_prefix=${target_alias}-
3541
3542
3543
3544
3545
3546 MAGICK_TARGET_CPU=$target_cpu
3547
3548
3549 MAGICK_TARGET_VENDOR=$target_vendor
3550
3551
3552 MAGICK_TARGET_OS=$target_os
3553
3554
3555 # Substitute library versioning
3556 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3557
3558 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3559
3560
3561
3562 # Ensure that make can run correctly
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3564 $as_echo_n "checking whether build environment is sane... " >&6; }
3565 # Just in case
3566 sleep 1
3567 echo timestamp > conftest.file
3568 # Reject unsafe characters in $srcdir or the absolute working directory
3569 # name.  Accept space and tab only in the latter.
3570 am_lf='
3571 '
3572 case `pwd` in
3573   *[\\\"\#\$\&\'\`$am_lf]*)
3574     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3575 esac
3576 case $srcdir in
3577   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3578     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3579 esac
3580
3581 # Do `set' in a subshell so we don't clobber the current shell's
3582 # arguments.  Must try -L first in case configure is actually a
3583 # symlink; some systems play weird games with the mod time of symlinks
3584 # (eg FreeBSD returns the mod time of the symlink's containing
3585 # directory).
3586 if (
3587    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3588    if test "$*" = "X"; then
3589       # -L didn't work.
3590       set X `ls -t "$srcdir/configure" conftest.file`
3591    fi
3592    rm -f conftest.file
3593    if test "$*" != "X $srcdir/configure conftest.file" \
3594       && test "$*" != "X conftest.file $srcdir/configure"; then
3595
3596       # If neither matched, then we have a broken ls.  This can happen
3597       # if, for instance, CONFIG_SHELL is bash and it inherits a
3598       # broken ls alias from the environment.  This has actually
3599       # happened.  Such a system could not be considered "sane".
3600       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3601 alias in your environment" "$LINENO" 5
3602    fi
3603
3604    test "$2" = conftest.file
3605    )
3606 then
3607    # Ok.
3608    :
3609 else
3610    as_fn_error "newly created file is older than distributed files!
3611 Check your system clock" "$LINENO" 5
3612 fi
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3615
3616 am__api_version='1.11'
3617
3618 # Find a good install program.  We prefer a C program (faster),
3619 # so one script is as good as another.  But avoid the broken or
3620 # incompatible versions:
3621 # SysV /etc/install, /usr/sbin/install
3622 # SunOS /usr/etc/install
3623 # IRIX /sbin/install
3624 # AIX /bin/install
3625 # AmigaOS /C/install, which installs bootblocks on floppy discs
3626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3629 # OS/2's system install, which has a completely different semantic
3630 # ./install, which can be erroneously created by make from ./install.sh.
3631 # Reject install programs that cannot install multiple files.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3633 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3634 if test -z "$INSTALL"; then
3635 if test "${ac_cv_path_install+set}" = set; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643     # Account for people who put trailing slashes in PATH elements.
3644 case $as_dir/ in #((
3645   ./ | .// | /[cC]/* | \
3646   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3647   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3648   /usr/ucb/* ) ;;
3649   *)
3650     # OSF1 and SCO ODT 3.0 have their own names for install.
3651     # Don't use installbsd from OSF since it installs stuff as root
3652     # by default.
3653     for ac_prog in ginstall scoinst install; do
3654       for ac_exec_ext in '' $ac_executable_extensions; do
3655         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3656           if test $ac_prog = install &&
3657             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658             # AIX install.  It has an incompatible calling convention.
3659             :
3660           elif test $ac_prog = install &&
3661             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3662             # program-specific install script used by HP pwplus--don't use.
3663             :
3664           else
3665             rm -rf conftest.one conftest.two conftest.dir
3666             echo one > conftest.one
3667             echo two > conftest.two
3668             mkdir conftest.dir
3669             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3670               test -s conftest.one && test -s conftest.two &&
3671               test -s conftest.dir/conftest.one &&
3672               test -s conftest.dir/conftest.two
3673             then
3674               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3675               break 3
3676             fi
3677           fi
3678         fi
3679       done
3680     done
3681     ;;
3682 esac
3683
3684   done
3685 IFS=$as_save_IFS
3686
3687 rm -rf conftest.one conftest.two conftest.dir
3688
3689 fi
3690   if test "${ac_cv_path_install+set}" = set; then
3691     INSTALL=$ac_cv_path_install
3692   else
3693     # As a last resort, use the slow shell script.  Don't cache a
3694     # value for INSTALL within a source directory, because that will
3695     # break other packages using the cache if that directory is
3696     # removed, or if the value is a relative name.
3697     INSTALL=$ac_install_sh
3698   fi
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3701 $as_echo "$INSTALL" >&6; }
3702
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3706
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3708
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3710
3711 test "$program_prefix" != NONE &&
3712   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3713 # Use a double $ so make ignores it.
3714 test "$program_suffix" != NONE &&
3715   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3716 # Double any \ or $.
3717 # By default was `s,x,x', remove it if useless.
3718 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3719 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3720
3721 # expand $ac_aux_dir to an absolute path
3722 am_aux_dir=`cd $ac_aux_dir && pwd`
3723
3724 if test x"${MISSING+set}" != xset; then
3725   case $am_aux_dir in
3726   *\ * | *\     *)
3727     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3728   *)
3729     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3730   esac
3731 fi
3732 # Use eval to expand $SHELL
3733 if eval "$MISSING --run true"; then
3734   am_missing_run="$MISSING --run "
3735 else
3736   am_missing_run=
3737   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3738 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3739 fi
3740
3741 if test x"${install_sh}" != xset; then
3742   case $am_aux_dir in
3743   *\ * | *\     *)
3744     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3745   *)
3746     install_sh="\${SHELL} $am_aux_dir/install-sh"
3747   esac
3748 fi
3749
3750 # Installed binaries are usually stripped using `strip' when the user
3751 # run `make install-strip'.  However `strip' might not be the right
3752 # tool to use in cross-compilation environments, therefore Automake
3753 # will honor the `STRIP' environment variable to overrule this program.
3754 if test "$cross_compiling" != no; then
3755   if test -n "$ac_tool_prefix"; then
3756   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}strip; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_STRIP+set}" = set; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   if test -n "$STRIP"; then
3764   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3765 else
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771     for ac_exec_ext in '' $ac_executable_extensions; do
3772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775     break 2
3776   fi
3777 done
3778   done
3779 IFS=$as_save_IFS
3780
3781 fi
3782 fi
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3786 $as_echo "$STRIP" >&6; }
3787 else
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3790 fi
3791
3792
3793 fi
3794 if test -z "$ac_cv_prog_STRIP"; then
3795   ac_ct_STRIP=$STRIP
3796   # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3801   $as_echo_n "(cached) " >&6
3802 else
3803   if test -n "$ac_ct_STRIP"; then
3804   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3805 else
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 for as_dir in $PATH
3808 do
3809   IFS=$as_save_IFS
3810   test -z "$as_dir" && as_dir=.
3811     for ac_exec_ext in '' $ac_executable_extensions; do
3812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813     ac_cv_prog_ac_ct_STRIP="strip"
3814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815     break 2
3816   fi
3817 done
3818   done
3819 IFS=$as_save_IFS
3820
3821 fi
3822 fi
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3826 $as_echo "$ac_ct_STRIP" >&6; }
3827 else
3828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 fi
3831
3832   if test "x$ac_ct_STRIP" = x; then
3833     STRIP=":"
3834   else
3835     case $cross_compiling:$ac_tool_warned in
3836 yes:)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3840 esac
3841     STRIP=$ac_ct_STRIP
3842   fi
3843 else
3844   STRIP="$ac_cv_prog_STRIP"
3845 fi
3846
3847 fi
3848 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3849
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3851 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3852 if test -z "$MKDIR_P"; then
3853   if test "${ac_cv_path_mkdir+set}" = set; then :
3854   $as_echo_n "(cached) " >&6
3855 else
3856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3858 do
3859   IFS=$as_save_IFS
3860   test -z "$as_dir" && as_dir=.
3861     for ac_prog in mkdir gmkdir; do
3862          for ac_exec_ext in '' $ac_executable_extensions; do
3863            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3864            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3865              'mkdir (GNU coreutils) '* | \
3866              'mkdir (coreutils) '* | \
3867              'mkdir (fileutils) '4.1*)
3868                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3869                break 3;;
3870            esac
3871          done
3872        done
3873   done
3874 IFS=$as_save_IFS
3875
3876 fi
3877
3878   test -d ./--version && rmdir ./--version
3879   if test "${ac_cv_path_mkdir+set}" = set; then
3880     MKDIR_P="$ac_cv_path_mkdir -p"
3881   else
3882     # As a last resort, use the slow shell script.  Don't cache a
3883     # value for MKDIR_P within a source directory, because that will
3884     # break other packages using the cache if that directory is
3885     # removed, or if the value is a relative name.
3886     MKDIR_P="$ac_install_sh -d"
3887   fi
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3890 $as_echo "$MKDIR_P" >&6; }
3891
3892 mkdir_p="$MKDIR_P"
3893 case $mkdir_p in
3894   [\\/$]* | ?:[\\/]*) ;;
3895   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3896 esac
3897
3898 for ac_prog in gawk mawk nawk awk
3899 do
3900   # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy $ac_prog; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_AWK+set}" = set; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   if test -n "$AWK"; then
3908   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915     for ac_exec_ext in '' $ac_executable_extensions; do
3916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917     ac_cv_prog_AWK="$ac_prog"
3918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922   done
3923 IFS=$as_save_IFS
3924
3925 fi
3926 fi
3927 AWK=$ac_cv_prog_AWK
3928 if test -n "$AWK"; then
3929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3930 $as_echo "$AWK" >&6; }
3931 else
3932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3934 fi
3935
3936
3937   test -n "$AWK" && break
3938 done
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3942 set x ${MAKE-make}
3943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3944 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3945   $as_echo_n "(cached) " >&6
3946 else
3947   cat >conftest.make <<\_ACEOF
3948 SHELL = /bin/sh
3949 all:
3950         @echo '@@@%%%=$(MAKE)=@@@%%%'
3951 _ACEOF
3952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3954   *@@@%%%=?*=@@@%%%*)
3955     eval ac_cv_prog_make_${ac_make}_set=yes;;
3956   *)
3957     eval ac_cv_prog_make_${ac_make}_set=no;;
3958 esac
3959 rm -f conftest.make
3960 fi
3961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963 $as_echo "yes" >&6; }
3964   SET_MAKE=
3965 else
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968   SET_MAKE="MAKE=${MAKE-make}"
3969 fi
3970
3971 rm -rf .tst 2>/dev/null
3972 mkdir .tst 2>/dev/null
3973 if test -d .tst; then
3974   am__leading_dot=.
3975 else
3976   am__leading_dot=_
3977 fi
3978 rmdir .tst 2>/dev/null
3979
3980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982   # is not polluted with repeated "-I."
3983   am__isrc=' -I$(srcdir)'
3984   # test to see if srcdir already configured
3985   if test -f $srcdir/config.status; then
3986     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3987   fi
3988 fi
3989
3990 # test whether we have cygpath
3991 if test -z "$CYGPATH_W"; then
3992   if (cygpath --version) >/dev/null 2>/dev/null; then
3993     CYGPATH_W='cygpath -w'
3994   else
3995     CYGPATH_W=echo
3996   fi
3997 fi
3998
3999
4000 # Define the identity of the package.
4001  PACKAGE=$PACKAGE_NAME
4002  VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4003
4004
4005 # Some tools Automake needs.
4006
4007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4008
4009
4010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4011
4012
4013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4014
4015
4016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4017
4018
4019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4020
4021 # We need awk for the "check" target.  The system "awk" is bad on
4022 # some platforms.
4023 # Always define AMTAR for backward compatibility.
4024
4025 AMTAR=${AMTAR-"${am_missing_run}tar"}
4026
4027 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4028
4029
4030
4031
4032
4033
4034 # Enable support for silent build rules
4035 # Check whether --enable-silent-rules was given.
4036 if test "${enable_silent_rules+set}" = set; then :
4037   enableval=$enable_silent_rules;
4038 fi
4039
4040 case $enable_silent_rules in
4041 yes) AM_DEFAULT_VERBOSITY=0;;
4042 no)  AM_DEFAULT_VERBOSITY=1;;
4043 *)   AM_DEFAULT_VERBOSITY=0;;
4044 esac
4045 AM_BACKSLASH='\'
4046
4047
4048 MAGICK_LIB_VERSION="0x"
4049 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4050   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4051 fi
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4053 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4054   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4055 fi
4056 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4057 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4058   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4059 fi
4060 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4061
4062
4063 # Definition used to define MagickLibVersionText in version.h
4064 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4065
4066
4067 # Definition used to define MagickLibVersionNumber in version.h
4068 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4069
4070
4071 # Regenerate config.status if ChangeLog or version.sh is updated.
4072 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4073
4074
4075 PERLMAINCC=$CC
4076
4077 MAGICK_CFLAGS=''
4078 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4079 MAGICK_PCFLAGS=$CPPFLAGS_USER
4080 MAGICK_LDFLAGS=''
4081 MAGICK_LIBS=''
4082 MAGICK_FEATURES=''
4083
4084 #
4085 # Evaluate shell variable equivalents to Makefile directory variables
4086 #
4087 if test "x$prefix" = xNONE; then
4088     prefix=$ac_default_prefix
4089 fi
4090 # Let make expand exec_prefix.
4091 if test "x$exec_prefix" = xNONE; then
4092     exec_prefix='${prefix}'
4093 fi
4094
4095 #
4096 eval "eval PREFIX_DIR=${prefix}"
4097
4098 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4099
4100 eval "eval BIN_DIR=$bindir"
4101
4102 eval "eval SBIN_DIR=$sbindir"
4103
4104 eval "eval LIBEXEC_DIR=$libexecdir"
4105
4106 eval "eval DATA_DIR=$datadir"
4107
4108 eval "eval SYSCONF_DIR=$sysconfdir"
4109
4110 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4111
4112 eval "eval LOCALSTATE_DIR=$localstatedir"
4113
4114 eval "eval LIB_DIR=$libdir"
4115
4116 eval "eval INCLUDE_DIR=$includedir"
4117
4118 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4119
4120 eval "eval INFO_DIR=$infodir"
4121
4122 eval "eval MAN_DIR=$mandir"
4123
4124
4125 # Get full paths to source and build directories
4126 srcdirfull="`cd $srcdir && pwd`"
4127 builddir="`pwd`"
4128
4129 #
4130 # Compute variables useful for running uninstalled software.
4131 #
4132 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4133 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4134 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4135 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4136 DIRSEP=':'
4137 case "${build_os}" in
4138     mingw* )
4139         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4140         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4141         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4142         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4143         DIRSEP=';'
4144     ;;
4145 esac
4146 case "${host_os}" in
4147   mingw* )
4148     DIRSEP=';'
4149     ;;
4150 esac
4151
4152
4153
4154
4155
4156
4157
4158 #
4159 # Enable OS features.
4160 #
4161 DEPDIR="${am__leading_dot}deps"
4162
4163 ac_config_commands="$ac_config_commands depfiles"
4164
4165
4166 am_make=${MAKE-make}
4167 cat > confinc << 'END'
4168 am__doit:
4169         @echo this is the am__doit target
4170 .PHONY: am__doit
4171 END
4172 # If we don't find an include directive, just comment out the code.
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4174 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4175 am__include="#"
4176 am__quote=
4177 _am_result=none
4178 # First try GNU make style include.
4179 echo "include confinc" > confmf
4180 # Ignore all kinds of additional output from `make'.
4181 case `$am_make -s -f confmf 2> /dev/null` in #(
4182 *the\ am__doit\ target*)
4183   am__include=include
4184   am__quote=
4185   _am_result=GNU
4186   ;;
4187 esac
4188 # Now try BSD make style include.
4189 if test "$am__include" = "#"; then
4190    echo '.include "confinc"' > confmf
4191    case `$am_make -s -f confmf 2> /dev/null` in #(
4192    *the\ am__doit\ target*)
4193      am__include=.include
4194      am__quote="\""
4195      _am_result=BSD
4196      ;;
4197    esac
4198 fi
4199
4200
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4202 $as_echo "$_am_result" >&6; }
4203 rm -f confinc confmf
4204
4205 # Check whether --enable-dependency-tracking was given.
4206 if test "${enable_dependency_tracking+set}" = set; then :
4207   enableval=$enable_dependency_tracking;
4208 fi
4209
4210 if test "x$enable_dependency_tracking" != xno; then
4211   am_depcomp="$ac_aux_dir/depcomp"
4212   AMDEPBACKSLASH='\'
4213 fi
4214  if test "x$enable_dependency_tracking" != xno; then
4215   AMDEP_TRUE=
4216   AMDEP_FALSE='#'
4217 else
4218   AMDEP_TRUE='#'
4219   AMDEP_FALSE=
4220 fi
4221
4222
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 if test -n "$ac_tool_prefix"; then
4229   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if test "${ac_cv_prog_CC+set}" = set; then :
4234   $as_echo_n "(cached) " >&6
4235 else
4236   if test -n "$CC"; then
4237   ac_cv_prog_CC="$CC" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242   IFS=$as_save_IFS
4243   test -z "$as_dir" && as_dir=.
4244     for ac_exec_ext in '' $ac_executable_extensions; do
4245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248     break 2
4249   fi
4250 done
4251   done
4252 IFS=$as_save_IFS
4253
4254 fi
4255 fi
4256 CC=$ac_cv_prog_CC
4257 if test -n "$CC"; then
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4259 $as_echo "$CC" >&6; }
4260 else
4261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4263 fi
4264
4265
4266 fi
4267 if test -z "$ac_cv_prog_CC"; then
4268   ac_ct_CC=$CC
4269   # Extract the first word of "gcc", so it can be a program name with args.
4270 set dummy gcc; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4274   $as_echo_n "(cached) " >&6
4275 else
4276   if test -n "$ac_ct_CC"; then
4277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284     for ac_exec_ext in '' $ac_executable_extensions; do
4285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286     ac_cv_prog_ac_ct_CC="gcc"
4287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291   done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4299 $as_echo "$ac_ct_CC" >&6; }
4300 else
4301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4303 fi
4304
4305   if test "x$ac_ct_CC" = x; then
4306     CC=""
4307   else
4308     case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314     CC=$ac_ct_CC
4315   fi
4316 else
4317   CC="$ac_cv_prog_CC"
4318 fi
4319
4320 if test -z "$CC"; then
4321           if test -n "$ac_tool_prefix"; then
4322     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}cc; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_CC+set}" = set; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   if test -n "$CC"; then
4330   ac_cv_prog_CC="$CC" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4334 do
4335   IFS=$as_save_IFS
4336   test -z "$as_dir" && as_dir=.
4337     for ac_exec_ext in '' $ac_executable_extensions; do
4338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339     ac_cv_prog_CC="${ac_tool_prefix}cc"
4340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341     break 2
4342   fi
4343 done
4344   done
4345 IFS=$as_save_IFS
4346
4347 fi
4348 fi
4349 CC=$ac_cv_prog_CC
4350 if test -n "$CC"; then
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352 $as_echo "$CC" >&6; }
4353 else
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359   fi
4360 fi
4361 if test -z "$CC"; then
4362   # Extract the first word of "cc", so it can be a program name with args.
4363 set dummy cc; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then :
4367   $as_echo_n "(cached) " >&6
4368 else
4369   if test -n "$CC"; then
4370   ac_cv_prog_CC="$CC" # Let the user override the test.
4371 else
4372   ac_prog_rejected=no
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378     for ac_exec_ext in '' $ac_executable_extensions; do
4379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4381        ac_prog_rejected=yes
4382        continue
4383      fi
4384     ac_cv_prog_CC="cc"
4385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386     break 2
4387   fi
4388 done
4389   done
4390 IFS=$as_save_IFS
4391
4392 if test $ac_prog_rejected = yes; then
4393   # We found a bogon in the path, so make sure we never use it.
4394   set dummy $ac_cv_prog_CC
4395   shift
4396   if test $# != 0; then
4397     # We chose a different compiler from the bogus one.
4398     # However, it has the same basename, so the bogon will be chosen
4399     # first if we set CC to just the basename; use the full file name.
4400     shift
4401     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4402   fi
4403 fi
4404 fi
4405 fi
4406 CC=$ac_cv_prog_CC
4407 if test -n "$CC"; then
4408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4409 $as_echo "$CC" >&6; }
4410 else
4411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416 fi
4417 if test -z "$CC"; then
4418   if test -n "$ac_tool_prefix"; then
4419   for ac_prog in cl.exe
4420   do
4421     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_prog_CC+set}" = set; then :
4426   $as_echo_n "(cached) " >&6
4427 else
4428   if test -n "$CC"; then
4429   ac_cv_prog_CC="$CC" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436     for ac_exec_ext in '' $ac_executable_extensions; do
4437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443   done
4444 IFS=$as_save_IFS
4445
4446 fi
4447 fi
4448 CC=$ac_cv_prog_CC
4449 if test -n "$CC"; then
4450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4451 $as_echo "$CC" >&6; }
4452 else
4453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4455 fi
4456
4457
4458     test -n "$CC" && break
4459   done
4460 fi
4461 if test -z "$CC"; then
4462   ac_ct_CC=$CC
4463   for ac_prog in cl.exe
4464 do
4465   # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4470   $as_echo_n "(cached) " >&6
4471 else
4472   if test -n "$ac_ct_CC"; then
4473   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480     for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_prog_ac_ct_CC="$ac_prog"
4483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487   done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4493 if test -n "$ac_ct_CC"; then
4494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4495 $as_echo "$ac_ct_CC" >&6; }
4496 else
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501
4502   test -n "$ac_ct_CC" && break
4503 done
4504
4505   if test "x$ac_ct_CC" = x; then
4506     CC=""
4507   else
4508     case $cross_compiling:$ac_tool_warned in
4509 yes:)
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4513 esac
4514     CC=$ac_ct_CC
4515   fi
4516 fi
4517
4518 fi
4519
4520
4521 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error "no acceptable C compiler found in \$PATH
4524 See \`config.log' for more details." "$LINENO" 5; }
4525
4526 # Provide some information about the compiler.
4527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4528 set X $ac_compile
4529 ac_compiler=$2
4530 for ac_option in --version -v -V -qversion; do
4531   { { ac_try="$ac_compiler $ac_option >&5"
4532 case "(($ac_try" in
4533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534   *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4539   ac_status=$?
4540   if test -s conftest.err; then
4541     sed '10a\
4542 ... rest of stderr output deleted ...
4543          10q' conftest.err >conftest.er1
4544     cat conftest.er1 >&5
4545   fi
4546   rm -f conftest.er1 conftest.err
4547   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548   test $ac_status = 0; }
4549 done
4550
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h.  */
4553
4554 int
4555 main ()
4556 {
4557
4558   ;
4559   return 0;
4560 }
4561 _ACEOF
4562 ac_clean_files_save=$ac_clean_files
4563 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4564 # Try to create an executable without -o first, disregard a.out.
4565 # It will help us diagnose broken compilers, and finding out an intuition
4566 # of exeext.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4568 $as_echo_n "checking whether the C compiler works... " >&6; }
4569 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4570
4571 # The possible output files:
4572 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4573
4574 ac_rmfiles=
4575 for ac_file in $ac_files
4576 do
4577   case $ac_file in
4578     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4579     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4580   esac
4581 done
4582 rm -f $ac_rmfiles
4583
4584 if { { ac_try="$ac_link_default"
4585 case "(($ac_try" in
4586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587   *) ac_try_echo=$ac_try;;
4588 esac
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591   (eval "$ac_link_default") 2>&5
4592   ac_status=$?
4593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594   test $ac_status = 0; }; then :
4595   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4596 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4597 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4598 # so that the user can short-circuit this test for compilers unknown to
4599 # Autoconf.
4600 for ac_file in $ac_files ''
4601 do
4602   test -f "$ac_file" || continue
4603   case $ac_file in
4604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4605         ;;
4606     [ab].out )
4607         # We found the default executable, but exeext='' is most
4608         # certainly right.
4609         break;;
4610     *.* )
4611         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4612         then :; else
4613            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4614         fi
4615         # We set ac_cv_exeext here because the later test for it is not
4616         # safe: cross compilers may not add the suffix if given an `-o'
4617         # argument, so we may need to know it at that point already.
4618         # Even if this section looks crufty: it has the advantage of
4619         # actually working.
4620         break;;
4621     * )
4622         break;;
4623   esac
4624 done
4625 test "$ac_cv_exeext" = no && ac_cv_exeext=
4626
4627 else
4628   ac_file=''
4629 fi
4630 if test -z "$ac_file"; then :
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 $as_echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 { as_fn_set_status 77
4639 as_fn_error "C compiler cannot create executables
4640 See \`config.log' for more details." "$LINENO" 5; }; }
4641 else
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; }
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4646 $as_echo_n "checking for C compiler default output file name... " >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4648 $as_echo "$ac_file" >&6; }
4649 ac_exeext=$ac_cv_exeext
4650
4651 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4652 ac_clean_files=$ac_clean_files_save
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4654 $as_echo_n "checking for suffix of executables... " >&6; }
4655 if { { ac_try="$ac_link"
4656 case "(($ac_try" in
4657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658   *) ac_try_echo=$ac_try;;
4659 esac
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 $as_echo "$ac_try_echo"; } >&5
4662   (eval "$ac_link") 2>&5
4663   ac_status=$?
4664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665   test $ac_status = 0; }; then :
4666   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4667 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4668 # work properly (i.e., refer to `conftest.exe'), while it won't with
4669 # `rm'.
4670 for ac_file in conftest.exe conftest conftest.*; do
4671   test -f "$ac_file" || continue
4672   case $ac_file in
4673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4674     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4675           break;;
4676     * ) break;;
4677   esac
4678 done
4679 else
4680   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4682 as_fn_error "cannot compute suffix of executables: cannot compile and link
4683 See \`config.log' for more details." "$LINENO" 5; }
4684 fi
4685 rm -f conftest conftest$ac_cv_exeext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4687 $as_echo "$ac_cv_exeext" >&6; }
4688
4689 rm -f conftest.$ac_ext
4690 EXEEXT=$ac_cv_exeext
4691 ac_exeext=$EXEEXT
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694 #include <stdio.h>
4695 int
4696 main ()
4697 {
4698 FILE *f = fopen ("conftest.out", "w");
4699  return ferror (f) || fclose (f) != 0;
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 ac_clean_files="$ac_clean_files conftest.out"
4706 # Check that the compiler produces executables we can run.  If not, either
4707 # the compiler is broken, or we cross compile.
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4709 $as_echo_n "checking whether we are cross compiling... " >&6; }
4710 if test "$cross_compiling" != yes; then
4711   { { ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4717 $as_echo "$ac_try_echo"; } >&5
4718   (eval "$ac_link") 2>&5
4719   ac_status=$?
4720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721   test $ac_status = 0; }
4722   if { ac_try='./conftest$ac_cv_exeext'
4723   { { case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4728 $as_echo "$ac_try_echo"; } >&5
4729   (eval "$ac_try") 2>&5
4730   ac_status=$?
4731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732   test $ac_status = 0; }; }; then
4733     cross_compiling=no
4734   else
4735     if test "$cross_compiling" = maybe; then
4736         cross_compiling=yes
4737     else
4738         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error "cannot run C compiled programs.
4741 If you meant to cross compile, use \`--host'.
4742 See \`config.log' for more details." "$LINENO" 5; }
4743     fi
4744   fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4747 $as_echo "$cross_compiling" >&6; }
4748
4749 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4750 ac_clean_files=$ac_clean_files_save
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4752 $as_echo_n "checking for suffix of object files... " >&6; }
4753 if test "${ac_cv_objext+set}" = set; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h.  */
4758
4759 int
4760 main ()
4761 {
4762
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.o conftest.obj
4768 if { { ac_try="$ac_compile"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774 $as_echo "$ac_try_echo"; } >&5
4775   (eval "$ac_compile") 2>&5
4776   ac_status=$?
4777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778   test $ac_status = 0; }; then :
4779   for ac_file in conftest.o conftest.obj conftest.*; do
4780   test -f "$ac_file" || continue;
4781   case $ac_file in
4782     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4783     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4784        break;;
4785   esac
4786 done
4787 else
4788   $as_echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 as_fn_error "cannot compute suffix of object files: cannot compile
4794 See \`config.log' for more details." "$LINENO" 5; }
4795 fi
4796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4797 fi
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4799 $as_echo "$ac_cv_objext" >&6; }
4800 OBJEXT=$ac_cv_objext
4801 ac_objext=$OBJEXT
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h.  */
4809
4810 int
4811 main ()
4812 {
4813 #ifndef __GNUC__
4814        choke me
4815 #endif
4816
4817   ;
4818   return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822   ac_compiler_gnu=yes
4823 else
4824   ac_compiler_gnu=no
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4828
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4832 if test $ac_compiler_gnu = yes; then
4833   GCC=yes
4834 else
4835   GCC=
4836 fi
4837 ac_test_CFLAGS=${CFLAGS+set}
4838 ac_save_CFLAGS=$CFLAGS
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4841 if test "${ac_cv_prog_cc_g+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   ac_save_c_werror_flag=$ac_c_werror_flag
4845    ac_c_werror_flag=yes
4846    ac_cv_prog_cc_g=no
4847    CFLAGS="-g"
4848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h.  */
4850
4851 int
4852 main ()
4853 {
4854
4855   ;
4856   return 0;
4857 }
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860   ac_cv_prog_cc_g=yes
4861 else
4862   CFLAGS=""
4863       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h.  */
4865
4866 int
4867 main ()
4868 {
4869
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875
4876 else
4877   ac_c_werror_flag=$ac_save_c_werror_flag
4878          CFLAGS="-g"
4879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881
4882 int
4883 main ()
4884 {
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891   ac_cv_prog_cc_g=yes
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898    ac_c_werror_flag=$ac_save_c_werror_flag
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4901 $as_echo "$ac_cv_prog_cc_g" >&6; }
4902 if test "$ac_test_CFLAGS" = set; then
4903   CFLAGS=$ac_save_CFLAGS
4904 elif test $ac_cv_prog_cc_g = yes; then
4905   if test "$GCC" = yes; then
4906     CFLAGS="-g -O2"
4907   else
4908     CFLAGS="-g"
4909   fi
4910 else
4911   if test "$GCC" = yes; then
4912     CFLAGS="-O2"
4913   else
4914     CFLAGS=
4915   fi
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   ac_cv_prog_cc_c89=no
4923 ac_save_CC=$CC
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h.  */
4926 #include <stdarg.h>
4927 #include <stdio.h>
4928 #include <sys/types.h>
4929 #include <sys/stat.h>
4930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4931 struct buf { int x; };
4932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4933 static char *e (p, i)
4934      char **p;
4935      int i;
4936 {
4937   return p[i];
4938 }
4939 static char *f (char * (*g) (char **, int), char **p, ...)
4940 {
4941   char *s;
4942   va_list v;
4943   va_start (v,p);
4944   s = g (p, va_arg (v,int));
4945   va_end (v);
4946   return s;
4947 }
4948
4949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4950    function prototypes and stuff, but not '\xHH' hex character constants.
4951    These don't provoke an error unfortunately, instead are silently treated
4952    as 'x'.  The following induces an error, until -std is added to get
4953    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4954    array size at least.  It's necessary to write '\x00'==0 to get something
4955    that's true only with -std.  */
4956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4957
4958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4959    inside strings and character constants.  */
4960 #define FOO(x) 'x'
4961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4962
4963 int test (int i, double x);
4964 struct s1 {int (*f) (int a);};
4965 struct s2 {int (*f) (double a);};
4966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4967 int argc;
4968 char **argv;
4969 int
4970 main ()
4971 {
4972 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4973   ;
4974   return 0;
4975 }
4976 _ACEOF
4977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4978         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4979 do
4980   CC="$ac_save_CC $ac_arg"
4981   if ac_fn_c_try_compile "$LINENO"; then :
4982   ac_cv_prog_cc_c89=$ac_arg
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext
4985   test "x$ac_cv_prog_cc_c89" != "xno" && break
4986 done
4987 rm -f conftest.$ac_ext
4988 CC=$ac_save_CC
4989
4990 fi
4991 # AC_CACHE_VAL
4992 case "x$ac_cv_prog_cc_c89" in
4993   x)
4994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4995 $as_echo "none needed" >&6; } ;;
4996   xno)
4997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 $as_echo "unsupported" >&6; } ;;
4999   *)
5000     CC="$CC $ac_cv_prog_cc_c89"
5001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5003 esac
5004 if test "x$ac_cv_prog_cc_c89" != xno; then :
5005
5006 fi
5007
5008 ac_ext=c
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014 depcc="$CC"   am_compiler_list=
5015
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5017 $as_echo_n "checking dependency style of $depcc... " >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022   # We make a subdir and do the tests there.  Otherwise we can end up
5023   # making bogus files that we don't know about and never remove.  For
5024   # instance it was reported that on HP-UX the gcc test will end up
5025   # making a dummy file named `D' -- because `-MD' means `put the output
5026   # in D'.
5027   mkdir conftest.dir
5028   # Copy depcomp to subdir because otherwise we won't find it if we're
5029   # using a relative directory.
5030   cp "$am_depcomp" conftest.dir
5031   cd conftest.dir
5032   # We will build objects and dependencies in a subdirectory because
5033   # it helps to detect inapplicable dependency modes.  For instance
5034   # both Tru64's cc and ICC support -MD to output dependencies as a
5035   # side effect of compilation, but ICC will put the dependencies in
5036   # the current directory while Tru64 will put them in the object
5037   # directory.
5038   mkdir sub
5039
5040   am_cv_CC_dependencies_compiler_type=none
5041   if test "$am_compiler_list" = ""; then
5042      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5043   fi
5044   am__universal=false
5045   case " $depcc " in #(
5046      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5047      esac
5048
5049   for depmode in $am_compiler_list; do
5050     # Setup a source with many dependencies, because some compilers
5051     # like to wrap large dependency lists on column 80 (with \), and
5052     # we should not choose a depcomp mode which is confused by this.
5053     #
5054     # We need to recreate these files for each test, as the compiler may
5055     # overwrite some of them when testing with obscure command lines.
5056     # This happens at least with the AIX C compiler.
5057     : > sub/conftest.c
5058     for i in 1 2 3 4 5 6; do
5059       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5060       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5061       # Solaris 8's {/usr,}/bin/sh.
5062       touch sub/conftst$i.h
5063     done
5064     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5065
5066     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067     # mode.  It turns out that the SunPro C++ compiler does not properly
5068     # handle `-M -o', and we need to detect this.  Also, some Intel
5069     # versions had trouble with output in subdirs
5070     am__obj=sub/conftest.${OBJEXT-o}
5071     am__minus_obj="-o $am__obj"
5072     case $depmode in
5073     gcc)
5074       # This depmode causes a compiler race in universal mode.
5075       test "$am__universal" = false || continue
5076       ;;
5077     nosideeffect)
5078       # after this tag, mechanisms are not by side-effect, so they'll
5079       # only be used when explicitly requested
5080       if test "x$enable_dependency_tracking" = xyes; then
5081         continue
5082       else
5083         break
5084       fi
5085       ;;
5086     msvisualcpp | msvcmsys)
5087       # This compiler won't grok `-c -o', but also, the minuso test has
5088       # not run yet.  These depmodes are late enough in the game, and
5089       # so weak that their functioning should not be impacted.
5090       am__obj=conftest.${OBJEXT-o}
5091       am__minus_obj=
5092       ;;
5093     none) break ;;
5094     esac
5095     if depmode=$depmode \
5096        source=sub/conftest.c object=$am__obj \
5097        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5098        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5099          >/dev/null 2>conftest.err &&
5100        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5101        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5102        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5103        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5104       # icc doesn't choke on unknown options, it will just issue warnings
5105       # or remarks (even with -Werror).  So we grep stderr for any message
5106       # that says an option was ignored or not supported.
5107       # When given -MP, icc 7.0 and 7.1 complain thusly:
5108       #   icc: Command line warning: ignoring option '-M'; no argument required
5109       # The diagnosis changed in icc 8.0:
5110       #   icc: Command line remark: option '-MP' not supported
5111       if (grep 'ignoring option' conftest.err ||
5112           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5113         am_cv_CC_dependencies_compiler_type=$depmode
5114         break
5115       fi
5116     fi
5117   done
5118
5119   cd ..
5120   rm -rf conftest.dir
5121 else
5122   am_cv_CC_dependencies_compiler_type=none
5123 fi
5124
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5129
5130  if
5131   test "x$enable_dependency_tracking" != xno \
5132   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5133   am__fastdepCC_TRUE=
5134   am__fastdepCC_FALSE='#'
5135 else
5136   am__fastdepCC_TRUE='#'
5137   am__fastdepCC_FALSE=
5138 fi
5139
5140
5141
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5149 # On Suns, sometimes $CPP names a directory.
5150 if test -n "$CPP" && test -d "$CPP"; then
5151   CPP=
5152 fi
5153 if test -z "$CPP"; then
5154   if test "${ac_cv_prog_CPP+set}" = set; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157       # Double quotes because CPP needs to be expanded
5158     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5159     do
5160       ac_preproc_ok=false
5161 for ac_c_preproc_warn_flag in '' yes
5162 do
5163   # Use a header file that comes with gcc, so configuring glibc
5164   # with a fresh cross-compiler works.
5165   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166   # <limits.h> exists even on freestanding compilers.
5167   # On the NeXT, cc -E runs the code through the compiler's parser,
5168   # not just through cpp. "Syntax error" is here to catch this case.
5169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h.  */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176                      Syntax error
5177 _ACEOF
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5179
5180 else
5181   # Broken: fails on valid input.
5182 continue
5183 fi
5184 rm -f conftest.err conftest.$ac_ext
5185
5186   # OK, works on sane cases.  Now check whether nonexistent headers
5187   # can be detected and how.
5188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h.  */
5190 #include <ac_nonexistent.h>
5191 _ACEOF
5192 if ac_fn_c_try_cpp "$LINENO"; then :
5193   # Broken: success on invalid input.
5194 continue
5195 else
5196   # Passes both tests.
5197 ac_preproc_ok=:
5198 break
5199 fi
5200 rm -f conftest.err conftest.$ac_ext
5201
5202 done
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then :
5206   break
5207 fi
5208
5209     done
5210     ac_cv_prog_CPP=$CPP
5211
5212 fi
5213   CPP=$ac_cv_prog_CPP
5214 else
5215   ac_cv_prog_CPP=$CPP
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5218 $as_echo "$CPP" >&6; }
5219 ac_preproc_ok=false
5220 for ac_c_preproc_warn_flag in '' yes
5221 do
5222   # Use a header file that comes with gcc, so configuring glibc
5223   # with a fresh cross-compiler works.
5224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225   # <limits.h> exists even on freestanding compilers.
5226   # On the NeXT, cc -E runs the code through the compiler's parser,
5227   # not just through cpp. "Syntax error" is here to catch this case.
5228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h.  */
5230 #ifdef __STDC__
5231 # include <limits.h>
5232 #else
5233 # include <assert.h>
5234 #endif
5235                      Syntax error
5236 _ACEOF
5237 if ac_fn_c_try_cpp "$LINENO"; then :
5238
5239 else
5240   # Broken: fails on valid input.
5241 continue
5242 fi
5243 rm -f conftest.err conftest.$ac_ext
5244
5245   # OK, works on sane cases.  Now check whether nonexistent headers
5246   # can be detected and how.
5247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h.  */
5249 #include <ac_nonexistent.h>
5250 _ACEOF
5251 if ac_fn_c_try_cpp "$LINENO"; then :
5252   # Broken: success on invalid input.
5253 continue
5254 else
5255   # Passes both tests.
5256 ac_preproc_ok=:
5257 break
5258 fi
5259 rm -f conftest.err conftest.$ac_ext
5260
5261 done
5262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5263 rm -f conftest.err conftest.$ac_ext
5264 if $ac_preproc_ok; then :
5265
5266 else
5267   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5269 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5270 See \`config.log' for more details." "$LINENO" 5; }
5271 fi
5272
5273 ac_ext=c
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
5279
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5281 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5282 if test "${ac_cv_path_GREP+set}" = set; then :
5283   $as_echo_n "(cached) " >&6
5284 else
5285   if test -z "$GREP"; then
5286   ac_path_GREP_found=false
5287   # Loop through the user's path and test for each of PROGNAME-LIST
5288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293     for ac_prog in grep ggrep; do
5294     for ac_exec_ext in '' $ac_executable_extensions; do
5295       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5296       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5297 # Check for GNU ac_path_GREP and select it if it is found.
5298   # Check for GNU $ac_path_GREP
5299 case `"$ac_path_GREP" --version 2>&1` in
5300 *GNU*)
5301   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5302 *)
5303   ac_count=0
5304   $as_echo_n 0123456789 >"conftest.in"
5305   while :
5306   do
5307     cat "conftest.in" "conftest.in" >"conftest.tmp"
5308     mv "conftest.tmp" "conftest.in"
5309     cp "conftest.in" "conftest.nl"
5310     $as_echo 'GREP' >> "conftest.nl"
5311     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5313     as_fn_arith $ac_count + 1 && ac_count=$as_val
5314     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5315       # Best one so far, save it but keep looking for a better one
5316       ac_cv_path_GREP="$ac_path_GREP"
5317       ac_path_GREP_max=$ac_count
5318     fi
5319     # 10*(2^10) chars as input seems more than enough
5320     test $ac_count -gt 10 && break
5321   done
5322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5323 esac
5324
5325       $ac_path_GREP_found && break 3
5326     done
5327   done
5328   done
5329 IFS=$as_save_IFS
5330   if test -z "$ac_cv_path_GREP"; then
5331     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5332   fi
5333 else
5334   ac_cv_path_GREP=$GREP
5335 fi
5336
5337 fi
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5339 $as_echo "$ac_cv_path_GREP" >&6; }
5340  GREP="$ac_cv_path_GREP"
5341
5342
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5344 $as_echo_n "checking for egrep... " >&6; }
5345 if test "${ac_cv_path_EGREP+set}" = set; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5349    then ac_cv_path_EGREP="$GREP -E"
5350    else
5351      if test -z "$EGREP"; then
5352   ac_path_EGREP_found=false
5353   # Loop through the user's path and test for each of PROGNAME-LIST
5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_prog in egrep; do
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5362       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5363 # Check for GNU ac_path_EGREP and select it if it is found.
5364   # Check for GNU $ac_path_EGREP
5365 case `"$ac_path_EGREP" --version 2>&1` in
5366 *GNU*)
5367   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5368 *)
5369   ac_count=0
5370   $as_echo_n 0123456789 >"conftest.in"
5371   while :
5372   do
5373     cat "conftest.in" "conftest.in" >"conftest.tmp"
5374     mv "conftest.tmp" "conftest.in"
5375     cp "conftest.in" "conftest.nl"
5376     $as_echo 'EGREP' >> "conftest.nl"
5377     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5378     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5379     as_fn_arith $ac_count + 1 && ac_count=$as_val
5380     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5381       # Best one so far, save it but keep looking for a better one
5382       ac_cv_path_EGREP="$ac_path_EGREP"
5383       ac_path_EGREP_max=$ac_count
5384     fi
5385     # 10*(2^10) chars as input seems more than enough
5386     test $ac_count -gt 10 && break
5387   done
5388   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5389 esac
5390
5391       $ac_path_EGREP_found && break 3
5392     done
5393   done
5394   done
5395 IFS=$as_save_IFS
5396   if test -z "$ac_cv_path_EGREP"; then
5397     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5398   fi
5399 else
5400   ac_cv_path_EGREP=$EGREP
5401 fi
5402
5403    fi
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5406 $as_echo "$ac_cv_path_EGREP" >&6; }
5407  EGREP="$ac_cv_path_EGREP"
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5411 $as_echo_n "checking for ANSI C header files... " >&6; }
5412 if test "${ac_cv_header_stdc+set}" = set; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h.  */
5417 #include <stdlib.h>
5418 #include <stdarg.h>
5419 #include <string.h>
5420 #include <float.h>
5421
5422 int
5423 main ()
5424 {
5425
5426   ;
5427   return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431   ac_cv_header_stdc=yes
5432 else
5433   ac_cv_header_stdc=no
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436
5437 if test $ac_cv_header_stdc = yes; then
5438   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h.  */
5441 #include <string.h>
5442
5443 _ACEOF
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445   $EGREP "memchr" >/dev/null 2>&1; then :
5446
5447 else
5448   ac_cv_header_stdc=no
5449 fi
5450 rm -f conftest*
5451
5452 fi
5453
5454 if test $ac_cv_header_stdc = yes; then
5455   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h.  */
5458 #include <stdlib.h>
5459
5460 _ACEOF
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462   $EGREP "free" >/dev/null 2>&1; then :
5463
5464 else
5465   ac_cv_header_stdc=no
5466 fi
5467 rm -f conftest*
5468
5469 fi
5470
5471 if test $ac_cv_header_stdc = yes; then
5472   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5473   if test "$cross_compiling" = yes; then :
5474   :
5475 else
5476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h.  */
5478 #include <ctype.h>
5479 #include <stdlib.h>
5480 #if ((' ' & 0x0FF) == 0x020)
5481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5483 #else
5484 # define ISLOWER(c) \
5485                    (('a' <= (c) && (c) <= 'i') \
5486                      || ('j' <= (c) && (c) <= 'r') \
5487                      || ('s' <= (c) && (c) <= 'z'))
5488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5489 #endif
5490
5491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5492 int
5493 main ()
5494 {
5495   int i;
5496   for (i = 0; i < 256; i++)
5497     if (XOR (islower (i), ISLOWER (i))
5498         || toupper (i) != TOUPPER (i))
5499       return 2;
5500   return 0;
5501 }
5502 _ACEOF
5503 if ac_fn_c_try_run "$LINENO"; then :
5504
5505 else
5506   ac_cv_header_stdc=no
5507 fi
5508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5509   conftest.$ac_objext conftest.beam conftest.$ac_ext
5510 fi
5511
5512 fi
5513 fi
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5515 $as_echo "$ac_cv_header_stdc" >&6; }
5516 if test $ac_cv_header_stdc = yes; then
5517
5518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5519
5520 fi
5521
5522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5524                   inttypes.h stdint.h unistd.h
5525 do :
5526   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5528 "
5529 eval as_val=\$$as_ac_Header
5530    if test "x$as_val" = x""yes; then :
5531   cat >>confdefs.h <<_ACEOF
5532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5533 _ACEOF
5534
5535 fi
5536
5537 done
5538
5539
5540
5541   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5542 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5543   MINIX=yes
5544 else
5545   MINIX=
5546 fi
5547
5548
5549   if test "$MINIX" = yes; then
5550
5551 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5552
5553
5554 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5555
5556
5557 $as_echo "#define _MINIX 1" >>confdefs.h
5558
5559   fi
5560
5561
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5563 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5564 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h.  */
5569
5570 #         define __EXTENSIONS__ 1
5571           $ac_includes_default
5572 int
5573 main ()
5574 {
5575
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581   ac_cv_safe_to_define___extensions__=yes
5582 else
5583   ac_cv_safe_to_define___extensions__=no
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5588 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5589   test $ac_cv_safe_to_define___extensions__ = yes &&
5590     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5591
5592   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5593
5594   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5595
5596   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5597
5598   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5599
5600
5601
5602 # Check for programs
5603 ac_ext=c
5604 ac_cpp='$CPP $CPPFLAGS'
5605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608 if test -n "$ac_tool_prefix"; then
5609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_CC+set}" = set; then :
5614   $as_echo_n "(cached) " >&6
5615 else
5616   if test -n "$CC"; then
5617   ac_cv_prog_CC="$CC" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631   done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 CC=$ac_cv_prog_CC
5637 if test -n "$CC"; then
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5639 $as_echo "$CC" >&6; }
5640 else
5641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5643 fi
5644
5645
5646 fi
5647 if test -z "$ac_cv_prog_CC"; then
5648   ac_ct_CC=$CC
5649   # Extract the first word of "gcc", so it can be a program name with args.
5650 set dummy gcc; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656   if test -n "$ac_ct_CC"; then
5657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5658 else
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664     for ac_exec_ext in '' $ac_executable_extensions; do
5665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666     ac_cv_prog_ac_ct_CC="gcc"
5667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671   done
5672 IFS=$as_save_IFS
5673
5674 fi
5675 fi
5676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5677 if test -n "$ac_ct_CC"; then
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5679 $as_echo "$ac_ct_CC" >&6; }
5680 else
5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685   if test "x$ac_ct_CC" = x; then
5686     CC=""
5687   else
5688     case $cross_compiling:$ac_tool_warned in
5689 yes:)
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5693 esac
5694     CC=$ac_ct_CC
5695   fi
5696 else
5697   CC="$ac_cv_prog_CC"
5698 fi
5699
5700 if test -z "$CC"; then
5701           if test -n "$ac_tool_prefix"; then
5702     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}cc; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_CC+set}" = set; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   if test -n "$CC"; then
5710   ac_cv_prog_CC="$CC" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717     for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_prog_CC="${ac_tool_prefix}cc"
5720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724   done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 CC=$ac_cv_prog_CC
5730 if test -n "$CC"; then
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5732 $as_echo "$CC" >&6; }
5733 else
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738
5739   fi
5740 fi
5741 if test -z "$CC"; then
5742   # Extract the first word of "cc", so it can be a program name with args.
5743 set dummy cc; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_prog_CC+set}" = set; then :
5747   $as_echo_n "(cached) " >&6
5748 else
5749   if test -n "$CC"; then
5750   ac_cv_prog_CC="$CC" # Let the user override the test.
5751 else
5752   ac_prog_rejected=no
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5761        ac_prog_rejected=yes
5762        continue
5763      fi
5764     ac_cv_prog_CC="cc"
5765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769   done
5770 IFS=$as_save_IFS
5771
5772 if test $ac_prog_rejected = yes; then
5773   # We found a bogon in the path, so make sure we never use it.
5774   set dummy $ac_cv_prog_CC
5775   shift
5776   if test $# != 0; then
5777     # We chose a different compiler from the bogus one.
5778     # However, it has the same basename, so the bogon will be chosen
5779     # first if we set CC to just the basename; use the full file name.
5780     shift
5781     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5782   fi
5783 fi
5784 fi
5785 fi
5786 CC=$ac_cv_prog_CC
5787 if test -n "$CC"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5789 $as_echo "$CC" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 fi
5797 if test -z "$CC"; then
5798   if test -n "$ac_tool_prefix"; then
5799   for ac_prog in cl.exe
5800   do
5801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_prog_CC+set}" = set; then :
5806   $as_echo_n "(cached) " >&6
5807 else
5808   if test -n "$CC"; then
5809   ac_cv_prog_CC="$CC" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826 fi
5827 fi
5828 CC=$ac_cv_prog_CC
5829 if test -n "$CC"; then
5830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5831 $as_echo "$CC" >&6; }
5832 else
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5836
5837
5838     test -n "$CC" && break
5839   done
5840 fi
5841 if test -z "$CC"; then
5842   ac_ct_CC=$CC
5843   for ac_prog in cl.exe
5844 do
5845   # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   if test -n "$ac_ct_CC"; then
5853   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5854 else
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 for as_dir in $PATH
5857 do
5858   IFS=$as_save_IFS
5859   test -z "$as_dir" && as_dir=.
5860     for ac_exec_ext in '' $ac_executable_extensions; do
5861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862     ac_cv_prog_ac_ct_CC="$ac_prog"
5863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864     break 2
5865   fi
5866 done
5867   done
5868 IFS=$as_save_IFS
5869
5870 fi
5871 fi
5872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5873 if test -n "$ac_ct_CC"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5875 $as_echo "$ac_ct_CC" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882   test -n "$ac_ct_CC" && break
5883 done
5884
5885   if test "x$ac_ct_CC" = x; then
5886     CC=""
5887   else
5888     case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894     CC=$ac_ct_CC
5895   fi
5896 fi
5897
5898 fi
5899
5900
5901 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5903 as_fn_error "no acceptable C compiler found in \$PATH
5904 See \`config.log' for more details." "$LINENO" 5; }
5905
5906 # Provide some information about the compiler.
5907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5908 set X $ac_compile
5909 ac_compiler=$2
5910 for ac_option in --version -v -V -qversion; do
5911   { { ac_try="$ac_compiler $ac_option >&5"
5912 case "(($ac_try" in
5913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914   *) ac_try_echo=$ac_try;;
5915 esac
5916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5917 $as_echo "$ac_try_echo"; } >&5
5918   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5919   ac_status=$?
5920   if test -s conftest.err; then
5921     sed '10a\
5922 ... rest of stderr output deleted ...
5923          10q' conftest.err >conftest.er1
5924     cat conftest.er1 >&5
5925   fi
5926   rm -f conftest.er1 conftest.err
5927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928   test $ac_status = 0; }
5929 done
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5932 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5933 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5934   $as_echo_n "(cached) " >&6
5935 else
5936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h.  */
5938
5939 int
5940 main ()
5941 {
5942 #ifndef __GNUC__
5943        choke me
5944 #endif
5945
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 if ac_fn_c_try_compile "$LINENO"; then :
5951   ac_compiler_gnu=yes
5952 else
5953   ac_compiler_gnu=no
5954 fi
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5957
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5960 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5961 if test $ac_compiler_gnu = yes; then
5962   GCC=yes
5963 else
5964   GCC=
5965 fi
5966 ac_test_CFLAGS=${CFLAGS+set}
5967 ac_save_CFLAGS=$CFLAGS
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5969 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5970 if test "${ac_cv_prog_cc_g+set}" = set; then :
5971   $as_echo_n "(cached) " >&6
5972 else
5973   ac_save_c_werror_flag=$ac_c_werror_flag
5974    ac_c_werror_flag=yes
5975    ac_cv_prog_cc_g=no
5976    CFLAGS="-g"
5977    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h.  */
5979
5980 int
5981 main ()
5982 {
5983
5984   ;
5985   return 0;
5986 }
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989   ac_cv_prog_cc_g=yes
5990 else
5991   CFLAGS=""
5992       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h.  */
5994
5995 int
5996 main ()
5997 {
5998
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 if ac_fn_c_try_compile "$LINENO"; then :
6004
6005 else
6006   ac_c_werror_flag=$ac_save_c_werror_flag
6007          CFLAGS="-g"
6008          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h.  */
6010
6011 int
6012 main ()
6013 {
6014
6015   ;
6016   return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_compile "$LINENO"; then :
6020   ac_cv_prog_cc_g=yes
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027    ac_c_werror_flag=$ac_save_c_werror_flag
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6030 $as_echo "$ac_cv_prog_cc_g" >&6; }
6031 if test "$ac_test_CFLAGS" = set; then
6032   CFLAGS=$ac_save_CFLAGS
6033 elif test $ac_cv_prog_cc_g = yes; then
6034   if test "$GCC" = yes; then
6035     CFLAGS="-g -O2"
6036   else
6037     CFLAGS="-g"
6038   fi
6039 else
6040   if test "$GCC" = yes; then
6041     CFLAGS="-O2"
6042   else
6043     CFLAGS=
6044   fi
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6048 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6049   $as_echo_n "(cached) " >&6
6050 else
6051   ac_cv_prog_cc_c89=no
6052 ac_save_CC=$CC
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h.  */
6055 #include <stdarg.h>
6056 #include <stdio.h>
6057 #include <sys/types.h>
6058 #include <sys/stat.h>
6059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6060 struct buf { int x; };
6061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6062 static char *e (p, i)
6063      char **p;
6064      int i;
6065 {
6066   return p[i];
6067 }
6068 static char *f (char * (*g) (char **, int), char **p, ...)
6069 {
6070   char *s;
6071   va_list v;
6072   va_start (v,p);
6073   s = g (p, va_arg (v,int));
6074   va_end (v);
6075   return s;
6076 }
6077
6078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6079    function prototypes and stuff, but not '\xHH' hex character constants.
6080    These don't provoke an error unfortunately, instead are silently treated
6081    as 'x'.  The following induces an error, until -std is added to get
6082    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6083    array size at least.  It's necessary to write '\x00'==0 to get something
6084    that's true only with -std.  */
6085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6086
6087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6088    inside strings and character constants.  */
6089 #define FOO(x) 'x'
6090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6091
6092 int test (int i, double x);
6093 struct s1 {int (*f) (int a);};
6094 struct s2 {int (*f) (double a);};
6095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6096 int argc;
6097 char **argv;
6098 int
6099 main ()
6100 {
6101 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6107         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6108 do
6109   CC="$ac_save_CC $ac_arg"
6110   if ac_fn_c_try_compile "$LINENO"; then :
6111   ac_cv_prog_cc_c89=$ac_arg
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext
6114   test "x$ac_cv_prog_cc_c89" != "xno" && break
6115 done
6116 rm -f conftest.$ac_ext
6117 CC=$ac_save_CC
6118
6119 fi
6120 # AC_CACHE_VAL
6121 case "x$ac_cv_prog_cc_c89" in
6122   x)
6123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6124 $as_echo "none needed" >&6; } ;;
6125   xno)
6126     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6127 $as_echo "unsupported" >&6; } ;;
6128   *)
6129     CC="$CC $ac_cv_prog_cc_c89"
6130     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6132 esac
6133 if test "x$ac_cv_prog_cc_c89" != xno; then :
6134
6135 fi
6136
6137 ac_ext=c
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143 depcc="$CC"   am_compiler_list=
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6146 $as_echo_n "checking dependency style of $depcc... " >&6; }
6147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6148   $as_echo_n "(cached) " >&6
6149 else
6150   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6151   # We make a subdir and do the tests there.  Otherwise we can end up
6152   # making bogus files that we don't know about and never remove.  For
6153   # instance it was reported that on HP-UX the gcc test will end up
6154   # making a dummy file named `D' -- because `-MD' means `put the output
6155   # in D'.
6156   mkdir conftest.dir
6157   # Copy depcomp to subdir because otherwise we won't find it if we're
6158   # using a relative directory.
6159   cp "$am_depcomp" conftest.dir
6160   cd conftest.dir
6161   # We will build objects and dependencies in a subdirectory because
6162   # it helps to detect inapplicable dependency modes.  For instance
6163   # both Tru64's cc and ICC support -MD to output dependencies as a
6164   # side effect of compilation, but ICC will put the dependencies in
6165   # the current directory while Tru64 will put them in the object
6166   # directory.
6167   mkdir sub
6168
6169   am_cv_CC_dependencies_compiler_type=none
6170   if test "$am_compiler_list" = ""; then
6171      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6172   fi
6173   am__universal=false
6174   case " $depcc " in #(
6175      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6176      esac
6177
6178   for depmode in $am_compiler_list; do
6179     # Setup a source with many dependencies, because some compilers
6180     # like to wrap large dependency lists on column 80 (with \), and
6181     # we should not choose a depcomp mode which is confused by this.
6182     #
6183     # We need to recreate these files for each test, as the compiler may
6184     # overwrite some of them when testing with obscure command lines.
6185     # This happens at least with the AIX C compiler.
6186     : > sub/conftest.c
6187     for i in 1 2 3 4 5 6; do
6188       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6189       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6190       # Solaris 8's {/usr,}/bin/sh.
6191       touch sub/conftst$i.h
6192     done
6193     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6194
6195     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6196     # mode.  It turns out that the SunPro C++ compiler does not properly
6197     # handle `-M -o', and we need to detect this.  Also, some Intel
6198     # versions had trouble with output in subdirs
6199     am__obj=sub/conftest.${OBJEXT-o}
6200     am__minus_obj="-o $am__obj"
6201     case $depmode in
6202     gcc)
6203       # This depmode causes a compiler race in universal mode.
6204       test "$am__universal" = false || continue
6205       ;;
6206     nosideeffect)
6207       # after this tag, mechanisms are not by side-effect, so they'll
6208       # only be used when explicitly requested
6209       if test "x$enable_dependency_tracking" = xyes; then
6210         continue
6211       else
6212         break
6213       fi
6214       ;;
6215     msvisualcpp | msvcmsys)
6216       # This compiler won't grok `-c -o', but also, the minuso test has
6217       # not run yet.  These depmodes are late enough in the game, and
6218       # so weak that their functioning should not be impacted.
6219       am__obj=conftest.${OBJEXT-o}
6220       am__minus_obj=
6221       ;;
6222     none) break ;;
6223     esac
6224     if depmode=$depmode \
6225        source=sub/conftest.c object=$am__obj \
6226        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6227        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6228          >/dev/null 2>conftest.err &&
6229        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6230        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6231        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6232        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6233       # icc doesn't choke on unknown options, it will just issue warnings
6234       # or remarks (even with -Werror).  So we grep stderr for any message
6235       # that says an option was ignored or not supported.
6236       # When given -MP, icc 7.0 and 7.1 complain thusly:
6237       #   icc: Command line warning: ignoring option '-M'; no argument required
6238       # The diagnosis changed in icc 8.0:
6239       #   icc: Command line remark: option '-MP' not supported
6240       if (grep 'ignoring option' conftest.err ||
6241           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6242         am_cv_CC_dependencies_compiler_type=$depmode
6243         break
6244       fi
6245     fi
6246   done
6247
6248   cd ..
6249   rm -rf conftest.dir
6250 else
6251   am_cv_CC_dependencies_compiler_type=none
6252 fi
6253
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6256 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6258
6259  if
6260   test "x$enable_dependency_tracking" != xno \
6261   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6262   am__fastdepCC_TRUE=
6263   am__fastdepCC_FALSE='#'
6264 else
6265   am__fastdepCC_TRUE='#'
6266   am__fastdepCC_FALSE=
6267 fi
6268
6269
6270 ac_ext=cpp
6271 ac_cpp='$CXXCPP $CPPFLAGS'
6272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6275 if test -z "$CXX"; then
6276   if test -n "$CCC"; then
6277     CXX=$CCC
6278   else
6279     if test -n "$ac_tool_prefix"; then
6280   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6281   do
6282     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if test "${ac_cv_prog_CXX+set}" = set; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   if test -n "$CXX"; then
6290   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 CXX=$ac_cv_prog_CXX
6310 if test -n "$CXX"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6312 $as_echo "$CXX" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319     test -n "$CXX" && break
6320   done
6321 fi
6322 if test -z "$CXX"; then
6323   ac_ct_CXX=$CXX
6324   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6325 do
6326   # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6331   $as_echo_n "(cached) " >&6
6332 else
6333   if test -n "$ac_ct_CXX"; then
6334   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6335 else
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 for as_dir in $PATH
6338 do
6339   IFS=$as_save_IFS
6340   test -z "$as_dir" && as_dir=.
6341     for ac_exec_ext in '' $ac_executable_extensions; do
6342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343     ac_cv_prog_ac_ct_CXX="$ac_prog"
6344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6345     break 2
6346   fi
6347 done
6348   done
6349 IFS=$as_save_IFS
6350
6351 fi
6352 fi
6353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6354 if test -n "$ac_ct_CXX"; then
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6356 $as_echo "$ac_ct_CXX" >&6; }
6357 else
6358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6360 fi
6361
6362
6363   test -n "$ac_ct_CXX" && break
6364 done
6365
6366   if test "x$ac_ct_CXX" = x; then
6367     CXX="g++"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     CXX=$ac_ct_CXX
6376   fi
6377 fi
6378
6379   fi
6380 fi
6381 # Provide some information about the compiler.
6382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6383 set X $ac_compile
6384 ac_compiler=$2
6385 for ac_option in --version -v -V -qversion; do
6386   { { ac_try="$ac_compiler $ac_option >&5"
6387 case "(($ac_try" in
6388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389   *) ac_try_echo=$ac_try;;
6390 esac
6391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6392 $as_echo "$ac_try_echo"; } >&5
6393   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6394   ac_status=$?
6395   if test -s conftest.err; then
6396     sed '10a\
6397 ... rest of stderr output deleted ...
6398          10q' conftest.err >conftest.er1
6399     cat conftest.er1 >&5
6400   fi
6401   rm -f conftest.er1 conftest.err
6402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403   test $ac_status = 0; }
6404 done
6405
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6407 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6409   $as_echo_n "(cached) " >&6
6410 else
6411   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h.  */
6413
6414 int
6415 main ()
6416 {
6417 #ifndef __GNUC__
6418        choke me
6419 #endif
6420
6421   ;
6422   return 0;
6423 }
6424 _ACEOF
6425 if ac_fn_cxx_try_compile "$LINENO"; then :
6426   ac_compiler_gnu=yes
6427 else
6428   ac_compiler_gnu=no
6429 fi
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6432
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6435 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6436 if test $ac_compiler_gnu = yes; then
6437   GXX=yes
6438 else
6439   GXX=
6440 fi
6441 ac_test_CXXFLAGS=${CXXFLAGS+set}
6442 ac_save_CXXFLAGS=$CXXFLAGS
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6444 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6445 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6449    ac_cxx_werror_flag=yes
6450    ac_cv_prog_cxx_g=no
6451    CXXFLAGS="-g"
6452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h.  */
6454
6455 int
6456 main ()
6457 {
6458
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_cxx_try_compile "$LINENO"; then :
6464   ac_cv_prog_cxx_g=yes
6465 else
6466   CXXFLAGS=""
6467       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470 int
6471 main ()
6472 {
6473
6474   ;
6475   return 0;
6476 }
6477 _ACEOF
6478 if ac_fn_cxx_try_compile "$LINENO"; then :
6479
6480 else
6481   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6482          CXXFLAGS="-g"
6483          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h.  */
6485
6486 int
6487 main ()
6488 {
6489
6490   ;
6491   return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_cxx_try_compile "$LINENO"; then :
6495   ac_cv_prog_cxx_g=yes
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 fi
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6505 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6506 if test "$ac_test_CXXFLAGS" = set; then
6507   CXXFLAGS=$ac_save_CXXFLAGS
6508 elif test $ac_cv_prog_cxx_g = yes; then
6509   if test "$GXX" = yes; then
6510     CXXFLAGS="-g -O2"
6511   else
6512     CXXFLAGS="-g"
6513   fi
6514 else
6515   if test "$GXX" = yes; then
6516     CXXFLAGS="-O2"
6517   else
6518     CXXFLAGS=
6519   fi
6520 fi
6521 ac_ext=c
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
6527 depcc="$CXX"  am_compiler_list=
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6530 $as_echo_n "checking dependency style of $depcc... " >&6; }
6531 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6535   # We make a subdir and do the tests there.  Otherwise we can end up
6536   # making bogus files that we don't know about and never remove.  For
6537   # instance it was reported that on HP-UX the gcc test will end up
6538   # making a dummy file named `D' -- because `-MD' means `put the output
6539   # in D'.
6540   mkdir conftest.dir
6541   # Copy depcomp to subdir because otherwise we won't find it if we're
6542   # using a relative directory.
6543   cp "$am_depcomp" conftest.dir
6544   cd conftest.dir
6545   # We will build objects and dependencies in a subdirectory because
6546   # it helps to detect inapplicable dependency modes.  For instance
6547   # both Tru64's cc and ICC support -MD to output dependencies as a
6548   # side effect of compilation, but ICC will put the dependencies in
6549   # the current directory while Tru64 will put them in the object
6550   # directory.
6551   mkdir sub
6552
6553   am_cv_CXX_dependencies_compiler_type=none
6554   if test "$am_compiler_list" = ""; then
6555      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6556   fi
6557   am__universal=false
6558   case " $depcc " in #(
6559      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6560      esac
6561
6562   for depmode in $am_compiler_list; do
6563     # Setup a source with many dependencies, because some compilers
6564     # like to wrap large dependency lists on column 80 (with \), and
6565     # we should not choose a depcomp mode which is confused by this.
6566     #
6567     # We need to recreate these files for each test, as the compiler may
6568     # overwrite some of them when testing with obscure command lines.
6569     # This happens at least with the AIX C compiler.
6570     : > sub/conftest.c
6571     for i in 1 2 3 4 5 6; do
6572       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6573       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6574       # Solaris 8's {/usr,}/bin/sh.
6575       touch sub/conftst$i.h
6576     done
6577     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6578
6579     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6580     # mode.  It turns out that the SunPro C++ compiler does not properly
6581     # handle `-M -o', and we need to detect this.  Also, some Intel
6582     # versions had trouble with output in subdirs
6583     am__obj=sub/conftest.${OBJEXT-o}
6584     am__minus_obj="-o $am__obj"
6585     case $depmode in
6586     gcc)
6587       # This depmode causes a compiler race in universal mode.
6588       test "$am__universal" = false || continue
6589       ;;
6590     nosideeffect)
6591       # after this tag, mechanisms are not by side-effect, so they'll
6592       # only be used when explicitly requested
6593       if test "x$enable_dependency_tracking" = xyes; then
6594         continue
6595       else
6596         break
6597       fi
6598       ;;
6599     msvisualcpp | msvcmsys)
6600       # This compiler won't grok `-c -o', but also, the minuso test has
6601       # not run yet.  These depmodes are late enough in the game, and
6602       # so weak that their functioning should not be impacted.
6603       am__obj=conftest.${OBJEXT-o}
6604       am__minus_obj=
6605       ;;
6606     none) break ;;
6607     esac
6608     if depmode=$depmode \
6609        source=sub/conftest.c object=$am__obj \
6610        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6611        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6612          >/dev/null 2>conftest.err &&
6613        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6614        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6615        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6616        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6617       # icc doesn't choke on unknown options, it will just issue warnings
6618       # or remarks (even with -Werror).  So we grep stderr for any message
6619       # that says an option was ignored or not supported.
6620       # When given -MP, icc 7.0 and 7.1 complain thusly:
6621       #   icc: Command line warning: ignoring option '-M'; no argument required
6622       # The diagnosis changed in icc 8.0:
6623       #   icc: Command line remark: option '-MP' not supported
6624       if (grep 'ignoring option' conftest.err ||
6625           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6626         am_cv_CXX_dependencies_compiler_type=$depmode
6627         break
6628       fi
6629     fi
6630   done
6631
6632   cd ..
6633   rm -rf conftest.dir
6634 else
6635   am_cv_CXX_dependencies_compiler_type=none
6636 fi
6637
6638 fi
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6640 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6642
6643  if
6644   test "x$enable_dependency_tracking" != xno \
6645   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6646   am__fastdepCXX_TRUE=
6647   am__fastdepCXX_FALSE='#'
6648 else
6649   am__fastdepCXX_TRUE='#'
6650   am__fastdepCXX_FALSE=
6651 fi
6652
6653
6654    case $ac_cv_prog_cc_stdc in #(
6655   no) :
6656     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6657   *) :
6658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6659 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6660 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   ac_cv_prog_cc_c99=no
6664 ac_save_CC=$CC
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h.  */
6667 #include <stdarg.h>
6668 #include <stdbool.h>
6669 #include <stdlib.h>
6670 #include <wchar.h>
6671 #include <stdio.h>
6672
6673 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6674 #define debug(...) fprintf (stderr, __VA_ARGS__)
6675 #define showlist(...) puts (#__VA_ARGS__)
6676 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6677 static void
6678 test_varargs_macros (void)
6679 {
6680   int x = 1234;
6681   int y = 5678;
6682   debug ("Flag");
6683   debug ("X = %d\n", x);
6684   showlist (The first, second, and third items.);
6685   report (x>y, "x is %d but y is %d", x, y);
6686 }
6687
6688 // Check long long types.
6689 #define BIG64 18446744073709551615ull
6690 #define BIG32 4294967295ul
6691 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6692 #if !BIG_OK
6693   your preprocessor is broken;
6694 #endif
6695 #if BIG_OK
6696 #else
6697   your preprocessor is broken;
6698 #endif
6699 static long long int bignum = -9223372036854775807LL;
6700 static unsigned long long int ubignum = BIG64;
6701
6702 struct incomplete_array
6703 {
6704   int datasize;
6705   double data[];
6706 };
6707
6708 struct named_init {
6709   int number;
6710   const wchar_t *name;
6711   double average;
6712 };
6713
6714 typedef const char *ccp;
6715
6716 static inline int
6717 test_restrict (ccp restrict text)
6718 {
6719   // See if C++-style comments work.
6720   // Iterate through items via the restricted pointer.
6721   // Also check for declarations in for loops.
6722   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6723     continue;
6724   return 0;
6725 }
6726
6727 // Check varargs and va_copy.
6728 static void
6729 test_varargs (const char *format, ...)
6730 {
6731   va_list args;
6732   va_start (args, format);
6733   va_list args_copy;
6734   va_copy (args_copy, args);
6735
6736   const char *str;
6737   int number;
6738   float fnumber;
6739
6740   while (*format)
6741     {
6742       switch (*format++)
6743         {
6744         case 's': // string
6745           str = va_arg (args_copy, const char *);
6746           break;
6747         case 'd': // int
6748           number = va_arg (args_copy, int);
6749           break;
6750         case 'f': // float
6751           fnumber = va_arg (args_copy, double);
6752           break;
6753         default:
6754           break;
6755         }
6756     }
6757   va_end (args_copy);
6758   va_end (args);
6759 }
6760
6761 int
6762 main ()
6763 {
6764
6765   // Check bool.
6766   _Bool success = false;
6767
6768   // Check restrict.
6769   if (test_restrict ("String literal") == 0)
6770     success = true;
6771   char *restrict newvar = "Another string";
6772
6773   // Check varargs.
6774   test_varargs ("s, d' f .", "string", 65, 34.234);
6775   test_varargs_macros ();
6776
6777   // Check flexible array members.
6778   struct incomplete_array *ia =
6779     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6780   ia->datasize = 10;
6781   for (int i = 0; i < ia->datasize; ++i)
6782     ia->data[i] = i * 1.234;
6783
6784   // Check named initializers.
6785   struct named_init ni = {
6786     .number = 34,
6787     .name = L"Test wide string",
6788     .average = 543.34343,
6789   };
6790
6791   ni.number = 58;
6792
6793   int dynamic_array[ni.number];
6794   dynamic_array[ni.number - 1] = 543;
6795
6796   // work around unused variable warnings
6797   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6798           || dynamic_array[ni.number - 1] != 543);
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6805 do
6806   CC="$ac_save_CC $ac_arg"
6807   if ac_fn_c_try_compile "$LINENO"; then :
6808   ac_cv_prog_cc_c99=$ac_arg
6809 fi
6810 rm -f core conftest.err conftest.$ac_objext
6811   test "x$ac_cv_prog_cc_c99" != "xno" && break
6812 done
6813 rm -f conftest.$ac_ext
6814 CC=$ac_save_CC
6815
6816 fi
6817 # AC_CACHE_VAL
6818 case "x$ac_cv_prog_cc_c99" in
6819   x)
6820     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6821 $as_echo "none needed" >&6; } ;;
6822   xno)
6823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6824 $as_echo "unsupported" >&6; } ;;
6825   *)
6826     CC="$CC $ac_cv_prog_cc_c99"
6827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6828 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6829 esac
6830 if test "x$ac_cv_prog_cc_c99" != xno; then :
6831   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6835 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   ac_cv_prog_cc_c89=no
6839 ac_save_CC=$CC
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 #include <stdarg.h>
6843 #include <stdio.h>
6844 #include <sys/types.h>
6845 #include <sys/stat.h>
6846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6847 struct buf { int x; };
6848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6849 static char *e (p, i)
6850      char **p;
6851      int i;
6852 {
6853   return p[i];
6854 }
6855 static char *f (char * (*g) (char **, int), char **p, ...)
6856 {
6857   char *s;
6858   va_list v;
6859   va_start (v,p);
6860   s = g (p, va_arg (v,int));
6861   va_end (v);
6862   return s;
6863 }
6864
6865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6866    function prototypes and stuff, but not '\xHH' hex character constants.
6867    These don't provoke an error unfortunately, instead are silently treated
6868    as 'x'.  The following induces an error, until -std is added to get
6869    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6870    array size at least.  It's necessary to write '\x00'==0 to get something
6871    that's true only with -std.  */
6872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6873
6874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6875    inside strings and character constants.  */
6876 #define FOO(x) 'x'
6877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6878
6879 int test (int i, double x);
6880 struct s1 {int (*f) (int a);};
6881 struct s2 {int (*f) (double a);};
6882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6883 int argc;
6884 char **argv;
6885 int
6886 main ()
6887 {
6888 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6894         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6895 do
6896   CC="$ac_save_CC $ac_arg"
6897   if ac_fn_c_try_compile "$LINENO"; then :
6898   ac_cv_prog_cc_c89=$ac_arg
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext
6901   test "x$ac_cv_prog_cc_c89" != "xno" && break
6902 done
6903 rm -f conftest.$ac_ext
6904 CC=$ac_save_CC
6905
6906 fi
6907 # AC_CACHE_VAL
6908 case "x$ac_cv_prog_cc_c89" in
6909   x)
6910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6911 $as_echo "none needed" >&6; } ;;
6912   xno)
6913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6914 $as_echo "unsupported" >&6; } ;;
6915   *)
6916     CC="$CC $ac_cv_prog_cc_c89"
6917     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6919 esac
6920 if test "x$ac_cv_prog_cc_c89" != xno; then :
6921   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6922 else
6923   ac_cv_prog_cc_stdc=no
6924 fi
6925
6926 fi
6927  ;;
6928 esac
6929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6930 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6931   if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6932   $as_echo_n "(cached) " >&6
6933 fi
6934
6935   case $ac_cv_prog_cc_stdc in #(
6936   no) :
6937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6938 $as_echo "unsupported" >&6; } ;; #(
6939   '') :
6940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6941 $as_echo "none needed" >&6; } ;; #(
6942   *) :
6943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6944 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6945 esac
6946
6947 ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6954 # On Suns, sometimes $CPP names a directory.
6955 if test -n "$CPP" && test -d "$CPP"; then
6956   CPP=
6957 fi
6958 if test -z "$CPP"; then
6959   if test "${ac_cv_prog_CPP+set}" = set; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962       # Double quotes because CPP needs to be expanded
6963     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6964     do
6965       ac_preproc_ok=false
6966 for ac_c_preproc_warn_flag in '' yes
6967 do
6968   # Use a header file that comes with gcc, so configuring glibc
6969   # with a fresh cross-compiler works.
6970   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971   # <limits.h> exists even on freestanding compilers.
6972   # On the NeXT, cc -E runs the code through the compiler's parser,
6973   # not just through cpp. "Syntax error" is here to catch this case.
6974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h.  */
6976 #ifdef __STDC__
6977 # include <limits.h>
6978 #else
6979 # include <assert.h>
6980 #endif
6981                      Syntax error
6982 _ACEOF
6983 if ac_fn_c_try_cpp "$LINENO"; then :
6984
6985 else
6986   # Broken: fails on valid input.
6987 continue
6988 fi
6989 rm -f conftest.err conftest.$ac_ext
6990
6991   # OK, works on sane cases.  Now check whether nonexistent headers
6992   # can be detected and how.
6993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h.  */
6995 #include <ac_nonexistent.h>
6996 _ACEOF
6997 if ac_fn_c_try_cpp "$LINENO"; then :
6998   # Broken: success on invalid input.
6999 continue
7000 else
7001   # Passes both tests.
7002 ac_preproc_ok=:
7003 break
7004 fi
7005 rm -f conftest.err conftest.$ac_ext
7006
7007 done
7008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7009 rm -f conftest.err conftest.$ac_ext
7010 if $ac_preproc_ok; then :
7011   break
7012 fi
7013
7014     done
7015     ac_cv_prog_CPP=$CPP
7016
7017 fi
7018   CPP=$ac_cv_prog_CPP
7019 else
7020   ac_cv_prog_CPP=$CPP
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7023 $as_echo "$CPP" >&6; }
7024 ac_preproc_ok=false
7025 for ac_c_preproc_warn_flag in '' yes
7026 do
7027   # Use a header file that comes with gcc, so configuring glibc
7028   # with a fresh cross-compiler works.
7029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030   # <limits.h> exists even on freestanding compilers.
7031   # On the NeXT, cc -E runs the code through the compiler's parser,
7032   # not just through cpp. "Syntax error" is here to catch this case.
7033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h.  */
7035 #ifdef __STDC__
7036 # include <limits.h>
7037 #else
7038 # include <assert.h>
7039 #endif
7040                      Syntax error
7041 _ACEOF
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7043
7044 else
7045   # Broken: fails on valid input.
7046 continue
7047 fi
7048 rm -f conftest.err conftest.$ac_ext
7049
7050   # OK, works on sane cases.  Now check whether nonexistent headers
7051   # can be detected and how.
7052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054 #include <ac_nonexistent.h>
7055 _ACEOF
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057   # Broken: success on invalid input.
7058 continue
7059 else
7060   # Passes both tests.
7061 ac_preproc_ok=:
7062 break
7063 fi
7064 rm -f conftest.err conftest.$ac_ext
7065
7066 done
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7070
7071 else
7072   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7074 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7075 See \`config.log' for more details." "$LINENO" 5; }
7076 fi
7077
7078 ac_ext=c
7079 ac_cpp='$CPP $CPPFLAGS'
7080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7086 if test "${ac_cv_path_SED+set}" = set; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7090      for ac_i in 1 2 3 4 5 6 7; do
7091        ac_script="$ac_script$as_nl$ac_script"
7092      done
7093      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7094      { ac_script=; unset ac_script;}
7095      if test -z "$SED"; then
7096   ac_path_SED_found=false
7097   # Loop through the user's path and test for each of PROGNAME-LIST
7098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101   IFS=$as_save_IFS
7102   test -z "$as_dir" && as_dir=.
7103     for ac_prog in sed gsed; do
7104     for ac_exec_ext in '' $ac_executable_extensions; do
7105       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7106       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7107 # Check for GNU ac_path_SED and select it if it is found.
7108   # Check for GNU $ac_path_SED
7109 case `"$ac_path_SED" --version 2>&1` in
7110 *GNU*)
7111   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7112 *)
7113   ac_count=0
7114   $as_echo_n 0123456789 >"conftest.in"
7115   while :
7116   do
7117     cat "conftest.in" "conftest.in" >"conftest.tmp"
7118     mv "conftest.tmp" "conftest.in"
7119     cp "conftest.in" "conftest.nl"
7120     $as_echo '' >> "conftest.nl"
7121     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7122     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7123     as_fn_arith $ac_count + 1 && ac_count=$as_val
7124     if test $ac_count -gt ${ac_path_SED_max-0}; then
7125       # Best one so far, save it but keep looking for a better one
7126       ac_cv_path_SED="$ac_path_SED"
7127       ac_path_SED_max=$ac_count
7128     fi
7129     # 10*(2^10) chars as input seems more than enough
7130     test $ac_count -gt 10 && break
7131   done
7132   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7133 esac
7134
7135       $ac_path_SED_found && break 3
7136     done
7137   done
7138   done
7139 IFS=$as_save_IFS
7140   if test -z "$ac_cv_path_SED"; then
7141     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7142   fi
7143 else
7144   ac_cv_path_SED=$SED
7145 fi
7146
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7149 $as_echo "$ac_cv_path_SED" >&6; }
7150  SED="$ac_cv_path_SED"
7151   rm -f conftest.sed
7152
7153 test -z "$SED" && SED=sed
7154 Xsed="$SED -e 1s/^X//"
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7167 $as_echo_n "checking for fgrep... " >&6; }
7168 if test "${ac_cv_path_FGREP+set}" = set; then :
7169   $as_echo_n "(cached) " >&6
7170 else
7171   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7172    then ac_cv_path_FGREP="$GREP -F"
7173    else
7174      if test -z "$FGREP"; then
7175   ac_path_FGREP_found=false
7176   # Loop through the user's path and test for each of PROGNAME-LIST
7177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182     for ac_prog in fgrep; do
7183     for ac_exec_ext in '' $ac_executable_extensions; do
7184       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7185       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7186 # Check for GNU ac_path_FGREP and select it if it is found.
7187   # Check for GNU $ac_path_FGREP
7188 case `"$ac_path_FGREP" --version 2>&1` in
7189 *GNU*)
7190   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7191 *)
7192   ac_count=0
7193   $as_echo_n 0123456789 >"conftest.in"
7194   while :
7195   do
7196     cat "conftest.in" "conftest.in" >"conftest.tmp"
7197     mv "conftest.tmp" "conftest.in"
7198     cp "conftest.in" "conftest.nl"
7199     $as_echo 'FGREP' >> "conftest.nl"
7200     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7201     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7202     as_fn_arith $ac_count + 1 && ac_count=$as_val
7203     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7204       # Best one so far, save it but keep looking for a better one
7205       ac_cv_path_FGREP="$ac_path_FGREP"
7206       ac_path_FGREP_max=$ac_count
7207     fi
7208     # 10*(2^10) chars as input seems more than enough
7209     test $ac_count -gt 10 && break
7210   done
7211   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7212 esac
7213
7214       $ac_path_FGREP_found && break 3
7215     done
7216   done
7217   done
7218 IFS=$as_save_IFS
7219   if test -z "$ac_cv_path_FGREP"; then
7220     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7221   fi
7222 else
7223   ac_cv_path_FGREP=$FGREP
7224 fi
7225
7226    fi
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7229 $as_echo "$ac_cv_path_FGREP" >&6; }
7230  FGREP="$ac_cv_path_FGREP"
7231
7232
7233 test -z "$GREP" && GREP=grep
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 # Check whether --with-gnu-ld was given.
7254 if test "${with_gnu_ld+set}" = set; then :
7255   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7256 else
7257   with_gnu_ld=no
7258 fi
7259
7260 ac_prog=ld
7261 if test "$GCC" = yes; then
7262   # Check if gcc -print-prog-name=ld gives a path.
7263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7264 $as_echo_n "checking for ld used by $CC... " >&6; }
7265   case $host in
7266   *-*-mingw*)
7267     # gcc leaves a trailing carriage return which upsets mingw
7268     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7269   *)
7270     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7271   esac
7272   case $ac_prog in
7273     # Accept absolute paths.
7274     [\\/]* | ?:[\\/]*)
7275       re_direlt='/[^/][^/]*/\.\./'
7276       # Canonicalize the pathname of ld
7277       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7278       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7279         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7280       done
7281       test -z "$LD" && LD="$ac_prog"
7282       ;;
7283   "")
7284     # If it fails, then pretend we aren't using GCC.
7285     ac_prog=ld
7286     ;;
7287   *)
7288     # If it is relative, then search for the first ld in PATH.
7289     with_gnu_ld=unknown
7290     ;;
7291   esac
7292 elif test "$with_gnu_ld" = yes; then
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7294 $as_echo_n "checking for GNU ld... " >&6; }
7295 else
7296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7297 $as_echo_n "checking for non-GNU ld... " >&6; }
7298 fi
7299 if test "${lt_cv_path_LD+set}" = set; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -z "$LD"; then
7303   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304   for ac_dir in $PATH; do
7305     IFS="$lt_save_ifs"
7306     test -z "$ac_dir" && ac_dir=.
7307     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7308       lt_cv_path_LD="$ac_dir/$ac_prog"
7309       # Check to see if the program is GNU ld.  I'd rather use --version,
7310       # but apparently some variants of GNU ld only accept -v.
7311       # Break only if it was the GNU/non-GNU ld that we prefer.
7312       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7313       *GNU* | *'with BFD'*)
7314         test "$with_gnu_ld" != no && break
7315         ;;
7316       *)
7317         test "$with_gnu_ld" != yes && break
7318         ;;
7319       esac
7320     fi
7321   done
7322   IFS="$lt_save_ifs"
7323 else
7324   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7325 fi
7326 fi
7327
7328 LD="$lt_cv_path_LD"
7329 if test -n "$LD"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7331 $as_echo "$LD" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7339 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7343 case `$LD -v 2>&1 </dev/null` in
7344 *GNU* | *'with BFD'*)
7345   lt_cv_prog_gnu_ld=yes
7346   ;;
7347 *)
7348   lt_cv_prog_gnu_ld=no
7349   ;;
7350 esac
7351 fi
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7354 with_gnu_ld=$lt_cv_prog_gnu_ld
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7366 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7367 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   ac_cv_prog_cc_c99=no
7371 ac_save_CC=$CC
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374 #include <stdarg.h>
7375 #include <stdbool.h>
7376 #include <stdlib.h>
7377 #include <wchar.h>
7378 #include <stdio.h>
7379
7380 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7381 #define debug(...) fprintf (stderr, __VA_ARGS__)
7382 #define showlist(...) puts (#__VA_ARGS__)
7383 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7384 static void
7385 test_varargs_macros (void)
7386 {
7387   int x = 1234;
7388   int y = 5678;
7389   debug ("Flag");
7390   debug ("X = %d\n", x);
7391   showlist (The first, second, and third items.);
7392   report (x>y, "x is %d but y is %d", x, y);
7393 }
7394
7395 // Check long long types.
7396 #define BIG64 18446744073709551615ull
7397 #define BIG32 4294967295ul
7398 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7399 #if !BIG_OK
7400   your preprocessor is broken;
7401 #endif
7402 #if BIG_OK
7403 #else
7404   your preprocessor is broken;
7405 #endif
7406 static long long int bignum = -9223372036854775807LL;
7407 static unsigned long long int ubignum = BIG64;
7408
7409 struct incomplete_array
7410 {
7411   int datasize;
7412   double data[];
7413 };
7414
7415 struct named_init {
7416   int number;
7417   const wchar_t *name;
7418   double average;
7419 };
7420
7421 typedef const char *ccp;
7422
7423 static inline int
7424 test_restrict (ccp restrict text)
7425 {
7426   // See if C++-style comments work.
7427   // Iterate through items via the restricted pointer.
7428   // Also check for declarations in for loops.
7429   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7430     continue;
7431   return 0;
7432 }
7433
7434 // Check varargs and va_copy.
7435 static void
7436 test_varargs (const char *format, ...)
7437 {
7438   va_list args;
7439   va_start (args, format);
7440   va_list args_copy;
7441   va_copy (args_copy, args);
7442
7443   const char *str;
7444   int number;
7445   float fnumber;
7446
7447   while (*format)
7448     {
7449       switch (*format++)
7450         {
7451         case 's': // string
7452           str = va_arg (args_copy, const char *);
7453           break;
7454         case 'd': // int
7455           number = va_arg (args_copy, int);
7456           break;
7457         case 'f': // float
7458           fnumber = va_arg (args_copy, double);
7459           break;
7460         default:
7461           break;
7462         }
7463     }
7464   va_end (args_copy);
7465   va_end (args);
7466 }
7467
7468 int
7469 main ()
7470 {
7471
7472   // Check bool.
7473   _Bool success = false;
7474
7475   // Check restrict.
7476   if (test_restrict ("String literal") == 0)
7477     success = true;
7478   char *restrict newvar = "Another string";
7479
7480   // Check varargs.
7481   test_varargs ("s, d' f .", "string", 65, 34.234);
7482   test_varargs_macros ();
7483
7484   // Check flexible array members.
7485   struct incomplete_array *ia =
7486     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7487   ia->datasize = 10;
7488   for (int i = 0; i < ia->datasize; ++i)
7489     ia->data[i] = i * 1.234;
7490
7491   // Check named initializers.
7492   struct named_init ni = {
7493     .number = 34,
7494     .name = L"Test wide string",
7495     .average = 543.34343,
7496   };
7497
7498   ni.number = 58;
7499
7500   int dynamic_array[ni.number];
7501   dynamic_array[ni.number - 1] = 543;
7502
7503   // work around unused variable warnings
7504   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7505           || dynamic_array[ni.number - 1] != 543);
7506
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7512 do
7513   CC="$ac_save_CC $ac_arg"
7514   if ac_fn_c_try_compile "$LINENO"; then :
7515   ac_cv_prog_cc_c99=$ac_arg
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext
7518   test "x$ac_cv_prog_cc_c99" != "xno" && break
7519 done
7520 rm -f conftest.$ac_ext
7521 CC=$ac_save_CC
7522
7523 fi
7524 # AC_CACHE_VAL
7525 case "x$ac_cv_prog_cc_c99" in
7526   x)
7527     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7528 $as_echo "none needed" >&6; } ;;
7529   xno)
7530     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7531 $as_echo "unsupported" >&6; } ;;
7532   *)
7533     CC="$CC $ac_cv_prog_cc_c99"
7534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7535 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7536 esac
7537 if test "x$ac_cv_prog_cc_c99" != xno; then :
7538
7539 fi
7540
7541
7542 if test "x$CC" != xcc; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7544 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7547 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7548 fi
7549 set dummy $CC; ac_cc=`$as_echo "$2" |
7550                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7551 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h.  */
7556
7557 int
7558 main ()
7559 {
7560
7561   ;
7562   return 0;
7563 }
7564 _ACEOF
7565 # Make sure it works both with $CC and with simple cc.
7566 # We do the test twice because some compilers refuse to overwrite an
7567 # existing .o file with -o, though they will create one.
7568 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7569 rm -f conftest2.*
7570 if { { case "(($ac_try" in
7571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572   *) ac_try_echo=$ac_try;;
7573 esac
7574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7575 $as_echo "$ac_try_echo"; } >&5
7576   (eval "$ac_try") 2>&5
7577   ac_status=$?
7578   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579   test $ac_status = 0; } &&
7580    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582   *) ac_try_echo=$ac_try;;
7583 esac
7584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7585 $as_echo "$ac_try_echo"; } >&5
7586   (eval "$ac_try") 2>&5
7587   ac_status=$?
7588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589   test $ac_status = 0; };
7590 then
7591   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7592   if test "x$CC" != xcc; then
7593     # Test first that cc exists at all.
7594     if { ac_try='cc -c conftest.$ac_ext >&5'
7595   { { case "(($ac_try" in
7596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597   *) ac_try_echo=$ac_try;;
7598 esac
7599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7600 $as_echo "$ac_try_echo"; } >&5
7601   (eval "$ac_try") 2>&5
7602   ac_status=$?
7603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604   test $ac_status = 0; }; }; then
7605       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7606       rm -f conftest2.*
7607       if { { case "(($ac_try" in
7608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609   *) ac_try_echo=$ac_try;;
7610 esac
7611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7612 $as_echo "$ac_try_echo"; } >&5
7613   (eval "$ac_try") 2>&5
7614   ac_status=$?
7615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7616   test $ac_status = 0; } &&
7617          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7622 $as_echo "$ac_try_echo"; } >&5
7623   (eval "$ac_try") 2>&5
7624   ac_status=$?
7625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626   test $ac_status = 0; };
7627       then
7628         # cc works too.
7629         :
7630       else
7631         # cc exists but doesn't like -o.
7632         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7633       fi
7634     fi
7635   fi
7636 else
7637   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7638 fi
7639 rm -f core conftest*
7640
7641 fi
7642 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7644 $as_echo "yes" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648
7649 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7650
7651 fi
7652
7653 # FIXME: we rely on the cache variable name because
7654 # there is no other way.
7655 set dummy $CC
7656 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7657 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7658 if test "$am_t" != yes; then
7659    # Losing compiler, so override with the script.
7660    # FIXME: It is wrong to rewrite CC.
7661    # But if we don't then we get into trouble of one sort or another.
7662    # A longer-term fix would be to have automake use am__CC in this case,
7663    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7664    CC="$am_aux_dir/compile $CC"
7665 fi
7666
7667
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7669 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7670 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   ac_cv_cflags_warn_all="no, unknown"
7674  ac_ext=c
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7679
7680  ac_save_CFLAGS="$CFLAGS"
7681 for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
7682 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7683    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h.  */
7685
7686 int
7687 main ()
7688 {
7689
7690   ;
7691   return 0;
7692 }
7693 _ACEOF
7694 if ac_fn_c_try_compile "$LINENO"; then :
7695   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7696 fi
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7698 done
7699  CFLAGS="$ac_save_CFLAGS"
7700  ac_ext=c
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705
7706
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7709 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7710 case ".$ac_cv_cflags_warn_all" in
7711      .ok|.ok,*)  ;;
7712    .|.no|.no,*)
7713  ;;
7714    *)
7715    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7716    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7717   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; }
7721    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7722   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7723   ac_status=$?
7724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725   test $ac_status = 0; }
7726                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7727    fi
7728  ;;
7729 esac
7730
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7734 set x ${MAKE-make}
7735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7736 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7737   $as_echo_n "(cached) " >&6
7738 else
7739   cat >conftest.make <<\_ACEOF
7740 SHELL = /bin/sh
7741 all:
7742         @echo '@@@%%%=$(MAKE)=@@@%%%'
7743 _ACEOF
7744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7746   *@@@%%%=?*=@@@%%%*)
7747     eval ac_cv_prog_make_${ac_make}_set=yes;;
7748   *)
7749     eval ac_cv_prog_make_${ac_make}_set=no;;
7750 esac
7751 rm -f conftest.make
7752 fi
7753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755 $as_echo "yes" >&6; }
7756   SET_MAKE=
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760   SET_MAKE="MAKE=${MAKE-make}"
7761 fi
7762
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7764 $as_echo_n "checking whether ln -s works... " >&6; }
7765 LN_S=$as_ln_s
7766 if test "$LN_S" = "ln -s"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768 $as_echo "yes" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7771 $as_echo "no, using $LN_S" >&6; }
7772 fi
7773
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7775 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7776
7777 # Check whether --with-dmalloc was given.
7778 if test "${with_dmalloc+set}" = set; then :
7779   withval=$with_dmalloc; if test "$withval" = yes; then
7780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781 $as_echo "yes" >&6; }
7782
7783 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7784
7785   LIBS="$LIBS -ldmalloc"
7786   LDFLAGS="$LDFLAGS -g"
7787 else
7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7790 fi
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7799 $as_echo_n "checking for __attribute__... " >&6; }
7800 if test "${ax_cv___attribute__+set}" = set; then :
7801   $as_echo_n "(cached) " >&6
7802 else
7803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h.  */
7805 #include <stdlib.h>
7806           static void foo(void) __attribute__ ((unused));
7807           static void
7808           foo(void) {
7809               exit(1);
7810           }
7811
7812 int
7813 main ()
7814 {
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821   ax_cv___attribute__=yes
7822 else
7823   ax_cv___attribute__=no
7824
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827
7828 fi
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7830 $as_echo "$ax_cv___attribute__" >&6; }
7831   if test "$ax_cv___attribute__" = "yes"; then
7832
7833 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7834
7835   fi
7836
7837
7838
7839 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7840         if test -n "$ac_tool_prefix"; then
7841   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7846   $as_echo_n "(cached) " >&6
7847 else
7848   case $PKG_CONFIG in
7849   [\\/]* | ?:[\\/]*)
7850   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7851   ;;
7852   *)
7853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856   IFS=$as_save_IFS
7857   test -z "$as_dir" && as_dir=.
7858     for ac_exec_ext in '' $ac_executable_extensions; do
7859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7862     break 2
7863   fi
7864 done
7865   done
7866 IFS=$as_save_IFS
7867
7868   ;;
7869 esac
7870 fi
7871 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7872 if test -n "$PKG_CONFIG"; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7874 $as_echo "$PKG_CONFIG" >&6; }
7875 else
7876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7878 fi
7879
7880
7881 fi
7882 if test -z "$ac_cv_path_PKG_CONFIG"; then
7883   ac_pt_PKG_CONFIG=$PKG_CONFIG
7884   # Extract the first word of "pkg-config", so it can be a program name with args.
7885 set dummy pkg-config; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7889   $as_echo_n "(cached) " >&6
7890 else
7891   case $ac_pt_PKG_CONFIG in
7892   [\\/]* | ?:[\\/]*)
7893   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7894   ;;
7895   *)
7896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910
7911   ;;
7912 esac
7913 fi
7914 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7915 if test -n "$ac_pt_PKG_CONFIG"; then
7916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7917 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7918 else
7919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 fi
7922
7923   if test "x$ac_pt_PKG_CONFIG" = x; then
7924     PKG_CONFIG=""
7925   else
7926     case $cross_compiling:$ac_tool_warned in
7927 yes:)
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 ac_tool_warned=yes ;;
7931 esac
7932     PKG_CONFIG=$ac_pt_PKG_CONFIG
7933   fi
7934 else
7935   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7936 fi
7937
7938 fi
7939 if test -n "$PKG_CONFIG"; then
7940         _pkg_min_version=0.9.0
7941         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7942 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7943         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7944                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945 $as_echo "yes" >&6; }
7946         else
7947                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949                 PKG_CONFIG=""
7950         fi
7951
7952 fi
7953
7954 #
7955 # Enable run-time checking.
7956 #
7957 # Check whether --enable-bounds-checking was given.
7958 if test "${enable_bounds_checking+set}" = set; then :
7959   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7960 else
7961   enable_bounds_checking='no'
7962 fi
7963
7964
7965 if test "$enable_bounds_checking" = yes; then
7966
7967 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7968
7969 fi
7970
7971 #
7972 # Tests for Windows
7973 #
7974
7975
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7977 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7978 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7979   $as_echo_n "(cached) " >&6
7980 else
7981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h.  */
7983
7984 int
7985 main ()
7986 {
7987 #ifndef _MSC_VER
7988        choke me
7989 #endif
7990
7991   ;
7992   return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"; then :
7996   ax_compiler_ms=yes
7997 else
7998   ax_compiler_ms=no
7999 fi
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 ax_cv_c_compiler_ms=$ax_compiler_ms
8002
8003 fi
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8005 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8006
8007 GDI32_LIBS=''
8008 native_win32_build='no'
8009 cygwin_build='no'
8010 case "${host_os}" in
8011     cygwin* )
8012         cygwin_build='yes'
8013         GDI32_LIBS='-lgdi32'
8014     ;;
8015     mingw* )
8016         native_win32_build='yes'
8017         GDI32_LIBS='-lgdi32'
8018     ;;
8019 esac
8020 if test "${GDI32_LIBS}x" != 'x'; then
8021
8022 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8023
8024 fi
8025
8026  if test "${GDI32_LIBS}x" != 'x' ; then
8027   WINGDI32_DELEGATE_TRUE=
8028   WINGDI32_DELEGATE_FALSE='#'
8029 else
8030   WINGDI32_DELEGATE_TRUE='#'
8031   WINGDI32_DELEGATE_FALSE=
8032 fi
8033
8034  if test "${native_win32_build}" = 'yes' ; then
8035   WIN32_NATIVE_BUILD_TRUE=
8036   WIN32_NATIVE_BUILD_FALSE='#'
8037 else
8038   WIN32_NATIVE_BUILD_TRUE='#'
8039   WIN32_NATIVE_BUILD_FALSE=
8040 fi
8041
8042  if test "${cygwin_build}" = 'yes' ; then
8043   CYGWIN_BUILD_TRUE=
8044   CYGWIN_BUILD_FALSE='#'
8045 else
8046   CYGWIN_BUILD_TRUE='#'
8047   CYGWIN_BUILD_FALSE=
8048 fi
8049
8050  if test "x${CC}" = 'xcl.exe' ; then
8051   USING_CL_TRUE=
8052   USING_CL_FALSE='#'
8053 else
8054   USING_CL_TRUE='#'
8055   USING_CL_FALSE=
8056 fi
8057
8058
8059 WinPathScript="${srcdirfull}/winpath.sh"
8060
8061
8062 #
8063 # Compiler flags tweaks
8064 #
8065 if test "${GCC}" != "yes"; then
8066     case "${host}" in
8067         *-*-hpux* )
8068             # aCC: HP ANSI C++ B3910B A.03.34
8069             CFLAGS="${CFLAGS} -Wp,-H30000"
8070             if test -n "${CXXFLAGS}"; then
8071                 CXXFLAGS='-AA'
8072             else
8073                 CXXFLAGS="${CXXFLAGS} -AA"
8074             fi
8075         ;;
8076         *-dec-osf5.* )
8077             # Compaq alphaev68-dec-osf5.1 compiler
8078             if test -n "${CXXFLAGS}"; then
8079                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8080             else
8081                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8082             fi
8083   esac
8084 fi
8085
8086 # Check for lazy-loading.
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8088 $as_echo_n "checking for linker lazyload option... " >&6; }
8089 if test "${im_cv_ld_lazyload+set}" = set; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092
8093 im_cv_ld_lazyload='none'
8094 case "${host}" in
8095   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8096     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8097        im_cv_ld_lazyload='-Wl,-zlazyload'
8098     fi
8099     ;;
8100 esac
8101
8102 fi
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8104 $as_echo "$im_cv_ld_lazyload" >&6; }
8105 if test "${im_cv_ld_lazyload}" != 'none' ; then
8106   if test -z "${LDFLAGS}" ; then
8107     LDFLAGS="${im_cv_ld_lazyload}"
8108   else
8109     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8110   fi
8111 fi
8112
8113 case "$host" in
8114 *darwin* | *-macos10*)
8115     # Check whether --enable-osx-universal-binary was given.
8116 if test "${enable_osx_universal_binary+set}" = set; then :
8117   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8118 else
8119   build_osxuniversal=no
8120 fi
8121
8122
8123   if test "${build_osxuniversal}" != no ; then
8124     if test "$enable_dependency_tracking" != no ; then
8125       as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
8126 Please re-run configure with these options:
8127   --disable-dependency-tracking --enable-osx-universal-binary
8128         " "$LINENO" 5
8129     fi
8130     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8133   fi
8134   ;;
8135 esac
8136
8137 # Enable support for threads
8138
8139 # Check whether --with-threads was given.
8140 if test "${with_threads+set}" = set; then :
8141   withval=$with_threads; with_threads=$withval
8142 else
8143   with_threads='yes'
8144 fi
8145
8146
8147 have_threads=no
8148 if test "$with_threads" != 'no'; then
8149
8150
8151
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158 ax_pthread_ok=no
8159
8160 # We used to check for pthread.h first, but this fails if pthread.h
8161 # requires special compiler flags (e.g. on True64 or Sequent).
8162 # It gets checked for in the link test anyway.
8163
8164 # First of all, check if the user has set any of the PTHREAD_LIBS,
8165 # etcetera environment variables, and if threads linking works using
8166 # them:
8167 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8168         save_CFLAGS="$CFLAGS"
8169         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8170         save_LIBS="$LIBS"
8171         LIBS="$PTHREAD_LIBS $LIBS"
8172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8173 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8174         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h.  */
8176
8177 /* Override any GCC internal prototype to avoid an error.
8178    Use char because int might match the return type of a GCC
8179    builtin and then its argument prototype would still apply.  */
8180 #ifdef __cplusplus
8181 extern "C"
8182 #endif
8183 char pthread_join ();
8184 int
8185 main ()
8186 {
8187 return pthread_join ();
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"; then :
8193   ax_pthread_ok=yes
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext \
8196     conftest$ac_exeext conftest.$ac_ext
8197         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8198 $as_echo "$ax_pthread_ok" >&6; }
8199         if test x"$ax_pthread_ok" = xno; then
8200                 PTHREAD_LIBS=""
8201                 PTHREAD_CFLAGS=""
8202         fi
8203         LIBS="$save_LIBS"
8204         CFLAGS="$save_CFLAGS"
8205 fi
8206
8207 # We must check for the threads library under a number of different
8208 # names; the ordering is very important because some systems
8209 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8210 # libraries is broken (non-POSIX).
8211
8212 # Create a list of thread flags to try.  Items starting with a "-" are
8213 # C compiler flags, and other items are library names, except for "none"
8214 # which indicates that we try without any flags at all, and "pthread-config"
8215 # which is a program returning the flags for the Pth emulation library.
8216
8217 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8218
8219 # The ordering *is* (sometimes) important.  Some notes on the
8220 # individual items follow:
8221
8222 # pthreads: AIX (must check this before -lpthread)
8223 # none: in case threads are in libc; should be tried before -Kthread and
8224 #       other compiler flags to prevent continual compiler warnings
8225 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8226 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8227 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8228 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8229 # -pthreads: Solaris/gcc
8230 # -mthreads: Mingw32/gcc, Lynx/gcc
8231 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8232 #      doesn't hurt to check since this sometimes defines pthreads too;
8233 #      also defines -D_REENTRANT)
8234 #      ... -mt is also the pthreads flag for HP/aCC
8235 # pthread: Linux, etcetera
8236 # --thread-safe: KAI C++
8237 # pthread-config: use pthread-config program (for GNU Pth library)
8238
8239 case "${host_cpu}-${host_os}" in
8240         *solaris*)
8241
8242         # On Solaris (at least, for some versions), libc contains stubbed
8243         # (non-functional) versions of the pthreads routines, so link-based
8244         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8245         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8246         # a function called by this macro, so we could check for that, but
8247         # who knows whether they'll stub that too in a future libc.)  So,
8248         # we'll just look for -pthreads and -lpthread first:
8249
8250         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8251         ;;
8252
8253         *-darwin*)
8254         ax_pthread_flags="-pthread $ax_pthread_flags"
8255         ;;
8256 esac
8257
8258 if test x"$ax_pthread_ok" = xno; then
8259 for flag in $ax_pthread_flags; do
8260
8261         case $flag in
8262                 none)
8263                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8264 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8265                 ;;
8266
8267                 -*)
8268                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8269 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8270                 PTHREAD_CFLAGS="$flag"
8271                 ;;
8272
8273                 pthread-config)
8274                 # Extract the first word of "pthread-config", so it can be a program name with args.
8275 set dummy pthread-config; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   if test -n "$ax_pthread_config"; then
8282   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8283 else
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 for as_dir in $PATH
8286 do
8287   IFS=$as_save_IFS
8288   test -z "$as_dir" && as_dir=.
8289     for ac_exec_ext in '' $ac_executable_extensions; do
8290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291     ac_cv_prog_ax_pthread_config="yes"
8292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293     break 2
8294   fi
8295 done
8296   done
8297 IFS=$as_save_IFS
8298
8299   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8300 fi
8301 fi
8302 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8303 if test -n "$ax_pthread_config"; then
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8305 $as_echo "$ax_pthread_config" >&6; }
8306 else
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311
8312                 if test x"$ax_pthread_config" = xno; then continue; fi
8313                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8314                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8315                 ;;
8316
8317                 *)
8318                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8319 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8320                 PTHREAD_LIBS="-l$flag"
8321                 ;;
8322         esac
8323
8324         save_LIBS="$LIBS"
8325         save_CFLAGS="$CFLAGS"
8326         LIBS="$PTHREAD_LIBS $LIBS"
8327         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8328
8329         # Check for various functions.  We must include pthread.h,
8330         # since some functions may be macros.  (On the Sequent, we
8331         # need a special flag -Kthread to make this header compile.)
8332         # We check for pthread_join because it is in -lpthread on IRIX
8333         # while pthread_create is in libc.  We check for pthread_attr_init
8334         # due to DEC craziness with -lpthreads.  We check for
8335         # pthread_cleanup_push because it is one of the few pthread
8336         # functions on Solaris that doesn't have a non-functional libc stub.
8337         # We try pthread_create on general principles.
8338         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h.  */
8340 #include <pthread.h>
8341                      static void routine(void* a) {a=0;}
8342                      static void* start_routine(void* a) {return a;}
8343 int
8344 main ()
8345 {
8346 pthread_t th; pthread_attr_t attr;
8347                      pthread_create(&th,0,start_routine,0);
8348                      pthread_join(th, 0);
8349                      pthread_attr_init(&attr);
8350                      pthread_cleanup_push(routine, 0);
8351                      pthread_cleanup_pop(0);
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 if ac_fn_c_try_link "$LINENO"; then :
8357   ax_pthread_ok=yes
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext \
8360     conftest$ac_exeext conftest.$ac_ext
8361
8362         LIBS="$save_LIBS"
8363         CFLAGS="$save_CFLAGS"
8364
8365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8366 $as_echo "$ax_pthread_ok" >&6; }
8367         if test "x$ax_pthread_ok" = xyes; then
8368                 break;
8369         fi
8370
8371         PTHREAD_LIBS=""
8372         PTHREAD_CFLAGS=""
8373 done
8374 fi
8375
8376 # Various other checks:
8377 if test "x$ax_pthread_ok" = xyes; then
8378         save_LIBS="$LIBS"
8379         LIBS="$PTHREAD_LIBS $LIBS"
8380         save_CFLAGS="$CFLAGS"
8381         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8382
8383         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8385 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8386         attr_name=unknown
8387         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8388             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h.  */
8390 #include <pthread.h>
8391 int
8392 main ()
8393 {
8394 int attr=$attr; return attr;
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 if ac_fn_c_try_link "$LINENO"; then :
8400   attr_name=$attr; break
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext \
8403     conftest$ac_exeext conftest.$ac_ext
8404         done
8405         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8406 $as_echo "$attr_name" >&6; }
8407         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8408
8409 cat >>confdefs.h <<_ACEOF
8410 #define PTHREAD_CREATE_JOINABLE $attr_name
8411 _ACEOF
8412
8413         fi
8414
8415         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8416 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8417         flag=no
8418         case "${host_cpu}-${host_os}" in
8419             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8420             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8421         esac
8422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8423 $as_echo "${flag}" >&6; }
8424         if test "x$flag" != xno; then
8425             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8426         fi
8427
8428         LIBS="$save_LIBS"
8429         CFLAGS="$save_CFLAGS"
8430
8431         # More AIX lossage: must compile with xlc_r or cc_r
8432         if test x"$GCC" != xyes; then
8433           for ac_prog in xlc_r cc_r
8434 do
8435   # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy $ac_prog; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   if test -n "$PTHREAD_CC"; then
8443   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448   IFS=$as_save_IFS
8449   test -z "$as_dir" && as_dir=.
8450     for ac_exec_ext in '' $ac_executable_extensions; do
8451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452     ac_cv_prog_PTHREAD_CC="$ac_prog"
8453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454     break 2
8455   fi
8456 done
8457   done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8463 if test -n "$PTHREAD_CC"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8465 $as_echo "$PTHREAD_CC" >&6; }
8466 else
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471
8472   test -n "$PTHREAD_CC" && break
8473 done
8474 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8475
8476         else
8477           PTHREAD_CC=$CC
8478         fi
8479 else
8480         PTHREAD_CC="$CC"
8481 fi
8482
8483
8484
8485
8486
8487 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8488 if test x"$ax_pthread_ok" = xyes; then
8489
8490 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8491
8492         :
8493 else
8494         ax_pthread_ok=no
8495
8496 fi
8497 ac_ext=c
8498 ac_cpp='$CPP $CPPFLAGS'
8499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502
8503
8504     if test "$ax_pthread_ok" = yes; then
8505         have_threads=yes
8506         DEF_THREAD="$PTHREAD_CFLAGS"
8507         CFLAGS="$CFLAGS $DEF_THREAD"
8508         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8509         if test "$CC" != "$PTHREAD_CC"; then
8510             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8511 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8512             CC="$PTHREAD_CC"
8513         fi
8514
8515 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8516
8517     fi
8518 fi
8519
8520 # Enable support for OpenMP
8521 if test "$have_threads" != 'yes'; then
8522   ac_cv_prog_c_openmp=unsupported
8523 fi
8524
8525   OPENMP_CFLAGS=
8526   # Check whether --enable-openmp was given.
8527 if test "${enable_openmp+set}" = set; then :
8528   enableval=$enable_openmp;
8529 fi
8530
8531   if test "$enable_openmp" != no; then
8532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8533 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8534 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8535   $as_echo_n "(cached) " >&6
8536 else
8537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h.  */
8539
8540 #ifndef _OPENMP
8541  choke me
8542 #endif
8543 #include <omp.h>
8544 int main () { return omp_get_num_threads (); }
8545
8546 _ACEOF
8547 if ac_fn_c_try_link "$LINENO"; then :
8548   ac_cv_prog_c_openmp='none needed'
8549 else
8550   ac_cv_prog_c_openmp='unsupported'
8551                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8552             ac_save_CFLAGS=$CFLAGS
8553             CFLAGS="$CFLAGS $ac_option"
8554             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h.  */
8556
8557 #ifndef _OPENMP
8558  choke me
8559 #endif
8560 #include <omp.h>
8561 int main () { return omp_get_num_threads (); }
8562
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565   ac_cv_prog_c_openmp=$ac_option
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext \
8568     conftest$ac_exeext conftest.$ac_ext
8569             CFLAGS=$ac_save_CFLAGS
8570             if test "$ac_cv_prog_c_openmp" != unsupported; then
8571               break
8572             fi
8573           done
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext \
8576     conftest$ac_exeext conftest.$ac_ext
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8579 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8580     case $ac_cv_prog_c_openmp in #(
8581       "none needed" | unsupported)
8582         ;; #(
8583       *)
8584         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8585     esac
8586   fi
8587
8588
8589 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8590 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8591
8592 if test "$enable_openmp" != no; then
8593   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8594     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8595   fi
8596 fi
8597
8598 # Enable support for OpenCL
8599
8600
8601
8602 ac_ext=c
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8607
8608 ax_pthread_ok=no
8609
8610 # We used to check for pthread.h first, but this fails if pthread.h
8611 # requires special compiler flags (e.g. on True64 or Sequent).
8612 # It gets checked for in the link test anyway.
8613
8614 # First of all, check if the user has set any of the PTHREAD_LIBS,
8615 # etcetera environment variables, and if threads linking works using
8616 # them:
8617 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8618         save_CFLAGS="$CFLAGS"
8619         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8620         save_LIBS="$LIBS"
8621         LIBS="$PTHREAD_LIBS $LIBS"
8622         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8623 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h.  */
8626
8627 /* Override any GCC internal prototype to avoid an error.
8628    Use char because int might match the return type of a GCC
8629    builtin and then its argument prototype would still apply.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 char pthread_join ();
8634 int
8635 main ()
8636 {
8637 return pthread_join ();
8638   ;
8639   return 0;
8640 }
8641 _ACEOF
8642 if ac_fn_c_try_link "$LINENO"; then :
8643   ax_pthread_ok=yes
8644 fi
8645 rm -f core conftest.err conftest.$ac_objext \
8646     conftest$ac_exeext conftest.$ac_ext
8647         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8648 $as_echo "$ax_pthread_ok" >&6; }
8649         if test x"$ax_pthread_ok" = xno; then
8650                 PTHREAD_LIBS=""
8651                 PTHREAD_CFLAGS=""
8652         fi
8653         LIBS="$save_LIBS"
8654         CFLAGS="$save_CFLAGS"
8655 fi
8656
8657 # We must check for the threads library under a number of different
8658 # names; the ordering is very important because some systems
8659 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8660 # libraries is broken (non-POSIX).
8661
8662 # Create a list of thread flags to try.  Items starting with a "-" are
8663 # C compiler flags, and other items are library names, except for "none"
8664 # which indicates that we try without any flags at all, and "pthread-config"
8665 # which is a program returning the flags for the Pth emulation library.
8666
8667 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8668
8669 # The ordering *is* (sometimes) important.  Some notes on the
8670 # individual items follow:
8671
8672 # pthreads: AIX (must check this before -lpthread)
8673 # none: in case threads are in libc; should be tried before -Kthread and
8674 #       other compiler flags to prevent continual compiler warnings
8675 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8676 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8677 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8678 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8679 # -pthreads: Solaris/gcc
8680 # -mthreads: Mingw32/gcc, Lynx/gcc
8681 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8682 #      doesn't hurt to check since this sometimes defines pthreads too;
8683 #      also defines -D_REENTRANT)
8684 #      ... -mt is also the pthreads flag for HP/aCC
8685 # pthread: Linux, etcetera
8686 # --thread-safe: KAI C++
8687 # pthread-config: use pthread-config program (for GNU Pth library)
8688
8689 case "${host_cpu}-${host_os}" in
8690         *solaris*)
8691
8692         # On Solaris (at least, for some versions), libc contains stubbed
8693         # (non-functional) versions of the pthreads routines, so link-based
8694         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8695         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8696         # a function called by this macro, so we could check for that, but
8697         # who knows whether they'll stub that too in a future libc.)  So,
8698         # we'll just look for -pthreads and -lpthread first:
8699
8700         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8701         ;;
8702
8703         *-darwin*)
8704         ax_pthread_flags="-pthread $ax_pthread_flags"
8705         ;;
8706 esac
8707
8708 if test x"$ax_pthread_ok" = xno; then
8709 for flag in $ax_pthread_flags; do
8710
8711         case $flag in
8712                 none)
8713                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8714 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8715                 ;;
8716
8717                 -*)
8718                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8719 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8720                 PTHREAD_CFLAGS="$flag"
8721                 ;;
8722
8723                 pthread-config)
8724                 # Extract the first word of "pthread-config", so it can be a program name with args.
8725 set dummy pthread-config; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8729   $as_echo_n "(cached) " >&6
8730 else
8731   if test -n "$ax_pthread_config"; then
8732   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8733 else
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735 for as_dir in $PATH
8736 do
8737   IFS=$as_save_IFS
8738   test -z "$as_dir" && as_dir=.
8739     for ac_exec_ext in '' $ac_executable_extensions; do
8740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741     ac_cv_prog_ax_pthread_config="yes"
8742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743     break 2
8744   fi
8745 done
8746   done
8747 IFS=$as_save_IFS
8748
8749   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8750 fi
8751 fi
8752 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8753 if test -n "$ax_pthread_config"; then
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8755 $as_echo "$ax_pthread_config" >&6; }
8756 else
8757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8759 fi
8760
8761
8762                 if test x"$ax_pthread_config" = xno; then continue; fi
8763                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8764                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8765                 ;;
8766
8767                 *)
8768                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8769 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8770                 PTHREAD_LIBS="-l$flag"
8771                 ;;
8772         esac
8773
8774         save_LIBS="$LIBS"
8775         save_CFLAGS="$CFLAGS"
8776         LIBS="$PTHREAD_LIBS $LIBS"
8777         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8778
8779         # Check for various functions.  We must include pthread.h,
8780         # since some functions may be macros.  (On the Sequent, we
8781         # need a special flag -Kthread to make this header compile.)
8782         # We check for pthread_join because it is in -lpthread on IRIX
8783         # while pthread_create is in libc.  We check for pthread_attr_init
8784         # due to DEC craziness with -lpthreads.  We check for
8785         # pthread_cleanup_push because it is one of the few pthread
8786         # functions on Solaris that doesn't have a non-functional libc stub.
8787         # We try pthread_create on general principles.
8788         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h.  */
8790 #include <pthread.h>
8791                      static void routine(void* a) {a=0;}
8792                      static void* start_routine(void* a) {return a;}
8793 int
8794 main ()
8795 {
8796 pthread_t th; pthread_attr_t attr;
8797                      pthread_create(&th,0,start_routine,0);
8798                      pthread_join(th, 0);
8799                      pthread_attr_init(&attr);
8800                      pthread_cleanup_push(routine, 0);
8801                      pthread_cleanup_pop(0);
8802   ;
8803   return 0;
8804 }
8805 _ACEOF
8806 if ac_fn_c_try_link "$LINENO"; then :
8807   ax_pthread_ok=yes
8808 fi
8809 rm -f core conftest.err conftest.$ac_objext \
8810     conftest$ac_exeext conftest.$ac_ext
8811
8812         LIBS="$save_LIBS"
8813         CFLAGS="$save_CFLAGS"
8814
8815         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8816 $as_echo "$ax_pthread_ok" >&6; }
8817         if test "x$ax_pthread_ok" = xyes; then
8818                 break;
8819         fi
8820
8821         PTHREAD_LIBS=""
8822         PTHREAD_CFLAGS=""
8823 done
8824 fi
8825
8826 # Various other checks:
8827 if test "x$ax_pthread_ok" = xyes; then
8828         save_LIBS="$LIBS"
8829         LIBS="$PTHREAD_LIBS $LIBS"
8830         save_CFLAGS="$CFLAGS"
8831         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8832
8833         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8835 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8836         attr_name=unknown
8837         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8838             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h.  */
8840 #include <pthread.h>
8841 int
8842 main ()
8843 {
8844 int attr=$attr; return attr;
8845   ;
8846   return 0;
8847 }
8848 _ACEOF
8849 if ac_fn_c_try_link "$LINENO"; then :
8850   attr_name=$attr; break
8851 fi
8852 rm -f core conftest.err conftest.$ac_objext \
8853     conftest$ac_exeext conftest.$ac_ext
8854         done
8855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8856 $as_echo "$attr_name" >&6; }
8857         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8858
8859 cat >>confdefs.h <<_ACEOF
8860 #define PTHREAD_CREATE_JOINABLE $attr_name
8861 _ACEOF
8862
8863         fi
8864
8865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8866 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8867         flag=no
8868         case "${host_cpu}-${host_os}" in
8869             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8870             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8871         esac
8872         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8873 $as_echo "${flag}" >&6; }
8874         if test "x$flag" != xno; then
8875             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8876         fi
8877
8878         LIBS="$save_LIBS"
8879         CFLAGS="$save_CFLAGS"
8880
8881         # More AIX lossage: must compile with xlc_r or cc_r
8882         if test x"$GCC" != xyes; then
8883           for ac_prog in xlc_r cc_r
8884 do
8885   # Extract the first word of "$ac_prog", so it can be a program name with args.
8886 set dummy $ac_prog; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8890   $as_echo_n "(cached) " >&6
8891 else
8892   if test -n "$PTHREAD_CC"; then
8893   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898   IFS=$as_save_IFS
8899   test -z "$as_dir" && as_dir=.
8900     for ac_exec_ext in '' $ac_executable_extensions; do
8901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902     ac_cv_prog_PTHREAD_CC="$ac_prog"
8903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904     break 2
8905   fi
8906 done
8907   done
8908 IFS=$as_save_IFS
8909
8910 fi
8911 fi
8912 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8913 if test -n "$PTHREAD_CC"; then
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8915 $as_echo "$PTHREAD_CC" >&6; }
8916 else
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8919 fi
8920
8921
8922   test -n "$PTHREAD_CC" && break
8923 done
8924 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8925
8926         else
8927           PTHREAD_CC=$CC
8928         fi
8929 else
8930         PTHREAD_CC="$CC"
8931 fi
8932
8933
8934
8935
8936
8937 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8938 if test x"$ax_pthread_ok" = xyes; then
8939
8940 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8941
8942         :
8943 else
8944         ax_pthread_ok=no
8945
8946 fi
8947 ac_ext=c
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8952
8953
8954
8955 # Check whether --enable-opencl was given.
8956 if test "${enable_opencl+set}" = set; then :
8957   enableval=$enable_opencl; disable_opencl=$enableval
8958 else
8959   disable_opencl='yes'
8960 fi
8961
8962
8963 if test "$disable_opencl" = 'yes'; then
8964   ac_ext=c
8965 ac_cpp='$CPP $CPPFLAGS'
8966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8969
8970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8971 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8972 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8973   $as_echo_n "(cached) " >&6
8974 else
8975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h.  */
8977
8978 int
8979 main ()
8980 {
8981 #ifndef _MSC_VER
8982        choke me
8983 #endif
8984
8985   ;
8986   return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990   ax_compiler_ms=yes
8991 else
8992   ax_compiler_ms=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 ax_cv_c_compiler_ms=$ax_compiler_ms
8996
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8999 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9000   if test X$ax_compiler_ms = Xno; then :
9001   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9002 fi
9003
9004   ax_save_CPPFLAGS=$CPPFLAGS
9005   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9006   for ac_header in CL/cl.h OpenCL/cl.h
9007 do :
9008   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9010 eval as_val=\$$as_ac_Header
9011    if test "x$as_val" = x""yes; then :
9012   cat >>confdefs.h <<_ACEOF
9013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 _ACEOF
9015
9016 fi
9017
9018 done
9019
9020   CPPFLAGS=$ax_save_CPPFLAGS
9021
9022   for ac_header in windows.h
9023 do :
9024   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9025 if test "x$ac_cv_header_windows_h" = x""yes; then :
9026   cat >>confdefs.h <<_ACEOF
9027 #define HAVE_WINDOWS_H 1
9028 _ACEOF
9029
9030 fi
9031
9032 done
9033
9034
9035
9036
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9038 $as_echo_n "checking for OpenCL library... " >&6; }
9039 if test "${ax_cv_check_cl_libcl+set}" = set; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042   ax_cv_check_cl_libcl=no
9043   case $host_cpu in
9044     x86_64) ax_check_cl_libdir=lib64 ;;
9045     *)      ax_check_cl_libdir=lib ;;
9046   esac
9047   ax_save_CPPFLAGS=$CPPFLAGS
9048   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9049   ax_save_LIBS=$LIBS
9050   LIBS=""
9051   ax_check_libs="-lOpenCL -lCL -lclparser"
9052   for ax_lib in $ax_check_libs; do
9053     if test X$ax_compiler_ms = Xyes; then :
9054   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9055 else
9056   ax_try_lib=$ax_lib
9057 fi
9058     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h.  */
9061
9062   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9063   #   include <windows.h>
9064   # endif
9065   # ifdef HAVE_CL_CL_H
9066   #   include <CL/cl.h>
9067   # elif defined(HAVE_OPENCL_CL_H)
9068   #   include <OpenCL/cl.h>
9069   # else
9070   #   error no CL.h
9071   # endif
9072 int
9073 main ()
9074 {
9075 clCreateContextFromType(0,0,0,0,0)
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 if ac_fn_c_try_link "$LINENO"; then :
9081   ax_cv_check_cl_libcl=$ax_try_lib; break
9082 else
9083   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"
9084                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086
9087   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9088   #   include <windows.h>
9089   # endif
9090   # ifdef HAVE_CL_CL_H
9091   #   include <CL/cl.h>
9092   # elif defined(HAVE_OPENCL_CL_H)
9093   #   include <OpenCL/cl.h>
9094   # else
9095   #   error no CL.h
9096   # endif
9097 int
9098 main ()
9099 {
9100 clCreateContextFromType(0,0,0,0,0)
9101   ;
9102   return 0;
9103 }
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9107 else
9108   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"
9109                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h.  */
9111
9112   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9113   #   include <windows.h>
9114   # endif
9115   # ifdef HAVE_CL_CL_H
9116   #   include <CL/cl.h>
9117   # elif defined(HAVE_OPENCL_CL_H)
9118   #   include <OpenCL/cl.h>
9119   # else
9120   #   error no CL.h
9121   # endif
9122 int
9123 main ()
9124 {
9125 clCreateContextFromType(0,0,0,0,0)
9126   ;
9127   return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_link "$LINENO"; then :
9131   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext \
9134     conftest$ac_exeext conftest.$ac_ext
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137     conftest$ac_exeext conftest.$ac_ext
9138 fi
9139 rm -f core conftest.err conftest.$ac_objext \
9140     conftest$ac_exeext conftest.$ac_ext
9141   done
9142
9143   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9144   LIBS='-framework OpenCL'
9145         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h.  */
9147
9148   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9149   #   include <windows.h>
9150   # endif
9151   # ifdef HAVE_CL_CL_H
9152   #   include <CL/cl.h>
9153   # elif defined(HAVE_OPENCL_CL_H)
9154   #   include <OpenCL/cl.h>
9155   # else
9156   #   error no CL.h
9157   # endif
9158 int
9159 main ()
9160 {
9161 clCreateContextFromType(0,0,0,0,0)
9162   ;
9163   return 0;
9164 }
9165 _ACEOF
9166 if ac_fn_c_try_link "$LINENO"; then :
9167   ax_cv_check_cl_libcl=$LIBS
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext \
9170     conftest$ac_exeext conftest.$ac_ext
9171 fi
9172
9173   LIBS=$ax_save_LIBS
9174   CPPFLAGS=$ax_save_CPPFLAGS
9175 fi
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9177 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9178
9179   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9180   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9181 else
9182   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9183 $as_echo "#define _OPENCL 1" >>confdefs.h
9184
9185 fi
9186   ac_ext=c
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192 fi
9193
9194
9195
9196
9197 CFLAGS="$CL_CFLAGS $CFLAGS"
9198 LIBS="$CL_LIBS $LIBS"
9199
9200 if test "$enable_opencl" != no; then
9201   if test "_OPENCL" = '1'; then
9202     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9203   fi
9204 fi
9205
9206 ########
9207 #
9208 # Check for large file support
9209 #
9210 ########
9211 # Check whether --enable-largefile was given.
9212 if test "${enable_largefile+set}" = set; then :
9213   enableval=$enable_largefile;
9214 fi
9215
9216 if test "$enable_largefile" != no; then
9217
9218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9219 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9220 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9221   $as_echo_n "(cached) " >&6
9222 else
9223   ac_cv_sys_largefile_CC=no
9224      if test "$GCC" != yes; then
9225        ac_save_CC=$CC
9226        while :; do
9227          # IRIX 6.2 and later do not support large files by default,
9228          # so use the C compiler's -n32 option if that helps.
9229          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h.  */
9231 #include <sys/types.h>
9232  /* Check that off_t can represent 2**63 - 1 correctly.
9233     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9234     since some C++ compilers masquerading as C compilers
9235     incorrectly reject 9223372036854775807.  */
9236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9237   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9238                        && LARGE_OFF_T % 2147483647 == 1)
9239                       ? 1 : -1];
9240 int
9241 main ()
9242 {
9243
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248          if ac_fn_c_try_compile "$LINENO"; then :
9249   break
9250 fi
9251 rm -f core conftest.err conftest.$ac_objext
9252          CC="$CC -n32"
9253          if ac_fn_c_try_compile "$LINENO"; then :
9254   ac_cv_sys_largefile_CC=' -n32'; break
9255 fi
9256 rm -f core conftest.err conftest.$ac_objext
9257          break
9258        done
9259        CC=$ac_save_CC
9260        rm -f conftest.$ac_ext
9261     fi
9262 fi
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9264 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9265   if test "$ac_cv_sys_largefile_CC" != no; then
9266     CC=$CC$ac_cv_sys_largefile_CC
9267   fi
9268
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9270 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9271 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9272   $as_echo_n "(cached) " >&6
9273 else
9274   while :; do
9275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h.  */
9277 #include <sys/types.h>
9278  /* Check that off_t can represent 2**63 - 1 correctly.
9279     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9280     since some C++ compilers masquerading as C compilers
9281     incorrectly reject 9223372036854775807.  */
9282 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9283   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9284                        && LARGE_OFF_T % 2147483647 == 1)
9285                       ? 1 : -1];
9286 int
9287 main ()
9288 {
9289
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295   ac_cv_sys_file_offset_bits=no; break
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h.  */
9300 #define _FILE_OFFSET_BITS 64
9301 #include <sys/types.h>
9302  /* Check that off_t can represent 2**63 - 1 correctly.
9303     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9304     since some C++ compilers masquerading as C compilers
9305     incorrectly reject 9223372036854775807.  */
9306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9307   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9308                        && LARGE_OFF_T % 2147483647 == 1)
9309                       ? 1 : -1];
9310 int
9311 main ()
9312 {
9313
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 if ac_fn_c_try_compile "$LINENO"; then :
9319   ac_cv_sys_file_offset_bits=64; break
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322   ac_cv_sys_file_offset_bits=unknown
9323   break
9324 done
9325 fi
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9327 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9328 case $ac_cv_sys_file_offset_bits in #(
9329   no | unknown) ;;
9330   *)
9331 cat >>confdefs.h <<_ACEOF
9332 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9333 _ACEOF
9334 ;;
9335 esac
9336 rm -rf conftest*
9337   if test $ac_cv_sys_file_offset_bits = unknown; then
9338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9339 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9340 if test "${ac_cv_sys_large_files+set}" = set; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   while :; do
9344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h.  */
9346 #include <sys/types.h>
9347  /* Check that off_t can represent 2**63 - 1 correctly.
9348     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9349     since some C++ compilers masquerading as C compilers
9350     incorrectly reject 9223372036854775807.  */
9351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9352   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9353                        && LARGE_OFF_T % 2147483647 == 1)
9354                       ? 1 : -1];
9355 int
9356 main ()
9357 {
9358
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364   ac_cv_sys_large_files=no; break
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h.  */
9369 #define _LARGE_FILES 1
9370 #include <sys/types.h>
9371  /* Check that off_t can represent 2**63 - 1 correctly.
9372     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9373     since some C++ compilers masquerading as C compilers
9374     incorrectly reject 9223372036854775807.  */
9375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9376   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9377                        && LARGE_OFF_T % 2147483647 == 1)
9378                       ? 1 : -1];
9379 int
9380 main ()
9381 {
9382
9383   ;
9384   return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_compile "$LINENO"; then :
9388   ac_cv_sys_large_files=1; break
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391   ac_cv_sys_large_files=unknown
9392   break
9393 done
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9396 $as_echo "$ac_cv_sys_large_files" >&6; }
9397 case $ac_cv_sys_large_files in #(
9398   no | unknown) ;;
9399   *)
9400 cat >>confdefs.h <<_ACEOF
9401 #define _LARGE_FILES $ac_cv_sys_large_files
9402 _ACEOF
9403 ;;
9404 esac
9405 rm -rf conftest*
9406   fi
9407 fi
9408
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9410 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9411 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9412   $as_echo_n "(cached) " >&6
9413 else
9414   while :; do
9415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h.  */
9417 #include <sys/types.h> /* for off_t */
9418      #include <stdio.h>
9419 int
9420 main ()
9421 {
9422 int (*fp) (FILE *, off_t, int) = fseeko;
9423      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_link "$LINENO"; then :
9429   ac_cv_sys_largefile_source=no; break
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext \
9432     conftest$ac_exeext conftest.$ac_ext
9433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h.  */
9435 #define _LARGEFILE_SOURCE 1
9436 #include <sys/types.h> /* for off_t */
9437      #include <stdio.h>
9438 int
9439 main ()
9440 {
9441 int (*fp) (FILE *, off_t, int) = fseeko;
9442      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 if ac_fn_c_try_link "$LINENO"; then :
9448   ac_cv_sys_largefile_source=1; break
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452   ac_cv_sys_largefile_source=unknown
9453   break
9454 done
9455 fi
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9457 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9458 case $ac_cv_sys_largefile_source in #(
9459   no | unknown) ;;
9460   *)
9461 cat >>confdefs.h <<_ACEOF
9462 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9463 _ACEOF
9464 ;;
9465 esac
9466 rm -rf conftest*
9467
9468 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9469 # in glibc 2.1.3, but that breaks too many other things.
9470 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9471 if test $ac_cv_sys_largefile_source != unknown; then
9472
9473 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9474
9475 fi
9476
9477 LFS_CPPFLAGS=''
9478 if test "$enable_largefile" != no; then
9479     if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9480         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9481     else
9482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9483 $as_echo_n "checking for native large file support... " >&6; }
9484         if test "$cross_compiling" = yes; then :
9485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9487 as_fn_error "cannot run test program while cross compiling
9488 See \`config.log' for more details." "$LINENO" 5; }
9489 else
9490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h.  */
9492 #include <unistd.h>
9493           main () {
9494           exit(!(sizeof(off_t) == 8));
9495         }
9496 _ACEOF
9497 if ac_fn_c_try_run "$LINENO"; then :
9498   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9499
9500          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9501 $as_echo "yes" >&6; }
9502 else
9503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9505 fi
9506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9507   conftest.$ac_objext conftest.beam conftest.$ac_ext
9508 fi
9509
9510     fi
9511     if test "$ac_cv_sys_large_files" != 'no'; then
9512         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9513     fi
9514     if test "$ac_cv_sys_largefile_source" != 'no'; then
9515         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9516     fi
9517 fi
9518
9519
9520 #
9521 # Configure libtool & libltdl
9522 #
9523 # Configure libtool
9524 enable_dlopen=yes
9525
9526
9527
9528 case `pwd` in
9529   *\ * | *\     *)
9530     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9531 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9532 esac
9533
9534
9535
9536 macro_version='2.2.6b'
9537 macro_revision='1.3017'
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551 ltmain="$ac_aux_dir/ltmain.sh"
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9554 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9555 if test "${lt_cv_path_NM+set}" = set; then :
9556   $as_echo_n "(cached) " >&6
9557 else
9558   if test -n "$NM"; then
9559   # Let the user override the test.
9560   lt_cv_path_NM="$NM"
9561 else
9562   lt_nm_to_check="${ac_tool_prefix}nm"
9563   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9564     lt_nm_to_check="$lt_nm_to_check nm"
9565   fi
9566   for lt_tmp_nm in $lt_nm_to_check; do
9567     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9568     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9569       IFS="$lt_save_ifs"
9570       test -z "$ac_dir" && ac_dir=.
9571       tmp_nm="$ac_dir/$lt_tmp_nm"
9572       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9573         # Check to see if the nm accepts a BSD-compat flag.
9574         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9575         #   nm: unknown option "B" ignored
9576         # Tru64's nm complains that /dev/null is an invalid object file
9577         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9578         */dev/null* | *'Invalid file or object type'*)
9579           lt_cv_path_NM="$tmp_nm -B"
9580           break
9581           ;;
9582         *)
9583           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9584           */dev/null*)
9585             lt_cv_path_NM="$tmp_nm -p"
9586             break
9587             ;;
9588           *)
9589             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9590             continue # so that we can try to find one that supports BSD flags
9591             ;;
9592           esac
9593           ;;
9594         esac
9595       fi
9596     done
9597     IFS="$lt_save_ifs"
9598   done
9599   : ${lt_cv_path_NM=no}
9600 fi
9601 fi
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9603 $as_echo "$lt_cv_path_NM" >&6; }
9604 if test "$lt_cv_path_NM" != "no"; then
9605   NM="$lt_cv_path_NM"
9606 else
9607   # Didn't find any BSD compatible name lister, look for dumpbin.
9608   if test -n "$ac_tool_prefix"; then
9609   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9610   do
9611     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9616   $as_echo_n "(cached) " >&6
9617 else
9618   if test -n "$DUMPBIN"; then
9619   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9620 else
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9623 do
9624   IFS=$as_save_IFS
9625   test -z "$as_dir" && as_dir=.
9626     for ac_exec_ext in '' $ac_executable_extensions; do
9627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630     break 2
9631   fi
9632 done
9633   done
9634 IFS=$as_save_IFS
9635
9636 fi
9637 fi
9638 DUMPBIN=$ac_cv_prog_DUMPBIN
9639 if test -n "$DUMPBIN"; then
9640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9641 $as_echo "$DUMPBIN" >&6; }
9642 else
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 fi
9646
9647
9648     test -n "$DUMPBIN" && break
9649   done
9650 fi
9651 if test -z "$DUMPBIN"; then
9652   ac_ct_DUMPBIN=$DUMPBIN
9653   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9654 do
9655   # Extract the first word of "$ac_prog", so it can be a program name with args.
9656 set dummy $ac_prog; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9660   $as_echo_n "(cached) " >&6
9661 else
9662   if test -n "$ac_ct_DUMPBIN"; then
9663   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9664 else
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 for as_dir in $PATH
9667 do
9668   IFS=$as_save_IFS
9669   test -z "$as_dir" && as_dir=.
9670     for ac_exec_ext in '' $ac_executable_extensions; do
9671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9674     break 2
9675   fi
9676 done
9677   done
9678 IFS=$as_save_IFS
9679
9680 fi
9681 fi
9682 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9683 if test -n "$ac_ct_DUMPBIN"; then
9684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9685 $as_echo "$ac_ct_DUMPBIN" >&6; }
9686 else
9687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9689 fi
9690
9691
9692   test -n "$ac_ct_DUMPBIN" && break
9693 done
9694
9695   if test "x$ac_ct_DUMPBIN" = x; then
9696     DUMPBIN=":"
9697   else
9698     case $cross_compiling:$ac_tool_warned in
9699 yes:)
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9703 esac
9704     DUMPBIN=$ac_ct_DUMPBIN
9705   fi
9706 fi
9707
9708
9709   if test "$DUMPBIN" != ":"; then
9710     NM="$DUMPBIN"
9711   fi
9712 fi
9713 test -z "$NM" && NM=nm
9714
9715
9716
9717
9718
9719
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9721 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9722 if test "${lt_cv_nm_interface+set}" = set; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   lt_cv_nm_interface="BSD nm"
9726   echo "int some_variable = 0;" > conftest.$ac_ext
9727   (eval echo "\"\$as_me:9727: $ac_compile\"" >&5)
9728   (eval "$ac_compile" 2>conftest.err)
9729   cat conftest.err >&5
9730   (eval echo "\"\$as_me:9730: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9731   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9732   cat conftest.err >&5
9733   (eval echo "\"\$as_me:9733: output\"" >&5)
9734   cat conftest.out >&5
9735   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9736     lt_cv_nm_interface="MS dumpbin"
9737   fi
9738   rm -f conftest*
9739 fi
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9741 $as_echo "$lt_cv_nm_interface" >&6; }
9742
9743 # find the maximum length of command line arguments
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9745 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9746 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9747   $as_echo_n "(cached) " >&6
9748 else
9749     i=0
9750   teststring="ABCD"
9751
9752   case $build_os in
9753   msdosdjgpp*)
9754     # On DJGPP, this test can blow up pretty badly due to problems in libc
9755     # (any single argument exceeding 2000 bytes causes a buffer overrun
9756     # during glob expansion).  Even if it were fixed, the result of this
9757     # check would be larger than it should be.
9758     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9759     ;;
9760
9761   gnu*)
9762     # Under GNU Hurd, this test is not required because there is
9763     # no limit to the length of command line arguments.
9764     # Libtool will interpret -1 as no limit whatsoever
9765     lt_cv_sys_max_cmd_len=-1;
9766     ;;
9767
9768   cygwin* | mingw* | cegcc*)
9769     # On Win9x/ME, this test blows up -- it succeeds, but takes
9770     # about 5 minutes as the teststring grows exponentially.
9771     # Worse, since 9x/ME are not pre-emptively multitasking,
9772     # you end up with a "frozen" computer, even though with patience
9773     # the test eventually succeeds (with a max line length of 256k).
9774     # Instead, let's just punt: use the minimum linelength reported by
9775     # all of the supported platforms: 8192 (on NT/2K/XP).
9776     lt_cv_sys_max_cmd_len=8192;
9777     ;;
9778
9779   amigaos*)
9780     # On AmigaOS with pdksh, this test takes hours, literally.
9781     # So we just punt and use a minimum line length of 8192.
9782     lt_cv_sys_max_cmd_len=8192;
9783     ;;
9784
9785   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9786     # This has been around since 386BSD, at least.  Likely further.
9787     if test -x /sbin/sysctl; then
9788       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9789     elif test -x /usr/sbin/sysctl; then
9790       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9791     else
9792       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9793     fi
9794     # And add a safety zone
9795     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9796     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9797     ;;
9798
9799   interix*)
9800     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9801     lt_cv_sys_max_cmd_len=196608
9802     ;;
9803
9804   osf*)
9805     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9806     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9807     # nice to cause kernel panics so lets avoid the loop below.
9808     # First set a reasonable default.
9809     lt_cv_sys_max_cmd_len=16384
9810     #
9811     if test -x /sbin/sysconfig; then
9812       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9813         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9814       esac
9815     fi
9816     ;;
9817   sco3.2v5*)
9818     lt_cv_sys_max_cmd_len=102400
9819     ;;
9820   sysv5* | sco5v6* | sysv4.2uw2*)
9821     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9822     if test -n "$kargmax"; then
9823       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9824     else
9825       lt_cv_sys_max_cmd_len=32768
9826     fi
9827     ;;
9828   *)
9829     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9830     if test -n "$lt_cv_sys_max_cmd_len"; then
9831       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9832       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9833     else
9834       # Make teststring a little bigger before we do anything with it.
9835       # a 1K string should be a reasonable start.
9836       for i in 1 2 3 4 5 6 7 8 ; do
9837         teststring=$teststring$teststring
9838       done
9839       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9840       # If test is not a shell built-in, we'll probably end up computing a
9841       # maximum length that is only half of the actual maximum length, but
9842       # we can't tell.
9843       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9844                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9845               test $i != 17 # 1/2 MB should be enough
9846       do
9847         i=`expr $i + 1`
9848         teststring=$teststring$teststring
9849       done
9850       # Only check the string length outside the loop.
9851       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9852       teststring=
9853       # Add a significant safety factor because C++ compilers can tack on
9854       # massive amounts of additional arguments before passing them to the
9855       # linker.  It appears as though 1/2 is a usable value.
9856       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9857     fi
9858     ;;
9859   esac
9860
9861 fi
9862
9863 if test -n $lt_cv_sys_max_cmd_len ; then
9864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9865 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9866 else
9867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9868 $as_echo "none" >&6; }
9869 fi
9870 max_cmd_len=$lt_cv_sys_max_cmd_len
9871
9872
9873
9874
9875
9876
9877 : ${CP="cp -f"}
9878 : ${MV="mv -f"}
9879 : ${RM="rm -f"}
9880
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9882 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9883 # Try some XSI features
9884 xsi_shell=no
9885 ( _lt_dummy="a/b/c"
9886   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9887       = c,a/b,, \
9888     && eval 'test $(( 1 + 1 )) -eq 2 \
9889     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9890   && xsi_shell=yes
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9892 $as_echo "$xsi_shell" >&6; }
9893
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9896 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9897 lt_shell_append=no
9898 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9899     >/dev/null 2>&1 \
9900   && lt_shell_append=yes
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9902 $as_echo "$lt_shell_append" >&6; }
9903
9904
9905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9906   lt_unset=unset
9907 else
9908   lt_unset=false
9909 fi
9910
9911
9912
9913
9914
9915 # test EBCDIC or ASCII
9916 case `echo X|tr X '\101'` in
9917  A) # ASCII based system
9918     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9919   lt_SP2NL='tr \040 \012'
9920   lt_NL2SP='tr \015\012 \040\040'
9921   ;;
9922  *) # EBCDIC based system
9923   lt_SP2NL='tr \100 \n'
9924   lt_NL2SP='tr \r\n \100\100'
9925   ;;
9926 esac
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9937 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9938 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   lt_cv_ld_reload_flag='-r'
9942 fi
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9944 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9945 reload_flag=$lt_cv_ld_reload_flag
9946 case $reload_flag in
9947 "" | " "*) ;;
9948 *) reload_flag=" $reload_flag" ;;
9949 esac
9950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9951 case $host_os in
9952   darwin*)
9953     if test "$GCC" = yes; then
9954       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9955     else
9956       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9957     fi
9958     ;;
9959 esac
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 if test -n "$ac_tool_prefix"; then
9970   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 $as_echo_n "checking for $ac_word... " >&6; }
9974 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9975   $as_echo_n "(cached) " >&6
9976 else
9977   if test -n "$OBJDUMP"; then
9978   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9979 else
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9981 for as_dir in $PATH
9982 do
9983   IFS=$as_save_IFS
9984   test -z "$as_dir" && as_dir=.
9985     for ac_exec_ext in '' $ac_executable_extensions; do
9986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9989     break 2
9990   fi
9991 done
9992   done
9993 IFS=$as_save_IFS
9994
9995 fi
9996 fi
9997 OBJDUMP=$ac_cv_prog_OBJDUMP
9998 if test -n "$OBJDUMP"; then
9999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10000 $as_echo "$OBJDUMP" >&6; }
10001 else
10002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10004 fi
10005
10006
10007 fi
10008 if test -z "$ac_cv_prog_OBJDUMP"; then
10009   ac_ct_OBJDUMP=$OBJDUMP
10010   # Extract the first word of "objdump", so it can be a program name with args.
10011 set dummy objdump; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   if test -n "$ac_ct_OBJDUMP"; then
10018   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10019 else
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10022 do
10023   IFS=$as_save_IFS
10024   test -z "$as_dir" && as_dir=.
10025     for ac_exec_ext in '' $ac_executable_extensions; do
10026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10029     break 2
10030   fi
10031 done
10032   done
10033 IFS=$as_save_IFS
10034
10035 fi
10036 fi
10037 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10038 if test -n "$ac_ct_OBJDUMP"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10040 $as_echo "$ac_ct_OBJDUMP" >&6; }
10041 else
10042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10044 fi
10045
10046   if test "x$ac_ct_OBJDUMP" = x; then
10047     OBJDUMP="false"
10048   else
10049     case $cross_compiling:$ac_tool_warned in
10050 yes:)
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10053 ac_tool_warned=yes ;;
10054 esac
10055     OBJDUMP=$ac_ct_OBJDUMP
10056   fi
10057 else
10058   OBJDUMP="$ac_cv_prog_OBJDUMP"
10059 fi
10060
10061 test -z "$OBJDUMP" && OBJDUMP=objdump
10062
10063
10064
10065
10066
10067
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10069 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10070 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   lt_cv_file_magic_cmd='$MAGIC_CMD'
10074 lt_cv_file_magic_test_file=
10075 lt_cv_deplibs_check_method='unknown'
10076 # Need to set the preceding variable on all platforms that support
10077 # interlibrary dependencies.
10078 # 'none' -- dependencies not supported.
10079 # `unknown' -- same as none, but documents that we really don't know.
10080 # 'pass_all' -- all dependencies passed with no checks.
10081 # 'test_compile' -- check by making test program.
10082 # 'file_magic [[regex]]' -- check by looking for files in library path
10083 # which responds to the $file_magic_cmd with a given extended regex.
10084 # If you have `file' or equivalent on your system and you're not sure
10085 # whether `pass_all' will *always* work, you probably want this one.
10086
10087 case $host_os in
10088 aix[4-9]*)
10089   lt_cv_deplibs_check_method=pass_all
10090   ;;
10091
10092 beos*)
10093   lt_cv_deplibs_check_method=pass_all
10094   ;;
10095
10096 bsdi[45]*)
10097   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10098   lt_cv_file_magic_cmd='/usr/bin/file -L'
10099   lt_cv_file_magic_test_file=/shlib/libc.so
10100   ;;
10101
10102 cygwin*)
10103   # func_win32_libid is a shell function defined in ltmain.sh
10104   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10105   lt_cv_file_magic_cmd='func_win32_libid'
10106   ;;
10107
10108 mingw* | pw32*)
10109   # Base MSYS/MinGW do not provide the 'file' command needed by
10110   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10111   # unless we find 'file', for example because we are cross-compiling.
10112   if ( file / ) >/dev/null 2>&1; then
10113     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10114     lt_cv_file_magic_cmd='func_win32_libid'
10115   else
10116     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10117     lt_cv_file_magic_cmd='$OBJDUMP -f'
10118   fi
10119   ;;
10120
10121 cegcc)
10122   # use the weaker test based on 'objdump'. See mingw*.
10123   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10124   lt_cv_file_magic_cmd='$OBJDUMP -f'
10125   ;;
10126
10127 darwin* | rhapsody*)
10128   lt_cv_deplibs_check_method=pass_all
10129   ;;
10130
10131 freebsd* | dragonfly*)
10132   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10133     case $host_cpu in
10134     i*86 )
10135       # Not sure whether the presence of OpenBSD here was a mistake.
10136       # Let's accept both of them until this is cleared up.
10137       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10138       lt_cv_file_magic_cmd=/usr/bin/file
10139       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10140       ;;
10141     esac
10142   else
10143     lt_cv_deplibs_check_method=pass_all
10144   fi
10145   ;;
10146
10147 gnu*)
10148   lt_cv_deplibs_check_method=pass_all
10149   ;;
10150
10151 hpux10.20* | hpux11*)
10152   lt_cv_file_magic_cmd=/usr/bin/file
10153   case $host_cpu in
10154   ia64*)
10155     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10156     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10157     ;;
10158   hppa*64*)
10159     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]'
10160     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10161     ;;
10162   *)
10163     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10164     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10165     ;;
10166   esac
10167   ;;
10168
10169 interix[3-9]*)
10170   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10171   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10172   ;;
10173
10174 irix5* | irix6* | nonstopux*)
10175   case $LD in
10176   *-32|*"-32 ") libmagic=32-bit;;
10177   *-n32|*"-n32 ") libmagic=N32;;
10178   *-64|*"-64 ") libmagic=64-bit;;
10179   *) libmagic=never-match;;
10180   esac
10181   lt_cv_deplibs_check_method=pass_all
10182   ;;
10183
10184 # This must be Linux ELF.
10185 linux* | k*bsd*-gnu)
10186   lt_cv_deplibs_check_method=pass_all
10187   ;;
10188
10189 netbsd*)
10190   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10191     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10192   else
10193     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10194   fi
10195   ;;
10196
10197 newos6*)
10198   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10199   lt_cv_file_magic_cmd=/usr/bin/file
10200   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10201   ;;
10202
10203 *nto* | *qnx*)
10204   lt_cv_deplibs_check_method=pass_all
10205   ;;
10206
10207 openbsd*)
10208   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10210   else
10211     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10212   fi
10213   ;;
10214
10215 osf3* | osf4* | osf5*)
10216   lt_cv_deplibs_check_method=pass_all
10217   ;;
10218
10219 rdos*)
10220   lt_cv_deplibs_check_method=pass_all
10221   ;;
10222
10223 solaris*)
10224   lt_cv_deplibs_check_method=pass_all
10225   ;;
10226
10227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10228   lt_cv_deplibs_check_method=pass_all
10229   ;;
10230
10231 sysv4 | sysv4.3*)
10232   case $host_vendor in
10233   motorola)
10234     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]'
10235     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10236     ;;
10237   ncr)
10238     lt_cv_deplibs_check_method=pass_all
10239     ;;
10240   sequent)
10241     lt_cv_file_magic_cmd='/bin/file'
10242     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10243     ;;
10244   sni)
10245     lt_cv_file_magic_cmd='/bin/file'
10246     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10247     lt_cv_file_magic_test_file=/lib/libc.so
10248     ;;
10249   siemens)
10250     lt_cv_deplibs_check_method=pass_all
10251     ;;
10252   pc)
10253     lt_cv_deplibs_check_method=pass_all
10254     ;;
10255   esac
10256   ;;
10257
10258 tpf*)
10259   lt_cv_deplibs_check_method=pass_all
10260   ;;
10261 esac
10262
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10265 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10266 file_magic_cmd=$lt_cv_file_magic_cmd
10267 deplibs_check_method=$lt_cv_deplibs_check_method
10268 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281 if test -n "$ac_tool_prefix"; then
10282   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10283 set dummy ${ac_tool_prefix}ar; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_AR+set}" = set; then :
10287   $as_echo_n "(cached) " >&6
10288 else
10289   if test -n "$AR"; then
10290   ac_cv_prog_AR="$AR" # Let the user override the test.
10291 else
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10294 do
10295   IFS=$as_save_IFS
10296   test -z "$as_dir" && as_dir=.
10297     for ac_exec_ext in '' $ac_executable_extensions; do
10298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299     ac_cv_prog_AR="${ac_tool_prefix}ar"
10300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10301     break 2
10302   fi
10303 done
10304   done
10305 IFS=$as_save_IFS
10306
10307 fi
10308 fi
10309 AR=$ac_cv_prog_AR
10310 if test -n "$AR"; then
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10312 $as_echo "$AR" >&6; }
10313 else
10314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10316 fi
10317
10318
10319 fi
10320 if test -z "$ac_cv_prog_AR"; then
10321   ac_ct_AR=$AR
10322   # Extract the first word of "ar", so it can be a program name with args.
10323 set dummy ar; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10327   $as_echo_n "(cached) " >&6
10328 else
10329   if test -n "$ac_ct_AR"; then
10330   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10331 else
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10334 do
10335   IFS=$as_save_IFS
10336   test -z "$as_dir" && as_dir=.
10337     for ac_exec_ext in '' $ac_executable_extensions; do
10338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10339     ac_cv_prog_ac_ct_AR="ar"
10340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10341     break 2
10342   fi
10343 done
10344   done
10345 IFS=$as_save_IFS
10346
10347 fi
10348 fi
10349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10350 if test -n "$ac_ct_AR"; then
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10352 $as_echo "$ac_ct_AR" >&6; }
10353 else
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10356 fi
10357
10358   if test "x$ac_ct_AR" = x; then
10359     AR="false"
10360   else
10361     case $cross_compiling:$ac_tool_warned in
10362 yes:)
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10365 ac_tool_warned=yes ;;
10366 esac
10367     AR=$ac_ct_AR
10368   fi
10369 else
10370   AR="$ac_cv_prog_AR"
10371 fi
10372
10373 test -z "$AR" && AR=ar
10374 test -z "$AR_FLAGS" && AR_FLAGS=cru
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386 if test -n "$ac_tool_prefix"; then
10387   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10388 set dummy ${ac_tool_prefix}strip; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if test "${ac_cv_prog_STRIP+set}" = set; then :
10392   $as_echo_n "(cached) " >&6
10393 else
10394   if test -n "$STRIP"; then
10395   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10396 else
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10399 do
10400   IFS=$as_save_IFS
10401   test -z "$as_dir" && as_dir=.
10402     for ac_exec_ext in '' $ac_executable_extensions; do
10403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406     break 2
10407   fi
10408 done
10409   done
10410 IFS=$as_save_IFS
10411
10412 fi
10413 fi
10414 STRIP=$ac_cv_prog_STRIP
10415 if test -n "$STRIP"; then
10416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10417 $as_echo "$STRIP" >&6; }
10418 else
10419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10421 fi
10422
10423
10424 fi
10425 if test -z "$ac_cv_prog_STRIP"; then
10426   ac_ct_STRIP=$STRIP
10427   # Extract the first word of "strip", so it can be a program name with args.
10428 set dummy strip; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10432   $as_echo_n "(cached) " >&6
10433 else
10434   if test -n "$ac_ct_STRIP"; then
10435   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10436 else
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10439 do
10440   IFS=$as_save_IFS
10441   test -z "$as_dir" && as_dir=.
10442     for ac_exec_ext in '' $ac_executable_extensions; do
10443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444     ac_cv_prog_ac_ct_STRIP="strip"
10445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10446     break 2
10447   fi
10448 done
10449   done
10450 IFS=$as_save_IFS
10451
10452 fi
10453 fi
10454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10455 if test -n "$ac_ct_STRIP"; then
10456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10457 $as_echo "$ac_ct_STRIP" >&6; }
10458 else
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10461 fi
10462
10463   if test "x$ac_ct_STRIP" = x; then
10464     STRIP=":"
10465   else
10466     case $cross_compiling:$ac_tool_warned in
10467 yes:)
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470 ac_tool_warned=yes ;;
10471 esac
10472     STRIP=$ac_ct_STRIP
10473   fi
10474 else
10475   STRIP="$ac_cv_prog_STRIP"
10476 fi
10477
10478 test -z "$STRIP" && STRIP=:
10479
10480
10481
10482
10483
10484
10485 if test -n "$ac_tool_prefix"; then
10486   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10491   $as_echo_n "(cached) " >&6
10492 else
10493   if test -n "$RANLIB"; then
10494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10495 else
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10498 do
10499   IFS=$as_save_IFS
10500   test -z "$as_dir" && as_dir=.
10501     for ac_exec_ext in '' $ac_executable_extensions; do
10502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10505     break 2
10506   fi
10507 done
10508   done
10509 IFS=$as_save_IFS
10510
10511 fi
10512 fi
10513 RANLIB=$ac_cv_prog_RANLIB
10514 if test -n "$RANLIB"; then
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10516 $as_echo "$RANLIB" >&6; }
10517 else
10518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10520 fi
10521
10522
10523 fi
10524 if test -z "$ac_cv_prog_RANLIB"; then
10525   ac_ct_RANLIB=$RANLIB
10526   # Extract the first word of "ranlib", so it can be a program name with args.
10527 set dummy ranlib; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   if test -n "$ac_ct_RANLIB"; then
10534   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10535 else
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10538 do
10539   IFS=$as_save_IFS
10540   test -z "$as_dir" && as_dir=.
10541     for ac_exec_ext in '' $ac_executable_extensions; do
10542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10543     ac_cv_prog_ac_ct_RANLIB="ranlib"
10544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545     break 2
10546   fi
10547 done
10548   done
10549 IFS=$as_save_IFS
10550
10551 fi
10552 fi
10553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10554 if test -n "$ac_ct_RANLIB"; then
10555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10556 $as_echo "$ac_ct_RANLIB" >&6; }
10557 else
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10560 fi
10561
10562   if test "x$ac_ct_RANLIB" = x; then
10563     RANLIB=":"
10564   else
10565     case $cross_compiling:$ac_tool_warned in
10566 yes:)
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569 ac_tool_warned=yes ;;
10570 esac
10571     RANLIB=$ac_ct_RANLIB
10572   fi
10573 else
10574   RANLIB="$ac_cv_prog_RANLIB"
10575 fi
10576
10577 test -z "$RANLIB" && RANLIB=:
10578
10579
10580
10581
10582
10583
10584 # Determine commands to create old-style static archives.
10585 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10586 old_postinstall_cmds='chmod 644 $oldlib'
10587 old_postuninstall_cmds=
10588
10589 if test -n "$RANLIB"; then
10590   case $host_os in
10591   openbsd*)
10592     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10593     ;;
10594   *)
10595     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10596     ;;
10597   esac
10598   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10599 fi
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634 # If no C compiler was specified, use CC.
10635 LTCC=${LTCC-"$CC"}
10636
10637 # If no C compiler flags were specified, use CFLAGS.
10638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10639
10640 # Allow CC to be a program name with arguments.
10641 compiler=$CC
10642
10643
10644 # Check for command to grab the raw symbol name followed by C symbol from nm.
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10647 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10648   $as_echo_n "(cached) " >&6
10649 else
10650
10651 # These are sane defaults that work on at least a few old systems.
10652 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10653
10654 # Character class describing NM global symbol codes.
10655 symcode='[BCDEGRST]'
10656
10657 # Regexp to match symbols that can be accessed directly from C.
10658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10659
10660 # Define system-specific variables.
10661 case $host_os in
10662 aix*)
10663   symcode='[BCDT]'
10664   ;;
10665 cygwin* | mingw* | pw32* | cegcc*)
10666   symcode='[ABCDGISTW]'
10667   ;;
10668 hpux*)
10669   if test "$host_cpu" = ia64; then
10670     symcode='[ABCDEGRST]'
10671   fi
10672   ;;
10673 irix* | nonstopux*)
10674   symcode='[BCDEGRST]'
10675   ;;
10676 osf*)
10677   symcode='[BCDEGQRST]'
10678   ;;
10679 solaris*)
10680   symcode='[BDRT]'
10681   ;;
10682 sco3.2v5*)
10683   symcode='[DT]'
10684   ;;
10685 sysv4.2uw2*)
10686   symcode='[DT]'
10687   ;;
10688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10689   symcode='[ABDT]'
10690   ;;
10691 sysv4)
10692   symcode='[DFNSTU]'
10693   ;;
10694 esac
10695
10696 # If we're using GNU nm, then use its standard symbol codes.
10697 case `$NM -V 2>&1` in
10698 *GNU* | *'with BFD'*)
10699   symcode='[ABCDGIRSTW]' ;;
10700 esac
10701
10702 # Transform an extracted symbol line into a proper C declaration.
10703 # Some systems (esp. on ia64) link data and code symbols differently,
10704 # so use this general approach.
10705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10706
10707 # Transform an extracted symbol line into symbol name and symbol address
10708 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10709 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'"
10710
10711 # Handle CRLF in mingw tool chain
10712 opt_cr=
10713 case $build_os in
10714 mingw*)
10715   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10716   ;;
10717 esac
10718
10719 # Try without a prefix underscore, then with it.
10720 for ac_symprfx in "" "_"; do
10721
10722   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10723   symxfrm="\\1 $ac_symprfx\\2 \\2"
10724
10725   # Write the raw and C identifiers.
10726   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10727     # Fake it for dumpbin and say T for any non-static function
10728     # and D for any global variable.
10729     # Also find C++ and __fastcall symbols from MSVC++,
10730     # which start with @ or ?.
10731     lt_cv_sys_global_symbol_pipe="$AWK '"\
10732 "     {last_section=section; section=\$ 3};"\
10733 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10734 "     \$ 0!~/External *\|/{next};"\
10735 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10736 "     {if(hide[section]) next};"\
10737 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10738 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10739 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10740 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10741 "     ' prfx=^$ac_symprfx"
10742   else
10743     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10744   fi
10745
10746   # Check to see that the pipe works correctly.
10747   pipe_works=no
10748
10749   rm -f conftest*
10750   cat > conftest.$ac_ext <<_LT_EOF
10751 #ifdef __cplusplus
10752 extern "C" {
10753 #endif
10754 char nm_test_var;
10755 void nm_test_func(void);
10756 void nm_test_func(void){}
10757 #ifdef __cplusplus
10758 }
10759 #endif
10760 int main(){nm_test_var='a';nm_test_func();return(0);}
10761 _LT_EOF
10762
10763   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10764   (eval $ac_compile) 2>&5
10765   ac_status=$?
10766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767   test $ac_status = 0; }; then
10768     # Now try to grab the symbols.
10769     nlist=conftest.nm
10770     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10771   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10772   ac_status=$?
10773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774   test $ac_status = 0; } && test -s "$nlist"; then
10775       # Try sorting and uniquifying the output.
10776       if sort "$nlist" | uniq > "$nlist"T; then
10777         mv -f "$nlist"T "$nlist"
10778       else
10779         rm -f "$nlist"T
10780       fi
10781
10782       # Make sure that we snagged all the symbols we need.
10783       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10784         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10785           cat <<_LT_EOF > conftest.$ac_ext
10786 #ifdef __cplusplus
10787 extern "C" {
10788 #endif
10789
10790 _LT_EOF
10791           # Now generate the symbol file.
10792           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10793
10794           cat <<_LT_EOF >> conftest.$ac_ext
10795
10796 /* The mapping between symbol names and symbols.  */
10797 const struct {
10798   const char *name;
10799   void       *address;
10800 }
10801 lt__PROGRAM__LTX_preloaded_symbols[] =
10802 {
10803   { "@PROGRAM@", (void *) 0 },
10804 _LT_EOF
10805           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10806           cat <<\_LT_EOF >> conftest.$ac_ext
10807   {0, (void *) 0}
10808 };
10809
10810 /* This works around a problem in FreeBSD linker */
10811 #ifdef FREEBSD_WORKAROUND
10812 static const void *lt_preloaded_setup() {
10813   return lt__PROGRAM__LTX_preloaded_symbols;
10814 }
10815 #endif
10816
10817 #ifdef __cplusplus
10818 }
10819 #endif
10820 _LT_EOF
10821           # Now try linking the two files.
10822           mv conftest.$ac_objext conftstm.$ac_objext
10823           lt_save_LIBS="$LIBS"
10824           lt_save_CFLAGS="$CFLAGS"
10825           LIBS="conftstm.$ac_objext"
10826           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10827           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10828   (eval $ac_link) 2>&5
10829   ac_status=$?
10830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10832             pipe_works=yes
10833           fi
10834           LIBS="$lt_save_LIBS"
10835           CFLAGS="$lt_save_CFLAGS"
10836         else
10837           echo "cannot find nm_test_func in $nlist" >&5
10838         fi
10839       else
10840         echo "cannot find nm_test_var in $nlist" >&5
10841       fi
10842     else
10843       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10844     fi
10845   else
10846     echo "$progname: failed program was:" >&5
10847     cat conftest.$ac_ext >&5
10848   fi
10849   rm -rf conftest* conftst*
10850
10851   # Do not use the global_symbol_pipe unless it works.
10852   if test "$pipe_works" = yes; then
10853     break
10854   else
10855     lt_cv_sys_global_symbol_pipe=
10856   fi
10857 done
10858
10859 fi
10860
10861 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10862   lt_cv_sys_global_symbol_to_cdecl=
10863 fi
10864 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10866 $as_echo "failed" >&6; }
10867 else
10868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10869 $as_echo "ok" >&6; }
10870 fi
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893 # Check whether --enable-libtool-lock was given.
10894 if test "${enable_libtool_lock+set}" = set; then :
10895   enableval=$enable_libtool_lock;
10896 fi
10897
10898 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10899
10900 # Some flags need to be propagated to the compiler or linker for good
10901 # libtool support.
10902 case $host in
10903 ia64-*-hpux*)
10904   # Find out which ABI we are using.
10905   echo 'int i;' > conftest.$ac_ext
10906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10907   (eval $ac_compile) 2>&5
10908   ac_status=$?
10909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910   test $ac_status = 0; }; then
10911     case `/usr/bin/file conftest.$ac_objext` in
10912       *ELF-32*)
10913         HPUX_IA64_MODE="32"
10914         ;;
10915       *ELF-64*)
10916         HPUX_IA64_MODE="64"
10917         ;;
10918     esac
10919   fi
10920   rm -rf conftest*
10921   ;;
10922 *-*-irix6*)
10923   # Find out which ABI we are using.
10924   echo '#line 10924 "configure"' > conftest.$ac_ext
10925   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10926   (eval $ac_compile) 2>&5
10927   ac_status=$?
10928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929   test $ac_status = 0; }; then
10930     if test "$lt_cv_prog_gnu_ld" = yes; then
10931       case `/usr/bin/file conftest.$ac_objext` in
10932         *32-bit*)
10933           LD="${LD-ld} -melf32bsmip"
10934           ;;
10935         *N32*)
10936           LD="${LD-ld} -melf32bmipn32"
10937           ;;
10938         *64-bit*)
10939           LD="${LD-ld} -melf64bmip"
10940         ;;
10941       esac
10942     else
10943       case `/usr/bin/file conftest.$ac_objext` in
10944         *32-bit*)
10945           LD="${LD-ld} -32"
10946           ;;
10947         *N32*)
10948           LD="${LD-ld} -n32"
10949           ;;
10950         *64-bit*)
10951           LD="${LD-ld} -64"
10952           ;;
10953       esac
10954     fi
10955   fi
10956   rm -rf conftest*
10957   ;;
10958
10959 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10960 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10961   # Find out which ABI we are using.
10962   echo 'int i;' > conftest.$ac_ext
10963   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10964   (eval $ac_compile) 2>&5
10965   ac_status=$?
10966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967   test $ac_status = 0; }; then
10968     case `/usr/bin/file conftest.o` in
10969       *32-bit*)
10970         case $host in
10971           x86_64-*kfreebsd*-gnu)
10972             LD="${LD-ld} -m elf_i386_fbsd"
10973             ;;
10974           x86_64-*linux*)
10975             LD="${LD-ld} -m elf_i386"
10976             ;;
10977           ppc64-*linux*|powerpc64-*linux*)
10978             LD="${LD-ld} -m elf32ppclinux"
10979             ;;
10980           s390x-*linux*)
10981             LD="${LD-ld} -m elf_s390"
10982             ;;
10983           sparc64-*linux*)
10984             LD="${LD-ld} -m elf32_sparc"
10985             ;;
10986         esac
10987         ;;
10988       *64-bit*)
10989         case $host in
10990           x86_64-*kfreebsd*-gnu)
10991             LD="${LD-ld} -m elf_x86_64_fbsd"
10992             ;;
10993           x86_64-*linux*)
10994             LD="${LD-ld} -m elf_x86_64"
10995             ;;
10996           ppc*-*linux*|powerpc*-*linux*)
10997             LD="${LD-ld} -m elf64ppc"
10998             ;;
10999           s390*-*linux*|s390*-*tpf*)
11000             LD="${LD-ld} -m elf64_s390"
11001             ;;
11002           sparc*-*linux*)
11003             LD="${LD-ld} -m elf64_sparc"
11004             ;;
11005         esac
11006         ;;
11007     esac
11008   fi
11009   rm -rf conftest*
11010   ;;
11011
11012 *-*-sco3.2v5*)
11013   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11014   SAVE_CFLAGS="$CFLAGS"
11015   CFLAGS="$CFLAGS -belf"
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11017 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11018 if test "${lt_cv_cc_needs_belf+set}" = set; then :
11019   $as_echo_n "(cached) " >&6
11020 else
11021   ac_ext=c
11022 ac_cpp='$CPP $CPPFLAGS'
11023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11026
11027      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h.  */
11029
11030 int
11031 main ()
11032 {
11033
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039   lt_cv_cc_needs_belf=yes
11040 else
11041   lt_cv_cc_needs_belf=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext \
11044     conftest$ac_exeext conftest.$ac_ext
11045      ac_ext=c
11046 ac_cpp='$CPP $CPPFLAGS'
11047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11050
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11053 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11054   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11055     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11056     CFLAGS="$SAVE_CFLAGS"
11057   fi
11058   ;;
11059 sparc*-*solaris*)
11060   # Find out which ABI we are using.
11061   echo 'int i;' > conftest.$ac_ext
11062   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063   (eval $ac_compile) 2>&5
11064   ac_status=$?
11065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066   test $ac_status = 0; }; then
11067     case `/usr/bin/file conftest.o` in
11068     *64-bit*)
11069       case $lt_cv_prog_gnu_ld in
11070       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11071       *)
11072         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11073           LD="${LD-ld} -64"
11074         fi
11075         ;;
11076       esac
11077       ;;
11078     esac
11079   fi
11080   rm -rf conftest*
11081   ;;
11082 esac
11083
11084 need_locks="$enable_libtool_lock"
11085
11086
11087   case $host_os in
11088     rhapsody* | darwin*)
11089     if test -n "$ac_tool_prefix"; then
11090   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11091 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11095   $as_echo_n "(cached) " >&6
11096 else
11097   if test -n "$DSYMUTIL"; then
11098   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11099 else
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11102 do
11103   IFS=$as_save_IFS
11104   test -z "$as_dir" && as_dir=.
11105     for ac_exec_ext in '' $ac_executable_extensions; do
11106   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11109     break 2
11110   fi
11111 done
11112   done
11113 IFS=$as_save_IFS
11114
11115 fi
11116 fi
11117 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11118 if test -n "$DSYMUTIL"; then
11119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11120 $as_echo "$DSYMUTIL" >&6; }
11121 else
11122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11124 fi
11125
11126
11127 fi
11128 if test -z "$ac_cv_prog_DSYMUTIL"; then
11129   ac_ct_DSYMUTIL=$DSYMUTIL
11130   # Extract the first word of "dsymutil", so it can be a program name with args.
11131 set dummy dsymutil; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   if test -n "$ac_ct_DSYMUTIL"; then
11138   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11139 else
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11142 do
11143   IFS=$as_save_IFS
11144   test -z "$as_dir" && as_dir=.
11145     for ac_exec_ext in '' $ac_executable_extensions; do
11146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11149     break 2
11150   fi
11151 done
11152   done
11153 IFS=$as_save_IFS
11154
11155 fi
11156 fi
11157 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11158 if test -n "$ac_ct_DSYMUTIL"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11160 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165
11166   if test "x$ac_ct_DSYMUTIL" = x; then
11167     DSYMUTIL=":"
11168   else
11169     case $cross_compiling:$ac_tool_warned in
11170 yes:)
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11173 ac_tool_warned=yes ;;
11174 esac
11175     DSYMUTIL=$ac_ct_DSYMUTIL
11176   fi
11177 else
11178   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11179 fi
11180
11181     if test -n "$ac_tool_prefix"; then
11182   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11183 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11187   $as_echo_n "(cached) " >&6
11188 else
11189   if test -n "$NMEDIT"; then
11190   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197     for ac_exec_ext in '' $ac_executable_extensions; do
11198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201     break 2
11202   fi
11203 done
11204   done
11205 IFS=$as_save_IFS
11206
11207 fi
11208 fi
11209 NMEDIT=$ac_cv_prog_NMEDIT
11210 if test -n "$NMEDIT"; then
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11212 $as_echo "$NMEDIT" >&6; }
11213 else
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11216 fi
11217
11218
11219 fi
11220 if test -z "$ac_cv_prog_NMEDIT"; then
11221   ac_ct_NMEDIT=$NMEDIT
11222   # Extract the first word of "nmedit", so it can be a program name with args.
11223 set dummy nmedit; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   if test -n "$ac_ct_NMEDIT"; then
11230   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11231 else
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11234 do
11235   IFS=$as_save_IFS
11236   test -z "$as_dir" && as_dir=.
11237     for ac_exec_ext in '' $ac_executable_extensions; do
11238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11241     break 2
11242   fi
11243 done
11244   done
11245 IFS=$as_save_IFS
11246
11247 fi
11248 fi
11249 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11250 if test -n "$ac_ct_NMEDIT"; then
11251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11252 $as_echo "$ac_ct_NMEDIT" >&6; }
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11256 fi
11257
11258   if test "x$ac_ct_NMEDIT" = x; then
11259     NMEDIT=":"
11260   else
11261     case $cross_compiling:$ac_tool_warned in
11262 yes:)
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265 ac_tool_warned=yes ;;
11266 esac
11267     NMEDIT=$ac_ct_NMEDIT
11268   fi
11269 else
11270   NMEDIT="$ac_cv_prog_NMEDIT"
11271 fi
11272
11273     if test -n "$ac_tool_prefix"; then
11274   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11275 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if test "${ac_cv_prog_LIPO+set}" = set; then :
11279   $as_echo_n "(cached) " >&6
11280 else
11281   if test -n "$LIPO"; then
11282   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11283 else
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11286 do
11287   IFS=$as_save_IFS
11288   test -z "$as_dir" && as_dir=.
11289     for ac_exec_ext in '' $ac_executable_extensions; do
11290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11293     break 2
11294   fi
11295 done
11296   done
11297 IFS=$as_save_IFS
11298
11299 fi
11300 fi
11301 LIPO=$ac_cv_prog_LIPO
11302 if test -n "$LIPO"; then
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11304 $as_echo "$LIPO" >&6; }
11305 else
11306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11308 fi
11309
11310
11311 fi
11312 if test -z "$ac_cv_prog_LIPO"; then
11313   ac_ct_LIPO=$LIPO
11314   # Extract the first word of "lipo", so it can be a program name with args.
11315 set dummy lipo; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11319   $as_echo_n "(cached) " >&6
11320 else
11321   if test -n "$ac_ct_LIPO"; then
11322   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11323 else
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11326 do
11327   IFS=$as_save_IFS
11328   test -z "$as_dir" && as_dir=.
11329     for ac_exec_ext in '' $ac_executable_extensions; do
11330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331     ac_cv_prog_ac_ct_LIPO="lipo"
11332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333     break 2
11334   fi
11335 done
11336   done
11337 IFS=$as_save_IFS
11338
11339 fi
11340 fi
11341 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11342 if test -n "$ac_ct_LIPO"; then
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11344 $as_echo "$ac_ct_LIPO" >&6; }
11345 else
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11348 fi
11349
11350   if test "x$ac_ct_LIPO" = x; then
11351     LIPO=":"
11352   else
11353     case $cross_compiling:$ac_tool_warned in
11354 yes:)
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11357 ac_tool_warned=yes ;;
11358 esac
11359     LIPO=$ac_ct_LIPO
11360   fi
11361 else
11362   LIPO="$ac_cv_prog_LIPO"
11363 fi
11364
11365     if test -n "$ac_tool_prefix"; then
11366   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11367 set dummy ${ac_tool_prefix}otool; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11371   $as_echo_n "(cached) " >&6
11372 else
11373   if test -n "$OTOOL"; then
11374   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379   IFS=$as_save_IFS
11380   test -z "$as_dir" && as_dir=.
11381     for ac_exec_ext in '' $ac_executable_extensions; do
11382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385     break 2
11386   fi
11387 done
11388   done
11389 IFS=$as_save_IFS
11390
11391 fi
11392 fi
11393 OTOOL=$ac_cv_prog_OTOOL
11394 if test -n "$OTOOL"; then
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11396 $as_echo "$OTOOL" >&6; }
11397 else
11398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11400 fi
11401
11402
11403 fi
11404 if test -z "$ac_cv_prog_OTOOL"; then
11405   ac_ct_OTOOL=$OTOOL
11406   # Extract the first word of "otool", so it can be a program name with args.
11407 set dummy otool; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11411   $as_echo_n "(cached) " >&6
11412 else
11413   if test -n "$ac_ct_OTOOL"; then
11414   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11415 else
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11418 do
11419   IFS=$as_save_IFS
11420   test -z "$as_dir" && as_dir=.
11421     for ac_exec_ext in '' $ac_executable_extensions; do
11422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11423     ac_cv_prog_ac_ct_OTOOL="otool"
11424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11425     break 2
11426   fi
11427 done
11428   done
11429 IFS=$as_save_IFS
11430
11431 fi
11432 fi
11433 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11434 if test -n "$ac_ct_OTOOL"; then
11435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11436 $as_echo "$ac_ct_OTOOL" >&6; }
11437 else
11438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11440 fi
11441
11442   if test "x$ac_ct_OTOOL" = x; then
11443     OTOOL=":"
11444   else
11445     case $cross_compiling:$ac_tool_warned in
11446 yes:)
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11449 ac_tool_warned=yes ;;
11450 esac
11451     OTOOL=$ac_ct_OTOOL
11452   fi
11453 else
11454   OTOOL="$ac_cv_prog_OTOOL"
11455 fi
11456
11457     if test -n "$ac_tool_prefix"; then
11458   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11459 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11463   $as_echo_n "(cached) " >&6
11464 else
11465   if test -n "$OTOOL64"; then
11466   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11467 else
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11470 do
11471   IFS=$as_save_IFS
11472   test -z "$as_dir" && as_dir=.
11473     for ac_exec_ext in '' $ac_executable_extensions; do
11474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11477     break 2
11478   fi
11479 done
11480   done
11481 IFS=$as_save_IFS
11482
11483 fi
11484 fi
11485 OTOOL64=$ac_cv_prog_OTOOL64
11486 if test -n "$OTOOL64"; then
11487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11488 $as_echo "$OTOOL64" >&6; }
11489 else
11490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11492 fi
11493
11494
11495 fi
11496 if test -z "$ac_cv_prog_OTOOL64"; then
11497   ac_ct_OTOOL64=$OTOOL64
11498   # Extract the first word of "otool64", so it can be a program name with args.
11499 set dummy otool64; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11503   $as_echo_n "(cached) " >&6
11504 else
11505   if test -n "$ac_ct_OTOOL64"; then
11506   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11507 else
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11510 do
11511   IFS=$as_save_IFS
11512   test -z "$as_dir" && as_dir=.
11513     for ac_exec_ext in '' $ac_executable_extensions; do
11514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515     ac_cv_prog_ac_ct_OTOOL64="otool64"
11516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11517     break 2
11518   fi
11519 done
11520   done
11521 IFS=$as_save_IFS
11522
11523 fi
11524 fi
11525 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11526 if test -n "$ac_ct_OTOOL64"; then
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11528 $as_echo "$ac_ct_OTOOL64" >&6; }
11529 else
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 fi
11533
11534   if test "x$ac_ct_OTOOL64" = x; then
11535     OTOOL64=":"
11536   else
11537     case $cross_compiling:$ac_tool_warned in
11538 yes:)
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11541 ac_tool_warned=yes ;;
11542 esac
11543     OTOOL64=$ac_ct_OTOOL64
11544   fi
11545 else
11546   OTOOL64="$ac_cv_prog_OTOOL64"
11547 fi
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11576 $as_echo_n "checking for -single_module linker flag... " >&6; }
11577 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11578   $as_echo_n "(cached) " >&6
11579 else
11580   lt_cv_apple_cc_single_mod=no
11581       if test -z "${LT_MULTI_MODULE}"; then
11582         # By default we will add the -single_module flag. You can override
11583         # by either setting the environment variable LT_MULTI_MODULE
11584         # non-empty at configure time, or by adding -multi_module to the
11585         # link flags.
11586         rm -rf libconftest.dylib*
11587         echo "int foo(void){return 1;}" > conftest.c
11588         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11589 -dynamiclib -Wl,-single_module conftest.c" >&5
11590         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11591           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11592         _lt_result=$?
11593         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11594           lt_cv_apple_cc_single_mod=yes
11595         else
11596           cat conftest.err >&5
11597         fi
11598         rm -rf libconftest.dylib*
11599         rm -f conftest.*
11600       fi
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11603 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11605 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11606 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   lt_cv_ld_exported_symbols_list=no
11610       save_LDFLAGS=$LDFLAGS
11611       echo "_main" > conftest.sym
11612       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11613       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h.  */
11615
11616 int
11617 main ()
11618 {
11619
11620   ;
11621   return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"; then :
11625   lt_cv_ld_exported_symbols_list=yes
11626 else
11627   lt_cv_ld_exported_symbols_list=no
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext \
11630     conftest$ac_exeext conftest.$ac_ext
11631         LDFLAGS="$save_LDFLAGS"
11632
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11635 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11636     case $host_os in
11637     rhapsody* | darwin1.[012])
11638       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11639     darwin1.*)
11640       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11641     darwin*) # darwin 5.x on
11642       # if running on 10.5 or later, the deployment target defaults
11643       # to the OS version, if on x86, and 10.4, the deployment
11644       # target defaults to 10.4. Don't you love it?
11645       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11646         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11647           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11648         10.[012]*)
11649           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11650         10.*)
11651           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652       esac
11653     ;;
11654   esac
11655     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11656       _lt_dar_single_mod='$single_module'
11657     fi
11658     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11659       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11660     else
11661       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11662     fi
11663     if test "$DSYMUTIL" != ":"; then
11664       _lt_dsymutil='~$DSYMUTIL $lib || :'
11665     else
11666       _lt_dsymutil=
11667     fi
11668     ;;
11669   esac
11670
11671 for ac_header in dlfcn.h
11672 do :
11673   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11674 "
11675 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11676   cat >>confdefs.h <<_ACEOF
11677 #define HAVE_DLFCN_H 1
11678 _ACEOF
11679
11680 fi
11681
11682 done
11683
11684
11685
11686 ac_ext=cpp
11687 ac_cpp='$CXXCPP $CPPFLAGS'
11688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11691 if test -z "$CXX"; then
11692   if test -n "$CCC"; then
11693     CXX=$CCC
11694   else
11695     if test -n "$ac_tool_prefix"; then
11696   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11697   do
11698     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11699 set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then :
11703   $as_echo_n "(cached) " >&6
11704 else
11705   if test -n "$CXX"; then
11706   ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
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 CXX=$ac_cv_prog_CXX
11726 if test -n "$CXX"; then
11727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11728 $as_echo "$CXX" >&6; }
11729 else
11730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11732 fi
11733
11734
11735     test -n "$CXX" && break
11736   done
11737 fi
11738 if test -z "$CXX"; then
11739   ac_ct_CXX=$CXX
11740   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11741 do
11742   # Extract the first word of "$ac_prog", so it can be a program name with args.
11743 set dummy $ac_prog; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   if test -n "$ac_ct_CXX"; then
11750   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11751 else
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11754 do
11755   IFS=$as_save_IFS
11756   test -z "$as_dir" && as_dir=.
11757     for ac_exec_ext in '' $ac_executable_extensions; do
11758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759     ac_cv_prog_ac_ct_CXX="$ac_prog"
11760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11761     break 2
11762   fi
11763 done
11764   done
11765 IFS=$as_save_IFS
11766
11767 fi
11768 fi
11769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11770 if test -n "$ac_ct_CXX"; then
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11772 $as_echo "$ac_ct_CXX" >&6; }
11773 else
11774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11776 fi
11777
11778
11779   test -n "$ac_ct_CXX" && break
11780 done
11781
11782   if test "x$ac_ct_CXX" = x; then
11783     CXX="g++"
11784   else
11785     case $cross_compiling:$ac_tool_warned in
11786 yes:)
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11789 ac_tool_warned=yes ;;
11790 esac
11791     CXX=$ac_ct_CXX
11792   fi
11793 fi
11794
11795   fi
11796 fi
11797 # Provide some information about the compiler.
11798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11799 set X $ac_compile
11800 ac_compiler=$2
11801 for ac_option in --version -v -V -qversion; do
11802   { { ac_try="$ac_compiler $ac_option >&5"
11803 case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11808 $as_echo "$ac_try_echo"; } >&5
11809   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11810   ac_status=$?
11811   if test -s conftest.err; then
11812     sed '10a\
11813 ... rest of stderr output deleted ...
11814          10q' conftest.err >conftest.er1
11815     cat conftest.er1 >&5
11816   fi
11817   rm -f conftest.er1 conftest.err
11818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819   test $ac_status = 0; }
11820 done
11821
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11823 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11824 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h.  */
11829
11830 int
11831 main ()
11832 {
11833 #ifndef __GNUC__
11834        choke me
11835 #endif
11836
11837   ;
11838   return 0;
11839 }
11840 _ACEOF
11841 if ac_fn_cxx_try_compile "$LINENO"; then :
11842   ac_compiler_gnu=yes
11843 else
11844   ac_compiler_gnu=no
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11848
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11851 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11852 if test $ac_compiler_gnu = yes; then
11853   GXX=yes
11854 else
11855   GXX=
11856 fi
11857 ac_test_CXXFLAGS=${CXXFLAGS+set}
11858 ac_save_CXXFLAGS=$CXXFLAGS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11860 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11861 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11865    ac_cxx_werror_flag=yes
11866    ac_cv_prog_cxx_g=no
11867    CXXFLAGS="-g"
11868    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870
11871 int
11872 main ()
11873 {
11874
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 if ac_fn_cxx_try_compile "$LINENO"; then :
11880   ac_cv_prog_cxx_g=yes
11881 else
11882   CXXFLAGS=""
11883       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h.  */
11885
11886 int
11887 main ()
11888 {
11889
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 if ac_fn_cxx_try_compile "$LINENO"; then :
11895
11896 else
11897   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11898          CXXFLAGS="-g"
11899          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h.  */
11901
11902 int
11903 main ()
11904 {
11905
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_cxx_try_compile "$LINENO"; then :
11911   ac_cv_prog_cxx_g=yes
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11921 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11922 if test "$ac_test_CXXFLAGS" = set; then
11923   CXXFLAGS=$ac_save_CXXFLAGS
11924 elif test $ac_cv_prog_cxx_g = yes; then
11925   if test "$GXX" = yes; then
11926     CXXFLAGS="-g -O2"
11927   else
11928     CXXFLAGS="-g"
11929   fi
11930 else
11931   if test "$GXX" = yes; then
11932     CXXFLAGS="-O2"
11933   else
11934     CXXFLAGS=
11935   fi
11936 fi
11937 ac_ext=c
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11942
11943 depcc="$CXX"  am_compiler_list=
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11946 $as_echo_n "checking dependency style of $depcc... " >&6; }
11947 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11948   $as_echo_n "(cached) " >&6
11949 else
11950   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11951   # We make a subdir and do the tests there.  Otherwise we can end up
11952   # making bogus files that we don't know about and never remove.  For
11953   # instance it was reported that on HP-UX the gcc test will end up
11954   # making a dummy file named `D' -- because `-MD' means `put the output
11955   # in D'.
11956   mkdir conftest.dir
11957   # Copy depcomp to subdir because otherwise we won't find it if we're
11958   # using a relative directory.
11959   cp "$am_depcomp" conftest.dir
11960   cd conftest.dir
11961   # We will build objects and dependencies in a subdirectory because
11962   # it helps to detect inapplicable dependency modes.  For instance
11963   # both Tru64's cc and ICC support -MD to output dependencies as a
11964   # side effect of compilation, but ICC will put the dependencies in
11965   # the current directory while Tru64 will put them in the object
11966   # directory.
11967   mkdir sub
11968
11969   am_cv_CXX_dependencies_compiler_type=none
11970   if test "$am_compiler_list" = ""; then
11971      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11972   fi
11973   am__universal=false
11974   case " $depcc " in #(
11975      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11976      esac
11977
11978   for depmode in $am_compiler_list; do
11979     # Setup a source with many dependencies, because some compilers
11980     # like to wrap large dependency lists on column 80 (with \), and
11981     # we should not choose a depcomp mode which is confused by this.
11982     #
11983     # We need to recreate these files for each test, as the compiler may
11984     # overwrite some of them when testing with obscure command lines.
11985     # This happens at least with the AIX C compiler.
11986     : > sub/conftest.c
11987     for i in 1 2 3 4 5 6; do
11988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11989       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11990       # Solaris 8's {/usr,}/bin/sh.
11991       touch sub/conftst$i.h
11992     done
11993     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11994
11995     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11996     # mode.  It turns out that the SunPro C++ compiler does not properly
11997     # handle `-M -o', and we need to detect this.  Also, some Intel
11998     # versions had trouble with output in subdirs
11999     am__obj=sub/conftest.${OBJEXT-o}
12000     am__minus_obj="-o $am__obj"
12001     case $depmode in
12002     gcc)
12003       # This depmode causes a compiler race in universal mode.
12004       test "$am__universal" = false || continue
12005       ;;
12006     nosideeffect)
12007       # after this tag, mechanisms are not by side-effect, so they'll
12008       # only be used when explicitly requested
12009       if test "x$enable_dependency_tracking" = xyes; then
12010         continue
12011       else
12012         break
12013       fi
12014       ;;
12015     msvisualcpp | msvcmsys)
12016       # This compiler won't grok `-c -o', but also, the minuso test has
12017       # not run yet.  These depmodes are late enough in the game, and
12018       # so weak that their functioning should not be impacted.
12019       am__obj=conftest.${OBJEXT-o}
12020       am__minus_obj=
12021       ;;
12022     none) break ;;
12023     esac
12024     if depmode=$depmode \
12025        source=sub/conftest.c object=$am__obj \
12026        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12027        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12028          >/dev/null 2>conftest.err &&
12029        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12030        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12031        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12032        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12033       # icc doesn't choke on unknown options, it will just issue warnings
12034       # or remarks (even with -Werror).  So we grep stderr for any message
12035       # that says an option was ignored or not supported.
12036       # When given -MP, icc 7.0 and 7.1 complain thusly:
12037       #   icc: Command line warning: ignoring option '-M'; no argument required
12038       # The diagnosis changed in icc 8.0:
12039       #   icc: Command line remark: option '-MP' not supported
12040       if (grep 'ignoring option' conftest.err ||
12041           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12042         am_cv_CXX_dependencies_compiler_type=$depmode
12043         break
12044       fi
12045     fi
12046   done
12047
12048   cd ..
12049   rm -rf conftest.dir
12050 else
12051   am_cv_CXX_dependencies_compiler_type=none
12052 fi
12053
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12056 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12057 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12058
12059  if
12060   test "x$enable_dependency_tracking" != xno \
12061   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12062   am__fastdepCXX_TRUE=
12063   am__fastdepCXX_FALSE='#'
12064 else
12065   am__fastdepCXX_TRUE='#'
12066   am__fastdepCXX_FALSE=
12067 fi
12068
12069
12070 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12071     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12072     (test "X$CXX" != "Xg++"))) ; then
12073   ac_ext=cpp
12074 ac_cpp='$CXXCPP $CPPFLAGS'
12075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12079 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12080 if test -z "$CXXCPP"; then
12081   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12082   $as_echo_n "(cached) " >&6
12083 else
12084       # Double quotes because CXXCPP needs to be expanded
12085     for CXXCPP in "$CXX -E" "/lib/cpp"
12086     do
12087       ac_preproc_ok=false
12088 for ac_cxx_preproc_warn_flag in '' yes
12089 do
12090   # Use a header file that comes with gcc, so configuring glibc
12091   # with a fresh cross-compiler works.
12092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093   # <limits.h> exists even on freestanding compilers.
12094   # On the NeXT, cc -E runs the code through the compiler's parser,
12095   # not just through cpp. "Syntax error" is here to catch this case.
12096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h.  */
12098 #ifdef __STDC__
12099 # include <limits.h>
12100 #else
12101 # include <assert.h>
12102 #endif
12103                      Syntax error
12104 _ACEOF
12105 if ac_fn_cxx_try_cpp "$LINENO"; then :
12106
12107 else
12108   # Broken: fails on valid input.
12109 continue
12110 fi
12111 rm -f conftest.err conftest.$ac_ext
12112
12113   # OK, works on sane cases.  Now check whether nonexistent headers
12114   # can be detected and how.
12115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h.  */
12117 #include <ac_nonexistent.h>
12118 _ACEOF
12119 if ac_fn_cxx_try_cpp "$LINENO"; then :
12120   # Broken: success on invalid input.
12121 continue
12122 else
12123   # Passes both tests.
12124 ac_preproc_ok=:
12125 break
12126 fi
12127 rm -f conftest.err conftest.$ac_ext
12128
12129 done
12130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12131 rm -f conftest.err conftest.$ac_ext
12132 if $ac_preproc_ok; then :
12133   break
12134 fi
12135
12136     done
12137     ac_cv_prog_CXXCPP=$CXXCPP
12138
12139 fi
12140   CXXCPP=$ac_cv_prog_CXXCPP
12141 else
12142   ac_cv_prog_CXXCPP=$CXXCPP
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12145 $as_echo "$CXXCPP" >&6; }
12146 ac_preproc_ok=false
12147 for ac_cxx_preproc_warn_flag in '' yes
12148 do
12149   # Use a header file that comes with gcc, so configuring glibc
12150   # with a fresh cross-compiler works.
12151   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152   # <limits.h> exists even on freestanding compilers.
12153   # On the NeXT, cc -E runs the code through the compiler's parser,
12154   # not just through cpp. "Syntax error" is here to catch this case.
12155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h.  */
12157 #ifdef __STDC__
12158 # include <limits.h>
12159 #else
12160 # include <assert.h>
12161 #endif
12162                      Syntax error
12163 _ACEOF
12164 if ac_fn_cxx_try_cpp "$LINENO"; then :
12165
12166 else
12167   # Broken: fails on valid input.
12168 continue
12169 fi
12170 rm -f conftest.err conftest.$ac_ext
12171
12172   # OK, works on sane cases.  Now check whether nonexistent headers
12173   # can be detected and how.
12174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176 #include <ac_nonexistent.h>
12177 _ACEOF
12178 if ac_fn_cxx_try_cpp "$LINENO"; then :
12179   # Broken: success on invalid input.
12180 continue
12181 else
12182   # Passes both tests.
12183 ac_preproc_ok=:
12184 break
12185 fi
12186 rm -f conftest.err conftest.$ac_ext
12187
12188 done
12189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12190 rm -f conftest.err conftest.$ac_ext
12191 if $ac_preproc_ok; then :
12192
12193 else
12194   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12196 _lt_caught_CXX_error=yes; }
12197 fi
12198
12199 ac_ext=c
12200 ac_cpp='$CPP $CPPFLAGS'
12201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12204
12205 else
12206   _lt_caught_CXX_error=yes
12207 fi
12208
12209
12210
12211
12212
12213 # Set options
12214 enable_win32_dll=yes
12215
12216 case $host in
12217 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12218   if test -n "$ac_tool_prefix"; then
12219   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12220 set dummy ${ac_tool_prefix}as; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_AS+set}" = set; then :
12224   $as_echo_n "(cached) " >&6
12225 else
12226   if test -n "$AS"; then
12227   ac_cv_prog_AS="$AS" # Let the user override the test.
12228 else
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12231 do
12232   IFS=$as_save_IFS
12233   test -z "$as_dir" && as_dir=.
12234     for ac_exec_ext in '' $ac_executable_extensions; do
12235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236     ac_cv_prog_AS="${ac_tool_prefix}as"
12237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12238     break 2
12239   fi
12240 done
12241   done
12242 IFS=$as_save_IFS
12243
12244 fi
12245 fi
12246 AS=$ac_cv_prog_AS
12247 if test -n "$AS"; then
12248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12249 $as_echo "$AS" >&6; }
12250 else
12251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12253 fi
12254
12255
12256 fi
12257 if test -z "$ac_cv_prog_AS"; then
12258   ac_ct_AS=$AS
12259   # Extract the first word of "as", so it can be a program name with args.
12260 set dummy as; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12264   $as_echo_n "(cached) " >&6
12265 else
12266   if test -n "$ac_ct_AS"; then
12267   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12268 else
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12271 do
12272   IFS=$as_save_IFS
12273   test -z "$as_dir" && as_dir=.
12274     for ac_exec_ext in '' $ac_executable_extensions; do
12275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276     ac_cv_prog_ac_ct_AS="as"
12277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12278     break 2
12279   fi
12280 done
12281   done
12282 IFS=$as_save_IFS
12283
12284 fi
12285 fi
12286 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12287 if test -n "$ac_ct_AS"; then
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12289 $as_echo "$ac_ct_AS" >&6; }
12290 else
12291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12293 fi
12294
12295   if test "x$ac_ct_AS" = x; then
12296     AS="false"
12297   else
12298     case $cross_compiling:$ac_tool_warned in
12299 yes:)
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302 ac_tool_warned=yes ;;
12303 esac
12304     AS=$ac_ct_AS
12305   fi
12306 else
12307   AS="$ac_cv_prog_AS"
12308 fi
12309
12310   if test -n "$ac_tool_prefix"; then
12311   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12312 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12316   $as_echo_n "(cached) " >&6
12317 else
12318   if test -n "$DLLTOOL"; then
12319   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12320 else
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12323 do
12324   IFS=$as_save_IFS
12325   test -z "$as_dir" && as_dir=.
12326     for ac_exec_ext in '' $ac_executable_extensions; do
12327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330     break 2
12331   fi
12332 done
12333   done
12334 IFS=$as_save_IFS
12335
12336 fi
12337 fi
12338 DLLTOOL=$ac_cv_prog_DLLTOOL
12339 if test -n "$DLLTOOL"; then
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12341 $as_echo "$DLLTOOL" >&6; }
12342 else
12343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12345 fi
12346
12347
12348 fi
12349 if test -z "$ac_cv_prog_DLLTOOL"; then
12350   ac_ct_DLLTOOL=$DLLTOOL
12351   # Extract the first word of "dlltool", so it can be a program name with args.
12352 set dummy dlltool; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358   if test -n "$ac_ct_DLLTOOL"; then
12359   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366     for ac_exec_ext in '' $ac_executable_extensions; do
12367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370     break 2
12371   fi
12372 done
12373   done
12374 IFS=$as_save_IFS
12375
12376 fi
12377 fi
12378 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12379 if test -n "$ac_ct_DLLTOOL"; then
12380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12381 $as_echo "$ac_ct_DLLTOOL" >&6; }
12382 else
12383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12385 fi
12386
12387   if test "x$ac_ct_DLLTOOL" = x; then
12388     DLLTOOL="false"
12389   else
12390     case $cross_compiling:$ac_tool_warned in
12391 yes:)
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394 ac_tool_warned=yes ;;
12395 esac
12396     DLLTOOL=$ac_ct_DLLTOOL
12397   fi
12398 else
12399   DLLTOOL="$ac_cv_prog_DLLTOOL"
12400 fi
12401
12402   if test -n "$ac_tool_prefix"; then
12403   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12404 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410   if test -n "$OBJDUMP"; then
12411   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12412 else
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   test -z "$as_dir" && as_dir=.
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422     break 2
12423   fi
12424 done
12425   done
12426 IFS=$as_save_IFS
12427
12428 fi
12429 fi
12430 OBJDUMP=$ac_cv_prog_OBJDUMP
12431 if test -n "$OBJDUMP"; then
12432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12433 $as_echo "$OBJDUMP" >&6; }
12434 else
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12437 fi
12438
12439
12440 fi
12441 if test -z "$ac_cv_prog_OBJDUMP"; then
12442   ac_ct_OBJDUMP=$OBJDUMP
12443   # Extract the first word of "objdump", so it can be a program name with args.
12444 set dummy objdump; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12448   $as_echo_n "(cached) " >&6
12449 else
12450   if test -n "$ac_ct_OBJDUMP"; then
12451   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12452 else
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12455 do
12456   IFS=$as_save_IFS
12457   test -z "$as_dir" && as_dir=.
12458     for ac_exec_ext in '' $ac_executable_extensions; do
12459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12462     break 2
12463   fi
12464 done
12465   done
12466 IFS=$as_save_IFS
12467
12468 fi
12469 fi
12470 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12471 if test -n "$ac_ct_OBJDUMP"; then
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12473 $as_echo "$ac_ct_OBJDUMP" >&6; }
12474 else
12475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12477 fi
12478
12479   if test "x$ac_ct_OBJDUMP" = x; then
12480     OBJDUMP="false"
12481   else
12482     case $cross_compiling:$ac_tool_warned in
12483 yes:)
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12486 ac_tool_warned=yes ;;
12487 esac
12488     OBJDUMP=$ac_ct_OBJDUMP
12489   fi
12490 else
12491   OBJDUMP="$ac_cv_prog_OBJDUMP"
12492 fi
12493
12494   ;;
12495 esac
12496
12497 test -z "$AS" && AS=as
12498
12499
12500
12501
12502
12503 test -z "$DLLTOOL" && DLLTOOL=dlltool
12504
12505
12506
12507
12508
12509 test -z "$OBJDUMP" && OBJDUMP=objdump
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519             # Check whether --enable-shared was given.
12520 if test "${enable_shared+set}" = set; then :
12521   enableval=$enable_shared; p=${PACKAGE-default}
12522     case $enableval in
12523     yes) enable_shared=yes ;;
12524     no) enable_shared=no ;;
12525     *)
12526       enable_shared=no
12527       # Look at the argument we got.  We use all the common list separators.
12528       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12529       for pkg in $enableval; do
12530         IFS="$lt_save_ifs"
12531         if test "X$pkg" = "X$p"; then
12532           enable_shared=yes
12533         fi
12534       done
12535       IFS="$lt_save_ifs"
12536       ;;
12537     esac
12538 else
12539   enable_shared=yes
12540 fi
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550   # Check whether --enable-static was given.
12551 if test "${enable_static+set}" = set; then :
12552   enableval=$enable_static; p=${PACKAGE-default}
12553     case $enableval in
12554     yes) enable_static=yes ;;
12555     no) enable_static=no ;;
12556     *)
12557      enable_static=no
12558       # Look at the argument we got.  We use all the common list separators.
12559       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12560       for pkg in $enableval; do
12561         IFS="$lt_save_ifs"
12562         if test "X$pkg" = "X$p"; then
12563           enable_static=yes
12564         fi
12565       done
12566       IFS="$lt_save_ifs"
12567       ;;
12568     esac
12569 else
12570   enable_static=yes
12571 fi
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582 # Check whether --with-pic was given.
12583 if test "${with_pic+set}" = set; then :
12584   withval=$with_pic; pic_mode="$withval"
12585 else
12586   pic_mode=default
12587 fi
12588
12589
12590 test -z "$pic_mode" && pic_mode=default
12591
12592
12593
12594
12595
12596
12597
12598   # Check whether --enable-fast-install was given.
12599 if test "${enable_fast_install+set}" = set; then :
12600   enableval=$enable_fast_install; p=${PACKAGE-default}
12601     case $enableval in
12602     yes) enable_fast_install=yes ;;
12603     no) enable_fast_install=no ;;
12604     *)
12605       enable_fast_install=no
12606       # Look at the argument we got.  We use all the common list separators.
12607       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12608       for pkg in $enableval; do
12609         IFS="$lt_save_ifs"
12610         if test "X$pkg" = "X$p"; then
12611           enable_fast_install=yes
12612         fi
12613       done
12614       IFS="$lt_save_ifs"
12615       ;;
12616     esac
12617 else
12618   enable_fast_install=yes
12619 fi
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631 # This can be used to rebuild libtool when needed
12632 LIBTOOL_DEPS="$ltmain"
12633
12634 # Always use our own libtool.
12635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661 test -z "$LN_S" && LN_S="ln -s"
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676 if test -n "${ZSH_VERSION+set}" ; then
12677    setopt NO_GLOB_SUBST
12678 fi
12679
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12681 $as_echo_n "checking for objdir... " >&6; }
12682 if test "${lt_cv_objdir+set}" = set; then :
12683   $as_echo_n "(cached) " >&6
12684 else
12685   rm -f .libs 2>/dev/null
12686 mkdir .libs 2>/dev/null
12687 if test -d .libs; then
12688   lt_cv_objdir=.libs
12689 else
12690   # MS-DOS does not allow filenames that begin with a dot.
12691   lt_cv_objdir=_libs
12692 fi
12693 rmdir .libs 2>/dev/null
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12696 $as_echo "$lt_cv_objdir" >&6; }
12697 objdir=$lt_cv_objdir
12698
12699
12700
12701
12702
12703 cat >>confdefs.h <<_ACEOF
12704 #define LT_OBJDIR "$lt_cv_objdir/"
12705 _ACEOF
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723 case $host_os in
12724 aix3*)
12725   # AIX sometimes has problems with the GCC collect2 program.  For some
12726   # reason, if we set the COLLECT_NAMES environment variable, the problems
12727   # vanish in a puff of smoke.
12728   if test "X${COLLECT_NAMES+set}" != Xset; then
12729     COLLECT_NAMES=
12730     export COLLECT_NAMES
12731   fi
12732   ;;
12733 esac
12734
12735 # Sed substitution that helps us do robust quoting.  It backslashifies
12736 # metacharacters that are still active within double-quoted strings.
12737 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12738
12739 # Same as above, but do not quote variable references.
12740 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12741
12742 # Sed substitution to delay expansion of an escaped shell variable in a
12743 # double_quote_subst'ed string.
12744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12745
12746 # Sed substitution to delay expansion of an escaped single quote.
12747 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12748
12749 # Sed substitution to avoid accidental globbing in evaled expressions
12750 no_glob_subst='s/\*/\\\*/g'
12751
12752 # Global variables:
12753 ofile=libtool
12754 can_build_shared=yes
12755
12756 # All known linkers require a `.a' archive for static linking (except MSVC,
12757 # which needs '.lib').
12758 libext=a
12759
12760 with_gnu_ld="$lt_cv_prog_gnu_ld"
12761
12762 old_CC="$CC"
12763 old_CFLAGS="$CFLAGS"
12764
12765 # Set sane defaults for various variables
12766 test -z "$CC" && CC=cc
12767 test -z "$LTCC" && LTCC=$CC
12768 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12769 test -z "$LD" && LD=ld
12770 test -z "$ac_objext" && ac_objext=o
12771
12772 for cc_temp in $compiler""; do
12773   case $cc_temp in
12774     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12775     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12776     \-*) ;;
12777     *) break;;
12778   esac
12779 done
12780 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12781
12782
12783 # Only perform the check for file, if the check method requires it
12784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12785 case $deplibs_check_method in
12786 file_magic*)
12787   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12789 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12791   $as_echo_n "(cached) " >&6
12792 else
12793   case $MAGIC_CMD in
12794 [\\/*] |  ?:[\\/]*)
12795   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12796   ;;
12797 *)
12798   lt_save_MAGIC_CMD="$MAGIC_CMD"
12799   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12800   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12801   for ac_dir in $ac_dummy; do
12802     IFS="$lt_save_ifs"
12803     test -z "$ac_dir" && ac_dir=.
12804     if test -f $ac_dir/${ac_tool_prefix}file; then
12805       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12806       if test -n "$file_magic_test_file"; then
12807         case $deplibs_check_method in
12808         "file_magic "*)
12809           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12810           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12811           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12812             $EGREP "$file_magic_regex" > /dev/null; then
12813             :
12814           else
12815             cat <<_LT_EOF 1>&2
12816
12817 *** Warning: the command libtool uses to detect shared libraries,
12818 *** $file_magic_cmd, produces output that libtool cannot recognize.
12819 *** The result is that libtool may fail to recognize shared libraries
12820 *** as such.  This will affect the creation of libtool libraries that
12821 *** depend on shared libraries, but programs linked with such libtool
12822 *** libraries will work regardless of this problem.  Nevertheless, you
12823 *** may want to report the problem to your system manager and/or to
12824 *** bug-libtool@gnu.org
12825
12826 _LT_EOF
12827           fi ;;
12828         esac
12829       fi
12830       break
12831     fi
12832   done
12833   IFS="$lt_save_ifs"
12834   MAGIC_CMD="$lt_save_MAGIC_CMD"
12835   ;;
12836 esac
12837 fi
12838
12839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12840 if test -n "$MAGIC_CMD"; then
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12842 $as_echo "$MAGIC_CMD" >&6; }
12843 else
12844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 fi
12847
12848
12849
12850
12851
12852 if test -z "$lt_cv_path_MAGIC_CMD"; then
12853   if test -n "$ac_tool_prefix"; then
12854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12855 $as_echo_n "checking for file... " >&6; }
12856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12857   $as_echo_n "(cached) " >&6
12858 else
12859   case $MAGIC_CMD in
12860 [\\/*] |  ?:[\\/]*)
12861   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12862   ;;
12863 *)
12864   lt_save_MAGIC_CMD="$MAGIC_CMD"
12865   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12866   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12867   for ac_dir in $ac_dummy; do
12868     IFS="$lt_save_ifs"
12869     test -z "$ac_dir" && ac_dir=.
12870     if test -f $ac_dir/file; then
12871       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12872       if test -n "$file_magic_test_file"; then
12873         case $deplibs_check_method in
12874         "file_magic "*)
12875           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12876           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12877           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12878             $EGREP "$file_magic_regex" > /dev/null; then
12879             :
12880           else
12881             cat <<_LT_EOF 1>&2
12882
12883 *** Warning: the command libtool uses to detect shared libraries,
12884 *** $file_magic_cmd, produces output that libtool cannot recognize.
12885 *** The result is that libtool may fail to recognize shared libraries
12886 *** as such.  This will affect the creation of libtool libraries that
12887 *** depend on shared libraries, but programs linked with such libtool
12888 *** libraries will work regardless of this problem.  Nevertheless, you
12889 *** may want to report the problem to your system manager and/or to
12890 *** bug-libtool@gnu.org
12891
12892 _LT_EOF
12893           fi ;;
12894         esac
12895       fi
12896       break
12897     fi
12898   done
12899   IFS="$lt_save_ifs"
12900   MAGIC_CMD="$lt_save_MAGIC_CMD"
12901   ;;
12902 esac
12903 fi
12904
12905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12906 if test -n "$MAGIC_CMD"; then
12907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12908 $as_echo "$MAGIC_CMD" >&6; }
12909 else
12910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12912 fi
12913
12914
12915   else
12916     MAGIC_CMD=:
12917   fi
12918 fi
12919
12920   fi
12921   ;;
12922 esac
12923
12924 # Use C for the default configuration in the libtool script
12925
12926 lt_save_CC="$CC"
12927 ac_ext=c
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933
12934 # Source file extension for C test sources.
12935 ac_ext=c
12936
12937 # Object file extension for compiled C test sources.
12938 objext=o
12939 objext=$objext
12940
12941 # Code to be used in simple compile tests
12942 lt_simple_compile_test_code="int some_variable = 0;"
12943
12944 # Code to be used in simple link tests
12945 lt_simple_link_test_code='int main(){return(0);}'
12946
12947
12948
12949
12950
12951
12952
12953 # If no C compiler was specified, use CC.
12954 LTCC=${LTCC-"$CC"}
12955
12956 # If no C compiler flags were specified, use CFLAGS.
12957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12958
12959 # Allow CC to be a program name with arguments.
12960 compiler=$CC
12961
12962 # Save the default compiler, since it gets overwritten when the other
12963 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12964 compiler_DEFAULT=$CC
12965
12966 # save warnings/boilerplate of simple test code
12967 ac_outfile=conftest.$ac_objext
12968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_compiler_boilerplate=`cat conftest.err`
12971 $RM conftest*
12972
12973 ac_outfile=conftest.$ac_objext
12974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12976 _lt_linker_boilerplate=`cat conftest.err`
12977 $RM -r conftest*
12978
12979
12980 ## CAVEAT EMPTOR:
12981 ## There is no encapsulation within the following macros, do not change
12982 ## the running order or otherwise move them around unless you know exactly
12983 ## what you are doing...
12984 if test -n "$compiler"; then
12985
12986 lt_prog_compiler_no_builtin_flag=
12987
12988 if test "$GCC" = yes; then
12989   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12990
12991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12992 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12993 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12994   $as_echo_n "(cached) " >&6
12995 else
12996   lt_cv_prog_compiler_rtti_exceptions=no
12997    ac_outfile=conftest.$ac_objext
12998    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12999    lt_compiler_flag="-fno-rtti -fno-exceptions"
13000    # Insert the option either (1) after the last *FLAGS variable, or
13001    # (2) before a word containing "conftest.", or (3) at the end.
13002    # Note that $ac_compile itself does not contain backslashes and begins
13003    # with a dollar sign (not a hyphen), so the echo should work correctly.
13004    # The option is referenced via a variable to avoid confusing sed.
13005    lt_compile=`echo "$ac_compile" | $SED \
13006    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13007    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13008    -e 's:$: $lt_compiler_flag:'`
13009    (eval echo "\"\$as_me:13009: $lt_compile\"" >&5)
13010    (eval "$lt_compile" 2>conftest.err)
13011    ac_status=$?
13012    cat conftest.err >&5
13013    echo "$as_me:13013: \$? = $ac_status" >&5
13014    if (exit $ac_status) && test -s "$ac_outfile"; then
13015      # The compiler can only warn and ignore the option if not recognized
13016      # So say no if there are warnings other than the usual output.
13017      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13018      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13019      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13020        lt_cv_prog_compiler_rtti_exceptions=yes
13021      fi
13022    fi
13023    $RM conftest*
13024
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13027 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13028
13029 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13030     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13031 else
13032     :
13033 fi
13034
13035 fi
13036
13037
13038
13039
13040
13041
13042   lt_prog_compiler_wl=
13043 lt_prog_compiler_pic=
13044 lt_prog_compiler_static=
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13047 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13048
13049   if test "$GCC" = yes; then
13050     lt_prog_compiler_wl='-Wl,'
13051     lt_prog_compiler_static='-static'
13052
13053     case $host_os in
13054       aix*)
13055       # All AIX code is PIC.
13056       if test "$host_cpu" = ia64; then
13057         # AIX 5 now supports IA64 processor
13058         lt_prog_compiler_static='-Bstatic'
13059       fi
13060       ;;
13061
13062     amigaos*)
13063       case $host_cpu in
13064       powerpc)
13065             # see comment about AmigaOS4 .so support
13066             lt_prog_compiler_pic='-fPIC'
13067         ;;
13068       m68k)
13069             # FIXME: we need at least 68020 code to build shared libraries, but
13070             # adding the `-m68020' flag to GCC prevents building anything better,
13071             # like `-m68040'.
13072             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13073         ;;
13074       esac
13075       ;;
13076
13077     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13078       # PIC is the default for these OSes.
13079       ;;
13080
13081     mingw* | cygwin* | pw32* | os2* | cegcc*)
13082       # This hack is so that the source file can tell whether it is being
13083       # built for inclusion in a dll (and should export symbols for example).
13084       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13085       # (--disable-auto-import) libraries
13086       lt_prog_compiler_pic='-DDLL_EXPORT'
13087       ;;
13088
13089     darwin* | rhapsody*)
13090       # PIC is the default on this platform
13091       # Common symbols not allowed in MH_DYLIB files
13092       lt_prog_compiler_pic='-fno-common'
13093       ;;
13094
13095     hpux*)
13096       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13097       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13098       # sets the default TLS model and affects inlining.
13099       case $host_cpu in
13100       hppa*64*)
13101         # +Z the default
13102         ;;
13103       *)
13104         lt_prog_compiler_pic='-fPIC'
13105         ;;
13106       esac
13107       ;;
13108
13109     interix[3-9]*)
13110       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13111       # Instead, we relocate shared libraries at runtime.
13112       ;;
13113
13114     msdosdjgpp*)
13115       # Just because we use GCC doesn't mean we suddenly get shared libraries
13116       # on systems that don't support them.
13117       lt_prog_compiler_can_build_shared=no
13118       enable_shared=no
13119       ;;
13120
13121     *nto* | *qnx*)
13122       # QNX uses GNU C++, but need to define -shared option too, otherwise
13123       # it will coredump.
13124       lt_prog_compiler_pic='-fPIC -shared'
13125       ;;
13126
13127     sysv4*MP*)
13128       if test -d /usr/nec; then
13129         lt_prog_compiler_pic=-Kconform_pic
13130       fi
13131       ;;
13132
13133     *)
13134       lt_prog_compiler_pic='-fPIC'
13135       ;;
13136     esac
13137   else
13138     # PORTME Check for flag to pass linker flags through the system compiler.
13139     case $host_os in
13140     aix*)
13141       lt_prog_compiler_wl='-Wl,'
13142       if test "$host_cpu" = ia64; then
13143         # AIX 5 now supports IA64 processor
13144         lt_prog_compiler_static='-Bstatic'
13145       else
13146         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13147       fi
13148       ;;
13149
13150     mingw* | cygwin* | pw32* | os2* | cegcc*)
13151       # This hack is so that the source file can tell whether it is being
13152       # built for inclusion in a dll (and should export symbols for example).
13153       lt_prog_compiler_pic='-DDLL_EXPORT'
13154       ;;
13155
13156     hpux9* | hpux10* | hpux11*)
13157       lt_prog_compiler_wl='-Wl,'
13158       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13159       # not for PA HP-UX.
13160       case $host_cpu in
13161       hppa*64*|ia64*)
13162         # +Z the default
13163         ;;
13164       *)
13165         lt_prog_compiler_pic='+Z'
13166         ;;
13167       esac
13168       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13169       lt_prog_compiler_static='${wl}-a ${wl}archive'
13170       ;;
13171
13172     irix5* | irix6* | nonstopux*)
13173       lt_prog_compiler_wl='-Wl,'
13174       # PIC (with -KPIC) is the default.
13175       lt_prog_compiler_static='-non_shared'
13176       ;;
13177
13178     linux* | k*bsd*-gnu)
13179       case $cc_basename in
13180       # old Intel for x86_64 which still supported -KPIC.
13181       ecc*)
13182         lt_prog_compiler_wl='-Wl,'
13183         lt_prog_compiler_pic='-KPIC'
13184         lt_prog_compiler_static='-static'
13185         ;;
13186       # icc used to be incompatible with GCC.
13187       # ICC 10 doesn't accept -KPIC any more.
13188       icc* | ifort*)
13189         lt_prog_compiler_wl='-Wl,'
13190         lt_prog_compiler_pic='-fPIC'
13191         lt_prog_compiler_static='-static'
13192         ;;
13193       # Lahey Fortran 8.1.
13194       lf95*)
13195         lt_prog_compiler_wl='-Wl,'
13196         lt_prog_compiler_pic='--shared'
13197         lt_prog_compiler_static='--static'
13198         ;;
13199       pgcc* | pgf77* | pgf90* | pgf95*)
13200         # Portland Group compilers (*not* the Pentium gcc compiler,
13201         # which looks to be a dead project)
13202         lt_prog_compiler_wl='-Wl,'
13203         lt_prog_compiler_pic='-fpic'
13204         lt_prog_compiler_static='-Bstatic'
13205         ;;
13206       ccc*)
13207         lt_prog_compiler_wl='-Wl,'
13208         # All Alpha code is PIC.
13209         lt_prog_compiler_static='-non_shared'
13210         ;;
13211       xl*)
13212         # IBM XL C 8.0/Fortran 10.1 on PPC
13213         lt_prog_compiler_wl='-Wl,'
13214         lt_prog_compiler_pic='-qpic'
13215         lt_prog_compiler_static='-qstaticlink'
13216         ;;
13217       *)
13218         case `$CC -V 2>&1 | sed 5q` in
13219         *Sun\ C*)
13220           # Sun C 5.9
13221           lt_prog_compiler_pic='-KPIC'
13222           lt_prog_compiler_static='-Bstatic'
13223           lt_prog_compiler_wl='-Wl,'
13224           ;;
13225         *Sun\ F*)
13226           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13227           lt_prog_compiler_pic='-KPIC'
13228           lt_prog_compiler_static='-Bstatic'
13229           lt_prog_compiler_wl=''
13230           ;;
13231         esac
13232         ;;
13233       esac
13234       ;;
13235
13236     newsos6)
13237       lt_prog_compiler_pic='-KPIC'
13238       lt_prog_compiler_static='-Bstatic'
13239       ;;
13240
13241     *nto* | *qnx*)
13242       # QNX uses GNU C++, but need to define -shared option too, otherwise
13243       # it will coredump.
13244       lt_prog_compiler_pic='-fPIC -shared'
13245       ;;
13246
13247     osf3* | osf4* | osf5*)
13248       lt_prog_compiler_wl='-Wl,'
13249       # All OSF/1 code is PIC.
13250       lt_prog_compiler_static='-non_shared'
13251       ;;
13252
13253     rdos*)
13254       lt_prog_compiler_static='-non_shared'
13255       ;;
13256
13257     solaris*)
13258       lt_prog_compiler_pic='-KPIC'
13259       lt_prog_compiler_static='-Bstatic'
13260       case $cc_basename in
13261       f77* | f90* | f95*)
13262         lt_prog_compiler_wl='-Qoption ld ';;
13263       *)
13264         lt_prog_compiler_wl='-Wl,';;
13265       esac
13266       ;;
13267
13268     sunos4*)
13269       lt_prog_compiler_wl='-Qoption ld '
13270       lt_prog_compiler_pic='-PIC'
13271       lt_prog_compiler_static='-Bstatic'
13272       ;;
13273
13274     sysv4 | sysv4.2uw2* | sysv4.3*)
13275       lt_prog_compiler_wl='-Wl,'
13276       lt_prog_compiler_pic='-KPIC'
13277       lt_prog_compiler_static='-Bstatic'
13278       ;;
13279
13280     sysv4*MP*)
13281       if test -d /usr/nec ;then
13282         lt_prog_compiler_pic='-Kconform_pic'
13283         lt_prog_compiler_static='-Bstatic'
13284       fi
13285       ;;
13286
13287     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13288       lt_prog_compiler_wl='-Wl,'
13289       lt_prog_compiler_pic='-KPIC'
13290       lt_prog_compiler_static='-Bstatic'
13291       ;;
13292
13293     unicos*)
13294       lt_prog_compiler_wl='-Wl,'
13295       lt_prog_compiler_can_build_shared=no
13296       ;;
13297
13298     uts4*)
13299       lt_prog_compiler_pic='-pic'
13300       lt_prog_compiler_static='-Bstatic'
13301       ;;
13302
13303     *)
13304       lt_prog_compiler_can_build_shared=no
13305       ;;
13306     esac
13307   fi
13308
13309 case $host_os in
13310   # For platforms which do not support PIC, -DPIC is meaningless:
13311   *djgpp*)
13312     lt_prog_compiler_pic=
13313     ;;
13314   *)
13315     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13316     ;;
13317 esac
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13319 $as_echo "$lt_prog_compiler_pic" >&6; }
13320
13321
13322
13323
13324
13325
13326 #
13327 # Check to make sure the PIC flag actually works.
13328 #
13329 if test -n "$lt_prog_compiler_pic"; then
13330   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13331 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13332 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13333   $as_echo_n "(cached) " >&6
13334 else
13335   lt_cv_prog_compiler_pic_works=no
13336    ac_outfile=conftest.$ac_objext
13337    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13338    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13339    # Insert the option either (1) after the last *FLAGS variable, or
13340    # (2) before a word containing "conftest.", or (3) at the end.
13341    # Note that $ac_compile itself does not contain backslashes and begins
13342    # with a dollar sign (not a hyphen), so the echo should work correctly.
13343    # The option is referenced via a variable to avoid confusing sed.
13344    lt_compile=`echo "$ac_compile" | $SED \
13345    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347    -e 's:$: $lt_compiler_flag:'`
13348    (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
13349    (eval "$lt_compile" 2>conftest.err)
13350    ac_status=$?
13351    cat conftest.err >&5
13352    echo "$as_me:13352: \$? = $ac_status" >&5
13353    if (exit $ac_status) && test -s "$ac_outfile"; then
13354      # The compiler can only warn and ignore the option if not recognized
13355      # So say no if there are warnings other than the usual output.
13356      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13357      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13359        lt_cv_prog_compiler_pic_works=yes
13360      fi
13361    fi
13362    $RM conftest*
13363
13364 fi
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13366 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13367
13368 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13369     case $lt_prog_compiler_pic in
13370      "" | " "*) ;;
13371      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13372      esac
13373 else
13374     lt_prog_compiler_pic=
13375      lt_prog_compiler_can_build_shared=no
13376 fi
13377
13378 fi
13379
13380
13381
13382
13383
13384
13385 #
13386 # Check to make sure the static flag actually works.
13387 #
13388 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13390 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13391 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13392   $as_echo_n "(cached) " >&6
13393 else
13394   lt_cv_prog_compiler_static_works=no
13395    save_LDFLAGS="$LDFLAGS"
13396    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13397    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13398    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13399      # The linker can only warn and ignore the option if not recognized
13400      # So say no if there are warnings
13401      if test -s conftest.err; then
13402        # Append any errors to the config.log.
13403        cat conftest.err 1>&5
13404        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13405        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13406        if diff conftest.exp conftest.er2 >/dev/null; then
13407          lt_cv_prog_compiler_static_works=yes
13408        fi
13409      else
13410        lt_cv_prog_compiler_static_works=yes
13411      fi
13412    fi
13413    $RM -r conftest*
13414    LDFLAGS="$save_LDFLAGS"
13415
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13418 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13419
13420 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13421     :
13422 else
13423     lt_prog_compiler_static=
13424 fi
13425
13426
13427
13428
13429
13430
13431
13432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13433 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13434 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13435   $as_echo_n "(cached) " >&6
13436 else
13437   lt_cv_prog_compiler_c_o=no
13438    $RM -r conftest 2>/dev/null
13439    mkdir conftest
13440    cd conftest
13441    mkdir out
13442    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13443
13444    lt_compiler_flag="-o out/conftest2.$ac_objext"
13445    # Insert the option either (1) after the last *FLAGS variable, or
13446    # (2) before a word containing "conftest.", or (3) at the end.
13447    # Note that $ac_compile itself does not contain backslashes and begins
13448    # with a dollar sign (not a hyphen), so the echo should work correctly.
13449    lt_compile=`echo "$ac_compile" | $SED \
13450    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452    -e 's:$: $lt_compiler_flag:'`
13453    (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
13454    (eval "$lt_compile" 2>out/conftest.err)
13455    ac_status=$?
13456    cat out/conftest.err >&5
13457    echo "$as_me:13457: \$? = $ac_status" >&5
13458    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13459    then
13460      # The compiler can only warn and ignore the option if not recognized
13461      # So say no if there are warnings
13462      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13463      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13464      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13465        lt_cv_prog_compiler_c_o=yes
13466      fi
13467    fi
13468    chmod u+w . 2>&5
13469    $RM conftest*
13470    # SGI C++ compiler will create directory out/ii_files/ for
13471    # template instantiation
13472    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13473    $RM out/* && rmdir out
13474    cd ..
13475    $RM -r conftest
13476    $RM conftest*
13477
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13480 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13481
13482
13483
13484
13485
13486
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13490   $as_echo_n "(cached) " >&6
13491 else
13492   lt_cv_prog_compiler_c_o=no
13493    $RM -r conftest 2>/dev/null
13494    mkdir conftest
13495    cd conftest
13496    mkdir out
13497    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13498
13499    lt_compiler_flag="-o out/conftest2.$ac_objext"
13500    # Insert the option either (1) after the last *FLAGS variable, or
13501    # (2) before a word containing "conftest.", or (3) at the end.
13502    # Note that $ac_compile itself does not contain backslashes and begins
13503    # with a dollar sign (not a hyphen), so the echo should work correctly.
13504    lt_compile=`echo "$ac_compile" | $SED \
13505    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13506    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13507    -e 's:$: $lt_compiler_flag:'`
13508    (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
13509    (eval "$lt_compile" 2>out/conftest.err)
13510    ac_status=$?
13511    cat out/conftest.err >&5
13512    echo "$as_me:13512: \$? = $ac_status" >&5
13513    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13514    then
13515      # The compiler can only warn and ignore the option if not recognized
13516      # So say no if there are warnings
13517      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13518      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13519      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13520        lt_cv_prog_compiler_c_o=yes
13521      fi
13522    fi
13523    chmod u+w . 2>&5
13524    $RM conftest*
13525    # SGI C++ compiler will create directory out/ii_files/ for
13526    # template instantiation
13527    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13528    $RM out/* && rmdir out
13529    cd ..
13530    $RM -r conftest
13531    $RM conftest*
13532
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13536
13537
13538
13539
13540 hard_links="nottested"
13541 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13542   # do not overwrite the value of need_locks provided by the user
13543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13544 $as_echo_n "checking if we can lock with hard links... " >&6; }
13545   hard_links=yes
13546   $RM conftest*
13547   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13548   touch conftest.a
13549   ln conftest.a conftest.b 2>&5 || hard_links=no
13550   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13552 $as_echo "$hard_links" >&6; }
13553   if test "$hard_links" = no; then
13554     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13555 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13556     need_locks=warn
13557   fi
13558 else
13559   need_locks=no
13560 fi
13561
13562
13563
13564
13565
13566
13567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13568 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13569
13570   runpath_var=
13571   allow_undefined_flag=
13572   always_export_symbols=no
13573   archive_cmds=
13574   archive_expsym_cmds=
13575   compiler_needs_object=no
13576   enable_shared_with_static_runtimes=no
13577   export_dynamic_flag_spec=
13578   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13579   hardcode_automatic=no
13580   hardcode_direct=no
13581   hardcode_direct_absolute=no
13582   hardcode_libdir_flag_spec=
13583   hardcode_libdir_flag_spec_ld=
13584   hardcode_libdir_separator=
13585   hardcode_minus_L=no
13586   hardcode_shlibpath_var=unsupported
13587   inherit_rpath=no
13588   link_all_deplibs=unknown
13589   module_cmds=
13590   module_expsym_cmds=
13591   old_archive_from_new_cmds=
13592   old_archive_from_expsyms_cmds=
13593   thread_safe_flag_spec=
13594   whole_archive_flag_spec=
13595   # include_expsyms should be a list of space-separated symbols to be *always*
13596   # included in the symbol list
13597   include_expsyms=
13598   # exclude_expsyms can be an extended regexp of symbols to exclude
13599   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13600   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13601   # as well as any symbol that contains `d'.
13602   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13603   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13604   # platforms (ab)use it in PIC code, but their linkers get confused if
13605   # the symbol is explicitly referenced.  Since portable code cannot
13606   # rely on this symbol name, it's probably fine to never include it in
13607   # preloaded symbol tables.
13608   # Exclude shared library initialization/finalization symbols.
13609   extract_expsyms_cmds=
13610
13611   case $host_os in
13612   cygwin* | mingw* | pw32* | cegcc*)
13613     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13614     # When not using gcc, we currently assume that we are using
13615     # Microsoft Visual C++.
13616     if test "$GCC" != yes; then
13617       with_gnu_ld=no
13618     fi
13619     ;;
13620   interix*)
13621     # we just hope/assume this is gcc and not c89 (= MSVC++)
13622     with_gnu_ld=yes
13623     ;;
13624   openbsd*)
13625     with_gnu_ld=no
13626     ;;
13627   esac
13628
13629   ld_shlibs=yes
13630   if test "$with_gnu_ld" = yes; then
13631     # If archive_cmds runs LD, not CC, wlarc should be empty
13632     wlarc='${wl}'
13633
13634     # Set some defaults for GNU ld with shared library support. These
13635     # are reset later if shared libraries are not supported. Putting them
13636     # here allows them to be overridden if necessary.
13637     runpath_var=LD_RUN_PATH
13638     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13639     export_dynamic_flag_spec='${wl}--export-dynamic'
13640     # ancient GNU ld didn't support --whole-archive et. al.
13641     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13642       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13643     else
13644       whole_archive_flag_spec=
13645     fi
13646     supports_anon_versioning=no
13647     case `$LD -v 2>&1` in
13648       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13649       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13650       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13651       *\ 2.11.*) ;; # other 2.11 versions
13652       *) supports_anon_versioning=yes ;;
13653     esac
13654
13655     # See if GNU ld supports shared libraries.
13656     case $host_os in
13657     aix[3-9]*)
13658       # On AIX/PPC, the GNU linker is very broken
13659       if test "$host_cpu" != ia64; then
13660         ld_shlibs=no
13661         cat <<_LT_EOF 1>&2
13662
13663 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13664 *** to be unable to reliably create shared libraries on AIX.
13665 *** Therefore, libtool is disabling shared libraries support.  If you
13666 *** really care for shared libraries, you may want to modify your PATH
13667 *** so that a non-GNU linker is found, and then restart.
13668
13669 _LT_EOF
13670       fi
13671       ;;
13672
13673     amigaos*)
13674       case $host_cpu in
13675       powerpc)
13676             # see comment about AmigaOS4 .so support
13677             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678             archive_expsym_cmds=''
13679         ;;
13680       m68k)
13681             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)'
13682             hardcode_libdir_flag_spec='-L$libdir'
13683             hardcode_minus_L=yes
13684         ;;
13685       esac
13686       ;;
13687
13688     beos*)
13689       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13690         allow_undefined_flag=unsupported
13691         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13692         # support --undefined.  This deserves some investigation.  FIXME
13693         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13694       else
13695         ld_shlibs=no
13696       fi
13697       ;;
13698
13699     cygwin* | mingw* | pw32* | cegcc*)
13700       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13701       # as there is no search path for DLLs.
13702       hardcode_libdir_flag_spec='-L$libdir'
13703       allow_undefined_flag=unsupported
13704       always_export_symbols=no
13705       enable_shared_with_static_runtimes=yes
13706       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13707
13708       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13709         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710         # If the export-symbols file already is a .def file (1st line
13711         # is EXPORTS), use it as is; otherwise, prepend...
13712         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13713           cp $export_symbols $output_objdir/$soname.def;
13714         else
13715           echo EXPORTS > $output_objdir/$soname.def;
13716           cat $export_symbols >> $output_objdir/$soname.def;
13717         fi~
13718         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13719       else
13720         ld_shlibs=no
13721       fi
13722       ;;
13723
13724     interix[3-9]*)
13725       hardcode_direct=no
13726       hardcode_shlibpath_var=no
13727       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13728       export_dynamic_flag_spec='${wl}-E'
13729       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13730       # Instead, shared libraries are loaded at an image base (0x10000000 by
13731       # default) and relocated if they conflict, which is a slow very memory
13732       # consuming and fragmenting process.  To avoid this, we pick a random,
13733       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13734       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13735       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13736       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'
13737       ;;
13738
13739     gnu* | linux* | tpf* | k*bsd*-gnu)
13740       tmp_diet=no
13741       if test "$host_os" = linux-dietlibc; then
13742         case $cc_basename in
13743           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13744         esac
13745       fi
13746       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13747          && test "$tmp_diet" = no
13748       then
13749         tmp_addflag=
13750         tmp_sharedflag='-shared'
13751         case $cc_basename,$host_cpu in
13752         pgcc*)                          # Portland Group C compiler
13753           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'
13754           tmp_addflag=' $pic_flag'
13755           ;;
13756         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13757           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'
13758           tmp_addflag=' $pic_flag -Mnomain' ;;
13759         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13760           tmp_addflag=' -i_dynamic' ;;
13761         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13762           tmp_addflag=' -i_dynamic -nofor_main' ;;
13763         ifc* | ifort*)                  # Intel Fortran compiler
13764           tmp_addflag=' -nofor_main' ;;
13765         lf95*)                          # Lahey Fortran 8.1
13766           whole_archive_flag_spec=
13767           tmp_sharedflag='--shared' ;;
13768         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
13769           tmp_sharedflag='-qmkshrobj'
13770           tmp_addflag= ;;
13771         esac
13772         case `$CC -V 2>&1 | sed 5q` in
13773         *Sun\ C*)                       # Sun C 5.9
13774           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'
13775           compiler_needs_object=yes
13776           tmp_sharedflag='-G' ;;
13777         *Sun\ F*)                       # Sun Fortran 8.3
13778           tmp_sharedflag='-G' ;;
13779         esac
13780         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13781
13782         if test "x$supports_anon_versioning" = xyes; then
13783           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13784             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13785             echo "local: *; };" >> $output_objdir/$libname.ver~
13786             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13787         fi
13788
13789         case $cc_basename in
13790         xlf*)
13791           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13792           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13793           hardcode_libdir_flag_spec=
13794           hardcode_libdir_flag_spec_ld='-rpath $libdir'
13795           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13796           if test "x$supports_anon_versioning" = xyes; then
13797             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13798               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13799               echo "local: *; };" >> $output_objdir/$libname.ver~
13800               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13801           fi
13802           ;;
13803         esac
13804       else
13805         ld_shlibs=no
13806       fi
13807       ;;
13808
13809     netbsd*)
13810       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13811         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13812         wlarc=
13813       else
13814         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13816       fi
13817       ;;
13818
13819     solaris*)
13820       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13821         ld_shlibs=no
13822         cat <<_LT_EOF 1>&2
13823
13824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13825 *** create shared libraries on Solaris systems.  Therefore, libtool
13826 *** is disabling shared libraries support.  We urge you to upgrade GNU
13827 *** binutils to release 2.9.1 or newer.  Another option is to modify
13828 *** your PATH or compiler configuration so that the native linker is
13829 *** used, and then restart.
13830
13831 _LT_EOF
13832       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13833         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13835       else
13836         ld_shlibs=no
13837       fi
13838       ;;
13839
13840     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13841       case `$LD -v 2>&1` in
13842         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13843         ld_shlibs=no
13844         cat <<_LT_EOF 1>&2
13845
13846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13847 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13848 *** is disabling shared libraries support.  We urge you to upgrade GNU
13849 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13850 *** your PATH or compiler configuration so that the native linker is
13851 *** used, and then restart.
13852
13853 _LT_EOF
13854         ;;
13855         *)
13856           # For security reasons, it is highly recommended that you always
13857           # use absolute paths for naming shared libraries, and exclude the
13858           # DT_RUNPATH tag from executables and libraries.  But doing so
13859           # requires that you compile everything twice, which is a pain.
13860           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13861             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13864           else
13865             ld_shlibs=no
13866           fi
13867         ;;
13868       esac
13869       ;;
13870
13871     sunos4*)
13872       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13873       wlarc=
13874       hardcode_direct=yes
13875       hardcode_shlibpath_var=no
13876       ;;
13877
13878     *)
13879       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13880         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13881         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13882       else
13883         ld_shlibs=no
13884       fi
13885       ;;
13886     esac
13887
13888     if test "$ld_shlibs" = no; then
13889       runpath_var=
13890       hardcode_libdir_flag_spec=
13891       export_dynamic_flag_spec=
13892       whole_archive_flag_spec=
13893     fi
13894   else
13895     # PORTME fill in a description of your system's linker (not GNU ld)
13896     case $host_os in
13897     aix3*)
13898       allow_undefined_flag=unsupported
13899       always_export_symbols=yes
13900       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'
13901       # Note: this linker hardcodes the directories in LIBPATH if there
13902       # are no directories specified by -L.
13903       hardcode_minus_L=yes
13904       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13905         # Neither direct hardcoding nor static linking is supported with a
13906         # broken collect2.
13907         hardcode_direct=unsupported
13908       fi
13909       ;;
13910
13911     aix[4-9]*)
13912       if test "$host_cpu" = ia64; then
13913         # On IA64, the linker does run time linking by default, so we don't
13914         # have to do anything special.
13915         aix_use_runtimelinking=no
13916         exp_sym_flag='-Bexport'
13917         no_entry_flag=""
13918       else
13919         # If we're using GNU nm, then we don't want the "-C" option.
13920         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13921         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13922           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'
13923         else
13924           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'
13925         fi
13926         aix_use_runtimelinking=no
13927
13928         # Test if we are trying to use run time linking or normal
13929         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13930         # need to do runtime linking.
13931         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13932           for ld_flag in $LDFLAGS; do
13933           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13934             aix_use_runtimelinking=yes
13935             break
13936           fi
13937           done
13938           ;;
13939         esac
13940
13941         exp_sym_flag='-bexport'
13942         no_entry_flag='-bnoentry'
13943       fi
13944
13945       # When large executables or shared objects are built, AIX ld can
13946       # have problems creating the table of contents.  If linking a library
13947       # or program results in "error TOC overflow" add -mminimal-toc to
13948       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13949       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13950
13951       archive_cmds=''
13952       hardcode_direct=yes
13953       hardcode_direct_absolute=yes
13954       hardcode_libdir_separator=':'
13955       link_all_deplibs=yes
13956       file_list_spec='${wl}-f,'
13957
13958       if test "$GCC" = yes; then
13959         case $host_os in aix4.[012]|aix4.[012].*)
13960         # We only want to do this on AIX 4.2 and lower, the check
13961         # below for broken collect2 doesn't work under 4.3+
13962           collect2name=`${CC} -print-prog-name=collect2`
13963           if test -f "$collect2name" &&
13964            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13965           then
13966           # We have reworked collect2
13967           :
13968           else
13969           # We have old collect2
13970           hardcode_direct=unsupported
13971           # It fails to find uninstalled libraries when the uninstalled
13972           # path is not listed in the libpath.  Setting hardcode_minus_L
13973           # to unsupported forces relinking
13974           hardcode_minus_L=yes
13975           hardcode_libdir_flag_spec='-L$libdir'
13976           hardcode_libdir_separator=
13977           fi
13978           ;;
13979         esac
13980         shared_flag='-shared'
13981         if test "$aix_use_runtimelinking" = yes; then
13982           shared_flag="$shared_flag "'${wl}-G'
13983         fi
13984       else
13985         # not using gcc
13986         if test "$host_cpu" = ia64; then
13987         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13988         # chokes on -Wl,-G. The following line is correct:
13989           shared_flag='-G'
13990         else
13991           if test "$aix_use_runtimelinking" = yes; then
13992             shared_flag='${wl}-G'
13993           else
13994             shared_flag='${wl}-bM:SRE'
13995           fi
13996         fi
13997       fi
13998
13999       export_dynamic_flag_spec='${wl}-bexpall'
14000       # It seems that -bexpall does not export symbols beginning with
14001       # underscore (_), so it is better to generate a list of symbols to export.
14002       always_export_symbols=yes
14003       if test "$aix_use_runtimelinking" = yes; then
14004         # Warning - without using the other runtime loading flags (-brtl),
14005         # -berok will link without error, but may produce a broken library.
14006         allow_undefined_flag='-berok'
14007         # Determine the default libpath from the value encoded in an
14008         # empty executable.
14009         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h.  */
14011
14012 int
14013 main ()
14014 {
14015
14016   ;
14017   return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14021
14022 lt_aix_libpath_sed='
14023     /Import File Strings/,/^$/ {
14024         /^0/ {
14025             s/^0  *\(.*\)$/\1/
14026             p
14027         }
14028     }'
14029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14030 # Check for a 64-bit object if we didn't find anything.
14031 if test -z "$aix_libpath"; then
14032   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14033 fi
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext \
14036     conftest$ac_exeext conftest.$ac_ext
14037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14038
14039         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14040         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"
14041       else
14042         if test "$host_cpu" = ia64; then
14043           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14044           allow_undefined_flag="-z nodefs"
14045           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"
14046         else
14047          # Determine the default libpath from the value encoded in an
14048          # empty executable.
14049          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h.  */
14051
14052 int
14053 main ()
14054 {
14055
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_link "$LINENO"; then :
14061
14062 lt_aix_libpath_sed='
14063     /Import File Strings/,/^$/ {
14064         /^0/ {
14065             s/^0  *\(.*\)$/\1/
14066             p
14067         }
14068     }'
14069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14070 # Check for a 64-bit object if we didn't find anything.
14071 if test -z "$aix_libpath"; then
14072   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14073 fi
14074 fi
14075 rm -f core conftest.err conftest.$ac_objext \
14076     conftest$ac_exeext conftest.$ac_ext
14077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14078
14079          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14080           # Warning - without using the other run time loading flags,
14081           # -berok will link without error, but may produce a broken library.
14082           no_undefined_flag=' ${wl}-bernotok'
14083           allow_undefined_flag=' ${wl}-berok'
14084           # Exported symbols can be pulled into shared objects from archives
14085           whole_archive_flag_spec='$convenience'
14086           archive_cmds_need_lc=yes
14087           # This is similar to how AIX traditionally builds its shared libraries.
14088           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'
14089         fi
14090       fi
14091       ;;
14092
14093     amigaos*)
14094       case $host_cpu in
14095       powerpc)
14096             # see comment about AmigaOS4 .so support
14097             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098             archive_expsym_cmds=''
14099         ;;
14100       m68k)
14101             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)'
14102             hardcode_libdir_flag_spec='-L$libdir'
14103             hardcode_minus_L=yes
14104         ;;
14105       esac
14106       ;;
14107
14108     bsdi[45]*)
14109       export_dynamic_flag_spec=-rdynamic
14110       ;;
14111
14112     cygwin* | mingw* | pw32* | cegcc*)
14113       # When not using gcc, we currently assume that we are using
14114       # Microsoft Visual C++.
14115       # hardcode_libdir_flag_spec is actually meaningless, as there is
14116       # no search path for DLLs.
14117       hardcode_libdir_flag_spec=' '
14118       allow_undefined_flag=unsupported
14119       # Tell ltmain to make .lib files, not .a files.
14120       libext=lib
14121       # Tell ltmain to make .dll files, not .so files.
14122       shrext_cmds=".dll"
14123       # FIXME: Setting linknames here is a bad hack.
14124       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14125       # The linker will automatically build a .lib file if we build a DLL.
14126       old_archive_from_new_cmds='true'
14127       # FIXME: Should let the user specify the lib program.
14128       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14129       fix_srcfile_path='`cygpath -w "$srcfile"`'
14130       enable_shared_with_static_runtimes=yes
14131       ;;
14132
14133     darwin* | rhapsody*)
14134
14135
14136   archive_cmds_need_lc=no
14137   hardcode_direct=no
14138   hardcode_automatic=yes
14139   hardcode_shlibpath_var=unsupported
14140   whole_archive_flag_spec=''
14141   link_all_deplibs=yes
14142   allow_undefined_flag="$_lt_dar_allow_undefined"
14143   case $cc_basename in
14144      ifort*) _lt_dar_can_shared=yes ;;
14145      *) _lt_dar_can_shared=$GCC ;;
14146   esac
14147   if test "$_lt_dar_can_shared" = "yes"; then
14148     output_verbose_link_cmd=echo
14149     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14150     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14151     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}"
14152     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}"
14153
14154   else
14155   ld_shlibs=no
14156   fi
14157
14158       ;;
14159
14160     dgux*)
14161       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162       hardcode_libdir_flag_spec='-L$libdir'
14163       hardcode_shlibpath_var=no
14164       ;;
14165
14166     freebsd1*)
14167       ld_shlibs=no
14168       ;;
14169
14170     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14171     # support.  Future versions do this automatically, but an explicit c++rt0.o
14172     # does not break anything, and helps significantly (at the cost of a little
14173     # extra space).
14174     freebsd2.2*)
14175       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14176       hardcode_libdir_flag_spec='-R$libdir'
14177       hardcode_direct=yes
14178       hardcode_shlibpath_var=no
14179       ;;
14180
14181     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14182     freebsd2*)
14183       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184       hardcode_direct=yes
14185       hardcode_minus_L=yes
14186       hardcode_shlibpath_var=no
14187       ;;
14188
14189     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14190     freebsd* | dragonfly*)
14191       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14192       hardcode_libdir_flag_spec='-R$libdir'
14193       hardcode_direct=yes
14194       hardcode_shlibpath_var=no
14195       ;;
14196
14197     hpux9*)
14198       if test "$GCC" = yes; then
14199         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'
14200       else
14201         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'
14202       fi
14203       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14204       hardcode_libdir_separator=:
14205       hardcode_direct=yes
14206
14207       # hardcode_minus_L: Not really in the search PATH,
14208       # but as the default location of the library.
14209       hardcode_minus_L=yes
14210       export_dynamic_flag_spec='${wl}-E'
14211       ;;
14212
14213     hpux10*)
14214       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14215         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14216       else
14217         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14218       fi
14219       if test "$with_gnu_ld" = no; then
14220         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14221         hardcode_libdir_flag_spec_ld='+b $libdir'
14222         hardcode_libdir_separator=:
14223         hardcode_direct=yes
14224         hardcode_direct_absolute=yes
14225         export_dynamic_flag_spec='${wl}-E'
14226         # hardcode_minus_L: Not really in the search PATH,
14227         # but as the default location of the library.
14228         hardcode_minus_L=yes
14229       fi
14230       ;;
14231
14232     hpux11*)
14233       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14234         case $host_cpu in
14235         hppa*64*)
14236           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14237           ;;
14238         ia64*)
14239           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240           ;;
14241         *)
14242           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14243           ;;
14244         esac
14245       else
14246         case $host_cpu in
14247         hppa*64*)
14248           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14249           ;;
14250         ia64*)
14251           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14252           ;;
14253         *)
14254           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14255           ;;
14256         esac
14257       fi
14258       if test "$with_gnu_ld" = no; then
14259         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14260         hardcode_libdir_separator=:
14261
14262         case $host_cpu in
14263         hppa*64*|ia64*)
14264           hardcode_direct=no
14265           hardcode_shlibpath_var=no
14266           ;;
14267         *)
14268           hardcode_direct=yes
14269           hardcode_direct_absolute=yes
14270           export_dynamic_flag_spec='${wl}-E'
14271
14272           # hardcode_minus_L: Not really in the search PATH,
14273           # but as the default location of the library.
14274           hardcode_minus_L=yes
14275           ;;
14276         esac
14277       fi
14278       ;;
14279
14280     irix5* | irix6* | nonstopux*)
14281       if test "$GCC" = yes; then
14282         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'
14283         # Try to use the -exported_symbol ld option, if it does not
14284         # work, assume that -exports_file does not work either and
14285         # implicitly export all symbols.
14286         save_LDFLAGS="$LDFLAGS"
14287         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14288         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h.  */
14290 int foo(void) {}
14291 _ACEOF
14292 if ac_fn_c_try_link "$LINENO"; then :
14293   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'
14294
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext \
14297     conftest$ac_exeext conftest.$ac_ext
14298         LDFLAGS="$save_LDFLAGS"
14299       else
14300         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'
14301         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'
14302       fi
14303       archive_cmds_need_lc='no'
14304       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14305       hardcode_libdir_separator=:
14306       inherit_rpath=yes
14307       link_all_deplibs=yes
14308       ;;
14309
14310     netbsd*)
14311       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14313       else
14314         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14315       fi
14316       hardcode_libdir_flag_spec='-R$libdir'
14317       hardcode_direct=yes
14318       hardcode_shlibpath_var=no
14319       ;;
14320
14321     newsos6)
14322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323       hardcode_direct=yes
14324       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14325       hardcode_libdir_separator=:
14326       hardcode_shlibpath_var=no
14327       ;;
14328
14329     *nto* | *qnx*)
14330       ;;
14331
14332     openbsd*)
14333       if test -f /usr/libexec/ld.so; then
14334         hardcode_direct=yes
14335         hardcode_shlibpath_var=no
14336         hardcode_direct_absolute=yes
14337         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14340           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14341           export_dynamic_flag_spec='${wl}-E'
14342         else
14343           case $host_os in
14344            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346              hardcode_libdir_flag_spec='-R$libdir'
14347              ;;
14348            *)
14349              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14351              ;;
14352           esac
14353         fi
14354       else
14355         ld_shlibs=no
14356       fi
14357       ;;
14358
14359     os2*)
14360       hardcode_libdir_flag_spec='-L$libdir'
14361       hardcode_minus_L=yes
14362       allow_undefined_flag=unsupported
14363       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'
14364       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14365       ;;
14366
14367     osf3*)
14368       if test "$GCC" = yes; then
14369         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14370         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'
14371       else
14372         allow_undefined_flag=' -expect_unresolved \*'
14373         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'
14374       fi
14375       archive_cmds_need_lc='no'
14376       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14377       hardcode_libdir_separator=:
14378       ;;
14379
14380     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14381       if test "$GCC" = yes; then
14382         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14383         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'
14384         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14385       else
14386         allow_undefined_flag=' -expect_unresolved \*'
14387         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'
14388         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~
14389         $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'
14390
14391         # Both c and cxx compiler support -rpath directly
14392         hardcode_libdir_flag_spec='-rpath $libdir'
14393       fi
14394       archive_cmds_need_lc='no'
14395       hardcode_libdir_separator=:
14396       ;;
14397
14398     solaris*)
14399       no_undefined_flag=' -z defs'
14400       if test "$GCC" = yes; then
14401         wlarc='${wl}'
14402         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14404           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14405       else
14406         case `$CC -V 2>&1` in
14407         *"Compilers 5.0"*)
14408           wlarc=''
14409           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14412           ;;
14413         *)
14414           wlarc='${wl}'
14415           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14416           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14417           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14418           ;;
14419         esac
14420       fi
14421       hardcode_libdir_flag_spec='-R$libdir'
14422       hardcode_shlibpath_var=no
14423       case $host_os in
14424       solaris2.[0-5] | solaris2.[0-5].*) ;;
14425       *)
14426         # The compiler driver will combine and reorder linker options,
14427         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14428         # but is careful enough not to reorder.
14429         # Supported since Solaris 2.6 (maybe 2.5.1?)
14430         if test "$GCC" = yes; then
14431           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14432         else
14433           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14434         fi
14435         ;;
14436       esac
14437       link_all_deplibs=yes
14438       ;;
14439
14440     sunos4*)
14441       if test "x$host_vendor" = xsequent; then
14442         # Use $CC to link under sequent, because it throws in some extra .o
14443         # files that make .init and .fini sections work.
14444         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14445       else
14446         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14447       fi
14448       hardcode_libdir_flag_spec='-L$libdir'
14449       hardcode_direct=yes
14450       hardcode_minus_L=yes
14451       hardcode_shlibpath_var=no
14452       ;;
14453
14454     sysv4)
14455       case $host_vendor in
14456         sni)
14457           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458           hardcode_direct=yes # is this really true???
14459         ;;
14460         siemens)
14461           ## LD is ld it makes a PLAMLIB
14462           ## CC just makes a GrossModule.
14463           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14464           reload_cmds='$CC -r -o $output$reload_objs'
14465           hardcode_direct=no
14466         ;;
14467         motorola)
14468           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14470         ;;
14471       esac
14472       runpath_var='LD_RUN_PATH'
14473       hardcode_shlibpath_var=no
14474       ;;
14475
14476     sysv4.3*)
14477       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478       hardcode_shlibpath_var=no
14479       export_dynamic_flag_spec='-Bexport'
14480       ;;
14481
14482     sysv4*MP*)
14483       if test -d /usr/nec; then
14484         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485         hardcode_shlibpath_var=no
14486         runpath_var=LD_RUN_PATH
14487         hardcode_runpath_var=yes
14488         ld_shlibs=yes
14489       fi
14490       ;;
14491
14492     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14493       no_undefined_flag='${wl}-z,text'
14494       archive_cmds_need_lc=no
14495       hardcode_shlibpath_var=no
14496       runpath_var='LD_RUN_PATH'
14497
14498       if test "$GCC" = yes; then
14499         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501       else
14502         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14504       fi
14505       ;;
14506
14507     sysv5* | sco3.2v5* | sco5v6*)
14508       # Note: We can NOT use -z defs as we might desire, because we do not
14509       # link with -lc, and that would cause any symbols used from libc to
14510       # always be unresolved, which means just about no library would
14511       # ever link correctly.  If we're not using GNU ld we use -z text
14512       # though, which does catch some bad symbols but isn't as heavy-handed
14513       # as -z defs.
14514       no_undefined_flag='${wl}-z,text'
14515       allow_undefined_flag='${wl}-z,nodefs'
14516       archive_cmds_need_lc=no
14517       hardcode_shlibpath_var=no
14518       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14519       hardcode_libdir_separator=':'
14520       link_all_deplibs=yes
14521       export_dynamic_flag_spec='${wl}-Bexport'
14522       runpath_var='LD_RUN_PATH'
14523
14524       if test "$GCC" = yes; then
14525         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527       else
14528         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14530       fi
14531       ;;
14532
14533     uts4*)
14534       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535       hardcode_libdir_flag_spec='-L$libdir'
14536       hardcode_shlibpath_var=no
14537       ;;
14538
14539     *)
14540       ld_shlibs=no
14541       ;;
14542     esac
14543
14544     if test x$host_vendor = xsni; then
14545       case $host in
14546       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14547         export_dynamic_flag_spec='${wl}-Blargedynsym'
14548         ;;
14549       esac
14550     fi
14551   fi
14552
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14554 $as_echo "$ld_shlibs" >&6; }
14555 test "$ld_shlibs" = no && can_build_shared=no
14556
14557 with_gnu_ld=$with_gnu_ld
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573 #
14574 # Do we need to explicitly link libc?
14575 #
14576 case "x$archive_cmds_need_lc" in
14577 x|xyes)
14578   # Assume -lc should be added
14579   archive_cmds_need_lc=yes
14580
14581   if test "$enable_shared" = yes && test "$GCC" = yes; then
14582     case $archive_cmds in
14583     *'~'*)
14584       # FIXME: we may have to deal with multi-command sequences.
14585       ;;
14586     '$CC '*)
14587       # Test whether the compiler implicitly links with -lc since on some
14588       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589       # to ld, don't add -lc before -lgcc.
14590       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14592       $RM conftest*
14593       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594
14595       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14596   (eval $ac_compile) 2>&5
14597   ac_status=$?
14598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599   test $ac_status = 0; } 2>conftest.err; then
14600         soname=conftest
14601         lib=conftest
14602         libobjs=conftest.$ac_objext
14603         deplibs=
14604         wl=$lt_prog_compiler_wl
14605         pic_flag=$lt_prog_compiler_pic
14606         compiler_flags=-v
14607         linker_flags=-v
14608         verstring=
14609         output_objdir=.
14610         libname=conftest
14611         lt_save_allow_undefined_flag=$allow_undefined_flag
14612         allow_undefined_flag=
14613         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14614   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14615   ac_status=$?
14616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617   test $ac_status = 0; }
14618         then
14619           archive_cmds_need_lc=no
14620         else
14621           archive_cmds_need_lc=yes
14622         fi
14623         allow_undefined_flag=$lt_save_allow_undefined_flag
14624       else
14625         cat conftest.err 1>&5
14626       fi
14627       $RM conftest*
14628       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14629 $as_echo "$archive_cmds_need_lc" >&6; }
14630       ;;
14631     esac
14632   fi
14633   ;;
14634 esac
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14793 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14794
14795 if test "$GCC" = yes; then
14796   case $host_os in
14797     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14798     *) lt_awk_arg="/^libraries:/" ;;
14799   esac
14800   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14801   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14802     # if the path contains ";" then we assume it to be the separator
14803     # otherwise default to the standard path separator (i.e. ":") - it is
14804     # assumed that no part of a normal pathname contains ";" but that should
14805     # okay in the real world where ";" in dirpaths is itself problematic.
14806     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14807   else
14808     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14809   fi
14810   # Ok, now we have the path, separated by spaces, we can step through it
14811   # and add multilib dir if necessary.
14812   lt_tmp_lt_search_path_spec=
14813   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14814   for lt_sys_path in $lt_search_path_spec; do
14815     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14816       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14817     else
14818       test -d "$lt_sys_path" && \
14819         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14820     fi
14821   done
14822   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14823 BEGIN {RS=" "; FS="/|\n";} {
14824   lt_foo="";
14825   lt_count=0;
14826   for (lt_i = NF; lt_i > 0; lt_i--) {
14827     if ($lt_i != "" && $lt_i != ".") {
14828       if ($lt_i == "..") {
14829         lt_count++;
14830       } else {
14831         if (lt_count == 0) {
14832           lt_foo="/" $lt_i lt_foo;
14833         } else {
14834           lt_count--;
14835         }
14836       }
14837     }
14838   }
14839   if (lt_foo != "") { lt_freq[lt_foo]++; }
14840   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14841 }'`
14842   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14843 else
14844   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14845 fi
14846 library_names_spec=
14847 libname_spec='lib$name'
14848 soname_spec=
14849 shrext_cmds=".so"
14850 postinstall_cmds=
14851 postuninstall_cmds=
14852 finish_cmds=
14853 finish_eval=
14854 shlibpath_var=
14855 shlibpath_overrides_runpath=unknown
14856 version_type=none
14857 dynamic_linker="$host_os ld.so"
14858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14859 need_lib_prefix=unknown
14860 hardcode_into_libs=no
14861
14862 # when you set need_version to no, make sure it does not cause -set_version
14863 # flags to be left without arguments
14864 need_version=unknown
14865
14866 case $host_os in
14867 aix3*)
14868   version_type=linux
14869   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14870   shlibpath_var=LIBPATH
14871
14872   # AIX 3 has no versioning support, so we append a major version to the name.
14873   soname_spec='${libname}${release}${shared_ext}$major'
14874   ;;
14875
14876 aix[4-9]*)
14877   version_type=linux
14878   need_lib_prefix=no
14879   need_version=no
14880   hardcode_into_libs=yes
14881   if test "$host_cpu" = ia64; then
14882     # AIX 5 supports IA64
14883     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14884     shlibpath_var=LD_LIBRARY_PATH
14885   else
14886     # With GCC up to 2.95.x, collect2 would create an import file
14887     # for dependence libraries.  The import file would start with
14888     # the line `#! .'.  This would cause the generated library to
14889     # depend on `.', always an invalid library.  This was fixed in
14890     # development snapshots of GCC prior to 3.0.
14891     case $host_os in
14892       aix4 | aix4.[01] | aix4.[01].*)
14893       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14894            echo ' yes '
14895            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14896         :
14897       else
14898         can_build_shared=no
14899       fi
14900       ;;
14901     esac
14902     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14903     # soname into executable. Probably we can add versioning support to
14904     # collect2, so additional links can be useful in future.
14905     if test "$aix_use_runtimelinking" = yes; then
14906       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14907       # instead of lib<name>.a to let people know that these are not
14908       # typical AIX shared libraries.
14909       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14910     else
14911       # We preserve .a as extension for shared libraries through AIX4.2
14912       # and later when we are not doing run time linking.
14913       library_names_spec='${libname}${release}.a $libname.a'
14914       soname_spec='${libname}${release}${shared_ext}$major'
14915     fi
14916     shlibpath_var=LIBPATH
14917   fi
14918   ;;
14919
14920 amigaos*)
14921   case $host_cpu in
14922   powerpc)
14923     # Since July 2007 AmigaOS4 officially supports .so libraries.
14924     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926     ;;
14927   m68k)
14928     library_names_spec='$libname.ixlibrary $libname.a'
14929     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930     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'
14931     ;;
14932   esac
14933   ;;
14934
14935 beos*)
14936   library_names_spec='${libname}${shared_ext}'
14937   dynamic_linker="$host_os ld.so"
14938   shlibpath_var=LIBRARY_PATH
14939   ;;
14940
14941 bsdi[45]*)
14942   version_type=linux
14943   need_version=no
14944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945   soname_spec='${libname}${release}${shared_ext}$major'
14946   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14947   shlibpath_var=LD_LIBRARY_PATH
14948   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14949   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14950   # the default ld.so.conf also contains /usr/contrib/lib and
14951   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14952   # libtool to hard-code these into programs
14953   ;;
14954
14955 cygwin* | mingw* | pw32* | cegcc*)
14956   version_type=windows
14957   shrext_cmds=".dll"
14958   need_version=no
14959   need_lib_prefix=no
14960
14961   case $GCC,$host_os in
14962   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14963     library_names_spec='$libname.dll.a'
14964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14965     postinstall_cmds='base_file=`basename \${file}`~
14966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14967       dldir=$destdir/`dirname \$dlpath`~
14968       test -d \$dldir || mkdir -p \$dldir~
14969       $install_prog $dir/$dlname \$dldir/$dlname~
14970       chmod a+x \$dldir/$dlname~
14971       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14972         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14973       fi'
14974     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14975       dlpath=$dir/\$dldll~
14976        $RM \$dlpath'
14977     shlibpath_overrides_runpath=yes
14978
14979     case $host_os in
14980     cygwin*)
14981       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14982       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14983       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14984       ;;
14985     mingw* | cegcc*)
14986       # MinGW DLLs use traditional 'lib' prefix
14987       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14990         # It is most probably a Windows format PATH printed by
14991         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14992         # path with ; separators, and with drive letters. We can handle the
14993         # drive letters (cygwin fileutils understands them), so leave them,
14994         # especially as we might pass files found there to a mingw objdump,
14995         # which wouldn't understand a cygwinified path. Ahh.
14996         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14997       else
14998         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14999       fi
15000       ;;
15001     pw32*)
15002       # pw32 DLLs use 'pw' prefix rather than 'lib'
15003       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15004       ;;
15005     esac
15006     ;;
15007
15008   *)
15009     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15010     ;;
15011   esac
15012   dynamic_linker='Win32 ld.exe'
15013   # FIXME: first we should search . and the directory the executable is in
15014   shlibpath_var=PATH
15015   ;;
15016
15017 darwin* | rhapsody*)
15018   dynamic_linker="$host_os dyld"
15019   version_type=darwin
15020   need_lib_prefix=no
15021   need_version=no
15022   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15023   soname_spec='${libname}${release}${major}$shared_ext'
15024   shlibpath_overrides_runpath=yes
15025   shlibpath_var=DYLD_LIBRARY_PATH
15026   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15027
15028   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15029   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15030   ;;
15031
15032 dgux*)
15033   version_type=linux
15034   need_lib_prefix=no
15035   need_version=no
15036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15037   soname_spec='${libname}${release}${shared_ext}$major'
15038   shlibpath_var=LD_LIBRARY_PATH
15039   ;;
15040
15041 freebsd1*)
15042   dynamic_linker=no
15043   ;;
15044
15045 freebsd* | dragonfly*)
15046   # DragonFly does not have aout.  When/if they implement a new
15047   # versioning mechanism, adjust this.
15048   if test -x /usr/bin/objformat; then
15049     objformat=`/usr/bin/objformat`
15050   else
15051     case $host_os in
15052     freebsd[123]*) objformat=aout ;;
15053     *) objformat=elf ;;
15054     esac
15055   fi
15056   version_type=freebsd-$objformat
15057   case $version_type in
15058     freebsd-elf*)
15059       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15060       need_version=no
15061       need_lib_prefix=no
15062       ;;
15063     freebsd-*)
15064       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15065       need_version=yes
15066       ;;
15067   esac
15068   shlibpath_var=LD_LIBRARY_PATH
15069   case $host_os in
15070   freebsd2*)
15071     shlibpath_overrides_runpath=yes
15072     ;;
15073   freebsd3.[01]* | freebsdelf3.[01]*)
15074     shlibpath_overrides_runpath=yes
15075     hardcode_into_libs=yes
15076     ;;
15077   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15078   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15079     shlibpath_overrides_runpath=no
15080     hardcode_into_libs=yes
15081     ;;
15082   *) # from 4.6 on, and DragonFly
15083     shlibpath_overrides_runpath=yes
15084     hardcode_into_libs=yes
15085     ;;
15086   esac
15087   ;;
15088
15089 gnu*)
15090   version_type=linux
15091   need_lib_prefix=no
15092   need_version=no
15093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094   soname_spec='${libname}${release}${shared_ext}$major'
15095   shlibpath_var=LD_LIBRARY_PATH
15096   hardcode_into_libs=yes
15097   ;;
15098
15099 hpux9* | hpux10* | hpux11*)
15100   # Give a soname corresponding to the major version so that dld.sl refuses to
15101   # link against other versions.
15102   version_type=sunos
15103   need_lib_prefix=no
15104   need_version=no
15105   case $host_cpu in
15106   ia64*)
15107     shrext_cmds='.so'
15108     hardcode_into_libs=yes
15109     dynamic_linker="$host_os dld.so"
15110     shlibpath_var=LD_LIBRARY_PATH
15111     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113     soname_spec='${libname}${release}${shared_ext}$major'
15114     if test "X$HPUX_IA64_MODE" = X32; then
15115       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15116     else
15117       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15118     fi
15119     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15120     ;;
15121   hppa*64*)
15122     shrext_cmds='.sl'
15123     hardcode_into_libs=yes
15124     dynamic_linker="$host_os dld.sl"
15125     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128     soname_spec='${libname}${release}${shared_ext}$major'
15129     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15131     ;;
15132   *)
15133     shrext_cmds='.sl'
15134     dynamic_linker="$host_os dld.sl"
15135     shlibpath_var=SHLIB_PATH
15136     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138     soname_spec='${libname}${release}${shared_ext}$major'
15139     ;;
15140   esac
15141   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15142   postinstall_cmds='chmod 555 $lib'
15143   ;;
15144
15145 interix[3-9]*)
15146   version_type=linux
15147   need_lib_prefix=no
15148   need_version=no
15149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15150   soname_spec='${libname}${release}${shared_ext}$major'
15151   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15152   shlibpath_var=LD_LIBRARY_PATH
15153   shlibpath_overrides_runpath=no
15154   hardcode_into_libs=yes
15155   ;;
15156
15157 irix5* | irix6* | nonstopux*)
15158   case $host_os in
15159     nonstopux*) version_type=nonstopux ;;
15160     *)
15161         if test "$lt_cv_prog_gnu_ld" = yes; then
15162                 version_type=linux
15163         else
15164                 version_type=irix
15165         fi ;;
15166   esac
15167   need_lib_prefix=no
15168   need_version=no
15169   soname_spec='${libname}${release}${shared_ext}$major'
15170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15171   case $host_os in
15172   irix5* | nonstopux*)
15173     libsuff= shlibsuff=
15174     ;;
15175   *)
15176     case $LD in # libtool.m4 will add one of these switches to LD
15177     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15178       libsuff= shlibsuff= libmagic=32-bit;;
15179     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15180       libsuff=32 shlibsuff=N32 libmagic=N32;;
15181     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15182       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15183     *) libsuff= shlibsuff= libmagic=never-match;;
15184     esac
15185     ;;
15186   esac
15187   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15188   shlibpath_overrides_runpath=no
15189   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15190   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15191   hardcode_into_libs=yes
15192   ;;
15193
15194 # No shared lib support for Linux oldld, aout, or coff.
15195 linux*oldld* | linux*aout* | linux*coff*)
15196   dynamic_linker=no
15197   ;;
15198
15199 # This must be Linux ELF.
15200 linux* | k*bsd*-gnu)
15201   version_type=linux
15202   need_lib_prefix=no
15203   need_version=no
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205   soname_spec='${libname}${release}${shared_ext}$major'
15206   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15207   shlibpath_var=LD_LIBRARY_PATH
15208   shlibpath_overrides_runpath=no
15209   # Some binutils ld are patched to set DT_RUNPATH
15210   save_LDFLAGS=$LDFLAGS
15211   save_libdir=$libdir
15212   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15213        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h.  */
15216
15217 int
15218 main ()
15219 {
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 if ac_fn_c_try_link "$LINENO"; then :
15226   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15227   shlibpath_overrides_runpath=yes
15228 fi
15229 fi
15230 rm -f core conftest.err conftest.$ac_objext \
15231     conftest$ac_exeext conftest.$ac_ext
15232   LDFLAGS=$save_LDFLAGS
15233   libdir=$save_libdir
15234
15235   # This implies no fast_install, which is unacceptable.
15236   # Some rework will be needed to allow for fast_install
15237   # before this can be enabled.
15238   hardcode_into_libs=yes
15239
15240   # Add ABI-specific directories to the system library path.
15241   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15242
15243   # Append ld.so.conf contents to the search path
15244   if test -f /etc/ld.so.conf; then
15245     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' ' '`
15246     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15247   fi
15248
15249   # We used to test for /lib/ld.so.1 and disable shared libraries on
15250   # powerpc, because MkLinux only supported shared libraries with the
15251   # GNU dynamic linker.  Since this was broken with cross compilers,
15252   # most powerpc-linux boxes support dynamic linking these days and
15253   # people can always --disable-shared, the test was removed, and we
15254   # assume the GNU/Linux dynamic linker is in use.
15255   dynamic_linker='GNU/Linux ld.so'
15256   ;;
15257
15258 netbsd*)
15259   version_type=sunos
15260   need_lib_prefix=no
15261   need_version=no
15262   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15263     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265     dynamic_linker='NetBSD (a.out) ld.so'
15266   else
15267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268     soname_spec='${libname}${release}${shared_ext}$major'
15269     dynamic_linker='NetBSD ld.elf_so'
15270   fi
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=yes
15273   hardcode_into_libs=yes
15274   ;;
15275
15276 newsos6)
15277   version_type=linux
15278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279   shlibpath_var=LD_LIBRARY_PATH
15280   shlibpath_overrides_runpath=yes
15281   ;;
15282
15283 *nto* | *qnx*)
15284   version_type=qnx
15285   need_lib_prefix=no
15286   need_version=no
15287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288   soname_spec='${libname}${release}${shared_ext}$major'
15289   shlibpath_var=LD_LIBRARY_PATH
15290   shlibpath_overrides_runpath=no
15291   hardcode_into_libs=yes
15292   dynamic_linker='ldqnx.so'
15293   ;;
15294
15295 openbsd*)
15296   version_type=sunos
15297   sys_lib_dlsearch_path_spec="/usr/lib"
15298   need_lib_prefix=no
15299   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15300   case $host_os in
15301     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15302     *)                          need_version=no  ;;
15303   esac
15304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306   shlibpath_var=LD_LIBRARY_PATH
15307   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15308     case $host_os in
15309       openbsd2.[89] | openbsd2.[89].*)
15310         shlibpath_overrides_runpath=no
15311         ;;
15312       *)
15313         shlibpath_overrides_runpath=yes
15314         ;;
15315       esac
15316   else
15317     shlibpath_overrides_runpath=yes
15318   fi
15319   ;;
15320
15321 os2*)
15322   libname_spec='$name'
15323   shrext_cmds=".dll"
15324   need_lib_prefix=no
15325   library_names_spec='$libname${shared_ext} $libname.a'
15326   dynamic_linker='OS/2 ld.exe'
15327   shlibpath_var=LIBPATH
15328   ;;
15329
15330 osf3* | osf4* | osf5*)
15331   version_type=osf
15332   need_lib_prefix=no
15333   need_version=no
15334   soname_spec='${libname}${release}${shared_ext}$major'
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336   shlibpath_var=LD_LIBRARY_PATH
15337   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15338   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15339   ;;
15340
15341 rdos*)
15342   dynamic_linker=no
15343   ;;
15344
15345 solaris*)
15346   version_type=linux
15347   need_lib_prefix=no
15348   need_version=no
15349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350   soname_spec='${libname}${release}${shared_ext}$major'
15351   shlibpath_var=LD_LIBRARY_PATH
15352   shlibpath_overrides_runpath=yes
15353   hardcode_into_libs=yes
15354   # ldd complains unless libraries are executable
15355   postinstall_cmds='chmod +x $lib'
15356   ;;
15357
15358 sunos4*)
15359   version_type=sunos
15360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15362   shlibpath_var=LD_LIBRARY_PATH
15363   shlibpath_overrides_runpath=yes
15364   if test "$with_gnu_ld" = yes; then
15365     need_lib_prefix=no
15366   fi
15367   need_version=yes
15368   ;;
15369
15370 sysv4 | sysv4.3*)
15371   version_type=linux
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   case $host_vendor in
15376     sni)
15377       shlibpath_overrides_runpath=no
15378       need_lib_prefix=no
15379       runpath_var=LD_RUN_PATH
15380       ;;
15381     siemens)
15382       need_lib_prefix=no
15383       ;;
15384     motorola)
15385       need_lib_prefix=no
15386       need_version=no
15387       shlibpath_overrides_runpath=no
15388       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15389       ;;
15390   esac
15391   ;;
15392
15393 sysv4*MP*)
15394   if test -d /usr/nec ;then
15395     version_type=linux
15396     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15397     soname_spec='$libname${shared_ext}.$major'
15398     shlibpath_var=LD_LIBRARY_PATH
15399   fi
15400   ;;
15401
15402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15403   version_type=freebsd-elf
15404   need_lib_prefix=no
15405   need_version=no
15406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15407   soname_spec='${libname}${release}${shared_ext}$major'
15408   shlibpath_var=LD_LIBRARY_PATH
15409   shlibpath_overrides_runpath=yes
15410   hardcode_into_libs=yes
15411   if test "$with_gnu_ld" = yes; then
15412     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15413   else
15414     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15415     case $host_os in
15416       sco3.2v5*)
15417         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15418         ;;
15419     esac
15420   fi
15421   sys_lib_dlsearch_path_spec='/usr/lib'
15422   ;;
15423
15424 tpf*)
15425   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15426   version_type=linux
15427   need_lib_prefix=no
15428   need_version=no
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430   shlibpath_var=LD_LIBRARY_PATH
15431   shlibpath_overrides_runpath=no
15432   hardcode_into_libs=yes
15433   ;;
15434
15435 uts4*)
15436   version_type=linux
15437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438   soname_spec='${libname}${release}${shared_ext}$major'
15439   shlibpath_var=LD_LIBRARY_PATH
15440   ;;
15441
15442 *)
15443   dynamic_linker=no
15444   ;;
15445 esac
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15447 $as_echo "$dynamic_linker" >&6; }
15448 test "$dynamic_linker" = no && can_build_shared=no
15449
15450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15451 if test "$GCC" = yes; then
15452   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15453 fi
15454
15455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15456   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15457 fi
15458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15459   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15460 fi
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15549 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15550 hardcode_action=
15551 if test -n "$hardcode_libdir_flag_spec" ||
15552    test -n "$runpath_var" ||
15553    test "X$hardcode_automatic" = "Xyes" ; then
15554
15555   # We can hardcode non-existent directories.
15556   if test "$hardcode_direct" != no &&
15557      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15558      # have to relink, otherwise we might link with an installed library
15559      # when we should be linking with a yet-to-be-installed one
15560      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15561      test "$hardcode_minus_L" != no; then
15562     # Linking always hardcodes the temporary library directory.
15563     hardcode_action=relink
15564   else
15565     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15566     hardcode_action=immediate
15567   fi
15568 else
15569   # We cannot hardcode anything, or else we can only hardcode existing
15570   # directories.
15571   hardcode_action=unsupported
15572 fi
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15574 $as_echo "$hardcode_action" >&6; }
15575
15576 if test "$hardcode_action" = relink ||
15577    test "$inherit_rpath" = yes; then
15578   # Fast installation is not supported
15579   enable_fast_install=no
15580 elif test "$shlibpath_overrides_runpath" = yes ||
15581      test "$enable_shared" = no; then
15582   # Fast installation is not necessary
15583   enable_fast_install=needless
15584 fi
15585
15586
15587
15588
15589
15590
15591   if test "x$enable_dlopen" != xyes; then
15592   enable_dlopen=unknown
15593   enable_dlopen_self=unknown
15594   enable_dlopen_self_static=unknown
15595 else
15596   lt_cv_dlopen=no
15597   lt_cv_dlopen_libs=
15598
15599   case $host_os in
15600   beos*)
15601     lt_cv_dlopen="load_add_on"
15602     lt_cv_dlopen_libs=
15603     lt_cv_dlopen_self=yes
15604     ;;
15605
15606   mingw* | pw32* | cegcc*)
15607     lt_cv_dlopen="LoadLibrary"
15608     lt_cv_dlopen_libs=
15609     ;;
15610
15611   cygwin*)
15612     lt_cv_dlopen="dlopen"
15613     lt_cv_dlopen_libs=
15614     ;;
15615
15616   darwin*)
15617   # if libdl is installed we need to link against it
15618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15621   $as_echo_n "(cached) " >&6
15622 else
15623   ac_check_lib_save_LIBS=$LIBS
15624 LIBS="-ldl  $LIBS"
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627
15628 /* Override any GCC internal prototype to avoid an error.
15629    Use char because int might match the return type of a GCC
15630    builtin and then its argument prototype would still apply.  */
15631 #ifdef __cplusplus
15632 extern "C"
15633 #endif
15634 char dlopen ();
15635 int
15636 main ()
15637 {
15638 return dlopen ();
15639   ;
15640   return 0;
15641 }
15642 _ACEOF
15643 if ac_fn_c_try_link "$LINENO"; then :
15644   ac_cv_lib_dl_dlopen=yes
15645 else
15646   ac_cv_lib_dl_dlopen=no
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext \
15649     conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15651 fi
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15654 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15655   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15656 else
15657
15658     lt_cv_dlopen="dyld"
15659     lt_cv_dlopen_libs=
15660     lt_cv_dlopen_self=yes
15661
15662 fi
15663
15664     ;;
15665
15666   *)
15667     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15668 if test "x$ac_cv_func_shl_load" = x""yes; then :
15669   lt_cv_dlopen="shl_load"
15670 else
15671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15672 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15673 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15674   $as_echo_n "(cached) " >&6
15675 else
15676   ac_check_lib_save_LIBS=$LIBS
15677 LIBS="-ldld  $LIBS"
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h.  */
15680
15681 /* Override any GCC internal prototype to avoid an error.
15682    Use char because int might match the return type of a GCC
15683    builtin and then its argument prototype would still apply.  */
15684 #ifdef __cplusplus
15685 extern "C"
15686 #endif
15687 char shl_load ();
15688 int
15689 main ()
15690 {
15691 return shl_load ();
15692   ;
15693   return 0;
15694 }
15695 _ACEOF
15696 if ac_fn_c_try_link "$LINENO"; then :
15697   ac_cv_lib_dld_shl_load=yes
15698 else
15699   ac_cv_lib_dld_shl_load=no
15700 fi
15701 rm -f core conftest.err conftest.$ac_objext \
15702     conftest$ac_exeext conftest.$ac_ext
15703 LIBS=$ac_check_lib_save_LIBS
15704 fi
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15706 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15707 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15708   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15709 else
15710   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15711 if test "x$ac_cv_func_dlopen" = x""yes; then :
15712   lt_cv_dlopen="dlopen"
15713 else
15714   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15717   $as_echo_n "(cached) " >&6
15718 else
15719   ac_check_lib_save_LIBS=$LIBS
15720 LIBS="-ldl  $LIBS"
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h.  */
15723
15724 /* Override any GCC internal prototype to avoid an error.
15725    Use char because int might match the return type of a GCC
15726    builtin and then its argument prototype would still apply.  */
15727 #ifdef __cplusplus
15728 extern "C"
15729 #endif
15730 char dlopen ();
15731 int
15732 main ()
15733 {
15734 return dlopen ();
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_link "$LINENO"; then :
15740   ac_cv_lib_dl_dlopen=yes
15741 else
15742   ac_cv_lib_dl_dlopen=no
15743 fi
15744 rm -f core conftest.err conftest.$ac_objext \
15745     conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15747 fi
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15752 else
15753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15754 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15755 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15756   $as_echo_n "(cached) " >&6
15757 else
15758   ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-lsvld  $LIBS"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h.  */
15762
15763 /* Override any GCC internal prototype to avoid an error.
15764    Use char because int might match the return type of a GCC
15765    builtin and then its argument prototype would still apply.  */
15766 #ifdef __cplusplus
15767 extern "C"
15768 #endif
15769 char dlopen ();
15770 int
15771 main ()
15772 {
15773 return dlopen ();
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779   ac_cv_lib_svld_dlopen=yes
15780 else
15781   ac_cv_lib_svld_dlopen=no
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784     conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15786 fi
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15788 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15789 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15790   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15791 else
15792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15793 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15794 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15795   $as_echo_n "(cached) " >&6
15796 else
15797   ac_check_lib_save_LIBS=$LIBS
15798 LIBS="-ldld  $LIBS"
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h.  */
15801
15802 /* Override any GCC internal prototype to avoid an error.
15803    Use char because int might match the return type of a GCC
15804    builtin and then its argument prototype would still apply.  */
15805 #ifdef __cplusplus
15806 extern "C"
15807 #endif
15808 char dld_link ();
15809 int
15810 main ()
15811 {
15812 return dld_link ();
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 if ac_fn_c_try_link "$LINENO"; then :
15818   ac_cv_lib_dld_dld_link=yes
15819 else
15820   ac_cv_lib_dld_dld_link=no
15821 fi
15822 rm -f core conftest.err conftest.$ac_objext \
15823     conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15827 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15828 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15829   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15830 fi
15831
15832
15833 fi
15834
15835
15836 fi
15837
15838
15839 fi
15840
15841
15842 fi
15843
15844
15845 fi
15846
15847     ;;
15848   esac
15849
15850   if test "x$lt_cv_dlopen" != xno; then
15851     enable_dlopen=yes
15852   else
15853     enable_dlopen=no
15854   fi
15855
15856   case $lt_cv_dlopen in
15857   dlopen)
15858     save_CPPFLAGS="$CPPFLAGS"
15859     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15860
15861     save_LDFLAGS="$LDFLAGS"
15862     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15863
15864     save_LIBS="$LIBS"
15865     LIBS="$lt_cv_dlopen_libs $LIBS"
15866
15867     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15868 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15869 if test "${lt_cv_dlopen_self+set}" = set; then :
15870   $as_echo_n "(cached) " >&6
15871 else
15872           if test "$cross_compiling" = yes; then :
15873   lt_cv_dlopen_self=cross
15874 else
15875   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15876   lt_status=$lt_dlunknown
15877   cat > conftest.$ac_ext <<_LT_EOF
15878 #line 15878 "configure"
15879 #include "confdefs.h"
15880
15881 #if HAVE_DLFCN_H
15882 #include <dlfcn.h>
15883 #endif
15884
15885 #include <stdio.h>
15886
15887 #ifdef RTLD_GLOBAL
15888 #  define LT_DLGLOBAL           RTLD_GLOBAL
15889 #else
15890 #  ifdef DL_GLOBAL
15891 #    define LT_DLGLOBAL         DL_GLOBAL
15892 #  else
15893 #    define LT_DLGLOBAL         0
15894 #  endif
15895 #endif
15896
15897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15898    find out it does not work in some platform. */
15899 #ifndef LT_DLLAZY_OR_NOW
15900 #  ifdef RTLD_LAZY
15901 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15902 #  else
15903 #    ifdef DL_LAZY
15904 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15905 #    else
15906 #      ifdef RTLD_NOW
15907 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15908 #      else
15909 #        ifdef DL_NOW
15910 #          define LT_DLLAZY_OR_NOW      DL_NOW
15911 #        else
15912 #          define LT_DLLAZY_OR_NOW      0
15913 #        endif
15914 #      endif
15915 #    endif
15916 #  endif
15917 #endif
15918
15919 void fnord() { int i=42;}
15920 int main ()
15921 {
15922   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15923   int status = $lt_dlunknown;
15924
15925   if (self)
15926     {
15927       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15928       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15929       /* dlclose (self); */
15930     }
15931   else
15932     puts (dlerror ());
15933
15934   return status;
15935 }
15936 _LT_EOF
15937   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15938   (eval $ac_link) 2>&5
15939   ac_status=$?
15940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15942     (./conftest; exit; ) >&5 2>/dev/null
15943     lt_status=$?
15944     case x$lt_status in
15945       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15946       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15947       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15948     esac
15949   else :
15950     # compilation failed
15951     lt_cv_dlopen_self=no
15952   fi
15953 fi
15954 rm -fr conftest*
15955
15956
15957 fi
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15959 $as_echo "$lt_cv_dlopen_self" >&6; }
15960
15961     if test "x$lt_cv_dlopen_self" = xyes; then
15962       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15963       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15964 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15965 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15966   $as_echo_n "(cached) " >&6
15967 else
15968           if test "$cross_compiling" = yes; then :
15969   lt_cv_dlopen_self_static=cross
15970 else
15971   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15972   lt_status=$lt_dlunknown
15973   cat > conftest.$ac_ext <<_LT_EOF
15974 #line 15974 "configure"
15975 #include "confdefs.h"
15976
15977 #if HAVE_DLFCN_H
15978 #include <dlfcn.h>
15979 #endif
15980
15981 #include <stdio.h>
15982
15983 #ifdef RTLD_GLOBAL
15984 #  define LT_DLGLOBAL           RTLD_GLOBAL
15985 #else
15986 #  ifdef DL_GLOBAL
15987 #    define LT_DLGLOBAL         DL_GLOBAL
15988 #  else
15989 #    define LT_DLGLOBAL         0
15990 #  endif
15991 #endif
15992
15993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15994    find out it does not work in some platform. */
15995 #ifndef LT_DLLAZY_OR_NOW
15996 #  ifdef RTLD_LAZY
15997 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15998 #  else
15999 #    ifdef DL_LAZY
16000 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16001 #    else
16002 #      ifdef RTLD_NOW
16003 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16004 #      else
16005 #        ifdef DL_NOW
16006 #          define LT_DLLAZY_OR_NOW      DL_NOW
16007 #        else
16008 #          define LT_DLLAZY_OR_NOW      0
16009 #        endif
16010 #      endif
16011 #    endif
16012 #  endif
16013 #endif
16014
16015 void fnord() { int i=42;}
16016 int main ()
16017 {
16018   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16019   int status = $lt_dlunknown;
16020
16021   if (self)
16022     {
16023       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16024       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16025       /* dlclose (self); */
16026     }
16027   else
16028     puts (dlerror ());
16029
16030   return status;
16031 }
16032 _LT_EOF
16033   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16034   (eval $ac_link) 2>&5
16035   ac_status=$?
16036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16037   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16038     (./conftest; exit; ) >&5 2>/dev/null
16039     lt_status=$?
16040     case x$lt_status in
16041       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16042       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16043       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16044     esac
16045   else :
16046     # compilation failed
16047     lt_cv_dlopen_self_static=no
16048   fi
16049 fi
16050 rm -fr conftest*
16051
16052
16053 fi
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16055 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16056     fi
16057
16058     CPPFLAGS="$save_CPPFLAGS"
16059     LDFLAGS="$save_LDFLAGS"
16060     LIBS="$save_LIBS"
16061     ;;
16062   esac
16063
16064   case $lt_cv_dlopen_self in
16065   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16066   *) enable_dlopen_self=unknown ;;
16067   esac
16068
16069   case $lt_cv_dlopen_self_static in
16070   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16071   *) enable_dlopen_self_static=unknown ;;
16072   esac
16073 fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091 striplib=
16092 old_striplib=
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16094 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16095 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16096   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16097   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16099 $as_echo "yes" >&6; }
16100 else
16101 # FIXME - insert some real tests, host_os isn't really good enough
16102   case $host_os in
16103   darwin*)
16104     if test -n "$STRIP" ; then
16105       striplib="$STRIP -x"
16106       old_striplib="$STRIP -S"
16107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16108 $as_echo "yes" >&6; }
16109     else
16110       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16112     fi
16113     ;;
16114   *)
16115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16117     ;;
16118   esac
16119 fi
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132   # Report which library types will actually be built
16133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16134 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16136 $as_echo "$can_build_shared" >&6; }
16137
16138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16139 $as_echo_n "checking whether to build shared libraries... " >&6; }
16140   test "$can_build_shared" = "no" && enable_shared=no
16141
16142   # On AIX, shared libraries and static libraries use the same namespace, and
16143   # are all built from PIC.
16144   case $host_os in
16145   aix3*)
16146     test "$enable_shared" = yes && enable_static=no
16147     if test -n "$RANLIB"; then
16148       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16149       postinstall_cmds='$RANLIB $lib'
16150     fi
16151     ;;
16152
16153   aix[4-9]*)
16154     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16155       test "$enable_shared" = yes && enable_static=no
16156     fi
16157     ;;
16158   esac
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16160 $as_echo "$enable_shared" >&6; }
16161
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16163 $as_echo_n "checking whether to build static libraries... " >&6; }
16164   # Make sure either enable_shared or enable_static is yes.
16165   test "$enable_shared" = yes || enable_static=yes
16166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16167 $as_echo "$enable_static" >&6; }
16168
16169
16170
16171
16172 fi
16173 ac_ext=c
16174 ac_cpp='$CPP $CPPFLAGS'
16175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16178
16179 CC="$lt_save_CC"
16180
16181
16182 ac_ext=cpp
16183 ac_cpp='$CXXCPP $CPPFLAGS'
16184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16187
16188 archive_cmds_need_lc_CXX=no
16189 allow_undefined_flag_CXX=
16190 always_export_symbols_CXX=no
16191 archive_expsym_cmds_CXX=
16192 compiler_needs_object_CXX=no
16193 export_dynamic_flag_spec_CXX=
16194 hardcode_direct_CXX=no
16195 hardcode_direct_absolute_CXX=no
16196 hardcode_libdir_flag_spec_CXX=
16197 hardcode_libdir_flag_spec_ld_CXX=
16198 hardcode_libdir_separator_CXX=
16199 hardcode_minus_L_CXX=no
16200 hardcode_shlibpath_var_CXX=unsupported
16201 hardcode_automatic_CXX=no
16202 inherit_rpath_CXX=no
16203 module_cmds_CXX=
16204 module_expsym_cmds_CXX=
16205 link_all_deplibs_CXX=unknown
16206 old_archive_cmds_CXX=$old_archive_cmds
16207 no_undefined_flag_CXX=
16208 whole_archive_flag_spec_CXX=
16209 enable_shared_with_static_runtimes_CXX=no
16210
16211 # Source file extension for C++ test sources.
16212 ac_ext=cpp
16213
16214 # Object file extension for compiled C++ test sources.
16215 objext=o
16216 objext_CXX=$objext
16217
16218 # No sense in running all these tests if we already determined that
16219 # the CXX compiler isn't working.  Some variables (like enable_shared)
16220 # are currently assumed to apply to all compilers on this platform,
16221 # and will be corrupted by setting them based on a non-working compiler.
16222 if test "$_lt_caught_CXX_error" != yes; then
16223   # Code to be used in simple compile tests
16224   lt_simple_compile_test_code="int some_variable = 0;"
16225
16226   # Code to be used in simple link tests
16227   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16228
16229   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16230
16231
16232
16233
16234
16235
16236 # If no C compiler was specified, use CC.
16237 LTCC=${LTCC-"$CC"}
16238
16239 # If no C compiler flags were specified, use CFLAGS.
16240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16241
16242 # Allow CC to be a program name with arguments.
16243 compiler=$CC
16244
16245
16246   # save warnings/boilerplate of simple test code
16247   ac_outfile=conftest.$ac_objext
16248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16250 _lt_compiler_boilerplate=`cat conftest.err`
16251 $RM conftest*
16252
16253   ac_outfile=conftest.$ac_objext
16254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16256 _lt_linker_boilerplate=`cat conftest.err`
16257 $RM -r conftest*
16258
16259
16260   # Allow CC to be a program name with arguments.
16261   lt_save_CC=$CC
16262   lt_save_LD=$LD
16263   lt_save_GCC=$GCC
16264   GCC=$GXX
16265   lt_save_with_gnu_ld=$with_gnu_ld
16266   lt_save_path_LD=$lt_cv_path_LD
16267   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16268     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16269   else
16270     $as_unset lt_cv_prog_gnu_ld
16271   fi
16272   if test -n "${lt_cv_path_LDCXX+set}"; then
16273     lt_cv_path_LD=$lt_cv_path_LDCXX
16274   else
16275     $as_unset lt_cv_path_LD
16276   fi
16277   test -z "${LDCXX+set}" || LD=$LDCXX
16278   CC=${CXX-"c++"}
16279   compiler=$CC
16280   compiler_CXX=$CC
16281   for cc_temp in $compiler""; do
16282   case $cc_temp in
16283     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16285     \-*) ;;
16286     *) break;;
16287   esac
16288 done
16289 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16290
16291
16292   if test -n "$compiler"; then
16293     # We don't want -fno-exception when compiling C++ code, so set the
16294     # no_builtin_flag separately
16295     if test "$GXX" = yes; then
16296       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16297     else
16298       lt_prog_compiler_no_builtin_flag_CXX=
16299     fi
16300
16301     if test "$GXX" = yes; then
16302       # Set up default GNU C++ configuration
16303
16304
16305
16306 # Check whether --with-gnu-ld was given.
16307 if test "${with_gnu_ld+set}" = set; then :
16308   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16309 else
16310   with_gnu_ld=no
16311 fi
16312
16313 ac_prog=ld
16314 if test "$GCC" = yes; then
16315   # Check if gcc -print-prog-name=ld gives a path.
16316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16317 $as_echo_n "checking for ld used by $CC... " >&6; }
16318   case $host in
16319   *-*-mingw*)
16320     # gcc leaves a trailing carriage return which upsets mingw
16321     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16322   *)
16323     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16324   esac
16325   case $ac_prog in
16326     # Accept absolute paths.
16327     [\\/]* | ?:[\\/]*)
16328       re_direlt='/[^/][^/]*/\.\./'
16329       # Canonicalize the pathname of ld
16330       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16331       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16332         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16333       done
16334       test -z "$LD" && LD="$ac_prog"
16335       ;;
16336   "")
16337     # If it fails, then pretend we aren't using GCC.
16338     ac_prog=ld
16339     ;;
16340   *)
16341     # If it is relative, then search for the first ld in PATH.
16342     with_gnu_ld=unknown
16343     ;;
16344   esac
16345 elif test "$with_gnu_ld" = yes; then
16346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16347 $as_echo_n "checking for GNU ld... " >&6; }
16348 else
16349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16350 $as_echo_n "checking for non-GNU ld... " >&6; }
16351 fi
16352 if test "${lt_cv_path_LD+set}" = set; then :
16353   $as_echo_n "(cached) " >&6
16354 else
16355   if test -z "$LD"; then
16356   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357   for ac_dir in $PATH; do
16358     IFS="$lt_save_ifs"
16359     test -z "$ac_dir" && ac_dir=.
16360     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16361       lt_cv_path_LD="$ac_dir/$ac_prog"
16362       # Check to see if the program is GNU ld.  I'd rather use --version,
16363       # but apparently some variants of GNU ld only accept -v.
16364       # Break only if it was the GNU/non-GNU ld that we prefer.
16365       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16366       *GNU* | *'with BFD'*)
16367         test "$with_gnu_ld" != no && break
16368         ;;
16369       *)
16370         test "$with_gnu_ld" != yes && break
16371         ;;
16372       esac
16373     fi
16374   done
16375   IFS="$lt_save_ifs"
16376 else
16377   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16378 fi
16379 fi
16380
16381 LD="$lt_cv_path_LD"
16382 if test -n "$LD"; then
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16384 $as_echo "$LD" >&6; }
16385 else
16386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16388 fi
16389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16393   $as_echo_n "(cached) " >&6
16394 else
16395   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16396 case `$LD -v 2>&1 </dev/null` in
16397 *GNU* | *'with BFD'*)
16398   lt_cv_prog_gnu_ld=yes
16399   ;;
16400 *)
16401   lt_cv_prog_gnu_ld=no
16402   ;;
16403 esac
16404 fi
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16407 with_gnu_ld=$lt_cv_prog_gnu_ld
16408
16409
16410
16411
16412
16413
16414
16415       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16416       # archiving commands below assume that GNU ld is being used.
16417       if test "$with_gnu_ld" = yes; then
16418         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419         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'
16420
16421         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16422         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16423
16424         # If archive_cmds runs LD, not CC, wlarc should be empty
16425         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16426         #     investigate it a little bit more. (MM)
16427         wlarc='${wl}'
16428
16429         # ancient GNU ld didn't support --whole-archive et. al.
16430         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16431           $GREP 'no-whole-archive' > /dev/null; then
16432           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16433         else
16434           whole_archive_flag_spec_CXX=
16435         fi
16436       else
16437         with_gnu_ld=no
16438         wlarc=
16439
16440         # A generic and very simple default shared library creation
16441         # command for GNU C++ for the case where it uses the native
16442         # linker, instead of GNU ld.  If possible, this setting should
16443         # overridden to take advantage of the native linker features on
16444         # the platform it is being used on.
16445         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16446       fi
16447
16448       # Commands to make compiler produce verbose output that lists
16449       # what "hidden" libraries, object files and flags are used when
16450       # linking a shared library.
16451       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16452
16453     else
16454       GXX=no
16455       with_gnu_ld=no
16456       wlarc=
16457     fi
16458
16459     # PORTME: fill in a description of your system's C++ link characteristics
16460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16462     ld_shlibs_CXX=yes
16463     case $host_os in
16464       aix3*)
16465         # FIXME: insert proper C++ library support
16466         ld_shlibs_CXX=no
16467         ;;
16468       aix[4-9]*)
16469         if test "$host_cpu" = ia64; then
16470           # On IA64, the linker does run time linking by default, so we don't
16471           # have to do anything special.
16472           aix_use_runtimelinking=no
16473           exp_sym_flag='-Bexport'
16474           no_entry_flag=""
16475         else
16476           aix_use_runtimelinking=no
16477
16478           # Test if we are trying to use run time linking or normal
16479           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16480           # need to do runtime linking.
16481           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16482             for ld_flag in $LDFLAGS; do
16483               case $ld_flag in
16484               *-brtl*)
16485                 aix_use_runtimelinking=yes
16486                 break
16487                 ;;
16488               esac
16489             done
16490             ;;
16491           esac
16492
16493           exp_sym_flag='-bexport'
16494           no_entry_flag='-bnoentry'
16495         fi
16496
16497         # When large executables or shared objects are built, AIX ld can
16498         # have problems creating the table of contents.  If linking a library
16499         # or program results in "error TOC overflow" add -mminimal-toc to
16500         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16501         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16502
16503         archive_cmds_CXX=''
16504         hardcode_direct_CXX=yes
16505         hardcode_direct_absolute_CXX=yes
16506         hardcode_libdir_separator_CXX=':'
16507         link_all_deplibs_CXX=yes
16508         file_list_spec_CXX='${wl}-f,'
16509
16510         if test "$GXX" = yes; then
16511           case $host_os in aix4.[012]|aix4.[012].*)
16512           # We only want to do this on AIX 4.2 and lower, the check
16513           # below for broken collect2 doesn't work under 4.3+
16514           collect2name=`${CC} -print-prog-name=collect2`
16515           if test -f "$collect2name" &&
16516              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16517           then
16518             # We have reworked collect2
16519             :
16520           else
16521             # We have old collect2
16522             hardcode_direct_CXX=unsupported
16523             # It fails to find uninstalled libraries when the uninstalled
16524             # path is not listed in the libpath.  Setting hardcode_minus_L
16525             # to unsupported forces relinking
16526             hardcode_minus_L_CXX=yes
16527             hardcode_libdir_flag_spec_CXX='-L$libdir'
16528             hardcode_libdir_separator_CXX=
16529           fi
16530           esac
16531           shared_flag='-shared'
16532           if test "$aix_use_runtimelinking" = yes; then
16533             shared_flag="$shared_flag "'${wl}-G'
16534           fi
16535         else
16536           # not using gcc
16537           if test "$host_cpu" = ia64; then
16538           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16539           # chokes on -Wl,-G. The following line is correct:
16540           shared_flag='-G'
16541           else
16542             if test "$aix_use_runtimelinking" = yes; then
16543               shared_flag='${wl}-G'
16544             else
16545               shared_flag='${wl}-bM:SRE'
16546             fi
16547           fi
16548         fi
16549
16550         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16551         # It seems that -bexpall does not export symbols beginning with
16552         # underscore (_), so it is better to generate a list of symbols to
16553         # export.
16554         always_export_symbols_CXX=yes
16555         if test "$aix_use_runtimelinking" = yes; then
16556           # Warning - without using the other runtime loading flags (-brtl),
16557           # -berok will link without error, but may produce a broken library.
16558           allow_undefined_flag_CXX='-berok'
16559           # Determine the default libpath from the value encoded in an empty
16560           # executable.
16561           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h.  */
16563
16564 int
16565 main ()
16566 {
16567
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 if ac_fn_cxx_try_link "$LINENO"; then :
16573
16574 lt_aix_libpath_sed='
16575     /Import File Strings/,/^$/ {
16576         /^0/ {
16577             s/^0  *\(.*\)$/\1/
16578             p
16579         }
16580     }'
16581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16582 # Check for a 64-bit object if we didn't find anything.
16583 if test -z "$aix_libpath"; then
16584   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16585 fi
16586 fi
16587 rm -f core conftest.err conftest.$ac_objext \
16588     conftest$ac_exeext conftest.$ac_ext
16589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16590
16591           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16592
16593           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"
16594         else
16595           if test "$host_cpu" = ia64; then
16596             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16597             allow_undefined_flag_CXX="-z nodefs"
16598             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"
16599           else
16600             # Determine the default libpath from the value encoded in an
16601             # empty executable.
16602             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h.  */
16604
16605 int
16606 main ()
16607 {
16608
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 if ac_fn_cxx_try_link "$LINENO"; then :
16614
16615 lt_aix_libpath_sed='
16616     /Import File Strings/,/^$/ {
16617         /^0/ {
16618             s/^0  *\(.*\)$/\1/
16619             p
16620         }
16621     }'
16622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16623 # Check for a 64-bit object if we didn't find anything.
16624 if test -z "$aix_libpath"; then
16625   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16626 fi
16627 fi
16628 rm -f core conftest.err conftest.$ac_objext \
16629     conftest$ac_exeext conftest.$ac_ext
16630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16631
16632             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16633             # Warning - without using the other run time loading flags,
16634             # -berok will link without error, but may produce a broken library.
16635             no_undefined_flag_CXX=' ${wl}-bernotok'
16636             allow_undefined_flag_CXX=' ${wl}-berok'
16637             # Exported symbols can be pulled into shared objects from archives
16638             whole_archive_flag_spec_CXX='$convenience'
16639             archive_cmds_need_lc_CXX=yes
16640             # This is similar to how AIX traditionally builds its shared
16641             # libraries.
16642             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'
16643           fi
16644         fi
16645         ;;
16646
16647       beos*)
16648         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16649           allow_undefined_flag_CXX=unsupported
16650           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16651           # support --undefined.  This deserves some investigation.  FIXME
16652           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16653         else
16654           ld_shlibs_CXX=no
16655         fi
16656         ;;
16657
16658       chorus*)
16659         case $cc_basename in
16660           *)
16661           # FIXME: insert proper C++ library support
16662           ld_shlibs_CXX=no
16663           ;;
16664         esac
16665         ;;
16666
16667       cygwin* | mingw* | pw32* | cegcc*)
16668         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16669         # as there is no search path for DLLs.
16670         hardcode_libdir_flag_spec_CXX='-L$libdir'
16671         allow_undefined_flag_CXX=unsupported
16672         always_export_symbols_CXX=no
16673         enable_shared_with_static_runtimes_CXX=yes
16674
16675         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16676           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'
16677           # If the export-symbols file already is a .def file (1st line
16678           # is EXPORTS), use it as is; otherwise, prepend...
16679           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16680             cp $export_symbols $output_objdir/$soname.def;
16681           else
16682             echo EXPORTS > $output_objdir/$soname.def;
16683             cat $export_symbols >> $output_objdir/$soname.def;
16684           fi~
16685           $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'
16686         else
16687           ld_shlibs_CXX=no
16688         fi
16689         ;;
16690       darwin* | rhapsody*)
16691
16692
16693   archive_cmds_need_lc_CXX=no
16694   hardcode_direct_CXX=no
16695   hardcode_automatic_CXX=yes
16696   hardcode_shlibpath_var_CXX=unsupported
16697   whole_archive_flag_spec_CXX=''
16698   link_all_deplibs_CXX=yes
16699   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16700   case $cc_basename in
16701      ifort*) _lt_dar_can_shared=yes ;;
16702      *) _lt_dar_can_shared=$GCC ;;
16703   esac
16704   if test "$_lt_dar_can_shared" = "yes"; then
16705     output_verbose_link_cmd=echo
16706     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}"
16707     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16708     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}"
16709     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}"
16710        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16711       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}"
16712       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}"
16713     fi
16714
16715   else
16716   ld_shlibs_CXX=no
16717   fi
16718
16719         ;;
16720
16721       dgux*)
16722         case $cc_basename in
16723           ec++*)
16724             # FIXME: insert proper C++ library support
16725             ld_shlibs_CXX=no
16726             ;;
16727           ghcx*)
16728             # Green Hills C++ Compiler
16729             # FIXME: insert proper C++ library support
16730             ld_shlibs_CXX=no
16731             ;;
16732           *)
16733             # FIXME: insert proper C++ library support
16734             ld_shlibs_CXX=no
16735             ;;
16736         esac
16737         ;;
16738
16739       freebsd[12]*)
16740         # C++ shared libraries reported to be fairly broken before
16741         # switch to ELF
16742         ld_shlibs_CXX=no
16743         ;;
16744
16745       freebsd-elf*)
16746         archive_cmds_need_lc_CXX=no
16747         ;;
16748
16749       freebsd* | dragonfly*)
16750         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16751         # conventions
16752         ld_shlibs_CXX=yes
16753         ;;
16754
16755       gnu*)
16756         ;;
16757
16758       hpux9*)
16759         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16760         hardcode_libdir_separator_CXX=:
16761         export_dynamic_flag_spec_CXX='${wl}-E'
16762         hardcode_direct_CXX=yes
16763         hardcode_minus_L_CXX=yes # Not in the search PATH,
16764                                              # but as the default
16765                                              # location of the library.
16766
16767         case $cc_basename in
16768           CC*)
16769             # FIXME: insert proper C++ library support
16770             ld_shlibs_CXX=no
16771             ;;
16772           aCC*)
16773             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'
16774             # Commands to make compiler produce verbose output that lists
16775             # what "hidden" libraries, object files and flags are used when
16776             # linking a shared library.
16777             #
16778             # There doesn't appear to be a way to prevent this compiler from
16779             # explicitly linking system object files so we need to strip them
16780             # from the output so that they don't get included in the library
16781             # dependencies.
16782             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'
16783             ;;
16784           *)
16785             if test "$GXX" = yes; then
16786               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'
16787             else
16788               # FIXME: insert proper C++ library support
16789               ld_shlibs_CXX=no
16790             fi
16791             ;;
16792         esac
16793         ;;
16794
16795       hpux10*|hpux11*)
16796         if test $with_gnu_ld = no; then
16797           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16798           hardcode_libdir_separator_CXX=:
16799
16800           case $host_cpu in
16801             hppa*64*|ia64*)
16802               ;;
16803             *)
16804               export_dynamic_flag_spec_CXX='${wl}-E'
16805               ;;
16806           esac
16807         fi
16808         case $host_cpu in
16809           hppa*64*|ia64*)
16810             hardcode_direct_CXX=no
16811             hardcode_shlibpath_var_CXX=no
16812             ;;
16813           *)
16814             hardcode_direct_CXX=yes
16815             hardcode_direct_absolute_CXX=yes
16816             hardcode_minus_L_CXX=yes # Not in the search PATH,
16817                                                  # but as the default
16818                                                  # location of the library.
16819             ;;
16820         esac
16821
16822         case $cc_basename in
16823           CC*)
16824             # FIXME: insert proper C++ library support
16825             ld_shlibs_CXX=no
16826             ;;
16827           aCC*)
16828             case $host_cpu in
16829               hppa*64*)
16830                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16831                 ;;
16832               ia64*)
16833                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16834                 ;;
16835               *)
16836                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16837                 ;;
16838             esac
16839             # Commands to make compiler produce verbose output that lists
16840             # what "hidden" libraries, object files and flags are used when
16841             # linking a shared library.
16842             #
16843             # There doesn't appear to be a way to prevent this compiler from
16844             # explicitly linking system object files so we need to strip them
16845             # from the output so that they don't get included in the library
16846             # dependencies.
16847             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'
16848             ;;
16849           *)
16850             if test "$GXX" = yes; then
16851               if test $with_gnu_ld = no; then
16852                 case $host_cpu in
16853                   hppa*64*)
16854                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16855                     ;;
16856                   ia64*)
16857                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16858                     ;;
16859                   *)
16860                     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'
16861                     ;;
16862                 esac
16863               fi
16864             else
16865               # FIXME: insert proper C++ library support
16866               ld_shlibs_CXX=no
16867             fi
16868             ;;
16869         esac
16870         ;;
16871
16872       interix[3-9]*)
16873         hardcode_direct_CXX=no
16874         hardcode_shlibpath_var_CXX=no
16875         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16876         export_dynamic_flag_spec_CXX='${wl}-E'
16877         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16878         # Instead, shared libraries are loaded at an image base (0x10000000 by
16879         # default) and relocated if they conflict, which is a slow very memory
16880         # consuming and fragmenting process.  To avoid this, we pick a random,
16881         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16882         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16883         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'
16884         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'
16885         ;;
16886       irix5* | irix6*)
16887         case $cc_basename in
16888           CC*)
16889             # SGI C++
16890             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'
16891
16892             # Archives containing C++ object files must be created using
16893             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16894             # necessary to make sure instantiated templates are included
16895             # in the archive.
16896             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16897             ;;
16898           *)
16899             if test "$GXX" = yes; then
16900               if test "$with_gnu_ld" = no; then
16901                 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'
16902               else
16903                 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'
16904               fi
16905             fi
16906             link_all_deplibs_CXX=yes
16907             ;;
16908         esac
16909         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16910         hardcode_libdir_separator_CXX=:
16911         inherit_rpath_CXX=yes
16912         ;;
16913
16914       linux* | k*bsd*-gnu)
16915         case $cc_basename in
16916           KCC*)
16917             # Kuck and Associates, Inc. (KAI) C++ Compiler
16918
16919             # KCC will only create a shared library if the output file
16920             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16921             # to its proper name (with version) after linking.
16922             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'
16923             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'
16924             # Commands to make compiler produce verbose output that lists
16925             # what "hidden" libraries, object files and flags are used when
16926             # linking a shared library.
16927             #
16928             # There doesn't appear to be a way to prevent this compiler from
16929             # explicitly linking system object files so we need to strip them
16930             # from the output so that they don't get included in the library
16931             # dependencies.
16932             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'
16933
16934             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16935             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16936
16937             # Archives containing C++ object files must be created using
16938             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16939             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16940             ;;
16941           icpc* | ecpc* )
16942             # Intel C++
16943             with_gnu_ld=yes
16944             # version 8.0 and above of icpc choke on multiply defined symbols
16945             # if we add $predep_objects and $postdep_objects, however 7.1 and
16946             # earlier do not add the objects themselves.
16947             case `$CC -V 2>&1` in
16948               *"Version 7."*)
16949                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16950                 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'
16951                 ;;
16952               *)  # Version 8.0 or newer
16953                 tmp_idyn=
16954                 case $host_cpu in
16955                   ia64*) tmp_idyn=' -i_dynamic';;
16956                 esac
16957                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958                 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'
16959                 ;;
16960             esac
16961             archive_cmds_need_lc_CXX=no
16962             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16963             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16964             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16965             ;;
16966           pgCC* | pgcpp*)
16967             # Portland Group C++ compiler
16968             case `$CC -V` in
16969             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16970               prelink_cmds_CXX='tpldir=Template.dir~
16971                 rm -rf $tpldir~
16972                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16973                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16974               old_archive_cmds_CXX='tpldir=Template.dir~
16975                 rm -rf $tpldir~
16976                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16977                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16978                 $RANLIB $oldlib'
16979               archive_cmds_CXX='tpldir=Template.dir~
16980                 rm -rf $tpldir~
16981                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16982                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16983               archive_expsym_cmds_CXX='tpldir=Template.dir~
16984                 rm -rf $tpldir~
16985                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16986                 $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'
16987               ;;
16988             *) # Version 6 will use weak symbols
16989               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16990               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'
16991               ;;
16992             esac
16993
16994             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16995             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16996             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'
16997             ;;
16998           cxx*)
16999             # Compaq C++
17000             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001             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'
17002
17003             runpath_var=LD_RUN_PATH
17004             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17005             hardcode_libdir_separator_CXX=:
17006
17007             # Commands to make compiler produce verbose output that lists
17008             # what "hidden" libraries, object files and flags are used when
17009             # linking a shared library.
17010             #
17011             # There doesn't appear to be a way to prevent this compiler from
17012             # explicitly linking system object files so we need to strip them
17013             # from the output so that they don't get included in the library
17014             # dependencies.
17015             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'
17016             ;;
17017           xl*)
17018             # IBM XL 8.0 on PPC, with GNU ld
17019             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17020             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17021             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022             if test "x$supports_anon_versioning" = xyes; then
17023               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17024                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17025                 echo "local: *; };" >> $output_objdir/$libname.ver~
17026                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17027             fi
17028             ;;
17029           *)
17030             case `$CC -V 2>&1 | sed 5q` in
17031             *Sun\ C*)
17032               # Sun C++ 5.9
17033               no_undefined_flag_CXX=' -zdefs'
17034               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17035               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'
17036               hardcode_libdir_flag_spec_CXX='-R$libdir'
17037               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'
17038               compiler_needs_object_CXX=yes
17039
17040               # Not sure whether something based on
17041               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17042               # would be better.
17043               output_verbose_link_cmd='echo'
17044
17045               # Archives containing C++ object files must be created using
17046               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17047               # necessary to make sure instantiated templates are included
17048               # in the archive.
17049               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17050               ;;
17051             esac
17052             ;;
17053         esac
17054         ;;
17055
17056       lynxos*)
17057         # FIXME: insert proper C++ library support
17058         ld_shlibs_CXX=no
17059         ;;
17060
17061       m88k*)
17062         # FIXME: insert proper C++ library support
17063         ld_shlibs_CXX=no
17064         ;;
17065
17066       mvs*)
17067         case $cc_basename in
17068           cxx*)
17069             # FIXME: insert proper C++ library support
17070             ld_shlibs_CXX=no
17071             ;;
17072           *)
17073             # FIXME: insert proper C++ library support
17074             ld_shlibs_CXX=no
17075             ;;
17076         esac
17077         ;;
17078
17079       netbsd*)
17080         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17081           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17082           wlarc=
17083           hardcode_libdir_flag_spec_CXX='-R$libdir'
17084           hardcode_direct_CXX=yes
17085           hardcode_shlibpath_var_CXX=no
17086         fi
17087         # Workaround some broken pre-1.5 toolchains
17088         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17089         ;;
17090
17091       *nto* | *qnx*)
17092         ld_shlibs_CXX=yes
17093         ;;
17094
17095       openbsd2*)
17096         # C++ shared libraries are fairly broken
17097         ld_shlibs_CXX=no
17098         ;;
17099
17100       openbsd*)
17101         if test -f /usr/libexec/ld.so; then
17102           hardcode_direct_CXX=yes
17103           hardcode_shlibpath_var_CXX=no
17104           hardcode_direct_absolute_CXX=yes
17105           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17106           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17107           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17108             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17109             export_dynamic_flag_spec_CXX='${wl}-E'
17110             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17111           fi
17112           output_verbose_link_cmd=echo
17113         else
17114           ld_shlibs_CXX=no
17115         fi
17116         ;;
17117
17118       osf3* | osf4* | osf5*)
17119         case $cc_basename in
17120           KCC*)
17121             # Kuck and Associates, Inc. (KAI) C++ Compiler
17122
17123             # KCC will only create a shared library if the output file
17124             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17125             # to its proper name (with version) after linking.
17126             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'
17127
17128             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17129             hardcode_libdir_separator_CXX=:
17130
17131             # Archives containing C++ object files must be created using
17132             # the KAI C++ compiler.
17133             case $host in
17134               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17135               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17136             esac
17137             ;;
17138           RCC*)
17139             # Rational C++ 2.4.1
17140             # FIXME: insert proper C++ library support
17141             ld_shlibs_CXX=no
17142             ;;
17143           cxx*)
17144             case $host in
17145               osf3*)
17146                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17147                 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'
17148                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17149                 ;;
17150               *)
17151                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17152                 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'
17153                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17154                   echo "-hidden">> $lib.exp~
17155                   $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~
17156                   $RM $lib.exp'
17157                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17158                 ;;
17159             esac
17160
17161             hardcode_libdir_separator_CXX=:
17162
17163             # Commands to make compiler produce verbose output that lists
17164             # what "hidden" libraries, object files and flags are used when
17165             # linking a shared library.
17166             #
17167             # There doesn't appear to be a way to prevent this compiler from
17168             # explicitly linking system object files so we need to strip them
17169             # from the output so that they don't get included in the library
17170             # dependencies.
17171             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'
17172             ;;
17173           *)
17174             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17175               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17176               case $host in
17177                 osf3*)
17178                   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'
17179                   ;;
17180                 *)
17181                   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'
17182                   ;;
17183               esac
17184
17185               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17186               hardcode_libdir_separator_CXX=:
17187
17188               # Commands to make compiler produce verbose output that lists
17189               # what "hidden" libraries, object files and flags are used when
17190               # linking a shared library.
17191               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17192
17193             else
17194               # FIXME: insert proper C++ library support
17195               ld_shlibs_CXX=no
17196             fi
17197             ;;
17198         esac
17199         ;;
17200
17201       psos*)
17202         # FIXME: insert proper C++ library support
17203         ld_shlibs_CXX=no
17204         ;;
17205
17206       sunos4*)
17207         case $cc_basename in
17208           CC*)
17209             # Sun C++ 4.x
17210             # FIXME: insert proper C++ library support
17211             ld_shlibs_CXX=no
17212             ;;
17213           lcc*)
17214             # Lucid
17215             # FIXME: insert proper C++ library support
17216             ld_shlibs_CXX=no
17217             ;;
17218           *)
17219             # FIXME: insert proper C++ library support
17220             ld_shlibs_CXX=no
17221             ;;
17222         esac
17223         ;;
17224
17225       solaris*)
17226         case $cc_basename in
17227           CC*)
17228             # Sun C++ 4.2, 5.x and Centerline C++
17229             archive_cmds_need_lc_CXX=yes
17230             no_undefined_flag_CXX=' -zdefs'
17231             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17232             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17233               $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'
17234
17235             hardcode_libdir_flag_spec_CXX='-R$libdir'
17236             hardcode_shlibpath_var_CXX=no
17237             case $host_os in
17238               solaris2.[0-5] | solaris2.[0-5].*) ;;
17239               *)
17240                 # The compiler driver will combine and reorder linker options,
17241                 # but understands `-z linker_flag'.
17242                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17243                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17244                 ;;
17245             esac
17246             link_all_deplibs_CXX=yes
17247
17248             output_verbose_link_cmd='echo'
17249
17250             # Archives containing C++ object files must be created using
17251             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17252             # necessary to make sure instantiated templates are included
17253             # in the archive.
17254             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17255             ;;
17256           gcx*)
17257             # Green Hills C++ Compiler
17258             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17259
17260             # The C++ compiler must be used to create the archive.
17261             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17262             ;;
17263           *)
17264             # GNU C++ compiler with Solaris linker
17265             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17266               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17267               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17268                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17269                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17271
17272                 # Commands to make compiler produce verbose output that lists
17273                 # what "hidden" libraries, object files and flags are used when
17274                 # linking a shared library.
17275                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17276               else
17277                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17278                 # platform.
17279                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17280                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17282
17283                 # Commands to make compiler produce verbose output that lists
17284                 # what "hidden" libraries, object files and flags are used when
17285                 # linking a shared library.
17286                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17287               fi
17288
17289               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17290               case $host_os in
17291                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17292                 *)
17293                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17294                   ;;
17295               esac
17296             fi
17297             ;;
17298         esac
17299         ;;
17300
17301     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17302       no_undefined_flag_CXX='${wl}-z,text'
17303       archive_cmds_need_lc_CXX=no
17304       hardcode_shlibpath_var_CXX=no
17305       runpath_var='LD_RUN_PATH'
17306
17307       case $cc_basename in
17308         CC*)
17309           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17310           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17311           ;;
17312         *)
17313           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17314           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17315           ;;
17316       esac
17317       ;;
17318
17319       sysv5* | sco3.2v5* | sco5v6*)
17320         # Note: We can NOT use -z defs as we might desire, because we do not
17321         # link with -lc, and that would cause any symbols used from libc to
17322         # always be unresolved, which means just about no library would
17323         # ever link correctly.  If we're not using GNU ld we use -z text
17324         # though, which does catch some bad symbols but isn't as heavy-handed
17325         # as -z defs.
17326         no_undefined_flag_CXX='${wl}-z,text'
17327         allow_undefined_flag_CXX='${wl}-z,nodefs'
17328         archive_cmds_need_lc_CXX=no
17329         hardcode_shlibpath_var_CXX=no
17330         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17331         hardcode_libdir_separator_CXX=':'
17332         link_all_deplibs_CXX=yes
17333         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17334         runpath_var='LD_RUN_PATH'
17335
17336         case $cc_basename in
17337           CC*)
17338             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17340             ;;
17341           *)
17342             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17344             ;;
17345         esac
17346       ;;
17347
17348       tandem*)
17349         case $cc_basename in
17350           NCC*)
17351             # NonStop-UX NCC 3.20
17352             # FIXME: insert proper C++ library support
17353             ld_shlibs_CXX=no
17354             ;;
17355           *)
17356             # FIXME: insert proper C++ library support
17357             ld_shlibs_CXX=no
17358             ;;
17359         esac
17360         ;;
17361
17362       vxworks*)
17363         # FIXME: insert proper C++ library support
17364         ld_shlibs_CXX=no
17365         ;;
17366
17367       *)
17368         # FIXME: insert proper C++ library support
17369         ld_shlibs_CXX=no
17370         ;;
17371     esac
17372
17373     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17374 $as_echo "$ld_shlibs_CXX" >&6; }
17375     test "$ld_shlibs_CXX" = no && can_build_shared=no
17376
17377     GCC_CXX="$GXX"
17378     LD_CXX="$LD"
17379
17380     ## CAVEAT EMPTOR:
17381     ## There is no encapsulation within the following macros, do not change
17382     ## the running order or otherwise move them around unless you know exactly
17383     ## what you are doing...
17384     # Dependencies to place before and after the object being linked:
17385 predep_objects_CXX=
17386 postdep_objects_CXX=
17387 predeps_CXX=
17388 postdeps_CXX=
17389 compiler_lib_search_path_CXX=
17390
17391 cat > conftest.$ac_ext <<_LT_EOF
17392 class Foo
17393 {
17394 public:
17395   Foo (void) { a = 0; }
17396 private:
17397   int a;
17398 };
17399 _LT_EOF
17400
17401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17402   (eval $ac_compile) 2>&5
17403   ac_status=$?
17404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17405   test $ac_status = 0; }; then
17406   # Parse the compiler output and extract the necessary
17407   # objects, libraries and library flags.
17408
17409   # Sentinel used to keep track of whether or not we are before
17410   # the conftest object file.
17411   pre_test_object_deps_done=no
17412
17413   for p in `eval "$output_verbose_link_cmd"`; do
17414     case $p in
17415
17416     -L* | -R* | -l*)
17417        # Some compilers place space between "-{L,R}" and the path.
17418        # Remove the space.
17419        if test $p = "-L" ||
17420           test $p = "-R"; then
17421          prev=$p
17422          continue
17423        else
17424          prev=
17425        fi
17426
17427        if test "$pre_test_object_deps_done" = no; then
17428          case $p in
17429          -L* | -R*)
17430            # Internal compiler library paths should come after those
17431            # provided the user.  The postdeps already come after the
17432            # user supplied libs so there is no need to process them.
17433            if test -z "$compiler_lib_search_path_CXX"; then
17434              compiler_lib_search_path_CXX="${prev}${p}"
17435            else
17436              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17437            fi
17438            ;;
17439          # The "-l" case would never come before the object being
17440          # linked, so don't bother handling this case.
17441          esac
17442        else
17443          if test -z "$postdeps_CXX"; then
17444            postdeps_CXX="${prev}${p}"
17445          else
17446            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17447          fi
17448        fi
17449        ;;
17450
17451     *.$objext)
17452        # This assumes that the test object file only shows up
17453        # once in the compiler output.
17454        if test "$p" = "conftest.$objext"; then
17455          pre_test_object_deps_done=yes
17456          continue
17457        fi
17458
17459        if test "$pre_test_object_deps_done" = no; then
17460          if test -z "$predep_objects_CXX"; then
17461            predep_objects_CXX="$p"
17462          else
17463            predep_objects_CXX="$predep_objects_CXX $p"
17464          fi
17465        else
17466          if test -z "$postdep_objects_CXX"; then
17467            postdep_objects_CXX="$p"
17468          else
17469            postdep_objects_CXX="$postdep_objects_CXX $p"
17470          fi
17471        fi
17472        ;;
17473
17474     *) ;; # Ignore the rest.
17475
17476     esac
17477   done
17478
17479   # Clean up.
17480   rm -f a.out a.exe
17481 else
17482   echo "libtool.m4: error: problem compiling CXX test program"
17483 fi
17484
17485 $RM -f confest.$objext
17486
17487 # PORTME: override above test on systems where it is broken
17488 case $host_os in
17489 interix[3-9]*)
17490   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17491   # hack all around it, let's just trust "g++" to DTRT.
17492   predep_objects_CXX=
17493   postdep_objects_CXX=
17494   postdeps_CXX=
17495   ;;
17496
17497 linux*)
17498   case `$CC -V 2>&1 | sed 5q` in
17499   *Sun\ C*)
17500     # Sun C++ 5.9
17501
17502     # The more standards-conforming stlport4 library is
17503     # incompatible with the Cstd library. Avoid specifying
17504     # it if it's in CXXFLAGS. Ignore libCrun as
17505     # -library=stlport4 depends on it.
17506     case " $CXX $CXXFLAGS " in
17507     *" -library=stlport4 "*)
17508       solaris_use_stlport4=yes
17509       ;;
17510     esac
17511
17512     if test "$solaris_use_stlport4" != yes; then
17513       postdeps_CXX='-library=Cstd -library=Crun'
17514     fi
17515     ;;
17516   esac
17517   ;;
17518
17519 solaris*)
17520   case $cc_basename in
17521   CC*)
17522     # The more standards-conforming stlport4 library is
17523     # incompatible with the Cstd library. Avoid specifying
17524     # it if it's in CXXFLAGS. Ignore libCrun as
17525     # -library=stlport4 depends on it.
17526     case " $CXX $CXXFLAGS " in
17527     *" -library=stlport4 "*)
17528       solaris_use_stlport4=yes
17529       ;;
17530     esac
17531
17532     # Adding this requires a known-good setup of shared libraries for
17533     # Sun compiler versions before 5.6, else PIC objects from an old
17534     # archive will be linked into the output, leading to subtle bugs.
17535     if test "$solaris_use_stlport4" != yes; then
17536       postdeps_CXX='-library=Cstd -library=Crun'
17537     fi
17538     ;;
17539   esac
17540   ;;
17541 esac
17542
17543
17544 case " $postdeps_CXX " in
17545 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17546 esac
17547  compiler_lib_search_dirs_CXX=
17548 if test -n "${compiler_lib_search_path_CXX}"; then
17549  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17550 fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582     lt_prog_compiler_wl_CXX=
17583 lt_prog_compiler_pic_CXX=
17584 lt_prog_compiler_static_CXX=
17585
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17588
17589   # C++ specific cases for pic, static, wl, etc.
17590   if test "$GXX" = yes; then
17591     lt_prog_compiler_wl_CXX='-Wl,'
17592     lt_prog_compiler_static_CXX='-static'
17593
17594     case $host_os in
17595     aix*)
17596       # All AIX code is PIC.
17597       if test "$host_cpu" = ia64; then
17598         # AIX 5 now supports IA64 processor
17599         lt_prog_compiler_static_CXX='-Bstatic'
17600       fi
17601       ;;
17602
17603     amigaos*)
17604       case $host_cpu in
17605       powerpc)
17606             # see comment about AmigaOS4 .so support
17607             lt_prog_compiler_pic_CXX='-fPIC'
17608         ;;
17609       m68k)
17610             # FIXME: we need at least 68020 code to build shared libraries, but
17611             # adding the `-m68020' flag to GCC prevents building anything better,
17612             # like `-m68040'.
17613             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17614         ;;
17615       esac
17616       ;;
17617
17618     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17619       # PIC is the default for these OSes.
17620       ;;
17621     mingw* | cygwin* | os2* | pw32* | cegcc*)
17622       # This hack is so that the source file can tell whether it is being
17623       # built for inclusion in a dll (and should export symbols for example).
17624       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17625       # (--disable-auto-import) libraries
17626       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17627       ;;
17628     darwin* | rhapsody*)
17629       # PIC is the default on this platform
17630       # Common symbols not allowed in MH_DYLIB files
17631       lt_prog_compiler_pic_CXX='-fno-common'
17632       ;;
17633     *djgpp*)
17634       # DJGPP does not support shared libraries at all
17635       lt_prog_compiler_pic_CXX=
17636       ;;
17637     interix[3-9]*)
17638       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17639       # Instead, we relocate shared libraries at runtime.
17640       ;;
17641     sysv4*MP*)
17642       if test -d /usr/nec; then
17643         lt_prog_compiler_pic_CXX=-Kconform_pic
17644       fi
17645       ;;
17646     hpux*)
17647       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17648       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17649       # sets the default TLS model and affects inlining.
17650       case $host_cpu in
17651       hppa*64*)
17652         ;;
17653       *)
17654         lt_prog_compiler_pic_CXX='-fPIC'
17655         ;;
17656       esac
17657       ;;
17658     *qnx* | *nto*)
17659       # QNX uses GNU C++, but need to define -shared option too, otherwise
17660       # it will coredump.
17661       lt_prog_compiler_pic_CXX='-fPIC -shared'
17662       ;;
17663     *)
17664       lt_prog_compiler_pic_CXX='-fPIC'
17665       ;;
17666     esac
17667   else
17668     case $host_os in
17669       aix[4-9]*)
17670         # All AIX code is PIC.
17671         if test "$host_cpu" = ia64; then
17672           # AIX 5 now supports IA64 processor
17673           lt_prog_compiler_static_CXX='-Bstatic'
17674         else
17675           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17676         fi
17677         ;;
17678       chorus*)
17679         case $cc_basename in
17680         cxch68*)
17681           # Green Hills C++ Compiler
17682           # _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"
17683           ;;
17684         esac
17685         ;;
17686       dgux*)
17687         case $cc_basename in
17688           ec++*)
17689             lt_prog_compiler_pic_CXX='-KPIC'
17690             ;;
17691           ghcx*)
17692             # Green Hills C++ Compiler
17693             lt_prog_compiler_pic_CXX='-pic'
17694             ;;
17695           *)
17696             ;;
17697         esac
17698         ;;
17699       freebsd* | dragonfly*)
17700         # FreeBSD uses GNU C++
17701         ;;
17702       hpux9* | hpux10* | hpux11*)
17703         case $cc_basename in
17704           CC*)
17705             lt_prog_compiler_wl_CXX='-Wl,'
17706             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17707             if test "$host_cpu" != ia64; then
17708               lt_prog_compiler_pic_CXX='+Z'
17709             fi
17710             ;;
17711           aCC*)
17712             lt_prog_compiler_wl_CXX='-Wl,'
17713             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17714             case $host_cpu in
17715             hppa*64*|ia64*)
17716               # +Z the default
17717               ;;
17718             *)
17719               lt_prog_compiler_pic_CXX='+Z'
17720               ;;
17721             esac
17722             ;;
17723           *)
17724             ;;
17725         esac
17726         ;;
17727       interix*)
17728         # This is c89, which is MS Visual C++ (no shared libs)
17729         # Anyone wants to do a port?
17730         ;;
17731       irix5* | irix6* | nonstopux*)
17732         case $cc_basename in
17733           CC*)
17734             lt_prog_compiler_wl_CXX='-Wl,'
17735             lt_prog_compiler_static_CXX='-non_shared'
17736             # CC pic flag -KPIC is the default.
17737             ;;
17738           *)
17739             ;;
17740         esac
17741         ;;
17742       linux* | k*bsd*-gnu)
17743         case $cc_basename in
17744           KCC*)
17745             # KAI C++ Compiler
17746             lt_prog_compiler_wl_CXX='--backend -Wl,'
17747             lt_prog_compiler_pic_CXX='-fPIC'
17748             ;;
17749           ecpc* )
17750             # old Intel C++ for x86_64 which still supported -KPIC.
17751             lt_prog_compiler_wl_CXX='-Wl,'
17752             lt_prog_compiler_pic_CXX='-KPIC'
17753             lt_prog_compiler_static_CXX='-static'
17754             ;;
17755           icpc* )
17756             # Intel C++, used to be incompatible with GCC.
17757             # ICC 10 doesn't accept -KPIC any more.
17758             lt_prog_compiler_wl_CXX='-Wl,'
17759             lt_prog_compiler_pic_CXX='-fPIC'
17760             lt_prog_compiler_static_CXX='-static'
17761             ;;
17762           pgCC* | pgcpp*)
17763             # Portland Group C++ compiler
17764             lt_prog_compiler_wl_CXX='-Wl,'
17765             lt_prog_compiler_pic_CXX='-fpic'
17766             lt_prog_compiler_static_CXX='-Bstatic'
17767             ;;
17768           cxx*)
17769             # Compaq C++
17770             # Make sure the PIC flag is empty.  It appears that all Alpha
17771             # Linux and Compaq Tru64 Unix objects are PIC.
17772             lt_prog_compiler_pic_CXX=
17773             lt_prog_compiler_static_CXX='-non_shared'
17774             ;;
17775           xlc* | xlC*)
17776             # IBM XL 8.0 on PPC
17777             lt_prog_compiler_wl_CXX='-Wl,'
17778             lt_prog_compiler_pic_CXX='-qpic'
17779             lt_prog_compiler_static_CXX='-qstaticlink'
17780             ;;
17781           *)
17782             case `$CC -V 2>&1 | sed 5q` in
17783             *Sun\ C*)
17784               # Sun C++ 5.9
17785               lt_prog_compiler_pic_CXX='-KPIC'
17786               lt_prog_compiler_static_CXX='-Bstatic'
17787               lt_prog_compiler_wl_CXX='-Qoption ld '
17788               ;;
17789             esac
17790             ;;
17791         esac
17792         ;;
17793       lynxos*)
17794         ;;
17795       m88k*)
17796         ;;
17797       mvs*)
17798         case $cc_basename in
17799           cxx*)
17800             lt_prog_compiler_pic_CXX='-W c,exportall'
17801             ;;
17802           *)
17803             ;;
17804         esac
17805         ;;
17806       netbsd*)
17807         ;;
17808       *qnx* | *nto*)
17809         # QNX uses GNU C++, but need to define -shared option too, otherwise
17810         # it will coredump.
17811         lt_prog_compiler_pic_CXX='-fPIC -shared'
17812         ;;
17813       osf3* | osf4* | osf5*)
17814         case $cc_basename in
17815           KCC*)
17816             lt_prog_compiler_wl_CXX='--backend -Wl,'
17817             ;;
17818           RCC*)
17819             # Rational C++ 2.4.1
17820             lt_prog_compiler_pic_CXX='-pic'
17821             ;;
17822           cxx*)
17823             # Digital/Compaq C++
17824             lt_prog_compiler_wl_CXX='-Wl,'
17825             # Make sure the PIC flag is empty.  It appears that all Alpha
17826             # Linux and Compaq Tru64 Unix objects are PIC.
17827             lt_prog_compiler_pic_CXX=
17828             lt_prog_compiler_static_CXX='-non_shared'
17829             ;;
17830           *)
17831             ;;
17832         esac
17833         ;;
17834       psos*)
17835         ;;
17836       solaris*)
17837         case $cc_basename in
17838           CC*)
17839             # Sun C++ 4.2, 5.x and Centerline C++
17840             lt_prog_compiler_pic_CXX='-KPIC'
17841             lt_prog_compiler_static_CXX='-Bstatic'
17842             lt_prog_compiler_wl_CXX='-Qoption ld '
17843             ;;
17844           gcx*)
17845             # Green Hills C++ Compiler
17846             lt_prog_compiler_pic_CXX='-PIC'
17847             ;;
17848           *)
17849             ;;
17850         esac
17851         ;;
17852       sunos4*)
17853         case $cc_basename in
17854           CC*)
17855             # Sun C++ 4.x
17856             lt_prog_compiler_pic_CXX='-pic'
17857             lt_prog_compiler_static_CXX='-Bstatic'
17858             ;;
17859           lcc*)
17860             # Lucid
17861             lt_prog_compiler_pic_CXX='-pic'
17862             ;;
17863           *)
17864             ;;
17865         esac
17866         ;;
17867       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17868         case $cc_basename in
17869           CC*)
17870             lt_prog_compiler_wl_CXX='-Wl,'
17871             lt_prog_compiler_pic_CXX='-KPIC'
17872             lt_prog_compiler_static_CXX='-Bstatic'
17873             ;;
17874         esac
17875         ;;
17876       tandem*)
17877         case $cc_basename in
17878           NCC*)
17879             # NonStop-UX NCC 3.20
17880             lt_prog_compiler_pic_CXX='-KPIC'
17881             ;;
17882           *)
17883             ;;
17884         esac
17885         ;;
17886       vxworks*)
17887         ;;
17888       *)
17889         lt_prog_compiler_can_build_shared_CXX=no
17890         ;;
17891     esac
17892   fi
17893
17894 case $host_os in
17895   # For platforms which do not support PIC, -DPIC is meaningless:
17896   *djgpp*)
17897     lt_prog_compiler_pic_CXX=
17898     ;;
17899   *)
17900     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17901     ;;
17902 esac
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17905
17906
17907
17908 #
17909 # Check to make sure the PIC flag actually works.
17910 #
17911 if test -n "$lt_prog_compiler_pic_CXX"; then
17912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17914 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17915   $as_echo_n "(cached) " >&6
17916 else
17917   lt_cv_prog_compiler_pic_works_CXX=no
17918    ac_outfile=conftest.$ac_objext
17919    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17920    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17921    # Insert the option either (1) after the last *FLAGS variable, or
17922    # (2) before a word containing "conftest.", or (3) at the end.
17923    # Note that $ac_compile itself does not contain backslashes and begins
17924    # with a dollar sign (not a hyphen), so the echo should work correctly.
17925    # The option is referenced via a variable to avoid confusing sed.
17926    lt_compile=`echo "$ac_compile" | $SED \
17927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17929    -e 's:$: $lt_compiler_flag:'`
17930    (eval echo "\"\$as_me:17930: $lt_compile\"" >&5)
17931    (eval "$lt_compile" 2>conftest.err)
17932    ac_status=$?
17933    cat conftest.err >&5
17934    echo "$as_me:17934: \$? = $ac_status" >&5
17935    if (exit $ac_status) && test -s "$ac_outfile"; then
17936      # The compiler can only warn and ignore the option if not recognized
17937      # So say no if there are warnings other than the usual output.
17938      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17941        lt_cv_prog_compiler_pic_works_CXX=yes
17942      fi
17943    fi
17944    $RM conftest*
17945
17946 fi
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17949
17950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17951     case $lt_prog_compiler_pic_CXX in
17952      "" | " "*) ;;
17953      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17954      esac
17955 else
17956     lt_prog_compiler_pic_CXX=
17957      lt_prog_compiler_can_build_shared_CXX=no
17958 fi
17959
17960 fi
17961
17962
17963
17964 #
17965 # Check to make sure the static flag actually works.
17966 #
17967 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17970 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17971   $as_echo_n "(cached) " >&6
17972 else
17973   lt_cv_prog_compiler_static_works_CXX=no
17974    save_LDFLAGS="$LDFLAGS"
17975    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17976    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17977    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17978      # The linker can only warn and ignore the option if not recognized
17979      # So say no if there are warnings
17980      if test -s conftest.err; then
17981        # Append any errors to the config.log.
17982        cat conftest.err 1>&5
17983        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17984        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17985        if diff conftest.exp conftest.er2 >/dev/null; then
17986          lt_cv_prog_compiler_static_works_CXX=yes
17987        fi
17988      else
17989        lt_cv_prog_compiler_static_works_CXX=yes
17990      fi
17991    fi
17992    $RM -r conftest*
17993    LDFLAGS="$save_LDFLAGS"
17994
17995 fi
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17998
17999 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18000     :
18001 else
18002     lt_prog_compiler_static_CXX=
18003 fi
18004
18005
18006
18007
18008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18010 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18011   $as_echo_n "(cached) " >&6
18012 else
18013   lt_cv_prog_compiler_c_o_CXX=no
18014    $RM -r conftest 2>/dev/null
18015    mkdir conftest
18016    cd conftest
18017    mkdir out
18018    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18019
18020    lt_compiler_flag="-o out/conftest2.$ac_objext"
18021    # Insert the option either (1) after the last *FLAGS variable, or
18022    # (2) before a word containing "conftest.", or (3) at the end.
18023    # Note that $ac_compile itself does not contain backslashes and begins
18024    # with a dollar sign (not a hyphen), so the echo should work correctly.
18025    lt_compile=`echo "$ac_compile" | $SED \
18026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18028    -e 's:$: $lt_compiler_flag:'`
18029    (eval echo "\"\$as_me:18029: $lt_compile\"" >&5)
18030    (eval "$lt_compile" 2>out/conftest.err)
18031    ac_status=$?
18032    cat out/conftest.err >&5
18033    echo "$as_me:18033: \$? = $ac_status" >&5
18034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18035    then
18036      # The compiler can only warn and ignore the option if not recognized
18037      # So say no if there are warnings
18038      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18041        lt_cv_prog_compiler_c_o_CXX=yes
18042      fi
18043    fi
18044    chmod u+w . 2>&5
18045    $RM conftest*
18046    # SGI C++ compiler will create directory out/ii_files/ for
18047    # template instantiation
18048    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18049    $RM out/* && rmdir out
18050    cd ..
18051    $RM -r conftest
18052    $RM conftest*
18053
18054 fi
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18057
18058
18059
18060     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18063   $as_echo_n "(cached) " >&6
18064 else
18065   lt_cv_prog_compiler_c_o_CXX=no
18066    $RM -r conftest 2>/dev/null
18067    mkdir conftest
18068    cd conftest
18069    mkdir out
18070    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18071
18072    lt_compiler_flag="-o out/conftest2.$ac_objext"
18073    # Insert the option either (1) after the last *FLAGS variable, or
18074    # (2) before a word containing "conftest.", or (3) at the end.
18075    # Note that $ac_compile itself does not contain backslashes and begins
18076    # with a dollar sign (not a hyphen), so the echo should work correctly.
18077    lt_compile=`echo "$ac_compile" | $SED \
18078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18080    -e 's:$: $lt_compiler_flag:'`
18081    (eval echo "\"\$as_me:18081: $lt_compile\"" >&5)
18082    (eval "$lt_compile" 2>out/conftest.err)
18083    ac_status=$?
18084    cat out/conftest.err >&5
18085    echo "$as_me:18085: \$? = $ac_status" >&5
18086    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18087    then
18088      # The compiler can only warn and ignore the option if not recognized
18089      # So say no if there are warnings
18090      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18091      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18092      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18093        lt_cv_prog_compiler_c_o_CXX=yes
18094      fi
18095    fi
18096    chmod u+w . 2>&5
18097    $RM conftest*
18098    # SGI C++ compiler will create directory out/ii_files/ for
18099    # template instantiation
18100    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18101    $RM out/* && rmdir out
18102    cd ..
18103    $RM -r conftest
18104    $RM conftest*
18105
18106 fi
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18109
18110
18111
18112
18113 hard_links="nottested"
18114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18115   # do not overwrite the value of need_locks provided by the user
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18117 $as_echo_n "checking if we can lock with hard links... " >&6; }
18118   hard_links=yes
18119   $RM conftest*
18120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18121   touch conftest.a
18122   ln conftest.a conftest.b 2>&5 || hard_links=no
18123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18125 $as_echo "$hard_links" >&6; }
18126   if test "$hard_links" = no; then
18127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18129     need_locks=warn
18130   fi
18131 else
18132   need_locks=no
18133 fi
18134
18135
18136
18137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18139
18140   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18141   case $host_os in
18142   aix[4-9]*)
18143     # If we're using GNU nm, then we don't want the "-C" option.
18144     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18145     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18146       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'
18147     else
18148       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'
18149     fi
18150     ;;
18151   pw32*)
18152     export_symbols_cmds_CXX="$ltdll_cmds"
18153   ;;
18154   cygwin* | mingw* | cegcc*)
18155     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'
18156   ;;
18157   *)
18158     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18159   ;;
18160   esac
18161   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18162
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18164 $as_echo "$ld_shlibs_CXX" >&6; }
18165 test "$ld_shlibs_CXX" = no && can_build_shared=no
18166
18167 with_gnu_ld_CXX=$with_gnu_ld
18168
18169
18170
18171
18172
18173
18174 #
18175 # Do we need to explicitly link libc?
18176 #
18177 case "x$archive_cmds_need_lc_CXX" in
18178 x|xyes)
18179   # Assume -lc should be added
18180   archive_cmds_need_lc_CXX=yes
18181
18182   if test "$enable_shared" = yes && test "$GCC" = yes; then
18183     case $archive_cmds_CXX in
18184     *'~'*)
18185       # FIXME: we may have to deal with multi-command sequences.
18186       ;;
18187     '$CC '*)
18188       # Test whether the compiler implicitly links with -lc since on some
18189       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18190       # to ld, don't add -lc before -lgcc.
18191       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18193       $RM conftest*
18194       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18195
18196       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18197   (eval $ac_compile) 2>&5
18198   ac_status=$?
18199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200   test $ac_status = 0; } 2>conftest.err; then
18201         soname=conftest
18202         lib=conftest
18203         libobjs=conftest.$ac_objext
18204         deplibs=
18205         wl=$lt_prog_compiler_wl_CXX
18206         pic_flag=$lt_prog_compiler_pic_CXX
18207         compiler_flags=-v
18208         linker_flags=-v
18209         verstring=
18210         output_objdir=.
18211         libname=conftest
18212         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18213         allow_undefined_flag_CXX=
18214         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18215   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18216   ac_status=$?
18217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218   test $ac_status = 0; }
18219         then
18220           archive_cmds_need_lc_CXX=no
18221         else
18222           archive_cmds_need_lc_CXX=yes
18223         fi
18224         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18225       else
18226         cat conftest.err 1>&5
18227       fi
18228       $RM conftest*
18229       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18230 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
18231       ;;
18232     esac
18233   fi
18234   ;;
18235 esac
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18302
18303 library_names_spec=
18304 libname_spec='lib$name'
18305 soname_spec=
18306 shrext_cmds=".so"
18307 postinstall_cmds=
18308 postuninstall_cmds=
18309 finish_cmds=
18310 finish_eval=
18311 shlibpath_var=
18312 shlibpath_overrides_runpath=unknown
18313 version_type=none
18314 dynamic_linker="$host_os ld.so"
18315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18316 need_lib_prefix=unknown
18317 hardcode_into_libs=no
18318
18319 # when you set need_version to no, make sure it does not cause -set_version
18320 # flags to be left without arguments
18321 need_version=unknown
18322
18323 case $host_os in
18324 aix3*)
18325   version_type=linux
18326   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18327   shlibpath_var=LIBPATH
18328
18329   # AIX 3 has no versioning support, so we append a major version to the name.
18330   soname_spec='${libname}${release}${shared_ext}$major'
18331   ;;
18332
18333 aix[4-9]*)
18334   version_type=linux
18335   need_lib_prefix=no
18336   need_version=no
18337   hardcode_into_libs=yes
18338   if test "$host_cpu" = ia64; then
18339     # AIX 5 supports IA64
18340     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18341     shlibpath_var=LD_LIBRARY_PATH
18342   else
18343     # With GCC up to 2.95.x, collect2 would create an import file
18344     # for dependence libraries.  The import file would start with
18345     # the line `#! .'.  This would cause the generated library to
18346     # depend on `.', always an invalid library.  This was fixed in
18347     # development snapshots of GCC prior to 3.0.
18348     case $host_os in
18349       aix4 | aix4.[01] | aix4.[01].*)
18350       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18351            echo ' yes '
18352            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18353         :
18354       else
18355         can_build_shared=no
18356       fi
18357       ;;
18358     esac
18359     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18360     # soname into executable. Probably we can add versioning support to
18361     # collect2, so additional links can be useful in future.
18362     if test "$aix_use_runtimelinking" = yes; then
18363       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18364       # instead of lib<name>.a to let people know that these are not
18365       # typical AIX shared libraries.
18366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18367     else
18368       # We preserve .a as extension for shared libraries through AIX4.2
18369       # and later when we are not doing run time linking.
18370       library_names_spec='${libname}${release}.a $libname.a'
18371       soname_spec='${libname}${release}${shared_ext}$major'
18372     fi
18373     shlibpath_var=LIBPATH
18374   fi
18375   ;;
18376
18377 amigaos*)
18378   case $host_cpu in
18379   powerpc)
18380     # Since July 2007 AmigaOS4 officially supports .so libraries.
18381     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383     ;;
18384   m68k)
18385     library_names_spec='$libname.ixlibrary $libname.a'
18386     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18387     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'
18388     ;;
18389   esac
18390   ;;
18391
18392 beos*)
18393   library_names_spec='${libname}${shared_ext}'
18394   dynamic_linker="$host_os ld.so"
18395   shlibpath_var=LIBRARY_PATH
18396   ;;
18397
18398 bsdi[45]*)
18399   version_type=linux
18400   need_version=no
18401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402   soname_spec='${libname}${release}${shared_ext}$major'
18403   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404   shlibpath_var=LD_LIBRARY_PATH
18405   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407   # the default ld.so.conf also contains /usr/contrib/lib and
18408   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409   # libtool to hard-code these into programs
18410   ;;
18411
18412 cygwin* | mingw* | pw32* | cegcc*)
18413   version_type=windows
18414   shrext_cmds=".dll"
18415   need_version=no
18416   need_lib_prefix=no
18417
18418   case $GCC,$host_os in
18419   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18420     library_names_spec='$libname.dll.a'
18421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18422     postinstall_cmds='base_file=`basename \${file}`~
18423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18424       dldir=$destdir/`dirname \$dlpath`~
18425       test -d \$dldir || mkdir -p \$dldir~
18426       $install_prog $dir/$dlname \$dldir/$dlname~
18427       chmod a+x \$dldir/$dlname~
18428       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18429         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18430       fi'
18431     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18432       dlpath=$dir/\$dldll~
18433        $RM \$dlpath'
18434     shlibpath_overrides_runpath=yes
18435
18436     case $host_os in
18437     cygwin*)
18438       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18439       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18440       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18441       ;;
18442     mingw* | cegcc*)
18443       # MinGW DLLs use traditional 'lib' prefix
18444       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18446       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18447         # It is most probably a Windows format PATH printed by
18448         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18449         # path with ; separators, and with drive letters. We can handle the
18450         # drive letters (cygwin fileutils understands them), so leave them,
18451         # especially as we might pass files found there to a mingw objdump,
18452         # which wouldn't understand a cygwinified path. Ahh.
18453         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18454       else
18455         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18456       fi
18457       ;;
18458     pw32*)
18459       # pw32 DLLs use 'pw' prefix rather than 'lib'
18460       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461       ;;
18462     esac
18463     ;;
18464
18465   *)
18466     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18467     ;;
18468   esac
18469   dynamic_linker='Win32 ld.exe'
18470   # FIXME: first we should search . and the directory the executable is in
18471   shlibpath_var=PATH
18472   ;;
18473
18474 darwin* | rhapsody*)
18475   dynamic_linker="$host_os dyld"
18476   version_type=darwin
18477   need_lib_prefix=no
18478   need_version=no
18479   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18480   soname_spec='${libname}${release}${major}$shared_ext'
18481   shlibpath_overrides_runpath=yes
18482   shlibpath_var=DYLD_LIBRARY_PATH
18483   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18484
18485   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18486   ;;
18487
18488 dgux*)
18489   version_type=linux
18490   need_lib_prefix=no
18491   need_version=no
18492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18493   soname_spec='${libname}${release}${shared_ext}$major'
18494   shlibpath_var=LD_LIBRARY_PATH
18495   ;;
18496
18497 freebsd1*)
18498   dynamic_linker=no
18499   ;;
18500
18501 freebsd* | dragonfly*)
18502   # DragonFly does not have aout.  When/if they implement a new
18503   # versioning mechanism, adjust this.
18504   if test -x /usr/bin/objformat; then
18505     objformat=`/usr/bin/objformat`
18506   else
18507     case $host_os in
18508     freebsd[123]*) objformat=aout ;;
18509     *) objformat=elf ;;
18510     esac
18511   fi
18512   version_type=freebsd-$objformat
18513   case $version_type in
18514     freebsd-elf*)
18515       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18516       need_version=no
18517       need_lib_prefix=no
18518       ;;
18519     freebsd-*)
18520       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18521       need_version=yes
18522       ;;
18523   esac
18524   shlibpath_var=LD_LIBRARY_PATH
18525   case $host_os in
18526   freebsd2*)
18527     shlibpath_overrides_runpath=yes
18528     ;;
18529   freebsd3.[01]* | freebsdelf3.[01]*)
18530     shlibpath_overrides_runpath=yes
18531     hardcode_into_libs=yes
18532     ;;
18533   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18534   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18535     shlibpath_overrides_runpath=no
18536     hardcode_into_libs=yes
18537     ;;
18538   *) # from 4.6 on, and DragonFly
18539     shlibpath_overrides_runpath=yes
18540     hardcode_into_libs=yes
18541     ;;
18542   esac
18543   ;;
18544
18545 gnu*)
18546   version_type=linux
18547   need_lib_prefix=no
18548   need_version=no
18549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18550   soname_spec='${libname}${release}${shared_ext}$major'
18551   shlibpath_var=LD_LIBRARY_PATH
18552   hardcode_into_libs=yes
18553   ;;
18554
18555 hpux9* | hpux10* | hpux11*)
18556   # Give a soname corresponding to the major version so that dld.sl refuses to
18557   # link against other versions.
18558   version_type=sunos
18559   need_lib_prefix=no
18560   need_version=no
18561   case $host_cpu in
18562   ia64*)
18563     shrext_cmds='.so'
18564     hardcode_into_libs=yes
18565     dynamic_linker="$host_os dld.so"
18566     shlibpath_var=LD_LIBRARY_PATH
18567     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569     soname_spec='${libname}${release}${shared_ext}$major'
18570     if test "X$HPUX_IA64_MODE" = X32; then
18571       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18572     else
18573       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18574     fi
18575     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18576     ;;
18577   hppa*64*)
18578     shrext_cmds='.sl'
18579     hardcode_into_libs=yes
18580     dynamic_linker="$host_os dld.sl"
18581     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18582     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584     soname_spec='${libname}${release}${shared_ext}$major'
18585     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18586     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18587     ;;
18588   *)
18589     shrext_cmds='.sl'
18590     dynamic_linker="$host_os dld.sl"
18591     shlibpath_var=SHLIB_PATH
18592     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18593     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594     soname_spec='${libname}${release}${shared_ext}$major'
18595     ;;
18596   esac
18597   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18598   postinstall_cmds='chmod 555 $lib'
18599   ;;
18600
18601 interix[3-9]*)
18602   version_type=linux
18603   need_lib_prefix=no
18604   need_version=no
18605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18606   soname_spec='${libname}${release}${shared_ext}$major'
18607   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18608   shlibpath_var=LD_LIBRARY_PATH
18609   shlibpath_overrides_runpath=no
18610   hardcode_into_libs=yes
18611   ;;
18612
18613 irix5* | irix6* | nonstopux*)
18614   case $host_os in
18615     nonstopux*) version_type=nonstopux ;;
18616     *)
18617         if test "$lt_cv_prog_gnu_ld" = yes; then
18618                 version_type=linux
18619         else
18620                 version_type=irix
18621         fi ;;
18622   esac
18623   need_lib_prefix=no
18624   need_version=no
18625   soname_spec='${libname}${release}${shared_ext}$major'
18626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18627   case $host_os in
18628   irix5* | nonstopux*)
18629     libsuff= shlibsuff=
18630     ;;
18631   *)
18632     case $LD in # libtool.m4 will add one of these switches to LD
18633     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18634       libsuff= shlibsuff= libmagic=32-bit;;
18635     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18636       libsuff=32 shlibsuff=N32 libmagic=N32;;
18637     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18638       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18639     *) libsuff= shlibsuff= libmagic=never-match;;
18640     esac
18641     ;;
18642   esac
18643   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18644   shlibpath_overrides_runpath=no
18645   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18646   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18647   hardcode_into_libs=yes
18648   ;;
18649
18650 # No shared lib support for Linux oldld, aout, or coff.
18651 linux*oldld* | linux*aout* | linux*coff*)
18652   dynamic_linker=no
18653   ;;
18654
18655 # This must be Linux ELF.
18656 linux* | k*bsd*-gnu)
18657   version_type=linux
18658   need_lib_prefix=no
18659   need_version=no
18660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661   soname_spec='${libname}${release}${shared_ext}$major'
18662   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18663   shlibpath_var=LD_LIBRARY_PATH
18664   shlibpath_overrides_runpath=no
18665   # Some binutils ld are patched to set DT_RUNPATH
18666   save_LDFLAGS=$LDFLAGS
18667   save_libdir=$libdir
18668   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18669        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h.  */
18672
18673 int
18674 main ()
18675 {
18676
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 if ac_fn_cxx_try_link "$LINENO"; then :
18682   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18683   shlibpath_overrides_runpath=yes
18684 fi
18685 fi
18686 rm -f core conftest.err conftest.$ac_objext \
18687     conftest$ac_exeext conftest.$ac_ext
18688   LDFLAGS=$save_LDFLAGS
18689   libdir=$save_libdir
18690
18691   # This implies no fast_install, which is unacceptable.
18692   # Some rework will be needed to allow for fast_install
18693   # before this can be enabled.
18694   hardcode_into_libs=yes
18695
18696   # Add ABI-specific directories to the system library path.
18697   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18698
18699   # Append ld.so.conf contents to the search path
18700   if test -f /etc/ld.so.conf; then
18701     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' ' '`
18702     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18703   fi
18704
18705   # We used to test for /lib/ld.so.1 and disable shared libraries on
18706   # powerpc, because MkLinux only supported shared libraries with the
18707   # GNU dynamic linker.  Since this was broken with cross compilers,
18708   # most powerpc-linux boxes support dynamic linking these days and
18709   # people can always --disable-shared, the test was removed, and we
18710   # assume the GNU/Linux dynamic linker is in use.
18711   dynamic_linker='GNU/Linux ld.so'
18712   ;;
18713
18714 netbsd*)
18715   version_type=sunos
18716   need_lib_prefix=no
18717   need_version=no
18718   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18720     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18721     dynamic_linker='NetBSD (a.out) ld.so'
18722   else
18723     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18724     soname_spec='${libname}${release}${shared_ext}$major'
18725     dynamic_linker='NetBSD ld.elf_so'
18726   fi
18727   shlibpath_var=LD_LIBRARY_PATH
18728   shlibpath_overrides_runpath=yes
18729   hardcode_into_libs=yes
18730   ;;
18731
18732 newsos6)
18733   version_type=linux
18734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735   shlibpath_var=LD_LIBRARY_PATH
18736   shlibpath_overrides_runpath=yes
18737   ;;
18738
18739 *nto* | *qnx*)
18740   version_type=qnx
18741   need_lib_prefix=no
18742   need_version=no
18743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744   soname_spec='${libname}${release}${shared_ext}$major'
18745   shlibpath_var=LD_LIBRARY_PATH
18746   shlibpath_overrides_runpath=no
18747   hardcode_into_libs=yes
18748   dynamic_linker='ldqnx.so'
18749   ;;
18750
18751 openbsd*)
18752   version_type=sunos
18753   sys_lib_dlsearch_path_spec="/usr/lib"
18754   need_lib_prefix=no
18755   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18756   case $host_os in
18757     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18758     *)                          need_version=no  ;;
18759   esac
18760   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762   shlibpath_var=LD_LIBRARY_PATH
18763   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18764     case $host_os in
18765       openbsd2.[89] | openbsd2.[89].*)
18766         shlibpath_overrides_runpath=no
18767         ;;
18768       *)
18769         shlibpath_overrides_runpath=yes
18770         ;;
18771       esac
18772   else
18773     shlibpath_overrides_runpath=yes
18774   fi
18775   ;;
18776
18777 os2*)
18778   libname_spec='$name'
18779   shrext_cmds=".dll"
18780   need_lib_prefix=no
18781   library_names_spec='$libname${shared_ext} $libname.a'
18782   dynamic_linker='OS/2 ld.exe'
18783   shlibpath_var=LIBPATH
18784   ;;
18785
18786 osf3* | osf4* | osf5*)
18787   version_type=osf
18788   need_lib_prefix=no
18789   need_version=no
18790   soname_spec='${libname}${release}${shared_ext}$major'
18791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792   shlibpath_var=LD_LIBRARY_PATH
18793   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18794   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18795   ;;
18796
18797 rdos*)
18798   dynamic_linker=no
18799   ;;
18800
18801 solaris*)
18802   version_type=linux
18803   need_lib_prefix=no
18804   need_version=no
18805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   shlibpath_var=LD_LIBRARY_PATH
18808   shlibpath_overrides_runpath=yes
18809   hardcode_into_libs=yes
18810   # ldd complains unless libraries are executable
18811   postinstall_cmds='chmod +x $lib'
18812   ;;
18813
18814 sunos4*)
18815   version_type=sunos
18816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18818   shlibpath_var=LD_LIBRARY_PATH
18819   shlibpath_overrides_runpath=yes
18820   if test "$with_gnu_ld" = yes; then
18821     need_lib_prefix=no
18822   fi
18823   need_version=yes
18824   ;;
18825
18826 sysv4 | sysv4.3*)
18827   version_type=linux
18828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829   soname_spec='${libname}${release}${shared_ext}$major'
18830   shlibpath_var=LD_LIBRARY_PATH
18831   case $host_vendor in
18832     sni)
18833       shlibpath_overrides_runpath=no
18834       need_lib_prefix=no
18835       runpath_var=LD_RUN_PATH
18836       ;;
18837     siemens)
18838       need_lib_prefix=no
18839       ;;
18840     motorola)
18841       need_lib_prefix=no
18842       need_version=no
18843       shlibpath_overrides_runpath=no
18844       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18845       ;;
18846   esac
18847   ;;
18848
18849 sysv4*MP*)
18850   if test -d /usr/nec ;then
18851     version_type=linux
18852     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853     soname_spec='$libname${shared_ext}.$major'
18854     shlibpath_var=LD_LIBRARY_PATH
18855   fi
18856   ;;
18857
18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18859   version_type=freebsd-elf
18860   need_lib_prefix=no
18861   need_version=no
18862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863   soname_spec='${libname}${release}${shared_ext}$major'
18864   shlibpath_var=LD_LIBRARY_PATH
18865   shlibpath_overrides_runpath=yes
18866   hardcode_into_libs=yes
18867   if test "$with_gnu_ld" = yes; then
18868     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18869   else
18870     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18871     case $host_os in
18872       sco3.2v5*)
18873         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18874         ;;
18875     esac
18876   fi
18877   sys_lib_dlsearch_path_spec='/usr/lib'
18878   ;;
18879
18880 tpf*)
18881   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18882   version_type=linux
18883   need_lib_prefix=no
18884   need_version=no
18885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886   shlibpath_var=LD_LIBRARY_PATH
18887   shlibpath_overrides_runpath=no
18888   hardcode_into_libs=yes
18889   ;;
18890
18891 uts4*)
18892   version_type=linux
18893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894   soname_spec='${libname}${release}${shared_ext}$major'
18895   shlibpath_var=LD_LIBRARY_PATH
18896   ;;
18897
18898 *)
18899   dynamic_linker=no
18900   ;;
18901 esac
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18903 $as_echo "$dynamic_linker" >&6; }
18904 test "$dynamic_linker" = no && can_build_shared=no
18905
18906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907 if test "$GCC" = yes; then
18908   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18909 fi
18910
18911 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18912   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18913 fi
18914 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18915   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18916 fi
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18955 hardcode_action_CXX=
18956 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18957    test -n "$runpath_var_CXX" ||
18958    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18959
18960   # We can hardcode non-existent directories.
18961   if test "$hardcode_direct_CXX" != no &&
18962      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18963      # have to relink, otherwise we might link with an installed library
18964      # when we should be linking with a yet-to-be-installed one
18965      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18966      test "$hardcode_minus_L_CXX" != no; then
18967     # Linking always hardcodes the temporary library directory.
18968     hardcode_action_CXX=relink
18969   else
18970     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18971     hardcode_action_CXX=immediate
18972   fi
18973 else
18974   # We cannot hardcode anything, or else we can only hardcode existing
18975   # directories.
18976   hardcode_action_CXX=unsupported
18977 fi
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18979 $as_echo "$hardcode_action_CXX" >&6; }
18980
18981 if test "$hardcode_action_CXX" = relink ||
18982    test "$inherit_rpath_CXX" = yes; then
18983   # Fast installation is not supported
18984   enable_fast_install=no
18985 elif test "$shlibpath_overrides_runpath" = yes ||
18986      test "$enable_shared" = no; then
18987   # Fast installation is not necessary
18988   enable_fast_install=needless
18989 fi
18990
18991
18992
18993
18994
18995
18996
18997   fi # test -n "$compiler"
18998
18999   CC=$lt_save_CC
19000   LDCXX=$LD
19001   LD=$lt_save_LD
19002   GCC=$lt_save_GCC
19003   with_gnu_ld=$lt_save_with_gnu_ld
19004   lt_cv_path_LDCXX=$lt_cv_path_LD
19005   lt_cv_path_LD=$lt_save_path_LD
19006   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19007   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19008 fi # test "$_lt_caught_CXX_error" != yes
19009
19010 ac_ext=c
19011 ac_cpp='$CPP $CPPFLAGS'
19012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028         ac_config_commands="$ac_config_commands libtool"
19029
19030
19031
19032
19033 # Only expand once:
19034
19035
19036
19037
19038
19039 # Configure libltdl
19040
19041
19042
19043
19044
19045
19046
19047
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19049 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19050 if test "${libltdl_cv_shlibext+set}" = set; then :
19051   $as_echo_n "(cached) " >&6
19052 else
19053
19054 module=yes
19055 eval libltdl_cv_shlibext=$shrext_cmds
19056
19057 fi
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19059 $as_echo "$libltdl_cv_shlibext" >&6; }
19060 if test -n "$libltdl_cv_shlibext"; then
19061
19062 cat >>confdefs.h <<_ACEOF
19063 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19064 _ACEOF
19065
19066 fi
19067
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19069 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19070 if test "${lt_cv_module_path_var+set}" = set; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073   lt_cv_module_path_var="$shlibpath_var"
19074 fi
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19076 $as_echo "$lt_cv_module_path_var" >&6; }
19077 if test -n "$lt_cv_module_path_var"; then
19078
19079 cat >>confdefs.h <<_ACEOF
19080 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19081 _ACEOF
19082
19083 fi
19084
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19086 $as_echo_n "checking for the default library search path... " >&6; }
19087 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19088   $as_echo_n "(cached) " >&6
19089 else
19090   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19091 fi
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19093 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19094 if test -n "$lt_cv_sys_dlsearch_path"; then
19095   sys_dlsearch_path=
19096   for dir in $lt_cv_sys_dlsearch_path; do
19097     if test -z "$sys_dlsearch_path"; then
19098       sys_dlsearch_path="$dir"
19099     else
19100       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19101     fi
19102   done
19103
19104 cat >>confdefs.h <<_ACEOF
19105 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19106 _ACEOF
19107
19108 fi
19109
19110
19111 LT_DLLOADERS=
19112
19113
19114 ac_ext=c
19115 ac_cpp='$CPP $CPPFLAGS'
19116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19119
19120
19121 LIBADD_DLOPEN=
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19123 $as_echo_n "checking for library containing dlopen... " >&6; }
19124 if test "${ac_cv_search_dlopen+set}" = set; then :
19125   $as_echo_n "(cached) " >&6
19126 else
19127   ac_func_search_save_LIBS=$LIBS
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h.  */
19130
19131 /* Override any GCC internal prototype to avoid an error.
19132    Use char because int might match the return type of a GCC
19133    builtin and then its argument prototype would still apply.  */
19134 #ifdef __cplusplus
19135 extern "C"
19136 #endif
19137 char dlopen ();
19138 int
19139 main ()
19140 {
19141 return dlopen ();
19142   ;
19143   return 0;
19144 }
19145 _ACEOF
19146 for ac_lib in '' dl; do
19147   if test -z "$ac_lib"; then
19148     ac_res="none required"
19149   else
19150     ac_res=-l$ac_lib
19151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19152   fi
19153   if ac_fn_c_try_link "$LINENO"; then :
19154   ac_cv_search_dlopen=$ac_res
19155 fi
19156 rm -f core conftest.err conftest.$ac_objext \
19157     conftest$ac_exeext
19158   if test "${ac_cv_search_dlopen+set}" = set; then :
19159   break
19160 fi
19161 done
19162 if test "${ac_cv_search_dlopen+set}" = set; then :
19163
19164 else
19165   ac_cv_search_dlopen=no
19166 fi
19167 rm conftest.$ac_ext
19168 LIBS=$ac_func_search_save_LIBS
19169 fi
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19171 $as_echo "$ac_cv_search_dlopen" >&6; }
19172 ac_res=$ac_cv_search_dlopen
19173 if test "$ac_res" != no; then :
19174   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19175
19176 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19177
19178         if test "$ac_cv_search_dlopen" != "none required" ; then
19179           LIBADD_DLOPEN="-ldl"
19180         fi
19181         libltdl_cv_lib_dl_dlopen="yes"
19182         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19183 else
19184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h.  */
19186 #if HAVE_DLFCN_H
19187 #  include <dlfcn.h>
19188 #endif
19189
19190 int
19191 main ()
19192 {
19193 dlopen(0, 0);
19194   ;
19195   return 0;
19196 }
19197 _ACEOF
19198 if ac_fn_c_try_link "$LINENO"; then :
19199
19200 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19201
19202             libltdl_cv_func_dlopen="yes"
19203             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19204 else
19205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19208   $as_echo_n "(cached) " >&6
19209 else
19210   ac_check_lib_save_LIBS=$LIBS
19211 LIBS="-lsvld  $LIBS"
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h.  */
19214
19215 /* Override any GCC internal prototype to avoid an error.
19216    Use char because int might match the return type of a GCC
19217    builtin and then its argument prototype would still apply.  */
19218 #ifdef __cplusplus
19219 extern "C"
19220 #endif
19221 char dlopen ();
19222 int
19223 main ()
19224 {
19225 return dlopen ();
19226   ;
19227   return 0;
19228 }
19229 _ACEOF
19230 if ac_fn_c_try_link "$LINENO"; then :
19231   ac_cv_lib_svld_dlopen=yes
19232 else
19233   ac_cv_lib_svld_dlopen=no
19234 fi
19235 rm -f core conftest.err conftest.$ac_objext \
19236     conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19238 fi
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19240 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19241 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19242
19243 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19244
19245                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19246                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19247 fi
19248
19249 fi
19250 rm -f core conftest.err conftest.$ac_objext \
19251     conftest$ac_exeext conftest.$ac_ext
19252 fi
19253
19254 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19255 then
19256   lt_save_LIBS="$LIBS"
19257   LIBS="$LIBS $LIBADD_DLOPEN"
19258   for ac_func in dlerror
19259 do :
19260   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19261 if test "x$ac_cv_func_dlerror" = x""yes; then :
19262   cat >>confdefs.h <<_ACEOF
19263 #define HAVE_DLERROR 1
19264 _ACEOF
19265
19266 fi
19267 done
19268
19269   LIBS="$lt_save_LIBS"
19270 fi
19271
19272
19273 LIBADD_SHL_LOAD=
19274 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19275 if test "x$ac_cv_func_shl_load" = x""yes; then :
19276
19277 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19278
19279         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19280 else
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19282 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19283 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19284   $as_echo_n "(cached) " >&6
19285 else
19286   ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-ldld  $LIBS"
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h.  */
19290
19291 /* Override any GCC internal prototype to avoid an error.
19292    Use char because int might match the return type of a GCC
19293    builtin and then its argument prototype would still apply.  */
19294 #ifdef __cplusplus
19295 extern "C"
19296 #endif
19297 char shl_load ();
19298 int
19299 main ()
19300 {
19301 return shl_load ();
19302   ;
19303   return 0;
19304 }
19305 _ACEOF
19306 if ac_fn_c_try_link "$LINENO"; then :
19307   ac_cv_lib_dld_shl_load=yes
19308 else
19309   ac_cv_lib_dld_shl_load=no
19310 fi
19311 rm -f core conftest.err conftest.$ac_objext \
19312     conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19316 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19317 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19318
19319 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19320
19321             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19322             LIBADD_SHL_LOAD="-ldld"
19323 fi
19324
19325 fi
19326
19327
19328
19329 case $host_os in
19330 darwin[1567].*)
19331 # We only want this for pre-Mac OS X 10.4.
19332   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19333 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19334
19335 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19336
19337         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19338 fi
19339
19340   ;;
19341 beos*)
19342   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19343   ;;
19344 cygwin* | mingw* | os2* | pw32*)
19345   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19346 "
19347 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19348   ac_have_decl=1
19349 else
19350   ac_have_decl=0
19351 fi
19352
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19355 _ACEOF
19356
19357   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19358   ;;
19359 esac
19360
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19362 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19364   $as_echo_n "(cached) " >&6
19365 else
19366   ac_check_lib_save_LIBS=$LIBS
19367 LIBS="-ldld  $LIBS"
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h.  */
19370
19371 /* Override any GCC internal prototype to avoid an error.
19372    Use char because int might match the return type of a GCC
19373    builtin and then its argument prototype would still apply.  */
19374 #ifdef __cplusplus
19375 extern "C"
19376 #endif
19377 char dld_link ();
19378 int
19379 main ()
19380 {
19381 return dld_link ();
19382   ;
19383   return 0;
19384 }
19385 _ACEOF
19386 if ac_fn_c_try_link "$LINENO"; then :
19387   ac_cv_lib_dld_dld_link=yes
19388 else
19389   ac_cv_lib_dld_dld_link=no
19390 fi
19391 rm -f core conftest.err conftest.$ac_objext \
19392     conftest$ac_exeext conftest.$ac_ext
19393 LIBS=$ac_check_lib_save_LIBS
19394 fi
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19396 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19397 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19398
19399 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19400
19401                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19402 fi
19403
19404
19405
19406
19407 LT_DLPREOPEN=
19408 if test -n "$LT_DLLOADERS"
19409 then
19410   for lt_loader in $LT_DLLOADERS; do
19411     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19412   done
19413
19414 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19415
19416 fi
19417
19418
19419 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19420
19421
19422 ac_ext=c
19423 ac_cpp='$CPP $CPPFLAGS'
19424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19427
19428
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19430 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19431 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19432   $as_echo_n "(cached) " >&6
19433 else
19434   lt_cv_sys_symbol_underscore=no
19435   cat > conftest.$ac_ext <<_LT_EOF
19436 void nm_test_func(){}
19437 int main(){nm_test_func;return 0;}
19438 _LT_EOF
19439   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19440   (eval $ac_compile) 2>&5
19441   ac_status=$?
19442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443   test $ac_status = 0; }; then
19444     # Now try to grab the symbols.
19445     ac_nlist=conftest.nm
19446     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19447   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19448   ac_status=$?
19449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19450   test $ac_status = 0; } && test -s "$ac_nlist"; then
19451       # See whether the symbols have a leading underscore.
19452       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19453         lt_cv_sys_symbol_underscore=yes
19454       else
19455         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19456           :
19457         else
19458           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19459         fi
19460       fi
19461     else
19462       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19463     fi
19464   else
19465     echo "configure: failed program was:" >&5
19466     cat conftest.c >&5
19467   fi
19468   rm -rf conftest*
19469
19470 fi
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19472 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19473   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19474
19475
19476 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19477   if test x"$libltdl_cv_func_dlopen" = xyes ||
19478      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19479         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19480 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19481 if test "${libltdl_cv_need_uscore+set}" = set; then :
19482   $as_echo_n "(cached) " >&6
19483 else
19484   libltdl_cv_need_uscore=unknown
19485           save_LIBS="$LIBS"
19486           LIBS="$LIBS $LIBADD_DLOPEN"
19487           if test "$cross_compiling" = yes; then :
19488   libltdl_cv_need_uscore=cross
19489 else
19490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19491   lt_status=$lt_dlunknown
19492   cat > conftest.$ac_ext <<_LT_EOF
19493 #line 19493 "configure"
19494 #include "confdefs.h"
19495
19496 #if HAVE_DLFCN_H
19497 #include <dlfcn.h>
19498 #endif
19499
19500 #include <stdio.h>
19501
19502 #ifdef RTLD_GLOBAL
19503 #  define LT_DLGLOBAL           RTLD_GLOBAL
19504 #else
19505 #  ifdef DL_GLOBAL
19506 #    define LT_DLGLOBAL         DL_GLOBAL
19507 #  else
19508 #    define LT_DLGLOBAL         0
19509 #  endif
19510 #endif
19511
19512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19513    find out it does not work in some platform. */
19514 #ifndef LT_DLLAZY_OR_NOW
19515 #  ifdef RTLD_LAZY
19516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19517 #  else
19518 #    ifdef DL_LAZY
19519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19520 #    else
19521 #      ifdef RTLD_NOW
19522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19523 #      else
19524 #        ifdef DL_NOW
19525 #          define LT_DLLAZY_OR_NOW      DL_NOW
19526 #        else
19527 #          define LT_DLLAZY_OR_NOW      0
19528 #        endif
19529 #      endif
19530 #    endif
19531 #  endif
19532 #endif
19533
19534 void fnord() { int i=42;}
19535 int main ()
19536 {
19537   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19538   int status = $lt_dlunknown;
19539
19540   if (self)
19541     {
19542       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19543       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19544       /* dlclose (self); */
19545     }
19546   else
19547     puts (dlerror ());
19548
19549   return status;
19550 }
19551 _LT_EOF
19552   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19553   (eval $ac_link) 2>&5
19554   ac_status=$?
19555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19557     (./conftest; exit; ) >&5 2>/dev/null
19558     lt_status=$?
19559     case x$lt_status in
19560       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19561       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19562       x$lt_dlunknown|x*)  ;;
19563     esac
19564   else :
19565     # compilation failed
19566
19567   fi
19568 fi
19569 rm -fr conftest*
19570
19571           LIBS="$save_LIBS"
19572
19573 fi
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19575 $as_echo "$libltdl_cv_need_uscore" >&6; }
19576   fi
19577 fi
19578
19579 if test x"$libltdl_cv_need_uscore" = xyes; then
19580
19581 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19582
19583 fi
19584
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19586 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19587 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19588   $as_echo_n "(cached) " >&6
19589 else
19590   # PORTME does your system automatically load deplibs for dlopen?
19591   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19592   # For now, we just catch OSes we know something about -- in the
19593   # future, we'll try test this programmatically.
19594   lt_cv_sys_dlopen_deplibs=unknown
19595   case $host_os in
19596   aix3*|aix4.1.*|aix4.2.*)
19597     # Unknown whether this is true for these versions of AIX, but
19598     # we want this `case' here to explicitly catch those versions.
19599     lt_cv_sys_dlopen_deplibs=unknown
19600     ;;
19601   aix[4-9]*)
19602     lt_cv_sys_dlopen_deplibs=yes
19603     ;;
19604   amigaos*)
19605     case $host_cpu in
19606     powerpc)
19607       lt_cv_sys_dlopen_deplibs=no
19608       ;;
19609     esac
19610     ;;
19611   darwin*)
19612     # Assuming the user has installed a libdl from somewhere, this is true
19613     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19614     lt_cv_sys_dlopen_deplibs=yes
19615     ;;
19616   freebsd* | dragonfly*)
19617     lt_cv_sys_dlopen_deplibs=yes
19618     ;;
19619   gnu* | linux* | k*bsd*-gnu)
19620     # GNU and its variants, using gnu ld.so (Glibc)
19621     lt_cv_sys_dlopen_deplibs=yes
19622     ;;
19623   hpux10*|hpux11*)
19624     lt_cv_sys_dlopen_deplibs=yes
19625     ;;
19626   interix*)
19627     lt_cv_sys_dlopen_deplibs=yes
19628     ;;
19629   irix[12345]*|irix6.[01]*)
19630     # Catch all versions of IRIX before 6.2, and indicate that we don't
19631     # know how it worked for any of those versions.
19632     lt_cv_sys_dlopen_deplibs=unknown
19633     ;;
19634   irix*)
19635     # The case above catches anything before 6.2, and it's known that
19636     # at 6.2 and later dlopen does load deplibs.
19637     lt_cv_sys_dlopen_deplibs=yes
19638     ;;
19639   netbsd*)
19640     lt_cv_sys_dlopen_deplibs=yes
19641     ;;
19642   openbsd*)
19643     lt_cv_sys_dlopen_deplibs=yes
19644     ;;
19645   osf[1234]*)
19646     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19647     # it did *not* use an RPATH in a shared library to find objects the
19648     # library depends on, so we explicitly say `no'.
19649     lt_cv_sys_dlopen_deplibs=no
19650     ;;
19651   osf5.0|osf5.0a|osf5.1)
19652     # dlopen *does* load deplibs and with the right loader patch applied
19653     # it even uses RPATH in a shared library to search for shared objects
19654     # that the library depends on, but there's no easy way to know if that
19655     # patch is installed.  Since this is the case, all we can really
19656     # say is unknown -- it depends on the patch being installed.  If
19657     # it is, this changes to `yes'.  Without it, it would be `no'.
19658     lt_cv_sys_dlopen_deplibs=unknown
19659     ;;
19660   osf*)
19661     # the two cases above should catch all versions of osf <= 5.1.  Read
19662     # the comments above for what we know about them.
19663     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19664     # is used to find them so we can finally say `yes'.
19665     lt_cv_sys_dlopen_deplibs=yes
19666     ;;
19667   qnx*)
19668     lt_cv_sys_dlopen_deplibs=yes
19669     ;;
19670   solaris*)
19671     lt_cv_sys_dlopen_deplibs=yes
19672     ;;
19673   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19674     libltdl_cv_sys_dlopen_deplibs=yes
19675     ;;
19676   esac
19677
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19680 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19681 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19682
19683 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19684
19685 fi
19686
19687 :
19688
19689 for ac_header in argz.h
19690 do :
19691   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19692 "
19693 if test "x$ac_cv_header_argz_h" = x""yes; then :
19694   cat >>confdefs.h <<_ACEOF
19695 #define HAVE_ARGZ_H 1
19696 _ACEOF
19697
19698 fi
19699
19700 done
19701
19702
19703 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19704 #  include <argz.h>
19705 #endif
19706 "
19707 if test "x$ac_cv_type_error_t" = x""yes; then :
19708
19709 cat >>confdefs.h <<_ACEOF
19710 #define HAVE_ERROR_T 1
19711 _ACEOF
19712
19713
19714 else
19715
19716 $as_echo "#define error_t int" >>confdefs.h
19717
19718
19719 $as_echo "#define __error_t_defined 1" >>confdefs.h
19720
19721 fi
19722
19723
19724 ARGZ_H=
19725 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19726         argz_next argz_stringify
19727 do :
19728   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19730 eval as_val=\$$as_ac_var
19731    if test "x$as_val" = x""yes; then :
19732   cat >>confdefs.h <<_ACEOF
19733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19734 _ACEOF
19735
19736 else
19737   ARGZ_H=argz.h;
19738
19739   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19740
19741 fi
19742 done
19743
19744
19745 if test -z "$ARGZ_H"; then :
19746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19747 $as_echo_n "checking if argz actually works... " >&6; }
19748 if test "${lt_cv_sys_argz_works+set}" = set; then :
19749   $as_echo_n "(cached) " >&6
19750 else
19751   case $host_os in #(
19752          *cygwin*)
19753            lt_cv_sys_argz_works=no
19754            if test "$cross_compiling" != no; then
19755              lt_cv_sys_argz_works="guessing no"
19756            else
19757              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19758              save_IFS=$IFS
19759              IFS=-.
19760              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19761              IFS=$save_IFS
19762              lt_os_major=${2-0}
19763              lt_os_minor=${3-0}
19764              lt_os_micro=${4-0}
19765              if test "$lt_os_major" -gt 1 \
19766                 || { test "$lt_os_major" -eq 1 \
19767                   && { test "$lt_os_minor" -gt 5 \
19768                     || { test "$lt_os_minor" -eq 5 \
19769                       && test "$lt_os_micro" -gt 24; }; }; }; then
19770                lt_cv_sys_argz_works=yes
19771              fi
19772            fi
19773            ;; #(
19774          *) lt_cv_sys_argz_works=yes ;;
19775          esac
19776 fi
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19778 $as_echo "$lt_cv_sys_argz_works" >&6; }
19779      if test $lt_cv_sys_argz_works = yes; then :
19780
19781 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19782
19783 else
19784   ARGZ_H=argz.h
19785
19786
19787   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19788
19789 fi
19790 fi
19791
19792
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19795 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19796 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19797   $as_echo_n "(cached) " >&6
19798 else
19799   if test -n "$lt_cv_sys_global_symbol_pipe"; then
19800     libltdl_cv_preloaded_symbols=yes
19801   else
19802     libltdl_cv_preloaded_symbols=no
19803   fi
19804
19805 fi
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19807 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19808 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19809
19810 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19811
19812 fi
19813
19814 # Set options
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826 # Check whether --with-included_ltdl was given.
19827 if test "${with_included_ltdl+set}" = set; then :
19828   withval=$with_included_ltdl;
19829 fi
19830
19831
19832 if test "x$with_included_ltdl" != xyes; then
19833   # We are not being forced to use the included libltdl sources, so
19834   # decide whether there is a useful installed version we can use.
19835   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19836
19837 "
19838 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19839   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19840             #include <ltdl.h>
19841 "
19842 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19844 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19845 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19846   $as_echo_n "(cached) " >&6
19847 else
19848   ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lltdl  $LIBS"
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h.  */
19852
19853 /* Override any GCC internal prototype to avoid an error.
19854    Use char because int might match the return type of a GCC
19855    builtin and then its argument prototype would still apply.  */
19856 #ifdef __cplusplus
19857 extern "C"
19858 #endif
19859 char lt_dladvise_preload ();
19860 int
19861 main ()
19862 {
19863 return lt_dladvise_preload ();
19864   ;
19865   return 0;
19866 }
19867 _ACEOF
19868 if ac_fn_c_try_link "$LINENO"; then :
19869   ac_cv_lib_ltdl_lt_dladvise_preload=yes
19870 else
19871   ac_cv_lib_ltdl_lt_dladvise_preload=no
19872 fi
19873 rm -f core conftest.err conftest.$ac_objext \
19874     conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19876 fi
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19878 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19879 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19880   with_included_ltdl=no
19881 else
19882   with_included_ltdl=yes
19883 fi
19884
19885 else
19886   with_included_ltdl=yes
19887 fi
19888
19889 else
19890   with_included_ltdl=yes
19891 fi
19892
19893
19894 fi
19895
19896
19897
19898
19899 # Check whether --with-ltdl_include was given.
19900 if test "${with_ltdl_include+set}" = set; then :
19901   withval=$with_ltdl_include;
19902 fi
19903
19904
19905 if test -n "$with_ltdl_include"; then
19906   if test -f "$with_ltdl_include/ltdl.h"; then :
19907   else
19908     as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19909   fi
19910 else
19911   with_ltdl_include=no
19912 fi
19913
19914
19915 # Check whether --with-ltdl_lib was given.
19916 if test "${with_ltdl_lib+set}" = set; then :
19917   withval=$with_ltdl_lib;
19918 fi
19919
19920
19921 if test -n "$with_ltdl_lib"; then
19922   if test -f "$with_ltdl_lib/libltdl.la"; then :
19923   else
19924     as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19925   fi
19926 else
19927   with_ltdl_lib=no
19928 fi
19929
19930 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19931   ,yes,no,no,)
19932         case $enable_ltdl_convenience in
19933   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19934   "") enable_ltdl_convenience=yes
19935       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19936 esac
19937 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19938 LTDLDEPS=$LIBLTDL
19939 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19940
19941
19942
19943
19944
19945 # For backwards non-gettext consistent compatibility...
19946 INCLTDL="$LTDLINCL"
19947
19948
19949         ;;
19950   ,no,no,no,)
19951         # If the included ltdl is not to be used, then use the
19952         # preinstalled libltdl we found.
19953
19954 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19955
19956         LIBLTDL=-lltdl
19957         LTDLDEPS=
19958         LTDLINCL=
19959         ;;
19960   ,no*,no,*)
19961         as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19962         ;;
19963   *)    with_included_ltdl=no
19964         LIBLTDL="-L$with_ltdl_lib -lltdl"
19965         LTDLDEPS=
19966         LTDLINCL="-I$with_ltdl_include"
19967         ;;
19968 esac
19969 INCLTDL="$LTDLINCL"
19970
19971 # Report our decision...
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19973 $as_echo_n "checking where to find libltdl headers... " >&6; }
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19975 $as_echo "$LTDLINCL" >&6; }
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19977 $as_echo_n "checking where to find libltdl library... " >&6; }
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19979 $as_echo "$LIBLTDL" >&6; }
19980
19981
19982
19983 # Check whether --enable-ltdl-install was given.
19984 if test "${enable_ltdl_install+set}" = set; then :
19985   enableval=$enable_ltdl_install;
19986 fi
19987
19988
19989 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19990   *yes*) ;;
19991   *) enable_ltdl_convenience=yes ;;
19992 esac
19993
19994  if test x"${enable_ltdl_install-no}" != xno; then
19995   INSTALL_LTDL_TRUE=
19996   INSTALL_LTDL_FALSE='#'
19997 else
19998   INSTALL_LTDL_TRUE='#'
19999   INSTALL_LTDL_FALSE=
20000 fi
20001
20002   if test x"${enable_ltdl_convenience-no}" != xno; then
20003   CONVENIENCE_LTDL_TRUE=
20004   CONVENIENCE_LTDL_FALSE='#'
20005 else
20006   CONVENIENCE_LTDL_TRUE='#'
20007   CONVENIENCE_LTDL_FALSE=
20008 fi
20009
20010
20011
20012
20013
20014
20015
20016 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20017 # the user used.  This is so that ltdl.h can pick up the parent projects
20018 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20019 # definitions required by ltdl.c.
20020 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20021
20022
20023
20024 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20025 do :
20026   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20028 "
20029 eval as_val=\$$as_ac_Header
20030    if test "x$as_val" = x""yes; then :
20031   cat >>confdefs.h <<_ACEOF
20032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20033 _ACEOF
20034
20035 fi
20036
20037 done
20038
20039
20040 for ac_func in closedir opendir readdir
20041 do :
20042   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20044 eval as_val=\$$as_ac_var
20045    if test "x$as_val" = x""yes; then :
20046   cat >>confdefs.h <<_ACEOF
20047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20048 _ACEOF
20049
20050 else
20051
20052
20053   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20054
20055 fi
20056 done
20057
20058 for ac_func in strlcat strlcpy
20059 do :
20060   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20062 eval as_val=\$$as_ac_var
20063    if test "x$as_val" = x""yes; then :
20064   cat >>confdefs.h <<_ACEOF
20065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20066 _ACEOF
20067
20068 else
20069
20070
20071   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20072
20073 fi
20074 done
20075
20076
20077
20078 cat >>confdefs.h <<_ACEOF
20079 #define LT_LIBEXT "$libext"
20080 _ACEOF
20081
20082
20083 name=ltdl
20084 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20085
20086
20087
20088
20089
20090
20091
20092
20093 # Only expand once:
20094
20095
20096
20097 # Check to see if building shared libraries
20098 libtool_build_shared_libs='no'
20099 if test "$enable_shared" = 'yes'; then
20100     libtool_build_shared_libs='yes'
20101 fi
20102
20103 # Check to see if building static libraries
20104 libtool_build_static_libs='no'
20105 if test "$enable_static" = 'yes'; then
20106     libtool_build_static_libs='yes'
20107 fi
20108
20109  if test "${libtool_build_shared_libs}" = 'yes'; then
20110   WITH_SHARED_LIBS_TRUE=
20111   WITH_SHARED_LIBS_FALSE='#'
20112 else
20113   WITH_SHARED_LIBS_TRUE='#'
20114   WITH_SHARED_LIBS_FALSE=
20115 fi
20116
20117 #
20118 # Enable support for building loadable modules
20119 #
20120
20121 # Check whether --with-modules was given.
20122 if test "${with_modules+set}" = set; then :
20123   withval=$with_modules; with_modules=$withval
20124 else
20125   with_modules='no'
20126 fi
20127
20128
20129 # Only allow building loadable modules if we are building shared libraries
20130 if test "$with_modules" != 'no' ; then
20131     if test "$libtool_build_shared_libs" = 'no'; then
20132         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20133 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20134         with_modules='no'
20135     fi
20136 fi
20137 if test "$with_modules" != 'no'; then
20138
20139 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20140
20141 fi
20142  if test "$with_modules" != 'no'; then
20143   WITH_MODULES_TRUE=
20144   WITH_MODULES_FALSE='#'
20145 else
20146   WITH_MODULES_TRUE='#'
20147   WITH_MODULES_FALSE=
20148 fi
20149
20150
20151 # Enable building/use of libltdl if we are building shared libraries regardless
20152 # of whether modules are built or not.
20153 with_ltdl='no'
20154 if test "$libtool_build_shared_libs" != 'no'; then
20155     with_ltdl='yes'
20156 fi
20157
20158  if test "$with_ltdl" != 'no'; then
20159   WITH_LTDL_TRUE=
20160   WITH_LTDL_FALSE='#'
20161 else
20162   WITH_LTDL_TRUE='#'
20163   WITH_LTDL_FALSE=
20164 fi
20165
20166 if test "$with_ltdl" != 'no'; then
20167
20168 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20169
20170
20171     # Set DLLDFLAGS
20172     if test X"$enable_shared" = Xyes; then
20173         DLLDFLAGS=-export-dynamic
20174
20175     fi
20176 fi
20177
20178 # Enable build using delegate libraries built in subdirectories rather than installed
20179 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
20180 # Check whether --enable-delegate-build was given.
20181 if test "${enable_delegate_build+set}" = set; then :
20182   enableval=$enable_delegate_build; enable_delegate_build=$enableval
20183 else
20184   enable_delegate_build='no'
20185 fi
20186
20187
20188 # Check whether --enable-deprecated was given.
20189 if test "${enable_deprecated+set}" = set; then :
20190   enableval=$enable_deprecated; enable_deprecated=$enableval
20191 else
20192   enable_deprecated='no'
20193 fi
20194
20195
20196 if test "$enable_deprecated" = 'yes'; then
20197
20198 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20199
20200 else
20201   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20202 fi
20203
20204 # Build a version of ImageMagick which operates uninstalled.
20205 # Used to build distributions located via MAGICK_HOME / executable path
20206 # Check whether --enable-installed was given.
20207 if test "${enable_installed+set}" = set; then :
20208   enableval=$enable_installed; enable_installed=$enableval
20209 else
20210   enable_installed='yes'
20211 fi
20212
20213
20214 if test "$enable_installed" = 'yes'; then
20215
20216 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20217
20218 else
20219     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20220 fi
20221
20222 # Permit enciphering and deciphering image pixels.
20223 # Check whether --enable-cipher was given.
20224 if test "${enable_cipher+set}" = set; then :
20225   enableval=$enable_cipher; enable_cipher=$enableval
20226 else
20227   enable_cipher='yes'
20228 fi
20229
20230
20231 if test "$enable_cipher" = 'yes'; then
20232
20233 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20234
20235 fi
20236
20237 # Build an embeddable version of ImageMagick.
20238 # Check whether --enable-embeddable was given.
20239 if test "${enable_embeddable+set}" = set; then :
20240   enableval=$enable_embeddable; enable_embeddable=$enableval
20241 else
20242   enable_embeddable='no'
20243 fi
20244
20245
20246 if test "$enable_embeddable" = 'yes'; then
20247
20248 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20249
20250 fi
20251
20252 # Build a high dynamic range version of ImageMagick.
20253 # Check whether --enable-hdri was given.
20254 if test "${enable_hdri+set}" = set; then :
20255   enableval=$enable_hdri; enable_hdri=$enableval
20256 else
20257   enable_hdri='no'
20258 fi
20259
20260
20261 MAGICK_HDRI=""
20262 if test "$enable_hdri" = 'yes'; then
20263     MAGICK_HDRI="HDRI"
20264
20265 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20266
20267     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20268 fi
20269
20270 # Build a version of ImageMagick with assert statements.
20271 # Check whether --enable-assert was given.
20272 if test "${enable_assert+set}" = set; then :
20273   enableval=$enable_assert; enable_assert=$enableval
20274 else
20275   enable_assert='yes'
20276 fi
20277
20278
20279 if test "$enable_assert" = 'no'; then
20280
20281 $as_echo "#define NDEBUG 1" >>confdefs.h
20282
20283 fi
20284
20285 # Add configure option --enable-maintainer-mode which enables dependency
20286 # checking and generation useful to package maintainers.  This is made an
20287 # option to avoid confusing end users.
20288
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20290 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20291     # Check whether --enable-maintainer-mode was given.
20292 if test "${enable_maintainer_mode+set}" = set; then :
20293   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20294 else
20295   USE_MAINTAINER_MODE=no
20296 fi
20297
20298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20299 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20300    if test $USE_MAINTAINER_MODE = yes; then
20301   MAINTAINER_MODE_TRUE=
20302   MAINTAINER_MODE_FALSE='#'
20303 else
20304   MAINTAINER_MODE_TRUE='#'
20305   MAINTAINER_MODE_FALSE=
20306 fi
20307
20308   MAINT=$MAINTAINER_MODE_TRUE
20309
20310
20311
20312
20313 # Enable ccmalloc memory debugging support
20314 # Check whether --enable-ccmalloc was given.
20315 if test "${enable_ccmalloc+set}" = set; then :
20316   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20317 else
20318   enable_ccmalloc='no'
20319 fi
20320
20321
20322 # Enable Electric Fence memory debugging support
20323 # Check whether --enable-efence was given.
20324 if test "${enable_efence+set}" = set; then :
20325   enableval=$enable_efence; enable_efence=$enableval
20326 else
20327   enable_efence='no'
20328 fi
20329
20330
20331 # Enable prof-based profiling support
20332 # Check whether --enable-prof was given.
20333 if test "${enable_prof+set}" = set; then :
20334   enableval=$enable_prof; enable_prof=$enableval
20335 else
20336   enable_prof='no'
20337 fi
20338
20339
20340 # Enable gprof-based profiling support
20341 # Check whether --enable-gprof was given.
20342 if test "${enable_gprof+set}" = set; then :
20343   enableval=$enable_gprof; enable_gprof=$enableval
20344 else
20345   enable_gprof='no'
20346 fi
20347
20348
20349 # Enable gcov-based profiling support
20350 # Check whether --enable-gcov was given.
20351 if test "${enable_gcov+set}" = set; then :
20352   enableval=$enable_gcov; enable_gcov=$enableval
20353 else
20354   enable_gcov='no'
20355 fi
20356
20357
20358 enable_profiling='no'
20359 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20360     enable_profiling='yes'
20361     if test "$libtool_build_shared_libs" = 'yes'; then
20362         echo "Warning: Can not profile code using shared libraries"
20363     fi
20364 fi
20365
20366 # Magick API method prefix
20367
20368 # Check whether --with-method-prefix was given.
20369 if test "${with_method_prefix+set}" = set; then :
20370   withval=$with_method_prefix; with_method_prefix=$enableval
20371 else
20372   with_method_prefix=''
20373 fi
20374
20375
20376 if test "$with_method_prefix" != ''; then
20377
20378 cat >>confdefs.h <<_ACEOF
20379 #define NAMESPACE_PREFIX $with_method_prefix
20380 _ACEOF
20381
20382 fi
20383
20384 # Number of bits in a Quantum
20385
20386 # Check whether --with-quantum-depth was given.
20387 if test "${with_quantum_depth+set}" = set; then :
20388   withval=$with_quantum_depth; with_quantum_depth=$withval
20389 else
20390   with_quantum_depth=16
20391 fi
20392
20393
20394 if test "$with_quantum_depth" != '8'; then
20395     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20396 fi
20397
20398 case "${with_quantum_depth}" in
20399     8 ) ;;
20400     16 ) ;;
20401     32 ) ;;
20402     64 ) ;;
20403     * ) { as_fn_set_status 16
20404 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
20405 esac
20406 if test "$enable_hdri" = 'yes'; then
20407   with_quantum_depth=16
20408 fi
20409 QUANTUM_DEPTH="$with_quantum_depth"
20410
20411 cat >>confdefs.h <<_ACEOF
20412 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20413 _ACEOF
20414
20415
20416 # Set pixel cache threshold
20417
20418 # Check whether --with-cache was given.
20419 if test "${with_cache+set}" = set; then :
20420   withval=$with_cache; with_cache=$withval
20421 else
20422   with_cache=''
20423 fi
20424
20425
20426 if test "$with_cache" != ''; then
20427
20428 cat >>confdefs.h <<_ACEOF
20429 #define PixelCacheThreshold $with_cache
20430 _ACEOF
20431
20432     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20433 fi
20434
20435 # Disable/Enable support for full delegate paths
20436
20437 # Check whether --with-frozenpaths was given.
20438 if test "${with_frozenpaths+set}" = set; then :
20439   withval=$with_frozenpaths; with_frozenpaths=$withval
20440 else
20441   with_frozenpaths='no'
20442 fi
20443
20444
20445 # Enable build/install of Magick++
20446
20447 # Check whether --with-magick-plus-plus was given.
20448 if test "${with_magick_plus_plus+set}" = set; then :
20449   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20450 else
20451   with_magick_plus_plus='yes'
20452 fi
20453
20454
20455 # Disable build/install of PerlMagick.
20456
20457 # Check whether --with-perl was given.
20458 if test "${with_perl+set}" = set; then :
20459   withval=$with_perl; with_perl=$withval
20460 else
20461   with_perl='no'
20462 fi
20463
20464
20465 # Options to pass when configuring PerlMagick
20466
20467 # Check whether --with-perl-options was given.
20468 if test "${with_perl_options+set}" = set; then :
20469   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20470 fi
20471
20472
20473
20474 # Enable umem, object-caching memory allocation library.
20475
20476 # Check whether --with-umem was given.
20477 if test "${with_umem+set}" = set; then :
20478   withval=$with_umem; with_umem=$withval
20479 else
20480   with_umem='no'
20481 fi
20482
20483 if test "$with_umem" != 'yes' ; then
20484     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20485 fi
20486
20487 #
20488 # Specify path to shared libstdc++ if not in normal location
20489 #
20490
20491 # Check whether --with-libstdc was given.
20492 if test "${with_libstdc+set}" = set; then :
20493   withval=$with_libstdc; with_libstdc=$withval
20494 else
20495   with_libstdc=''
20496 fi
20497
20498
20499 if test "$with_libstdc" != ''; then
20500     if test -d "$with_libstdc"; then
20501         LIBSTDCLDFLAGS="-L$with_libstdc"
20502     fi
20503 fi
20504
20505
20506 # Does gcc required -traditional?
20507 if test $ac_cv_c_compiler_gnu = yes; then
20508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20509 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20510 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20511   $as_echo_n "(cached) " >&6
20512 else
20513     ac_pattern="Autoconf.*'x'"
20514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h.  */
20516 #include <sgtty.h>
20517 Autoconf TIOCGETP
20518 _ACEOF
20519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20520   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20521   ac_cv_prog_gcc_traditional=yes
20522 else
20523   ac_cv_prog_gcc_traditional=no
20524 fi
20525 rm -f conftest*
20526
20527
20528   if test $ac_cv_prog_gcc_traditional = no; then
20529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h.  */
20531 #include <termio.h>
20532 Autoconf TCGETA
20533 _ACEOF
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20536   ac_cv_prog_gcc_traditional=yes
20537 fi
20538 rm -f conftest*
20539
20540   fi
20541 fi
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20543 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20544   if test $ac_cv_prog_gcc_traditional = yes; then
20545     CC="$CC -traditional"
20546   fi
20547 fi
20548
20549
20550 ########
20551 #
20552 # Set defines required to build DLLs and modules using MinGW
20553 #
20554 ########
20555 # These options are set for multi-thread DLL module build
20556 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
20557 #  module:              _DLL
20558 #  executable/Magick++: _DLL _MAGICKMOD_
20559 MODULE_EXTRA_CPPFLAGS=''
20560 LIBRARY_EXTRA_CPPFLAGS=''
20561 if test "${native_win32_build}" = 'yes'; then
20562     if test "${libtool_build_shared_libs}" = 'yes'; then
20563         CPPFLAGS="$CPPFLAGS -D_DLL"
20564         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20565         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20566         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20567         if test "$with_modules" = 'yes'; then
20568             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20569         else
20570             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20571         fi
20572     else
20573         CPPFLAGS="$CPPFLAGS -D_LIB"
20574         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20575         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20576     fi
20577     if test "$with_threads" = 'yes'; then
20578          CPPFLAGS="$CPPFLAGS -D_MT"
20579          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20580          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20581     fi
20582 fi
20583
20584
20585
20586 # Check standard headers
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20588 $as_echo_n "checking for ANSI C header files... " >&6; }
20589 if test "${ac_cv_header_stdc+set}" = set; then :
20590   $as_echo_n "(cached) " >&6
20591 else
20592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h.  */
20594 #include <stdlib.h>
20595 #include <stdarg.h>
20596 #include <string.h>
20597 #include <float.h>
20598
20599 int
20600 main ()
20601 {
20602
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 if ac_fn_c_try_compile "$LINENO"; then :
20608   ac_cv_header_stdc=yes
20609 else
20610   ac_cv_header_stdc=no
20611 fi
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613
20614 if test $ac_cv_header_stdc = yes; then
20615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617 /* end confdefs.h.  */
20618 #include <string.h>
20619
20620 _ACEOF
20621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20622   $EGREP "memchr" >/dev/null 2>&1; then :
20623
20624 else
20625   ac_cv_header_stdc=no
20626 fi
20627 rm -f conftest*
20628
20629 fi
20630
20631 if test $ac_cv_header_stdc = yes; then
20632   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h.  */
20635 #include <stdlib.h>
20636
20637 _ACEOF
20638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20639   $EGREP "free" >/dev/null 2>&1; then :
20640
20641 else
20642   ac_cv_header_stdc=no
20643 fi
20644 rm -f conftest*
20645
20646 fi
20647
20648 if test $ac_cv_header_stdc = yes; then
20649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20650   if test "$cross_compiling" = yes; then :
20651   :
20652 else
20653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h.  */
20655 #include <ctype.h>
20656 #include <stdlib.h>
20657 #if ((' ' & 0x0FF) == 0x020)
20658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20660 #else
20661 # define ISLOWER(c) \
20662                    (('a' <= (c) && (c) <= 'i') \
20663                      || ('j' <= (c) && (c) <= 'r') \
20664                      || ('s' <= (c) && (c) <= 'z'))
20665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20666 #endif
20667
20668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20669 int
20670 main ()
20671 {
20672   int i;
20673   for (i = 0; i < 256; i++)
20674     if (XOR (islower (i), ISLOWER (i))
20675         || toupper (i) != TOUPPER (i))
20676       return 2;
20677   return 0;
20678 }
20679 _ACEOF
20680 if ac_fn_c_try_run "$LINENO"; then :
20681
20682 else
20683   ac_cv_header_stdc=no
20684 fi
20685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20686   conftest.$ac_objext conftest.beam conftest.$ac_ext
20687 fi
20688
20689 fi
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20692 $as_echo "$ac_cv_header_stdc" >&6; }
20693 if test $ac_cv_header_stdc = yes; then
20694
20695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20696
20697 fi
20698
20699 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20700     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20701     header files.  Compilation cannot proceed.  Please install the ANSI C
20702     headers and rerun this script." >&5
20703 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20704     header files.  Compilation cannot proceed.  Please install the ANSI C
20705     headers and rerun this script." >&2;};
20706 fi
20707
20708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20709 $as_echo_n "checking whether to enable assertions... " >&6; }
20710   # Check whether --enable-assert was given.
20711 if test "${enable_assert+set}" = set; then :
20712   enableval=$enable_assert; ac_enable_assert=$enableval
20713      if       test "x$enableval" = xno; then :
20714
20715 $as_echo "#define NDEBUG 1" >>confdefs.h
20716
20717 elif test "x$enableval" != xyes; then :
20718   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20719 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20720         ac_enable_assert=yes
20721 fi
20722 else
20723   ac_enable_assert=yes
20724 fi
20725
20726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20727 $as_echo "$ac_enable_assert" >&6; }
20728
20729 ac_header_dirent=no
20730 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20731   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20733 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20735   $as_echo_n "(cached) " >&6
20736 else
20737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h.  */
20739 #include <sys/types.h>
20740 #include <$ac_hdr>
20741
20742 int
20743 main ()
20744 {
20745 if ((DIR *) 0)
20746 return 0;
20747   ;
20748   return 0;
20749 }
20750 _ACEOF
20751 if ac_fn_c_try_compile "$LINENO"; then :
20752   eval "$as_ac_Header=yes"
20753 else
20754   eval "$as_ac_Header=no"
20755 fi
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757 fi
20758 eval ac_res=\$$as_ac_Header
20759                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20760 $as_echo "$ac_res" >&6; }
20761 eval as_val=\$$as_ac_Header
20762    if test "x$as_val" = x""yes; then :
20763   cat >>confdefs.h <<_ACEOF
20764 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20765 _ACEOF
20766
20767 ac_header_dirent=$ac_hdr; break
20768 fi
20769
20770 done
20771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20772 if test $ac_header_dirent = dirent.h; then
20773   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20774 $as_echo_n "checking for library containing opendir... " >&6; }
20775 if test "${ac_cv_search_opendir+set}" = set; then :
20776   $as_echo_n "(cached) " >&6
20777 else
20778   ac_func_search_save_LIBS=$LIBS
20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h.  */
20781
20782 /* Override any GCC internal prototype to avoid an error.
20783    Use char because int might match the return type of a GCC
20784    builtin and then its argument prototype would still apply.  */
20785 #ifdef __cplusplus
20786 extern "C"
20787 #endif
20788 char opendir ();
20789 int
20790 main ()
20791 {
20792 return opendir ();
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 for ac_lib in '' dir; do
20798   if test -z "$ac_lib"; then
20799     ac_res="none required"
20800   else
20801     ac_res=-l$ac_lib
20802     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20803   fi
20804   if ac_fn_c_try_link "$LINENO"; then :
20805   ac_cv_search_opendir=$ac_res
20806 fi
20807 rm -f core conftest.err conftest.$ac_objext \
20808     conftest$ac_exeext
20809   if test "${ac_cv_search_opendir+set}" = set; then :
20810   break
20811 fi
20812 done
20813 if test "${ac_cv_search_opendir+set}" = set; then :
20814
20815 else
20816   ac_cv_search_opendir=no
20817 fi
20818 rm conftest.$ac_ext
20819 LIBS=$ac_func_search_save_LIBS
20820 fi
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20822 $as_echo "$ac_cv_search_opendir" >&6; }
20823 ac_res=$ac_cv_search_opendir
20824 if test "$ac_res" != no; then :
20825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20826
20827 fi
20828
20829 else
20830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20831 $as_echo_n "checking for library containing opendir... " >&6; }
20832 if test "${ac_cv_search_opendir+set}" = set; then :
20833   $as_echo_n "(cached) " >&6
20834 else
20835   ac_func_search_save_LIBS=$LIBS
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h.  */
20838
20839 /* Override any GCC internal prototype to avoid an error.
20840    Use char because int might match the return type of a GCC
20841    builtin and then its argument prototype would still apply.  */
20842 #ifdef __cplusplus
20843 extern "C"
20844 #endif
20845 char opendir ();
20846 int
20847 main ()
20848 {
20849 return opendir ();
20850   ;
20851   return 0;
20852 }
20853 _ACEOF
20854 for ac_lib in '' x; do
20855   if test -z "$ac_lib"; then
20856     ac_res="none required"
20857   else
20858     ac_res=-l$ac_lib
20859     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20860   fi
20861   if ac_fn_c_try_link "$LINENO"; then :
20862   ac_cv_search_opendir=$ac_res
20863 fi
20864 rm -f core conftest.err conftest.$ac_objext \
20865     conftest$ac_exeext
20866   if test "${ac_cv_search_opendir+set}" = set; then :
20867   break
20868 fi
20869 done
20870 if test "${ac_cv_search_opendir+set}" = set; then :
20871
20872 else
20873   ac_cv_search_opendir=no
20874 fi
20875 rm conftest.$ac_ext
20876 LIBS=$ac_func_search_save_LIBS
20877 fi
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20879 $as_echo "$ac_cv_search_opendir" >&6; }
20880 ac_res=$ac_cv_search_opendir
20881 if test "$ac_res" != no; then :
20882   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20883
20884 fi
20885
20886 fi
20887
20888
20889 # Check additional headers
20890 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
20891 do :
20892   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20894 eval as_val=\$$as_ac_Header
20895    if test "x$as_val" = x""yes; then :
20896   cat >>confdefs.h <<_ACEOF
20897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20898 _ACEOF
20899
20900 fi
20901
20902 done
20903
20904
20905 ########
20906 #
20907 # Checks for typedefs, structures, and compiler characteristics.
20908 #
20909 ########
20910
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20912 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20913 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20914   $as_echo_n "(cached) " >&6
20915 else
20916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h.  */
20918
20919 #include <stdbool.h>
20920 #ifndef bool
20921  "error: bool is not defined"
20922 #endif
20923 #ifndef false
20924  "error: false is not defined"
20925 #endif
20926 #if false
20927  "error: false is not 0"
20928 #endif
20929 #ifndef true
20930  "error: true is not defined"
20931 #endif
20932 #if true != 1
20933  "error: true is not 1"
20934 #endif
20935 #ifndef __bool_true_false_are_defined
20936  "error: __bool_true_false_are_defined is not defined"
20937 #endif
20938
20939         struct s { _Bool s: 1; _Bool t; } s;
20940
20941         char a[true == 1 ? 1 : -1];
20942         char b[false == 0 ? 1 : -1];
20943         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944         char d[(bool) 0.5 == true ? 1 : -1];
20945         bool e = &s;
20946         char f[(_Bool) 0.0 == false ? 1 : -1];
20947         char g[true];
20948         char h[sizeof (_Bool)];
20949         char i[sizeof s.t];
20950         enum { j = false, k = true, l = false * true, m = true * 256 };
20951         /* The following fails for
20952            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20953         _Bool n[m];
20954         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956 #       if defined __xlc__ || defined __GNUC__
20957          /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20958             reported by James Lemley on 2005-10-05; see
20959             http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20960             This test is not quite right, since xlc is allowed to
20961             reject this program, as the initializer for xlcbug is
20962             not one of the forms that C requires support for.
20963             However, doing the test right would require a runtime
20964             test, and that would make cross-compilation harder.
20965             Let us hope that IBM fixes the xlc bug, and also adds
20966             support for this kind of constant expression.  In the
20967             meantime, this test will reject xlc, which is OK, since
20968             our stdbool.h substitute should suffice.  We also test
20969             this with GCC, where it should work, to detect more
20970             quickly whether someone messes up the test in the
20971             future.  */
20972          char digs[] = "0123456789";
20973          int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20974 #       endif
20975         /* Catch a bug in an HP-UX C compiler.  See
20976            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20977            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20978          */
20979         _Bool q = true;
20980         _Bool *pq = &q;
20981
20982 int
20983 main ()
20984 {
20985
20986         *pq |= q;
20987         *pq |= ! q;
20988         /* Refer to every declared value, to avoid compiler optimizations.  */
20989         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20990                 + !m + !n + !o + !p + !q + !pq);
20991
20992   ;
20993   return 0;
20994 }
20995 _ACEOF
20996 if ac_fn_c_try_compile "$LINENO"; then :
20997   ac_cv_header_stdbool_h=yes
20998 else
20999   ac_cv_header_stdbool_h=no
21000 fi
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21002 fi
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21004 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21005 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21006 if test "x$ac_cv_type__Bool" = x""yes; then :
21007
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE__BOOL 1
21010 _ACEOF
21011
21012
21013 fi
21014
21015 if test $ac_cv_header_stdbool_h = yes; then
21016
21017 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21018
21019 fi
21020
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21022 $as_echo_n "checking for working volatile... " >&6; }
21023 if test "${ac_cv_c_volatile+set}" = set; then :
21024   $as_echo_n "(cached) " >&6
21025 else
21026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h.  */
21028
21029 int
21030 main ()
21031 {
21032
21033 volatile int x;
21034 int * volatile y = (int *) 0;
21035 return !x && !y;
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 if ac_fn_c_try_compile "$LINENO"; then :
21041   ac_cv_c_volatile=yes
21042 else
21043   ac_cv_c_volatile=no
21044 fi
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21046 fi
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21048 $as_echo "$ac_cv_c_volatile" >&6; }
21049 if test $ac_cv_c_volatile = no; then
21050
21051 $as_echo "#define volatile /**/" >>confdefs.h
21052
21053 fi
21054
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21056 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21057 if test "${ac_cv_c_stringize+set}" = set; then :
21058   $as_echo_n "(cached) " >&6
21059 else
21060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21061 /* end confdefs.h.  */
21062 #define x(y) #y
21063
21064 char *s = x(teststring);
21065 _ACEOF
21066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21067   $EGREP "#teststring" >/dev/null 2>&1; then :
21068   ac_cv_c_stringize=no
21069 else
21070   ac_cv_c_stringize=yes
21071 fi
21072 rm -f conftest*
21073
21074 fi
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21076 $as_echo "$ac_cv_c_stringize" >&6; }
21077 if test $ac_cv_c_stringize = yes; then
21078
21079 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21080
21081 fi
21082
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21084 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21085 if test "${ac_cv_header_stat_broken+set}" = set; then :
21086   $as_echo_n "(cached) " >&6
21087 else
21088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h.  */
21090 #include <sys/types.h>
21091 #include <sys/stat.h>
21092
21093 #if defined S_ISBLK && defined S_IFDIR
21094 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21095 #endif
21096
21097 #if defined S_ISBLK && defined S_IFCHR
21098 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21099 #endif
21100
21101 #if defined S_ISLNK && defined S_IFREG
21102 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21103 #endif
21104
21105 #if defined S_ISSOCK && defined S_IFREG
21106 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21107 #endif
21108
21109 _ACEOF
21110 if ac_fn_c_try_compile "$LINENO"; then :
21111   ac_cv_header_stat_broken=no
21112 else
21113   ac_cv_header_stat_broken=yes
21114 fi
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21116 fi
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21118 $as_echo "$ac_cv_header_stat_broken" >&6; }
21119 if test $ac_cv_header_stat_broken = yes; then
21120
21121 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21122
21123 fi
21124
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21126 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21127 if test "${ac_cv_header_time+set}" = set; then :
21128   $as_echo_n "(cached) " >&6
21129 else
21130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h.  */
21132 #include <sys/types.h>
21133 #include <sys/time.h>
21134 #include <time.h>
21135
21136 int
21137 main ()
21138 {
21139 if ((struct tm *) 0)
21140 return 0;
21141   ;
21142   return 0;
21143 }
21144 _ACEOF
21145 if ac_fn_c_try_compile "$LINENO"; then :
21146   ac_cv_header_time=yes
21147 else
21148   ac_cv_header_time=no
21149 fi
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21151 fi
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21153 $as_echo "$ac_cv_header_time" >&6; }
21154 if test $ac_cv_header_time = yes; then
21155
21156 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21157
21158 fi
21159
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21161 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21162 if test "${ac_cv_struct_tm+set}" = set; then :
21163   $as_echo_n "(cached) " >&6
21164 else
21165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h.  */
21167 #include <sys/types.h>
21168 #include <time.h>
21169
21170 int
21171 main ()
21172 {
21173 struct tm tm;
21174                                      int *p = &tm.tm_sec;
21175                                      return !p;
21176   ;
21177   return 0;
21178 }
21179 _ACEOF
21180 if ac_fn_c_try_compile "$LINENO"; then :
21181   ac_cv_struct_tm=time.h
21182 else
21183   ac_cv_struct_tm=sys/time.h
21184 fi
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21186 fi
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21188 $as_echo "$ac_cv_struct_tm" >&6; }
21189 if test $ac_cv_struct_tm = sys/time.h; then
21190
21191 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21192
21193 fi
21194
21195 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21196 #include <$ac_cv_struct_tm>
21197
21198 "
21199 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21200
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_STRUCT_TM_TM_ZONE 1
21203 _ACEOF
21204
21205
21206 fi
21207
21208 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21209
21210 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21211
21212 else
21213   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21214 "
21215 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21216   ac_have_decl=1
21217 else
21218   ac_have_decl=0
21219 fi
21220
21221 cat >>confdefs.h <<_ACEOF
21222 #define HAVE_DECL_TZNAME $ac_have_decl
21223 _ACEOF
21224
21225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21226 $as_echo_n "checking for tzname... " >&6; }
21227 if test "${ac_cv_var_tzname+set}" = set; then :
21228   $as_echo_n "(cached) " >&6
21229 else
21230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h.  */
21232 #include <time.h>
21233 #if !HAVE_DECL_TZNAME
21234 extern char *tzname[];
21235 #endif
21236
21237 int
21238 main ()
21239 {
21240 return tzname[0][0];
21241   ;
21242   return 0;
21243 }
21244 _ACEOF
21245 if ac_fn_c_try_link "$LINENO"; then :
21246   ac_cv_var_tzname=yes
21247 else
21248   ac_cv_var_tzname=no
21249 fi
21250 rm -f core conftest.err conftest.$ac_objext \
21251     conftest$ac_exeext conftest.$ac_ext
21252 fi
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21254 $as_echo "$ac_cv_var_tzname" >&6; }
21255   if test $ac_cv_var_tzname = yes; then
21256
21257 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21258
21259   fi
21260 fi
21261
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21263 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21264 if test "${ac_cv_sys_interpreter+set}" = set; then :
21265   $as_echo_n "(cached) " >&6
21266 else
21267   echo '#! /bin/cat
21268 exit 69
21269 ' >conftest
21270 chmod u+x conftest
21271 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21272 if test $? -ne 69; then
21273    ac_cv_sys_interpreter=yes
21274 else
21275    ac_cv_sys_interpreter=no
21276 fi
21277 rm -f conftest
21278 fi
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21280 $as_echo "$ac_cv_sys_interpreter" >&6; }
21281 interpval=$ac_cv_sys_interpreter
21282
21283
21284 # If the C compiler supports the keyword inline, do nothing. Otherwise
21285 # define inline to __inline__ or __inline if it accepts one of those,
21286 # otherwise define inline to be empty.
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21288 $as_echo_n "checking for inline... " >&6; }
21289 if test "${ac_cv_c_inline+set}" = set; then :
21290   $as_echo_n "(cached) " >&6
21291 else
21292   ac_cv_c_inline=no
21293 for ac_kw in inline __inline__ __inline; do
21294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h.  */
21296 #ifndef __cplusplus
21297 typedef int foo_t;
21298 static $ac_kw foo_t static_foo () {return 0; }
21299 $ac_kw foo_t foo () {return 0; }
21300 #endif
21301
21302 _ACEOF
21303 if ac_fn_c_try_compile "$LINENO"; then :
21304   ac_cv_c_inline=$ac_kw
21305 fi
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307   test "$ac_cv_c_inline" != no && break
21308 done
21309
21310 fi
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21312 $as_echo "$ac_cv_c_inline" >&6; }
21313
21314 case $ac_cv_c_inline in
21315   inline | yes) ;;
21316   *)
21317     case $ac_cv_c_inline in
21318       no) ac_val=;;
21319       *) ac_val=$ac_cv_c_inline;;
21320     esac
21321     cat >>confdefs.h <<_ACEOF
21322 #ifndef __cplusplus
21323 #define inline $ac_val
21324 #endif
21325 _ACEOF
21326     ;;
21327 esac
21328
21329
21330 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21331 # define restrict to __restrict__ or __restrict if it accepts one of those,
21332 # otherwise define restrict to be empty.
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21334 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21335 if test "${ac_cv_c_restrict+set}" = set; then :
21336   $as_echo_n "(cached) " >&6
21337 else
21338   ac_cv_c_restrict=no
21339    # The order here caters to the fact that C++ does not require restrict.
21340    for ac_kw in __restrict __restrict__ _Restrict restrict; do
21341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h.  */
21343 typedef int * int_ptr;
21344         int foo (int_ptr $ac_kw ip) {
21345         return ip[0];
21346        }
21347 int
21348 main ()
21349 {
21350 int s[1];
21351         int * $ac_kw t = s;
21352         t[0] = 0;
21353         return foo(t)
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 if ac_fn_c_try_compile "$LINENO"; then :
21359   ac_cv_c_restrict=$ac_kw
21360 fi
21361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362      test "$ac_cv_c_restrict" != no && break
21363    done
21364
21365 fi
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21367 $as_echo "$ac_cv_c_restrict" >&6; }
21368
21369  case $ac_cv_c_restrict in
21370    restrict) ;;
21371    no) $as_echo "#define restrict /**/" >>confdefs.h
21372  ;;
21373    *)  cat >>confdefs.h <<_ACEOF
21374 #define restrict $ac_cv_c_restrict
21375 _ACEOF
21376  ;;
21377  esac
21378
21379
21380 # If words are stored with the most significant byte first (like
21381 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21382  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21383 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21384 if test "${ac_cv_c_bigendian+set}" = set; then :
21385   $as_echo_n "(cached) " >&6
21386 else
21387   ac_cv_c_bigendian=unknown
21388     # See if we're dealing with a universal compiler.
21389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h.  */
21391 #ifndef __APPLE_CC__
21392                not a universal capable compiler
21393              #endif
21394              typedef int dummy;
21395
21396 _ACEOF
21397 if ac_fn_c_try_compile "$LINENO"; then :
21398
21399         # Check for potential -arch flags.  It is not universal unless
21400         # there are at least two -arch flags with different values.
21401         ac_arch=
21402         ac_prev=
21403         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21404          if test -n "$ac_prev"; then
21405            case $ac_word in
21406              i?86 | x86_64 | ppc | ppc64)
21407                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21408                  ac_arch=$ac_word
21409                else
21410                  ac_cv_c_bigendian=universal
21411                  break
21412                fi
21413                ;;
21414            esac
21415            ac_prev=
21416          elif test "x$ac_word" = "x-arch"; then
21417            ac_prev=arch
21418          fi
21419        done
21420 fi
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422     if test $ac_cv_c_bigendian = unknown; then
21423       # See if sys/param.h defines the BYTE_ORDER macro.
21424       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h.  */
21426 #include <sys/types.h>
21427              #include <sys/param.h>
21428
21429 int
21430 main ()
21431 {
21432 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21433                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21434                      && LITTLE_ENDIAN)
21435               bogus endian macros
21436              #endif
21437
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 if ac_fn_c_try_compile "$LINENO"; then :
21443   # It does; now see whether it defined to BIG_ENDIAN or not.
21444          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h.  */
21446 #include <sys/types.h>
21447                 #include <sys/param.h>
21448
21449 int
21450 main ()
21451 {
21452 #if BYTE_ORDER != BIG_ENDIAN
21453                  not big endian
21454                 #endif
21455
21456   ;
21457   return 0;
21458 }
21459 _ACEOF
21460 if ac_fn_c_try_compile "$LINENO"; then :
21461   ac_cv_c_bigendian=yes
21462 else
21463   ac_cv_c_bigendian=no
21464 fi
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21466 fi
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468     fi
21469     if test $ac_cv_c_bigendian = unknown; then
21470       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21471       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h.  */
21473 #include <limits.h>
21474
21475 int
21476 main ()
21477 {
21478 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21479               bogus endian macros
21480              #endif
21481
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 if ac_fn_c_try_compile "$LINENO"; then :
21487   # It does; now see whether it defined to _BIG_ENDIAN or not.
21488          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h.  */
21490 #include <limits.h>
21491
21492 int
21493 main ()
21494 {
21495 #ifndef _BIG_ENDIAN
21496                  not big endian
21497                 #endif
21498
21499   ;
21500   return 0;
21501 }
21502 _ACEOF
21503 if ac_fn_c_try_compile "$LINENO"; then :
21504   ac_cv_c_bigendian=yes
21505 else
21506   ac_cv_c_bigendian=no
21507 fi
21508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21509 fi
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511     fi
21512     if test $ac_cv_c_bigendian = unknown; then
21513       # Compile a test program.
21514       if test "$cross_compiling" = yes; then :
21515   # Try to guess by grepping values from an object file.
21516          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518 short int ascii_mm[] =
21519                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21520                 short int ascii_ii[] =
21521                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21522                 int use_ascii (int i) {
21523                   return ascii_mm[i] + ascii_ii[i];
21524                 }
21525                 short int ebcdic_ii[] =
21526                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21527                 short int ebcdic_mm[] =
21528                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21529                 int use_ebcdic (int i) {
21530                   return ebcdic_mm[i] + ebcdic_ii[i];
21531                 }
21532                 extern int foo;
21533
21534 int
21535 main ()
21536 {
21537 return use_ascii (foo) == use_ebcdic (foo);
21538   ;
21539   return 0;
21540 }
21541 _ACEOF
21542 if ac_fn_c_try_compile "$LINENO"; then :
21543   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21544               ac_cv_c_bigendian=yes
21545             fi
21546             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21547               if test "$ac_cv_c_bigendian" = unknown; then
21548                 ac_cv_c_bigendian=no
21549               else
21550                 # finding both strings is unlikely to happen, but who knows?
21551                 ac_cv_c_bigendian=unknown
21552               fi
21553             fi
21554 fi
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21556 else
21557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h.  */
21559 $ac_includes_default
21560 int
21561 main ()
21562 {
21563
21564              /* Are we little or big endian?  From Harbison&Steele.  */
21565              union
21566              {
21567                long int l;
21568                char c[sizeof (long int)];
21569              } u;
21570              u.l = 1;
21571              return u.c[sizeof (long int) - 1] == 1;
21572
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 if ac_fn_c_try_run "$LINENO"; then :
21578   ac_cv_c_bigendian=no
21579 else
21580   ac_cv_c_bigendian=yes
21581 fi
21582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21583   conftest.$ac_objext conftest.beam conftest.$ac_ext
21584 fi
21585
21586     fi
21587 fi
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21589 $as_echo "$ac_cv_c_bigendian" >&6; }
21590  case $ac_cv_c_bigendian in #(
21591    yes)
21592      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21593 ;; #(
21594    no)
21595       ;; #(
21596    universal)
21597
21598 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21599
21600      ;; #(
21601    *)
21602      as_fn_error "unknown endianness
21603  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21604  esac
21605
21606
21607 # Define mode_t to a suitable type, if standard headers do not define it.
21608 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21609 if test "x$ac_cv_type_mode_t" = x""yes; then :
21610
21611 else
21612
21613 cat >>confdefs.h <<_ACEOF
21614 #define mode_t int
21615 _ACEOF
21616
21617 fi
21618
21619
21620 # Define off_t to a suitable type, if standard headers do not define it.
21621 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21622 if test "x$ac_cv_type_off_t" = x""yes; then :
21623
21624 else
21625
21626 cat >>confdefs.h <<_ACEOF
21627 #define off_t long int
21628 _ACEOF
21629
21630 fi
21631
21632
21633 # Define pid_t to a suitable type, if standard headers do not define it.
21634 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21635 if test "x$ac_cv_type_pid_t" = x""yes; then :
21636
21637 else
21638
21639 cat >>confdefs.h <<_ACEOF
21640 #define pid_t int
21641 _ACEOF
21642
21643 fi
21644
21645
21646 # Define size_t to a suitable type, if standard headers do not define it.
21647 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21648 if test "x$ac_cv_type_size_t" = x""yes; then :
21649
21650 else
21651
21652 cat >>confdefs.h <<_ACEOF
21653 #define size_t unsigned int
21654 _ACEOF
21655
21656 fi
21657
21658
21659 # Define ssize_t to a suitable type, if standard headers do not define it.
21660 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21661 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21662
21663 else
21664
21665 cat >>confdefs.h <<_ACEOF
21666 #define ssize_t int
21667 _ACEOF
21668
21669 fi
21670
21671
21672 # If the C compiler supports a working long double type with more range
21673 # or precision than the double type, define HAVE_LONG_DOUBLE.
21674
21675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21676 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21677 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21678   $as_echo_n "(cached) " >&6
21679 else
21680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21681 /* end confdefs.h.  */
21682 #include <float.h>
21683             long double const a[] =
21684               {
21685                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21686                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21687               };
21688             long double
21689             f (long double x)
21690             {
21691                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21692                         + (x ? f (x) : 'c'));
21693             }
21694
21695 int
21696 main ()
21697 {
21698 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21699                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
21700                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
21701                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21702             && (int) LDBL_EPSILON == 0
21703           )];
21704 test_array [0] = 0
21705
21706   ;
21707   return 0;
21708 }
21709 _ACEOF
21710 if ac_fn_c_try_compile "$LINENO"; then :
21711   ac_cv_type_long_double_wider=yes
21712 else
21713   ac_cv_type_long_double_wider=no
21714 fi
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716 fi
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21718 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21719   if test $ac_cv_type_long_double_wider = yes; then
21720
21721 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21722
21723   fi
21724
21725
21726 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21727 # C compiler predefines it.
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21729 $as_echo_n "checking whether char is unsigned... " >&6; }
21730 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21731   $as_echo_n "(cached) " >&6
21732 else
21733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h.  */
21735 $ac_includes_default
21736 int
21737 main ()
21738 {
21739 static int test_array [1 - 2 * !(((char) -1) < 0)];
21740 test_array [0] = 0
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 if ac_fn_c_try_compile "$LINENO"; then :
21747   ac_cv_c_char_unsigned=no
21748 else
21749   ac_cv_c_char_unsigned=yes
21750 fi
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21752 fi
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21754 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21755 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21756   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21757
21758 fi
21759
21760
21761 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21762 # The cast to long int works around a bug in the HP C Compiler
21763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21765 # This bug is HP SR number 8606223364.
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21767 $as_echo_n "checking size of signed short... " >&6; }
21768 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21769   $as_echo_n "(cached) " >&6
21770 else
21771   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
21772
21773 else
21774   if test "$ac_cv_type_signed_short" = yes; then
21775      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21777 { as_fn_set_status 77
21778 as_fn_error "cannot compute sizeof (signed short)
21779 See \`config.log' for more details." "$LINENO" 5; }; }
21780    else
21781      ac_cv_sizeof_signed_short=0
21782    fi
21783 fi
21784
21785 fi
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21787 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21788
21789
21790
21791 cat >>confdefs.h <<_ACEOF
21792 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21793 _ACEOF
21794
21795
21796
21797 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21798 # The cast to long int works around a bug in the HP C Compiler
21799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21801 # This bug is HP SR number 8606223364.
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21803 $as_echo_n "checking size of unsigned short... " >&6; }
21804 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21805   $as_echo_n "(cached) " >&6
21806 else
21807   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
21808
21809 else
21810   if test "$ac_cv_type_unsigned_short" = yes; then
21811      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21813 { as_fn_set_status 77
21814 as_fn_error "cannot compute sizeof (unsigned short)
21815 See \`config.log' for more details." "$LINENO" 5; }; }
21816    else
21817      ac_cv_sizeof_unsigned_short=0
21818    fi
21819 fi
21820
21821 fi
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21823 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21824
21825
21826
21827 cat >>confdefs.h <<_ACEOF
21828 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21829 _ACEOF
21830
21831
21832
21833 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21834 # The cast to long int works around a bug in the HP C Compiler
21835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21837 # This bug is HP SR number 8606223364.
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21839 $as_echo_n "checking size of signed int... " >&6; }
21840 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21841   $as_echo_n "(cached) " >&6
21842 else
21843   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
21844
21845 else
21846   if test "$ac_cv_type_signed_int" = yes; then
21847      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21849 { as_fn_set_status 77
21850 as_fn_error "cannot compute sizeof (signed int)
21851 See \`config.log' for more details." "$LINENO" 5; }; }
21852    else
21853      ac_cv_sizeof_signed_int=0
21854    fi
21855 fi
21856
21857 fi
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21859 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21860
21861
21862
21863 cat >>confdefs.h <<_ACEOF
21864 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21865 _ACEOF
21866
21867
21868
21869 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21870 # The cast to long int works around a bug in the HP C Compiler
21871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21873 # This bug is HP SR number 8606223364.
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21875 $as_echo_n "checking size of unsigned int... " >&6; }
21876 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21877   $as_echo_n "(cached) " >&6
21878 else
21879   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
21880
21881 else
21882   if test "$ac_cv_type_unsigned_int" = yes; then
21883      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21885 { as_fn_set_status 77
21886 as_fn_error "cannot compute sizeof (unsigned int)
21887 See \`config.log' for more details." "$LINENO" 5; }; }
21888    else
21889      ac_cv_sizeof_unsigned_int=0
21890    fi
21891 fi
21892
21893 fi
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21895 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21896
21897
21898
21899 cat >>confdefs.h <<_ACEOF
21900 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21901 _ACEOF
21902
21903
21904
21905 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21906 # The cast to long int works around a bug in the HP C Compiler
21907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21909 # This bug is HP SR number 8606223364.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21911 $as_echo_n "checking size of signed long... " >&6; }
21912 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21913   $as_echo_n "(cached) " >&6
21914 else
21915   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
21916
21917 else
21918   if test "$ac_cv_type_signed_long" = yes; then
21919      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21921 { as_fn_set_status 77
21922 as_fn_error "cannot compute sizeof (signed long)
21923 See \`config.log' for more details." "$LINENO" 5; }; }
21924    else
21925      ac_cv_sizeof_signed_long=0
21926    fi
21927 fi
21928
21929 fi
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21931 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21932
21933
21934
21935 cat >>confdefs.h <<_ACEOF
21936 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21937 _ACEOF
21938
21939
21940
21941 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21942 # The cast to long int works around a bug in the HP C Compiler
21943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21945 # This bug is HP SR number 8606223364.
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21947 $as_echo_n "checking size of unsigned long... " >&6; }
21948 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21949   $as_echo_n "(cached) " >&6
21950 else
21951   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
21952
21953 else
21954   if test "$ac_cv_type_unsigned_long" = yes; then
21955      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21957 { as_fn_set_status 77
21958 as_fn_error "cannot compute sizeof (unsigned long)
21959 See \`config.log' for more details." "$LINENO" 5; }; }
21960    else
21961      ac_cv_sizeof_unsigned_long=0
21962    fi
21963 fi
21964
21965 fi
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21967 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21968
21969
21970
21971 cat >>confdefs.h <<_ACEOF
21972 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21973 _ACEOF
21974
21975
21976
21977 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
21978 # 'signed long long' is not supported then the value defined is zero.
21979 # The cast to long int works around a bug in the HP C Compiler
21980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21982 # This bug is HP SR number 8606223364.
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21984 $as_echo_n "checking size of signed long long... " >&6; }
21985 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21986   $as_echo_n "(cached) " >&6
21987 else
21988   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
21989
21990 else
21991   if test "$ac_cv_type_signed_long_long" = yes; then
21992      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21994 { as_fn_set_status 77
21995 as_fn_error "cannot compute sizeof (signed long long)
21996 See \`config.log' for more details." "$LINENO" 5; }; }
21997    else
21998      ac_cv_sizeof_signed_long_long=0
21999    fi
22000 fi
22001
22002 fi
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
22004 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22005
22006
22007
22008 cat >>confdefs.h <<_ACEOF
22009 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22010 _ACEOF
22011
22012
22013
22014 # Obtain size of a 'unsigned long long' and define as
22015 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
22016 # supported then the value defined is zero.
22017 # The cast to long int works around a bug in the HP C Compiler
22018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22020 # This bug is HP SR number 8606223364.
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22022 $as_echo_n "checking size of unsigned long long... " >&6; }
22023 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
22024   $as_echo_n "(cached) " >&6
22025 else
22026   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
22027
22028 else
22029   if test "$ac_cv_type_unsigned_long_long" = yes; then
22030      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22032 { as_fn_set_status 77
22033 as_fn_error "cannot compute sizeof (unsigned long long)
22034 See \`config.log' for more details." "$LINENO" 5; }; }
22035    else
22036      ac_cv_sizeof_unsigned_long_long=0
22037    fi
22038 fi
22039
22040 fi
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22042 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22043
22044
22045
22046 cat >>confdefs.h <<_ACEOF
22047 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22048 _ACEOF
22049
22050
22051
22052 # Obtain size of off_t and define as SIZEOF_OFF_T
22053 # The cast to long int works around a bug in the HP C Compiler
22054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22056 # This bug is HP SR number 8606223364.
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22058 $as_echo_n "checking size of off_t... " >&6; }
22059 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22060   $as_echo_n "(cached) " >&6
22061 else
22062   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
22063
22064 else
22065   if test "$ac_cv_type_off_t" = yes; then
22066      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22068 { as_fn_set_status 77
22069 as_fn_error "cannot compute sizeof (off_t)
22070 See \`config.log' for more details." "$LINENO" 5; }; }
22071    else
22072      ac_cv_sizeof_off_t=0
22073    fi
22074 fi
22075
22076 fi
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22078 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22079
22080
22081
22082 cat >>confdefs.h <<_ACEOF
22083 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22084 _ACEOF
22085
22086
22087
22088 # Obtain size of size_t and define as SIZEOF_SIZE_T
22089 # The cast to long int works around a bug in the HP C Compiler
22090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22092 # This bug is HP SR number 8606223364.
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22094 $as_echo_n "checking size of size_t... " >&6; }
22095 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22096   $as_echo_n "(cached) " >&6
22097 else
22098   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
22099
22100 else
22101   if test "$ac_cv_type_size_t" = yes; then
22102      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22104 { as_fn_set_status 77
22105 as_fn_error "cannot compute sizeof (size_t)
22106 See \`config.log' for more details." "$LINENO" 5; }; }
22107    else
22108      ac_cv_sizeof_size_t=0
22109    fi
22110 fi
22111
22112 fi
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22114 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22115
22116
22117
22118 cat >>confdefs.h <<_ACEOF
22119 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22120 _ACEOF
22121
22122
22123
22124 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22125 # The cast to long int works around a bug in the HP C Compiler
22126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22128 # This bug is HP SR number 8606223364.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22130 $as_echo_n "checking size of ssize_t... " >&6; }
22131 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22132   $as_echo_n "(cached) " >&6
22133 else
22134   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
22135
22136 else
22137   if test "$ac_cv_type_ssize_t" = yes; then
22138      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22140 { as_fn_set_status 77
22141 as_fn_error "cannot compute sizeof (ssize_t)
22142 See \`config.log' for more details." "$LINENO" 5; }; }
22143    else
22144      ac_cv_sizeof_ssize_t=0
22145    fi
22146 fi
22147
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22150 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22151
22152
22153
22154 cat >>confdefs.h <<_ACEOF
22155 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22156 _ACEOF
22157
22158
22159
22160 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22161 # The cast to long int works around a bug in the HP C Compiler
22162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22164 # This bug is HP SR number 8606223364.
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22166 $as_echo_n "checking size of unsigned int*... " >&6; }
22167 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
22168   $as_echo_n "(cached) " >&6
22169 else
22170   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
22171
22172 else
22173   if test "$ac_cv_type_unsigned_intp" = yes; then
22174      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22176 { as_fn_set_status 77
22177 as_fn_error "cannot compute sizeof (unsigned int*)
22178 See \`config.log' for more details." "$LINENO" 5; }; }
22179    else
22180      ac_cv_sizeof_unsigned_intp=0
22181    fi
22182 fi
22183
22184 fi
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22186 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22187
22188
22189
22190 cat >>confdefs.h <<_ACEOF
22191 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22192 _ACEOF
22193
22194
22195
22196 #
22197 # Compute sized types for current CPU and compiler options.
22198 #
22199
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22201 $as_echo_n "checking for signed 8-bit type... " >&6; }
22202 INT8_T='signed char'
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22204 $as_echo "$INT8_T" >&6; }
22205
22206
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22208 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22209 UINT8_T='unsigned char'
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22211 $as_echo "$UINT8_T" >&6; }
22212
22213
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22215 $as_echo_n "checking for signed 16-bit type... " >&6; }
22216 INT16_T='signed short'
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22218 $as_echo "$INT16_T" >&6; }
22219
22220
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22222 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22223 UINT16_T='unsigned short'
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22225 $as_echo "$UINT16_T" >&6; }
22226
22227
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22229 $as_echo_n "checking for signed 32-bit type... " >&6; }
22230 INT32_T='none'
22231 if test $ac_cv_sizeof_signed_int -eq 4; then
22232   INT32_T='signed int'
22233 elif test $ac_cv_sizeof_signed_long -eq 4; then
22234   INT32_T='signed long'
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22237 $as_echo "$INT32_T" >&6; }
22238
22239
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22241 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22242 UINT32_T='none'
22243 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22244   UINT32_T='unsigned int'
22245 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22246   UINT32_T='unsigned long'
22247 fi
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22249 $as_echo "$UINT32_T" >&6; }
22250
22251
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22253 $as_echo_n "checking for signed 64-bit type... " >&6; }
22254 INT64_T='none'
22255 if test $ac_cv_sizeof_signed_long -eq 8; then
22256   INT64_T='signed long'
22257 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22258   INT64_T='signed long long'
22259 fi
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22261 $as_echo "$INT64_T" >&6; }
22262
22263
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22265 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22266 UINT64_T='none'
22267 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22268   UINT64_T='unsigned long'
22269 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22270   UINT64_T='unsigned long long'
22271 fi
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22273 $as_echo "$UINT64_T" >&6; }
22274
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22277 $as_echo_n "checking for unsigned maximum type... " >&6; }
22278 UINTMAX_T='none'
22279 if test "$UINT64_T" != 'none'; then
22280   UINTMAX_T=$UINT64_T
22281 elif test "$UINT32_T" != 'none'; then
22282   UINTMAX_T=$UINT32_T
22283 fi
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22285 $as_echo "$UINTMAX_T" >&6; }
22286
22287
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22289 $as_echo_n "checking for pointer difference type... " >&6; }
22290 UINTPTR_T='none'
22291 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22292   UINTPTR_T='unsigned long'
22293 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22294   UINTPTR_T='unsigned long long'
22295 fi
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22297 $as_echo "$UINTPTR_T" >&6; }
22298
22299
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22301 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h.  */
22304
22305 int
22306 main ()
22307 {
22308 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22309   ;
22310   return 0;
22311 }
22312 _ACEOF
22313 if ac_fn_c_try_compile "$LINENO"; then :
22314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22315 $as_echo "yes" >&6; }
22316 else
22317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22320 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h.  */
22323
22324 int
22325 main ()
22326 {
22327 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22328   ;
22329   return 0;
22330 }
22331 _ACEOF
22332 if ac_fn_c_try_compile "$LINENO"; then :
22333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22334 $as_echo "yes" >&6; }
22335
22336 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22337
22338 else
22339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 $as_echo "no" >&6; }
22341
22342 $as_echo "#define __func__ __FILE__" >>confdefs.h
22343
22344 fi
22345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346 fi
22347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22348
22349 ########
22350 #
22351 # Check for functions
22352 #
22353 ########
22354 for ac_header in stdlib.h unistd.h
22355 do :
22356   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22357 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22358 eval as_val=\$$as_ac_Header
22359    if test "x$as_val" = x""yes; then :
22360   cat >>confdefs.h <<_ACEOF
22361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22362 _ACEOF
22363
22364 fi
22365
22366 done
22367
22368 for ac_func in getpagesize
22369 do :
22370   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22371 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22372   cat >>confdefs.h <<_ACEOF
22373 #define HAVE_GETPAGESIZE 1
22374 _ACEOF
22375
22376 fi
22377 done
22378
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22380 $as_echo_n "checking for working mmap file i/o... " >&6; }
22381 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22382   $as_echo_n "(cached) " >&6
22383 else
22384   if test "$cross_compiling" = yes; then :
22385   magick_cv_func_mmap_fileio=no
22386 else
22387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h.  */
22389 $ac_includes_default
22390 /* malloc might have been renamed as rpl_malloc. */
22391 #undef malloc
22392
22393 /*
22394    This test is derived from GNU Autoconf's similar macro.
22395    The purpose of this test is to verify that files may be memory
22396    mapped, and that memory mapping and file I/O are coherent.
22397
22398    The test creates a test file, memory maps the file, updates
22399    the file using the memory map, and then reads the file using
22400    file I/O to verify that the file contains the updates.
22401 */
22402
22403 #include <fcntl.h>
22404 #include <sys/mman.h>
22405
22406 #if !STDC_HEADERS && !HAVE_STDLIB_H
22407 char *malloc ();
22408 #endif
22409
22410 /* This mess was copied from the GNU getpagesize.h.  */
22411 #if !HAVE_GETPAGESIZE
22412 /* Assume that all systems that can run configure have sys/param.h.  */
22413 # if !HAVE_SYS_PARAM_H
22414 #  define HAVE_SYS_PARAM_H 1
22415 # endif
22416
22417 # ifdef _SC_PAGESIZE
22418 #  define getpagesize() sysconf(_SC_PAGESIZE)
22419 # else /* no _SC_PAGESIZE */
22420 #  if HAVE_SYS_PARAM_H
22421 #   include <sys/param.h>
22422 #   ifdef EXEC_PAGESIZE
22423 #    define getpagesize() EXEC_PAGESIZE
22424 #   else /* no EXEC_PAGESIZE */
22425 #    ifdef NBPG
22426 #     define getpagesize() NBPG * CLSIZE
22427 #     ifndef CLSIZE
22428 #      define CLSIZE 1
22429 #     endif /* no CLSIZE */
22430 #    else /* no NBPG */
22431 #     ifdef NBPC
22432 #      define getpagesize() NBPC
22433 #     else /* no NBPC */
22434 #      ifdef PAGESIZE
22435 #       define getpagesize() PAGESIZE
22436 #      endif /* PAGESIZE */
22437 #     endif /* no NBPC */
22438 #    endif /* no NBPG */
22439 #   endif /* no EXEC_PAGESIZE */
22440 #  else /* no HAVE_SYS_PARAM_H */
22441 #   define getpagesize() 8192   /* punt totally */
22442 #  endif /* no HAVE_SYS_PARAM_H */
22443 # endif /* no _SC_PAGESIZE */
22444
22445 #endif /* no HAVE_GETPAGESIZE */
22446
22447 int
22448 main ()
22449 {
22450   char *data, *data2, *data3;
22451   int i, pagesize;
22452   int fd;
22453
22454   pagesize = getpagesize ();
22455
22456   /* First, make a file with some known garbage in it. */
22457   data = (char *) malloc (pagesize);
22458   if (!data)
22459     exit (1);
22460   for (i = 0; i < pagesize; ++i)
22461     *(data + i) = rand ();
22462   umask (0);
22463   fd = creat ("conftest.mmap", 0600);
22464   if (fd < 0)
22465     exit (1);
22466   if (write (fd, data, pagesize) != pagesize)
22467     exit (1);
22468   close (fd);
22469
22470   /* Mmap the file as read/write/shared and verify that we see the
22471   same garbage. */
22472   fd = open ("conftest.mmap", O_RDWR);
22473   if (fd < 0)
22474     exit (1);
22475   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22476   if (data2 == 0)
22477     exit (1);
22478   for (i = 0; i < pagesize; ++i)
22479     if (*(data + i) != *(data2 + i))
22480       exit (1);
22481
22482   /* Finally, make sure that changes to the mapped area
22483      percolate back to the file as seen by read().  */
22484   for (i = 0; i < pagesize; ++i)
22485     *(data2 + i) = *(data2 + i) + 1;
22486   data3 = (char *) malloc (pagesize);
22487   if (!data3)
22488     exit (1);
22489   if (read (fd, data3, pagesize) != pagesize)
22490     exit (1);
22491   for (i = 0; i < pagesize; ++i)
22492     if (*(data2 + i) != *(data3 + i))
22493       exit (1);
22494   close (fd);
22495   exit (0);
22496 }
22497 _ACEOF
22498 if ac_fn_c_try_run "$LINENO"; then :
22499   magick_cv_func_mmap_fileio=yes
22500 else
22501   magick_cv_func_mmap_fileio=no
22502 fi
22503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22504   conftest.$ac_objext conftest.beam conftest.$ac_ext
22505 fi
22506
22507 fi
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22509 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22510 if test $magick_cv_func_mmap_fileio = yes; then
22511
22512 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22513
22514 fi
22515 rm -f conftest.mmap
22516
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22518 $as_echo_n "checking whether closedir returns void... " >&6; }
22519 if test "${ac_cv_func_closedir_void+set}" = set; then :
22520   $as_echo_n "(cached) " >&6
22521 else
22522   if test "$cross_compiling" = yes; then :
22523   ac_cv_func_closedir_void=yes
22524 else
22525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h.  */
22527 $ac_includes_default
22528 #include <$ac_header_dirent>
22529 #ifndef __cplusplus
22530 int closedir ();
22531 #endif
22532
22533 int
22534 main ()
22535 {
22536 return closedir (opendir (".")) != 0;
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 if ac_fn_c_try_run "$LINENO"; then :
22542   ac_cv_func_closedir_void=no
22543 else
22544   ac_cv_func_closedir_void=yes
22545 fi
22546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22547   conftest.$ac_objext conftest.beam conftest.$ac_ext
22548 fi
22549
22550 fi
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22552 $as_echo "$ac_cv_func_closedir_void" >&6; }
22553 if test $ac_cv_func_closedir_void = yes; then
22554
22555 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22556
22557 fi
22558
22559
22560
22561
22562   for ac_header in $ac_header_list
22563 do :
22564   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22566 "
22567 eval as_val=\$$as_ac_Header
22568    if test "x$as_val" = x""yes; then :
22569   cat >>confdefs.h <<_ACEOF
22570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22571 _ACEOF
22572
22573 fi
22574
22575 done
22576
22577
22578
22579
22580
22581
22582
22583
22584 for ac_func in getpagesize
22585 do :
22586   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22587 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22588   cat >>confdefs.h <<_ACEOF
22589 #define HAVE_GETPAGESIZE 1
22590 _ACEOF
22591
22592 fi
22593 done
22594
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22596 $as_echo_n "checking for working mmap... " >&6; }
22597 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22598   $as_echo_n "(cached) " >&6
22599 else
22600   if test "$cross_compiling" = yes; then :
22601   ac_cv_func_mmap_fixed_mapped=no
22602 else
22603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h.  */
22605 $ac_includes_default
22606 /* malloc might have been renamed as rpl_malloc. */
22607 #undef malloc
22608
22609 /* Thanks to Mike Haertel and Jim Avera for this test.
22610    Here is a matrix of mmap possibilities:
22611         mmap private not fixed
22612         mmap private fixed at somewhere currently unmapped
22613         mmap private fixed at somewhere already mapped
22614         mmap shared not fixed
22615         mmap shared fixed at somewhere currently unmapped
22616         mmap shared fixed at somewhere already mapped
22617    For private mappings, we should verify that changes cannot be read()
22618    back from the file, nor mmap's back from the file at a different
22619    address.  (There have been systems where private was not correctly
22620    implemented like the infamous i386 svr4.0, and systems where the
22621    VM page cache was not coherent with the file system buffer cache
22622    like early versions of FreeBSD and possibly contemporary NetBSD.)
22623    For shared mappings, we should conversely verify that changes get
22624    propagated back to all the places they're supposed to be.
22625
22626    Grep wants private fixed already mapped.
22627    The main things grep needs to know about mmap are:
22628    * does it exist and is it safe to write into the mmap'd area
22629    * how to use it (BSD variants)  */
22630
22631 #include <fcntl.h>
22632 #include <sys/mman.h>
22633
22634 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22635 char *malloc ();
22636 #endif
22637
22638 /* This mess was copied from the GNU getpagesize.h.  */
22639 #ifndef HAVE_GETPAGESIZE
22640 # ifdef _SC_PAGESIZE
22641 #  define getpagesize() sysconf(_SC_PAGESIZE)
22642 # else /* no _SC_PAGESIZE */
22643 #  ifdef HAVE_SYS_PARAM_H
22644 #   include <sys/param.h>
22645 #   ifdef EXEC_PAGESIZE
22646 #    define getpagesize() EXEC_PAGESIZE
22647 #   else /* no EXEC_PAGESIZE */
22648 #    ifdef NBPG
22649 #     define getpagesize() NBPG * CLSIZE
22650 #     ifndef CLSIZE
22651 #      define CLSIZE 1
22652 #     endif /* no CLSIZE */
22653 #    else /* no NBPG */
22654 #     ifdef NBPC
22655 #      define getpagesize() NBPC
22656 #     else /* no NBPC */
22657 #      ifdef PAGESIZE
22658 #       define getpagesize() PAGESIZE
22659 #      endif /* PAGESIZE */
22660 #     endif /* no NBPC */
22661 #    endif /* no NBPG */
22662 #   endif /* no EXEC_PAGESIZE */
22663 #  else /* no HAVE_SYS_PARAM_H */
22664 #   define getpagesize() 8192   /* punt totally */
22665 #  endif /* no HAVE_SYS_PARAM_H */
22666 # endif /* no _SC_PAGESIZE */
22667
22668 #endif /* no HAVE_GETPAGESIZE */
22669
22670 int
22671 main ()
22672 {
22673   char *data, *data2, *data3;
22674   const char *cdata2;
22675   int i, pagesize;
22676   int fd, fd2;
22677
22678   pagesize = getpagesize ();
22679
22680   /* First, make a file with some known garbage in it. */
22681   data = (char *) malloc (pagesize);
22682   if (!data)
22683     return 1;
22684   for (i = 0; i < pagesize; ++i)
22685     *(data + i) = rand ();
22686   umask (0);
22687   fd = creat ("conftest.mmap", 0600);
22688   if (fd < 0)
22689     return 2;
22690   if (write (fd, data, pagesize) != pagesize)
22691     return 3;
22692   close (fd);
22693
22694   /* Next, check that the tail of a page is zero-filled.  File must have
22695      non-zero length, otherwise we risk SIGBUS for entire page.  */
22696   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22697   if (fd2 < 0)
22698     return 4;
22699   cdata2 = "";
22700   if (write (fd2, cdata2, 1) != 1)
22701     return 5;
22702   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22703   if (data2 == MAP_FAILED)
22704     return 6;
22705   for (i = 0; i < pagesize; ++i)
22706     if (*(data2 + i))
22707       return 7;
22708   close (fd2);
22709   if (munmap (data2, pagesize))
22710     return 8;
22711
22712   /* Next, try to mmap the file at a fixed address which already has
22713      something else allocated at it.  If we can, also make sure that
22714      we see the same garbage.  */
22715   fd = open ("conftest.mmap", O_RDWR);
22716   if (fd < 0)
22717     return 9;
22718   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22719                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22720     return 10;
22721   for (i = 0; i < pagesize; ++i)
22722     if (*(data + i) != *(data2 + i))
22723       return 11;
22724
22725   /* Finally, make sure that changes to the mapped area do not
22726      percolate back to the file as seen by read().  (This is a bug on
22727      some variants of i386 svr4.0.)  */
22728   for (i = 0; i < pagesize; ++i)
22729     *(data2 + i) = *(data2 + i) + 1;
22730   data3 = (char *) malloc (pagesize);
22731   if (!data3)
22732     return 12;
22733   if (read (fd, data3, pagesize) != pagesize)
22734     return 13;
22735   for (i = 0; i < pagesize; ++i)
22736     if (*(data + i) != *(data3 + i))
22737       return 14;
22738   close (fd);
22739   return 0;
22740 }
22741 _ACEOF
22742 if ac_fn_c_try_run "$LINENO"; then :
22743   ac_cv_func_mmap_fixed_mapped=yes
22744 else
22745   ac_cv_func_mmap_fixed_mapped=no
22746 fi
22747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22748   conftest.$ac_objext conftest.beam conftest.$ac_ext
22749 fi
22750
22751 fi
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22753 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22755
22756 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22757
22758 fi
22759 rm -f conftest.mmap conftest.txt
22760
22761 for ac_header in vfork.h
22762 do :
22763   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22764 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22765   cat >>confdefs.h <<_ACEOF
22766 #define HAVE_VFORK_H 1
22767 _ACEOF
22768
22769 fi
22770
22771 done
22772
22773 for ac_func in fork vfork
22774 do :
22775   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22777 eval as_val=\$$as_ac_var
22778    if test "x$as_val" = x""yes; then :
22779   cat >>confdefs.h <<_ACEOF
22780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22781 _ACEOF
22782
22783 fi
22784 done
22785
22786 if test "x$ac_cv_func_fork" = xyes; then
22787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22788 $as_echo_n "checking for working fork... " >&6; }
22789 if test "${ac_cv_func_fork_works+set}" = set; then :
22790   $as_echo_n "(cached) " >&6
22791 else
22792   if test "$cross_compiling" = yes; then :
22793   ac_cv_func_fork_works=cross
22794 else
22795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h.  */
22797 $ac_includes_default
22798 int
22799 main ()
22800 {
22801
22802           /* By Ruediger Kuhlmann. */
22803           return fork () < 0;
22804
22805   ;
22806   return 0;
22807 }
22808 _ACEOF
22809 if ac_fn_c_try_run "$LINENO"; then :
22810   ac_cv_func_fork_works=yes
22811 else
22812   ac_cv_func_fork_works=no
22813 fi
22814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815   conftest.$ac_objext conftest.beam conftest.$ac_ext
22816 fi
22817
22818 fi
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22820 $as_echo "$ac_cv_func_fork_works" >&6; }
22821
22822 else
22823   ac_cv_func_fork_works=$ac_cv_func_fork
22824 fi
22825 if test "x$ac_cv_func_fork_works" = xcross; then
22826   case $host in
22827     *-*-amigaos* | *-*-msdosdjgpp*)
22828       # Override, as these systems have only a dummy fork() stub
22829       ac_cv_func_fork_works=no
22830       ;;
22831     *)
22832       ac_cv_func_fork_works=yes
22833       ;;
22834   esac
22835   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22836 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22837 fi
22838 ac_cv_func_vfork_works=$ac_cv_func_vfork
22839 if test "x$ac_cv_func_vfork" = xyes; then
22840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22841 $as_echo_n "checking for working vfork... " >&6; }
22842 if test "${ac_cv_func_vfork_works+set}" = set; then :
22843   $as_echo_n "(cached) " >&6
22844 else
22845   if test "$cross_compiling" = yes; then :
22846   ac_cv_func_vfork_works=cross
22847 else
22848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h.  */
22850 /* Thanks to Paul Eggert for this test.  */
22851 $ac_includes_default
22852 #include <sys/wait.h>
22853 #ifdef HAVE_VFORK_H
22854 # include <vfork.h>
22855 #endif
22856 /* On some sparc systems, changes by the child to local and incoming
22857    argument registers are propagated back to the parent.  The compiler
22858    is told about this with #include <vfork.h>, but some compilers
22859    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
22860    static variable whose address is put into a register that is
22861    clobbered by the vfork.  */
22862 static void
22863 #ifdef __cplusplus
22864 sparc_address_test (int arg)
22865 # else
22866 sparc_address_test (arg) int arg;
22867 #endif
22868 {
22869   static pid_t child;
22870   if (!child) {
22871     child = vfork ();
22872     if (child < 0) {
22873       perror ("vfork");
22874       _exit(2);
22875     }
22876     if (!child) {
22877       arg = getpid();
22878       write(-1, "", 0);
22879       _exit (arg);
22880     }
22881   }
22882 }
22883
22884 int
22885 main ()
22886 {
22887   pid_t parent = getpid ();
22888   pid_t child;
22889
22890   sparc_address_test (0);
22891
22892   child = vfork ();
22893
22894   if (child == 0) {
22895     /* Here is another test for sparc vfork register problems.  This
22896        test uses lots of local variables, at least as many local
22897        variables as main has allocated so far including compiler
22898        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
22899        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
22900        reuse the register of parent for one of the local variables,
22901        since it will think that parent can't possibly be used any more
22902        in this routine.  Assigning to the local variable will thus
22903        munge parent in the parent process.  */
22904     pid_t
22905       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22906       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22907     /* Convince the compiler that p..p7 are live; otherwise, it might
22908        use the same hardware register for all 8 local variables.  */
22909     if (p != p1 || p != p2 || p != p3 || p != p4
22910         || p != p5 || p != p6 || p != p7)
22911       _exit(1);
22912
22913     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22914        from child file descriptors.  If the child closes a descriptor
22915        before it execs or exits, this munges the parent's descriptor
22916        as well.  Test for this by closing stdout in the child.  */
22917     _exit(close(fileno(stdout)) != 0);
22918   } else {
22919     int status;
22920     struct stat st;
22921
22922     while (wait(&status) != child)
22923       ;
22924     return (
22925          /* Was there some problem with vforking?  */
22926          child < 0
22927
22928          /* Did the child fail?  (This shouldn't happen.)  */
22929          || status
22930
22931          /* Did the vfork/compiler bug occur?  */
22932          || parent != getpid()
22933
22934          /* Did the file descriptor bug occur?  */
22935          || fstat(fileno(stdout), &st) != 0
22936          );
22937   }
22938 }
22939 _ACEOF
22940 if ac_fn_c_try_run "$LINENO"; then :
22941   ac_cv_func_vfork_works=yes
22942 else
22943   ac_cv_func_vfork_works=no
22944 fi
22945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22946   conftest.$ac_objext conftest.beam conftest.$ac_ext
22947 fi
22948
22949 fi
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22951 $as_echo "$ac_cv_func_vfork_works" >&6; }
22952
22953 fi;
22954 if test "x$ac_cv_func_fork_works" = xcross; then
22955   ac_cv_func_vfork_works=$ac_cv_func_vfork
22956   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22957 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22958 fi
22959
22960 if test "x$ac_cv_func_vfork_works" = xyes; then
22961
22962 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22963
22964 else
22965
22966 $as_echo "#define vfork fork" >>confdefs.h
22967
22968 fi
22969 if test "x$ac_cv_func_fork_works" = xyes; then
22970
22971 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22972
22973 fi
22974
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22976 $as_echo_n "checking for working memcmp... " >&6; }
22977 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22978   $as_echo_n "(cached) " >&6
22979 else
22980   if test "$cross_compiling" = yes; then :
22981   ac_cv_func_memcmp_working=no
22982 else
22983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984 /* end confdefs.h.  */
22985 $ac_includes_default
22986 int
22987 main ()
22988 {
22989
22990   /* Some versions of memcmp are not 8-bit clean.  */
22991   char c0 = '\100', c1 = '\200', c2 = '\201';
22992   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22993     return 1;
22994
22995   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22996      or more and with at least one buffer not starting on a 4-byte boundary.
22997      William Lewis provided this test program.   */
22998   {
22999     char foo[21];
23000     char bar[21];
23001     int i;
23002     for (i = 0; i < 4; i++)
23003       {
23004         char *a = foo + i;
23005         char *b = bar + i;
23006         strcpy (a, "--------01111111");
23007         strcpy (b, "--------10000000");
23008         if (memcmp (a, b, 16) >= 0)
23009           return 1;
23010       }
23011     return 0;
23012   }
23013
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 if ac_fn_c_try_run "$LINENO"; then :
23019   ac_cv_func_memcmp_working=yes
23020 else
23021   ac_cv_func_memcmp_working=no
23022 fi
23023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23024   conftest.$ac_objext conftest.beam conftest.$ac_ext
23025 fi
23026
23027 fi
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23029 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23030 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23031   *" memcmp.$ac_objext "* ) ;;
23032   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23033  ;;
23034 esac
23035
23036
23037 for ac_header in sys/select.h sys/socket.h
23038 do :
23039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23041 eval as_val=\$$as_ac_Header
23042    if test "x$as_val" = x""yes; then :
23043   cat >>confdefs.h <<_ACEOF
23044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23045 _ACEOF
23046
23047 fi
23048
23049 done
23050
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23052 $as_echo_n "checking types of arguments for select... " >&6; }
23053 if test "${ac_cv_func_select_args+set}" = set; then :
23054   $as_echo_n "(cached) " >&6
23055 else
23056   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23057  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23058   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23060 /* end confdefs.h.  */
23061 $ac_includes_default
23062 #ifdef HAVE_SYS_SELECT_H
23063 # include <sys/select.h>
23064 #endif
23065 #ifdef HAVE_SYS_SOCKET_H
23066 # include <sys/socket.h>
23067 #endif
23068
23069 int
23070 main ()
23071 {
23072 extern int select ($ac_arg1,
23073                                             $ac_arg234, $ac_arg234, $ac_arg234,
23074                                             $ac_arg5);
23075   ;
23076   return 0;
23077 }
23078 _ACEOF
23079 if ac_fn_c_try_compile "$LINENO"; then :
23080   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23081 fi
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083   done
23084  done
23085 done
23086 # Provide a safe default value.
23087 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23088
23089 fi
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23091 $as_echo "$ac_cv_func_select_args" >&6; }
23092 ac_save_IFS=$IFS; IFS=','
23093 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23094 IFS=$ac_save_IFS
23095 shift
23096
23097 cat >>confdefs.h <<_ACEOF
23098 #define SELECT_TYPE_ARG1 $1
23099 _ACEOF
23100
23101
23102 cat >>confdefs.h <<_ACEOF
23103 #define SELECT_TYPE_ARG234 ($2)
23104 _ACEOF
23105
23106
23107 cat >>confdefs.h <<_ACEOF
23108 #define SELECT_TYPE_ARG5 ($3)
23109 _ACEOF
23110
23111 rm -f conftest*
23112
23113 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
23114   $as_echo_n "(cached) " >&6
23115 else
23116   ac_cv_func_setvbuf_reversed=no
23117 fi
23118
23119
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23121 $as_echo_n "checking return type of signal handlers... " >&6; }
23122 if test "${ac_cv_type_signal+set}" = set; then :
23123   $as_echo_n "(cached) " >&6
23124 else
23125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23126 /* end confdefs.h.  */
23127 #include <sys/types.h>
23128 #include <signal.h>
23129
23130 int
23131 main ()
23132 {
23133 return *(signal (0, 0)) (0) == 1;
23134   ;
23135   return 0;
23136 }
23137 _ACEOF
23138 if ac_fn_c_try_compile "$LINENO"; then :
23139   ac_cv_type_signal=int
23140 else
23141   ac_cv_type_signal=void
23142 fi
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 fi
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23146 $as_echo "$ac_cv_type_signal" >&6; }
23147
23148 cat >>confdefs.h <<_ACEOF
23149 #define RETSIGTYPE $ac_cv_type_signal
23150 _ACEOF
23151
23152
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23154 $as_echo_n "checking for working strtod... " >&6; }
23155 if test "${ac_cv_func_strtod+set}" = set; then :
23156   $as_echo_n "(cached) " >&6
23157 else
23158   if test "$cross_compiling" = yes; then :
23159   ac_cv_func_strtod=no
23160 else
23161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h.  */
23163
23164 $ac_includes_default
23165 #ifndef strtod
23166 double strtod ();
23167 #endif
23168 int
23169 main()
23170 {
23171   {
23172     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
23173     char *string = " +69";
23174     char *term;
23175     double value;
23176     value = strtod (string, &term);
23177     if (value != 69 || term != (string + 4))
23178       return 1;
23179   }
23180
23181   {
23182     /* Under Solaris 2.4, strtod returns the wrong value for the
23183        terminating character under some conditions.  */
23184     char *string = "NaN";
23185     char *term;
23186     strtod (string, &term);
23187     if (term != string && *(term - 1) == 0)
23188       return 1;
23189   }
23190   return 0;
23191 }
23192
23193 _ACEOF
23194 if ac_fn_c_try_run "$LINENO"; then :
23195   ac_cv_func_strtod=yes
23196 else
23197   ac_cv_func_strtod=no
23198 fi
23199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23200   conftest.$ac_objext conftest.beam conftest.$ac_ext
23201 fi
23202
23203 fi
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23205 $as_echo "$ac_cv_func_strtod" >&6; }
23206 if test $ac_cv_func_strtod = no; then
23207   case " $LIBOBJS " in
23208   *" strtod.$ac_objext "* ) ;;
23209   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23210  ;;
23211 esac
23212
23213 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23214 if test "x$ac_cv_func_pow" = x""yes; then :
23215
23216 fi
23217
23218 if test $ac_cv_func_pow = no; then
23219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23220 $as_echo_n "checking for pow in -lm... " >&6; }
23221 if test "${ac_cv_lib_m_pow+set}" = set; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   ac_check_lib_save_LIBS=$LIBS
23225 LIBS="-lm  $LIBS"
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h.  */
23228
23229 /* Override any GCC internal prototype to avoid an error.
23230    Use char because int might match the return type of a GCC
23231    builtin and then its argument prototype would still apply.  */
23232 #ifdef __cplusplus
23233 extern "C"
23234 #endif
23235 char pow ();
23236 int
23237 main ()
23238 {
23239 return pow ();
23240   ;
23241   return 0;
23242 }
23243 _ACEOF
23244 if ac_fn_c_try_link "$LINENO"; then :
23245   ac_cv_lib_m_pow=yes
23246 else
23247   ac_cv_lib_m_pow=no
23248 fi
23249 rm -f core conftest.err conftest.$ac_objext \
23250     conftest$ac_exeext conftest.$ac_ext
23251 LIBS=$ac_check_lib_save_LIBS
23252 fi
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23254 $as_echo "$ac_cv_lib_m_pow" >&6; }
23255 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23256   POW_LIB=-lm
23257 else
23258   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23259 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23260 fi
23261
23262 fi
23263
23264 fi
23265
23266 for ac_func in vprintf
23267 do :
23268   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23269 if test "x$ac_cv_func_vprintf" = x""yes; then :
23270   cat >>confdefs.h <<_ACEOF
23271 #define HAVE_VPRINTF 1
23272 _ACEOF
23273
23274 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23275 if test "x$ac_cv_func__doprnt" = x""yes; then :
23276
23277 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23278
23279 fi
23280
23281 fi
23282 done
23283
23284
23285
23286 #
23287 # Find math library
23288 #
23289 MATH_LIBS=''
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23291 $as_echo_n "checking for sqrt in -lm... " >&6; }
23292 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23293   $as_echo_n "(cached) " >&6
23294 else
23295   ac_check_lib_save_LIBS=$LIBS
23296 LIBS="-lm  $LIBS"
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h.  */
23299
23300 /* Override any GCC internal prototype to avoid an error.
23301    Use char because int might match the return type of a GCC
23302    builtin and then its argument prototype would still apply.  */
23303 #ifdef __cplusplus
23304 extern "C"
23305 #endif
23306 char sqrt ();
23307 int
23308 main ()
23309 {
23310 return sqrt ();
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 if ac_fn_c_try_link "$LINENO"; then :
23316   ac_cv_lib_m_sqrt=yes
23317 else
23318   ac_cv_lib_m_sqrt=no
23319 fi
23320 rm -f core conftest.err conftest.$ac_objext \
23321     conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23325 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23326 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23327   MATH_LIBS="-lm"
23328 fi
23329
23330 LIBS="$MATH_LIBS $LIBS"
23331
23332
23333 for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23334 do :
23335   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23337 eval as_val=\$$as_ac_var
23338    if test "x$as_val" = x""yes; then :
23339   cat >>confdefs.h <<_ACEOF
23340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23341 _ACEOF
23342
23343 fi
23344 done
23345
23346
23347 #
23348 # Check for clock_gettime().
23349 #
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23351 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23352 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23353   $as_echo_n "(cached) " >&6
23354 else
23355   ac_func_search_save_LIBS=$LIBS
23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357 /* end confdefs.h.  */
23358
23359 /* Override any GCC internal prototype to avoid an error.
23360    Use char because int might match the return type of a GCC
23361    builtin and then its argument prototype would still apply.  */
23362 #ifdef __cplusplus
23363 extern "C"
23364 #endif
23365 char clock_gettime ();
23366 int
23367 main ()
23368 {
23369 return clock_gettime ();
23370   ;
23371   return 0;
23372 }
23373 _ACEOF
23374 for ac_lib in '' rt; do
23375   if test -z "$ac_lib"; then
23376     ac_res="none required"
23377   else
23378     ac_res=-l$ac_lib
23379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23380   fi
23381   if ac_fn_c_try_link "$LINENO"; then :
23382   ac_cv_search_clock_gettime=$ac_res
23383 fi
23384 rm -f core conftest.err conftest.$ac_objext \
23385     conftest$ac_exeext
23386   if test "${ac_cv_search_clock_gettime+set}" = set; then :
23387   break
23388 fi
23389 done
23390 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23391
23392 else
23393   ac_cv_search_clock_gettime=no
23394 fi
23395 rm conftest.$ac_ext
23396 LIBS=$ac_func_search_save_LIBS
23397 fi
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23399 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23400 ac_res=$ac_cv_search_clock_gettime
23401 if test "$ac_res" != no; then :
23402   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23403
23404
23405 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23406
23407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23408 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h.  */
23411 #include <time.h>
23412 int
23413 main ()
23414 {
23415 clockid_t clockType = CLOCK_REALTIME;
23416   ;
23417   return 0;
23418 }
23419 _ACEOF
23420 if ac_fn_c_try_compile "$LINENO"; then :
23421
23422         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23423 $as_echo "yes" >&6; }
23424
23425 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23426
23427
23428 else
23429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23430 $as_echo "no" >&6; }
23431
23432 fi
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434
23435 else
23436
23437     for ac_func in gettimeofday ftime
23438 do :
23439   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23441 eval as_val=\$$as_ac_var
23442    if test "x$as_val" = x""yes; then :
23443   cat >>confdefs.h <<_ACEOF
23444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23445 _ACEOF
23446  break
23447 fi
23448 done
23449
23450
23451
23452 fi
23453
23454
23455 ########
23456 #
23457 # Check for function prototypes
23458 #
23459 ########
23460
23461 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23462 #include <unistd.h>
23463 "
23464 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23465   ac_have_decl=1
23466 else
23467   ac_have_decl=0
23468 fi
23469
23470 cat >>confdefs.h <<_ACEOF
23471 #define HAVE_DECL_PREAD $ac_have_decl
23472 _ACEOF
23473 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23474 #include <unistd.h>
23475 "
23476 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23477   ac_have_decl=1
23478 else
23479   ac_have_decl=0
23480 fi
23481
23482 cat >>confdefs.h <<_ACEOF
23483 #define HAVE_DECL_PWRITE $ac_have_decl
23484 _ACEOF
23485
23486
23487 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23488 #include <strings.h>
23489 "
23490 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23491   ac_have_decl=1
23492 else
23493   ac_have_decl=0
23494 fi
23495
23496 cat >>confdefs.h <<_ACEOF
23497 #define HAVE_DECL_STRLCPY $ac_have_decl
23498 _ACEOF
23499
23500
23501 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23502 #include <stdio.h>
23503 #include <stdarg.h>
23504 "
23505 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23506   ac_have_decl=1
23507 else
23508   ac_have_decl=0
23509 fi
23510
23511 cat >>confdefs.h <<_ACEOF
23512 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23513 _ACEOF
23514
23515
23516 ########
23517 #
23518 # C++ Support Tests (For Magick++)
23519 #
23520 ########
23521 have_magick_plus_plus='no'
23522 if test "$with_magick_plus_plus" = 'yes'; then
23523     OLIBS="$LIBS"
23524     LIBS=''
23525     ac_ext=cpp
23526 ac_cpp='$CXXCPP $CPPFLAGS'
23527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23530
23531
23532     # Full set of headers used...
23533     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23534     # functional iomanip iosfwd iostream iterator list string strstream utility
23535     ac_ext=cpp
23536 ac_cpp='$CXXCPP $CPPFLAGS'
23537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23540
23541     ac_ext=cpp
23542 ac_cpp='$CXXCPP $CPPFLAGS'
23543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23546 if test -z "$CXX"; then
23547   if test -n "$CCC"; then
23548     CXX=$CCC
23549   else
23550     if test -n "$ac_tool_prefix"; then
23551   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23552   do
23553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23556 $as_echo_n "checking for $ac_word... " >&6; }
23557 if test "${ac_cv_prog_CXX+set}" = set; then :
23558   $as_echo_n "(cached) " >&6
23559 else
23560   if test -n "$CXX"; then
23561   ac_cv_prog_CXX="$CXX" # Let the user override the test.
23562 else
23563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23564 for as_dir in $PATH
23565 do
23566   IFS=$as_save_IFS
23567   test -z "$as_dir" && as_dir=.
23568     for ac_exec_ext in '' $ac_executable_extensions; do
23569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23570     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23572     break 2
23573   fi
23574 done
23575   done
23576 IFS=$as_save_IFS
23577
23578 fi
23579 fi
23580 CXX=$ac_cv_prog_CXX
23581 if test -n "$CXX"; then
23582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23583 $as_echo "$CXX" >&6; }
23584 else
23585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23586 $as_echo "no" >&6; }
23587 fi
23588
23589
23590     test -n "$CXX" && break
23591   done
23592 fi
23593 if test -z "$CXX"; then
23594   ac_ct_CXX=$CXX
23595   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23596 do
23597   # Extract the first word of "$ac_prog", so it can be a program name with args.
23598 set dummy $ac_prog; ac_word=$2
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23600 $as_echo_n "checking for $ac_word... " >&6; }
23601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23602   $as_echo_n "(cached) " >&6
23603 else
23604   if test -n "$ac_ct_CXX"; then
23605   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23606 else
23607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23608 for as_dir in $PATH
23609 do
23610   IFS=$as_save_IFS
23611   test -z "$as_dir" && as_dir=.
23612     for ac_exec_ext in '' $ac_executable_extensions; do
23613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23614     ac_cv_prog_ac_ct_CXX="$ac_prog"
23615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23616     break 2
23617   fi
23618 done
23619   done
23620 IFS=$as_save_IFS
23621
23622 fi
23623 fi
23624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23625 if test -n "$ac_ct_CXX"; then
23626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23627 $as_echo "$ac_ct_CXX" >&6; }
23628 else
23629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23631 fi
23632
23633
23634   test -n "$ac_ct_CXX" && break
23635 done
23636
23637   if test "x$ac_ct_CXX" = x; then
23638     CXX="g++"
23639   else
23640     case $cross_compiling:$ac_tool_warned in
23641 yes:)
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23644 ac_tool_warned=yes ;;
23645 esac
23646     CXX=$ac_ct_CXX
23647   fi
23648 fi
23649
23650   fi
23651 fi
23652 # Provide some information about the compiler.
23653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23654 set X $ac_compile
23655 ac_compiler=$2
23656 for ac_option in --version -v -V -qversion; do
23657   { { ac_try="$ac_compiler $ac_option >&5"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23663 $as_echo "$ac_try_echo"; } >&5
23664   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23665   ac_status=$?
23666   if test -s conftest.err; then
23667     sed '10a\
23668 ... rest of stderr output deleted ...
23669          10q' conftest.err >conftest.er1
23670     cat conftest.er1 >&5
23671   fi
23672   rm -f conftest.er1 conftest.err
23673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674   test $ac_status = 0; }
23675 done
23676
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23680   $as_echo_n "(cached) " >&6
23681 else
23682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h.  */
23684
23685 int
23686 main ()
23687 {
23688 #ifndef __GNUC__
23689        choke me
23690 #endif
23691
23692   ;
23693   return 0;
23694 }
23695 _ACEOF
23696 if ac_fn_cxx_try_compile "$LINENO"; then :
23697   ac_compiler_gnu=yes
23698 else
23699   ac_compiler_gnu=no
23700 fi
23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23703
23704 fi
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23707 if test $ac_compiler_gnu = yes; then
23708   GXX=yes
23709 else
23710   GXX=
23711 fi
23712 ac_test_CXXFLAGS=${CXXFLAGS+set}
23713 ac_save_CXXFLAGS=$CXXFLAGS
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23717   $as_echo_n "(cached) " >&6
23718 else
23719   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23720    ac_cxx_werror_flag=yes
23721    ac_cv_prog_cxx_g=no
23722    CXXFLAGS="-g"
23723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h.  */
23725
23726 int
23727 main ()
23728 {
23729
23730   ;
23731   return 0;
23732 }
23733 _ACEOF
23734 if ac_fn_cxx_try_compile "$LINENO"; then :
23735   ac_cv_prog_cxx_g=yes
23736 else
23737   CXXFLAGS=""
23738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h.  */
23740
23741 int
23742 main ()
23743 {
23744
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 if ac_fn_cxx_try_compile "$LINENO"; then :
23750
23751 else
23752   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23753          CXXFLAGS="-g"
23754          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h.  */
23756
23757 int
23758 main ()
23759 {
23760
23761   ;
23762   return 0;
23763 }
23764 _ACEOF
23765 if ac_fn_cxx_try_compile "$LINENO"; then :
23766   ac_cv_prog_cxx_g=yes
23767 fi
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23769 fi
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23771 fi
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23774 fi
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23777 if test "$ac_test_CXXFLAGS" = set; then
23778   CXXFLAGS=$ac_save_CXXFLAGS
23779 elif test $ac_cv_prog_cxx_g = yes; then
23780   if test "$GXX" = yes; then
23781     CXXFLAGS="-g -O2"
23782   else
23783     CXXFLAGS="-g"
23784   fi
23785 else
23786   if test "$GXX" = yes; then
23787     CXXFLAGS="-O2"
23788   else
23789     CXXFLAGS=
23790   fi
23791 fi
23792 ac_ext=cpp
23793 ac_cpp='$CXXCPP $CPPFLAGS'
23794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23797
23798 depcc="$CXX"  am_compiler_list=
23799
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23801 $as_echo_n "checking dependency style of $depcc... " >&6; }
23802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23803   $as_echo_n "(cached) " >&6
23804 else
23805   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23806   # We make a subdir and do the tests there.  Otherwise we can end up
23807   # making bogus files that we don't know about and never remove.  For
23808   # instance it was reported that on HP-UX the gcc test will end up
23809   # making a dummy file named `D' -- because `-MD' means `put the output
23810   # in D'.
23811   mkdir conftest.dir
23812   # Copy depcomp to subdir because otherwise we won't find it if we're
23813   # using a relative directory.
23814   cp "$am_depcomp" conftest.dir
23815   cd conftest.dir
23816   # We will build objects and dependencies in a subdirectory because
23817   # it helps to detect inapplicable dependency modes.  For instance
23818   # both Tru64's cc and ICC support -MD to output dependencies as a
23819   # side effect of compilation, but ICC will put the dependencies in
23820   # the current directory while Tru64 will put them in the object
23821   # directory.
23822   mkdir sub
23823
23824   am_cv_CXX_dependencies_compiler_type=none
23825   if test "$am_compiler_list" = ""; then
23826      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23827   fi
23828   am__universal=false
23829   case " $depcc " in #(
23830      *\ -arch\ *\ -arch\ *) am__universal=true ;;
23831      esac
23832
23833   for depmode in $am_compiler_list; do
23834     # Setup a source with many dependencies, because some compilers
23835     # like to wrap large dependency lists on column 80 (with \), and
23836     # we should not choose a depcomp mode which is confused by this.
23837     #
23838     # We need to recreate these files for each test, as the compiler may
23839     # overwrite some of them when testing with obscure command lines.
23840     # This happens at least with the AIX C compiler.
23841     : > sub/conftest.c
23842     for i in 1 2 3 4 5 6; do
23843       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23844       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23845       # Solaris 8's {/usr,}/bin/sh.
23846       touch sub/conftst$i.h
23847     done
23848     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23849
23850     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23851     # mode.  It turns out that the SunPro C++ compiler does not properly
23852     # handle `-M -o', and we need to detect this.  Also, some Intel
23853     # versions had trouble with output in subdirs
23854     am__obj=sub/conftest.${OBJEXT-o}
23855     am__minus_obj="-o $am__obj"
23856     case $depmode in
23857     gcc)
23858       # This depmode causes a compiler race in universal mode.
23859       test "$am__universal" = false || continue
23860       ;;
23861     nosideeffect)
23862       # after this tag, mechanisms are not by side-effect, so they'll
23863       # only be used when explicitly requested
23864       if test "x$enable_dependency_tracking" = xyes; then
23865         continue
23866       else
23867         break
23868       fi
23869       ;;
23870     msvisualcpp | msvcmsys)
23871       # This compiler won't grok `-c -o', but also, the minuso test has
23872       # not run yet.  These depmodes are late enough in the game, and
23873       # so weak that their functioning should not be impacted.
23874       am__obj=conftest.${OBJEXT-o}
23875       am__minus_obj=
23876       ;;
23877     none) break ;;
23878     esac
23879     if depmode=$depmode \
23880        source=sub/conftest.c object=$am__obj \
23881        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23882        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23883          >/dev/null 2>conftest.err &&
23884        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23885        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23886        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23887        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23888       # icc doesn't choke on unknown options, it will just issue warnings
23889       # or remarks (even with -Werror).  So we grep stderr for any message
23890       # that says an option was ignored or not supported.
23891       # When given -MP, icc 7.0 and 7.1 complain thusly:
23892       #   icc: Command line warning: ignoring option '-M'; no argument required
23893       # The diagnosis changed in icc 8.0:
23894       #   icc: Command line remark: option '-MP' not supported
23895       if (grep 'ignoring option' conftest.err ||
23896           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23897         am_cv_CXX_dependencies_compiler_type=$depmode
23898         break
23899       fi
23900     fi
23901   done
23902
23903   cd ..
23904   rm -rf conftest.dir
23905 else
23906   am_cv_CXX_dependencies_compiler_type=none
23907 fi
23908
23909 fi
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23911 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23912 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23913
23914  if
23915   test "x$enable_dependency_tracking" != xno \
23916   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23917   am__fastdepCXX_TRUE=
23918   am__fastdepCXX_FALSE='#'
23919 else
23920   am__fastdepCXX_TRUE='#'
23921   am__fastdepCXX_FALSE=
23922 fi
23923
23924
23925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23926 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23927 if test "${ax_cv_cxx_bool+set}" = set; then :
23928   $as_echo_n "(cached) " >&6
23929 else
23930
23931  ac_ext=cpp
23932 ac_cpp='$CXXCPP $CPPFLAGS'
23933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23936
23937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h.  */
23939
23940 int f(int  x){return 1;}
23941 int f(char x){return 1;}
23942 int f(bool x){return 1;}
23943
23944 int
23945 main ()
23946 {
23947 bool b = true; return f(b);
23948   ;
23949   return 0;
23950 }
23951 _ACEOF
23952 if ac_fn_cxx_try_compile "$LINENO"; then :
23953   ax_cv_cxx_bool=yes
23954 else
23955   ax_cv_cxx_bool=no
23956 fi
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23958  ac_ext=cpp
23959 ac_cpp='$CXXCPP $CPPFLAGS'
23960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23963
23964
23965 fi
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23967 $as_echo "$ax_cv_cxx_bool" >&6; }
23968 if test "$ax_cv_cxx_bool" = yes; then
23969
23970 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23971
23972 fi
23973
23974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23975 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23976 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23977   $as_echo_n "(cached) " >&6
23978 else
23979
23980  ac_ext=cpp
23981 ac_cpp='$CXXCPP $CPPFLAGS'
23982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23985
23986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h.  */
23988 namespace Outer { namespace Inner { int i = 0; }}
23989 int
23990 main ()
23991 {
23992 using namespace Outer::Inner; return i;
23993   ;
23994   return 0;
23995 }
23996 _ACEOF
23997 if ac_fn_cxx_try_compile "$LINENO"; then :
23998   ax_cv_cxx_namespaces=yes
23999 else
24000   ax_cv_cxx_namespaces=no
24001 fi
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24003  ac_ext=cpp
24004 ac_cpp='$CXXCPP $CPPFLAGS'
24005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24008
24009
24010 fi
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24012 $as_echo "$ax_cv_cxx_namespaces" >&6; }
24013 if test "$ax_cv_cxx_namespaces" = yes; then
24014
24015 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24016
24017 fi
24018
24019
24020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24021 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24022 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24023   $as_echo_n "(cached) " >&6
24024 else
24025
24026   ac_ext=cpp
24027 ac_cpp='$CXXCPP $CPPFLAGS'
24028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24031
24032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h.  */
24034 #include <iostream>
24035                   std::istream& is = std::cin;
24036 int
24037 main ()
24038 {
24039
24040   ;
24041   return 0;
24042 }
24043 _ACEOF
24044 if ac_fn_cxx_try_compile "$LINENO"; then :
24045   ax_cv_cxx_have_std_namespace=yes
24046 else
24047   ax_cv_cxx_have_std_namespace=no
24048 fi
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24050   ac_ext=cpp
24051 ac_cpp='$CXXCPP $CPPFLAGS'
24052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24055
24056
24057 fi
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24059 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24060   if test "$ax_cv_cxx_have_std_namespace" = yes; then
24061
24062 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24063
24064   fi
24065
24066     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24067 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24068 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24069   $as_echo_n "(cached) " >&6
24070 else
24071
24072
24073  ac_ext=cpp
24074 ac_cpp='$CXXCPP $CPPFLAGS'
24075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24078
24079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24080 /* end confdefs.h.  */
24081 #include <iostream>
24082 #include <map>
24083 #include <iomanip>
24084 #include <cmath>
24085 #ifdef HAVE_NAMESPACES
24086 using namespace std;
24087 #endif
24088 int
24089 main ()
24090 {
24091 return 0;
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 if ac_fn_cxx_try_compile "$LINENO"; then :
24097   ac_cv_cxx_have_std_libs=yes
24098 else
24099   ac_cv_cxx_have_std_libs=no
24100 fi
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24102  ac_ext=cpp
24103 ac_cpp='$CXXCPP $CPPFLAGS'
24104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24107
24108
24109 fi
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24111 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24112 if test "$ac_cv_cxx_have_std_libs" = yes; then
24113
24114 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24115
24116 fi
24117
24118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24119 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24120 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24121   $as_echo_n "(cached) " >&6
24122 else
24123
24124  ac_ext=cpp
24125 ac_cpp='$CXXCPP $CPPFLAGS'
24126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24129
24130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131 /* end confdefs.h.  */
24132 const wchar_t* s=L"wide string";
24133 _ACEOF
24134 if ac_fn_cxx_try_compile "$LINENO"; then :
24135   ac_cv_cxx_have_lstring=yes
24136 else
24137   ac_cv_cxx_have_lstring=no
24138 fi
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24140  ac_ext=cpp
24141 ac_cpp='$CXXCPP $CPPFLAGS'
24142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24145
24146
24147 fi
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24149 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
24150 if test "$ac_cv_cxx_have_lstring" = yes; then
24151
24152 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24153
24154 fi
24155
24156
24157   OPENMP_CXXFLAGS=
24158   # Check whether --enable-openmp was given.
24159 if test "${enable_openmp+set}" = set; then :
24160   enableval=$enable_openmp;
24161 fi
24162
24163   if test "$enable_openmp" != no; then
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24165 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24166 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
24167   $as_echo_n "(cached) " >&6
24168 else
24169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24170 /* end confdefs.h.  */
24171
24172 #ifndef _OPENMP
24173  choke me
24174 #endif
24175 #include <omp.h>
24176 int main () { return omp_get_num_threads (); }
24177
24178 _ACEOF
24179 if ac_fn_cxx_try_link "$LINENO"; then :
24180   ac_cv_prog_cxx_openmp='none needed'
24181 else
24182   ac_cv_prog_cxx_openmp='unsupported'
24183                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24184             ac_save_CXXFLAGS=$CXXFLAGS
24185             CXXFLAGS="$CXXFLAGS $ac_option"
24186             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h.  */
24188
24189 #ifndef _OPENMP
24190  choke me
24191 #endif
24192 #include <omp.h>
24193 int main () { return omp_get_num_threads (); }
24194
24195 _ACEOF
24196 if ac_fn_cxx_try_link "$LINENO"; then :
24197   ac_cv_prog_cxx_openmp=$ac_option
24198 fi
24199 rm -f core conftest.err conftest.$ac_objext \
24200     conftest$ac_exeext conftest.$ac_ext
24201             CXXFLAGS=$ac_save_CXXFLAGS
24202             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24203               break
24204             fi
24205           done
24206 fi
24207 rm -f core conftest.err conftest.$ac_objext \
24208     conftest$ac_exeext conftest.$ac_ext
24209 fi
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24211 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24212     case $ac_cv_prog_cxx_openmp in #(
24213       "none needed" | unsupported)
24214         ;; #(
24215       *)
24216         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24217     esac
24218   fi
24219
24220
24221     ac_ext=c
24222 ac_cpp='$CPP $CPPFLAGS'
24223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24226
24227
24228     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24229 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24230     if \
24231         test $ax_cv_cxx_bool = 'yes' && \
24232         test $ac_cv_cxx_have_lstring = 'yes' && \
24233         test $ax_cv_cxx_namespaces = 'yes' && \
24234         test $ac_cv_cxx_have_std_libs = 'yes' && \
24235         test $ax_cv_cxx_have_std_namespace = 'yes'; then
24236         have_magick_plus_plus='yes'
24237     else
24238         have_magick_plus_plus='no (failed tests)'
24239     fi
24240     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24241 $as_echo "$have_magick_plus_plus" >&6; }
24242     LIBS="$OLIBS"
24243 fi
24244  if test "$have_magick_plus_plus" = 'yes'; then
24245   WITH_MAGICK_PLUS_PLUS_TRUE=
24246   WITH_MAGICK_PLUS_PLUS_FALSE='#'
24247 else
24248   WITH_MAGICK_PLUS_PLUS_TRUE='#'
24249   WITH_MAGICK_PLUS_PLUS_FALSE=
24250 fi
24251
24252
24253 # Only check for delegate libraries in subdirectories if requested.
24254 if test "$enable_delegate_build" != 'no'; then
24255     # Check for delegate sub-directories and add -I & -L options as required.
24256     # This presumes that delegates are installed as detailed in the ImageMagick
24257     # README. If delegates are installed in a standard location where the
24258     # compiler will automatically find them then these options should not be
24259     # required.
24260
24261     #
24262     # Most delegates have includes in the same directory as the library, but not all...
24263     #
24264     # Includes
24265     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
24266         if test -d "$builddir/$dir"; then
24267             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24268         else
24269             if test -d "$srcdirfull/$dir"; then
24270                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24271             fi
24272         fi
24273     done
24274
24275     # Libraries
24276     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
24277     if test -d "$builddir/$dir/.libs"; then
24278         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24279     else
24280         if test -d "$srcdirfull/$dir/.libs"; then
24281             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24282         fi
24283     fi
24284     if test -d "$builddir/$dir"; then
24285         LDFLAGS="$LDFLAGS -L$builddir/$dir"
24286     else
24287         if test -d "$srcdirfull/$dir"; then
24288             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24289         fi
24290     fi
24291   done
24292 fi
24293
24294 # Assume that delegate headers reside under same directory as ImageMagick
24295 # installation prefix.
24296 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24297
24298 #
24299 # Find the X11 RGB database
24300 #
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24302 $as_echo_n "checking for X11 configure files... " >&6; }
24303 if test "${im_cv_x_configure+set}" = set; then :
24304   $as_echo_n "(cached) " >&6
24305 else
24306   # Look for the header file in a standard set of common directories.
24307 # Check X11 before X11Rn because it is often a symlink to the current release.
24308     for ac_dir in          \
24309     /lib/usr/lib/X11       \
24310     /usr/X11/lib           \
24311     /usr/X11R4/lib         \
24312     /usr/X11R5/lib         \
24313     /usr/X11R6/lib         \
24314     /usr/X11R7/lib         \
24315     /usr/X386/lib          \
24316     /usr/XFree86/lib/X11   \
24317     /usr/athena/lib        \
24318     /usr/lib               \
24319     /usr/lib/X11           \
24320     /usr/lib/X11R4         \
24321     /usr/lib/X11R5         \
24322     /usr/lib/X11R6         \
24323     /usr/lib/X11R7         \
24324     /usr/local/X11/lib     \
24325     /usr/local/X11R4/lib   \
24326     /usr/local/X11R5/lib   \
24327     /usr/local/X11R6/lib   \
24328     /usr/local/lib         \
24329     /usr/local/lib/X11     \
24330     /usr/local/lib/X11R4   \
24331     /usr/local/lib/X11R5   \
24332     /usr/local/lib/X11R6   \
24333     /usr/local/lib/X11R7   \
24334     /usr/local/x11r5/lib   \
24335     /usr/lpp/Xamples/lib   \
24336     /usr/openwin/lib       \
24337     /usr/openwin/share/lib \
24338     /usr/unsupported/lib   \
24339     /usr/x386/lib          \
24340     ; do
24341     if test -f "$ac_dir/X11/rgb.txt"; then
24342       im_cv_x_configure="$ac_dir/X11/"
24343       break
24344     elif test -f "$ac_dir/rgb.txt"; then
24345       im_cv_x_configure="$ac_dir/"
24346       break
24347     fi
24348
24349   done
24350 fi
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24352 $as_echo "$im_cv_x_configure" >&6; }
24353 X11_CONFIGURE_PATH="$im_cv_x_configure"
24354 case "${build_os}" in
24355   mingw* )
24356     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24357   ;;
24358 esac
24359
24360 cat >>confdefs.h <<_ACEOF
24361 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24362 _ACEOF
24363
24364
24365 #
24366 # Find OpenMP library
24367 #
24368 GOMP_LIBS=''
24369 if test "$enable_openmp" != 'no'; then
24370   if test "${GCC}" = "yes"; then
24371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24372 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24373 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24374   $as_echo_n "(cached) " >&6
24375 else
24376   ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lgomp  $LIBS"
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379 /* end confdefs.h.  */
24380
24381 /* Override any GCC internal prototype to avoid an error.
24382    Use char because int might match the return type of a GCC
24383    builtin and then its argument prototype would still apply.  */
24384 #ifdef __cplusplus
24385 extern "C"
24386 #endif
24387 char GOMP_parallel_start ();
24388 int
24389 main ()
24390 {
24391 return GOMP_parallel_start ();
24392   ;
24393   return 0;
24394 }
24395 _ACEOF
24396 if ac_fn_c_try_link "$LINENO"; then :
24397   ac_cv_lib_gomp_GOMP_parallel_start=yes
24398 else
24399   ac_cv_lib_gomp_GOMP_parallel_start=no
24400 fi
24401 rm -f core conftest.err conftest.$ac_objext \
24402     conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24404 fi
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24406 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24407 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24408   GOMP_LIBS="-lgomp"
24409 fi
24410   # gcc
24411   else
24412     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24413 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24414 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24415   $as_echo_n "(cached) " >&6
24416 else
24417   ac_check_lib_save_LIBS=$LIBS
24418 LIBS="-lmtsk  $LIBS"
24419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420 /* end confdefs.h.  */
24421
24422 /* Override any GCC internal prototype to avoid an error.
24423    Use char because int might match the return type of a GCC
24424    builtin and then its argument prototype would still apply.  */
24425 #ifdef __cplusplus
24426 extern "C"
24427 #endif
24428 char sunw_mp_register_warn ();
24429 int
24430 main ()
24431 {
24432 return sunw_mp_register_warn ();
24433   ;
24434   return 0;
24435 }
24436 _ACEOF
24437 if ac_fn_c_try_link "$LINENO"; then :
24438   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24439 else
24440   ac_cv_lib_mtsk_sunw_mp_register_warn=no
24441 fi
24442 rm -f core conftest.err conftest.$ac_objext \
24443     conftest$ac_exeext conftest.$ac_ext
24444 LIBS=$ac_check_lib_save_LIBS
24445 fi
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24447 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24448 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24449   GOMP_LIBS="-lmtsk"
24450 fi
24451   # solaris cc
24452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24453 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24454 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24455   $as_echo_n "(cached) " >&6
24456 else
24457   ac_check_lib_save_LIBS=$LIBS
24458 LIBS="-lxlsmp  $LIBS"
24459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h.  */
24461
24462 /* Override any GCC internal prototype to avoid an error.
24463    Use char because int might match the return type of a GCC
24464    builtin and then its argument prototype would still apply.  */
24465 #ifdef __cplusplus
24466 extern "C"
24467 #endif
24468 char _xlsmpFlush ();
24469 int
24470 main ()
24471 {
24472 return _xlsmpFlush ();
24473   ;
24474   return 0;
24475 }
24476 _ACEOF
24477 if ac_fn_c_try_link "$LINENO"; then :
24478   ac_cv_lib_xlsmp__xlsmpFlush=yes
24479 else
24480   ac_cv_lib_xlsmp__xlsmpFlush=no
24481 fi
24482 rm -f core conftest.err conftest.$ac_objext \
24483     conftest$ac_exeext conftest.$ac_ext
24484 LIBS=$ac_check_lib_save_LIBS
24485 fi
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24487 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24488 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24489   GOMP_LIBS="-lxlsmp"
24490 fi
24491   # AIX xlc
24492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24493 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24494 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24495   $as_echo_n "(cached) " >&6
24496 else
24497   ac_check_lib_save_LIBS=$LIBS
24498 LIBS="-lmp  $LIBS"
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h.  */
24501
24502 /* Override any GCC internal prototype to avoid an error.
24503    Use char because int might match the return type of a GCC
24504    builtin and then its argument prototype would still apply.  */
24505 #ifdef __cplusplus
24506 extern "C"
24507 #endif
24508 char mp_destroy ();
24509 int
24510 main ()
24511 {
24512 return mp_destroy ();
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 if ac_fn_c_try_link "$LINENO"; then :
24518   ac_cv_lib_mp_mp_destroy=yes
24519 else
24520   ac_cv_lib_mp_mp_destroy=no
24521 fi
24522 rm -f core conftest.err conftest.$ac_objext \
24523     conftest$ac_exeext conftest.$ac_ext
24524 LIBS=$ac_check_lib_save_LIBS
24525 fi
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24527 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24528 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24529   GOMP_LIBS="-lmp"
24530 fi
24531   # SGI IRIX 6.5 MIPSpro C/C++
24532   fi
24533   LIBS="$GOMP_LIBS $LIBS"
24534 fi
24535
24536
24537 #
24538 # Find Posix threads library
24539 #
24540 THREAD_LIBS=''
24541 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24542
24543     if test "x$PTHREAD_LIBS" = "x"; then
24544     case "${host_cpu}-${host_os}" in
24545       *-freebsd*)
24546
24547
24548
24549 ac_ext=c
24550 ac_cpp='$CPP $CPPFLAGS'
24551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24554
24555 magick_pthread_lib_ok=no
24556
24557 LIB=-lc_r
24558 save_LIBS="$LIBS"
24559 LIBS="$LIBS $LIB"
24560
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24562 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564 /* end confdefs.h.  */
24565 #include <pthread.h>
24566 int
24567 main ()
24568 {
24569   pthread_t th;
24570   pthread_join(th, 0);
24571   pthread_attr_init(0);
24572   pthread_cleanup_push(0, 0);
24573   pthread_create(0,0,0,0);
24574   pthread_cleanup_pop(0);
24575   ;
24576   return 0;
24577 }
24578 _ACEOF
24579 if ac_fn_c_try_link "$LINENO"; then :
24580   magick_pthread_lib_ok=yes
24581 fi
24582 rm -f core conftest.err conftest.$ac_objext \
24583     conftest$ac_exeext conftest.$ac_ext
24584
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24586 $as_echo "${magick_pthread_lib_ok}" >&6; }
24587 if test "$magick_pthread_lib_ok" = yes
24588 then
24589   PTHREAD_LIBS=-lc_r
24590   :
24591 else
24592
24593   :
24594 fi
24595
24596 LIBS="$save_LIBS"
24597
24598 ac_ext=c
24599 ac_cpp='$CPP $CPPFLAGS'
24600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24603
24604  ;;
24605     esac
24606     fi
24607
24608     for lib in pthread pthreads; do
24609         if test "x$PTHREAD_LIBS" = "x"; then
24610
24611
24612
24613 ac_ext=c
24614 ac_cpp='$CPP $CPPFLAGS'
24615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24618
24619 magick_pthread_lib_ok=no
24620
24621 LIB=-l$lib
24622 save_LIBS="$LIBS"
24623 LIBS="$LIBS $LIB"
24624
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24626 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24628 /* end confdefs.h.  */
24629 #include <pthread.h>
24630 int
24631 main ()
24632 {
24633   pthread_t th;
24634   pthread_join(th, 0);
24635   pthread_attr_init(0);
24636   pthread_cleanup_push(0, 0);
24637   pthread_create(0,0,0,0);
24638   pthread_cleanup_pop(0);
24639   ;
24640   return 0;
24641 }
24642 _ACEOF
24643 if ac_fn_c_try_link "$LINENO"; then :
24644   magick_pthread_lib_ok=yes
24645 fi
24646 rm -f core conftest.err conftest.$ac_objext \
24647     conftest$ac_exeext conftest.$ac_ext
24648
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24650 $as_echo "${magick_pthread_lib_ok}" >&6; }
24651 if test "$magick_pthread_lib_ok" = yes
24652 then
24653   PTHREAD_LIBS=-l$lib
24654   :
24655 else
24656
24657   :
24658 fi
24659
24660 LIBS="$save_LIBS"
24661
24662 ac_ext=c
24663 ac_cpp='$CPP $CPPFLAGS'
24664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24667
24668
24669         fi
24670     done
24671
24672     THREAD_LIBS="$PTHREAD_LIBS"
24673     LIBS="$LIBS $THREAD_LIBS"
24674 fi
24675
24676
24677 #
24678 # Check for umem.
24679 #
24680 have_umem='no'
24681 UMEM_LIBS=''
24682 if test "$with_umem" != 'no'; then
24683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24684 $as_echo_n "checking for UMEM support ... " >&6; }
24685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24686 $as_echo "" >&6; }
24687   failed=0
24688   passed=0
24689   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24690 if test "x$ac_cv_header_umem_h" = x""yes; then :
24691   passed=`expr $passed + 1`
24692 else
24693   failed=`expr $failed + 1`
24694 fi
24695
24696
24697   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24698 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24699 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24700   $as_echo_n "(cached) " >&6
24701 else
24702   ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lumem  $LIBS"
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h.  */
24706
24707 /* Override any GCC internal prototype to avoid an error.
24708    Use char because int might match the return type of a GCC
24709    builtin and then its argument prototype would still apply.  */
24710 #ifdef __cplusplus
24711 extern "C"
24712 #endif
24713 char umem_alloc ();
24714 int
24715 main ()
24716 {
24717 return umem_alloc ();
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 if ac_fn_c_try_link "$LINENO"; then :
24723   ac_cv_lib_umem_umem_alloc=yes
24724 else
24725   ac_cv_lib_umem_umem_alloc=no
24726 fi
24727 rm -f core conftest.err conftest.$ac_objext \
24728     conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24730 fi
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24732 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24733 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24734   passed=`expr $passed + 1`
24735 else
24736   failed=`expr $failed + 1`
24737 fi
24738
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24740 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24741 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24742   $as_echo_n "(cached) " >&6
24743 else
24744   ac_check_lib_save_LIBS=$LIBS
24745 LIBS="-lumem  $LIBS"
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h.  */
24748
24749 /* Override any GCC internal prototype to avoid an error.
24750    Use char because int might match the return type of a GCC
24751    builtin and then its argument prototype would still apply.  */
24752 #ifdef __cplusplus
24753 extern "C"
24754 #endif
24755 char umem_free ();
24756 int
24757 main ()
24758 {
24759 return umem_free ();
24760   ;
24761   return 0;
24762 }
24763 _ACEOF
24764 if ac_fn_c_try_link "$LINENO"; then :
24765   ac_cv_lib_umem_umem_free=yes
24766 else
24767   ac_cv_lib_umem_umem_free=no
24768 fi
24769 rm -f core conftest.err conftest.$ac_objext \
24770     conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24772 fi
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24774 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24775 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24776   passed=`expr $passed + 1`
24777 else
24778   failed=`expr $failed + 1`
24779 fi
24780
24781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24782 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24783   if test $passed -gt 0; then
24784     if test $failed -gt 0; then
24785       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24786 $as_echo "no -- some components failed test" >&6; }
24787       have_umem='no (failed tests)'
24788     else
24789       UMEM_LIBS='-lumem'
24790       LIBS="$UMEM_LIBS $LIBS"
24791
24792 $as_echo "#define HasUMEM 1" >>confdefs.h
24793
24794       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24795 $as_echo "yes" >&6; }
24796       have_umem='yes'
24797     fi
24798   else
24799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800 $as_echo "no" >&6; }
24801   fi
24802 fi
24803  if test "$have_umem" = 'yes'; then
24804   HasUMEM_TRUE=
24805   HasUMEM_FALSE='#'
24806 else
24807   HasUMEM_TRUE='#'
24808   HasUMEM_FALSE=
24809 fi
24810
24811
24812
24813 #
24814 # Add support for ccmalloc memory debugging library if requested
24815 #
24816 have_ccmalloc='no'
24817 CCMALLOC_LIBS=''
24818 if test "$enable_ccmalloc" = 'yes'; then
24819     # Extract the first word of "ccmalloc", so it can be a program name with args.
24820 set dummy ccmalloc; ac_word=$2
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24822 $as_echo_n "checking for $ac_word... " >&6; }
24823 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24824   $as_echo_n "(cached) " >&6
24825 else
24826   case $CCMALLOCDelegate in
24827   [\\/]* | ?:[\\/]*)
24828   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24829   ;;
24830   *)
24831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24832 for as_dir in $PATH
24833 do
24834   IFS=$as_save_IFS
24835   test -z "$as_dir" && as_dir=.
24836     for ac_exec_ext in '' $ac_executable_extensions; do
24837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24838     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24840     break 2
24841   fi
24842 done
24843   done
24844 IFS=$as_save_IFS
24845
24846   ;;
24847 esac
24848 fi
24849 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24850 if test -n "$CCMALLOCDelegate"; then
24851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24852 $as_echo "$CCMALLOCDelegate" >&6; }
24853 else
24854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24855 $as_echo "no" >&6; }
24856 fi
24857
24858
24859     if test -n "$CCMALLOCDelegate"; then
24860         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24861         OLIBS="$LIBS"
24862         # Assume that gcc is used with ccmalloc.
24863         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24864        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24865 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24866 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24867   $as_echo_n "(cached) " >&6
24868 else
24869   ac_check_lib_save_LIBS=$LIBS
24870 LIBS="-lccmalloc -ldl $LIBS"
24871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h.  */
24873
24874 /* Override any GCC internal prototype to avoid an error.
24875    Use char because int might match the return type of a GCC
24876    builtin and then its argument prototype would still apply.  */
24877 #ifdef __cplusplus
24878 extern "C"
24879 #endif
24880 char ccmalloc_malloc ();
24881 int
24882 main ()
24883 {
24884 return ccmalloc_malloc ();
24885   ;
24886   return 0;
24887 }
24888 _ACEOF
24889 if ac_fn_c_try_link "$LINENO"; then :
24890   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24891 else
24892   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24893 fi
24894 rm -f core conftest.err conftest.$ac_objext \
24895     conftest$ac_exeext conftest.$ac_ext
24896 LIBS=$ac_check_lib_save_LIBS
24897 fi
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24899 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24900 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24901   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24902 fi
24903
24904         if test -n "$CCMALLOC_LIBS"; then
24905             LIBS="$OLIBS"
24906             LIBS="$LIBS $CCMALLOC_LIBS"
24907             have_ccmalloc='yes'
24908         else
24909             LIBS="$OLIBS"
24910         fi
24911     fi
24912 fi
24913
24914 #
24915 # Add support for efence memory debugging library if requested
24916 #
24917 if test "$enable_efence" = 'yes'; then
24918     EFENCE_LIBS='-lefence'
24919     LIBS="$EFENCE_LIBS $LIBS"
24920 fi
24921
24922
24923 #
24924 # Check for BZLIB
24925 #
24926
24927
24928 # Check whether --with-bzlib was given.
24929 if test "${with_bzlib+set}" = set; then :
24930   withval=$with_bzlib; with_bzlib=$withval
24931 else
24932   with_bzlib='yes'
24933 fi
24934
24935
24936 if test "$with_bzlib" != 'yes'; then
24937     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24938 fi
24939
24940 have_bzlib='no'
24941 if test "$with_bzlib" != 'no'; then
24942     BZLIB_LIBS=''
24943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24944 $as_echo "-------------------------------------------------------------" >&6; }
24945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24946 $as_echo_n "checking for BZLIB... " >&6; }
24947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24948 $as_echo "" >&6; }
24949     failed=0
24950     passed=0
24951     found_libbz=0
24952     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24953 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24954   passed=`expr $passed + 1`
24955 else
24956   failed=`expr $failed + 1`
24957 fi
24958
24959
24960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24961 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24962 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24963   $as_echo_n "(cached) " >&6
24964 else
24965   ac_check_lib_save_LIBS=$LIBS
24966 LIBS="-lbz2  $LIBS"
24967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h.  */
24969
24970 /* Override any GCC internal prototype to avoid an error.
24971    Use char because int might match the return type of a GCC
24972    builtin and then its argument prototype would still apply.  */
24973 #ifdef __cplusplus
24974 extern "C"
24975 #endif
24976 char BZ2_bzDecompress ();
24977 int
24978 main ()
24979 {
24980 return BZ2_bzDecompress ();
24981   ;
24982   return 0;
24983 }
24984 _ACEOF
24985 if ac_fn_c_try_link "$LINENO"; then :
24986   ac_cv_lib_bz2_BZ2_bzDecompress=yes
24987 else
24988   ac_cv_lib_bz2_BZ2_bzDecompress=no
24989 fi
24990 rm -f core conftest.err conftest.$ac_objext \
24991     conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24993 fi
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24995 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24996 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24997   found_libbz=`expr $found_libbz + 1`
24998 fi
24999
25000     if test "$native_win32_build" = 'yes'; then
25001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
25002 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
25003 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
25004   $as_echo_n "(cached) " >&6
25005 else
25006   ac_check_lib_save_LIBS=$LIBS
25007 LIBS="-lbz2  $LIBS"
25008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25009 /* end confdefs.h.  */
25010
25011 /* Override any GCC internal prototype to avoid an error.
25012    Use char because int might match the return type of a GCC
25013    builtin and then its argument prototype would still apply.  */
25014 #ifdef __cplusplus
25015 extern "C"
25016 #endif
25017 char _imp__BZ2_decompress ();
25018 int
25019 main ()
25020 {
25021 return _imp__BZ2_decompress ();
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 if ac_fn_c_try_link "$LINENO"; then :
25027   ac_cv_lib_bz2__imp__BZ2_decompress=yes
25028 else
25029   ac_cv_lib_bz2__imp__BZ2_decompress=no
25030 fi
25031 rm -f core conftest.err conftest.$ac_objext \
25032     conftest$ac_exeext conftest.$ac_ext
25033 LIBS=$ac_check_lib_save_LIBS
25034 fi
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25036 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25037 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
25038   found_libbz=`expr $found_libbz + 1`
25039 fi
25040
25041     fi
25042     if test $found_libbz -gt 0; then
25043       passed=`expr $passed + 1`
25044     else
25045       failed=`expr $failed + 1`
25046     fi
25047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25048 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25049     if test $passed -gt 0; then
25050       if test $failed -gt 0; then
25051         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25052 $as_echo "no -- some components failed test" >&6; }
25053         have_bzlib='no (failed tests)'
25054       else
25055         BZLIB_LIBS='-lbz2'
25056         LIBS="$BZLIB_LIBS $LIBS"
25057
25058 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25059
25060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25061 $as_echo "yes" >&6; }
25062         have_bzlib='yes'
25063       fi
25064     else
25065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25066 $as_echo "no" >&6; }
25067     fi
25068 fi
25069  if test "$have_bzlib" = 'yes'; then
25070   BZLIB_DELEGATE_TRUE=
25071   BZLIB_DELEGATE_FALSE='#'
25072 else
25073   BZLIB_DELEGATE_TRUE='#'
25074   BZLIB_DELEGATE_FALSE=
25075 fi
25076
25077
25078
25079 #
25080 # Find the X11 include and library directories.
25081 #
25082 IPC_LIBS=''
25083 X11_LIBS=''
25084 XEXT_LIBS=''
25085 XT_LIBS=''
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25087 $as_echo_n "checking for X... " >&6; }
25088
25089
25090 # Check whether --with-x was given.
25091 if test "${with_x+set}" = set; then :
25092   withval=$with_x;
25093 fi
25094
25095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25096 if test "x$with_x" = xno; then
25097   # The user explicitly disabled X.
25098   have_x=disabled
25099 else
25100   case $x_includes,$x_libraries in #(
25101     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25102     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
25103   $as_echo_n "(cached) " >&6
25104 else
25105   # One or both of the vars are not set, and there is no cached value.
25106 ac_x_includes=no ac_x_libraries=no
25107 rm -f -r conftest.dir
25108 if mkdir conftest.dir; then
25109   cd conftest.dir
25110   cat >Imakefile <<'_ACEOF'
25111 incroot:
25112         @echo incroot='${INCROOT}'
25113 usrlibdir:
25114         @echo usrlibdir='${USRLIBDIR}'
25115 libdir:
25116         @echo libdir='${LIBDIR}'
25117 _ACEOF
25118   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25119     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25120     for ac_var in incroot usrlibdir libdir; do
25121       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25122     done
25123     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25124     for ac_extension in a so sl dylib la dll; do
25125       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25126          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25127         ac_im_usrlibdir=$ac_im_libdir; break
25128       fi
25129     done
25130     # Screen out bogus values from the imake configuration.  They are
25131     # bogus both because they are the default anyway, and because
25132     # using them would break gcc on systems where it needs fixed includes.
25133     case $ac_im_incroot in
25134         /usr/include) ac_x_includes= ;;
25135         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25136     esac
25137     case $ac_im_usrlibdir in
25138         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25139         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25140     esac
25141   fi
25142   cd ..
25143   rm -f -r conftest.dir
25144 fi
25145
25146 # Standard set of common directories for X headers.
25147 # Check X11 before X11Rn because it is often a symlink to the current release.
25148 ac_x_header_dirs='
25149 /usr/X11/include
25150 /usr/X11R7/include
25151 /usr/X11R6/include
25152 /usr/X11R5/include
25153 /usr/X11R4/include
25154
25155 /usr/include/X11
25156 /usr/include/X11R7
25157 /usr/include/X11R6
25158 /usr/include/X11R5
25159 /usr/include/X11R4
25160
25161 /usr/local/X11/include
25162 /usr/local/X11R7/include
25163 /usr/local/X11R6/include
25164 /usr/local/X11R5/include
25165 /usr/local/X11R4/include
25166
25167 /usr/local/include/X11
25168 /usr/local/include/X11R7
25169 /usr/local/include/X11R6
25170 /usr/local/include/X11R5
25171 /usr/local/include/X11R4
25172
25173 /usr/X386/include
25174 /usr/x386/include
25175 /usr/XFree86/include/X11
25176
25177 /usr/include
25178 /usr/local/include
25179 /usr/unsupported/include
25180 /usr/athena/include
25181 /usr/local/x11r5/include
25182 /usr/lpp/Xamples/include
25183
25184 /usr/openwin/include
25185 /usr/openwin/share/include'
25186
25187 if test "$ac_x_includes" = no; then
25188   # Guess where to find include files, by looking for Xlib.h.
25189   # First, try using that file with no special directory specified.
25190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25191 /* end confdefs.h.  */
25192 #include <X11/Xlib.h>
25193 _ACEOF
25194 if ac_fn_c_try_cpp "$LINENO"; then :
25195   # We can compile using X headers with no special include directory.
25196 ac_x_includes=
25197 else
25198   for ac_dir in $ac_x_header_dirs; do
25199   if test -r "$ac_dir/X11/Xlib.h"; then
25200     ac_x_includes=$ac_dir
25201     break
25202   fi
25203 done
25204 fi
25205 rm -f conftest.err conftest.$ac_ext
25206 fi # $ac_x_includes = no
25207
25208 if test "$ac_x_libraries" = no; then
25209   # Check for the libraries.
25210   # See if we find them without any special options.
25211   # Don't add to $LIBS permanently.
25212   ac_save_LIBS=$LIBS
25213   LIBS="-lX11 $LIBS"
25214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215 /* end confdefs.h.  */
25216 #include <X11/Xlib.h>
25217 int
25218 main ()
25219 {
25220 XrmInitialize ()
25221   ;
25222   return 0;
25223 }
25224 _ACEOF
25225 if ac_fn_c_try_link "$LINENO"; then :
25226   LIBS=$ac_save_LIBS
25227 # We can link X programs with no special library path.
25228 ac_x_libraries=
25229 else
25230   LIBS=$ac_save_LIBS
25231 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25232 do
25233   # Don't even attempt the hair of trying to link an X program!
25234   for ac_extension in a so sl dylib la dll; do
25235     if test -r "$ac_dir/libX11.$ac_extension"; then
25236       ac_x_libraries=$ac_dir
25237       break 2
25238     fi
25239   done
25240 done
25241 fi
25242 rm -f core conftest.err conftest.$ac_objext \
25243     conftest$ac_exeext conftest.$ac_ext
25244 fi # $ac_x_libraries = no
25245
25246 case $ac_x_includes,$ac_x_libraries in #(
25247   no,* | *,no | *\'*)
25248     # Didn't find X, or a directory has "'" in its name.
25249     ac_cv_have_x="have_x=no";; #(
25250   *)
25251     # Record where we found X for the cache.
25252     ac_cv_have_x="have_x=yes\
25253         ac_x_includes='$ac_x_includes'\
25254         ac_x_libraries='$ac_x_libraries'"
25255 esac
25256 fi
25257 ;; #(
25258     *) have_x=yes;;
25259   esac
25260   eval "$ac_cv_have_x"
25261 fi # $with_x != no
25262
25263 if test "$have_x" != yes; then
25264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25265 $as_echo "$have_x" >&6; }
25266   no_x=yes
25267 else
25268   # If each of the values was on the command line, it overrides each guess.
25269   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25270   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25271   # Update the cache value to reflect the command line values.
25272   ac_cv_have_x="have_x=yes\
25273         ac_x_includes='$x_includes'\
25274         ac_x_libraries='$x_libraries'"
25275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25276 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25277 fi
25278
25279 if test "$no_x" = yes; then
25280   # Not all programs may use this symbol, but it does not hurt to define it.
25281
25282 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25283
25284   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25285 else
25286   if test -n "$x_includes"; then
25287     X_CFLAGS="$X_CFLAGS -I$x_includes"
25288   fi
25289
25290   # It would also be nice to do this for all -L options, not just this one.
25291   if test -n "$x_libraries"; then
25292     X_LIBS="$X_LIBS -L$x_libraries"
25293     # For Solaris; some versions of Sun CC require a space after -R and
25294     # others require no space.  Words are not sufficient . . . .
25295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25296 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25297     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25298     ac_xsave_c_werror_flag=$ac_c_werror_flag
25299     ac_c_werror_flag=yes
25300     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h.  */
25302
25303 int
25304 main ()
25305 {
25306
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 if ac_fn_c_try_link "$LINENO"; then :
25312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25313 $as_echo "no" >&6; }
25314        X_LIBS="$X_LIBS -R$x_libraries"
25315 else
25316   LIBS="$ac_xsave_LIBS -R $x_libraries"
25317        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h.  */
25319
25320 int
25321 main ()
25322 {
25323
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 if ac_fn_c_try_link "$LINENO"; then :
25329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25330 $as_echo "yes" >&6; }
25331           X_LIBS="$X_LIBS -R $x_libraries"
25332 else
25333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25334 $as_echo "neither works" >&6; }
25335 fi
25336 rm -f core conftest.err conftest.$ac_objext \
25337     conftest$ac_exeext conftest.$ac_ext
25338 fi
25339 rm -f core conftest.err conftest.$ac_objext \
25340     conftest$ac_exeext conftest.$ac_ext
25341     ac_c_werror_flag=$ac_xsave_c_werror_flag
25342     LIBS=$ac_xsave_LIBS
25343   fi
25344
25345   # Check for system-dependent libraries X programs must link with.
25346   # Do this before checking for the system-independent R6 libraries
25347   # (-lICE), since we may need -lsocket or whatever for X linking.
25348
25349   if test "$ISC" = yes; then
25350     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25351   else
25352     # Martyn Johnson says this is needed for Ultrix, if the X
25353     # libraries were built with DECnet support.  And Karl Berry says
25354     # the Alpha needs dnet_stub (dnet does not exist).
25355     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25356     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25357 /* end confdefs.h.  */
25358
25359 /* Override any GCC internal prototype to avoid an error.
25360    Use char because int might match the return type of a GCC
25361    builtin and then its argument prototype would still apply.  */
25362 #ifdef __cplusplus
25363 extern "C"
25364 #endif
25365 char XOpenDisplay ();
25366 int
25367 main ()
25368 {
25369 return XOpenDisplay ();
25370   ;
25371   return 0;
25372 }
25373 _ACEOF
25374 if ac_fn_c_try_link "$LINENO"; then :
25375
25376 else
25377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25378 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25379 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25380   $as_echo_n "(cached) " >&6
25381 else
25382   ac_check_lib_save_LIBS=$LIBS
25383 LIBS="-ldnet  $LIBS"
25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h.  */
25386
25387 /* Override any GCC internal prototype to avoid an error.
25388    Use char because int might match the return type of a GCC
25389    builtin and then its argument prototype would still apply.  */
25390 #ifdef __cplusplus
25391 extern "C"
25392 #endif
25393 char dnet_ntoa ();
25394 int
25395 main ()
25396 {
25397 return dnet_ntoa ();
25398   ;
25399   return 0;
25400 }
25401 _ACEOF
25402 if ac_fn_c_try_link "$LINENO"; then :
25403   ac_cv_lib_dnet_dnet_ntoa=yes
25404 else
25405   ac_cv_lib_dnet_dnet_ntoa=no
25406 fi
25407 rm -f core conftest.err conftest.$ac_objext \
25408     conftest$ac_exeext conftest.$ac_ext
25409 LIBS=$ac_check_lib_save_LIBS
25410 fi
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25412 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25413 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25414   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25415 fi
25416
25417     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25419 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25420 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25421   $as_echo_n "(cached) " >&6
25422 else
25423   ac_check_lib_save_LIBS=$LIBS
25424 LIBS="-ldnet_stub  $LIBS"
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h.  */
25427
25428 /* Override any GCC internal prototype to avoid an error.
25429    Use char because int might match the return type of a GCC
25430    builtin and then its argument prototype would still apply.  */
25431 #ifdef __cplusplus
25432 extern "C"
25433 #endif
25434 char dnet_ntoa ();
25435 int
25436 main ()
25437 {
25438 return dnet_ntoa ();
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 if ac_fn_c_try_link "$LINENO"; then :
25444   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25445 else
25446   ac_cv_lib_dnet_stub_dnet_ntoa=no
25447 fi
25448 rm -f core conftest.err conftest.$ac_objext \
25449     conftest$ac_exeext conftest.$ac_ext
25450 LIBS=$ac_check_lib_save_LIBS
25451 fi
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25453 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25454 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25455   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25456 fi
25457
25458     fi
25459 fi
25460 rm -f core conftest.err conftest.$ac_objext \
25461     conftest$ac_exeext conftest.$ac_ext
25462     LIBS="$ac_xsave_LIBS"
25463
25464     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25465     # to get the SysV transport functions.
25466     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25467     # needs -lnsl.
25468     # The nsl library prevents programs from opening the X display
25469     # on Irix 5.2, according to T.E. Dickey.
25470     # The functions gethostbyname, getservbyname, and inet_addr are
25471     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25472     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25473 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25474
25475 fi
25476
25477     if test $ac_cv_func_gethostbyname = no; then
25478       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25479 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25480 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25481   $as_echo_n "(cached) " >&6
25482 else
25483   ac_check_lib_save_LIBS=$LIBS
25484 LIBS="-lnsl  $LIBS"
25485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25486 /* end confdefs.h.  */
25487
25488 /* Override any GCC internal prototype to avoid an error.
25489    Use char because int might match the return type of a GCC
25490    builtin and then its argument prototype would still apply.  */
25491 #ifdef __cplusplus
25492 extern "C"
25493 #endif
25494 char gethostbyname ();
25495 int
25496 main ()
25497 {
25498 return gethostbyname ();
25499   ;
25500   return 0;
25501 }
25502 _ACEOF
25503 if ac_fn_c_try_link "$LINENO"; then :
25504   ac_cv_lib_nsl_gethostbyname=yes
25505 else
25506   ac_cv_lib_nsl_gethostbyname=no
25507 fi
25508 rm -f core conftest.err conftest.$ac_objext \
25509     conftest$ac_exeext conftest.$ac_ext
25510 LIBS=$ac_check_lib_save_LIBS
25511 fi
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25513 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25514 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25515   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25516 fi
25517
25518       if test $ac_cv_lib_nsl_gethostbyname = no; then
25519         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25520 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25521 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25522   $as_echo_n "(cached) " >&6
25523 else
25524   ac_check_lib_save_LIBS=$LIBS
25525 LIBS="-lbsd  $LIBS"
25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527 /* end confdefs.h.  */
25528
25529 /* Override any GCC internal prototype to avoid an error.
25530    Use char because int might match the return type of a GCC
25531    builtin and then its argument prototype would still apply.  */
25532 #ifdef __cplusplus
25533 extern "C"
25534 #endif
25535 char gethostbyname ();
25536 int
25537 main ()
25538 {
25539 return gethostbyname ();
25540   ;
25541   return 0;
25542 }
25543 _ACEOF
25544 if ac_fn_c_try_link "$LINENO"; then :
25545   ac_cv_lib_bsd_gethostbyname=yes
25546 else
25547   ac_cv_lib_bsd_gethostbyname=no
25548 fi
25549 rm -f core conftest.err conftest.$ac_objext \
25550     conftest$ac_exeext conftest.$ac_ext
25551 LIBS=$ac_check_lib_save_LIBS
25552 fi
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25554 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25555 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25556   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25557 fi
25558
25559       fi
25560     fi
25561
25562     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25563     # socket/setsockopt and other routines are undefined under SCO ODT
25564     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25565     # on later versions), says Simon Leinen: it contains gethostby*
25566     # variants that don't use the name server (or something).  -lsocket
25567     # must be given before -lnsl if both are needed.  We assume that
25568     # if connect needs -lnsl, so does gethostbyname.
25569     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25570 if test "x$ac_cv_func_connect" = x""yes; then :
25571
25572 fi
25573
25574     if test $ac_cv_func_connect = no; then
25575       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25576 $as_echo_n "checking for connect in -lsocket... " >&6; }
25577 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25578   $as_echo_n "(cached) " >&6
25579 else
25580   ac_check_lib_save_LIBS=$LIBS
25581 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h.  */
25584
25585 /* Override any GCC internal prototype to avoid an error.
25586    Use char because int might match the return type of a GCC
25587    builtin and then its argument prototype would still apply.  */
25588 #ifdef __cplusplus
25589 extern "C"
25590 #endif
25591 char connect ();
25592 int
25593 main ()
25594 {
25595 return connect ();
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 if ac_fn_c_try_link "$LINENO"; then :
25601   ac_cv_lib_socket_connect=yes
25602 else
25603   ac_cv_lib_socket_connect=no
25604 fi
25605 rm -f core conftest.err conftest.$ac_objext \
25606     conftest$ac_exeext conftest.$ac_ext
25607 LIBS=$ac_check_lib_save_LIBS
25608 fi
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25610 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25611 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25612   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25613 fi
25614
25615     fi
25616
25617     # Guillermo Gomez says -lposix is necessary on A/UX.
25618     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25619 if test "x$ac_cv_func_remove" = x""yes; then :
25620
25621 fi
25622
25623     if test $ac_cv_func_remove = no; then
25624       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25625 $as_echo_n "checking for remove in -lposix... " >&6; }
25626 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25627   $as_echo_n "(cached) " >&6
25628 else
25629   ac_check_lib_save_LIBS=$LIBS
25630 LIBS="-lposix  $LIBS"
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h.  */
25633
25634 /* Override any GCC internal prototype to avoid an error.
25635    Use char because int might match the return type of a GCC
25636    builtin and then its argument prototype would still apply.  */
25637 #ifdef __cplusplus
25638 extern "C"
25639 #endif
25640 char remove ();
25641 int
25642 main ()
25643 {
25644 return remove ();
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 if ac_fn_c_try_link "$LINENO"; then :
25650   ac_cv_lib_posix_remove=yes
25651 else
25652   ac_cv_lib_posix_remove=no
25653 fi
25654 rm -f core conftest.err conftest.$ac_objext \
25655     conftest$ac_exeext conftest.$ac_ext
25656 LIBS=$ac_check_lib_save_LIBS
25657 fi
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25659 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25660 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25661   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25662 fi
25663
25664     fi
25665
25666     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25667     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25668 if test "x$ac_cv_func_shmat" = x""yes; then :
25669
25670 fi
25671
25672     if test $ac_cv_func_shmat = no; then
25673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25674 $as_echo_n "checking for shmat in -lipc... " >&6; }
25675 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25676   $as_echo_n "(cached) " >&6
25677 else
25678   ac_check_lib_save_LIBS=$LIBS
25679 LIBS="-lipc  $LIBS"
25680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25681 /* end confdefs.h.  */
25682
25683 /* Override any GCC internal prototype to avoid an error.
25684    Use char because int might match the return type of a GCC
25685    builtin and then its argument prototype would still apply.  */
25686 #ifdef __cplusplus
25687 extern "C"
25688 #endif
25689 char shmat ();
25690 int
25691 main ()
25692 {
25693 return shmat ();
25694   ;
25695   return 0;
25696 }
25697 _ACEOF
25698 if ac_fn_c_try_link "$LINENO"; then :
25699   ac_cv_lib_ipc_shmat=yes
25700 else
25701   ac_cv_lib_ipc_shmat=no
25702 fi
25703 rm -f core conftest.err conftest.$ac_objext \
25704     conftest$ac_exeext conftest.$ac_ext
25705 LIBS=$ac_check_lib_save_LIBS
25706 fi
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25708 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25709 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25710   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25711 fi
25712
25713     fi
25714   fi
25715
25716   # Check for libraries that X11R6 Xt/Xaw programs need.
25717   ac_save_LDFLAGS=$LDFLAGS
25718   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25719   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25720   # check for ICE first), but we must link in the order -lSM -lICE or
25721   # we get undefined symbols.  So assume we have SM if we have ICE.
25722   # These have to be linked with before -lX11, unlike the other
25723   # libraries we check for below, so use a different variable.
25724   # John Interrante, Karl Berry
25725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25726 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25727 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25728   $as_echo_n "(cached) " >&6
25729 else
25730   ac_check_lib_save_LIBS=$LIBS
25731 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h.  */
25734
25735 /* Override any GCC internal prototype to avoid an error.
25736    Use char because int might match the return type of a GCC
25737    builtin and then its argument prototype would still apply.  */
25738 #ifdef __cplusplus
25739 extern "C"
25740 #endif
25741 char IceConnectionNumber ();
25742 int
25743 main ()
25744 {
25745 return IceConnectionNumber ();
25746   ;
25747   return 0;
25748 }
25749 _ACEOF
25750 if ac_fn_c_try_link "$LINENO"; then :
25751   ac_cv_lib_ICE_IceConnectionNumber=yes
25752 else
25753   ac_cv_lib_ICE_IceConnectionNumber=no
25754 fi
25755 rm -f core conftest.err conftest.$ac_objext \
25756     conftest$ac_exeext conftest.$ac_ext
25757 LIBS=$ac_check_lib_save_LIBS
25758 fi
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25760 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25761 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25762   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25763 fi
25764
25765   LDFLAGS=$ac_save_LDFLAGS
25766
25767 fi
25768
25769 if test "$no_x" != 'yes'; then
25770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25771 $as_echo "-------------------------------------------------------------" >&6; }
25772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25773 $as_echo_n "checking for X11... " >&6; }
25774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25775 $as_echo "" >&6; }
25776     LDFLAGS="$LDFLAGS $X_LIBS"
25777     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25778     LIBS="$X11_LIBS $LIBS"
25779     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25780
25781
25782 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25783
25784     #
25785     # Check for X11 shared memory extension
25786     #
25787     # shmctl is required to support the shared memory extension
25788     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25789 if test "x$ac_cv_func_shmctl" = x""yes; then :
25790   have_shmctl='yes'
25791 fi
25792
25793     if test "$have_shmctl" != 'yes'; then
25794         PERSIST_LIBS=$LIBS
25795         LIBS="$LIBS -lcygipc"
25796         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797 /* end confdefs.h.  */
25798
25799 /* Override any GCC internal prototype to avoid an error.
25800    Use char because int might match the return type of a GCC
25801    builtin and then its argument prototype would still apply.  */
25802 #ifdef __cplusplus
25803 extern "C"
25804 #endif
25805 char shmctl ();
25806 int
25807 main ()
25808 {
25809 return shmctl ();
25810   ;
25811   return 0;
25812 }
25813 _ACEOF
25814 if ac_fn_c_try_link "$LINENO"; then :
25815   have_shmctl='yes'; IPC_LIBS='-lcygipc'
25816 fi
25817 rm -f core conftest.err conftest.$ac_objext \
25818     conftest$ac_exeext conftest.$ac_ext
25819         LIBS=$PERSIST_LIBS
25820     fi
25821
25822     if test "$have_shmctl" = 'yes'; then
25823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25824 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25825 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25826   $as_echo_n "(cached) " >&6
25827 else
25828   ac_check_lib_save_LIBS=$LIBS
25829 LIBS="-lXext  $LIBS"
25830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25831 /* end confdefs.h.  */
25832
25833 /* Override any GCC internal prototype to avoid an error.
25834    Use char because int might match the return type of a GCC
25835    builtin and then its argument prototype would still apply.  */
25836 #ifdef __cplusplus
25837 extern "C"
25838 #endif
25839 char XShmAttach ();
25840 int
25841 main ()
25842 {
25843 return XShmAttach ();
25844   ;
25845   return 0;
25846 }
25847 _ACEOF
25848 if ac_fn_c_try_link "$LINENO"; then :
25849   ac_cv_lib_Xext_XShmAttach=yes
25850 else
25851   ac_cv_lib_Xext_XShmAttach=no
25852 fi
25853 rm -f core conftest.err conftest.$ac_objext \
25854     conftest$ac_exeext conftest.$ac_ext
25855 LIBS=$ac_check_lib_save_LIBS
25856 fi
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25858 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25859 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25860   XEXT_LIBS='-lXext' ;
25861 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25862
25863 fi
25864
25865     fi
25866
25867     #
25868     # Check for X11 shape extension
25869     #
25870     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25871 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25872 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25873   $as_echo_n "(cached) " >&6
25874 else
25875   ac_check_lib_save_LIBS=$LIBS
25876 LIBS="-lXext  $LIBS"
25877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878 /* end confdefs.h.  */
25879
25880 /* Override any GCC internal prototype to avoid an error.
25881    Use char because int might match the return type of a GCC
25882    builtin and then its argument prototype would still apply.  */
25883 #ifdef __cplusplus
25884 extern "C"
25885 #endif
25886 char XShapeCombineMask ();
25887 int
25888 main ()
25889 {
25890 return XShapeCombineMask ();
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 if ac_fn_c_try_link "$LINENO"; then :
25896   ac_cv_lib_Xext_XShapeCombineMask=yes
25897 else
25898   ac_cv_lib_Xext_XShapeCombineMask=no
25899 fi
25900 rm -f core conftest.err conftest.$ac_objext \
25901     conftest$ac_exeext conftest.$ac_ext
25902 LIBS=$ac_check_lib_save_LIBS
25903 fi
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25905 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25906 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25907   XEXT_LIBS='-lXext' ;
25908 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25909
25910 fi
25911
25912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25913 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25914 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25915   $as_echo_n "(cached) " >&6
25916 else
25917   ac_check_lib_save_LIBS=$LIBS
25918 LIBS="-lXt  $LIBS"
25919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h.  */
25921
25922 /* Override any GCC internal prototype to avoid an error.
25923    Use char because int might match the return type of a GCC
25924    builtin and then its argument prototype would still apply.  */
25925 #ifdef __cplusplus
25926 extern "C"
25927 #endif
25928 char XtSetEventDispatcher ();
25929 int
25930 main ()
25931 {
25932 return XtSetEventDispatcher ();
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_link "$LINENO"; then :
25938   ac_cv_lib_Xt_XtSetEventDispatcher=yes
25939 else
25940   ac_cv_lib_Xt_XtSetEventDispatcher=no
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext \
25943     conftest$ac_exeext conftest.$ac_ext
25944 LIBS=$ac_check_lib_save_LIBS
25945 fi
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25947 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25948 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25949   XT_LIBS='-lXt'
25950 fi
25951
25952     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25953 fi
25954 if test "$no_x" != 'yes'; then
25955   have_x='yes'
25956 else
25957   have_x='no'
25958 fi
25959  if test "$have_x" = 'yes'; then
25960   X11_DELEGATE_TRUE=
25961   X11_DELEGATE_FALSE='#'
25962 else
25963   X11_DELEGATE_TRUE='#'
25964   X11_DELEGATE_FALSE=
25965 fi
25966
25967
25968
25969
25970
25971 #
25972 # Check for ZLIB
25973 #
25974
25975 # Check whether --with-zlib was given.
25976 if test "${with_zlib+set}" = set; then :
25977   withval=$with_zlib; with_zlib=$withval
25978 else
25979   with_zlib='yes'
25980 fi
25981
25982
25983 if test "$with_zlib" != 'yes'; then
25984     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25985 fi
25986
25987 have_zlib='no'
25988 ZLIB_LIBS=''
25989 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25991 $as_echo "-------------------------------------------------------------" >&6; }
25992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25993 $as_echo_n "checking for ZLIB... " >&6; }
25994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25995 $as_echo "" >&6; }
25996     ZLIB_LIBS=''
25997     failed=0
25998     passed=0
25999     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26000 if test "x$ac_cv_header_zconf_h" = x""yes; then :
26001   passed=`expr $passed + 1`
26002 else
26003   failed=`expr $failed + 1`
26004 fi
26005
26006
26007     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26008 if test "x$ac_cv_header_zlib_h" = x""yes; then :
26009   passed=`expr $passed + 1`
26010 else
26011   failed=`expr $failed + 1`
26012 fi
26013
26014
26015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
26016 $as_echo_n "checking for compress in -lz... " >&6; }
26017 if test "${ac_cv_lib_z_compress+set}" = set; then :
26018   $as_echo_n "(cached) " >&6
26019 else
26020   ac_check_lib_save_LIBS=$LIBS
26021 LIBS="-lz  $LIBS"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h.  */
26024
26025 /* Override any GCC internal prototype to avoid an error.
26026    Use char because int might match the return type of a GCC
26027    builtin and then its argument prototype would still apply.  */
26028 #ifdef __cplusplus
26029 extern "C"
26030 #endif
26031 char compress ();
26032 int
26033 main ()
26034 {
26035 return compress ();
26036   ;
26037   return 0;
26038 }
26039 _ACEOF
26040 if ac_fn_c_try_link "$LINENO"; then :
26041   ac_cv_lib_z_compress=yes
26042 else
26043   ac_cv_lib_z_compress=no
26044 fi
26045 rm -f core conftest.err conftest.$ac_objext \
26046     conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26048 fi
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26050 $as_echo "$ac_cv_lib_z_compress" >&6; }
26051 if test "x$ac_cv_lib_z_compress" = x""yes; then :
26052   passed=`expr $passed + 1`
26053 else
26054   failed=`expr $failed + 1`
26055 fi
26056
26057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26058 $as_echo_n "checking for uncompress in -lz... " >&6; }
26059 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
26060   $as_echo_n "(cached) " >&6
26061 else
26062   ac_check_lib_save_LIBS=$LIBS
26063 LIBS="-lz  $LIBS"
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h.  */
26066
26067 /* Override any GCC internal prototype to avoid an error.
26068    Use char because int might match the return type of a GCC
26069    builtin and then its argument prototype would still apply.  */
26070 #ifdef __cplusplus
26071 extern "C"
26072 #endif
26073 char uncompress ();
26074 int
26075 main ()
26076 {
26077 return uncompress ();
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 if ac_fn_c_try_link "$LINENO"; then :
26083   ac_cv_lib_z_uncompress=yes
26084 else
26085   ac_cv_lib_z_uncompress=no
26086 fi
26087 rm -f core conftest.err conftest.$ac_objext \
26088     conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26090 fi
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26092 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26093 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
26094   passed=`expr $passed + 1`
26095 else
26096   failed=`expr $failed + 1`
26097 fi
26098
26099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26100 $as_echo_n "checking for deflate in -lz... " >&6; }
26101 if test "${ac_cv_lib_z_deflate+set}" = set; then :
26102   $as_echo_n "(cached) " >&6
26103 else
26104   ac_check_lib_save_LIBS=$LIBS
26105 LIBS="-lz  $LIBS"
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h.  */
26108
26109 /* Override any GCC internal prototype to avoid an error.
26110    Use char because int might match the return type of a GCC
26111    builtin and then its argument prototype would still apply.  */
26112 #ifdef __cplusplus
26113 extern "C"
26114 #endif
26115 char deflate ();
26116 int
26117 main ()
26118 {
26119 return deflate ();
26120   ;
26121   return 0;
26122 }
26123 _ACEOF
26124 if ac_fn_c_try_link "$LINENO"; then :
26125   ac_cv_lib_z_deflate=yes
26126 else
26127   ac_cv_lib_z_deflate=no
26128 fi
26129 rm -f core conftest.err conftest.$ac_objext \
26130     conftest$ac_exeext conftest.$ac_ext
26131 LIBS=$ac_check_lib_save_LIBS
26132 fi
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26134 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26135 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
26136   passed=`expr $passed + 1`
26137 else
26138   failed=`expr $failed + 1`
26139 fi
26140
26141     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26142 $as_echo_n "checking for inflate in -lz... " >&6; }
26143 if test "${ac_cv_lib_z_inflate+set}" = set; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   ac_check_lib_save_LIBS=$LIBS
26147 LIBS="-lz  $LIBS"
26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149 /* end confdefs.h.  */
26150
26151 /* Override any GCC internal prototype to avoid an error.
26152    Use char because int might match the return type of a GCC
26153    builtin and then its argument prototype would still apply.  */
26154 #ifdef __cplusplus
26155 extern "C"
26156 #endif
26157 char inflate ();
26158 int
26159 main ()
26160 {
26161 return inflate ();
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 if ac_fn_c_try_link "$LINENO"; then :
26167   ac_cv_lib_z_inflate=yes
26168 else
26169   ac_cv_lib_z_inflate=no
26170 fi
26171 rm -f core conftest.err conftest.$ac_objext \
26172     conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26174 fi
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26176 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26177 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
26178   passed=`expr $passed + 1`
26179 else
26180   failed=`expr $failed + 1`
26181 fi
26182
26183     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26184 $as_echo_n "checking for gzseek in -lz... " >&6; }
26185 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
26186   $as_echo_n "(cached) " >&6
26187 else
26188   ac_check_lib_save_LIBS=$LIBS
26189 LIBS="-lz  $LIBS"
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191 /* end confdefs.h.  */
26192
26193 /* Override any GCC internal prototype to avoid an error.
26194    Use char because int might match the return type of a GCC
26195    builtin and then its argument prototype would still apply.  */
26196 #ifdef __cplusplus
26197 extern "C"
26198 #endif
26199 char gzseek ();
26200 int
26201 main ()
26202 {
26203 return gzseek ();
26204   ;
26205   return 0;
26206 }
26207 _ACEOF
26208 if ac_fn_c_try_link "$LINENO"; then :
26209   ac_cv_lib_z_gzseek=yes
26210 else
26211   ac_cv_lib_z_gzseek=no
26212 fi
26213 rm -f core conftest.err conftest.$ac_objext \
26214     conftest$ac_exeext conftest.$ac_ext
26215 LIBS=$ac_check_lib_save_LIBS
26216 fi
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26218 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26219 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26220   passed=`expr $passed + 1`
26221 else
26222   failed=`expr $failed + 1`
26223 fi
26224
26225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26226 $as_echo_n "checking for gztell in -lz... " >&6; }
26227 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26228   $as_echo_n "(cached) " >&6
26229 else
26230   ac_check_lib_save_LIBS=$LIBS
26231 LIBS="-lz  $LIBS"
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h.  */
26234
26235 /* Override any GCC internal prototype to avoid an error.
26236    Use char because int might match the return type of a GCC
26237    builtin and then its argument prototype would still apply.  */
26238 #ifdef __cplusplus
26239 extern "C"
26240 #endif
26241 char gztell ();
26242 int
26243 main ()
26244 {
26245 return gztell ();
26246   ;
26247   return 0;
26248 }
26249 _ACEOF
26250 if ac_fn_c_try_link "$LINENO"; then :
26251   ac_cv_lib_z_gztell=yes
26252 else
26253   ac_cv_lib_z_gztell=no
26254 fi
26255 rm -f core conftest.err conftest.$ac_objext \
26256     conftest$ac_exeext conftest.$ac_ext
26257 LIBS=$ac_check_lib_save_LIBS
26258 fi
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26260 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26261 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26262   passed=`expr $passed + 1`
26263 else
26264   failed=`expr $failed + 1`
26265 fi
26266
26267     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26268 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26269     if test $passed -gt 0; then
26270         if test $failed -gt 0; then
26271             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26272 $as_echo "no -- some components failed test" >&6; }
26273             have_zlib='no (failed tests)'
26274         else
26275             ZLIB_LIBS='-lz'
26276             LIBS="$ZLIB_LIBS $LIBS"
26277
26278 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26279
26280             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26281 $as_echo "yes" >&6; }
26282             have_zlib='yes'
26283         fi
26284     else
26285         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26286 $as_echo "no" >&6; }
26287     fi
26288 fi
26289  if test "$have_zlib" = 'yes'; then
26290   ZLIB_DELEGATE_TRUE=
26291   ZLIB_DELEGATE_FALSE='#'
26292 else
26293   ZLIB_DELEGATE_TRUE='#'
26294   ZLIB_DELEGATE_FALSE=
26295 fi
26296
26297
26298
26299 #
26300 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26301 #
26302 LIB_DL=''
26303 if test "$enable_profiling" = 'yes'; then
26304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26307   $as_echo_n "(cached) " >&6
26308 else
26309   ac_check_lib_save_LIBS=$LIBS
26310 LIBS="-ldl  $LIBS"
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h.  */
26313
26314 /* Override any GCC internal prototype to avoid an error.
26315    Use char because int might match the return type of a GCC
26316    builtin and then its argument prototype would still apply.  */
26317 #ifdef __cplusplus
26318 extern "C"
26319 #endif
26320 char dlopen ();
26321 int
26322 main ()
26323 {
26324 return dlopen ();
26325   ;
26326   return 0;
26327 }
26328 _ACEOF
26329 if ac_fn_c_try_link "$LINENO"; then :
26330   ac_cv_lib_dl_dlopen=yes
26331 else
26332   ac_cv_lib_dl_dlopen=no
26333 fi
26334 rm -f core conftest.err conftest.$ac_objext \
26335     conftest$ac_exeext conftest.$ac_ext
26336 LIBS=$ac_check_lib_save_LIBS
26337 fi
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26340 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26341   LIB_DL='-ldl'
26342 fi
26343
26344     LIBS="$LIB_DL $LIBS"
26345 fi
26346
26347
26348
26349 #
26350 # Check for Autotrace delegate library.
26351 #
26352
26353 # Check whether --with-autotrace was given.
26354 if test "${with_autotrace+set}" = set; then :
26355   withval=$with_autotrace; with_autotrace=$withval
26356 else
26357   with_autotrace='no'
26358 fi
26359
26360
26361 if test "$with_autotrace" != 'yes'; then
26362     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26363 fi
26364
26365 have_autotrace='no'
26366 AUTOTRACE_CFLAGS=""
26367 AUTOTRACE_LIBS=""
26368 AUTOTRACE_PKG=""
26369 if test "x$with_autotrace" = "xyes"; then
26370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26371 $as_echo "-------------------------------------------------------------" >&6; }
26372
26373 pkg_failed=no
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26375 $as_echo_n "checking for AUTOTRACE... " >&6; }
26376
26377 if test -n "$AUTOTRACE_CFLAGS"; then
26378     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26379  elif test -n "$PKG_CONFIG"; then
26380     if test -n "$PKG_CONFIG" && \
26381     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26382   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26383   ac_status=$?
26384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385   test $ac_status = 0; }; then
26386   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26387 else
26388   pkg_failed=yes
26389 fi
26390  else
26391     pkg_failed=untried
26392 fi
26393 if test -n "$AUTOTRACE_LIBS"; then
26394     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26395  elif test -n "$PKG_CONFIG"; then
26396     if test -n "$PKG_CONFIG" && \
26397     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26398   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26399   ac_status=$?
26400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401   test $ac_status = 0; }; then
26402   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26403 else
26404   pkg_failed=yes
26405 fi
26406  else
26407     pkg_failed=untried
26408 fi
26409
26410
26411
26412 if test $pkg_failed = yes; then
26413
26414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26415         _pkg_short_errors_supported=yes
26416 else
26417         _pkg_short_errors_supported=no
26418 fi
26419         if test $_pkg_short_errors_supported = yes; then
26420                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26421         else
26422                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26423         fi
26424         # Put the nasty error message in config.log where it belongs
26425         echo "$AUTOTRACE_PKG_ERRORS" >&5
26426
26427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428 $as_echo "no" >&6; }
26429                 have_autotrace=no
26430 elif test $pkg_failed = untried; then
26431         have_autotrace=no
26432 else
26433         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26434         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26436 $as_echo "yes" >&6; }
26437         have_autotrace=yes
26438 fi
26439     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26440 $as_echo "" >&6; }
26441 fi
26442
26443 if test "$have_autotrace" = 'yes'; then
26444     failed=0
26445
26446 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26447
26448     if test "$with_modules" = 'no'; then
26449     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26450     fi
26451 fi
26452
26453  if test "$have_autotrace" = 'yes'; then
26454   AUTOTRACE_DELEGATE_TRUE=
26455   AUTOTRACE_DELEGATE_FALSE='#'
26456 else
26457   AUTOTRACE_DELEGATE_TRUE='#'
26458   AUTOTRACE_DELEGATE_FALSE=
26459 fi
26460
26461
26462
26463
26464
26465 #
26466 # Check for Display Postscript delegate library.
26467 #
26468
26469 # Check whether --with-dps was given.
26470 if test "${with_dps+set}" = set; then :
26471   withval=$with_dps; with_dps=$withval
26472 else
26473   with_dps='yes'
26474 fi
26475
26476
26477 if test "$with_dps" != 'yes'; then
26478     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26479 fi
26480
26481 have_dps='no'
26482 DPS_LIBS=''
26483 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26484     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26485 $as_echo "-------------------------------------------------------------" >&6; }
26486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26487 $as_echo_n "checking for DPS... " >&6; }
26488     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26489 $as_echo "" >&6; }
26490     failed=0
26491     passed=0
26492     PERSIST_CPPFLAGS="$CPPFLAGS"
26493     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26494     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26495 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26496   passed=`expr $passed + 1`
26497 else
26498   failed=`expr $failed + 1`
26499 fi
26500
26501
26502     # DPS issues:
26503     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26504     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26505     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26506     # ImageMagick itself doesn't use -lXt.
26507     have_libdps='no'
26508     LIBDPS_XT=''
26509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26510 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26511 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26512   $as_echo_n "(cached) " >&6
26513 else
26514   ac_check_lib_save_LIBS=$LIBS
26515 LIBS="-ldps  $LIBS"
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h.  */
26518
26519 /* Override any GCC internal prototype to avoid an error.
26520    Use char because int might match the return type of a GCC
26521    builtin and then its argument prototype would still apply.  */
26522 #ifdef __cplusplus
26523 extern "C"
26524 #endif
26525 char DPSInitialize ();
26526 int
26527 main ()
26528 {
26529 return DPSInitialize ();
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 if ac_fn_c_try_link "$LINENO"; then :
26535   ac_cv_lib_dps_DPSInitialize=yes
26536 else
26537   ac_cv_lib_dps_DPSInitialize=no
26538 fi
26539 rm -f core conftest.err conftest.$ac_objext \
26540     conftest$ac_exeext conftest.$ac_ext
26541 LIBS=$ac_check_lib_save_LIBS
26542 fi
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26544 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26545 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26546   have_libdps='yes'
26547 else
26548   have_libdps='no'
26549 fi
26550
26551     if test "$have_libdps" != 'yes'; then
26552         # Unset cache variable so we can try again.
26553         unset ac_cv_lib_dps_DPSInitialize
26554         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26555 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26556 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26557   $as_echo_n "(cached) " >&6
26558 else
26559   ac_check_lib_save_LIBS=$LIBS
26560 LIBS="-ldps -lXt $LIBS"
26561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562 /* end confdefs.h.  */
26563
26564 /* Override any GCC internal prototype to avoid an error.
26565    Use char because int might match the return type of a GCC
26566    builtin and then its argument prototype would still apply.  */
26567 #ifdef __cplusplus
26568 extern "C"
26569 #endif
26570 char DPSInitialize ();
26571 int
26572 main ()
26573 {
26574 return DPSInitialize ();
26575   ;
26576   return 0;
26577 }
26578 _ACEOF
26579 if ac_fn_c_try_link "$LINENO"; then :
26580   ac_cv_lib_dps_DPSInitialize=yes
26581 else
26582   ac_cv_lib_dps_DPSInitialize=no
26583 fi
26584 rm -f core conftest.err conftest.$ac_objext \
26585     conftest$ac_exeext conftest.$ac_ext
26586 LIBS=$ac_check_lib_save_LIBS
26587 fi
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26589 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26590 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26591   have_libdps='yes'
26592 else
26593   have_libdps='no'
26594 fi
26595
26596         if test "$have_libdps" = 'yes'; then
26597             LIBDPS_XT='-lXt'
26598         fi
26599     fi
26600     if test "$have_libdps" = 'yes'; then
26601         passed=`expr $passed + 1`
26602     else
26603         failed=`expr $failed + 1`
26604     fi
26605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26606 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26607 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26608   $as_echo_n "(cached) " >&6
26609 else
26610   ac_check_lib_save_LIBS=$LIBS
26611 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h.  */
26614
26615 /* Override any GCC internal prototype to avoid an error.
26616    Use char because int might match the return type of a GCC
26617    builtin and then its argument prototype would still apply.  */
26618 #ifdef __cplusplus
26619 extern "C"
26620 #endif
26621 char XDPSPixelsPerPoint ();
26622 int
26623 main ()
26624 {
26625 return XDPSPixelsPerPoint ();
26626   ;
26627   return 0;
26628 }
26629 _ACEOF
26630 if ac_fn_c_try_link "$LINENO"; then :
26631   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26632 else
26633   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26634 fi
26635 rm -f core conftest.err conftest.$ac_objext \
26636     conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26638 fi
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26640 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26641 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26642   passed=`expr $passed + 1`
26643 else
26644   failed=`expr $failed + 1`
26645 fi
26646
26647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26648 $as_echo_n "checking if DPS package is complete... " >&6; }
26649     if test $passed -gt 0; then
26650         if test $failed -gt 0; then
26651             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26652 $as_echo "no -- some components failed test" >&6; }
26653             have_dps='no (failed tests)'
26654             CPPFLAGS="$PERSIST_CPPFLAGS"
26655         else
26656             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26657             LIBS="$DPS_LIBS $LIBS"
26658
26659 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26660
26661             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26662 $as_echo "yes" >&6; }
26663             have_dps='yes'
26664         fi
26665     else
26666         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26667 $as_echo "no" >&6; }
26668         CPPFLAGS=$PERSIST_CPPFLAGS
26669     fi
26670 fi
26671  if test "$have_dps" = 'yes'; then
26672   DPS_DELEGATE_TRUE=
26673   DPS_DELEGATE_FALSE='#'
26674 else
26675   DPS_DELEGATE_TRUE='#'
26676   DPS_DELEGATE_FALSE=
26677 fi
26678
26679
26680
26681
26682 #
26683 # Check for DJVU delegate library.
26684 #
26685
26686 # Check whether --with-djvu was given.
26687 if test "${with_djvu+set}" = set; then :
26688   withval=$with_djvu; with_djvu=$withval
26689 else
26690   with_djvu='yes'
26691 fi
26692
26693
26694 if test "$with_djvu" != 'yes'; then
26695     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26696 fi
26697
26698 have_djvu='no'
26699 DJVU_LIBS=''
26700 if test "$with_djvu" != 'no'; then
26701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26702 $as_echo "-------------------------------------------------------------" >&6; }
26703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26704 $as_echo_n "checking for DJVU... " >&6; }
26705     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26706 $as_echo "" >&6; }
26707     failed=0
26708     passed=0
26709     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26710 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26711   passed=`expr $passed + 1`
26712 else
26713   failed=`expr $failed + 1`
26714 fi
26715
26716
26717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26718 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26719 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26720   $as_echo_n "(cached) " >&6
26721 else
26722   ac_check_lib_save_LIBS=$LIBS
26723 LIBS="-ldjvulibre  $LIBS"
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h.  */
26726
26727 /* Override any GCC internal prototype to avoid an error.
26728    Use char because int might match the return type of a GCC
26729    builtin and then its argument prototype would still apply.  */
26730 #ifdef __cplusplus
26731 extern "C"
26732 #endif
26733 char ddjvu_context_create ();
26734 int
26735 main ()
26736 {
26737 return ddjvu_context_create ();
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 if ac_fn_c_try_link "$LINENO"; then :
26743   ac_cv_lib_djvulibre_ddjvu_context_create=yes
26744 else
26745   ac_cv_lib_djvulibre_ddjvu_context_create=no
26746 fi
26747 rm -f core conftest.err conftest.$ac_objext \
26748     conftest$ac_exeext conftest.$ac_ext
26749 LIBS=$ac_check_lib_save_LIBS
26750 fi
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26752 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26753 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26754   passed=`expr $passed + 1`
26755 else
26756   failed=`expr $failed + 1`
26757 fi
26758
26759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26760 $as_echo_n "checking if DJVU package is complete... " >&6; }
26761     if test $passed -gt 0; then
26762         if test $failed -gt 0; then
26763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26764 $as_echo "no -- some components failed test" >&6; }
26765             have_djvu='no (failed tests)'
26766         else
26767             DJVU_LIBS='-ldjvulibre'
26768             LIBS="$DJVU_LIBS $LIBS"
26769
26770 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26771
26772             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26773 $as_echo "yes" >&6; }
26774             have_djvu='yes'
26775         fi
26776     else
26777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26778 $as_echo "no" >&6; }
26779     fi
26780 fi
26781  if test "$have_djvu" = 'yes'; then
26782   DJVU_DELEGATE_TRUE=
26783   DJVU_DELEGATE_FALSE='#'
26784 else
26785   DJVU_DELEGATE_TRUE='#'
26786   DJVU_DELEGATE_FALSE=
26787 fi
26788
26789
26790
26791
26792 #
26793 # Set DejaVu font directory.
26794 #
26795
26796 # Check whether --with-dejavu-font-dir was given.
26797 if test "${with_dejavu_font_dir+set}" = set; then :
26798   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26799 else
26800   with_dejavu_font_dir='default'
26801 fi
26802
26803
26804 if test "$with_dejavu_font_dir" != 'default'; then
26805     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26806 fi
26807
26808
26809 #
26810 # Check for FFTW delegate library.
26811 #
26812
26813 # Check whether --with-fftw was given.
26814 if test "${with_fftw+set}" = set; then :
26815   withval=$with_fftw; with_fftw=$withval
26816 else
26817   with_fftw='yes'
26818 fi
26819
26820
26821 if test "$with_fftw" != 'yes'; then
26822     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26823 fi
26824
26825 have_fftw='no'
26826 FFTW_LIBS=''
26827 if test "$with_fftw" != 'no'; then
26828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26829 $as_echo "-------------------------------------------------------------" >&6; }
26830     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26831 $as_echo_n "checking for FFTW... " >&6; }
26832     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26833 $as_echo "" >&6; }
26834     failed=0
26835     passed=0
26836     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26837 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26838   passed=`expr $passed + 1`
26839 else
26840   failed=`expr $failed + 1`
26841 fi
26842
26843
26844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26845 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26846 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26847   $as_echo_n "(cached) " >&6
26848 else
26849   ac_check_lib_save_LIBS=$LIBS
26850 LIBS="-lfftw3  $LIBS"
26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26852 /* end confdefs.h.  */
26853
26854 /* Override any GCC internal prototype to avoid an error.
26855    Use char because int might match the return type of a GCC
26856    builtin and then its argument prototype would still apply.  */
26857 #ifdef __cplusplus
26858 extern "C"
26859 #endif
26860 char fftw_execute ();
26861 int
26862 main ()
26863 {
26864 return fftw_execute ();
26865   ;
26866   return 0;
26867 }
26868 _ACEOF
26869 if ac_fn_c_try_link "$LINENO"; then :
26870   ac_cv_lib_fftw3_fftw_execute=yes
26871 else
26872   ac_cv_lib_fftw3_fftw_execute=no
26873 fi
26874 rm -f core conftest.err conftest.$ac_objext \
26875     conftest$ac_exeext conftest.$ac_ext
26876 LIBS=$ac_check_lib_save_LIBS
26877 fi
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26879 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26880 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26881   passed=`expr $passed + 1`
26882 else
26883   failed=`expr $failed + 1`
26884 fi
26885
26886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26887 $as_echo_n "checking if FFTW package is complete... " >&6; }
26888     if test $passed -gt 0; then
26889         if test $failed -gt 0; then
26890             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26891 $as_echo "no -- some components failed test" >&6; }
26892             have_fftw='no (failed tests)'
26893         else
26894             FFTW_LIBS='-lfftw3'
26895             LIBS="$FFTW_LIBS $LIBS"
26896
26897 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26898
26899             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26900 $as_echo "yes" >&6; }
26901             have_fftw='yes'
26902         fi
26903     else
26904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905 $as_echo "no" >&6; }
26906     fi
26907 fi
26908  if test "$have_fftw" = 'yes'; then
26909   FFTW_DELEGATE_TRUE=
26910   FFTW_DELEGATE_FALSE='#'
26911 else
26912   FFTW_DELEGATE_TRUE='#'
26913   FFTW_DELEGATE_FALSE=
26914 fi
26915
26916
26917
26918
26919 #
26920 # Check for FlashPIX delegate library.
26921 #
26922
26923 # Check whether --with-fpx was given.
26924 if test "${with_fpx+set}" = set; then :
26925   withval=$with_fpx; with_fpx=$withval
26926 else
26927   with_fpx='yes'
26928 fi
26929
26930
26931 if test "$with_fpx" != 'yes'; then
26932     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26933 fi
26934
26935 have_fpx='no'
26936 FPX_LIBS=''
26937 if test "$with_fpx" != 'no'; then
26938     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26939 $as_echo "-------------------------------------------------------------" >&6; }
26940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26941 $as_echo_n "checking for FlashPIX... " >&6; }
26942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26943 $as_echo "" >&6; }
26944     failed=0
26945     passed=0
26946     ac_ext=cpp
26947 ac_cpp='$CXXCPP $CPPFLAGS'
26948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26951
26952
26953 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26954 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26955   passed=`expr $passed + 1`
26956 else
26957   failed=`expr $failed + 1`
26958 fi
26959
26960
26961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26962 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26963 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26964   $as_echo_n "(cached) " >&6
26965 else
26966   ac_check_lib_save_LIBS=$LIBS
26967 LIBS="-lfpx  $LIBS"
26968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969 /* end confdefs.h.  */
26970
26971 /* Override any GCC internal prototype to avoid an error.
26972    Use char because int might match the return type of a GCC
26973    builtin and then its argument prototype would still apply.  */
26974 #ifdef __cplusplus
26975 extern "C"
26976 #endif
26977 char FPX_OpenImageByFilename ();
26978 int
26979 main ()
26980 {
26981 return FPX_OpenImageByFilename ();
26982   ;
26983   return 0;
26984 }
26985 _ACEOF
26986 if ac_fn_cxx_try_link "$LINENO"; then :
26987   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26988 else
26989   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26990 fi
26991 rm -f core conftest.err conftest.$ac_objext \
26992     conftest$ac_exeext conftest.$ac_ext
26993 LIBS=$ac_check_lib_save_LIBS
26994 fi
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26996 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26997 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26998   passed=`expr $passed + 1`
26999 else
27000   failed=`expr $failed + 1`
27001 fi
27002
27003     ac_ext=c
27004 ac_cpp='$CPP $CPPFLAGS'
27005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27008
27009     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
27010 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
27011     if test $passed -gt 0; then
27012         if test $failed -gt 0; then
27013             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27014 $as_echo "no -- some components failed test" >&6; }
27015             have_fpx='no (failed tests)'
27016         else
27017             FPX_LIBS='-lfpx'
27018
27019 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27020
27021             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27022 $as_echo "yes" >&6; }
27023             have_fpx='yes'
27024             PERLMAINCC="$CXX"
27025         fi
27026     else
27027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27028 $as_echo "no" >&6; }
27029     fi
27030 fi
27031  if test "$have_fpx" = 'yes'; then
27032   FPX_DELEGATE_TRUE=
27033   FPX_DELEGATE_FALSE='#'
27034 else
27035   FPX_DELEGATE_TRUE='#'
27036   FPX_DELEGATE_FALSE=
27037 fi
27038
27039
27040
27041
27042 #
27043 # Check for fontconfig delegate library.
27044 #
27045
27046 # Check whether --with-fontconfig was given.
27047 if test "${with_fontconfig+set}" = set; then :
27048   withval=$with_fontconfig; with_fontconfig=$withval
27049 else
27050   with_fontconfig=$have_x
27051 fi
27052
27053
27054 if test "$with_fontconfig" != 'yes'; then
27055     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27056 fi
27057
27058 have_fontconfig='no'
27059 FONTCONFIG_CFLAGS=""
27060 FONTCONFIG_LIBS=""
27061 FONTCONFIG_PKG=""
27062 if test "x$with_fontconfig" = "xyes"; then
27063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27064 $as_echo "-------------------------------------------------------------" >&6; }
27065
27066 pkg_failed=no
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27068 $as_echo_n "checking for FONTCONFIG... " >&6; }
27069
27070 if test -n "$FONTCONFIG_CFLAGS"; then
27071     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27072  elif test -n "$PKG_CONFIG"; then
27073     if test -n "$PKG_CONFIG" && \
27074     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27075   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27076   ac_status=$?
27077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078   test $ac_status = 0; }; then
27079   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27080 else
27081   pkg_failed=yes
27082 fi
27083  else
27084     pkg_failed=untried
27085 fi
27086 if test -n "$FONTCONFIG_LIBS"; then
27087     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27088  elif test -n "$PKG_CONFIG"; then
27089     if test -n "$PKG_CONFIG" && \
27090     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27091   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27092   ac_status=$?
27093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094   test $ac_status = 0; }; then
27095   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27096 else
27097   pkg_failed=yes
27098 fi
27099  else
27100     pkg_failed=untried
27101 fi
27102
27103
27104
27105 if test $pkg_failed = yes; then
27106
27107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27108         _pkg_short_errors_supported=yes
27109 else
27110         _pkg_short_errors_supported=no
27111 fi
27112         if test $_pkg_short_errors_supported = yes; then
27113                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27114         else
27115                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27116         fi
27117         # Put the nasty error message in config.log where it belongs
27118         echo "$FONTCONFIG_PKG_ERRORS" >&5
27119
27120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27121 $as_echo "no" >&6; }
27122                 have_fontconfig=no
27123 elif test $pkg_failed = untried; then
27124         have_fontconfig=no
27125 else
27126         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27127         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27129 $as_echo "yes" >&6; }
27130         have_fontconfig=yes
27131 fi
27132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27133 $as_echo "" >&6; }
27134 fi
27135
27136 if test "$have_fontconfig" = 'yes'; then
27137
27138 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27139
27140   if test "$with_modules" = 'no'; then
27141     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27142   fi
27143 fi
27144
27145  if test "$have_fontconfig" = 'yes'; then
27146   FONTCONFIG_DELEGATE_TRUE=
27147   FONTCONFIG_DELEGATE_FALSE='#'
27148 else
27149   FONTCONFIG_DELEGATE_TRUE='#'
27150   FONTCONFIG_DELEGATE_FALSE=
27151 fi
27152
27153
27154
27155
27156
27157 #
27158 # Check for freetype delegate library.
27159 #
27160
27161 # Check whether --with-freetype was given.
27162 if test "${with_freetype+set}" = set; then :
27163   withval=$with_freetype; with_freetype=$withval
27164 else
27165   with_freetype='yes'
27166 fi
27167
27168
27169
27170 if test "$with_freetype" != 'yes'; then
27171     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27172 fi
27173
27174 have_freetype='no'
27175 FREETYPE_LIBS=''
27176 if test "$with_freetype" != 'no'; then
27177     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27178 $as_echo "-------------------------------------------------------------" >&6; }
27179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27180 $as_echo_n "checking for FreeType 2.0... " >&6; }
27181     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27182 $as_echo "" >&6; }
27183     failed=0
27184     passed=0
27185     PERSIST_LIBS="$LIBS"
27186     PERSIST_CPPFLAGS="$CPPFLAGS"
27187     if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27188         :
27189     else
27190         freetype_config=''
27191         for ac_prog in freetype-config
27192 do
27193   # Extract the first word of "$ac_prog", so it can be a program name with args.
27194 set dummy $ac_prog; ac_word=$2
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27196 $as_echo_n "checking for $ac_word... " >&6; }
27197 if test "${ac_cv_prog_freetype_config+set}" = set; then :
27198   $as_echo_n "(cached) " >&6
27199 else
27200   if test -n "$freetype_config"; then
27201   ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27202 else
27203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27204 for as_dir in $PATH
27205 do
27206   IFS=$as_save_IFS
27207   test -z "$as_dir" && as_dir=.
27208     for ac_exec_ext in '' $ac_executable_extensions; do
27209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27210     ac_cv_prog_freetype_config="$ac_prog"
27211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27212     break 2
27213   fi
27214 done
27215   done
27216 IFS=$as_save_IFS
27217
27218 fi
27219 fi
27220 freetype_config=$ac_cv_prog_freetype_config
27221 if test -n "$freetype_config"; then
27222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27223 $as_echo "$freetype_config" >&6; }
27224 else
27225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27226 $as_echo "no" >&6; }
27227 fi
27228
27229
27230   test -n "$freetype_config" && break
27231 done
27232         if test -n "$freetype_config"; then
27233             freetype_cflags=`$freetype_config --cflags`
27234             freetype_libs=`$freetype_config --libs`
27235             LIBS="$LIBS $freetype_libs"
27236             CPPFLAGS="$freetype_cflags $CPPFLAGS"
27237         fi
27238     fi
27239
27240     if test "$FREETYPE_LIBS" = ''; then
27241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27242 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27243 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27244   $as_echo_n "(cached) " >&6
27245 else
27246   ac_check_lib_save_LIBS=$LIBS
27247 LIBS="-lfreetype  $LIBS"
27248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27249 /* end confdefs.h.  */
27250
27251 /* Override any GCC internal prototype to avoid an error.
27252    Use char because int might match the return type of a GCC
27253    builtin and then its argument prototype would still apply.  */
27254 #ifdef __cplusplus
27255 extern "C"
27256 #endif
27257 char FT_Init_FreeType ();
27258 int
27259 main ()
27260 {
27261 return FT_Init_FreeType ();
27262   ;
27263   return 0;
27264 }
27265 _ACEOF
27266 if ac_fn_c_try_link "$LINENO"; then :
27267   ac_cv_lib_freetype_FT_Init_FreeType=yes
27268 else
27269   ac_cv_lib_freetype_FT_Init_FreeType=no
27270 fi
27271 rm -f core conftest.err conftest.$ac_objext \
27272     conftest$ac_exeext conftest.$ac_ext
27273 LIBS=$ac_check_lib_save_LIBS
27274 fi
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27276 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27277 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27278   FREETYPE_LIBS='-lfreetype'
27279 fi
27280
27281         if test "$FREETYPE_LIBS" != ''; then
27282             passed=`expr $passed + 1`
27283         else
27284             failed=`expr $failed + 1`
27285             LIBS="$PERSIST_LIBS"
27286         fi
27287     fi
27288
27289     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27290 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27291   FT2BUILD_H='#include <ft2build.h>'
27292 else
27293   ft2build=''
27294 fi
27295
27296
27297     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27298 "
27299 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27300   have_freetype_h='yes'
27301 else
27302   have_freetype_h='no'
27303 fi
27304
27305
27306     if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27307         passed=`expr $passed + 1`
27308     else
27309         failed=`expr $failed + 1`
27310         CPPFLAGS="$PERSIST_CPPFLAGS"
27311     fi
27312
27313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27314 $as_echo_n "checking if FreeType package is complete... " >&6; }
27315     if test $passed -gt 0; then
27316         if test $failed -gt 0; then
27317             FREETYPE_LIBS=''
27318             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27319 $as_echo "no -- some components failed test" >&6; }
27320             have_freetype='no (failed tests)'
27321         else
27322             LIBS="$FREETYPE_LIBS $LIBS"
27323
27324 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27325
27326             if test "$ac_cv_header_ft2build_h" = 'yes'; then
27327
27328 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27329
27330             fi
27331             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27332 $as_echo "yes" >&6; }
27333             have_freetype='yes'
27334         fi
27335     else
27336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27337 $as_echo "no" >&6; }
27338     fi
27339 fi
27340  if test "$have_freetype" = 'yes'; then
27341   FREETYPE_DELEGATE_TRUE=
27342   FREETYPE_DELEGATE_FALSE='#'
27343 else
27344   FREETYPE_DELEGATE_TRUE='#'
27345   FREETYPE_DELEGATE_FALSE=
27346 fi
27347
27348
27349
27350
27351
27352 #
27353 # Check for Ghostscript library or framework.
27354 #
27355 # Test for iapi.h & test for gsapi_new_instance in -lgs
27356 # or -framework Ghostscript
27357
27358
27359 # Check whether --with-gslib was given.
27360 if test "${with_gslib+set}" = set; then :
27361   withval=$with_gslib; with_gslib=$withval
27362 else
27363   with_gslib='no'
27364 fi
27365
27366
27367 gslib_framework='no'
27368 if test "$with_gslib" != 'yes'; then
27369     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27370 fi
27371
27372 have_gslib='no'
27373 GS_LIBS=''
27374 if test "$with_gslib" != 'no'; then
27375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27376 $as_echo "-------------------------------------------------------------" >&6; }
27377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27378 $as_echo_n "checking for Ghostscript... " >&6; }
27379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27380 $as_echo "" >&6; }
27381     framework=0
27382     failed=0
27383     passed=0
27384     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27385 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27386   passed=`expr $passed + 1`
27387 else
27388   failed=`expr $failed + 1`
27389 fi
27390
27391
27392     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27393 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27394   passed=`expr $passed + 1`
27395 else
27396   failed=`expr $failed + 1`
27397 fi
27398
27399
27400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27401 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27402 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27403   $as_echo_n "(cached) " >&6
27404 else
27405   ac_check_framework_save_LIBS=$LIBS
27406 LIBS="-framework Ghostscript  $LIBS"
27407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27408 /* end confdefs.h.  */
27409
27410 /* Override any GCC internal prototype to avoid an error.
27411    Use char because int might match the return type of a GCC
27412    builtin and then its argument prototype would still apply.  */
27413 #ifdef __cplusplus
27414 extern "C"
27415 #endif
27416 char gsapi_new_instance ();
27417 int
27418 main ()
27419 {
27420 return gsapi_new_instance ();
27421   ;
27422   return 0;
27423 }
27424 _ACEOF
27425 if ac_fn_c_try_link "$LINENO"; then :
27426   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27427 else
27428   ac_cv_framework_Ghostscript_gsapi_new_instance=no
27429 fi
27430 rm -f core conftest.err conftest.$ac_objext \
27431     conftest$ac_exeext conftest.$ac_ext
27432 LIBS=$ac_check_framework_save_LIBS
27433 fi
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27435 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27436 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27437   framework=`expr $framework + 1`
27438 else
27439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27440 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27441 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27442   $as_echo_n "(cached) " >&6
27443 else
27444   ac_check_lib_save_LIBS=$LIBS
27445 LIBS="-lgs  $LIBS"
27446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27447 /* end confdefs.h.  */
27448
27449 /* Override any GCC internal prototype to avoid an error.
27450    Use char because int might match the return type of a GCC
27451    builtin and then its argument prototype would still apply.  */
27452 #ifdef __cplusplus
27453 extern "C"
27454 #endif
27455 char gsapi_new_instance ();
27456 int
27457 main ()
27458 {
27459 return gsapi_new_instance ();
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 if ac_fn_c_try_link "$LINENO"; then :
27465   ac_cv_lib_gs_gsapi_new_instance=yes
27466 else
27467   ac_cv_lib_gs_gsapi_new_instance=no
27468 fi
27469 rm -f core conftest.err conftest.$ac_objext \
27470     conftest$ac_exeext conftest.$ac_ext
27471 LIBS=$ac_check_lib_save_LIBS
27472 fi
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27474 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27475 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27476   passed=`expr $passed + 1`
27477 else
27478   failed=`expr $failed + 1`
27479 fi
27480
27481 fi
27482     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27483 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27484     if test $passed -gt 0; then
27485         if test $failed -gt 0; then
27486             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27487 $as_echo "no -- some components failed test" >&6; }
27488             have_gslib='no (failed tests)'
27489         else
27490             if test $framework -gt 0; then
27491                 GS_LIBS='-framework Ghostscript'
27492                 gslib_framework='yes'
27493                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27494 $as_echo "yes, using framework." >&6; }
27495             else
27496                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27497 $as_echo "yes, using library." >&6; }
27498                 GS_LIBS='-lgs'
27499             fi
27500             LIBS="$GS_LIBS $LIBS"
27501
27502 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27503
27504             have_gslib='yes'
27505         fi
27506     else
27507         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27508 $as_echo "no" >&6; }
27509     fi
27510 fi
27511  if test "$have_gslib" = 'yes'; then
27512   GS_DELEGATE_TRUE=
27513   GS_DELEGATE_FALSE='#'
27514 else
27515   GS_DELEGATE_TRUE='#'
27516   GS_DELEGATE_FALSE=
27517 fi
27518
27519
27520
27521 # Set default font search path
27522
27523 # Check whether --with-fontpath was given.
27524 if test "${with_fontpath+set}" = set; then :
27525   withval=$with_fontpath; with_fontpath=$withval
27526 else
27527   with_fontpath=''
27528 fi
27529
27530
27531 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27532     with_fontpath=''
27533 else
27534
27535 cat >>confdefs.h <<_ACEOF
27536 #define MAGICK_FONT_PATH "$with_fontpath"
27537 _ACEOF
27538
27539 fi
27540 if test "$with_fontpath=" != ''; then
27541     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27542 fi
27543
27544 # Set Ghostscript font directory
27545
27546 # Check whether --with-gs-font-dir was given.
27547 if test "${with_gs_font_dir+set}" = set; then :
27548   withval=$with_gs_font_dir; with_gs_font_dir=$withval
27549 else
27550   with_gs_font_dir='default'
27551 fi
27552
27553
27554 if test "$with_gs_font_dir" != 'default'; then
27555     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27556 fi
27557
27558
27559 #
27560 # Check for GVC delegate library.
27561 #
27562
27563 # Check whether --with-gvc was given.
27564 if test "${with_gvc+set}" = set; then :
27565   withval=$with_gvc; with_gvc=$withval
27566 else
27567   with_gvc='yes'
27568 fi
27569
27570
27571 if test "$with_gvc" != 'yes'; then
27572     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27573 fi
27574
27575 GVC_PKG=""
27576 if test "x$with_gvc" = "xyes"; then
27577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27578 $as_echo "-------------------------------------------------------------" >&6; }
27579
27580 pkg_failed=no
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27582 $as_echo_n "checking for GVC... " >&6; }
27583
27584 if test -n "$GVC_CFLAGS"; then
27585     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27586  elif test -n "$PKG_CONFIG"; then
27587     if test -n "$PKG_CONFIG" && \
27588     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27589   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27590   ac_status=$?
27591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27592   test $ac_status = 0; }; then
27593   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27594 else
27595   pkg_failed=yes
27596 fi
27597  else
27598     pkg_failed=untried
27599 fi
27600 if test -n "$GVC_LIBS"; then
27601     pkg_cv_GVC_LIBS="$GVC_LIBS"
27602  elif test -n "$PKG_CONFIG"; then
27603     if test -n "$PKG_CONFIG" && \
27604     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27605   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27606   ac_status=$?
27607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608   test $ac_status = 0; }; then
27609   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27610 else
27611   pkg_failed=yes
27612 fi
27613  else
27614     pkg_failed=untried
27615 fi
27616
27617
27618
27619 if test $pkg_failed = yes; then
27620
27621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27622         _pkg_short_errors_supported=yes
27623 else
27624         _pkg_short_errors_supported=no
27625 fi
27626         if test $_pkg_short_errors_supported = yes; then
27627                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27628         else
27629                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27630         fi
27631         # Put the nasty error message in config.log where it belongs
27632         echo "$GVC_PKG_ERRORS" >&5
27633
27634         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27635 $as_echo "no" >&6; }
27636                 have_gvc=no
27637 elif test $pkg_failed = untried; then
27638         have_gvc=no
27639 else
27640         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27641         GVC_LIBS=$pkg_cv_GVC_LIBS
27642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27643 $as_echo "yes" >&6; }
27644         have_gvc=yes
27645 fi
27646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27647 $as_echo "" >&6; }
27648 fi
27649
27650 if test "$have_gvc" = 'yes'; then
27651
27652 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27653
27654     if test "$with_modules" = 'no'; then
27655         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27656     fi
27657 fi
27658
27659  if test "$have_gvc" = 'yes'; then
27660   GVC_DELEGATE_TRUE=
27661   GVC_DELEGATE_FALSE='#'
27662 else
27663   GVC_DELEGATE_TRUE='#'
27664   GVC_DELEGATE_FALSE=
27665 fi
27666
27667
27668
27669
27670
27671 #
27672 # Check for JBIG delegate library.
27673 #
27674
27675
27676 # Check whether --with-jbig was given.
27677 if test "${with_jbig+set}" = set; then :
27678   withval=$with_jbig; with_jbig=$withval
27679 else
27680   with_jbig='yes'
27681 fi
27682
27683
27684 have_jbig='no'
27685 JBIG_LIBS=''
27686 if test "$with_jbig" != 'no'; then
27687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27688 $as_echo "-------------------------------------------------------------" >&6; }
27689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27690 $as_echo_n "checking for JBIG... " >&6; }
27691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27692 $as_echo "" >&6; }
27693     failed=0
27694     passed=0
27695     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27696 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27697   passed=`expr $passed + 1`
27698 else
27699   failed=`expr $failed + 1`
27700 fi
27701
27702
27703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27704 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27705 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27706   $as_echo_n "(cached) " >&6
27707 else
27708   ac_check_lib_save_LIBS=$LIBS
27709 LIBS="-ljbig  $LIBS"
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h.  */
27712
27713 /* Override any GCC internal prototype to avoid an error.
27714    Use char because int might match the return type of a GCC
27715    builtin and then its argument prototype would still apply.  */
27716 #ifdef __cplusplus
27717 extern "C"
27718 #endif
27719 char jbg_dec_init ();
27720 int
27721 main ()
27722 {
27723 return jbg_dec_init ();
27724   ;
27725   return 0;
27726 }
27727 _ACEOF
27728 if ac_fn_c_try_link "$LINENO"; then :
27729   ac_cv_lib_jbig_jbg_dec_init=yes
27730 else
27731   ac_cv_lib_jbig_jbg_dec_init=no
27732 fi
27733 rm -f core conftest.err conftest.$ac_objext \
27734     conftest$ac_exeext conftest.$ac_ext
27735 LIBS=$ac_check_lib_save_LIBS
27736 fi
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27738 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27739 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27740   passed=`expr $passed + 1`
27741 else
27742   failed=`expr $failed + 1`
27743 fi
27744
27745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27746 $as_echo_n "checking if JBIG package is complete... " >&6; }
27747     if test $passed -gt 0; then
27748         if test $failed -gt 0; then
27749             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27750 $as_echo "no -- some components failed test" >&6; }
27751             have_jbig='no (failed tests)'
27752         else
27753             JBIG_LIBS='-ljbig'
27754             LIBS="$JBIG_LIBS $LIBS"
27755
27756 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27757
27758             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27759 $as_echo "yes" >&6; }
27760             have_jbig='yes'
27761         fi
27762     else
27763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27764 $as_echo "no" >&6; }
27765     fi
27766 fi
27767  if test "$have_jbig" = 'yes'; then
27768   JBIG_DELEGATE_TRUE=
27769   JBIG_DELEGATE_FALSE='#'
27770 else
27771   JBIG_DELEGATE_TRUE='#'
27772   JBIG_DELEGATE_FALSE=
27773 fi
27774
27775
27776
27777
27778 #
27779 # Check for JPEG delegate library.
27780 #
27781
27782 # Check whether --with-jpeg was given.
27783 if test "${with_jpeg+set}" = set; then :
27784   withval=$with_jpeg; with_jpeg=$withval
27785 else
27786   with_jpeg='yes'
27787 fi
27788
27789
27790 if test "$with_jpeg" != 'yes'; then
27791     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27792 fi
27793
27794 have_jpeg='no'
27795 JPEG_LIBS=''
27796 if test "$with_jpeg" != 'no'; then
27797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27798 $as_echo "-------------------------------------------------------------" >&6; }
27799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27800 $as_echo_n "checking for JPEG... " >&6; }
27801     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27802 $as_echo "" >&6; }
27803     failed=0
27804     passed=0
27805     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27806 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27807   passed=`expr $passed + 1`
27808 else
27809   failed=`expr $failed + 1`
27810 fi
27811
27812
27813     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27814 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27815   passed=`expr $passed + 1`
27816 else
27817   failed=`expr $failed + 1`
27818 fi
27819
27820
27821     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27822 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27823   passed=`expr $passed + 1`
27824 else
27825   failed=`expr $failed + 1`
27826 fi
27827
27828
27829     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27830 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27831   passed=`expr $passed + 1`
27832 else
27833   failed=`expr $failed + 1`
27834 fi
27835
27836
27837     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27838 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27839 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27840   $as_echo_n "(cached) " >&6
27841 else
27842   ac_check_lib_save_LIBS=$LIBS
27843 LIBS="-ljpeg  $LIBS"
27844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h.  */
27846
27847 /* Override any GCC internal prototype to avoid an error.
27848    Use char because int might match the return type of a GCC
27849    builtin and then its argument prototype would still apply.  */
27850 #ifdef __cplusplus
27851 extern "C"
27852 #endif
27853 char jpeg_read_header ();
27854 int
27855 main ()
27856 {
27857 return jpeg_read_header ();
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 if ac_fn_c_try_link "$LINENO"; then :
27863   ac_cv_lib_jpeg_jpeg_read_header=yes
27864 else
27865   ac_cv_lib_jpeg_jpeg_read_header=no
27866 fi
27867 rm -f core conftest.err conftest.$ac_objext \
27868     conftest$ac_exeext conftest.$ac_ext
27869 LIBS=$ac_check_lib_save_LIBS
27870 fi
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27872 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27873 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27874   passed=`expr $passed + 1`
27875 else
27876   failed=`expr $failed + 1`
27877 fi
27878
27879
27880 # Test for compatible JPEG library
27881 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27883 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27884 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27885   $as_echo_n "(cached) " >&6
27886 else
27887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h.  */
27889 #include <stdio.h>
27890 #include <stdlib.h>
27891 #include <jpeglib.h>
27892
27893 int
27894 main ()
27895 {
27896
27897 #if JPEG_LIB_VERSION < 62
27898 #error IJG JPEG library must be version 6b or newer!
27899 #endif
27900 return 0;
27901
27902   ;
27903   return 0;
27904 }
27905 _ACEOF
27906 if ac_fn_c_try_compile "$LINENO"; then :
27907   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27908 else
27909   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27910 fi
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912 fi
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27914 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27915 fi
27916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27917 $as_echo_n "checking if JPEG package is complete... " >&6; }
27918     if test $passed -gt 0; then
27919         if test $failed -gt 0; then
27920             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27921 $as_echo "no -- some components failed test" >&6; }
27922             have_jpeg='no (failed tests)'
27923         else
27924             JPEG_LIBS='-ljpeg'
27925             LIBS="$JPEG_LIBS $LIBS"
27926
27927 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27928
27929             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27930 $as_echo "yes" >&6; }
27931             have_jpeg='yes'
27932         fi
27933     else
27934         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27935 $as_echo "no" >&6; }
27936     fi
27937 fi
27938  if test "$have_jpeg" = 'yes'; then
27939   JPEG_DELEGATE_TRUE=
27940   JPEG_DELEGATE_FALSE='#'
27941 else
27942   JPEG_DELEGATE_TRUE='#'
27943   JPEG_DELEGATE_FALSE=
27944 fi
27945
27946
27947
27948
27949 #
27950 # Check for JPEG Version 2 delegate library.
27951 #
27952
27953 # Check whether --with-jp2 was given.
27954 if test "${with_jp2+set}" = set; then :
27955   withval=$with_jp2; with_jp2=$withval
27956 else
27957   with_jp2='yes'
27958 fi
27959
27960
27961 if test "$with_jp2" != 'yes'; then
27962     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27963 fi
27964
27965 have_jp2='no'
27966 JP2_LIBS=''
27967 if test "$with_jp2" != 'no'; then
27968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27969 $as_echo "-------------------------------------------------------------" >&6; }
27970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27971 $as_echo_n "checking for JPEG Version 2... " >&6; }
27972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27973 $as_echo "" >&6; }
27974     failed=0
27975     passed=0
27976     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27977 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27978   passed=`expr $passed + 1`
27979 else
27980   failed=`expr $failed + 1`
27981 fi
27982
27983
27984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27985 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27986 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27987   $as_echo_n "(cached) " >&6
27988 else
27989   ac_check_lib_save_LIBS=$LIBS
27990 LIBS="-ljasper  $LIBS"
27991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992 /* end confdefs.h.  */
27993
27994 /* Override any GCC internal prototype to avoid an error.
27995    Use char because int might match the return type of a GCC
27996    builtin and then its argument prototype would still apply.  */
27997 #ifdef __cplusplus
27998 extern "C"
27999 #endif
28000 char jas_stream_fopen ();
28001 int
28002 main ()
28003 {
28004 return jas_stream_fopen ();
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 if ac_fn_c_try_link "$LINENO"; then :
28010   ac_cv_lib_jasper_jas_stream_fopen=yes
28011 else
28012   ac_cv_lib_jasper_jas_stream_fopen=no
28013 fi
28014 rm -f core conftest.err conftest.$ac_objext \
28015     conftest$ac_exeext conftest.$ac_ext
28016 LIBS=$ac_check_lib_save_LIBS
28017 fi
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
28019 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28020 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
28021   passed=`expr $passed + 1`
28022 else
28023   failed=`expr $failed + 1`
28024 fi
28025
28026     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28027 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28028     if test $passed -gt 0; then
28029         if test $failed -gt 0; then
28030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28031 $as_echo "no -- some components failed test" >&6; }
28032             have_jp2='no (failed tests)'
28033         else
28034             JP2_LIBS='-ljasper'
28035             LIBS="$JP2_LIBS $LIBS"
28036
28037 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28038
28039             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28040 $as_echo "yes" >&6; }
28041             have_jp2='yes'
28042         fi
28043     else
28044         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045 $as_echo "no" >&6; }
28046     fi
28047 fi
28048  if test "$have_jp2" = 'yes'; then
28049   JP2_DELEGATE_TRUE=
28050   JP2_DELEGATE_FALSE='#'
28051 else
28052   JP2_DELEGATE_TRUE='#'
28053   JP2_DELEGATE_FALSE=
28054 fi
28055
28056
28057
28058
28059 #
28060 # Check for LCMS delegate library.
28061 #
28062 # Disable LCMS.
28063
28064 # Check whether --with-lcms was given.
28065 if test "${with_lcms+set}" = set; then :
28066   withval=$with_lcms; with_lcms=$withval
28067 else
28068   with_lcms='yes'
28069 fi
28070
28071 if test "$with_lcms" != 'yes' ; then
28072     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28073 fi
28074
28075 # Disable LCMS2.
28076
28077 # Check whether --with-lcms2 was given.
28078 if test "${with_lcms2+set}" = set; then :
28079   withval=$with_lcms2; with_lcms2=$withval
28080 else
28081   with_lcms2='yes'
28082 fi
28083
28084 if test "$with_lcms2" != 'yes' ; then
28085     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28086 fi
28087
28088 have_lcms2='no'
28089 LCMS_LIBS=''
28090 if test "$with_lcms2" != 'no'; then
28091     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28092 $as_echo "-------------------------------------------------------------" >&6; }
28093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28094 $as_echo_n "checking for LCMS v2... " >&6; }
28095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28096 $as_echo "" >&6; }
28097     failed=0
28098     passed=0
28099     have_lcms_header='no'
28100
28101     # Check for <lcms2.h>
28102     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28103 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28104   have_lcms_header='yes'
28105 fi
28106
28107
28108     if test "$have_lcms_header" = 'yes'; then
28109
28110 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28111
28112        passed=`expr $passed + 1`
28113     fi
28114
28115     # Check for <lcms2/lcms2.h)
28116     if test "$have_lcms_header" != 'yes'; then
28117       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28118 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
28119   have_lcms_header='yes'
28120 fi
28121
28122
28123       if test "$have_lcms_header" = 'yes'; then
28124         passed=`expr $passed + 1`
28125
28126 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28127
28128       fi
28129     fi
28130
28131     # Failed to find lcms header?
28132     if test "$have_lcms_header" != 'yes'; then
28133       failed=`expr $failed + 1`
28134     fi
28135
28136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28137 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28138 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
28139   $as_echo_n "(cached) " >&6
28140 else
28141   ac_check_lib_save_LIBS=$LIBS
28142 LIBS="-llcms2  $LIBS"
28143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28144 /* end confdefs.h.  */
28145
28146 /* Override any GCC internal prototype to avoid an error.
28147    Use char because int might match the return type of a GCC
28148    builtin and then its argument prototype would still apply.  */
28149 #ifdef __cplusplus
28150 extern "C"
28151 #endif
28152 char cmsSetLogErrorHandler ();
28153 int
28154 main ()
28155 {
28156 return cmsSetLogErrorHandler ();
28157   ;
28158   return 0;
28159 }
28160 _ACEOF
28161 if ac_fn_c_try_link "$LINENO"; then :
28162   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28163 else
28164   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28165 fi
28166 rm -f core conftest.err conftest.$ac_objext \
28167     conftest$ac_exeext conftest.$ac_ext
28168 LIBS=$ac_check_lib_save_LIBS
28169 fi
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28171 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28172 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
28173   passed=`expr $passed + 1`
28174 else
28175   failed=`expr $failed + 1`
28176 fi
28177
28178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28179 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28180     if test $passed -gt 0; then
28181       if test $failed -gt 0; then
28182         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28183 $as_echo "no -- some components failed test" >&6; }
28184         have_lcms2='no (failed tests)'
28185       else
28186         LCMS_LIBS='-llcms2'
28187         LIBS="$LCMS_LIBS $LIBS"
28188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189 $as_echo "yes" >&6; }
28190         have_lcms2='yes'
28191       fi
28192     else
28193       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28194 $as_echo "no" >&6; }
28195     fi
28196 fi
28197
28198 #
28199 # Check for LCMS v1 (1.11 or later)
28200 #
28201 if test $have_lcms2 = 'yes'; then
28202   with_lcms='no'
28203 fi
28204
28205 have_lcms='no'
28206 if test "$with_lcms" != 'no'; then
28207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28208 $as_echo "-------------------------------------------------------------" >&6; }
28209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28210 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28212 $as_echo "" >&6; }
28213     failed=0
28214     passed=0
28215     have_lcms_header='no'
28216
28217     # Check for <lcms.h>
28218     if test "$have_lcms_header" != 'yes'; then
28219       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28220 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28221   have_lcms_header='yes'
28222 fi
28223
28224
28225       if test "$have_lcms_header" = 'yes'; then
28226         passed=`expr $passed + 1`
28227
28228 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28229
28230       fi
28231     fi
28232
28233     # Check for <lcms/lcms.h>
28234     if test "$have_lcms_header" != 'yes'; then
28235       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28236 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28237   have_lcms_header='yes'
28238 fi
28239
28240
28241       if test "$have_lcms_header" = 'yes'; then
28242         passed=`expr $passed + 1`
28243
28244 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28245
28246       fi
28247     fi
28248
28249     # Failed to find lcms header?
28250     if test "$have_lcms_header" != 'yes'; then
28251       failed=`expr $failed + 1`
28252     fi
28253
28254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28255 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28256 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28257   $as_echo_n "(cached) " >&6
28258 else
28259   ac_check_lib_save_LIBS=$LIBS
28260 LIBS="-llcms  $LIBS"
28261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h.  */
28263
28264 /* Override any GCC internal prototype to avoid an error.
28265    Use char because int might match the return type of a GCC
28266    builtin and then its argument prototype would still apply.  */
28267 #ifdef __cplusplus
28268 extern "C"
28269 #endif
28270 char cmsSetErrorHandler ();
28271 int
28272 main ()
28273 {
28274 return cmsSetErrorHandler ();
28275   ;
28276   return 0;
28277 }
28278 _ACEOF
28279 if ac_fn_c_try_link "$LINENO"; then :
28280   ac_cv_lib_lcms_cmsSetErrorHandler=yes
28281 else
28282   ac_cv_lib_lcms_cmsSetErrorHandler=no
28283 fi
28284 rm -f core conftest.err conftest.$ac_objext \
28285     conftest$ac_exeext conftest.$ac_ext
28286 LIBS=$ac_check_lib_save_LIBS
28287 fi
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28289 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28290 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28291   passed=`expr $passed + 1`
28292 else
28293   failed=`expr $failed + 1`
28294 fi
28295
28296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28297 $as_echo_n "checking if LCMS package is complete... " >&6; }
28298     if test $passed -gt 0; then
28299       if test $failed -gt 0; then
28300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28301 $as_echo "no -- some components failed test" >&6; }
28302         have_lcms='no (failed tests)'
28303       else
28304         LCMS_LIBS='-llcms'
28305         LIBS="$LCMS_LIBS $LIBS"
28306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28307 $as_echo "yes" >&6; }
28308         have_lcms='yes'
28309       fi
28310     else
28311       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28312 $as_echo "no" >&6; }
28313     fi
28314 fi
28315
28316  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28317   LCMS_DELEGATE_TRUE=
28318   LCMS_DELEGATE_FALSE='#'
28319 else
28320   LCMS_DELEGATE_TRUE='#'
28321   LCMS_DELEGATE_FALSE=
28322 fi
28323
28324 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28325
28326 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28327
28328 fi
28329
28330
28331
28332
28333 #
28334 # Check for the LQR (Liquid Rescale) delegate library.
28335 #
28336
28337 # Check whether --with-lqr was given.
28338 if test "${with_lqr+set}" = set; then :
28339   withval=$with_lqr; with_lqr=$withval
28340 else
28341   with_lqr='yes'
28342 fi
28343
28344
28345 if test "$with_lqr" != 'yes'; then
28346     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28347 fi
28348
28349 have_lqr='no'
28350 LQR_CFLAGS=""
28351 LQR_LIBS=""
28352 LQR_PKG=""
28353 if test "x$with_lqr" = "xyes"; then
28354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28355 $as_echo "-------------------------------------------------------------" >&6; }
28356
28357 pkg_failed=no
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28359 $as_echo_n "checking for LQR... " >&6; }
28360
28361 if test -n "$LQR_CFLAGS"; then
28362     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28363  elif test -n "$PKG_CONFIG"; then
28364     if test -n "$PKG_CONFIG" && \
28365     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28366   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28367   ac_status=$?
28368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28369   test $ac_status = 0; }; then
28370   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28371 else
28372   pkg_failed=yes
28373 fi
28374  else
28375     pkg_failed=untried
28376 fi
28377 if test -n "$LQR_LIBS"; then
28378     pkg_cv_LQR_LIBS="$LQR_LIBS"
28379  elif test -n "$PKG_CONFIG"; then
28380     if test -n "$PKG_CONFIG" && \
28381     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28382   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28383   ac_status=$?
28384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28385   test $ac_status = 0; }; then
28386   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28387 else
28388   pkg_failed=yes
28389 fi
28390  else
28391     pkg_failed=untried
28392 fi
28393
28394
28395
28396 if test $pkg_failed = yes; then
28397
28398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28399         _pkg_short_errors_supported=yes
28400 else
28401         _pkg_short_errors_supported=no
28402 fi
28403         if test $_pkg_short_errors_supported = yes; then
28404                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28405         else
28406                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28407         fi
28408         # Put the nasty error message in config.log where it belongs
28409         echo "$LQR_PKG_ERRORS" >&5
28410
28411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28412 $as_echo "no" >&6; }
28413                 have_lqr=no
28414 elif test $pkg_failed = untried; then
28415         have_lqr=no
28416 else
28417         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28418         LQR_LIBS=$pkg_cv_LQR_LIBS
28419         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28420 $as_echo "yes" >&6; }
28421         have_lqr=yes
28422 fi
28423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28424 $as_echo "" >&6; }
28425 fi
28426
28427 if test "$have_lqr" = 'yes'; then
28428
28429 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28430
28431     CFLAGS="$LQR_CFLAGS $CFLAGS"
28432 fi
28433
28434  if test "$have_lqr" = 'yes'; then
28435   LQR_DELEGATE_TRUE=
28436   LQR_DELEGATE_FALSE='#'
28437 else
28438   LQR_DELEGATE_TRUE='#'
28439   LQR_DELEGATE_FALSE=
28440 fi
28441
28442
28443
28444
28445
28446 #
28447 # Check for the OpenEXR delegate library.
28448 #
28449
28450 # Check whether --with-openexr was given.
28451 if test "${with_openexr+set}" = set; then :
28452   withval=$with_openexr; with_openexr=$withval
28453 else
28454   with_openexr='yes'
28455 fi
28456
28457
28458 if test "$with_openexr" != 'yes'; then
28459     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28460 fi
28461
28462 have_openexr='no'
28463 OPENEXR_CFLAGS=""
28464 OPENEXR_LIBS=""
28465 OPENEXR_PKG=""
28466 if test "x$with_openexr" = "xyes"; then
28467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28468 $as_echo "-------------------------------------------------------------" >&6; }
28469
28470 pkg_failed=no
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28472 $as_echo_n "checking for OPENEXR... " >&6; }
28473
28474 if test -n "$OPENEXR_CFLAGS"; then
28475     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28476  elif test -n "$PKG_CONFIG"; then
28477     if test -n "$PKG_CONFIG" && \
28478     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28479   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28480   ac_status=$?
28481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28482   test $ac_status = 0; }; then
28483   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28484 else
28485   pkg_failed=yes
28486 fi
28487  else
28488     pkg_failed=untried
28489 fi
28490 if test -n "$OPENEXR_LIBS"; then
28491     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28492  elif test -n "$PKG_CONFIG"; then
28493     if test -n "$PKG_CONFIG" && \
28494     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28495   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28496   ac_status=$?
28497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498   test $ac_status = 0; }; then
28499   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28500 else
28501   pkg_failed=yes
28502 fi
28503  else
28504     pkg_failed=untried
28505 fi
28506
28507
28508
28509 if test $pkg_failed = yes; then
28510
28511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28512         _pkg_short_errors_supported=yes
28513 else
28514         _pkg_short_errors_supported=no
28515 fi
28516         if test $_pkg_short_errors_supported = yes; then
28517                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28518         else
28519                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28520         fi
28521         # Put the nasty error message in config.log where it belongs
28522         echo "$OPENEXR_PKG_ERRORS" >&5
28523
28524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525 $as_echo "no" >&6; }
28526                 have_openexr=no
28527 elif test $pkg_failed = untried; then
28528         have_openexr=no
28529 else
28530         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28531         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28533 $as_echo "yes" >&6; }
28534         have_openexr=yes
28535 fi
28536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28537 $as_echo "" >&6; }
28538 fi
28539
28540 if test "$have_openexr" = 'yes'; then
28541
28542 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28543
28544     if test "$with_modules" = 'no'; then
28545         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28546     fi
28547 fi
28548
28549  if test "$have_openexr" = 'yes'; then
28550   OPENEXR_DELEGATE_TRUE=
28551   OPENEXR_DELEGATE_FALSE='#'
28552 else
28553   OPENEXR_DELEGATE_TRUE='#'
28554   OPENEXR_DELEGATE_FALSE=
28555 fi
28556
28557
28558
28559
28560
28561 #
28562 # Check for PNG delegate library.
28563 #
28564
28565 # Check whether --with-png was given.
28566 if test "${with_png+set}" = set; then :
28567   withval=$with_png; with_png=$withval
28568 else
28569   with_png='yes'
28570 fi
28571
28572
28573 if test "$with_png" != 'yes'; then
28574     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28575 fi
28576
28577 have_png='no'
28578 PNG_LIBS=''
28579 if test "$with_png" != 'no'; then
28580     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28581 $as_echo "-------------------------------------------------------------" >&6; }
28582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28583 $as_echo_n "checking for PNG... " >&6; }
28584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28585 $as_echo "" >&6; }
28586     failed=0
28587     passed=0
28588     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28589 if test "x$ac_cv_header_png_h" = x""yes; then :
28590   passed=`expr $passed + 1`
28591 else
28592   failed=`expr $failed + 1`
28593 fi
28594
28595
28596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28597 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28598 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28599   $as_echo_n "(cached) " >&6
28600 else
28601   ac_check_lib_save_LIBS=$LIBS
28602 LIBS="-lpng  $LIBS"
28603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28604 /* end confdefs.h.  */
28605
28606 /* Override any GCC internal prototype to avoid an error.
28607    Use char because int might match the return type of a GCC
28608    builtin and then its argument prototype would still apply.  */
28609 #ifdef __cplusplus
28610 extern "C"
28611 #endif
28612 char png_get_io_ptr ();
28613 int
28614 main ()
28615 {
28616 return png_get_io_ptr ();
28617   ;
28618   return 0;
28619 }
28620 _ACEOF
28621 if ac_fn_c_try_link "$LINENO"; then :
28622   ac_cv_lib_png_png_get_io_ptr=yes
28623 else
28624   ac_cv_lib_png_png_get_io_ptr=no
28625 fi
28626 rm -f core conftest.err conftest.$ac_objext \
28627     conftest$ac_exeext conftest.$ac_ext
28628 LIBS=$ac_check_lib_save_LIBS
28629 fi
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28631 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28632 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28633   passed=`expr $passed + 1`
28634 else
28635   failed=`expr $failed + 1`
28636 fi
28637
28638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28639 $as_echo_n "checking if PNG package is complete... " >&6; }
28640     if test $passed -gt 0; then
28641         if test $failed -gt 0; then
28642             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28643 $as_echo "no -- some components failed test" >&6; }
28644             have_png='no (failed tests)'
28645         else
28646             PNG_LIBS='-lpng'
28647             LIBS="$PNG_LIBS $LIBS"
28648
28649 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28650
28651             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28652 $as_echo "yes" >&6; }
28653             have_png='yes'
28654         fi
28655     else
28656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657 $as_echo "no" >&6; }
28658     fi
28659 fi
28660  if test "$have_png" = 'yes'; then
28661   PNG_DELEGATE_TRUE=
28662   PNG_DELEGATE_FALSE='#'
28663 else
28664   PNG_DELEGATE_TRUE='#'
28665   PNG_DELEGATE_FALSE=
28666 fi
28667
28668
28669
28670
28671 #
28672 # Check for RSVG delegate library.
28673 #
28674
28675 # Check whether --with-rsvg was given.
28676 if test "${with_rsvg+set}" = set; then :
28677   withval=$with_rsvg; with_rsvg=$withval
28678 else
28679   with_rsvg=$have_x
28680 fi
28681
28682
28683 if test "$with_rsvg" != 'yes'; then
28684     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28685 fi
28686
28687 have_rsvg='no'
28688 have_cairo='no'
28689 RSVG_CFLAGS=""
28690 RSVG_LIBS=""
28691 RSVG_PKG=""
28692 if test "x$with_rsvg" = "xyes"; then
28693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28694 $as_echo "-------------------------------------------------------------" >&6; }
28695
28696 pkg_failed=no
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28698 $as_echo_n "checking for RSVG... " >&6; }
28699
28700 if test -n "$RSVG_CFLAGS"; then
28701     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28702  elif test -n "$PKG_CONFIG"; then
28703     if test -n "$PKG_CONFIG" && \
28704     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28705   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28706   ac_status=$?
28707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708   test $ac_status = 0; }; then
28709   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28710 else
28711   pkg_failed=yes
28712 fi
28713  else
28714     pkg_failed=untried
28715 fi
28716 if test -n "$RSVG_LIBS"; then
28717     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28718  elif test -n "$PKG_CONFIG"; then
28719     if test -n "$PKG_CONFIG" && \
28720     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28721   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28722   ac_status=$?
28723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724   test $ac_status = 0; }; then
28725   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28726 else
28727   pkg_failed=yes
28728 fi
28729  else
28730     pkg_failed=untried
28731 fi
28732
28733
28734
28735 if test $pkg_failed = yes; then
28736
28737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28738         _pkg_short_errors_supported=yes
28739 else
28740         _pkg_short_errors_supported=no
28741 fi
28742         if test $_pkg_short_errors_supported = yes; then
28743                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28744         else
28745                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28746         fi
28747         # Put the nasty error message in config.log where it belongs
28748         echo "$RSVG_PKG_ERRORS" >&5
28749
28750         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28751 $as_echo "no" >&6; }
28752                 have_rsvg=no
28753 elif test $pkg_failed = untried; then
28754         have_rsvg=no
28755 else
28756         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28757         RSVG_LIBS=$pkg_cv_RSVG_LIBS
28758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759 $as_echo "yes" >&6; }
28760         have_rsvg=yes
28761 fi
28762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28763 $as_echo "" >&6; }
28764
28765 pkg_failed=no
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28767 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28768
28769 if test -n "$CAIRO_SVG_CFLAGS"; then
28770     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28771  elif test -n "$PKG_CONFIG"; then
28772     if test -n "$PKG_CONFIG" && \
28773     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28774   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28775   ac_status=$?
28776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28777   test $ac_status = 0; }; then
28778   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28779 else
28780   pkg_failed=yes
28781 fi
28782  else
28783     pkg_failed=untried
28784 fi
28785 if test -n "$CAIRO_SVG_LIBS"; then
28786     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28787  elif test -n "$PKG_CONFIG"; then
28788     if test -n "$PKG_CONFIG" && \
28789     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28790   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28791   ac_status=$?
28792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28793   test $ac_status = 0; }; then
28794   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28795 else
28796   pkg_failed=yes
28797 fi
28798  else
28799     pkg_failed=untried
28800 fi
28801
28802
28803
28804 if test $pkg_failed = yes; then
28805
28806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28807         _pkg_short_errors_supported=yes
28808 else
28809         _pkg_short_errors_supported=no
28810 fi
28811         if test $_pkg_short_errors_supported = yes; then
28812                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28813         else
28814                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28815         fi
28816         # Put the nasty error message in config.log where it belongs
28817         echo "$CAIRO_SVG_PKG_ERRORS" >&5
28818
28819         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28820 $as_echo "no" >&6; }
28821                 have_cairo=no
28822 elif test $pkg_failed = untried; then
28823         have_cairo=no
28824 else
28825         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28826         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28827         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828 $as_echo "yes" >&6; }
28829         have_cairo=yes
28830 fi
28831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28832 $as_echo "" >&6; }
28833 fi
28834
28835 if test "$have_rsvg" = 'yes'; then
28836
28837 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28838
28839     if test "$with_modules" = 'no'; then
28840         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28841     fi
28842 fi
28843
28844 if test "$have_cairo" = 'yes'; then
28845
28846 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28847
28848     if test "$with_modules" = 'no'; then
28849         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28850     fi
28851 fi
28852
28853  if test "$have_rsvg" = 'yes'; then
28854   RSVG_DELEGATE_TRUE=
28855   RSVG_DELEGATE_FALSE='#'
28856 else
28857   RSVG_DELEGATE_TRUE='#'
28858   RSVG_DELEGATE_FALSE=
28859 fi
28860
28861  if test "$have_cairo" = 'yes'; then
28862   CAIRO_DELEGATE_TRUE=
28863   CAIRO_DELEGATE_FALSE='#'
28864 else
28865   CAIRO_DELEGATE_TRUE='#'
28866   CAIRO_DELEGATE_FALSE=
28867 fi
28868
28869
28870
28871
28872
28873 #
28874 # Check for TIFF delegate library.
28875 #
28876
28877 # Check whether --with-tiff was given.
28878 if test "${with_tiff+set}" = set; then :
28879   withval=$with_tiff; with_tiff=$withval
28880 else
28881   with_tiff='yes'
28882 fi
28883
28884
28885 if test "$with_tiff" != 'yes'; then
28886     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28887 fi
28888
28889 have_tiff='no'
28890 TIFF_LIBS=''
28891 if test "$with_tiff" != 'no'; then
28892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28893 $as_echo "-------------------------------------------------------------" >&6; }
28894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28895 $as_echo_n "checking for TIFF... " >&6; }
28896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28897 $as_echo "" >&6; }
28898     failed=0
28899     passed=0
28900     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28901 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28902   passed=`expr $passed + 1`
28903 else
28904   failed=`expr $failed + 1`
28905 fi
28906
28907
28908     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28909 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28910   passed=`expr $passed + 1`
28911 else
28912   failed=`expr $failed + 1`
28913 fi
28914
28915
28916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28917 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28918 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28919   $as_echo_n "(cached) " >&6
28920 else
28921   ac_check_lib_save_LIBS=$LIBS
28922 LIBS="-ltiff  $LIBS"
28923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924 /* end confdefs.h.  */
28925
28926 /* Override any GCC internal prototype to avoid an error.
28927    Use char because int might match the return type of a GCC
28928    builtin and then its argument prototype would still apply.  */
28929 #ifdef __cplusplus
28930 extern "C"
28931 #endif
28932 char TIFFOpen ();
28933 int
28934 main ()
28935 {
28936 return TIFFOpen ();
28937   ;
28938   return 0;
28939 }
28940 _ACEOF
28941 if ac_fn_c_try_link "$LINENO"; then :
28942   ac_cv_lib_tiff_TIFFOpen=yes
28943 else
28944   ac_cv_lib_tiff_TIFFOpen=no
28945 fi
28946 rm -f core conftest.err conftest.$ac_objext \
28947     conftest$ac_exeext conftest.$ac_ext
28948 LIBS=$ac_check_lib_save_LIBS
28949 fi
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28951 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28952 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28953   passed=`expr $passed + 1`
28954 else
28955   failed=`expr $failed + 1`
28956 fi
28957
28958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28959 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28960 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28961   $as_echo_n "(cached) " >&6
28962 else
28963   ac_check_lib_save_LIBS=$LIBS
28964 LIBS="-ltiff  $LIBS"
28965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28966 /* end confdefs.h.  */
28967
28968 /* Override any GCC internal prototype to avoid an error.
28969    Use char because int might match the return type of a GCC
28970    builtin and then its argument prototype would still apply.  */
28971 #ifdef __cplusplus
28972 extern "C"
28973 #endif
28974 char TIFFClientOpen ();
28975 int
28976 main ()
28977 {
28978 return TIFFClientOpen ();
28979   ;
28980   return 0;
28981 }
28982 _ACEOF
28983 if ac_fn_c_try_link "$LINENO"; then :
28984   ac_cv_lib_tiff_TIFFClientOpen=yes
28985 else
28986   ac_cv_lib_tiff_TIFFClientOpen=no
28987 fi
28988 rm -f core conftest.err conftest.$ac_objext \
28989     conftest$ac_exeext conftest.$ac_ext
28990 LIBS=$ac_check_lib_save_LIBS
28991 fi
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28993 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28994 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28995   passed=`expr $passed + 1`
28996 else
28997   failed=`expr $failed + 1`
28998 fi
28999
29000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29001 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29002 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
29003   $as_echo_n "(cached) " >&6
29004 else
29005   ac_check_lib_save_LIBS=$LIBS
29006 LIBS="-ltiff  $LIBS"
29007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h.  */
29009
29010 /* Override any GCC internal prototype to avoid an error.
29011    Use char because int might match the return type of a GCC
29012    builtin and then its argument prototype would still apply.  */
29013 #ifdef __cplusplus
29014 extern "C"
29015 #endif
29016 char TIFFIsBigEndian ();
29017 int
29018 main ()
29019 {
29020 return TIFFIsBigEndian ();
29021   ;
29022   return 0;
29023 }
29024 _ACEOF
29025 if ac_fn_c_try_link "$LINENO"; then :
29026   ac_cv_lib_tiff_TIFFIsBigEndian=yes
29027 else
29028   ac_cv_lib_tiff_TIFFIsBigEndian=no
29029 fi
29030 rm -f core conftest.err conftest.$ac_objext \
29031     conftest$ac_exeext conftest.$ac_ext
29032 LIBS=$ac_check_lib_save_LIBS
29033 fi
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29035 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29036 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29037   passed=`expr $passed + 1`
29038 else
29039   failed=`expr $failed + 1`
29040 fi
29041
29042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
29043 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
29044 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
29045   $as_echo_n "(cached) " >&6
29046 else
29047   ac_check_lib_save_LIBS=$LIBS
29048 LIBS="-ltiff  $LIBS"
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h.  */
29051
29052 /* Override any GCC internal prototype to avoid an error.
29053    Use char because int might match the return type of a GCC
29054    builtin and then its argument prototype would still apply.  */
29055 #ifdef __cplusplus
29056 extern "C"
29057 #endif
29058 char TIFFIsByteSwapped ();
29059 int
29060 main ()
29061 {
29062 return TIFFIsByteSwapped ();
29063   ;
29064   return 0;
29065 }
29066 _ACEOF
29067 if ac_fn_c_try_link "$LINENO"; then :
29068   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29069 else
29070   ac_cv_lib_tiff_TIFFIsByteSwapped=no
29071 fi
29072 rm -f core conftest.err conftest.$ac_objext \
29073     conftest$ac_exeext conftest.$ac_ext
29074 LIBS=$ac_check_lib_save_LIBS
29075 fi
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29077 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29078 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
29079   passed=`expr $passed + 1`
29080 else
29081   failed=`expr $failed + 1`
29082 fi
29083
29084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29085 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29086 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
29087   $as_echo_n "(cached) " >&6
29088 else
29089   ac_check_lib_save_LIBS=$LIBS
29090 LIBS="-ltiff  $LIBS"
29091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29092 /* end confdefs.h.  */
29093
29094 /* Override any GCC internal prototype to avoid an error.
29095    Use char because int might match the return type of a GCC
29096    builtin and then its argument prototype would still apply.  */
29097 #ifdef __cplusplus
29098 extern "C"
29099 #endif
29100 char TIFFReadRGBATile ();
29101 int
29102 main ()
29103 {
29104 return TIFFReadRGBATile ();
29105   ;
29106   return 0;
29107 }
29108 _ACEOF
29109 if ac_fn_c_try_link "$LINENO"; then :
29110   ac_cv_lib_tiff_TIFFReadRGBATile=yes
29111 else
29112   ac_cv_lib_tiff_TIFFReadRGBATile=no
29113 fi
29114 rm -f core conftest.err conftest.$ac_objext \
29115     conftest$ac_exeext conftest.$ac_ext
29116 LIBS=$ac_check_lib_save_LIBS
29117 fi
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29119 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29120 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29121   passed=`expr $passed + 1`
29122 else
29123   failed=`expr $failed + 1`
29124 fi
29125
29126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29127 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29128 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29129   $as_echo_n "(cached) " >&6
29130 else
29131   ac_check_lib_save_LIBS=$LIBS
29132 LIBS="-ltiff  $LIBS"
29133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h.  */
29135
29136 /* Override any GCC internal prototype to avoid an error.
29137    Use char because int might match the return type of a GCC
29138    builtin and then its argument prototype would still apply.  */
29139 #ifdef __cplusplus
29140 extern "C"
29141 #endif
29142 char TIFFReadRGBAStrip ();
29143 int
29144 main ()
29145 {
29146 return TIFFReadRGBAStrip ();
29147   ;
29148   return 0;
29149 }
29150 _ACEOF
29151 if ac_fn_c_try_link "$LINENO"; then :
29152   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29153 else
29154   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29155 fi
29156 rm -f core conftest.err conftest.$ac_objext \
29157     conftest$ac_exeext conftest.$ac_ext
29158 LIBS=$ac_check_lib_save_LIBS
29159 fi
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29161 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29162 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29163   passed=`expr $passed + 1`
29164 else
29165   failed=`expr $failed + 1`
29166 fi
29167
29168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29169 $as_echo_n "checking if TIFF package is complete... " >&6; }
29170     if test $passed -gt 0; then
29171         if test $failed -gt 0; then
29172             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29173 $as_echo "no -- some components failed test" >&6; }
29174             have_tiff='no (failed tests)'
29175         else
29176             TIFF_LIBS='-ltiff'
29177             LIBS="$TIFF_LIBS $LIBS"
29178
29179 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29180
29181             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29182 $as_echo "yes" >&6; }
29183             have_tiff='yes'
29184             for ac_header in tiffconf.h
29185 do :
29186   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29187 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29188   cat >>confdefs.h <<_ACEOF
29189 #define HAVE_TIFFCONF_H 1
29190 _ACEOF
29191
29192 fi
29193
29194 done
29195
29196             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29197               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29198               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29199 do :
29200   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29202 eval as_val=\$$as_ac_var
29203    if test "x$as_val" = x""yes; then :
29204   cat >>confdefs.h <<_ACEOF
29205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29206 _ACEOF
29207
29208 fi
29209 done
29210
29211         fi
29212     else
29213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29214 $as_echo "no" >&6; }
29215     fi
29216 fi
29217  if test "$have_tiff" = 'yes'; then
29218   TIFF_DELEGATE_TRUE=
29219   TIFF_DELEGATE_FALSE='#'
29220 else
29221   TIFF_DELEGATE_TRUE='#'
29222   TIFF_DELEGATE_FALSE=
29223 fi
29224
29225
29226
29227
29228 #
29229 # Set Windows font directory.
29230 #
29231
29232 # Check whether --with-windows-font-dir was given.
29233 if test "${with_windows_font_dir+set}" = set; then :
29234   withval=$with_windows_font_dir; with_windows_font_dir=$withval
29235 else
29236   with_windows_font_dir=''
29237 fi
29238
29239 if test "$with_windows_font_dir" != '' ; then
29240     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29241 fi
29242
29243
29244 #
29245 # Check for WMF delegate library.
29246 #
29247
29248 # Check whether --with-wmf was given.
29249 if test "${with_wmf+set}" = set; then :
29250   withval=$with_wmf; with_wmf=$withval
29251 else
29252   with_wmf='yes'
29253 fi
29254
29255
29256 if test "$with_wmf" != 'yes'; then
29257     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29258 fi
29259
29260 have_wmf='no'
29261 WMF_LIBS=''
29262 if test "$with_wmf" != 'no'; then
29263     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29264 $as_echo "-------------------------------------------------------------" >&6; }
29265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29266 $as_echo_n "checking for WMF... " >&6; }
29267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29268 $as_echo "" >&6; }
29269     failed=0
29270     passed=0
29271     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29272 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29273   passed=`expr $passed + 1`
29274 else
29275   failed=`expr $failed + 1`
29276 fi
29277
29278
29279     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29280 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29281 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29282   $as_echo_n "(cached) " >&6
29283 else
29284   ac_check_lib_save_LIBS=$LIBS
29285 LIBS="-lwmf "-lwmflite" $LIBS"
29286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287 /* end confdefs.h.  */
29288
29289 /* Override any GCC internal prototype to avoid an error.
29290    Use char because int might match the return type of a GCC
29291    builtin and then its argument prototype would still apply.  */
29292 #ifdef __cplusplus
29293 extern "C"
29294 #endif
29295 char wmf_eps_function ();
29296 int
29297 main ()
29298 {
29299 return wmf_eps_function ();
29300   ;
29301   return 0;
29302 }
29303 _ACEOF
29304 if ac_fn_c_try_link "$LINENO"; then :
29305   ac_cv_lib_wmf_wmf_eps_function=yes
29306 else
29307   ac_cv_lib_wmf_wmf_eps_function=no
29308 fi
29309 rm -f core conftest.err conftest.$ac_objext \
29310     conftest$ac_exeext conftest.$ac_ext
29311 LIBS=$ac_check_lib_save_LIBS
29312 fi
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29314 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29315 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29316   passed=`expr $passed + 1`
29317 else
29318   failed=`expr $failed + 1`
29319 fi
29320
29321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29322 $as_echo_n "checking if WMF package is complete... " >&6; }
29323     if test $passed -gt 0; then
29324         if test $failed -gt 0; then
29325             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29326 $as_echo "no -- some components failed test" >&6; }
29327             have_wmf='no (failed tests)'
29328         else
29329             WMF_LIBS='-lwmf -lwmflite'
29330             LIBS="$WMF_LIBS $LIBS"
29331
29332 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29333
29334             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29335 $as_echo "yes" >&6; }
29336             have_wmf='yes'
29337         fi
29338     else
29339         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29340 $as_echo "no" >&6; }
29341     fi
29342 fi
29343  if test "$have_wmf" = 'yes'; then
29344   WMF_DELEGATE_TRUE=
29345   WMF_DELEGATE_FALSE='#'
29346 else
29347   WMF_DELEGATE_TRUE='#'
29348   WMF_DELEGATE_FALSE=
29349 fi
29350
29351
29352
29353
29354
29355
29356 #
29357 # Check for XML delegate library.
29358 #
29359
29360 # Check whether --with-xml was given.
29361 if test "${with_xml+set}" = set; then :
29362   withval=$with_xml; with_xml=$withval
29363 else
29364   with_xml=$have_x
29365 fi
29366
29367
29368 if test "$with_xml" != 'yes' ; then
29369     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29370 fi
29371
29372 have_xml='no'
29373 XML_LIBS=''
29374 if test "$with_xml" != 'no'; then
29375     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29376 $as_echo "-------------------------------------------------------------" >&6; }
29377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29378 $as_echo_n "checking for XML... " >&6; }
29379     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29380 $as_echo "" >&6; }
29381     PERSIST_LDFLAGS=$LDFLAGS
29382     PERSIST_CPPFLAGS=$CPPFLAGS
29383     xml2_config=''
29384     for ac_prog in xml2-config
29385 do
29386   # Extract the first word of "$ac_prog", so it can be a program name with args.
29387 set dummy $ac_prog; ac_word=$2
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29389 $as_echo_n "checking for $ac_word... " >&6; }
29390 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29391   $as_echo_n "(cached) " >&6
29392 else
29393   if test -n "$xml2_config"; then
29394   ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29395 else
29396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29397 for as_dir in $PATH
29398 do
29399   IFS=$as_save_IFS
29400   test -z "$as_dir" && as_dir=.
29401     for ac_exec_ext in '' $ac_executable_extensions; do
29402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29403     ac_cv_prog_xml2_config="$ac_prog"
29404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29405     break 2
29406   fi
29407 done
29408   done
29409 IFS=$as_save_IFS
29410
29411 fi
29412 fi
29413 xml2_config=$ac_cv_prog_xml2_config
29414 if test -n "$xml2_config"; then
29415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29416 $as_echo "$xml2_config" >&6; }
29417 else
29418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29419 $as_echo "no" >&6; }
29420 fi
29421
29422
29423   test -n "$xml2_config" && break
29424 done
29425     if test -n "$xml2_config"; then
29426         # Debian installs libxml headers under /usr/include/libxml2/libxml with
29427         # the shared library installed under /usr/lib, whereas the package
29428         # installs itself under $prefix/libxml and $prefix/lib.
29429         xml2_prefix=`xml2-config --prefix`
29430         if test -d "${xml2_prefix}/include/libxml2"; then
29431             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29432         fi
29433         if test "${xml2_prefix}" != '/usr'; then
29434             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29435         fi
29436     fi
29437     failed=0
29438     passed=0
29439     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29440 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29441   passed=`expr $passed + 1`
29442 else
29443   failed=`expr $failed + 1`
29444 fi
29445
29446
29447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29448 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29449 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29450   $as_echo_n "(cached) " >&6
29451 else
29452   ac_check_lib_save_LIBS=$LIBS
29453 LIBS="-lxml2  $LIBS"
29454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29455 /* end confdefs.h.  */
29456
29457 /* Override any GCC internal prototype to avoid an error.
29458    Use char because int might match the return type of a GCC
29459    builtin and then its argument prototype would still apply.  */
29460 #ifdef __cplusplus
29461 extern "C"
29462 #endif
29463 char xmlParseExternalEntity ();
29464 int
29465 main ()
29466 {
29467 return xmlParseExternalEntity ();
29468   ;
29469   return 0;
29470 }
29471 _ACEOF
29472 if ac_fn_c_try_link "$LINENO"; then :
29473   ac_cv_lib_xml2_xmlParseExternalEntity=yes
29474 else
29475   ac_cv_lib_xml2_xmlParseExternalEntity=no
29476 fi
29477 rm -f core conftest.err conftest.$ac_objext \
29478     conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29480 fi
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29482 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29483 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29484   passed=`expr $passed + 1`
29485 else
29486   failed=`expr $failed + 1`
29487 fi
29488
29489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29490 $as_echo_n "checking if XML package is complete... " >&6; }
29491     if test $passed -gt 0; then
29492         if test $failed -gt 0; then
29493             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29494 $as_echo "no -- some components failed test" >&6; }
29495             have_xml='no (failed tests)'
29496             LDFLAGS="$PERSIST_LDFLAGS"
29497             CPPFLAGS="$PERSIST_CPPFLAGS"
29498         else
29499             XML_LIBS='-lxml2'
29500             LIBS="$XML_LIBS $LIBS"
29501
29502 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29503
29504             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29505 $as_echo "yes" >&6; }
29506             have_xml='yes'
29507         fi
29508     else
29509         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510 $as_echo "no" >&6; }
29511     fi
29512 fi
29513  if test "$have_xml" = 'yes'; then
29514   XML_DELEGATE_TRUE=
29515   XML_DELEGATE_FALSE='#'
29516 else
29517   XML_DELEGATE_TRUE='#'
29518   XML_DELEGATE_FALSE=
29519 fi
29520
29521
29522
29523
29524 # Substitute compiler name to build/link PerlMagick
29525 #
29526
29527
29528 #
29529 # Configure install Paths
29530 #
29531
29532 # Subdirectory under lib to place ImageMagick lib files
29533 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29534
29535 cat >>confdefs.h <<_ACEOF
29536 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29537 _ACEOF
29538
29539
29540 # Path to ImageMagick bin directory
29541 EXECUTABLE_PATH="${BIN_DIR}"
29542 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29543 case "${build_os}" in
29544   mingw* )
29545     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29546     ;;
29547 esac
29548
29549 cat >>confdefs.h <<_ACEOF
29550 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29551 _ACEOF
29552
29553
29554
29555 # Path to ImageMagick lib
29556 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29557 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29558 case "${build_os}" in
29559   mingw* )
29560     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29561     ;;
29562 esac
29563
29564 cat >>confdefs.h <<_ACEOF
29565 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29566 _ACEOF
29567
29568
29569
29570 # Subdirectory under lib to place ImageMagick configuration files
29571 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29572
29573 cat >>confdefs.h <<_ACEOF
29574 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29575 _ACEOF
29576
29577 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29578 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29579 case "${build_os}" in
29580   mingw* )
29581     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29582     ;;
29583 esac
29584
29585 cat >>confdefs.h <<_ACEOF
29586 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29587 _ACEOF
29588
29589
29590
29591 #
29592 # Subdirectory under lib to place ImageMagick coder module files
29593 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29594
29595 cat >>confdefs.h <<_ACEOF
29596 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29597 _ACEOF
29598
29599 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29600 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29601 case "${build_os}" in
29602   mingw* )
29603     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29604     ;;
29605 esac
29606
29607 cat >>confdefs.h <<_ACEOF
29608 #define CODER_PATH "$DEFINE_CODER_PATH"
29609 _ACEOF
29610
29611
29612
29613 #
29614 # Subdirectory under lib to place ImageMagick filter module files
29615 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29616
29617 cat >>confdefs.h <<_ACEOF
29618 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29619 _ACEOF
29620
29621 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29622 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29623 case "${build_os}" in
29624   mingw* )
29625     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29626     ;;
29627 esac
29628
29629 cat >>confdefs.h <<_ACEOF
29630 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29631 _ACEOF
29632
29633
29634
29635 #
29636 # Path to ImageMagick documentation files
29637 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29638 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29639 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29640 case "${build_os}" in
29641   mingw* )
29642     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29643     ;;
29644 esac
29645
29646 cat >>confdefs.h <<_ACEOF
29647 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29648 _ACEOF
29649
29650
29651
29652 #
29653 # Path to ImageMagick share files
29654 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29655 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29656 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29657 case "${build_os}" in
29658   mingw* )
29659     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29660     ;;
29661 esac
29662
29663 cat >>confdefs.h <<_ACEOF
29664 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29665 _ACEOF
29666
29667
29668
29669 # Subdirectory under share to place ImageMagick configuration files
29670 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29671
29672 cat >>confdefs.h <<_ACEOF
29673 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29674 _ACEOF
29675
29676 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29677 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29678 case "${build_os}" in
29679   mingw* )
29680     DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29681     ;;
29682 esac
29683
29684 cat >>confdefs.h <<_ACEOF
29685 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29686 _ACEOF
29687
29688
29689
29690 #
29691 # program_transform_name is formed for use in a Makefile, so create a
29692 # modified version for use in a shell script.
29693 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29694
29695 # Default delegate definitions
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29697 $as_echo "-------------------------------------------------------------" >&6; }
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29699 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29701 $as_echo "" >&6; }
29702 AutotraceDecodeDelegateDefault='autotrace'
29703 AVIDecodeDelegateDefault='mplayer'
29704 BlenderDecodeDelegateDefault='blender'
29705 BZIPDelegateDefault='bzip2'
29706 BrowseDelegateDefault='xdg-open'
29707 CGMDecodeDelegateDefault='ralcgm'
29708 CatDelegateDefault='cat'
29709 DNGDecodeDelegateDefault='ufraw-batch'
29710 GVCDecodeDelegateDefault='dot'
29711 DVIDecodeDelegateDefault='dvips'
29712 EchoDelegateDefault='echo'
29713 EditorDelegateDefault='xterm'
29714 FIGDecodeDelegateDefault='fig2dev'
29715 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29716 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29717 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29718 GnuplotDecodeDelegateDefault='gnuplot'
29719 HDRDecodeDelegateDefault='ra_pfm'
29720 HPGLDecodeDelegateDefault='hp2xx'
29721 HTMLDecodeDelegateDefault='html2ps'
29722 ILBMDecodeDelegateDefault='ilbmtoppm'
29723 ILBMEncodeDelegateDefault='ppmtoilbm'
29724 LPDelegateDefault='lp'
29725 LPRDelegateDefault='lpr'
29726 LZWDecodeDelegateDefault='uncompress'
29727 LZWEncodeDelegateDefault='compress'
29728 LaunchDelegateDefault='gimp'
29729 MANDelegateDefault='groff'
29730 MPEGDecodeDelegateDefault='ffmpeg'
29731 MPEGEncodeDelegateDefault='ffmpeg'
29732 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29733 MVDelegateDefault='mv'
29734 PCLDelegateDefault='pcl6'
29735 PGPDecodeDelegateDefault='pgpv'
29736 POVDelegateDefault='povray'
29737 if test "$native_win32_build" = 'yes'; then
29738     PSDelegateDefault='gswin32c'
29739 elif test "$gslib_framework" = 'yes'; then
29740     PSDelegateDefault='gsc'
29741 else
29742     PSDelegateDefault='gs'
29743 fi
29744 RLEEncodeDelegateDefault='rawtorle'
29745 RMDelegateDefault='rm'
29746 RSVGDecodeDelegateDefault='rsvg'
29747 SCANDecodeDelegateDefault='scanimage'
29748 TXTDelegateDefault='enscript'
29749 UniconvertorDelegateDefault='uniconvertor'
29750 WEBPDelegateDefault='webpconv'
29751 WMFDecodeDelegateDefault='wmf2eps'
29752 WWWDecodeDelegateDefault='curl'
29753 XPSDelegateDefault='gxps'
29754 ZipDelegateDefault='gzip'
29755
29756 # Search for delegates
29757 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29758 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29760 $as_echo_n "checking for $ac_word... " >&6; }
29761 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29762   $as_echo_n "(cached) " >&6
29763 else
29764   case $AutotraceDecodeDelegate in
29765   [\\/]* | ?:[\\/]*)
29766   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29767   ;;
29768   *)
29769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29770 for as_dir in $PATH
29771 do
29772   IFS=$as_save_IFS
29773   test -z "$as_dir" && as_dir=.
29774     for ac_exec_ext in '' $ac_executable_extensions; do
29775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29776     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29778     break 2
29779   fi
29780 done
29781   done
29782 IFS=$as_save_IFS
29783
29784   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29785   ;;
29786 esac
29787 fi
29788 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29789 if test -n "$AutotraceDecodeDelegate"; then
29790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29791 $as_echo "$AutotraceDecodeDelegate" >&6; }
29792 else
29793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29794 $as_echo "no" >&6; }
29795 fi
29796
29797
29798 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29799 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29801 $as_echo_n "checking for $ac_word... " >&6; }
29802 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29803   $as_echo_n "(cached) " >&6
29804 else
29805   case $AVIDecodeDelegate in
29806   [\\/]* | ?:[\\/]*)
29807   ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29808   ;;
29809   *)
29810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29811 for as_dir in $PATH
29812 do
29813   IFS=$as_save_IFS
29814   test -z "$as_dir" && as_dir=.
29815     for ac_exec_ext in '' $ac_executable_extensions; do
29816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29817     ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29819     break 2
29820   fi
29821 done
29822   done
29823 IFS=$as_save_IFS
29824
29825   test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29826   ;;
29827 esac
29828 fi
29829 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29830 if test -n "$AVIDecodeDelegate"; then
29831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29832 $as_echo "$AVIDecodeDelegate" >&6; }
29833 else
29834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29835 $as_echo "no" >&6; }
29836 fi
29837
29838
29839 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29840 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29842 $as_echo_n "checking for $ac_word... " >&6; }
29843 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29844   $as_echo_n "(cached) " >&6
29845 else
29846   case $BlenderDecodeDelegate in
29847   [\\/]* | ?:[\\/]*)
29848   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29849   ;;
29850   *)
29851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29852 for as_dir in $PATH
29853 do
29854   IFS=$as_save_IFS
29855   test -z "$as_dir" && as_dir=.
29856     for ac_exec_ext in '' $ac_executable_extensions; do
29857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29858     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29860     break 2
29861   fi
29862 done
29863   done
29864 IFS=$as_save_IFS
29865
29866   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29867   ;;
29868 esac
29869 fi
29870 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29871 if test -n "$BlenderDecodeDelegate"; then
29872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29873 $as_echo "$BlenderDecodeDelegate" >&6; }
29874 else
29875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29876 $as_echo "no" >&6; }
29877 fi
29878
29879
29880 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29881 set dummy "$BZIPDelegateDefault"; ac_word=$2
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29883 $as_echo_n "checking for $ac_word... " >&6; }
29884 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29885   $as_echo_n "(cached) " >&6
29886 else
29887   case $BZIPDelegate in
29888   [\\/]* | ?:[\\/]*)
29889   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29890   ;;
29891   *)
29892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29893 for as_dir in $PATH
29894 do
29895   IFS=$as_save_IFS
29896   test -z "$as_dir" && as_dir=.
29897     for ac_exec_ext in '' $ac_executable_extensions; do
29898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29899     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29901     break 2
29902   fi
29903 done
29904   done
29905 IFS=$as_save_IFS
29906
29907   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29908   ;;
29909 esac
29910 fi
29911 BZIPDelegate=$ac_cv_path_BZIPDelegate
29912 if test -n "$BZIPDelegate"; then
29913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29914 $as_echo "$BZIPDelegate" >&6; }
29915 else
29916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }
29918 fi
29919
29920
29921 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29922 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29924 $as_echo_n "checking for $ac_word... " >&6; }
29925 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29926   $as_echo_n "(cached) " >&6
29927 else
29928   case $BrowseDelegate in
29929   [\\/]* | ?:[\\/]*)
29930   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29931   ;;
29932   *)
29933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934 for as_dir in $PATH
29935 do
29936   IFS=$as_save_IFS
29937   test -z "$as_dir" && as_dir=.
29938     for ac_exec_ext in '' $ac_executable_extensions; do
29939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29940     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29942     break 2
29943   fi
29944 done
29945   done
29946 IFS=$as_save_IFS
29947
29948   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29949   ;;
29950 esac
29951 fi
29952 BrowseDelegate=$ac_cv_path_BrowseDelegate
29953 if test -n "$BrowseDelegate"; then
29954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29955 $as_echo "$BrowseDelegate" >&6; }
29956 else
29957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958 $as_echo "no" >&6; }
29959 fi
29960
29961
29962 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29963 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29965 $as_echo_n "checking for $ac_word... " >&6; }
29966 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29967   $as_echo_n "(cached) " >&6
29968 else
29969   case $CGMDecodeDelegate in
29970   [\\/]* | ?:[\\/]*)
29971   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29972   ;;
29973   *)
29974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29975 for as_dir in $PATH
29976 do
29977   IFS=$as_save_IFS
29978   test -z "$as_dir" && as_dir=.
29979     for ac_exec_ext in '' $ac_executable_extensions; do
29980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29981     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29983     break 2
29984   fi
29985 done
29986   done
29987 IFS=$as_save_IFS
29988
29989   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29990   ;;
29991 esac
29992 fi
29993 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29994 if test -n "$CGMDecodeDelegate"; then
29995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29996 $as_echo "$CGMDecodeDelegate" >&6; }
29997 else
29998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999 $as_echo "no" >&6; }
30000 fi
30001
30002
30003 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30004 set dummy "$CatDelegateDefault"; ac_word=$2
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30006 $as_echo_n "checking for $ac_word... " >&6; }
30007 if test "${ac_cv_path_CatDelegate+set}" = set; then :
30008   $as_echo_n "(cached) " >&6
30009 else
30010   case $CatDelegate in
30011   [\\/]* | ?:[\\/]*)
30012   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30013   ;;
30014   *)
30015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30016 for as_dir in $PATH
30017 do
30018   IFS=$as_save_IFS
30019   test -z "$as_dir" && as_dir=.
30020     for ac_exec_ext in '' $ac_executable_extensions; do
30021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30022     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
30023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30024     break 2
30025   fi
30026 done
30027   done
30028 IFS=$as_save_IFS
30029
30030   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30031   ;;
30032 esac
30033 fi
30034 CatDelegate=$ac_cv_path_CatDelegate
30035 if test -n "$CatDelegate"; then
30036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
30037 $as_echo "$CatDelegate" >&6; }
30038 else
30039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30040 $as_echo "no" >&6; }
30041 fi
30042
30043
30044 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30045 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30047 $as_echo_n "checking for $ac_word... " >&6; }
30048 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
30049   $as_echo_n "(cached) " >&6
30050 else
30051   case $DNGDecodeDelegate in
30052   [\\/]* | ?:[\\/]*)
30053   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30054   ;;
30055   *)
30056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057 for as_dir in $PATH
30058 do
30059   IFS=$as_save_IFS
30060   test -z "$as_dir" && as_dir=.
30061     for ac_exec_ext in '' $ac_executable_extensions; do
30062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30063     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30065     break 2
30066   fi
30067 done
30068   done
30069 IFS=$as_save_IFS
30070
30071   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30072   ;;
30073 esac
30074 fi
30075 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30076 if test -n "$DNGDecodeDelegate"; then
30077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30078 $as_echo "$DNGDecodeDelegate" >&6; }
30079 else
30080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30081 $as_echo "no" >&6; }
30082 fi
30083
30084
30085 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30086 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30088 $as_echo_n "checking for $ac_word... " >&6; }
30089 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
30090   $as_echo_n "(cached) " >&6
30091 else
30092   case $GVCDecodeDelegate in
30093   [\\/]* | ?:[\\/]*)
30094   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30095   ;;
30096   *)
30097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30098 for as_dir in $PATH
30099 do
30100   IFS=$as_save_IFS
30101   test -z "$as_dir" && as_dir=.
30102     for ac_exec_ext in '' $ac_executable_extensions; do
30103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30104     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30106     break 2
30107   fi
30108 done
30109   done
30110 IFS=$as_save_IFS
30111
30112   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30113   ;;
30114 esac
30115 fi
30116 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30117 if test -n "$GVCDecodeDelegate"; then
30118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30119 $as_echo "$GVCDecodeDelegate" >&6; }
30120 else
30121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122 $as_echo "no" >&6; }
30123 fi
30124
30125
30126 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30127 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30129 $as_echo_n "checking for $ac_word... " >&6; }
30130 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
30131   $as_echo_n "(cached) " >&6
30132 else
30133   case $DVIDecodeDelegate in
30134   [\\/]* | ?:[\\/]*)
30135   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30136   ;;
30137   *)
30138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139 for as_dir in $PATH
30140 do
30141   IFS=$as_save_IFS
30142   test -z "$as_dir" && as_dir=.
30143     for ac_exec_ext in '' $ac_executable_extensions; do
30144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30145     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30147     break 2
30148   fi
30149 done
30150   done
30151 IFS=$as_save_IFS
30152
30153   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30154   ;;
30155 esac
30156 fi
30157 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30158 if test -n "$DVIDecodeDelegate"; then
30159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30160 $as_echo "$DVIDecodeDelegate" >&6; }
30161 else
30162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163 $as_echo "no" >&6; }
30164 fi
30165
30166
30167 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30168 set dummy "$EchoDelegateDefault"; ac_word=$2
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30170 $as_echo_n "checking for $ac_word... " >&6; }
30171 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30172   $as_echo_n "(cached) " >&6
30173 else
30174   case $EchoDelegate in
30175   [\\/]* | ?:[\\/]*)
30176   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30177   ;;
30178   *)
30179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30180 for as_dir in $PATH
30181 do
30182   IFS=$as_save_IFS
30183   test -z "$as_dir" && as_dir=.
30184     for ac_exec_ext in '' $ac_executable_extensions; do
30185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30186     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30188     break 2
30189   fi
30190 done
30191   done
30192 IFS=$as_save_IFS
30193
30194   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30195   ;;
30196 esac
30197 fi
30198 EchoDelegate=$ac_cv_path_EchoDelegate
30199 if test -n "$EchoDelegate"; then
30200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30201 $as_echo "$EchoDelegate" >&6; }
30202 else
30203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30204 $as_echo "no" >&6; }
30205 fi
30206
30207
30208 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30209 set dummy "$EditorDelegateDefault"; ac_word=$2
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30211 $as_echo_n "checking for $ac_word... " >&6; }
30212 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30213   $as_echo_n "(cached) " >&6
30214 else
30215   case $EditorDelegate in
30216   [\\/]* | ?:[\\/]*)
30217   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30218   ;;
30219   *)
30220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30221 for as_dir in $PATH
30222 do
30223   IFS=$as_save_IFS
30224   test -z "$as_dir" && as_dir=.
30225     for ac_exec_ext in '' $ac_executable_extensions; do
30226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30227     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30229     break 2
30230   fi
30231 done
30232   done
30233 IFS=$as_save_IFS
30234
30235   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30236   ;;
30237 esac
30238 fi
30239 EditorDelegate=$ac_cv_path_EditorDelegate
30240 if test -n "$EditorDelegate"; then
30241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30242 $as_echo "$EditorDelegate" >&6; }
30243 else
30244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30245 $as_echo "no" >&6; }
30246 fi
30247
30248
30249 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30250 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30252 $as_echo_n "checking for $ac_word... " >&6; }
30253 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30254   $as_echo_n "(cached) " >&6
30255 else
30256   case $FIGDecodeDelegate in
30257   [\\/]* | ?:[\\/]*)
30258   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30259   ;;
30260   *)
30261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30262 for as_dir in $PATH
30263 do
30264   IFS=$as_save_IFS
30265   test -z "$as_dir" && as_dir=.
30266     for ac_exec_ext in '' $ac_executable_extensions; do
30267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30268     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30270     break 2
30271   fi
30272 done
30273   done
30274 IFS=$as_save_IFS
30275
30276   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30277   ;;
30278 esac
30279 fi
30280 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30281 if test -n "$FIGDecodeDelegate"; then
30282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30283 $as_echo "$FIGDecodeDelegate" >&6; }
30284 else
30285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30286 $as_echo "no" >&6; }
30287 fi
30288
30289
30290 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30291 set dummy "$ConvertDelegateDefault"; ac_word=$2
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30293 $as_echo_n "checking for $ac_word... " >&6; }
30294 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30295   $as_echo_n "(cached) " >&6
30296 else
30297   case $ConvertDelegate in
30298   [\\/]* | ?:[\\/]*)
30299   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30300   ;;
30301   *)
30302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30303 for as_dir in $PATH
30304 do
30305   IFS=$as_save_IFS
30306   test -z "$as_dir" && as_dir=.
30307     for ac_exec_ext in '' $ac_executable_extensions; do
30308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30309     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30311     break 2
30312   fi
30313 done
30314   done
30315 IFS=$as_save_IFS
30316
30317   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30318   ;;
30319 esac
30320 fi
30321 ConvertDelegate=$ac_cv_path_ConvertDelegate
30322 if test -n "$ConvertDelegate"; then
30323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30324 $as_echo "$ConvertDelegate" >&6; }
30325 else
30326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30327 $as_echo "no" >&6; }
30328 fi
30329
30330
30331 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30332 set dummy "$DisplayDelegateDefault"; ac_word=$2
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30334 $as_echo_n "checking for $ac_word... " >&6; }
30335 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30336   $as_echo_n "(cached) " >&6
30337 else
30338   case $DisplayDelegate in
30339   [\\/]* | ?:[\\/]*)
30340   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30341   ;;
30342   *)
30343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30344 for as_dir in $PATH
30345 do
30346   IFS=$as_save_IFS
30347   test -z "$as_dir" && as_dir=.
30348     for ac_exec_ext in '' $ac_executable_extensions; do
30349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30350     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30352     break 2
30353   fi
30354 done
30355   done
30356 IFS=$as_save_IFS
30357
30358   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30359   ;;
30360 esac
30361 fi
30362 DisplayDelegate=$ac_cv_path_DisplayDelegate
30363 if test -n "$DisplayDelegate"; then
30364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30365 $as_echo "$DisplayDelegate" >&6; }
30366 else
30367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368 $as_echo "no" >&6; }
30369 fi
30370
30371
30372 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30373 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30375 $as_echo_n "checking for $ac_word... " >&6; }
30376 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30377   $as_echo_n "(cached) " >&6
30378 else
30379   case $MogrifyDelegate in
30380   [\\/]* | ?:[\\/]*)
30381   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30382   ;;
30383   *)
30384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30385 for as_dir in $PATH
30386 do
30387   IFS=$as_save_IFS
30388   test -z "$as_dir" && as_dir=.
30389     for ac_exec_ext in '' $ac_executable_extensions; do
30390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30391     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30393     break 2
30394   fi
30395 done
30396   done
30397 IFS=$as_save_IFS
30398
30399   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30400   ;;
30401 esac
30402 fi
30403 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30404 if test -n "$MogrifyDelegate"; then
30405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30406 $as_echo "$MogrifyDelegate" >&6; }
30407 else
30408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30409 $as_echo "no" >&6; }
30410 fi
30411
30412
30413 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30414 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30416 $as_echo_n "checking for $ac_word... " >&6; }
30417 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30418   $as_echo_n "(cached) " >&6
30419 else
30420   case $GnuplotDecodeDelegate in
30421   [\\/]* | ?:[\\/]*)
30422   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30423   ;;
30424   *)
30425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30426 for as_dir in $PATH
30427 do
30428   IFS=$as_save_IFS
30429   test -z "$as_dir" && as_dir=.
30430     for ac_exec_ext in '' $ac_executable_extensions; do
30431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30432     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30434     break 2
30435   fi
30436 done
30437   done
30438 IFS=$as_save_IFS
30439
30440   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30441   ;;
30442 esac
30443 fi
30444 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30445 if test -n "$GnuplotDecodeDelegate"; then
30446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30447 $as_echo "$GnuplotDecodeDelegate" >&6; }
30448 else
30449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30450 $as_echo "no" >&6; }
30451 fi
30452
30453
30454 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30455 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30457 $as_echo_n "checking for $ac_word... " >&6; }
30458 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30459   $as_echo_n "(cached) " >&6
30460 else
30461   case $HDRDecodeDelegate in
30462   [\\/]* | ?:[\\/]*)
30463   ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30464   ;;
30465   *)
30466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30467 for as_dir in $PATH
30468 do
30469   IFS=$as_save_IFS
30470   test -z "$as_dir" && as_dir=.
30471     for ac_exec_ext in '' $ac_executable_extensions; do
30472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30473     ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30475     break 2
30476   fi
30477 done
30478   done
30479 IFS=$as_save_IFS
30480
30481   test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30482   ;;
30483 esac
30484 fi
30485 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30486 if test -n "$HDRDecodeDelegate"; then
30487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30488 $as_echo "$HDRDecodeDelegate" >&6; }
30489 else
30490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30491 $as_echo "no" >&6; }
30492 fi
30493
30494
30495 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30496 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30498 $as_echo_n "checking for $ac_word... " >&6; }
30499 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30500   $as_echo_n "(cached) " >&6
30501 else
30502   case $HPGLDecodeDelegate in
30503   [\\/]* | ?:[\\/]*)
30504   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30505   ;;
30506   *)
30507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30508 for as_dir in $PATH
30509 do
30510   IFS=$as_save_IFS
30511   test -z "$as_dir" && as_dir=.
30512     for ac_exec_ext in '' $ac_executable_extensions; do
30513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30514     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30516     break 2
30517   fi
30518 done
30519   done
30520 IFS=$as_save_IFS
30521
30522   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30523   ;;
30524 esac
30525 fi
30526 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30527 if test -n "$HPGLDecodeDelegate"; then
30528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30529 $as_echo "$HPGLDecodeDelegate" >&6; }
30530 else
30531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30532 $as_echo "no" >&6; }
30533 fi
30534
30535
30536 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30537 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30539 $as_echo_n "checking for $ac_word... " >&6; }
30540 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30541   $as_echo_n "(cached) " >&6
30542 else
30543   case $HTMLDecodeDelegate in
30544   [\\/]* | ?:[\\/]*)
30545   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30546   ;;
30547   *)
30548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549 for as_dir in $PATH
30550 do
30551   IFS=$as_save_IFS
30552   test -z "$as_dir" && as_dir=.
30553     for ac_exec_ext in '' $ac_executable_extensions; do
30554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30555     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30557     break 2
30558   fi
30559 done
30560   done
30561 IFS=$as_save_IFS
30562
30563   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30564   ;;
30565 esac
30566 fi
30567 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30568 if test -n "$HTMLDecodeDelegate"; then
30569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30570 $as_echo "$HTMLDecodeDelegate" >&6; }
30571 else
30572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30573 $as_echo "no" >&6; }
30574 fi
30575
30576
30577 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30578 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30580 $as_echo_n "checking for $ac_word... " >&6; }
30581 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30582   $as_echo_n "(cached) " >&6
30583 else
30584   case $ILBMDecodeDelegate in
30585   [\\/]* | ?:[\\/]*)
30586   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30587   ;;
30588   *)
30589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30590 for as_dir in $PATH
30591 do
30592   IFS=$as_save_IFS
30593   test -z "$as_dir" && as_dir=.
30594     for ac_exec_ext in '' $ac_executable_extensions; do
30595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30596     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30598     break 2
30599   fi
30600 done
30601   done
30602 IFS=$as_save_IFS
30603
30604   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30605   ;;
30606 esac
30607 fi
30608 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30609 if test -n "$ILBMDecodeDelegate"; then
30610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30611 $as_echo "$ILBMDecodeDelegate" >&6; }
30612 else
30613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30614 $as_echo "no" >&6; }
30615 fi
30616
30617
30618 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30619 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30621 $as_echo_n "checking for $ac_word... " >&6; }
30622 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30623   $as_echo_n "(cached) " >&6
30624 else
30625   case $ILBMEncodeDelegate in
30626   [\\/]* | ?:[\\/]*)
30627   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30628   ;;
30629   *)
30630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30631 for as_dir in $PATH
30632 do
30633   IFS=$as_save_IFS
30634   test -z "$as_dir" && as_dir=.
30635     for ac_exec_ext in '' $ac_executable_extensions; do
30636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30637     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30639     break 2
30640   fi
30641 done
30642   done
30643 IFS=$as_save_IFS
30644
30645   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30646   ;;
30647 esac
30648 fi
30649 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30650 if test -n "$ILBMEncodeDelegate"; then
30651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30652 $as_echo "$ILBMEncodeDelegate" >&6; }
30653 else
30654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30655 $as_echo "no" >&6; }
30656 fi
30657
30658
30659 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30660 set dummy "$LPDelegateDefault"; ac_word=$2
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30662 $as_echo_n "checking for $ac_word... " >&6; }
30663 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30664   $as_echo_n "(cached) " >&6
30665 else
30666   case $LPDelegate in
30667   [\\/]* | ?:[\\/]*)
30668   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30669   ;;
30670   *)
30671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30672 for as_dir in $PATH
30673 do
30674   IFS=$as_save_IFS
30675   test -z "$as_dir" && as_dir=.
30676     for ac_exec_ext in '' $ac_executable_extensions; do
30677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30678     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30680     break 2
30681   fi
30682 done
30683   done
30684 IFS=$as_save_IFS
30685
30686   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30687   ;;
30688 esac
30689 fi
30690 LPDelegate=$ac_cv_path_LPDelegate
30691 if test -n "$LPDelegate"; then
30692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30693 $as_echo "$LPDelegate" >&6; }
30694 else
30695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30696 $as_echo "no" >&6; }
30697 fi
30698
30699
30700 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30701 set dummy "$LPRDelegateDefault"; ac_word=$2
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30703 $as_echo_n "checking for $ac_word... " >&6; }
30704 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30705   $as_echo_n "(cached) " >&6
30706 else
30707   case $LPRDelegate in
30708   [\\/]* | ?:[\\/]*)
30709   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30710   ;;
30711   *)
30712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30713 for as_dir in $PATH
30714 do
30715   IFS=$as_save_IFS
30716   test -z "$as_dir" && as_dir=.
30717     for ac_exec_ext in '' $ac_executable_extensions; do
30718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30719     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30721     break 2
30722   fi
30723 done
30724   done
30725 IFS=$as_save_IFS
30726
30727   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30728   ;;
30729 esac
30730 fi
30731 LPRDelegate=$ac_cv_path_LPRDelegate
30732 if test -n "$LPRDelegate"; then
30733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30734 $as_echo "$LPRDelegate" >&6; }
30735 else
30736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30737 $as_echo "no" >&6; }
30738 fi
30739
30740
30741 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30742 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30744 $as_echo_n "checking for $ac_word... " >&6; }
30745 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30746   $as_echo_n "(cached) " >&6
30747 else
30748   case $LZWDecodeDelegate in
30749   [\\/]* | ?:[\\/]*)
30750   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30751   ;;
30752   *)
30753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30754 for as_dir in $PATH
30755 do
30756   IFS=$as_save_IFS
30757   test -z "$as_dir" && as_dir=.
30758     for ac_exec_ext in '' $ac_executable_extensions; do
30759   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30760     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30762     break 2
30763   fi
30764 done
30765   done
30766 IFS=$as_save_IFS
30767
30768   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30769   ;;
30770 esac
30771 fi
30772 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30773 if test -n "$LZWDecodeDelegate"; then
30774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30775 $as_echo "$LZWDecodeDelegate" >&6; }
30776 else
30777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30779 fi
30780
30781
30782 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30783 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30785 $as_echo_n "checking for $ac_word... " >&6; }
30786 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30787   $as_echo_n "(cached) " >&6
30788 else
30789   case $LZWEncodeDelegate in
30790   [\\/]* | ?:[\\/]*)
30791   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30792   ;;
30793   *)
30794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30795 for as_dir in $PATH
30796 do
30797   IFS=$as_save_IFS
30798   test -z "$as_dir" && as_dir=.
30799     for ac_exec_ext in '' $ac_executable_extensions; do
30800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30801     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30803     break 2
30804   fi
30805 done
30806   done
30807 IFS=$as_save_IFS
30808
30809   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30810   ;;
30811 esac
30812 fi
30813 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30814 if test -n "$LZWEncodeDelegate"; then
30815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30816 $as_echo "$LZWEncodeDelegate" >&6; }
30817 else
30818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819 $as_echo "no" >&6; }
30820 fi
30821
30822
30823 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30824 set dummy "$LaunchDelegateDefault"; ac_word=$2
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30826 $as_echo_n "checking for $ac_word... " >&6; }
30827 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30828   $as_echo_n "(cached) " >&6
30829 else
30830   case $LaunchDelegate in
30831   [\\/]* | ?:[\\/]*)
30832   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30833   ;;
30834   *)
30835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836 for as_dir in $PATH
30837 do
30838   IFS=$as_save_IFS
30839   test -z "$as_dir" && as_dir=.
30840     for ac_exec_ext in '' $ac_executable_extensions; do
30841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30842     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30844     break 2
30845   fi
30846 done
30847   done
30848 IFS=$as_save_IFS
30849
30850   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30851   ;;
30852 esac
30853 fi
30854 LaunchDelegate=$ac_cv_path_LaunchDelegate
30855 if test -n "$LaunchDelegate"; then
30856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30857 $as_echo "$LaunchDelegate" >&6; }
30858 else
30859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30860 $as_echo "no" >&6; }
30861 fi
30862
30863
30864 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30865 set dummy "$MANDelegateDefault"; ac_word=$2
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30867 $as_echo_n "checking for $ac_word... " >&6; }
30868 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30869   $as_echo_n "(cached) " >&6
30870 else
30871   case $MANDelegate in
30872   [\\/]* | ?:[\\/]*)
30873   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30874   ;;
30875   *)
30876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30877 for as_dir in $PATH
30878 do
30879   IFS=$as_save_IFS
30880   test -z "$as_dir" && as_dir=.
30881     for ac_exec_ext in '' $ac_executable_extensions; do
30882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30883     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30885     break 2
30886   fi
30887 done
30888   done
30889 IFS=$as_save_IFS
30890
30891   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30892   ;;
30893 esac
30894 fi
30895 MANDelegate=$ac_cv_path_MANDelegate
30896 if test -n "$MANDelegate"; then
30897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30898 $as_echo "$MANDelegate" >&6; }
30899 else
30900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30901 $as_echo "no" >&6; }
30902 fi
30903
30904
30905 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30906 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30908 $as_echo_n "checking for $ac_word... " >&6; }
30909 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30910   $as_echo_n "(cached) " >&6
30911 else
30912   case $MPEGDecodeDelegate in
30913   [\\/]* | ?:[\\/]*)
30914   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30915   ;;
30916   *)
30917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30918 for as_dir in $PATH
30919 do
30920   IFS=$as_save_IFS
30921   test -z "$as_dir" && as_dir=.
30922     for ac_exec_ext in '' $ac_executable_extensions; do
30923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30924     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30926     break 2
30927   fi
30928 done
30929   done
30930 IFS=$as_save_IFS
30931
30932   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30933   ;;
30934 esac
30935 fi
30936 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30937 if test -n "$MPEGDecodeDelegate"; then
30938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30939 $as_echo "$MPEGDecodeDelegate" >&6; }
30940 else
30941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30942 $as_echo "no" >&6; }
30943 fi
30944
30945
30946 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30947 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30949 $as_echo_n "checking for $ac_word... " >&6; }
30950 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30951   $as_echo_n "(cached) " >&6
30952 else
30953   case $MPEGEncodeDelegate in
30954   [\\/]* | ?:[\\/]*)
30955   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30956   ;;
30957   *)
30958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30959 for as_dir in $PATH
30960 do
30961   IFS=$as_save_IFS
30962   test -z "$as_dir" && as_dir=.
30963     for ac_exec_ext in '' $ac_executable_extensions; do
30964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30965     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30967     break 2
30968   fi
30969 done
30970   done
30971 IFS=$as_save_IFS
30972
30973   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30974   ;;
30975 esac
30976 fi
30977 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30978 if test -n "$MPEGEncodeDelegate"; then
30979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30980 $as_echo "$MPEGEncodeDelegate" >&6; }
30981 else
30982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30983 $as_echo "no" >&6; }
30984 fi
30985
30986
30987 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30988 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30990 $as_echo_n "checking for $ac_word... " >&6; }
30991 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30992   $as_echo_n "(cached) " >&6
30993 else
30994   case $MrSIDDecodeDelegate in
30995   [\\/]* | ?:[\\/]*)
30996   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30997   ;;
30998   *)
30999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31000 for as_dir in $PATH
31001 do
31002   IFS=$as_save_IFS
31003   test -z "$as_dir" && as_dir=.
31004     for ac_exec_ext in '' $ac_executable_extensions; do
31005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31006     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31008     break 2
31009   fi
31010 done
31011   done
31012 IFS=$as_save_IFS
31013
31014   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31015   ;;
31016 esac
31017 fi
31018 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31019 if test -n "$MrSIDDecodeDelegate"; then
31020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31021 $as_echo "$MrSIDDecodeDelegate" >&6; }
31022 else
31023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024 $as_echo "no" >&6; }
31025 fi
31026
31027
31028 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31029 set dummy "$MVDelegateDefault"; ac_word=$2
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31031 $as_echo_n "checking for $ac_word... " >&6; }
31032 if test "${ac_cv_path_MVDelegate+set}" = set; then :
31033   $as_echo_n "(cached) " >&6
31034 else
31035   case $MVDelegate in
31036   [\\/]* | ?:[\\/]*)
31037   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31038   ;;
31039   *)
31040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31041 for as_dir in $PATH
31042 do
31043   IFS=$as_save_IFS
31044   test -z "$as_dir" && as_dir=.
31045     for ac_exec_ext in '' $ac_executable_extensions; do
31046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31047     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
31048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31049     break 2
31050   fi
31051 done
31052   done
31053 IFS=$as_save_IFS
31054
31055   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31056   ;;
31057 esac
31058 fi
31059 MVDelegate=$ac_cv_path_MVDelegate
31060 if test -n "$MVDelegate"; then
31061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
31062 $as_echo "$MVDelegate" >&6; }
31063 else
31064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31065 $as_echo "no" >&6; }
31066 fi
31067
31068
31069 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31070 set dummy "$PCLDelegateDefault"; ac_word=$2
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31072 $as_echo_n "checking for $ac_word... " >&6; }
31073 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
31074   $as_echo_n "(cached) " >&6
31075 else
31076   case $PCLDelegate in
31077   [\\/]* | ?:[\\/]*)
31078   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31079   ;;
31080   *)
31081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31082 for as_dir in $PATH
31083 do
31084   IFS=$as_save_IFS
31085   test -z "$as_dir" && as_dir=.
31086     for ac_exec_ext in '' $ac_executable_extensions; do
31087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31088     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31090     break 2
31091   fi
31092 done
31093   done
31094 IFS=$as_save_IFS
31095
31096   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31097   ;;
31098 esac
31099 fi
31100 PCLDelegate=$ac_cv_path_PCLDelegate
31101 if test -n "$PCLDelegate"; then
31102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31103 $as_echo "$PCLDelegate" >&6; }
31104 else
31105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31106 $as_echo "no" >&6; }
31107 fi
31108
31109
31110 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31111 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31113 $as_echo_n "checking for $ac_word... " >&6; }
31114 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
31115   $as_echo_n "(cached) " >&6
31116 else
31117   case $PGPDecodeDelegate in
31118   [\\/]* | ?:[\\/]*)
31119   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31120   ;;
31121   *)
31122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123 for as_dir in $PATH
31124 do
31125   IFS=$as_save_IFS
31126   test -z "$as_dir" && as_dir=.
31127     for ac_exec_ext in '' $ac_executable_extensions; do
31128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31129     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31131     break 2
31132   fi
31133 done
31134   done
31135 IFS=$as_save_IFS
31136
31137   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31138   ;;
31139 esac
31140 fi
31141 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31142 if test -n "$PGPDecodeDelegate"; then
31143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31144 $as_echo "$PGPDecodeDelegate" >&6; }
31145 else
31146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31147 $as_echo "no" >&6; }
31148 fi
31149
31150
31151 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31152 set dummy "$POVDelegateDefault"; ac_word=$2
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31154 $as_echo_n "checking for $ac_word... " >&6; }
31155 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31156   $as_echo_n "(cached) " >&6
31157 else
31158   case $POVDelegate in
31159   [\\/]* | ?:[\\/]*)
31160   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31161   ;;
31162   *)
31163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31164 for as_dir in $PATH
31165 do
31166   IFS=$as_save_IFS
31167   test -z "$as_dir" && as_dir=.
31168     for ac_exec_ext in '' $ac_executable_extensions; do
31169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31170     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31172     break 2
31173   fi
31174 done
31175   done
31176 IFS=$as_save_IFS
31177
31178   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31179   ;;
31180 esac
31181 fi
31182 POVDelegate=$ac_cv_path_POVDelegate
31183 if test -n "$POVDelegate"; then
31184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31185 $as_echo "$POVDelegate" >&6; }
31186 else
31187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31188 $as_echo "no" >&6; }
31189 fi
31190
31191
31192 for ac_prog in gsx gsc "$PSDelegateDefault"
31193 do
31194   # Extract the first word of "$ac_prog", so it can be a program name with args.
31195 set dummy $ac_prog; ac_word=$2
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31197 $as_echo_n "checking for $ac_word... " >&6; }
31198 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31199   $as_echo_n "(cached) " >&6
31200 else
31201   case $PSDelegate in
31202   [\\/]* | ?:[\\/]*)
31203   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31204   ;;
31205   *)
31206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31207 for as_dir in $PATH
31208 do
31209   IFS=$as_save_IFS
31210   test -z "$as_dir" && as_dir=.
31211     for ac_exec_ext in '' $ac_executable_extensions; do
31212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31213     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31215     break 2
31216   fi
31217 done
31218   done
31219 IFS=$as_save_IFS
31220
31221   ;;
31222 esac
31223 fi
31224 PSDelegate=$ac_cv_path_PSDelegate
31225 if test -n "$PSDelegate"; then
31226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31227 $as_echo "$PSDelegate" >&6; }
31228 else
31229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31230 $as_echo "no" >&6; }
31231 fi
31232
31233
31234   test -n "$PSDelegate" && break
31235 done
31236 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31237
31238 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31239 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31241 $as_echo_n "checking for $ac_word... " >&6; }
31242 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31243   $as_echo_n "(cached) " >&6
31244 else
31245   case $RLEEncodeDelegate in
31246   [\\/]* | ?:[\\/]*)
31247   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31248   ;;
31249   *)
31250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31251 for as_dir in $PATH
31252 do
31253   IFS=$as_save_IFS
31254   test -z "$as_dir" && as_dir=.
31255     for ac_exec_ext in '' $ac_executable_extensions; do
31256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31257     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31259     break 2
31260   fi
31261 done
31262   done
31263 IFS=$as_save_IFS
31264
31265   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31266   ;;
31267 esac
31268 fi
31269 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31270 if test -n "$RLEEncodeDelegate"; then
31271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31272 $as_echo "$RLEEncodeDelegate" >&6; }
31273 else
31274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31275 $as_echo "no" >&6; }
31276 fi
31277
31278
31279 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31280 set dummy "$RMDelegateDefault"; ac_word=$2
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31282 $as_echo_n "checking for $ac_word... " >&6; }
31283 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31284   $as_echo_n "(cached) " >&6
31285 else
31286   case $RMDelegate in
31287   [\\/]* | ?:[\\/]*)
31288   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31289   ;;
31290   *)
31291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31292 for as_dir in $PATH
31293 do
31294   IFS=$as_save_IFS
31295   test -z "$as_dir" && as_dir=.
31296     for ac_exec_ext in '' $ac_executable_extensions; do
31297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31298     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31300     break 2
31301   fi
31302 done
31303   done
31304 IFS=$as_save_IFS
31305
31306   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31307   ;;
31308 esac
31309 fi
31310 RMDelegate=$ac_cv_path_RMDelegate
31311 if test -n "$RMDelegate"; then
31312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31313 $as_echo "$RMDelegate" >&6; }
31314 else
31315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31316 $as_echo "no" >&6; }
31317 fi
31318
31319
31320 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31321 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31323 $as_echo_n "checking for $ac_word... " >&6; }
31324 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31325   $as_echo_n "(cached) " >&6
31326 else
31327   case $RSVGDecodeDelegate in
31328   [\\/]* | ?:[\\/]*)
31329   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31330   ;;
31331   *)
31332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31333 for as_dir in $PATH
31334 do
31335   IFS=$as_save_IFS
31336   test -z "$as_dir" && as_dir=.
31337     for ac_exec_ext in '' $ac_executable_extensions; do
31338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31339     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31341     break 2
31342   fi
31343 done
31344   done
31345 IFS=$as_save_IFS
31346
31347   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31348   ;;
31349 esac
31350 fi
31351 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31352 if test -n "$RSVGDecodeDelegate"; then
31353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31354 $as_echo "$RSVGDecodeDelegate" >&6; }
31355 else
31356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31357 $as_echo "no" >&6; }
31358 fi
31359
31360
31361 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31362 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31364 $as_echo_n "checking for $ac_word... " >&6; }
31365 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31366   $as_echo_n "(cached) " >&6
31367 else
31368   case $SCANDecodeDelegate in
31369   [\\/]* | ?:[\\/]*)
31370   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31371   ;;
31372   *)
31373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31374 for as_dir in $PATH
31375 do
31376   IFS=$as_save_IFS
31377   test -z "$as_dir" && as_dir=.
31378     for ac_exec_ext in '' $ac_executable_extensions; do
31379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31380     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31382     break 2
31383   fi
31384 done
31385   done
31386 IFS=$as_save_IFS
31387
31388   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31389   ;;
31390 esac
31391 fi
31392 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31393 if test -n "$SCANDecodeDelegate"; then
31394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31395 $as_echo "$SCANDecodeDelegate" >&6; }
31396 else
31397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31398 $as_echo "no" >&6; }
31399 fi
31400
31401
31402 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31403 set dummy "$TXTDelegateDefault"; ac_word=$2
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31405 $as_echo_n "checking for $ac_word... " >&6; }
31406 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31407   $as_echo_n "(cached) " >&6
31408 else
31409   case $TXTDelegate in
31410   [\\/]* | ?:[\\/]*)
31411   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31412   ;;
31413   *)
31414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31416 do
31417   IFS=$as_save_IFS
31418   test -z "$as_dir" && as_dir=.
31419     for ac_exec_ext in '' $ac_executable_extensions; do
31420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31421     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31423     break 2
31424   fi
31425 done
31426   done
31427 IFS=$as_save_IFS
31428
31429   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31430   ;;
31431 esac
31432 fi
31433 TXTDelegate=$ac_cv_path_TXTDelegate
31434 if test -n "$TXTDelegate"; then
31435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31436 $as_echo "$TXTDelegate" >&6; }
31437 else
31438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31439 $as_echo "no" >&6; }
31440 fi
31441
31442
31443 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31444 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31446 $as_echo_n "checking for $ac_word... " >&6; }
31447 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31448   $as_echo_n "(cached) " >&6
31449 else
31450   case $UniconvertorDelegate in
31451   [\\/]* | ?:[\\/]*)
31452   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31453   ;;
31454   *)
31455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31456 for as_dir in $PATH
31457 do
31458   IFS=$as_save_IFS
31459   test -z "$as_dir" && as_dir=.
31460     for ac_exec_ext in '' $ac_executable_extensions; do
31461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31462     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31464     break 2
31465   fi
31466 done
31467   done
31468 IFS=$as_save_IFS
31469
31470   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31471   ;;
31472 esac
31473 fi
31474 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31475 if test -n "$UniconvertorDelegate"; then
31476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31477 $as_echo "$UniconvertorDelegate" >&6; }
31478 else
31479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31480 $as_echo "no" >&6; }
31481 fi
31482
31483
31484 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31485 set dummy "$WEBPDelegateDefault"; ac_word=$2
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31487 $as_echo_n "checking for $ac_word... " >&6; }
31488 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31489   $as_echo_n "(cached) " >&6
31490 else
31491   case $WEBPDelegate in
31492   [\\/]* | ?:[\\/]*)
31493   ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31494   ;;
31495   *)
31496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31497 for as_dir in $PATH
31498 do
31499   IFS=$as_save_IFS
31500   test -z "$as_dir" && as_dir=.
31501     for ac_exec_ext in '' $ac_executable_extensions; do
31502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31503     ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31505     break 2
31506   fi
31507 done
31508   done
31509 IFS=$as_save_IFS
31510
31511   test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31512   ;;
31513 esac
31514 fi
31515 WEBPDelegate=$ac_cv_path_WEBPDelegate
31516 if test -n "$WEBPDelegate"; then
31517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31518 $as_echo "$WEBPDelegate" >&6; }
31519 else
31520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31521 $as_echo "no" >&6; }
31522 fi
31523
31524
31525 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31526 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31528 $as_echo_n "checking for $ac_word... " >&6; }
31529 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31530   $as_echo_n "(cached) " >&6
31531 else
31532   case $WMFDecodeDelegate in
31533   [\\/]* | ?:[\\/]*)
31534   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31535   ;;
31536   *)
31537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31538 for as_dir in $PATH
31539 do
31540   IFS=$as_save_IFS
31541   test -z "$as_dir" && as_dir=.
31542     for ac_exec_ext in '' $ac_executable_extensions; do
31543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31544     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31546     break 2
31547   fi
31548 done
31549   done
31550 IFS=$as_save_IFS
31551
31552   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31553   ;;
31554 esac
31555 fi
31556 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31557 if test -n "$WMFDecodeDelegate"; then
31558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31559 $as_echo "$WMFDecodeDelegate" >&6; }
31560 else
31561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31562 $as_echo "no" >&6; }
31563 fi
31564
31565
31566 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31567 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31569 $as_echo_n "checking for $ac_word... " >&6; }
31570 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31571   $as_echo_n "(cached) " >&6
31572 else
31573   case $WWWDecodeDelegate in
31574   [\\/]* | ?:[\\/]*)
31575   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31576   ;;
31577   *)
31578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31579 for as_dir in $PATH
31580 do
31581   IFS=$as_save_IFS
31582   test -z "$as_dir" && as_dir=.
31583     for ac_exec_ext in '' $ac_executable_extensions; do
31584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31585     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31587     break 2
31588   fi
31589 done
31590   done
31591 IFS=$as_save_IFS
31592
31593   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31594   ;;
31595 esac
31596 fi
31597 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31598 if test -n "$WWWDecodeDelegate"; then
31599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31600 $as_echo "$WWWDecodeDelegate" >&6; }
31601 else
31602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31603 $as_echo "no" >&6; }
31604 fi
31605
31606
31607 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31608 set dummy "$XPSDelegateDefault"; ac_word=$2
31609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31610 $as_echo_n "checking for $ac_word... " >&6; }
31611 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31612   $as_echo_n "(cached) " >&6
31613 else
31614   case $XPSDelegate in
31615   [\\/]* | ?:[\\/]*)
31616   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31617   ;;
31618   *)
31619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31620 for as_dir in $PATH
31621 do
31622   IFS=$as_save_IFS
31623   test -z "$as_dir" && as_dir=.
31624     for ac_exec_ext in '' $ac_executable_extensions; do
31625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31626     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31628     break 2
31629   fi
31630 done
31631   done
31632 IFS=$as_save_IFS
31633
31634   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31635   ;;
31636 esac
31637 fi
31638 XPSDelegate=$ac_cv_path_XPSDelegate
31639 if test -n "$XPSDelegate"; then
31640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31641 $as_echo "$XPSDelegate" >&6; }
31642 else
31643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31644 $as_echo "no" >&6; }
31645 fi
31646
31647
31648 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31649 set dummy "$ZipDelegateDefault"; ac_word=$2
31650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31651 $as_echo_n "checking for $ac_word... " >&6; }
31652 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31653   $as_echo_n "(cached) " >&6
31654 else
31655   case $ZipDelegate in
31656   [\\/]* | ?:[\\/]*)
31657   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31658   ;;
31659   *)
31660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31661 for as_dir in $PATH
31662 do
31663   IFS=$as_save_IFS
31664   test -z "$as_dir" && as_dir=.
31665     for ac_exec_ext in '' $ac_executable_extensions; do
31666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31667     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31669     break 2
31670   fi
31671 done
31672   done
31673 IFS=$as_save_IFS
31674
31675   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31676   ;;
31677 esac
31678 fi
31679 ZipDelegate=$ac_cv_path_ZipDelegate
31680 if test -n "$ZipDelegate"; then
31681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31682 $as_echo "$ZipDelegate" >&6; }
31683 else
31684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31685 $as_echo "no" >&6; }
31686 fi
31687
31688
31689
31690 # Prefer lpr to lp; lp needs options tacked on.
31691 if test "$LPRDelegate" != no; then
31692     PrintDelegate="$LPRDelegate"
31693 else
31694     PrintDelegate="$LPDelegate -c -s"
31695 fi
31696
31697
31698 # Installed ImageMagick utiltity paths
31699 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31700 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31701 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31702
31703 # Set delegate booleans
31704 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31705 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31706 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31707 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31708 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31709 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31710 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31711 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31712 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31713 have_ra_pfm='no'     ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31714 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31715 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31716
31717 #
31718 # Test for font directories
31719 #
31720 type_include_files=''
31721
31722 # Dejavu fonts.
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31724 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31725 dejavu_font_dir=''
31726 if test "${with_dejavu_font_dir}" != 'default'; then
31727   dejavu_font_dir="${with_dejavu_font_dir}/"
31728 else
31729   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31730     if test -f "${font_dir}DejaVuSerif.ttf"; then
31731       dejavu_font_dir="${font_dir}"
31732       break 1
31733     fi
31734   done
31735 fi
31736 if test "${dejavu_font_dir}x" != 'x'; then
31737   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31739 $as_echo "$dejavu_font_dir" >&6; }
31740 else
31741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31742 $as_echo "not found!" >&6; };
31743 fi
31744
31745
31746 # Windows
31747 windows_font_dir=''
31748 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31749    windows_font_dir="${with_windows_font_dir}/"
31750 fi
31751 if test "${windows_font_dir}x" != 'x'; then
31752     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31753       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31754     fi
31755     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31756       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31757     fi
31758     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31759       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31760     fi
31761 fi
31762 if test "${windows_font_dir}x" != 'x'; then
31763   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31764 fi
31765
31766
31767 # Ghostscript
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31769 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31770 ghostscript_font_dir=''
31771 if test "${with_gs_font_dir}" != 'default'; then
31772   ghostscript_font_dir="${with_gs_font_dir}/"
31773 else
31774   if test "${native_win32_build}" = 'yes'; then
31775     # Native Windows Build
31776     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31777       if test -f "${font_dir}a010013l.pfb"; then
31778         ghostscript_font_dir="$font_dir"
31779         break 1
31780       fi
31781     done
31782     if test "${PSDelegate}" != 'gswin32c'; then
31783       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31784     fi
31785   else
31786     # Linux / Mac OS X / Unix Build
31787     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
31788       if test -f "${font_dir}a010013l.pfb"; then
31789         ghostscript_font_dir="${font_dir}"
31790         break 1
31791       fi
31792     done
31793     if test "${ghostscript_font_dir}x" = 'x'; then
31794       if test "$PSDelegate" != 'gs'; then
31795         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31796       fi
31797     fi
31798   fi
31799 fi
31800 if test "${ghostscript_font_dir}x" != 'x'; then
31801   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31803 $as_echo "$ghostscript_font_dir" >&6; }
31804 else
31805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31806 $as_echo "not found!" >&6; };
31807 fi
31808
31809 case "${build_os}" in
31810   mingw* )
31811     PSDelegate=`$WinPathScript "$PSDelegate" 1`
31812     ;;
31813 esac
31814
31815
31816
31817 #
31818 # Handle case where user doesn't want frozen paths
31819 #
31820 if test "$with_frozenpaths" != 'yes'; then
31821   # Re-set delegate definitions to default (no paths)
31822   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31823   AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31824   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31825   BZIPDelegate="$BZIPDelegateDefault"
31826   BrowseDelegate="$BrowseDelegateDefault"
31827   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31828   CatDelegate="$CatDelegateDefault"
31829   ConvertDelegate="$ConvertDelegateDefault"
31830   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31831   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31832   EchoDelegate="$EchoDelegateDefault"
31833   EditorDelegate="$EditorDelegateDefault"
31834   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31835   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31836   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31837   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31838   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31839   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31840   LPDelegate="$LPDelegateDefault"
31841   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31842   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31843   LaunchDelegate="$LaunchDelegateDefault"
31844   MANDelegate="$MANDelegateDefault"
31845   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31846   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31847   MogrifyDelegate="$MogrifyDelegateDefault"
31848   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31849   MVDelegate="$MVDelegateDefault"
31850   PCLDelegate="$PCLDelegateDefault"
31851   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31852   POVDelegate="$POVDelegateDefault"
31853   PSDelegate="$PSDelegateDefault"
31854   HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31855   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31856   RMDelegate="$RMDelegateDefault"
31857   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31858   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31859   ShowImageDelegate="$ShowImageDelegateDefault"
31860   TXTDelegate="$TXTDelegateDefault"
31861   UniconvertorDelegate="$UniconvertorDelegateDefault"
31862   WEBPDelegate="$WEBPDelegateDefault"
31863   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31864   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31865   XPSDelegate="$XPSDelegateDefault"
31866   ZipDelegate="$ZipDelegateDefault"
31867 fi
31868
31869 # Delegate substitutions
31870
31871
31872
31873
31874
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901
31902
31903
31904
31905
31906
31907
31908
31909
31910
31911
31912
31913
31914
31915 #
31916 # RPM support.
31917 #
31918 RPM=''
31919 for ac_prog in gnutar gtar tar
31920 do
31921   # Extract the first word of "$ac_prog", so it can be a program name with args.
31922 set dummy $ac_prog; ac_word=$2
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31924 $as_echo_n "checking for $ac_word... " >&6; }
31925 if test "${ac_cv_prog_TAR+set}" = set; then :
31926   $as_echo_n "(cached) " >&6
31927 else
31928   if test -n "$TAR"; then
31929   ac_cv_prog_TAR="$TAR" # Let the user override the test.
31930 else
31931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31932 for as_dir in $PATH
31933 do
31934   IFS=$as_save_IFS
31935   test -z "$as_dir" && as_dir=.
31936     for ac_exec_ext in '' $ac_executable_extensions; do
31937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31938     ac_cv_prog_TAR="$ac_prog"
31939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31940     break 2
31941   fi
31942 done
31943   done
31944 IFS=$as_save_IFS
31945
31946 fi
31947 fi
31948 TAR=$ac_cv_prog_TAR
31949 if test -n "$TAR"; then
31950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31951 $as_echo "$TAR" >&6; }
31952 else
31953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31954 $as_echo "no" >&6; }
31955 fi
31956
31957
31958   test -n "$TAR" && break
31959 done
31960
31961 for ac_prog in perl
31962 do
31963   # Extract the first word of "$ac_prog", so it can be a program name with args.
31964 set dummy $ac_prog; ac_word=$2
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31966 $as_echo_n "checking for $ac_word... " >&6; }
31967 if test "${ac_cv_prog_PERL+set}" = set; then :
31968   $as_echo_n "(cached) " >&6
31969 else
31970   if test -n "$PERL"; then
31971   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31972 else
31973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31974 for as_dir in $PATH
31975 do
31976   IFS=$as_save_IFS
31977   test -z "$as_dir" && as_dir=.
31978     for ac_exec_ext in '' $ac_executable_extensions; do
31979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31980     ac_cv_prog_PERL="$ac_prog"
31981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31982     break 2
31983   fi
31984 done
31985   done
31986 IFS=$as_save_IFS
31987
31988 fi
31989 fi
31990 PERL=$ac_cv_prog_PERL
31991 if test -n "$PERL"; then
31992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31993 $as_echo "$PERL" >&6; }
31994 else
31995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }
31997 fi
31998
31999
32000   test -n "$PERL" && break
32001 done
32002
32003 for ac_prog in rpmbuild rpm
32004 do
32005   # Extract the first word of "$ac_prog", so it can be a program name with args.
32006 set dummy $ac_prog; ac_word=$2
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32008 $as_echo_n "checking for $ac_word... " >&6; }
32009 if test "${ac_cv_prog_RPM+set}" = set; then :
32010   $as_echo_n "(cached) " >&6
32011 else
32012   if test -n "$RPM"; then
32013   ac_cv_prog_RPM="$RPM" # Let the user override the test.
32014 else
32015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32016 for as_dir in $PATH
32017 do
32018   IFS=$as_save_IFS
32019   test -z "$as_dir" && as_dir=.
32020     for ac_exec_ext in '' $ac_executable_extensions; do
32021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32022     ac_cv_prog_RPM="$ac_prog"
32023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32024     break 2
32025   fi
32026 done
32027   done
32028 IFS=$as_save_IFS
32029
32030 fi
32031 fi
32032 RPM=$ac_cv_prog_RPM
32033 if test -n "$RPM"; then
32034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
32035 $as_echo "$RPM" >&6; }
32036 else
32037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32039 fi
32040
32041
32042   test -n "$RPM" && break
32043 done
32044
32045
32046 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32047
32048
32049 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32050
32051
32052 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32053
32054
32055 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32056
32057
32058  if test "x$RPM" != "x" ; then
32059   RPM_DELEGATE_TRUE=
32060   RPM_DELEGATE_FALSE='#'
32061 else
32062   RPM_DELEGATE_TRUE='#'
32063   RPM_DELEGATE_FALSE=
32064 fi
32065
32066
32067 #
32068 # 7ZIP support (http://p7zip.sourceforge.net/)
32069 #
32070 P7ZIP=''
32071 for ac_prog in 7za
32072 do
32073   # Extract the first word of "$ac_prog", so it can be a program name with args.
32074 set dummy $ac_prog; ac_word=$2
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32076 $as_echo_n "checking for $ac_word... " >&6; }
32077 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
32078   $as_echo_n "(cached) " >&6
32079 else
32080   if test -n "$P7ZIP"; then
32081   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32082 else
32083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32084 for as_dir in $PATH
32085 do
32086   IFS=$as_save_IFS
32087   test -z "$as_dir" && as_dir=.
32088     for ac_exec_ext in '' $ac_executable_extensions; do
32089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32090     ac_cv_prog_P7ZIP="$ac_prog"
32091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32092     break 2
32093   fi
32094 done
32095   done
32096 IFS=$as_save_IFS
32097
32098 fi
32099 fi
32100 P7ZIP=$ac_cv_prog_P7ZIP
32101 if test -n "$P7ZIP"; then
32102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
32103 $as_echo "$P7ZIP" >&6; }
32104 else
32105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32106 $as_echo "no" >&6; }
32107 fi
32108
32109
32110   test -n "$P7ZIP" && break
32111 done
32112
32113
32114  if test "x$P7ZIP" != "x" ; then
32115   P7ZIP_DELEGATE_TRUE=
32116   P7ZIP_DELEGATE_FALSE='#'
32117 else
32118   P7ZIP_DELEGATE_TRUE='#'
32119   P7ZIP_DELEGATE_FALSE=
32120 fi
32121
32122
32123 #
32124 # ZIP support (http://www.info-zip.org/Zip.html)
32125 #
32126 ZIP=''
32127 for ac_prog in zip
32128 do
32129   # Extract the first word of "$ac_prog", so it can be a program name with args.
32130 set dummy $ac_prog; ac_word=$2
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32132 $as_echo_n "checking for $ac_word... " >&6; }
32133 if test "${ac_cv_prog_ZIP+set}" = set; then :
32134   $as_echo_n "(cached) " >&6
32135 else
32136   if test -n "$ZIP"; then
32137   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32138 else
32139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140 for as_dir in $PATH
32141 do
32142   IFS=$as_save_IFS
32143   test -z "$as_dir" && as_dir=.
32144     for ac_exec_ext in '' $ac_executable_extensions; do
32145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146     ac_cv_prog_ZIP="$ac_prog"
32147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32148     break 2
32149   fi
32150 done
32151   done
32152 IFS=$as_save_IFS
32153
32154 fi
32155 fi
32156 ZIP=$ac_cv_prog_ZIP
32157 if test -n "$ZIP"; then
32158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32159 $as_echo "$ZIP" >&6; }
32160 else
32161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32162 $as_echo "no" >&6; }
32163 fi
32164
32165
32166   test -n "$ZIP" && break
32167 done
32168
32169
32170  if test "x$ZIP" != "x" ; then
32171   ZIP_DELEGATE_TRUE=
32172   ZIP_DELEGATE_FALSE='#'
32173 else
32174   ZIP_DELEGATE_TRUE='#'
32175   ZIP_DELEGATE_FALSE=
32176 fi
32177
32178
32179 #
32180 # GhostPCL related configuration.
32181 #
32182 PCLColorDevice=ppmraw
32183 PCLCMYKDevice=bmpsep8
32184 PCLMonoDevice=pbmraw
32185 if test -z "$PCLVersion"; then
32186     PCLVersion='unknown'
32187 fi
32188 if test $have_pcl = 'yes'; then
32189     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32190 $as_echo "-------------------------------------------------------------" >&6; }
32191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32192 $as_echo_n "checking for PCL... " >&6; }
32193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32194 $as_echo "" >&6; }
32195     # PCLColorDevice
32196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32197 $as_echo_n "checking for pcl color device... " >&6; }
32198     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32199         :
32200     else
32201         PCLColorDevice=ppmraw
32202     fi
32203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32204 $as_echo "$PCLColorDevice" >&6; }
32205
32206     # PCLCMYKDevice
32207     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32208 $as_echo_n "checking for pcl CMYK device... " >&6; }
32209     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32210         :
32211     else
32212         PCLCMYKDevice=$PCLColorDevice
32213     fi
32214     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32215 $as_echo "$PCLCMYKDevice" >&6; }
32216
32217     # PCLMonoDevice
32218     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32219 $as_echo_n "checking for pcl mono device... " >&6; }
32220     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32221         :
32222     else
32223         PCLMonoDevice=$PCLColorDevice
32224     fi
32225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32226 $as_echo "$PCLMonoDevice" >&6; }
32227 fi
32228
32229
32230
32231
32232
32233
32234 #
32235 # GhostXPS related configuration.
32236 #
32237 XPSColorDevice=ppmraw
32238 XPSCMYKDevice=bmpsep8
32239 XPSMonoDevice=pbmraw
32240 if test -z "$XPSVersion"; then
32241     XPSVersion='unknown'
32242 fi
32243 if test $have_xps = 'yes'; then
32244     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32245 $as_echo "-------------------------------------------------------------" >&6; }
32246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32247 $as_echo_n "checking for XPS... " >&6; }
32248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32249 $as_echo "" >&6; }
32250     # XPSColorDevice
32251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32252 $as_echo_n "checking for xps color device... " >&6; }
32253     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32254         :
32255     else
32256         XPSColorDevice=ppmraw
32257     fi
32258     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32259 $as_echo "$XPSColorDevice" >&6; }
32260
32261     # XPSCMYKDevice
32262     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32263 $as_echo_n "checking for xps CMYK device... " >&6; }
32264     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32265         :
32266     else
32267         XPSCMYKDevice=$XPSColorDevice
32268     fi
32269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32270 $as_echo "$XPSCMYKDevice" >&6; }
32271
32272     # XPSMonoDevice
32273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32274 $as_echo_n "checking for xps mono device... " >&6; }
32275     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32276         :
32277     else
32278         XPSMonoDevice=$XPSColorDevice
32279     fi
32280     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32281 $as_echo "$XPSMonoDevice" >&6; }
32282 fi
32283
32284
32285
32286
32287
32288
32289 #
32290 # Ghostscript related configuration.
32291 #
32292 if test "$have_png" = 'yes'; then
32293     GSAlphaDevice=pngalpha
32294 else
32295     GSAlphaDevice=pnmraw
32296 fi
32297 GSColorDevice=pnmraw
32298 GSCMYKDevice=pam
32299 GSMonoDevice=pbmraw
32300 GSPDFDevice=pdfwrite
32301 GSPSDevice=pswrite
32302 GSEPSDevice=epswrite
32303 GSVersion='unknown'
32304 if test $have_gs = 'yes'; then
32305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32306 $as_echo "-------------------------------------------------------------" >&6; }
32307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32308 $as_echo_n "checking for Ghostscript... " >&6; }
32309     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32310 $as_echo "" >&6; }
32311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32312 $as_echo_n "checking for Ghostscript version... " >&6; }
32313     if GSVersion=`$PSDelegate --version`; then
32314         :
32315     else
32316         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32317     fi
32318     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32319 $as_echo "$GSVersion" >&6; }
32320
32321     # GSAlphaDevice
32322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32323 $as_echo_n "checking for gs alpha device... " >&6; }
32324     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32325         :
32326     else
32327         GSAlphaDevice=pnmraw
32328     fi
32329     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32330 $as_echo "$GSAlphaDevice" >&6; }
32331
32332     # GSColorDevice
32333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32334 $as_echo_n "checking for gs color device... " >&6; }
32335     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32336         :
32337     else
32338         GSColorDevice=pnmraw
32339     fi
32340     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32341 $as_echo "$GSColorDevice" >&6; }
32342
32343     # GSCMYKDevice
32344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32345 $as_echo_n "checking for gs CMYK device... " >&6; }
32346     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32347         :
32348     else
32349         GSCMYKDevice=bmpsep8
32350     fi
32351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32352 $as_echo "$GSCMYKDevice" >&6; }
32353
32354     # GSMonoDevice
32355     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32356 $as_echo_n "checking for gs mono device... " >&6; }
32357     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32358         :
32359     else
32360         GSMonoDevice=$GSColorDevice
32361     fi
32362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32363 $as_echo "$GSMonoDevice" >&6; }
32364
32365     # GSPDFDevice
32366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32367 $as_echo_n "checking for gs PDF writing device... " >&6; }
32368     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32369         :
32370     else
32371         GSPDFDevice=nodevice
32372     fi
32373         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32374 $as_echo "$GSPDFDevice" >&6; }
32375
32376     # GSPSDevice
32377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32378 $as_echo_n "checking for gs PS writing device... " >&6; }
32379     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32380         :
32381     else
32382         GSPSDevice=nodevice
32383     fi
32384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32385 $as_echo "$GSPSDevice" >&6; }
32386
32387     # GSEPSDevice
32388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32389 $as_echo_n "checking for gs EPS writing device... " >&6; }
32390     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32391         :
32392     else
32393         GSEPSDevice=nodevice
32394     fi
32395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32396 $as_echo "$GSEPSDevice" >&6; }
32397 fi
32398
32399
32400
32401
32402
32403
32404
32405
32406
32407
32408 #
32409 # PerlMagick-related configuration
32410 #
32411
32412 # Look for PERL if PerlMagick requested
32413 # If name/path of desired PERL interpreter is specified, look for that one first
32414 have_perl='no'
32415 if test "$with_perl" != 'no'; then
32416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32417 $as_echo "-------------------------------------------------------------" >&6; }
32418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32419 $as_echo_n "checking for Perl... " >&6; }
32420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32421 $as_echo "" >&6; }
32422     if test "$with_perl" != 'yes'; then
32423         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32424 $as_echo_n "checking for perl... " >&6; }
32425 if test "${ac_cv_path_PERL+set}" = set; then :
32426   $as_echo_n "(cached) " >&6
32427 else
32428   ac_cv_path_PERL="$with_perl"
32429 fi
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32431 $as_echo "$ac_cv_path_PERL" >&6; };
32432         PERL=$ac_cv_path_PERL
32433                 have_perl="$ac_cv_path_PERL"
32434     else
32435         for ac_prog in perl perl5
32436 do
32437   # Extract the first word of "$ac_prog", so it can be a program name with args.
32438 set dummy $ac_prog; ac_word=$2
32439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32440 $as_echo_n "checking for $ac_word... " >&6; }
32441 if test "${ac_cv_path_PERL+set}" = set; then :
32442   $as_echo_n "(cached) " >&6
32443 else
32444   case $PERL in
32445   [\\/]* | ?:[\\/]*)
32446   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32447   ;;
32448   *)
32449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450 for as_dir in $PATH
32451 do
32452   IFS=$as_save_IFS
32453   test -z "$as_dir" && as_dir=.
32454     for ac_exec_ext in '' $ac_executable_extensions; do
32455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32456     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32458     break 2
32459   fi
32460 done
32461   done
32462 IFS=$as_save_IFS
32463
32464   ;;
32465 esac
32466 fi
32467 PERL=$ac_cv_path_PERL
32468 if test -n "$PERL"; then
32469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32470 $as_echo "$PERL" >&6; }
32471 else
32472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32473 $as_echo "no" >&6; }
32474 fi
32475
32476
32477   test -n "$PERL" && break
32478 done
32479         if test "$ac_cv_path_PERL"; then
32480             have_perl="$ac_cv_path_PERL"
32481         fi
32482     fi
32483 fi
32484
32485 if test "$with_perl" != 'yes' ; then
32486     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32487 fi
32488
32489 PERL_SUPPORTS_DESTDIR='no'
32490
32491 with_perl_static='no'
32492 with_perl_dynamic='no'
32493 if test "$have_perl" != 'no'; then
32494     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32495         with_perl_static='yes'
32496     fi
32497     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32498         with_perl_dynamic='yes'
32499     fi
32500     # Is PERL's MakeMaker new enough to support DESTDIR?
32501
32502
32503
32504
32505     if test -n "$PERL"; then :
32506
32507         ax_perl_version="5.8.1"
32508
32509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32510 $as_echo_n "checking for perl version... " >&6; }
32511
32512         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32513
32514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32515 $as_echo "$perl_version" >&6; }
32516
32517         PERL_VERSION=$perl_version
32518
32519
32520
32521
32522
32523   # Used to indicate true or false condition
32524   ax_compare_version=false
32525
32526   # Convert the two version strings to be compared into a format that
32527   # allows a simple string comparison.  The end result is that a version
32528   # string of the form 1.12.5-r617 will be converted to the form
32529   # 0001001200050617.  In other words, each number is zero padded to four
32530   # digits, and non digits are removed.
32531
32532   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32533                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32534                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32535                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32536                      -e 's/[^0-9]//g'`
32537
32538
32539   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32540                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32541                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32542                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32543                      -e 's/[^0-9]//g'`
32544
32545
32546     ax_compare_version=`echo "x$ax_compare_version_A
32547 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32548
32549
32550
32551     if test "$ax_compare_version" = "true" ; then
32552
32553             :
32554             PERL_SUPPORTS_DESTDIR='yes'
32555
32556     else
32557             :
32558             PERL_SUPPORTS_DESTDIR='no'
32559
32560   fi
32561
32562
32563 else
32564
32565         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32566 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32567         PERL_SUPPORTS_DESTDIR='no'
32568
32569 fi
32570
32571 fi
32572  if test "$have_perl" != 'no'; then
32573   WITH_PERL_TRUE=
32574   WITH_PERL_FALSE='#'
32575 else
32576   WITH_PERL_TRUE='#'
32577   WITH_PERL_FALSE=
32578 fi
32579
32580  if test $with_perl_static = 'yes'; then
32581   WITH_PERL_STATIC_TRUE=
32582   WITH_PERL_STATIC_FALSE='#'
32583 else
32584   WITH_PERL_STATIC_TRUE='#'
32585   WITH_PERL_STATIC_FALSE=
32586 fi
32587
32588  if test $with_perl_dynamic = 'yes'; then
32589   WITH_PERL_DYNAMIC_TRUE=
32590   WITH_PERL_DYNAMIC_FALSE='#'
32591 else
32592   WITH_PERL_DYNAMIC_TRUE='#'
32593   WITH_PERL_DYNAMIC_FALSE=
32594 fi
32595
32596
32597
32598 # Determine path to pick up MagickCore library from for use with building PerlMagick
32599 MAGICKCORE_PATH="${LIB_DIR}"
32600 if test $with_perl_static = 'yes'; then
32601     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32602     libtool_objdir=$objdir
32603
32604     # Linker search path to library, followed by -lMagickCore
32605     MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32606 fi
32607
32608
32609 # Create a simple string containing format names for all delegate libraries
32610 DELEGATES=''
32611 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32612 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32613 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32614 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32615 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32616 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32617 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32618 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32619 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32620 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32621 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32622 if test "$have_jpeg"       = 'yes'; then
32623   DELEGATES="$DELEGATES jpeg";
32624   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32625 fi
32626 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32627 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32628 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32629 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32630 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32631 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32632 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
32633 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32634 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32635 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32636 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32637 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32638 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32639
32640
32641
32642 #
32643 # Handle special compiler flags
32644 #
32645
32646 # Add '-p' if prof source profiling support enabled
32647 if test "$enable_prof" = 'yes'; then
32648     CFLAGS="-p $CFLAGS"
32649     CXXFLAGS="-p $CXXFLAGS"
32650     LDFLAGS="-p $LDFLAGS"
32651 fi
32652
32653 # Add '-pg' if gprof source profiling support enabled
32654 if test "$enable_gprof" = 'yes'; then
32655     CFLAGS="-pg $CFLAGS"
32656     CXXFLAGS="-pg $CXXFLAGS"
32657     LDFLAGS="-pg $LDFLAGS"
32658 fi
32659
32660 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32661 # This is a gcc-specific feature
32662 if test "$enable_gcov" = 'yes'; then
32663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32664 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32665 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32666   $as_echo_n "(cached) " >&6
32667 else
32668   ac_check_lib_save_LIBS=$LIBS
32669 LIBS="-lgcov  $LIBS"
32670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32671 /* end confdefs.h.  */
32672
32673 /* Override any GCC internal prototype to avoid an error.
32674    Use char because int might match the return type of a GCC
32675    builtin and then its argument prototype would still apply.  */
32676 #ifdef __cplusplus
32677 extern "C"
32678 #endif
32679 char _gcov_init ();
32680 int
32681 main ()
32682 {
32683 return _gcov_init ();
32684   ;
32685   return 0;
32686 }
32687 _ACEOF
32688 if ac_fn_c_try_link "$LINENO"; then :
32689   ac_cv_lib_gcov__gcov_init=yes
32690 else
32691   ac_cv_lib_gcov__gcov_init=no
32692 fi
32693 rm -f core conftest.err conftest.$ac_objext \
32694     conftest$ac_exeext conftest.$ac_ext
32695 LIBS=$ac_check_lib_save_LIBS
32696 fi
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32698 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32699 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32700   cat >>confdefs.h <<_ACEOF
32701 #define HAVE_LIBGCOV 1
32702 _ACEOF
32703
32704   LIBS="-lgcov $LIBS"
32705
32706 fi
32707
32708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32709 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32710 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32711   $as_echo_n "(cached) " >&6
32712 else
32713   ac_check_lib_save_LIBS=$LIBS
32714 LIBS="-lgcov  $LIBS"
32715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32716 /* end confdefs.h.  */
32717
32718 /* Override any GCC internal prototype to avoid an error.
32719    Use char because int might match the return type of a GCC
32720    builtin and then its argument prototype would still apply.  */
32721 #ifdef __cplusplus
32722 extern "C"
32723 #endif
32724 char __gcov_init ();
32725 int
32726 main ()
32727 {
32728 return __gcov_init ();
32729   ;
32730   return 0;
32731 }
32732 _ACEOF
32733 if ac_fn_c_try_link "$LINENO"; then :
32734   ac_cv_lib_gcov___gcov_init=yes
32735 else
32736   ac_cv_lib_gcov___gcov_init=no
32737 fi
32738 rm -f core conftest.err conftest.$ac_objext \
32739     conftest$ac_exeext conftest.$ac_ext
32740 LIBS=$ac_check_lib_save_LIBS
32741 fi
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32743 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32744 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32745   cat >>confdefs.h <<_ACEOF
32746 #define HAVE_LIBGCOV 1
32747 _ACEOF
32748
32749   LIBS="-lgcov $LIBS"
32750
32751 fi
32752
32753     case "$target_os" in
32754         darwin*)
32755             OSX_GCOV_LDFLAG="-Wl,-single_module"
32756         ;;
32757         *)
32758             OSX_GCOV_LDFLAG=""
32759         ;;
32760     esac
32761
32762     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
32763     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
32764     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32765 fi
32766
32767 #
32768 # Build library dependency list for libMagickCore
32769 #
32770
32771 MAGICK_LIBLTDL='' # Libltdl for build
32772 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
32773 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
32774 if test "$with_ltdl" != 'no'
32775 then
32776   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32777     MAGICK_API_LIBLTDL='-lltdl'
32778   fi
32779   MAGICK_LIBLTDL=${LIBLTDL}
32780   MAGICK_LTDLDEPS=${LTDLDEPS}
32781 fi
32782
32783
32784
32785 if test "$with_modules" != 'no'; then
32786     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"
32787 else
32788     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"
32789 fi
32790
32791
32792 #
32793 # Remove extraneous spaces from output variables (asthetic)
32794 #
32795 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
32796 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
32797 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
32798 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
32799
32800 CC=`echo $CC | sed -e 's/  */ /g'`
32801 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
32802 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
32803 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
32804 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32805 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
32806 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
32807 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32808 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
32809 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
32810
32811 # Pass only user-provided LIBS as "global" libraries
32812 LIBS=$USER_LIBS
32813
32814 #AC_SUBST(CPPFLAGS)
32815
32816 #AC_SUBST(LDFLAGS)
32817 #AC_SUBST(X_PRE_LIBS)
32818 #AC_SUBST(X_LIBS)
32819 #AC_SUBST(X_EXTRA_LIBS)
32820
32821 MAGICK_CFLAGS=$CFLAGS
32822 MAGICK_CXXFLAGS="$CXXFLAGS"
32823 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
32824 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
32825 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32826 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32827
32828
32829
32830
32831
32832
32833
32834
32835
32836 # Set configured scripts to executable.
32837 ac_config_commands="$ac_config_commands default"
32838
32839 ac_config_commands="$ac_config_commands MagickCore-config.in"
32840
32841 ac_config_commands="$ac_config_commands Magick-config.in"
32842
32843 ac_config_commands="$ac_config_commands MagickWand-config.in"
32844
32845 ac_config_commands="$ac_config_commands Wand-config.in"
32846
32847 ac_config_commands="$ac_config_commands Magick++-config.in"
32848
32849 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32850
32851
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32853 $as_echo "-------------------------------------------------------------" >&6; }
32854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32855 $as_echo "Update ImageMagick configuration" >&6; }
32856 cat >confcache <<\_ACEOF
32857 # This file is a shell script that caches the results of configure
32858 # tests run on this system so they can be shared between configure
32859 # scripts and configure runs, see configure's option --config-cache.
32860 # It is not useful on other systems.  If it contains results you don't
32861 # want to keep, you may remove or edit it.
32862 #
32863 # config.status only pays attention to the cache file if you give it
32864 # the --recheck option to rerun configure.
32865 #
32866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32868 # following values.
32869
32870 _ACEOF
32871
32872 # The following way of writing the cache mishandles newlines in values,
32873 # but we know of no workaround that is simple, portable, and efficient.
32874 # So, we kill variables containing newlines.
32875 # Ultrix sh set writes to stderr and can't be redirected directly,
32876 # and sets the high bit in the cache file unless we assign to the vars.
32877 (
32878   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32879     eval ac_val=\$$ac_var
32880     case $ac_val in #(
32881     *${as_nl}*)
32882       case $ac_var in #(
32883       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32885       esac
32886       case $ac_var in #(
32887       _ | IFS | as_nl) ;; #(
32888       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32889       *) { eval $ac_var=; unset $ac_var;} ;;
32890       esac ;;
32891     esac
32892   done
32893
32894   (set) 2>&1 |
32895     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32896     *${as_nl}ac_space=\ *)
32897       # `set' does not quote correctly, so add quotes: double-quote
32898       # substitution turns \\\\ into \\, and sed turns \\ into \.
32899       sed -n \
32900         "s/'/'\\\\''/g;
32901           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32902       ;; #(
32903     *)
32904       # `set' quotes correctly as required by POSIX, so do not add quotes.
32905       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32906       ;;
32907     esac |
32908     sort
32909 ) |
32910   sed '
32911      /^ac_cv_env_/b end
32912      t clear
32913      :clear
32914      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32915      t end
32916      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32917      :end' >>confcache
32918 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32919   if test -w "$cache_file"; then
32920     test "x$cache_file" != "x/dev/null" &&
32921       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32922 $as_echo "$as_me: updating cache $cache_file" >&6;}
32923     cat confcache >$cache_file
32924   else
32925     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32927   fi
32928 fi
32929 rm -f confcache
32930
32931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32932 # Let make expand exec_prefix.
32933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32934
32935 DEFS=-DHAVE_CONFIG_H
32936
32937 ac_libobjs=
32938 ac_ltlibobjs=
32939 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32940   # 1. Remove the extension, and $U if already installed.
32941   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32942   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32943   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32944   #    will be set to the directory where LIBOBJS objects are built.
32945   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32946   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32947 done
32948 LIBOBJS=$ac_libobjs
32949
32950 LTLIBOBJS=$ac_ltlibobjs
32951
32952
32953  if test -n "$EXEEXT"; then
32954   am__EXEEXT_TRUE=
32955   am__EXEEXT_FALSE='#'
32956 else
32957   am__EXEEXT_TRUE='#'
32958   am__EXEEXT_FALSE=
32959 fi
32960
32961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32962   as_fn_error "conditional \"AMDEP\" was never defined.
32963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32964 fi
32965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32966   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32968 fi
32969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32970   as_fn_error "conditional \"am__fastdepCC\" was never defined.
32971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32972 fi
32973 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32974   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32976 fi
32977 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32978   as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32980 fi
32981 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32982   as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32984 fi
32985 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32986   as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32988 fi
32989 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32990   as_fn_error "conditional \"USING_CL\" was never defined.
32991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32992 fi
32993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32994   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32996 fi
32997 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32998   as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33000 fi
33001 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33002   as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
33003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33004 fi
33005 LT_CONFIG_H=config/config.h
33006
33007     _ltdl_libobjs=
33008     _ltdl_ltlibobjs=
33009     if test -n "$_LT_LIBOBJS"; then
33010       # Remove the extension.
33011       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33012       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33013         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33014         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33015       done
33016     fi
33017     ltdl_LIBOBJS=$_ltdl_libobjs
33018
33019     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33020
33021
33022 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33023   as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
33024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33025 fi
33026 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33027   as_fn_error "conditional \"WITH_MODULES\" was never defined.
33028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33029 fi
33030 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33031   as_fn_error "conditional \"WITH_LTDL\" was never defined.
33032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33033 fi
33034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33035   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
33036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33037 fi
33038
33039 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33040   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
33041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33042 fi
33043 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33044   as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33046 fi
33047 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33048   as_fn_error "conditional \"HasUMEM\" was never defined.
33049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33050 fi
33051 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33052   as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
33053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33054 fi
33055 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33056   as_fn_error "conditional \"X11_DELEGATE\" was never defined.
33057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33058 fi
33059 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33060   as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
33061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33062 fi
33063 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33064   as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33066 fi
33067 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33068   as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
33069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33070 fi
33071 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33072   as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
33073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33074 fi
33075 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33076   as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
33077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33078 fi
33079 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33080   as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
33081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33082 fi
33083 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33084   as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33086 fi
33087 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33088   as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
33089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33090 fi
33091 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33092   as_fn_error "conditional \"GS_DELEGATE\" was never defined.
33093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33094 fi
33095 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33096   as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
33097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33098 fi
33099 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33100   as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
33101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33102 fi
33103 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33104   as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
33105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33106 fi
33107 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33108   as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
33109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33110 fi
33111 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33112   as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
33113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33114 fi
33115 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33116   as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
33117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33118 fi
33119 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33120   as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
33121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33122 fi
33123 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33124   as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
33125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33126 fi
33127 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33128   as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
33129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33130 fi
33131 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33132   as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
33133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33134 fi
33135 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33136   as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
33137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33138 fi
33139 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33140   as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
33141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33142 fi
33143 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33144   as_fn_error "conditional \"XML_DELEGATE\" was never defined.
33145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33146 fi
33147 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33148   as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
33149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33150 fi
33151 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33152   as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33154 fi
33155 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33156   as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33158 fi
33159 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33160   as_fn_error "conditional \"WITH_PERL\" was never defined.
33161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33162 fi
33163 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33164   as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33166 fi
33167 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33168   as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33170 fi
33171
33172 : ${CONFIG_STATUS=./config.status}
33173 ac_write_fail=0
33174 ac_clean_files_save=$ac_clean_files
33175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33177 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33178 as_write_fail=0
33179 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33180 #! $SHELL
33181 # Generated by $as_me.
33182 # Run this file to recreate the current configuration.
33183 # Compiler output produced by configure, useful for debugging
33184 # configure, is in config.log if it exists.
33185
33186 debug=false
33187 ac_cs_recheck=false
33188 ac_cs_silent=false
33189
33190 SHELL=\${CONFIG_SHELL-$SHELL}
33191 export SHELL
33192 _ASEOF
33193 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33194 ## -------------------- ##
33195 ## M4sh Initialization. ##
33196 ## -------------------- ##
33197
33198 # Be more Bourne compatible
33199 DUALCASE=1; export DUALCASE # for MKS sh
33200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33201   emulate sh
33202   NULLCMD=:
33203   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33204   # is contrary to our usage.  Disable this feature.
33205   alias -g '${1+"$@"}'='"$@"'
33206   setopt NO_GLOB_SUBST
33207 else
33208   case `(set -o) 2>/dev/null` in #(
33209   *posix*) :
33210     set -o posix ;; #(
33211   *) :
33212      ;;
33213 esac
33214 fi
33215
33216
33217 as_nl='
33218 '
33219 export as_nl
33220 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33221 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33224 # Prefer a ksh shell builtin over an external printf program on Solaris,
33225 # but without wasting forks for bash or zsh.
33226 if test -z "$BASH_VERSION$ZSH_VERSION" \
33227     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33228   as_echo='print -r --'
33229   as_echo_n='print -rn --'
33230 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33231   as_echo='printf %s\n'
33232   as_echo_n='printf %s'
33233 else
33234   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33235     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33236     as_echo_n='/usr/ucb/echo -n'
33237   else
33238     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33239     as_echo_n_body='eval
33240       arg=$1;
33241       case $arg in #(
33242       *"$as_nl"*)
33243         expr "X$arg" : "X\\(.*\\)$as_nl";
33244         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33245       esac;
33246       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33247     '
33248     export as_echo_n_body
33249     as_echo_n='sh -c $as_echo_n_body as_echo'
33250   fi
33251   export as_echo_body
33252   as_echo='sh -c $as_echo_body as_echo'
33253 fi
33254
33255 # The user is always right.
33256 if test "${PATH_SEPARATOR+set}" != set; then
33257   PATH_SEPARATOR=:
33258   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33259     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33260       PATH_SEPARATOR=';'
33261   }
33262 fi
33263
33264
33265 # IFS
33266 # We need space, tab and new line, in precisely that order.  Quoting is
33267 # there to prevent editors from complaining about space-tab.
33268 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33269 # splitting by setting IFS to empty value.)
33270 IFS=" ""        $as_nl"
33271
33272 # Find who we are.  Look in the path if we contain no directory separator.
33273 case $0 in #((
33274   *[\\/]* ) as_myself=$0 ;;
33275   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33276 for as_dir in $PATH
33277 do
33278   IFS=$as_save_IFS
33279   test -z "$as_dir" && as_dir=.
33280     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33281   done
33282 IFS=$as_save_IFS
33283
33284      ;;
33285 esac
33286 # We did not find ourselves, most probably we were run as `sh COMMAND'
33287 # in which case we are not to be found in the path.
33288 if test "x$as_myself" = x; then
33289   as_myself=$0
33290 fi
33291 if test ! -f "$as_myself"; then
33292   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33293   exit 1
33294 fi
33295
33296 # Unset variables that we do not need and which cause bugs (e.g. in
33297 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
33298 # suppresses any "Segmentation fault" message there.  '((' could
33299 # trigger a bug in pdksh 5.2.14.
33300 for as_var in BASH_ENV ENV MAIL MAILPATH
33301 do eval test x\${$as_var+set} = xset \
33302   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33303 done
33304 PS1='$ '
33305 PS2='> '
33306 PS4='+ '
33307
33308 # NLS nuisances.
33309 LC_ALL=C
33310 export LC_ALL
33311 LANGUAGE=C
33312 export LANGUAGE
33313
33314 # CDPATH.
33315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33316
33317
33318 # as_fn_error ERROR [LINENO LOG_FD]
33319 # ---------------------------------
33320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33322 # script with status $?, using 1 if that was 0.
33323 as_fn_error ()
33324 {
33325   as_status=$?; test $as_status -eq 0 && as_status=1
33326   if test "$3"; then
33327     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33328     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33329   fi
33330   $as_echo "$as_me: error: $1" >&2
33331   as_fn_exit $as_status
33332 } # as_fn_error
33333
33334
33335 # as_fn_set_status STATUS
33336 # -----------------------
33337 # Set $? to STATUS, without forking.
33338 as_fn_set_status ()
33339 {
33340   return $1
33341 } # as_fn_set_status
33342
33343 # as_fn_exit STATUS
33344 # -----------------
33345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33346 as_fn_exit ()
33347 {
33348   set +e
33349   as_fn_set_status $1
33350   exit $1
33351 } # as_fn_exit
33352
33353 # as_fn_unset VAR
33354 # ---------------
33355 # Portably unset VAR.
33356 as_fn_unset ()
33357 {
33358   { eval $1=; unset $1;}
33359 }
33360 as_unset=as_fn_unset
33361 # as_fn_append VAR VALUE
33362 # ----------------------
33363 # Append the text in VALUE to the end of the definition contained in VAR. Take
33364 # advantage of any shell optimizations that allow amortized linear growth over
33365 # repeated appends, instead of the typical quadratic growth present in naive
33366 # implementations.
33367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33368   eval 'as_fn_append ()
33369   {
33370     eval $1+=\$2
33371   }'
33372 else
33373   as_fn_append ()
33374   {
33375     eval $1=\$$1\$2
33376   }
33377 fi # as_fn_append
33378
33379 # as_fn_arith ARG...
33380 # ------------------
33381 # Perform arithmetic evaluation on the ARGs, and store the result in the
33382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33383 # must be portable across $(()) and expr.
33384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33385   eval 'as_fn_arith ()
33386   {
33387     as_val=$(( $* ))
33388   }'
33389 else
33390   as_fn_arith ()
33391   {
33392     as_val=`expr "$@" || test $? -eq 1`
33393   }
33394 fi # as_fn_arith
33395
33396
33397 if expr a : '\(a\)' >/dev/null 2>&1 &&
33398    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33399   as_expr=expr
33400 else
33401   as_expr=false
33402 fi
33403
33404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33405   as_basename=basename
33406 else
33407   as_basename=false
33408 fi
33409
33410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33411   as_dirname=dirname
33412 else
33413   as_dirname=false
33414 fi
33415
33416 as_me=`$as_basename -- "$0" ||
33417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33418          X"$0" : 'X\(//\)$' \| \
33419          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33420 $as_echo X/"$0" |
33421     sed '/^.*\/\([^/][^/]*\)\/*$/{
33422             s//\1/
33423             q
33424           }
33425           /^X\/\(\/\/\)$/{
33426             s//\1/
33427             q
33428           }
33429           /^X\/\(\/\).*/{
33430             s//\1/
33431             q
33432           }
33433           s/.*/./; q'`
33434
33435 # Avoid depending upon Character Ranges.
33436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33439 as_cr_digits='0123456789'
33440 as_cr_alnum=$as_cr_Letters$as_cr_digits
33441
33442 ECHO_C= ECHO_N= ECHO_T=
33443 case `echo -n x` in #(((((
33444 -n*)
33445   case `echo 'xy\c'` in
33446   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33447   xy)  ECHO_C='\c';;
33448   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
33449        ECHO_T=' ';;
33450   esac;;
33451 *)
33452   ECHO_N='-n';;
33453 esac
33454
33455 rm -f conf$$ conf$$.exe conf$$.file
33456 if test -d conf$$.dir; then
33457   rm -f conf$$.dir/conf$$.file
33458 else
33459   rm -f conf$$.dir
33460   mkdir conf$$.dir 2>/dev/null
33461 fi
33462 if (echo >conf$$.file) 2>/dev/null; then
33463   if ln -s conf$$.file conf$$ 2>/dev/null; then
33464     as_ln_s='ln -s'
33465     # ... but there are two gotchas:
33466     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33467     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33468     # In both cases, we have to default to `cp -p'.
33469     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33470       as_ln_s='cp -p'
33471   elif ln conf$$.file conf$$ 2>/dev/null; then
33472     as_ln_s=ln
33473   else
33474     as_ln_s='cp -p'
33475   fi
33476 else
33477   as_ln_s='cp -p'
33478 fi
33479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33480 rmdir conf$$.dir 2>/dev/null
33481
33482
33483 # as_fn_mkdir_p
33484 # -------------
33485 # Create "$as_dir" as a directory, including parents if necessary.
33486 as_fn_mkdir_p ()
33487 {
33488
33489   case $as_dir in #(
33490   -*) as_dir=./$as_dir;;
33491   esac
33492   test -d "$as_dir" || eval $as_mkdir_p || {
33493     as_dirs=
33494     while :; do
33495       case $as_dir in #(
33496       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33497       *) as_qdir=$as_dir;;
33498       esac
33499       as_dirs="'$as_qdir' $as_dirs"
33500       as_dir=`$as_dirname -- "$as_dir" ||
33501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33502          X"$as_dir" : 'X\(//\)[^/]' \| \
33503          X"$as_dir" : 'X\(//\)$' \| \
33504          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33505 $as_echo X"$as_dir" |
33506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33507             s//\1/
33508             q
33509           }
33510           /^X\(\/\/\)[^/].*/{
33511             s//\1/
33512             q
33513           }
33514           /^X\(\/\/\)$/{
33515             s//\1/
33516             q
33517           }
33518           /^X\(\/\).*/{
33519             s//\1/
33520             q
33521           }
33522           s/.*/./; q'`
33523       test -d "$as_dir" && break
33524     done
33525     test -z "$as_dirs" || eval "mkdir $as_dirs"
33526   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33527
33528
33529 } # as_fn_mkdir_p
33530 if mkdir -p . 2>/dev/null; then
33531   as_mkdir_p='mkdir -p "$as_dir"'
33532 else
33533   test -d ./-p && rmdir ./-p
33534   as_mkdir_p=false
33535 fi
33536
33537 if test -x / >/dev/null 2>&1; then
33538   as_test_x='test -x'
33539 else
33540   if ls -dL / >/dev/null 2>&1; then
33541     as_ls_L_option=L
33542   else
33543     as_ls_L_option=
33544   fi
33545   as_test_x='
33546     eval sh -c '\''
33547       if test -d "$1"; then
33548         test -d "$1/.";
33549       else
33550         case $1 in #(
33551         -*)set "./$1";;
33552         esac;
33553         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33554         ???[sx]*):;;*)false;;esac;fi
33555     '\'' sh
33556   '
33557 fi
33558 as_executable_p=$as_test_x
33559
33560 # Sed expression to map a string onto a valid CPP name.
33561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33562
33563 # Sed expression to map a string onto a valid variable name.
33564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33565
33566
33567 exec 6>&1
33568 ## ----------------------------------- ##
33569 ## Main body of $CONFIG_STATUS script. ##
33570 ## ----------------------------------- ##
33571 _ASEOF
33572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33573
33574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33575 # Save the log message, to keep $0 and so on meaningful, and to
33576 # report actual input values of CONFIG_FILES etc. instead of their
33577 # values after options handling.
33578 ac_log="
33579 This file was extended by ImageMagick $as_me 6.6.4, which was
33580 generated by GNU Autoconf 2.65.  Invocation command line was
33581
33582   CONFIG_FILES    = $CONFIG_FILES
33583   CONFIG_HEADERS  = $CONFIG_HEADERS
33584   CONFIG_LINKS    = $CONFIG_LINKS
33585   CONFIG_COMMANDS = $CONFIG_COMMANDS
33586   $ $0 $@
33587
33588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33589 "
33590
33591 _ACEOF
33592
33593 case $ac_config_files in *"
33594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33595 esac
33596
33597 case $ac_config_headers in *"
33598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33599 esac
33600
33601
33602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33603 # Files that config.status was made for.
33604 config_files="$ac_config_files"
33605 config_headers="$ac_config_headers"
33606 config_commands="$ac_config_commands"
33607
33608 _ACEOF
33609
33610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33611 ac_cs_usage="\
33612 \`$as_me' instantiates files and other configuration actions
33613 from templates according to the current configuration.  Unless the files
33614 and actions are specified as TAGs, all are instantiated by default.
33615
33616 Usage: $0 [OPTION]... [TAG]...
33617
33618   -h, --help       print this help, then exit
33619   -V, --version    print version number and configuration settings, then exit
33620       --config     print configuration, then exit
33621   -q, --quiet, --silent
33622                    do not print progress messages
33623   -d, --debug      don't remove temporary files
33624       --recheck    update $as_me by reconfiguring in the same conditions
33625       --file=FILE[:TEMPLATE]
33626                    instantiate the configuration file FILE
33627       --header=FILE[:TEMPLATE]
33628                    instantiate the configuration header FILE
33629
33630 Configuration files:
33631 $config_files
33632
33633 Configuration headers:
33634 $config_headers
33635
33636 Configuration commands:
33637 $config_commands
33638
33639 Report bugs to <http://www.imagemagick.org>."
33640
33641 _ACEOF
33642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33644 ac_cs_version="\\
33645 ImageMagick config.status 6.6.4
33646 configured by $0, generated by GNU Autoconf 2.65,
33647   with options \\"\$ac_cs_config\\"
33648
33649 Copyright (C) 2009 Free Software Foundation, Inc.
33650 This config.status script is free software; the Free Software Foundation
33651 gives unlimited permission to copy, distribute and modify it."
33652
33653 ac_pwd='$ac_pwd'
33654 srcdir='$srcdir'
33655 INSTALL='$INSTALL'
33656 MKDIR_P='$MKDIR_P'
33657 AWK='$AWK'
33658 test -n "\$AWK" || AWK=awk
33659 _ACEOF
33660
33661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33662 # The default lists apply if the user does not specify any file.
33663 ac_need_defaults=:
33664 while test $# != 0
33665 do
33666   case $1 in
33667   --*=*)
33668     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33669     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33670     ac_shift=:
33671     ;;
33672   *)
33673     ac_option=$1
33674     ac_optarg=$2
33675     ac_shift=shift
33676     ;;
33677   esac
33678
33679   case $ac_option in
33680   # Handling of the options.
33681   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33682     ac_cs_recheck=: ;;
33683   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33684     $as_echo "$ac_cs_version"; exit ;;
33685   --config | --confi | --conf | --con | --co | --c )
33686     $as_echo "$ac_cs_config"; exit ;;
33687   --debug | --debu | --deb | --de | --d | -d )
33688     debug=: ;;
33689   --file | --fil | --fi | --f )
33690     $ac_shift
33691     case $ac_optarg in
33692     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33693     esac
33694     as_fn_append CONFIG_FILES " '$ac_optarg'"
33695     ac_need_defaults=false;;
33696   --header | --heade | --head | --hea )
33697     $ac_shift
33698     case $ac_optarg in
33699     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33700     esac
33701     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33702     ac_need_defaults=false;;
33703   --he | --h)
33704     # Conflict between --help and --header
33705     as_fn_error "ambiguous option: \`$1'
33706 Try \`$0 --help' for more information.";;
33707   --help | --hel | -h )
33708     $as_echo "$ac_cs_usage"; exit ;;
33709   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33710   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33711     ac_cs_silent=: ;;
33712
33713   # This is an error.
33714   -*) as_fn_error "unrecognized option: \`$1'
33715 Try \`$0 --help' for more information." ;;
33716
33717   *) as_fn_append ac_config_targets " $1"
33718      ac_need_defaults=false ;;
33719
33720   esac
33721   shift
33722 done
33723
33724 ac_configure_extra_args=
33725
33726 if $ac_cs_silent; then
33727   exec 6>/dev/null
33728   ac_configure_extra_args="$ac_configure_extra_args --silent"
33729 fi
33730
33731 _ACEOF
33732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33733 if \$ac_cs_recheck; then
33734   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33735   shift
33736   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33737   CONFIG_SHELL='$SHELL'
33738   export CONFIG_SHELL
33739   exec "\$@"
33740 fi
33741
33742 _ACEOF
33743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33744 exec 5>>config.log
33745 {
33746   echo
33747   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33748 ## Running $as_me. ##
33749 _ASBOX
33750   $as_echo "$ac_log"
33751 } >&5
33752
33753 _ACEOF
33754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33755 #
33756 # INIT-COMMANDS
33757 #
33758 PACKAGE="$PACKAGE"
33759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33760
33761
33762 # The HP-UX ksh and POSIX shell print the target directory to stdout
33763 # if CDPATH is set.
33764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33765
33766 sed_quote_subst='$sed_quote_subst'
33767 double_quote_subst='$double_quote_subst'
33768 delay_variable_subst='$delay_variable_subst'
33769 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33770 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33771 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33772 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33773 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33774 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33775 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33776 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33777 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33778 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33779 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33780 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33781 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33782 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33783 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33784 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33785 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33786 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33787 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33788 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33789 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33790 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33791 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33792 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33793 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33794 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33795 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33796 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33797 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33798 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33799 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33800 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33801 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33802 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33803 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33804 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33805 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33806 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33807 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33808 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33809 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33810 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33811 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33812 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33813 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33814 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33815 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"`'
33816 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"`'
33817 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33818 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33819 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33820 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33821 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33822 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33823 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33824 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33825 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33826 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33827 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33828 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33829 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33830 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33831 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33832 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33833 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33834 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33835 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33836 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33837 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33838 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33839 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33840 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33841 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33842 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33843 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33844 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33845 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33846 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33847 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33848 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33849 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33850 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33851 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33852 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33853 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33854 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33855 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33856 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33857 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33858 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33859 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33860 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33861 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33862 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33863 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33864 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33865 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33866 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33867 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33868 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33869 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33870 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33871 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33872 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33873 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33874 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33875 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33876 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33877 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33878 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33879 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33880 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33881 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33882 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33883 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33884 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33885 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33886 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33887 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33888 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33889 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33890 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33891 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33892 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33893 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33894 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33895 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33896 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33897 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33898 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33899 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33900 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33902 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33903 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33904 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33905 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33906 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33907 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33908 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33909 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33910 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33911 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33912 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33913 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33914 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33915 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33916 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33917 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33918 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33919 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33920 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33921 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33922 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33923 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33924 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33925 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33926 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33927 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33928 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33929 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33930 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33931 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33932 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33933 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33934 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33935 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33936 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33937 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33938 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33939 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33940 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33941 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33942
33943 LTCC='$LTCC'
33944 LTCFLAGS='$LTCFLAGS'
33945 compiler='$compiler_DEFAULT'
33946
33947 # Quote evaled strings.
33948 for var in SED \
33949 GREP \
33950 EGREP \
33951 FGREP \
33952 LD \
33953 NM \
33954 LN_S \
33955 lt_SP2NL \
33956 lt_NL2SP \
33957 reload_flag \
33958 deplibs_check_method \
33959 file_magic_cmd \
33960 AR \
33961 AR_FLAGS \
33962 STRIP \
33963 RANLIB \
33964 CC \
33965 CFLAGS \
33966 compiler \
33967 lt_cv_sys_global_symbol_pipe \
33968 lt_cv_sys_global_symbol_to_cdecl \
33969 lt_cv_sys_global_symbol_to_c_name_address \
33970 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33971 SHELL \
33972 ECHO \
33973 lt_prog_compiler_no_builtin_flag \
33974 lt_prog_compiler_wl \
33975 lt_prog_compiler_pic \
33976 lt_prog_compiler_static \
33977 lt_cv_prog_compiler_c_o \
33978 need_locks \
33979 DSYMUTIL \
33980 NMEDIT \
33981 LIPO \
33982 OTOOL \
33983 OTOOL64 \
33984 shrext_cmds \
33985 export_dynamic_flag_spec \
33986 whole_archive_flag_spec \
33987 compiler_needs_object \
33988 with_gnu_ld \
33989 allow_undefined_flag \
33990 no_undefined_flag \
33991 hardcode_libdir_flag_spec \
33992 hardcode_libdir_flag_spec_ld \
33993 hardcode_libdir_separator \
33994 fix_srcfile_path \
33995 exclude_expsyms \
33996 include_expsyms \
33997 file_list_spec \
33998 variables_saved_for_relink \
33999 libname_spec \
34000 library_names_spec \
34001 soname_spec \
34002 finish_eval \
34003 old_striplib \
34004 striplib \
34005 compiler_lib_search_dirs \
34006 predep_objects \
34007 postdep_objects \
34008 predeps \
34009 postdeps \
34010 compiler_lib_search_path \
34011 LD_CXX \
34012 compiler_CXX \
34013 lt_prog_compiler_no_builtin_flag_CXX \
34014 lt_prog_compiler_wl_CXX \
34015 lt_prog_compiler_pic_CXX \
34016 lt_prog_compiler_static_CXX \
34017 lt_cv_prog_compiler_c_o_CXX \
34018 export_dynamic_flag_spec_CXX \
34019 whole_archive_flag_spec_CXX \
34020 compiler_needs_object_CXX \
34021 with_gnu_ld_CXX \
34022 allow_undefined_flag_CXX \
34023 no_undefined_flag_CXX \
34024 hardcode_libdir_flag_spec_CXX \
34025 hardcode_libdir_flag_spec_ld_CXX \
34026 hardcode_libdir_separator_CXX \
34027 fix_srcfile_path_CXX \
34028 exclude_expsyms_CXX \
34029 include_expsyms_CXX \
34030 file_list_spec_CXX \
34031 compiler_lib_search_dirs_CXX \
34032 predep_objects_CXX \
34033 postdep_objects_CXX \
34034 predeps_CXX \
34035 postdeps_CXX \
34036 compiler_lib_search_path_CXX; do
34037     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34038     *[\\\\\\\`\\"\\\$]*)
34039       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34040       ;;
34041     *)
34042       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34043       ;;
34044     esac
34045 done
34046
34047 # Double-quote double-evaled strings.
34048 for var in reload_cmds \
34049 old_postinstall_cmds \
34050 old_postuninstall_cmds \
34051 old_archive_cmds \
34052 extract_expsyms_cmds \
34053 old_archive_from_new_cmds \
34054 old_archive_from_expsyms_cmds \
34055 archive_cmds \
34056 archive_expsym_cmds \
34057 module_cmds \
34058 module_expsym_cmds \
34059 export_symbols_cmds \
34060 prelink_cmds \
34061 postinstall_cmds \
34062 postuninstall_cmds \
34063 finish_cmds \
34064 sys_lib_search_path_spec \
34065 sys_lib_dlsearch_path_spec \
34066 old_archive_cmds_CXX \
34067 old_archive_from_new_cmds_CXX \
34068 old_archive_from_expsyms_cmds_CXX \
34069 archive_cmds_CXX \
34070 archive_expsym_cmds_CXX \
34071 module_cmds_CXX \
34072 module_expsym_cmds_CXX \
34073 export_symbols_cmds_CXX \
34074 prelink_cmds_CXX; do
34075     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34076     *[\\\\\\\`\\"\\\$]*)
34077       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34078       ;;
34079     *)
34080       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34081       ;;
34082     esac
34083 done
34084
34085 # Fix-up fallback echo if it was mangled by the above quoting rules.
34086 case \$lt_ECHO in
34087 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34088   ;;
34089 esac
34090
34091 ac_aux_dir='$ac_aux_dir'
34092 xsi_shell='$xsi_shell'
34093 lt_shell_append='$lt_shell_append'
34094
34095 # See if we are running on zsh, and set the options which allow our
34096 # commands through without removal of \ escapes INIT.
34097 if test -n "\${ZSH_VERSION+set}" ; then
34098    setopt NO_GLOB_SUBST
34099 fi
34100
34101
34102     PACKAGE='$PACKAGE'
34103     VERSION='$VERSION'
34104     TIMESTAMP='$TIMESTAMP'
34105     RM='$RM'
34106     ofile='$ofile'
34107
34108
34109
34110
34111
34112
34113 _ACEOF
34114
34115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34116
34117 # Handling of arguments.
34118 for ac_config_target in $ac_config_targets
34119 do
34120   case $ac_config_target in
34121     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34122     "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34123     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34124     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34125     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34126     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34127     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
34128     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
34129     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34130     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34131     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34132     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34133     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34134     "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34135     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34136     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34137     "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34138     "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34139     "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34140     "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34141     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34142     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34143     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34144     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34145     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34146     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34147     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34148     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34149     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34150     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34151     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34152     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34153     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34154     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34155     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34156     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34157     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34158     "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34159     "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34160     "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34161     "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34162     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34163     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34164     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34165     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34166     "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34167     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34168     "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34169     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34170     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34171
34172   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34173   esac
34174 done
34175
34176
34177 # If the user did not use the arguments to specify the items to instantiate,
34178 # then the envvar interface is used.  Set only those that are not.
34179 # We use the long form for the default assignment because of an extremely
34180 # bizarre bug on SunOS 4.1.3.
34181 if $ac_need_defaults; then
34182   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34183   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34184   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34185 fi
34186
34187 # Have a temporary directory for convenience.  Make it in the build tree
34188 # simply because there is no reason against having it here, and in addition,
34189 # creating and moving files from /tmp can sometimes cause problems.
34190 # Hook for its removal unless debugging.
34191 # Note that there is a small window in which the directory will not be cleaned:
34192 # after its creation but before its name has been assigned to `$tmp'.
34193 $debug ||
34194 {
34195   tmp=
34196   trap 'exit_status=$?
34197   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34198 ' 0
34199   trap 'as_fn_exit 1' 1 2 13 15
34200 }
34201 # Create a (secure) tmp directory for tmp files.
34202
34203 {
34204   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34205   test -n "$tmp" && test -d "$tmp"
34206 }  ||
34207 {
34208   tmp=./conf$$-$RANDOM
34209   (umask 077 && mkdir "$tmp")
34210 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34211
34212 # Set up the scripts for CONFIG_FILES section.
34213 # No need to generate them if there are no CONFIG_FILES.
34214 # This happens for instance with `./config.status config.h'.
34215 if test -n "$CONFIG_FILES"; then
34216
34217
34218 ac_cr=`echo X | tr X '\015'`
34219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34220 # But we know of no other shell where ac_cr would be empty at this
34221 # point, so we can use a bashism as a fallback.
34222 if test "x$ac_cr" = x; then
34223   eval ac_cr=\$\'\\r\'
34224 fi
34225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34227   ac_cs_awk_cr='\r'
34228 else
34229   ac_cs_awk_cr=$ac_cr
34230 fi
34231
34232 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34233 _ACEOF
34234
34235
34236 {
34237   echo "cat >conf$$subs.awk <<_ACEOF" &&
34238   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34239   echo "_ACEOF"
34240 } >conf$$subs.sh ||
34241   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34243 ac_delim='%!_!# '
34244 for ac_last_try in false false false false false :; do
34245   . ./conf$$subs.sh ||
34246     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34247
34248   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34249   if test $ac_delim_n = $ac_delim_num; then
34250     break
34251   elif $ac_last_try; then
34252     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34253   else
34254     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34255   fi
34256 done
34257 rm -f conf$$subs.sh
34258
34259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34260 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34261 _ACEOF
34262 sed -n '
34263 h
34264 s/^/S["/; s/!.*/"]=/
34265 p
34266 g
34267 s/^[^!]*!//
34268 :repl
34269 t repl
34270 s/'"$ac_delim"'$//
34271 t delim
34272 :nl
34273 h
34274 s/\(.\{148\}\)..*/\1/
34275 t more1
34276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34277 p
34278 n
34279 b repl
34280 :more1
34281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34282 p
34283 g
34284 s/.\{148\}//
34285 t nl
34286 :delim
34287 h
34288 s/\(.\{148\}\)..*/\1/
34289 t more2
34290 s/["\\]/\\&/g; s/^/"/; s/$/"/
34291 p
34292 b
34293 :more2
34294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34295 p
34296 g
34297 s/.\{148\}//
34298 t delim
34299 ' <conf$$subs.awk | sed '
34300 /^[^""]/{
34301   N
34302   s/\n//
34303 }
34304 ' >>$CONFIG_STATUS || ac_write_fail=1
34305 rm -f conf$$subs.awk
34306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34307 _ACAWK
34308 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34309   for (key in S) S_is_set[key] = 1
34310   FS = "\a"
34311
34312 }
34313 {
34314   line = $ 0
34315   nfields = split(line, field, "@")
34316   substed = 0
34317   len = length(field[1])
34318   for (i = 2; i < nfields; i++) {
34319     key = field[i]
34320     keylen = length(key)
34321     if (S_is_set[key]) {
34322       value = S[key]
34323       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34324       len += length(value) + length(field[++i])
34325       substed = 1
34326     } else
34327       len += 1 + keylen
34328   }
34329
34330   print line
34331 }
34332
34333 _ACAWK
34334 _ACEOF
34335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34336 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34337   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34338 else
34339   cat
34340 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34341   || as_fn_error "could not setup config files machinery" "$LINENO" 5
34342 _ACEOF
34343
34344 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34345 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34346 # trailing colons and then remove the whole line if VPATH becomes empty
34347 # (actually we leave an empty line to preserve line numbers).
34348 if test "x$srcdir" = x.; then
34349   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34350 s/:*\$(srcdir):*/:/
34351 s/:*\${srcdir}:*/:/
34352 s/:*@srcdir@:*/:/
34353 s/^\([^=]*=[     ]*\):*/\1/
34354 s/:*$//
34355 s/^[^=]*=[       ]*$//
34356 }'
34357 fi
34358
34359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34360 fi # test -n "$CONFIG_FILES"
34361
34362 # Set up the scripts for CONFIG_HEADERS section.
34363 # No need to generate them if there are no CONFIG_HEADERS.
34364 # This happens for instance with `./config.status Makefile'.
34365 if test -n "$CONFIG_HEADERS"; then
34366 cat >"$tmp/defines.awk" <<\_ACAWK ||
34367 BEGIN {
34368 _ACEOF
34369
34370 # Transform confdefs.h into an awk script `defines.awk', embedded as
34371 # here-document in config.status, that substitutes the proper values into
34372 # config.h.in to produce config.h.
34373
34374 # Create a delimiter string that does not exist in confdefs.h, to ease
34375 # handling of long lines.
34376 ac_delim='%!_!# '
34377 for ac_last_try in false false :; do
34378   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34379   if test -z "$ac_t"; then
34380     break
34381   elif $ac_last_try; then
34382     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34383   else
34384     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34385   fi
34386 done
34387
34388 # For the awk script, D is an array of macro values keyed by name,
34389 # likewise P contains macro parameters if any.  Preserve backslash
34390 # newline sequences.
34391
34392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34393 sed -n '
34394 s/.\{148\}/&'"$ac_delim"'/g
34395 t rset
34396 :rset
34397 s/^[     ]*#[    ]*define[       ][      ]*/ /
34398 t def
34399 d
34400 :def
34401 s/\\$//
34402 t bsnl
34403 s/["\\]/\\&/g
34404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34405 D["\1"]=" \3"/p
34406 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
34407 d
34408 :bsnl
34409 s/["\\]/\\&/g
34410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
34411 D["\1"]=" \3\\\\\\n"\\/p
34412 t cont
34413 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34414 t cont
34415 d
34416 :cont
34417 n
34418 s/.\{148\}/&'"$ac_delim"'/g
34419 t clear
34420 :clear
34421 s/\\$//
34422 t bsnlc
34423 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34424 d
34425 :bsnlc
34426 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34427 b cont
34428 ' <confdefs.h | sed '
34429 s/'"$ac_delim"'/"\\\
34430 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34431
34432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34433   for (key in D) D_is_set[key] = 1
34434   FS = "\a"
34435 }
34436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34437   line = \$ 0
34438   split(line, arg, " ")
34439   if (arg[1] == "#") {
34440     defundef = arg[2]
34441     mac1 = arg[3]
34442   } else {
34443     defundef = substr(arg[1], 2)
34444     mac1 = arg[2]
34445   }
34446   split(mac1, mac2, "(") #)
34447   macro = mac2[1]
34448   prefix = substr(line, 1, index(line, defundef) - 1)
34449   if (D_is_set[macro]) {
34450     # Preserve the white space surrounding the "#".
34451     print prefix "define", macro P[macro] D[macro]
34452     next
34453   } else {
34454     # Replace #undef with comments.  This is necessary, for example,
34455     # in the case of _POSIX_SOURCE, which is predefined and required
34456     # on some systems where configure will not decide to define it.
34457     if (defundef == "undef") {
34458       print "/*", prefix defundef, macro, "*/"
34459       next
34460     }
34461   }
34462 }
34463 { print }
34464 _ACAWK
34465 _ACEOF
34466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34467   as_fn_error "could not setup config headers machinery" "$LINENO" 5
34468 fi # test -n "$CONFIG_HEADERS"
34469
34470
34471 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
34472 shift
34473 for ac_tag
34474 do
34475   case $ac_tag in
34476   :[FHLC]) ac_mode=$ac_tag; continue;;
34477   esac
34478   case $ac_mode$ac_tag in
34479   :[FHL]*:*);;
34480   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34481   :[FH]-) ac_tag=-:-;;
34482   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34483   esac
34484   ac_save_IFS=$IFS
34485   IFS=:
34486   set x $ac_tag
34487   IFS=$ac_save_IFS
34488   shift
34489   ac_file=$1
34490   shift
34491
34492   case $ac_mode in
34493   :L) ac_source=$1;;
34494   :[FH])
34495     ac_file_inputs=
34496     for ac_f
34497     do
34498       case $ac_f in
34499       -) ac_f="$tmp/stdin";;
34500       *) # Look for the file first in the build tree, then in the source tree
34501          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34502          # because $ac_f cannot contain `:'.
34503          test -f "$ac_f" ||
34504            case $ac_f in
34505            [\\/$]*) false;;
34506            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34507            esac ||
34508            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34509       esac
34510       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34511       as_fn_append ac_file_inputs " '$ac_f'"
34512     done
34513
34514     # Let's still pretend it is `configure' which instantiates (i.e., don't
34515     # use $as_me), people would be surprised to read:
34516     #    /* config.h.  Generated by config.status.  */
34517     configure_input='Generated from '`
34518           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34519         `' by configure.'
34520     if test x"$ac_file" != x-; then
34521       configure_input="$ac_file.  $configure_input"
34522       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34523 $as_echo "$as_me: creating $ac_file" >&6;}
34524     fi
34525     # Neutralize special characters interpreted by sed in replacement strings.
34526     case $configure_input in #(
34527     *\&* | *\|* | *\\* )
34528        ac_sed_conf_input=`$as_echo "$configure_input" |
34529        sed 's/[\\\\&|]/\\\\&/g'`;; #(
34530     *) ac_sed_conf_input=$configure_input;;
34531     esac
34532
34533     case $ac_tag in
34534     *:-:* | *:-) cat >"$tmp/stdin" \
34535       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34536     esac
34537     ;;
34538   esac
34539
34540   ac_dir=`$as_dirname -- "$ac_file" ||
34541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34542          X"$ac_file" : 'X\(//\)[^/]' \| \
34543          X"$ac_file" : 'X\(//\)$' \| \
34544          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34545 $as_echo X"$ac_file" |
34546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34547             s//\1/
34548             q
34549           }
34550           /^X\(\/\/\)[^/].*/{
34551             s//\1/
34552             q
34553           }
34554           /^X\(\/\/\)$/{
34555             s//\1/
34556             q
34557           }
34558           /^X\(\/\).*/{
34559             s//\1/
34560             q
34561           }
34562           s/.*/./; q'`
34563   as_dir="$ac_dir"; as_fn_mkdir_p
34564   ac_builddir=.
34565
34566 case "$ac_dir" in
34567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34568 *)
34569   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34570   # A ".." for each directory in $ac_dir_suffix.
34571   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34572   case $ac_top_builddir_sub in
34573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34575   esac ;;
34576 esac
34577 ac_abs_top_builddir=$ac_pwd
34578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34579 # for backward compatibility:
34580 ac_top_builddir=$ac_top_build_prefix
34581
34582 case $srcdir in
34583   .)  # We are building in place.
34584     ac_srcdir=.
34585     ac_top_srcdir=$ac_top_builddir_sub
34586     ac_abs_top_srcdir=$ac_pwd ;;
34587   [\\/]* | ?:[\\/]* )  # Absolute name.
34588     ac_srcdir=$srcdir$ac_dir_suffix;
34589     ac_top_srcdir=$srcdir
34590     ac_abs_top_srcdir=$srcdir ;;
34591   *) # Relative name.
34592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34593     ac_top_srcdir=$ac_top_build_prefix$srcdir
34594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34595 esac
34596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34597
34598
34599   case $ac_mode in
34600   :F)
34601   #
34602   # CONFIG_FILE
34603   #
34604
34605   case $INSTALL in
34606   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34607   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34608   esac
34609   ac_MKDIR_P=$MKDIR_P
34610   case $MKDIR_P in
34611   [\\/$]* | ?:[\\/]* ) ;;
34612   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34613   esac
34614 _ACEOF
34615
34616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34617 # If the template does not know about datarootdir, expand it.
34618 # FIXME: This hack should be removed a few years after 2.60.
34619 ac_datarootdir_hack=; ac_datarootdir_seen=
34620 ac_sed_dataroot='
34621 /datarootdir/ {
34622   p
34623   q
34624 }
34625 /@datadir@/p
34626 /@docdir@/p
34627 /@infodir@/p
34628 /@localedir@/p
34629 /@mandir@/p'
34630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34631 *datarootdir*) ac_datarootdir_seen=yes;;
34632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34633   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34635 _ACEOF
34636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34637   ac_datarootdir_hack='
34638   s&@datadir@&$datadir&g
34639   s&@docdir@&$docdir&g
34640   s&@infodir@&$infodir&g
34641   s&@localedir@&$localedir&g
34642   s&@mandir@&$mandir&g
34643   s&\\\${datarootdir}&$datarootdir&g' ;;
34644 esac
34645 _ACEOF
34646
34647 # Neutralize VPATH when `$srcdir' = `.'.
34648 # Shell code in configure.ac might set extrasub.
34649 # FIXME: do we really want to maintain this feature?
34650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34651 ac_sed_extra="$ac_vpsub
34652 $extrasub
34653 _ACEOF
34654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34655 :t
34656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34657 s|@configure_input@|$ac_sed_conf_input|;t t
34658 s&@top_builddir@&$ac_top_builddir_sub&;t t
34659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34660 s&@srcdir@&$ac_srcdir&;t t
34661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34662 s&@top_srcdir@&$ac_top_srcdir&;t t
34663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34664 s&@builddir@&$ac_builddir&;t t
34665 s&@abs_builddir@&$ac_abs_builddir&;t t
34666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34667 s&@INSTALL@&$ac_INSTALL&;t t
34668 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34669 $ac_datarootdir_hack
34670 "
34671 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34672   || as_fn_error "could not create $ac_file" "$LINENO" 5
34673
34674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34675   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34676   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34677   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34678 which seems to be undefined.  Please make sure it is defined." >&5
34679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34680 which seems to be undefined.  Please make sure it is defined." >&2;}
34681
34682   rm -f "$tmp/stdin"
34683   case $ac_file in
34684   -) cat "$tmp/out" && rm -f "$tmp/out";;
34685   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34686   esac \
34687   || as_fn_error "could not create $ac_file" "$LINENO" 5
34688  ;;
34689   :H)
34690   #
34691   # CONFIG_HEADER
34692   #
34693   if test x"$ac_file" != x-; then
34694     {
34695       $as_echo "/* $configure_input  */" \
34696       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34697     } >"$tmp/config.h" \
34698       || as_fn_error "could not create $ac_file" "$LINENO" 5
34699     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34700       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34702     else
34703       rm -f "$ac_file"
34704       mv "$tmp/config.h" "$ac_file" \
34705         || as_fn_error "could not create $ac_file" "$LINENO" 5
34706     fi
34707   else
34708     $as_echo "/* $configure_input  */" \
34709       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34710       || as_fn_error "could not create -" "$LINENO" 5
34711   fi
34712 # Compute "$ac_file"'s index in $config_headers.
34713 _am_arg="$ac_file"
34714 _am_stamp_count=1
34715 for _am_header in $config_headers :; do
34716   case $_am_header in
34717     $_am_arg | $_am_arg:* )
34718       break ;;
34719     * )
34720       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34721   esac
34722 done
34723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34725          X"$_am_arg" : 'X\(//\)[^/]' \| \
34726          X"$_am_arg" : 'X\(//\)$' \| \
34727          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34728 $as_echo X"$_am_arg" |
34729     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34730             s//\1/
34731             q
34732           }
34733           /^X\(\/\/\)[^/].*/{
34734             s//\1/
34735             q
34736           }
34737           /^X\(\/\/\)$/{
34738             s//\1/
34739             q
34740           }
34741           /^X\(\/\).*/{
34742             s//\1/
34743             q
34744           }
34745           s/.*/./; q'`/stamp-h$_am_stamp_count
34746  ;;
34747
34748   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34749 $as_echo "$as_me: executing $ac_file commands" >&6;}
34750  ;;
34751   esac
34752
34753
34754   case $ac_file$ac_mode in
34755     "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34756 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34757 ac_prefix_conf_PKG=`echo MagickCore`
34758 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34759 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
34760 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34761 if test ".$ac_prefix_conf_INP" = "."; then
34762    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34763      case "$ac_file" in
34764         *.h) ac_prefix_conf_INP=$ac_file ;;
34765         *)
34766      esac
34767      test ".$ac_prefix_conf_INP" != "." && break
34768    done
34769 fi
34770 if test ".$ac_prefix_conf_INP" = "."; then
34771    case "$ac_prefix_conf_OUT" in
34772       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34773       ;;
34774       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34775       ;;
34776       *) ac_prefix_conf_INP=config.h
34777       ;;
34778    esac
34779 fi
34780 if test -z "$ac_prefix_conf_PKG" ; then
34781    as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34782 else
34783   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34784      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34785   fi fi
34786   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34787 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34788   if test -f $ac_prefix_conf_INP ; then
34789     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34790     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34791     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34792     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34793     $as_echo "#endif/" >> conftest.prefix
34794     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34795     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34796     $as_echo "#endif/" >> conftest.prefix
34797     # now executing _script on _DEF input to create _OUT output file
34798     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
34799     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34800     echo ' ' >>$tmp/pconfig.h
34801     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34802
34803     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34804     echo ' ' >>$tmp/pconfig.h
34805     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34806     echo "#endif" >>$tmp/pconfig.h
34807     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34808       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34809 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34810     else
34811       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34812 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34813          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34814          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34815          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34816 $as_echo X"$ac_prefix_conf_OUT" |
34817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34818             s//\1/
34819             q
34820           }
34821           /^X\(\/\/\)[^/].*/{
34822             s//\1/
34823             q
34824           }
34825           /^X\(\/\/\)$/{
34826             s//\1/
34827             q
34828           }
34829           /^X\(\/\).*/{
34830             s//\1/
34831             q
34832           }
34833           s/.*/./; q'`
34834       as_dir="$ac_dir"; as_fn_mkdir_p
34835       rm -f "$ac_prefix_conf_OUT"
34836       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34837     fi
34838     cp conftest.prefix _configs.sed
34839   else
34840     as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34841   fi
34842   rm -f conftest.*
34843 fi
34844  ;;
34845     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34846   # Autoconf 2.62 quotes --file arguments for eval, but not when files
34847   # are listed without --file.  Let's play safe and only enable the eval
34848   # if we detect the quoting.
34849   case $CONFIG_FILES in
34850   *\'*) eval set x "$CONFIG_FILES" ;;
34851   *)   set x $CONFIG_FILES ;;
34852   esac
34853   shift
34854   for mf
34855   do
34856     # Strip MF so we end up with the name of the file.
34857     mf=`echo "$mf" | sed -e 's/:.*$//'`
34858     # Check whether this is an Automake generated Makefile or not.
34859     # We used to match only the files named `Makefile.in', but
34860     # some people rename them; so instead we look at the file content.
34861     # Grep'ing the first line is not enough: some people post-process
34862     # each Makefile.in and add a new line on top of each file to say so.
34863     # Grep'ing the whole file is not good either: AIX grep has a line
34864     # limit of 2048, but all sed's we know have understand at least 4000.
34865     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34866       dirpart=`$as_dirname -- "$mf" ||
34867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34868          X"$mf" : 'X\(//\)[^/]' \| \
34869          X"$mf" : 'X\(//\)$' \| \
34870          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34871 $as_echo X"$mf" |
34872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34873             s//\1/
34874             q
34875           }
34876           /^X\(\/\/\)[^/].*/{
34877             s//\1/
34878             q
34879           }
34880           /^X\(\/\/\)$/{
34881             s//\1/
34882             q
34883           }
34884           /^X\(\/\).*/{
34885             s//\1/
34886             q
34887           }
34888           s/.*/./; q'`
34889     else
34890       continue
34891     fi
34892     # Extract the definition of DEPDIR, am__include, and am__quote
34893     # from the Makefile without running `make'.
34894     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34895     test -z "$DEPDIR" && continue
34896     am__include=`sed -n 's/^am__include = //p' < "$mf"`
34897     test -z "am__include" && continue
34898     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34899     # When using ansi2knr, U may be empty or an underscore; expand it
34900     U=`sed -n 's/^U = //p' < "$mf"`
34901     # Find all dependency output files, they are included files with
34902     # $(DEPDIR) in their names.  We invoke sed twice because it is the
34903     # simplest approach to changing $(DEPDIR) to its actual value in the
34904     # expansion.
34905     for file in `sed -n "
34906       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34907          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34908       # Make sure the directory exists.
34909       test -f "$dirpart/$file" && continue
34910       fdir=`$as_dirname -- "$file" ||
34911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34912          X"$file" : 'X\(//\)[^/]' \| \
34913          X"$file" : 'X\(//\)$' \| \
34914          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34915 $as_echo X"$file" |
34916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34917             s//\1/
34918             q
34919           }
34920           /^X\(\/\/\)[^/].*/{
34921             s//\1/
34922             q
34923           }
34924           /^X\(\/\/\)$/{
34925             s//\1/
34926             q
34927           }
34928           /^X\(\/\).*/{
34929             s//\1/
34930             q
34931           }
34932           s/.*/./; q'`
34933       as_dir=$dirpart/$fdir; as_fn_mkdir_p
34934       # echo "creating $dirpart/$file"
34935       echo '# dummy' > "$dirpart/$file"
34936     done
34937   done
34938 }
34939  ;;
34940     "libtool":C)
34941
34942     # See if we are running on zsh, and set the options which allow our
34943     # commands through without removal of \ escapes.
34944     if test -n "${ZSH_VERSION+set}" ; then
34945       setopt NO_GLOB_SUBST
34946     fi
34947
34948     cfgfile="${ofile}T"
34949     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34950     $RM "$cfgfile"
34951
34952     cat <<_LT_EOF >> "$cfgfile"
34953 #! $SHELL
34954
34955 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34956 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34959 #
34960 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34961 #                 2006, 2007, 2008 Free Software Foundation, Inc.
34962 #   Written by Gordon Matzigkeit, 1996
34963 #
34964 #   This file is part of GNU Libtool.
34965 #
34966 # GNU Libtool is free software; you can redistribute it and/or
34967 # modify it under the terms of the GNU General Public License as
34968 # published by the Free Software Foundation; either version 2 of
34969 # the License, or (at your option) any later version.
34970 #
34971 # As a special exception to the GNU General Public License,
34972 # if you distribute this file as part of a program or library that
34973 # is built using GNU Libtool, you may include this file under the
34974 # same distribution terms that you use for the rest of that program.
34975 #
34976 # GNU Libtool is distributed in the hope that it will be useful,
34977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34979 # GNU General Public License for more details.
34980 #
34981 # You should have received a copy of the GNU General Public License
34982 # along with GNU Libtool; see the file COPYING.  If not, a copy
34983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34984 # obtained by writing to the Free Software Foundation, Inc.,
34985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34986
34987
34988 # The names of the tagged configurations supported by this script.
34989 available_tags="CXX "
34990
34991 # ### BEGIN LIBTOOL CONFIG
34992
34993 # A sed program that does not truncate output.
34994 SED=$lt_SED
34995
34996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34997 Xsed="\$SED -e 1s/^X//"
34998
34999 # A grep program that handles long lines.
35000 GREP=$lt_GREP
35001
35002 # An ERE matcher.
35003 EGREP=$lt_EGREP
35004
35005 # A literal string matcher.
35006 FGREP=$lt_FGREP
35007
35008 # Which release of libtool.m4 was used?
35009 macro_version=$macro_version
35010 macro_revision=$macro_revision
35011
35012 # Assembler program.
35013 AS=$AS
35014
35015 # DLL creation program.
35016 DLLTOOL=$DLLTOOL
35017
35018 # Object dumper program.
35019 OBJDUMP=$OBJDUMP
35020
35021 # Whether or not to build shared libraries.
35022 build_libtool_libs=$enable_shared
35023
35024 # Whether or not to build static libraries.
35025 build_old_libs=$enable_static
35026
35027 # What type of objects to build.
35028 pic_mode=$pic_mode
35029
35030 # Whether or not to optimize for fast installation.
35031 fast_install=$enable_fast_install
35032
35033 # The host system.
35034 host_alias=$host_alias
35035 host=$host
35036 host_os=$host_os
35037
35038 # The build system.
35039 build_alias=$build_alias
35040 build=$build
35041 build_os=$build_os
35042
35043 # A BSD- or MS-compatible name lister.
35044 NM=$lt_NM
35045
35046 # Whether we need soft or hard links.
35047 LN_S=$lt_LN_S
35048
35049 # What is the maximum length of a command?
35050 max_cmd_len=$max_cmd_len
35051
35052 # Object file suffix (normally "o").
35053 objext=$ac_objext
35054
35055 # Executable file suffix (normally "").
35056 exeext=$exeext
35057
35058 # whether the shell understands "unset".
35059 lt_unset=$lt_unset
35060
35061 # turn spaces into newlines.
35062 SP2NL=$lt_lt_SP2NL
35063
35064 # turn newlines into spaces.
35065 NL2SP=$lt_lt_NL2SP
35066
35067 # How to create reloadable object files.
35068 reload_flag=$lt_reload_flag
35069 reload_cmds=$lt_reload_cmds
35070
35071 # Method to check whether dependent libraries are shared objects.
35072 deplibs_check_method=$lt_deplibs_check_method
35073
35074 # Command to use when deplibs_check_method == "file_magic".
35075 file_magic_cmd=$lt_file_magic_cmd
35076
35077 # The archiver.
35078 AR=$lt_AR
35079 AR_FLAGS=$lt_AR_FLAGS
35080
35081 # A symbol stripping program.
35082 STRIP=$lt_STRIP
35083
35084 # Commands used to install an old-style archive.
35085 RANLIB=$lt_RANLIB
35086 old_postinstall_cmds=$lt_old_postinstall_cmds
35087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35088
35089 # A C compiler.
35090 LTCC=$lt_CC
35091
35092 # LTCC compiler flags.
35093 LTCFLAGS=$lt_CFLAGS
35094
35095 # Take the output of nm and produce a listing of raw symbols and C names.
35096 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35097
35098 # Transform the output of nm in a proper C declaration.
35099 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35100
35101 # Transform the output of nm in a C name address pair.
35102 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35103
35104 # Transform the output of nm in a C name address pair when lib prefix is needed.
35105 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35106
35107 # The name of the directory that contains temporary libtool files.
35108 objdir=$objdir
35109
35110 # Shell to use when invoking shell scripts.
35111 SHELL=$lt_SHELL
35112
35113 # An echo program that does not interpret backslashes.
35114 ECHO=$lt_ECHO
35115
35116 # Used to examine libraries when file_magic_cmd begins with "file".
35117 MAGIC_CMD=$MAGIC_CMD
35118
35119 # Must we lock files when doing compilation?
35120 need_locks=$lt_need_locks
35121
35122 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35123 DSYMUTIL=$lt_DSYMUTIL
35124
35125 # Tool to change global to local symbols on Mac OS X.
35126 NMEDIT=$lt_NMEDIT
35127
35128 # Tool to manipulate fat objects and archives on Mac OS X.
35129 LIPO=$lt_LIPO
35130
35131 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35132 OTOOL=$lt_OTOOL
35133
35134 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35135 OTOOL64=$lt_OTOOL64
35136
35137 # Old archive suffix (normally "a").
35138 libext=$libext
35139
35140 # Shared library suffix (normally ".so").
35141 shrext_cmds=$lt_shrext_cmds
35142
35143 # The commands to extract the exported symbol list from a shared archive.
35144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35145
35146 # Variables whose values should be saved in libtool wrapper scripts and
35147 # restored at link time.
35148 variables_saved_for_relink=$lt_variables_saved_for_relink
35149
35150 # Do we need the "lib" prefix for modules?
35151 need_lib_prefix=$need_lib_prefix
35152
35153 # Do we need a version for libraries?
35154 need_version=$need_version
35155
35156 # Library versioning type.
35157 version_type=$version_type
35158
35159 # Shared library runtime path variable.
35160 runpath_var=$runpath_var
35161
35162 # Shared library path variable.
35163 shlibpath_var=$shlibpath_var
35164
35165 # Is shlibpath searched before the hard-coded library search path?
35166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35167
35168 # Format of library name prefix.
35169 libname_spec=$lt_libname_spec
35170
35171 # List of archive names.  First name is the real one, the rest are links.
35172 # The last name is the one that the linker finds with -lNAME
35173 library_names_spec=$lt_library_names_spec
35174
35175 # The coded name of the library, if different from the real name.
35176 soname_spec=$lt_soname_spec
35177
35178 # Command to use after installation of a shared archive.
35179 postinstall_cmds=$lt_postinstall_cmds
35180
35181 # Command to use after uninstallation of a shared archive.
35182 postuninstall_cmds=$lt_postuninstall_cmds
35183
35184 # Commands used to finish a libtool library installation in a directory.
35185 finish_cmds=$lt_finish_cmds
35186
35187 # As "finish_cmds", except a single script fragment to be evaled but
35188 # not shown.
35189 finish_eval=$lt_finish_eval
35190
35191 # Whether we should hardcode library paths into libraries.
35192 hardcode_into_libs=$hardcode_into_libs
35193
35194 # Compile-time system search path for libraries.
35195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35196
35197 # Run-time system search path for libraries.
35198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35199
35200 # Whether dlopen is supported.
35201 dlopen_support=$enable_dlopen
35202
35203 # Whether dlopen of programs is supported.
35204 dlopen_self=$enable_dlopen_self
35205
35206 # Whether dlopen of statically linked programs is supported.
35207 dlopen_self_static=$enable_dlopen_self_static
35208
35209 # Commands to strip libraries.
35210 old_striplib=$lt_old_striplib
35211 striplib=$lt_striplib
35212
35213
35214 # The linker used to build libraries.
35215 LD=$lt_LD
35216
35217 # Commands used to build an old-style archive.
35218 old_archive_cmds=$lt_old_archive_cmds
35219
35220 # A language specific compiler.
35221 CC=$lt_compiler
35222
35223 # Is the compiler the GNU compiler?
35224 with_gcc=$GCC
35225
35226 # Compiler flag to turn off builtin functions.
35227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35228
35229 # How to pass a linker flag through the compiler.
35230 wl=$lt_lt_prog_compiler_wl
35231
35232 # Additional compiler flags for building library objects.
35233 pic_flag=$lt_lt_prog_compiler_pic
35234
35235 # Compiler flag to prevent dynamic linking.
35236 link_static_flag=$lt_lt_prog_compiler_static
35237
35238 # Does compiler simultaneously support -c and -o options?
35239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35240
35241 # Whether or not to add -lc for building shared libraries.
35242 build_libtool_need_lc=$archive_cmds_need_lc
35243
35244 # Whether or not to disallow shared libs when runtime libs are static.
35245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35246
35247 # Compiler flag to allow reflexive dlopens.
35248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35249
35250 # Compiler flag to generate shared objects directly from archives.
35251 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35252
35253 # Whether the compiler copes with passing no objects directly.
35254 compiler_needs_object=$lt_compiler_needs_object
35255
35256 # Create an old-style archive from a shared archive.
35257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35258
35259 # Create a temporary old-style archive to link instead of a shared archive.
35260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35261
35262 # Commands used to build a shared archive.
35263 archive_cmds=$lt_archive_cmds
35264 archive_expsym_cmds=$lt_archive_expsym_cmds
35265
35266 # Commands used to build a loadable module if different from building
35267 # a shared archive.
35268 module_cmds=$lt_module_cmds
35269 module_expsym_cmds=$lt_module_expsym_cmds
35270
35271 # Whether we are building with GNU ld or not.
35272 with_gnu_ld=$lt_with_gnu_ld
35273
35274 # Flag that allows shared libraries with undefined symbols to be built.
35275 allow_undefined_flag=$lt_allow_undefined_flag
35276
35277 # Flag that enforces no undefined symbols.
35278 no_undefined_flag=$lt_no_undefined_flag
35279
35280 # Flag to hardcode \$libdir into a binary during linking.
35281 # This must work even if \$libdir does not exist
35282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35283
35284 # If ld is used when linking, flag to hardcode \$libdir into a binary
35285 # during linking.  This must work even if \$libdir does not exist.
35286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35287
35288 # Whether we need a single "-rpath" flag with a separated argument.
35289 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35290
35291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35292 # DIR into the resulting binary.
35293 hardcode_direct=$hardcode_direct
35294
35295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35296 # DIR into the resulting binary and the resulting library dependency is
35297 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35298 # library is relocated.
35299 hardcode_direct_absolute=$hardcode_direct_absolute
35300
35301 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35302 # into the resulting binary.
35303 hardcode_minus_L=$hardcode_minus_L
35304
35305 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35306 # into the resulting binary.
35307 hardcode_shlibpath_var=$hardcode_shlibpath_var
35308
35309 # Set to "yes" if building a shared library automatically hardcodes DIR
35310 # into the library and all subsequent libraries and executables linked
35311 # against it.
35312 hardcode_automatic=$hardcode_automatic
35313
35314 # Set to yes if linker adds runtime paths of dependent libraries
35315 # to runtime path list.
35316 inherit_rpath=$inherit_rpath
35317
35318 # Whether libtool must link a program against all its dependency libraries.
35319 link_all_deplibs=$link_all_deplibs
35320
35321 # Fix the shell variable \$srcfile for the compiler.
35322 fix_srcfile_path=$lt_fix_srcfile_path
35323
35324 # Set to "yes" if exported symbols are required.
35325 always_export_symbols=$always_export_symbols
35326
35327 # The commands to list exported symbols.
35328 export_symbols_cmds=$lt_export_symbols_cmds
35329
35330 # Symbols that should not be listed in the preloaded symbols.
35331 exclude_expsyms=$lt_exclude_expsyms
35332
35333 # Symbols that must always be exported.
35334 include_expsyms=$lt_include_expsyms
35335
35336 # Commands necessary for linking programs (against libraries) with templates.
35337 prelink_cmds=$lt_prelink_cmds
35338
35339 # Specify filename containing input files.
35340 file_list_spec=$lt_file_list_spec
35341
35342 # How to hardcode a shared library path into an executable.
35343 hardcode_action=$hardcode_action
35344
35345 # The directories searched by this compiler when creating a shared library.
35346 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35347
35348 # Dependencies to place before and after the objects being linked to
35349 # create a shared library.
35350 predep_objects=$lt_predep_objects
35351 postdep_objects=$lt_postdep_objects
35352 predeps=$lt_predeps
35353 postdeps=$lt_postdeps
35354
35355 # The library search path used internally by the compiler when linking
35356 # a shared library.
35357 compiler_lib_search_path=$lt_compiler_lib_search_path
35358
35359 # ### END LIBTOOL CONFIG
35360
35361 _LT_EOF
35362
35363   case $host_os in
35364   aix3*)
35365     cat <<\_LT_EOF >> "$cfgfile"
35366 # AIX sometimes has problems with the GCC collect2 program.  For some
35367 # reason, if we set the COLLECT_NAMES environment variable, the problems
35368 # vanish in a puff of smoke.
35369 if test "X${COLLECT_NAMES+set}" != Xset; then
35370   COLLECT_NAMES=
35371   export COLLECT_NAMES
35372 fi
35373 _LT_EOF
35374     ;;
35375   esac
35376
35377
35378 ltmain="$ac_aux_dir/ltmain.sh"
35379
35380
35381   # We use sed instead of cat because bash on DJGPP gets confused if
35382   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
35383   # text mode, it properly converts lines to CR/LF.  This bash problem
35384   # is reportedly fixed, but why not run on old versions too?
35385   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35386     || (rm -f "$cfgfile"; exit 1)
35387
35388   case $xsi_shell in
35389   yes)
35390     cat << \_LT_EOF >> "$cfgfile"
35391
35392 # func_dirname file append nondir_replacement
35393 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35394 # otherwise set result to NONDIR_REPLACEMENT.
35395 func_dirname ()
35396 {
35397   case ${1} in
35398     */*) func_dirname_result="${1%/*}${2}" ;;
35399     *  ) func_dirname_result="${3}" ;;
35400   esac
35401 }
35402
35403 # func_basename file
35404 func_basename ()
35405 {
35406   func_basename_result="${1##*/}"
35407 }
35408
35409 # func_dirname_and_basename file append nondir_replacement
35410 # perform func_basename and func_dirname in a single function
35411 # call:
35412 #   dirname:  Compute the dirname of FILE.  If nonempty,
35413 #             add APPEND to the result, otherwise set result
35414 #             to NONDIR_REPLACEMENT.
35415 #             value returned in "$func_dirname_result"
35416 #   basename: Compute filename of FILE.
35417 #             value retuned in "$func_basename_result"
35418 # Implementation must be kept synchronized with func_dirname
35419 # and func_basename. For efficiency, we do not delegate to
35420 # those functions but instead duplicate the functionality here.
35421 func_dirname_and_basename ()
35422 {
35423   case ${1} in
35424     */*) func_dirname_result="${1%/*}${2}" ;;
35425     *  ) func_dirname_result="${3}" ;;
35426   esac
35427   func_basename_result="${1##*/}"
35428 }
35429
35430 # func_stripname prefix suffix name
35431 # strip PREFIX and SUFFIX off of NAME.
35432 # PREFIX and SUFFIX must not contain globbing or regex special
35433 # characters, hashes, percent signs, but SUFFIX may contain a leading
35434 # dot (in which case that matches only a dot).
35435 func_stripname ()
35436 {
35437   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35438   # positional parameters, so assign one to ordinary parameter first.
35439   func_stripname_result=${3}
35440   func_stripname_result=${func_stripname_result#"${1}"}
35441   func_stripname_result=${func_stripname_result%"${2}"}
35442 }
35443
35444 # func_opt_split
35445 func_opt_split ()
35446 {
35447   func_opt_split_opt=${1%%=*}
35448   func_opt_split_arg=${1#*=}
35449 }
35450
35451 # func_lo2o object
35452 func_lo2o ()
35453 {
35454   case ${1} in
35455     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35456     *)    func_lo2o_result=${1} ;;
35457   esac
35458 }
35459
35460 # func_xform libobj-or-source
35461 func_xform ()
35462 {
35463   func_xform_result=${1%.*}.lo
35464 }
35465
35466 # func_arith arithmetic-term...
35467 func_arith ()
35468 {
35469   func_arith_result=$(( $* ))
35470 }
35471
35472 # func_len string
35473 # STRING may not start with a hyphen.
35474 func_len ()
35475 {
35476   func_len_result=${#1}
35477 }
35478
35479 _LT_EOF
35480     ;;
35481   *) # Bourne compatible functions.
35482     cat << \_LT_EOF >> "$cfgfile"
35483
35484 # func_dirname file append nondir_replacement
35485 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
35486 # otherwise set result to NONDIR_REPLACEMENT.
35487 func_dirname ()
35488 {
35489   # Extract subdirectory from the argument.
35490   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35491   if test "X$func_dirname_result" = "X${1}"; then
35492     func_dirname_result="${3}"
35493   else
35494     func_dirname_result="$func_dirname_result${2}"
35495   fi
35496 }
35497
35498 # func_basename file
35499 func_basename ()
35500 {
35501   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35502 }
35503
35504
35505 # func_stripname prefix suffix name
35506 # strip PREFIX and SUFFIX off of NAME.
35507 # PREFIX and SUFFIX must not contain globbing or regex special
35508 # characters, hashes, percent signs, but SUFFIX may contain a leading
35509 # dot (in which case that matches only a dot).
35510 # func_strip_suffix prefix name
35511 func_stripname ()
35512 {
35513   case ${2} in
35514     .*) func_stripname_result=`$ECHO "X${3}" \
35515            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35516     *)  func_stripname_result=`$ECHO "X${3}" \
35517            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35518   esac
35519 }
35520
35521 # sed scripts:
35522 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35523 my_sed_long_arg='1s/^-[^=]*=//'
35524
35525 # func_opt_split
35526 func_opt_split ()
35527 {
35528   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35529   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35530 }
35531
35532 # func_lo2o object
35533 func_lo2o ()
35534 {
35535   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35536 }
35537
35538 # func_xform libobj-or-source
35539 func_xform ()
35540 {
35541   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35542 }
35543
35544 # func_arith arithmetic-term...
35545 func_arith ()
35546 {
35547   func_arith_result=`expr "$@"`
35548 }
35549
35550 # func_len string
35551 # STRING may not start with a hyphen.
35552 func_len ()
35553 {
35554   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35555 }
35556
35557 _LT_EOF
35558 esac
35559
35560 case $lt_shell_append in
35561   yes)
35562     cat << \_LT_EOF >> "$cfgfile"
35563
35564 # func_append var value
35565 # Append VALUE to the end of shell variable VAR.
35566 func_append ()
35567 {
35568   eval "$1+=\$2"
35569 }
35570 _LT_EOF
35571     ;;
35572   *)
35573     cat << \_LT_EOF >> "$cfgfile"
35574
35575 # func_append var value
35576 # Append VALUE to the end of shell variable VAR.
35577 func_append ()
35578 {
35579   eval "$1=\$$1\$2"
35580 }
35581
35582 _LT_EOF
35583     ;;
35584   esac
35585
35586
35587   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35588     || (rm -f "$cfgfile"; exit 1)
35589
35590   mv -f "$cfgfile" "$ofile" ||
35591     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35592   chmod +x "$ofile"
35593
35594
35595     cat <<_LT_EOF >> "$ofile"
35596
35597 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35598
35599 # The linker used to build libraries.
35600 LD=$lt_LD_CXX
35601
35602 # Commands used to build an old-style archive.
35603 old_archive_cmds=$lt_old_archive_cmds_CXX
35604
35605 # A language specific compiler.
35606 CC=$lt_compiler_CXX
35607
35608 # Is the compiler the GNU compiler?
35609 with_gcc=$GCC_CXX
35610
35611 # Compiler flag to turn off builtin functions.
35612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35613
35614 # How to pass a linker flag through the compiler.
35615 wl=$lt_lt_prog_compiler_wl_CXX
35616
35617 # Additional compiler flags for building library objects.
35618 pic_flag=$lt_lt_prog_compiler_pic_CXX
35619
35620 # Compiler flag to prevent dynamic linking.
35621 link_static_flag=$lt_lt_prog_compiler_static_CXX
35622
35623 # Does compiler simultaneously support -c and -o options?
35624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35625
35626 # Whether or not to add -lc for building shared libraries.
35627 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35628
35629 # Whether or not to disallow shared libs when runtime libs are static.
35630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35631
35632 # Compiler flag to allow reflexive dlopens.
35633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35634
35635 # Compiler flag to generate shared objects directly from archives.
35636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35637
35638 # Whether the compiler copes with passing no objects directly.
35639 compiler_needs_object=$lt_compiler_needs_object_CXX
35640
35641 # Create an old-style archive from a shared archive.
35642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35643
35644 # Create a temporary old-style archive to link instead of a shared archive.
35645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35646
35647 # Commands used to build a shared archive.
35648 archive_cmds=$lt_archive_cmds_CXX
35649 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35650
35651 # Commands used to build a loadable module if different from building
35652 # a shared archive.
35653 module_cmds=$lt_module_cmds_CXX
35654 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35655
35656 # Whether we are building with GNU ld or not.
35657 with_gnu_ld=$lt_with_gnu_ld_CXX
35658
35659 # Flag that allows shared libraries with undefined symbols to be built.
35660 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35661
35662 # Flag that enforces no undefined symbols.
35663 no_undefined_flag=$lt_no_undefined_flag_CXX
35664
35665 # Flag to hardcode \$libdir into a binary during linking.
35666 # This must work even if \$libdir does not exist
35667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35668
35669 # If ld is used when linking, flag to hardcode \$libdir into a binary
35670 # during linking.  This must work even if \$libdir does not exist.
35671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35672
35673 # Whether we need a single "-rpath" flag with a separated argument.
35674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35675
35676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35677 # DIR into the resulting binary.
35678 hardcode_direct=$hardcode_direct_CXX
35679
35680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35681 # DIR into the resulting binary and the resulting library dependency is
35682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35683 # library is relocated.
35684 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35685
35686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35687 # into the resulting binary.
35688 hardcode_minus_L=$hardcode_minus_L_CXX
35689
35690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35691 # into the resulting binary.
35692 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35693
35694 # Set to "yes" if building a shared library automatically hardcodes DIR
35695 # into the library and all subsequent libraries and executables linked
35696 # against it.
35697 hardcode_automatic=$hardcode_automatic_CXX
35698
35699 # Set to yes if linker adds runtime paths of dependent libraries
35700 # to runtime path list.
35701 inherit_rpath=$inherit_rpath_CXX
35702
35703 # Whether libtool must link a program against all its dependency libraries.
35704 link_all_deplibs=$link_all_deplibs_CXX
35705
35706 # Fix the shell variable \$srcfile for the compiler.
35707 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35708
35709 # Set to "yes" if exported symbols are required.
35710 always_export_symbols=$always_export_symbols_CXX
35711
35712 # The commands to list exported symbols.
35713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35714
35715 # Symbols that should not be listed in the preloaded symbols.
35716 exclude_expsyms=$lt_exclude_expsyms_CXX
35717
35718 # Symbols that must always be exported.
35719 include_expsyms=$lt_include_expsyms_CXX
35720
35721 # Commands necessary for linking programs (against libraries) with templates.
35722 prelink_cmds=$lt_prelink_cmds_CXX
35723
35724 # Specify filename containing input files.
35725 file_list_spec=$lt_file_list_spec_CXX
35726
35727 # How to hardcode a shared library path into an executable.
35728 hardcode_action=$hardcode_action_CXX
35729
35730 # The directories searched by this compiler when creating a shared library.
35731 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35732
35733 # Dependencies to place before and after the objects being linked to
35734 # create a shared library.
35735 predep_objects=$lt_predep_objects_CXX
35736 postdep_objects=$lt_postdep_objects_CXX
35737 predeps=$lt_predeps_CXX
35738 postdeps=$lt_postdeps_CXX
35739
35740 # The library search path used internally by the compiler when linking
35741 # a shared library.
35742 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35743
35744 # ### END LIBTOOL TAG CONFIG: CXX
35745 _LT_EOF
35746
35747  ;;
35748     "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35749     "Magick-config.in":C) chmod +x magick/Magick-config ;;
35750     "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35751     "Wand-config.in":C) chmod +x wand/Wand-config ;;
35752     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35753     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35754
35755   esac
35756 done # for ac_tag
35757
35758
35759 as_fn_exit 0
35760 _ACEOF
35761 ac_clean_files=$ac_clean_files_save
35762
35763 test $ac_write_fail = 0 ||
35764   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35765
35766
35767 # configure is writing to config.log, and then calls config.status.
35768 # config.status does its own redirection, appending to config.log.
35769 # Unfortunately, on DOS this fails, as config.log is still kept open
35770 # by configure, so config.status won't be able to write to it; its
35771 # output is simply discarded.  So we exec the FD to /dev/null,
35772 # effectively closing config.log, so it can be properly (re)opened and
35773 # appended to by config.status.  When coming back to configure, we
35774 # need to make the FD available again.
35775 if test "$no_create" != yes; then
35776   ac_cs_success=:
35777   ac_config_status_args=
35778   test "$silent" = yes &&
35779     ac_config_status_args="$ac_config_status_args --quiet"
35780   exec 5>/dev/null
35781   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35782   exec 5>>config.log
35783   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35784   # would make configure fail if this is the last instruction.
35785   $ac_cs_success || as_fn_exit $?
35786 fi
35787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35788   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35790 fi
35791
35792
35793 rm -f magick-version
35794
35795 result_dejavu_font_dir='none'
35796 if test "${dejavu_font_dir}x" != 'x'; then
35797     result_dejavu_font_dir=$dejavu_font_dir
35798 fi
35799
35800 result_ghostscript_font_dir='none'
35801 if test "${ghostscript_font_dir}x" != 'x'; then
35802     result_ghostscript_font_dir=$ghostscript_font_dir
35803 fi
35804
35805 result_windows_font_dir='none'
35806 if test "${windows_font_dir}x" != 'x'; then
35807     result_windows_font_dir=${windows_font_dir}
35808 fi
35809
35810 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35811 ImageMagick is configured as follows. Please verify that this configuration
35812 matches your expectations.
35813
35814 Host system type: $host
35815 Build system type: $build
35816
35817                   Option                        Value
35818 -------------------------------------------------------------------------------
35819 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35820 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35821 Module support    --with-modules=$with_modules          $with_modules
35822 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35823 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35824 High Dynamic Range Imagery
35825                   --enable-hdri=$enable_hdri            $enable_hdri
35826
35827 Delegate Configuration:
35828 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35829 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35830 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35831 DJVU              --with-djvu=$with_djvu                $have_djvu
35832 DPS               --with-dps=$with_dps          $have_dps
35833 FFTW              --with-fftw=$with_fftw                $have_fftw
35834 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35835 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35836 FreeType          --with-freetype=$with_freetype                $have_freetype
35837 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35838 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35839 Ghostscript       None                          $PSDelegate ($GSVersion)
35840 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35841 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35842 Graphviz          --with-gvc=$with_gvc          $have_gvc
35843 JBIG              --with-jbig=$with_jbig                $have_jbig
35844 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35845 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35846 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35847 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35848 LQR               --with-lqr=$with_lqr          $have_lqr
35849 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35850 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35851 PERL              --with-perl=$with_perl                $have_perl
35852 PNG               --with-png=$with_png          $have_png
35853 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35854 TIFF              --with-tiff=$with_tiff                $have_tiff
35855 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35856 WMF               --with-wmf=$with_wmf          $have_wmf
35857 X11               --with-x=$with_x                      $have_x
35858 XML               --with-xml=$with_xml          $have_xml
35859 ZLIB              --with-zlib=$with_zlib                $have_zlib
35860
35861 X11 Configuration:
35862       X_CFLAGS        = $X_CFLAGS
35863       X_PRE_LIBS      = $X_PRE_LIBS
35864       X_LIBS          = $X_LIBS
35865       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35866
35867 Options used to compile and link:
35868   PREFIX          = $PREFIX_DIR
35869   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35870   VERSION         = $PACKAGE_VERSION
35871   CC              = $CC
35872   CFLAGS          = $CFLAGS
35873   CPPFLAGS        = $MAGICK_CPPFLAGS
35874   PCFLAGS         = $MAGICK_PCFLAGS
35875   DEFS            = $DEFS
35876   LDFLAGS         = $LDFLAGS
35877   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35878   LIBS            = $MAGICK_LIBS
35879   CXX             = $CXX
35880   CXXFLAGS        = $CXXFLAGS
35881   FEATURES        = $MAGICK_FEATURES
35882 " >&5
35883 $as_echo "
35884 ImageMagick is configured as follows. Please verify that this configuration
35885 matches your expectations.
35886
35887 Host system type: $host
35888 Build system type: $build
35889
35890                   Option                        Value
35891 -------------------------------------------------------------------------------
35892 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
35893 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
35894 Module support    --with-modules=$with_modules          $with_modules
35895 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
35896 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
35897 High Dynamic Range Imagery
35898                   --enable-hdri=$enable_hdri            $enable_hdri
35899
35900 Delegate Configuration:
35901 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
35902 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
35903 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
35904 DJVU              --with-djvu=$with_djvu                $have_djvu
35905 DPS               --with-dps=$with_dps          $have_dps
35906 FFTW              --with-fftw=$with_fftw                $have_fftw
35907 FlashPIX          --with-fpx=$with_fpx          $have_fpx
35908 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
35909 FreeType          --with-freetype=$with_freetype                $have_freetype
35910 GhostPCL          None                          $PCLDelegate ($PCLVersion)
35911 GhostXPS          None                          $XPSDelegate ($XPSVersion)
35912 Ghostscript       None                          $PSDelegate ($GSVersion)
35913 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
35914 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
35915 Graphviz          --with-gvc=$with_gvc          $have_gvc
35916 JBIG              --with-jbig=$with_jbig                $have_jbig
35917 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
35918 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
35919 LCMS v1           --with-lcms=$with_lcms                $have_lcms
35920 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
35921 LQR               --with-lqr=$with_lqr          $have_lqr
35922 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
35923 OpenEXR           --with-openexr=$with_openexr          $have_openexr
35924 PERL              --with-perl=$with_perl                $have_perl
35925 PNG               --with-png=$with_png          $have_png
35926 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
35927 TIFF              --with-tiff=$with_tiff                $have_tiff
35928 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
35929 WMF               --with-wmf=$with_wmf          $have_wmf
35930 X11               --with-x=$with_x                      $have_x
35931 XML               --with-xml=$with_xml          $have_xml
35932 ZLIB              --with-zlib=$with_zlib                $have_zlib
35933
35934 X11 Configuration:
35935       X_CFLAGS        = $X_CFLAGS
35936       X_PRE_LIBS      = $X_PRE_LIBS
35937       X_LIBS          = $X_LIBS
35938       X_EXTRA_LIBS    = $X_EXTRA_LIBS
35939
35940 Options used to compile and link:
35941   PREFIX          = $PREFIX_DIR
35942   EXEC-PREFIX     = $EXEC_PREFIX_DIR
35943   VERSION         = $PACKAGE_VERSION
35944   CC              = $CC
35945   CFLAGS          = $CFLAGS
35946   CPPFLAGS        = $MAGICK_CPPFLAGS
35947   PCFLAGS         = $MAGICK_PCFLAGS
35948   DEFS            = $DEFS
35949   LDFLAGS         = $LDFLAGS
35950   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
35951   LIBS            = $MAGICK_LIBS
35952   CXX             = $CXX
35953   CXXFLAGS        = $CXXFLAGS
35954   FEATURES        = $MAGICK_FEATURES
35955 " >&6; }