Merge branch 'upstream' into tizen
[platform/upstream/lcms2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for lcms2 2.16.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184
185   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189     PATH=/empty FPATH=/empty; export PATH FPATH
190     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193   if (eval "$as_required") 2>/dev/null
194 then :
195   as_have_required=yes
196 else $as_nop
197   as_have_required=no
198 fi
199   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
200 then :
201
202 else $as_nop
203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
204 as_found=false
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
206 do
207   IFS=$as_save_IFS
208   case $as_dir in #(((
209     '') as_dir=./ ;;
210     */) ;;
211     *) as_dir=$as_dir/ ;;
212   esac
213   as_found=:
214   case $as_dir in #(
215          /*)
216            for as_base in sh bash ksh sh5; do
217              # Try only shells that exist, to save several forks.
218              as_shell=$as_dir$as_base
219              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
221 then :
222   CONFIG_SHELL=$as_shell as_have_required=yes
223                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
224 then :
225   break 2
226 fi
227 fi
228            done;;
229        esac
230   as_found=false
231 done
232 IFS=$as_save_IFS
233 if $as_found
234 then :
235
236 else $as_nop
237   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
239 then :
240   CONFIG_SHELL=$SHELL as_have_required=yes
241 fi
242 fi
243
244
245       if test "x$CONFIG_SHELL" != x
246 then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno
269 then :
270   printf "%s\n" "$0: This script requires a shell more modern than all"
271   printf "%s\n" "$0: the shells that I found on your system."
272   if test ${ZSH_VERSION+y} ; then
273     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
275   else
276     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280   fi
281   exit 1
282 fi
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299   { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309   return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317   set +e
318   as_fn_set_status $1
319   exit $1
320 } # as_fn_exit
321 # as_fn_nop
322 # ---------
323 # Do nothing but, unlike ":", preserve the value of $?.
324 as_fn_nop ()
325 {
326   return $?
327 }
328 as_nop=as_fn_nop
329
330 # as_fn_mkdir_p
331 # -------------
332 # Create "$as_dir" as a directory, including parents if necessary.
333 as_fn_mkdir_p ()
334 {
335
336   case $as_dir in #(
337   -*) as_dir=./$as_dir;;
338   esac
339   test -d "$as_dir" || eval $as_mkdir_p || {
340     as_dirs=
341     while :; do
342       case $as_dir in #(
343       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344       *) as_qdir=$as_dir;;
345       esac
346       as_dirs="'$as_qdir' $as_dirs"
347       as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349          X"$as_dir" : 'X\(//\)[^/]' \| \
350          X"$as_dir" : 'X\(//\)$' \| \
351          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\/\)[^/].*/{
358             s//\1/
359             q
360           }
361           /^X\(\/\/\)$/{
362             s//\1/
363             q
364           }
365           /^X\(\/\).*/{
366             s//\1/
367             q
368           }
369           s/.*/./; q'`
370       test -d "$as_dir" && break
371     done
372     test -z "$as_dirs" || eval "mkdir $as_dirs"
373   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376 } # as_fn_mkdir_p
377
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
382 {
383   test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
390 # implementations.
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392 then :
393   eval 'as_fn_append ()
394   {
395     eval $1+=\$2
396   }'
397 else $as_nop
398   as_fn_append ()
399   {
400     eval $1=\$$1\$2
401   }
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411   eval 'as_fn_arith ()
412   {
413     as_val=$(( $* ))
414   }'
415 else $as_nop
416   as_fn_arith ()
417   {
418     as_val=`expr "$@" || test $? -eq 1`
419   }
420 fi # as_fn_arith
421
422 # as_fn_nop
423 # ---------
424 # Do nothing but, unlike ":", preserve the value of $?.
425 as_fn_nop ()
426 {
427   return $?
428 }
429 as_nop=as_fn_nop
430
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
436 as_fn_error ()
437 {
438   as_status=$1; test $as_status -eq 0 && as_status=1
439   if test "$4"; then
440     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
442   fi
443   printf "%s\n" "$as_me: error: $2" >&2
444   as_fn_exit $as_status
445 } # as_fn_error
446
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448    test "X`expr 00001 : '.*\(...\)'`" = X001; then
449   as_expr=expr
450 else
451   as_expr=false
452 fi
453
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455   as_basename=basename
456 else
457   as_basename=false
458 fi
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468          X"$0" : 'X\(//\)$' \| \
469          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471     sed '/^.*\/\([^/][^/]*\)\/*$/{
472             s//\1/
473             q
474           }
475           /^X\/\(\/\/\)$/{
476             s//\1/
477             q
478           }
479           /^X\/\(\/\).*/{
480             s//\1/
481             q
482           }
483           s/.*/./; q'`
484
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
491
492
493   as_lineno_1=$LINENO as_lineno_1a=$LINENO
494   as_lineno_2=$LINENO as_lineno_2a=$LINENO
495   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
498   sed -n '
499     p
500     /[$]LINENO/=
501   ' <$as_myself |
502     sed '
503       s/[$]LINENO.*/&-/
504       t lineno
505       b
506       :lineno
507       N
508       :loop
509       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510       t loop
511       s/-\n.*//
512     ' >$as_me.lineno &&
513   chmod +x "$as_me.lineno" ||
514     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
515
516   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517   # already done that, so ensure we don't try to do so again and fall
518   # in an infinite loop.  This has already happened in practice.
519   _as_can_reexec=no; export _as_can_reexec
520   # Don't try to exec as it changes $[0], causing all sort of problems
521   # (the dirname of $[0] is not the place where we might find the
522   # original and so on.  Autoconf is especially sensitive to this).
523   . "./$as_me.lineno"
524   # Exit status is that of the last command.
525   exit
526 }
527
528
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
534 -n*)
535   case `echo 'xy\c'` in
536   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
537   xy)  ECHO_C='\c';;
538   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
539        ECHO_T=' ';;
540   esac;;
541 *)
542   ECHO_N='-n';;
543 esac
544
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n.  New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
550
551
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554   rm -f conf$$.dir/conf$$.file
555 else
556   rm -f conf$$.dir
557   mkdir conf$$.dir 2>/dev/null
558 fi
559 if (echo >conf$$.file) 2>/dev/null; then
560   if ln -s conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s='ln -s'
562     # ... but there are two gotchas:
563     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565     # In both cases, we have to default to `cp -pR'.
566     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
567       as_ln_s='cp -pR'
568   elif ln conf$$.file conf$$ 2>/dev/null; then
569     as_ln_s=ln
570   else
571     as_ln_s='cp -pR'
572   fi
573 else
574   as_ln_s='cp -pR'
575 fi
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
578
579 if mkdir -p . 2>/dev/null; then
580   as_mkdir_p='mkdir -p "$as_dir"'
581 else
582   test -d ./-p && rmdir ./-p
583   as_mkdir_p=false
584 fi
585
586 as_test_x='test -x'
587 as_executable_p=as_fn_executable_p
588
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
591
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
594
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597
598 test -n "$DJDIR" || exec 7<&0 </dev/null
599 exec 6>&1
600
601 # Name of the host.
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
605
606 #
607 # Initializations.
608 #
609 ac_default_prefix=/usr/local
610 ac_clean_files=
611 ac_config_libobj_dir=.
612 LIBOBJS=
613 cross_compiling=no
614 subdirs=
615 MFLAGS=
616 MAKEFLAGS=
617
618 # Identity of this package.
619 PACKAGE_NAME='lcms2'
620 PACKAGE_TARNAME='lcms2'
621 PACKAGE_VERSION='2.16'
622 PACKAGE_STRING='lcms2 2.16'
623 PACKAGE_BUGREPORT=''
624 PACKAGE_URL=''
625
626 # Factoring default headers for most tests.
627 ac_includes_default="\
628 #include <stddef.h>
629 #ifdef HAVE_STDIO_H
630 # include <stdio.h>
631 #endif
632 #ifdef HAVE_STDLIB_H
633 # include <stdlib.h>
634 #endif
635 #ifdef HAVE_STRING_H
636 # include <string.h>
637 #endif
638 #ifdef HAVE_INTTYPES_H
639 # include <inttypes.h>
640 #endif
641 #ifdef HAVE_STDINT_H
642 # include <stdint.h>
643 #endif
644 #ifdef HAVE_STRINGS_H
645 # include <strings.h>
646 #endif
647 #ifdef HAVE_SYS_TYPES_H
648 # include <sys/types.h>
649 #endif
650 #ifdef HAVE_SYS_STAT_H
651 # include <sys/stat.h>
652 #endif
653 #ifdef HAVE_UNISTD_H
654 # include <unistd.h>
655 #endif"
656
657 ac_header_c_list=
658 ac_subst_vars='am__EXEEXT_FALSE
659 am__EXEEXT_TRUE
660 LTLIBOBJS
661 LIBOBJS
662 COND_THREADED_FALSE
663 COND_THREADED_TRUE
664 COND_FASTFLOAT_FALSE
665 COND_FASTFLOAT_TRUE
666 TIFFICC_DEPLIBS
667 JPEGICC_DEPLIBS
668 LIB_PLUGINS
669 LCMS_LIB_DEPLIBS
670 LIB_TIFF
671 HasTIFF_FALSE
672 HasTIFF_TRUE
673 LIB_ZLIB
674 HasZLIB_FALSE
675 HasZLIB_TRUE
676 LIB_JPEG
677 HasJPEG_FALSE
678 HasJPEG_TRUE
679 LIB_THREAD
680 LIB_MATH
681 PTHREAD_CFLAGS
682 PTHREAD_LIBS
683 PTHREAD_CXX
684 PTHREAD_CC
685 ax_pthread_config
686 inline
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 LIBTOOL_DEPS
691 AS
692 CXXCPP
693 LT_SYS_LIBRARY_PATH
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 FILECMD
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 LIBTOOL
716 am__fastdepCXX_FALSE
717 am__fastdepCXX_TRUE
718 CXXDEPMODE
719 ac_ct_CXX
720 CXXFLAGS
721 CXX
722 CPP
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 CSCOPE
744 ETAGS
745 CTAGS
746 am__untar
747 am__tar
748 AMTAR
749 am__leading_dot
750 SET_MAKE
751 AWK
752 mkdir_p
753 MKDIR_P
754 INSTALL_STRIP_PROGRAM
755 STRIP
756 install_sh
757 MAKEINFO
758 AUTOHEADER
759 AUTOMAKE
760 AUTOCONF
761 ACLOCAL
762 VERSION
763 PACKAGE
764 CYGPATH_W
765 am__isrc
766 INSTALL_DATA
767 INSTALL_SCRIPT
768 INSTALL_PROGRAM
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBRARY_AGE
778 LIBRARY_REVISION
779 LIBRARY_CURRENT
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 runstatedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL
819 am__quote'
820 ac_subst_files=''
821 ac_user_opts='
822 enable_option_checking
823 enable_silent_rules
824 enable_dependency_tracking
825 enable_shared
826 enable_static
827 with_pic
828 enable_fast_install
829 with_aix_soname
830 with_gnu_ld
831 with_sysroot
832 enable_libtool_lock
833 enable_maintainer_mode
834 with_jpeg
835 with_tiff
836 with_zlib
837 with_fastfloat
838 with_threaded
839 with_threads
840 '
841       ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP
850 CXX
851 CXXFLAGS
852 CCC
853 LT_SYS_LIBRARY_PATH
854 CXXCPP'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 ac_unrecognized_opts=
861 ac_unrecognized_sep=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 runstatedir='${localstatedir}/run'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
898 htmldir='${docdir}'
899 dvidir='${docdir}'
900 pdfdir='${docdir}'
901 psdir='${docdir}'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
905
906 ac_prev=
907 ac_dashdash=
908 for ac_option
909 do
910   # If the previous option needs an argument, assign it.
911   if test -n "$ac_prev"; then
912     eval $ac_prev=\$ac_option
913     ac_prev=
914     continue
915   fi
916
917   case $ac_option in
918   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
919   *=)   ac_optarg= ;;
920   *)    ac_optarg=yes ;;
921   esac
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error $? "invalid feature name: \`$ac_useropt'"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=no ;;
974
975   -docdir | --docdir | --docdi | --doc | --do)
976     ac_prev=docdir ;;
977   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978     docdir=$ac_optarg ;;
979
980   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981     ac_prev=dvidir ;;
982   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983     dvidir=$ac_optarg ;;
984
985   -enable-* | --enable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: \`$ac_useropt'"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -runstatedir | --runstatedir | --runstatedi | --runstated \
1145   | --runstate | --runstat | --runsta | --runst | --runs \
1146   | --run | --ru | --r)
1147     ac_prev=runstatedir ;;
1148   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150   | --run=* | --ru=* | --r=*)
1151     runstatedir=$ac_optarg ;;
1152
1153   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154     ac_prev=sbindir ;;
1155   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156   | --sbi=* | --sb=*)
1157     sbindir=$ac_optarg ;;
1158
1159   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161   | --sharedst | --shareds | --shared | --share | --shar \
1162   | --sha | --sh)
1163     ac_prev=sharedstatedir ;;
1164   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167   | --sha=* | --sh=*)
1168     sharedstatedir=$ac_optarg ;;
1169
1170   -site | --site | --sit)
1171     ac_prev=site ;;
1172   -site=* | --site=* | --sit=*)
1173     site=$ac_optarg ;;
1174
1175   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176     ac_prev=srcdir ;;
1177   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178     srcdir=$ac_optarg ;;
1179
1180   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181   | --syscon | --sysco | --sysc | --sys | --sy)
1182     ac_prev=sysconfdir ;;
1183   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185     sysconfdir=$ac_optarg ;;
1186
1187   -target | --target | --targe | --targ | --tar | --ta | --t)
1188     ac_prev=target_alias ;;
1189   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190     target_alias=$ac_optarg ;;
1191
1192   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193     verbose=yes ;;
1194
1195   -version | --version | --versio | --versi | --vers | -V)
1196     ac_init_version=: ;;
1197
1198   -with-* | --with-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       as_fn_error $? "invalid package name: \`$ac_useropt'"
1203     ac_useropt_orig=$ac_useropt
1204     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205     case $ac_user_opts in
1206       *"
1207 "with_$ac_useropt"
1208 "*) ;;
1209       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210          ac_unrecognized_sep=', ';;
1211     esac
1212     eval with_$ac_useropt=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218       as_fn_error $? "invalid package name: \`$ac_useropt'"
1219     ac_useropt_orig=$ac_useropt
1220     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221     case $ac_user_opts in
1222       *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226          ac_unrecognized_sep=', ';;
1227     esac
1228     eval with_$ac_useropt=no ;;
1229
1230   --x)
1231     # Obsolete; use --with-x.
1232     with_x=yes ;;
1233
1234   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235   | --x-incl | --x-inc | --x-in | --x-i)
1236     ac_prev=x_includes ;;
1237   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239     x_includes=$ac_optarg ;;
1240
1241   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243     ac_prev=x_libraries ;;
1244   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246     x_libraries=$ac_optarg ;;
1247
1248   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1250     ;;
1251
1252   *=*)
1253     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254     # Reject names that are not valid shell variable names.
1255     case $ac_envvar in #(
1256       '' | [0-9]* | *[!_$as_cr_alnum]* )
1257       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258     esac
1259     eval $ac_envvar=\$ac_optarg
1260     export $ac_envvar ;;
1261
1262   *)
1263     # FIXME: should be removed in autoconf 3.0.
1264     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1265     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1267     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268     ;;
1269
1270   esac
1271 done
1272
1273 if test -n "$ac_prev"; then
1274   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275   as_fn_error $? "missing argument to $ac_option"
1276 fi
1277
1278 if test -n "$ac_unrecognized_opts"; then
1279   case $enable_option_checking in
1280     no) ;;
1281     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283   esac
1284 fi
1285
1286 # Check all directory arguments for consistency.
1287 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288                 datadir sysconfdir sharedstatedir localstatedir includedir \
1289                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290                 libdir localedir mandir runstatedir
1291 do
1292   eval ac_val=\$$ac_var
1293   # Remove trailing slashes.
1294   case $ac_val in
1295     */ )
1296       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297       eval $ac_var=\$ac_val;;
1298   esac
1299   # Be sure to have absolute directory names.
1300   case $ac_val in
1301     [\\/$]* | ?:[\\/]* )  continue;;
1302     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303   esac
1304   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305 done
1306
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1310 build=$build_alias
1311 host=$host_alias
1312 target=$target_alias
1313
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316   if test "x$build_alias" = x; then
1317     cross_compiling=maybe
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334   as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339   ac_srcdir_defaulted=yes
1340   # Try the directory containing this script, then the parent directory.
1341   ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343          X"$as_myself" : 'X\(//\)[^/]' \| \
1344          X"$as_myself" : 'X\(//\)$' \| \
1345          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 printf "%s\n" X"$as_myself" |
1347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\/\)[^/].*/{
1352             s//\1/
1353             q
1354           }
1355           /^X\(\/\/\)$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\).*/{
1360             s//\1/
1361             q
1362           }
1363           s/.*/./; q'`
1364   srcdir=$ac_confdir
1365   if test ! -r "$srcdir/$ac_unique_file"; then
1366     srcdir=..
1367   fi
1368 else
1369   ac_srcdir_defaulted=no
1370 fi
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`(
1377         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378         pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381   srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_env_${ac_var}_value=\$${ac_var}
1392   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400   # Omit some internal or obsolete options to make the list less imposing.
1401   # This message is too long to be a string in the A/UX 3.1 sh.
1402   cat <<_ACEOF
1403 \`configure' configures lcms2 2.16 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413   -h, --help              display this help and exit
1414       --help=short        display options specific to this package
1415       --help=recursive    display the short help of all the included packages
1416   -V, --version           display version information and exit
1417   -q, --quiet, --silent   do not print \`checking ...' messages
1418       --cache-file=FILE   cache test results in FILE [disabled]
1419   -C, --config-cache      alias for \`--cache-file=config.cache'
1420   -n, --no-create         do not create output files
1421       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424   --prefix=PREFIX         install architecture-independent files in PREFIX
1425                           [$ac_default_prefix]
1426   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                           [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437   --bindir=DIR            user executables [EPREFIX/bin]
1438   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439   --libexecdir=DIR        program executables [EPREFIX/libexec]
1440   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1444   --libdir=DIR            object code libraries [EPREFIX/lib]
1445   --includedir=DIR        C header files [PREFIX/include]
1446   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR           info documentation [DATAROOTDIR/info]
1450   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR            man documentation [DATAROOTDIR/man]
1452   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcms2]
1453   --htmldir=DIR           html documentation [DOCDIR]
1454   --dvidir=DIR            dvi documentation [DOCDIR]
1455   --pdfdir=DIR            pdf documentation [DOCDIR]
1456   --psdir=DIR             ps documentation [DOCDIR]
1457 _ACEOF
1458
1459   cat <<\_ACEOF
1460
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473   case $ac_init_help in
1474      short | recursive ) echo "Configuration of lcms2 2.16:";;
1475    esac
1476   cat <<\_ACEOF
1477
1478 Optional Features:
1479   --disable-option-checking  ignore unrecognized --enable/--with options
1480   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482   --enable-silent-rules   less verbose build output (undo: "make V=1")
1483   --disable-silent-rules  verbose build output (undo: "make V=0")
1484   --enable-dependency-tracking
1485                           do not reject slow dependency extractors
1486   --disable-dependency-tracking
1487                           speeds up one-time build
1488   --enable-shared[=PKGS]  build shared libraries [default=yes]
1489   --enable-static[=PKGS]  build static libraries [default=yes]
1490   --enable-fast-install[=PKGS]
1491                           optimize for fast installation [default=yes]
1492   --disable-libtool-lock  avoid locking (might break parallel builds)
1493   --enable-maintainer-mode
1494                           enable make rules and dependencies not useful (and
1495                           sometimes confusing) to the casual installer
1496
1497 Optional Packages:
1498   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1499   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1500   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1501                           both]
1502   --with-aix-soname=aix|svr4|both
1503                           shared library versioning (aka "SONAME") variant to
1504                           provide on AIX, [default=aix].
1505   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1506   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1507                           compiler's sysroot if not specified).
1508   --with-jpeg=DIR         use jpeg installed in DIR
1509   --with-tiff=DIR         use tiff installed in DIR
1510   --without-zlib          disable ZLIB support
1511   --with-fastfloat        build and install fast_float plugin, use only if GPL
1512                           3.0 is acceptable
1513   --with-threaded         build and install multi threaded plugin, use only if
1514                           GPL 3.0 is acceptable
1515   --without-pthreads      disable POSIX pthreads API support
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CPP         C preprocessor
1526   CXX         C++ compiler command
1527   CXXFLAGS    C++ compiler flags
1528   LT_SYS_LIBRARY_PATH
1529               User-defined run-time library search path.
1530   CXXCPP      C++ preprocessor
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to the package provider.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541   # If there are subdirs, report their specific --help.
1542   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543     test -d "$ac_dir" ||
1544       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545       continue
1546     ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1552   # A ".." for each directory in $ac_dir_suffix.
1553   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554   case $ac_top_builddir_sub in
1555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557   esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565   .)  # We are building in place.
1566     ac_srcdir=.
1567     ac_top_srcdir=$ac_top_builddir_sub
1568     ac_abs_top_srcdir=$ac_pwd ;;
1569   [\\/]* | ?:[\\/]* )  # Absolute name.
1570     ac_srcdir=$srcdir$ac_dir_suffix;
1571     ac_top_srcdir=$srcdir
1572     ac_abs_top_srcdir=$srcdir ;;
1573   *) # Relative name.
1574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575     ac_top_srcdir=$ac_top_build_prefix$srcdir
1576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580     cd "$ac_dir" || { ac_status=$?; continue; }
1581     # Check for configure.gnu first; this name is used for a wrapper for
1582     # Metaconfig's "Configure" on case-insensitive file systems.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 lcms2 configure 2.16
1600 generated by GNU Autoconf 2.71
1601
1602 Copyright (C) 2021 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext conftest.beam
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 printf "%s\n" "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext
1639 then :
1640   ac_retval=0
1641 else $as_nop
1642   printf "%s\n" "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1644
1645         ac_retval=1
1646 fi
1647   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648   as_fn_set_status $ac_retval
1649
1650 } # ac_fn_c_try_compile
1651
1652 # ac_fn_c_try_cpp LINENO
1653 # ----------------------
1654 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_cpp ()
1656 {
1657   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658   if { { ac_try="$ac_cpp conftest.$ac_ext"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } > conftest.i && {
1674          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        }
1677 then :
1678   ac_retval=0
1679 else $as_nop
1680   printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683     ac_retval=1
1684 fi
1685   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686   as_fn_set_status $ac_retval
1687
1688 } # ac_fn_c_try_cpp
1689
1690 # ac_fn_cxx_try_compile LINENO
1691 # ----------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_cxx_try_compile ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   rm -f conftest.$ac_objext conftest.beam
1697   if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704   (eval "$ac_compile") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && {
1713          test -z "$ac_cxx_werror_flag" ||
1714          test ! -s conftest.err
1715        } && test -s conftest.$ac_objext
1716 then :
1717   ac_retval=0
1718 else $as_nop
1719   printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722         ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_cxx_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1736   if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 printf "%s\n" "$ac_try_echo"; } >&5
1743   (eval "$ac_link") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } && {
1752          test -z "$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        } && test -s conftest$ac_exeext && {
1755          test "$cross_compiling" = yes ||
1756          test -x conftest$ac_exeext
1757        }
1758 then :
1759   ac_retval=0
1760 else $as_nop
1761   printf "%s\n" "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764         ac_retval=1
1765 fi
1766   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768   # interfere with the next link command; also delete a directory that is
1769   # left behind by Apple's compiler.  We do this before executing the actions.
1770   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772   as_fn_set_status $ac_retval
1773
1774 } # ac_fn_c_try_link
1775
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1781 {
1782   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 printf %s "checking for $2... " >&6; }
1785 if eval test \${$3+y}
1786 then :
1787   printf %s "(cached) " >&6
1788 else $as_nop
1789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"
1795 then :
1796   eval "$3=yes"
1797 else $as_nop
1798   eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_header_compile
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 printf %s "checking for $2... " >&6; }
1817 if eval test \${$3+y}
1818 then :
1819   printf %s "(cached) " >&6
1820 else $as_nop
1821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1825 #define $2 innocuous_$2
1826
1827 /* System header to define __stub macros and hopefully few prototypes,
1828    which can conflict with char $2 (); below.  */
1829
1830 #include <limits.h>
1831 #undef $2
1832
1833 /* Override any GCC internal prototype to avoid an error.
1834    Use char because int might match the return type of a GCC
1835    builtin and then its argument prototype would still apply.  */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 ();
1840 /* The GNU C library defines this for functions which it implements
1841     to always fail with ENOSYS.  Some functions are actually named
1842     something starting with __ and the normal name is an alias.  */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1846
1847 int
1848 main (void)
1849 {
1850 return $2 ();
1851   ;
1852   return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"
1856 then :
1857   eval "$3=yes"
1858 else $as_nop
1859   eval "$3=no"
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1862     conftest$ac_exeext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 printf "%s\n" "$ac_res" >&6; }
1867   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_func
1870
1871 # ac_fn_cxx_try_cpp LINENO
1872 # ------------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_cxx_try_cpp ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   if { { ac_try="$ac_cpp conftest.$ac_ext"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 printf "%s\n" "$ac_try_echo"; } >&5
1884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } > conftest.i && {
1893          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1894          test ! -s conftest.err
1895        }
1896 then :
1897   ac_retval=0
1898 else $as_nop
1899   printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902     ac_retval=1
1903 fi
1904   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905   as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_cpp
1908
1909 # ac_fn_cxx_try_link LINENO
1910 # -------------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_link ()
1913 {
1914   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1916   if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919   *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 printf "%s\n" "$ac_try_echo"; } >&5
1923   (eval "$ac_link") 2>conftest.err
1924   ac_status=$?
1925   if test -s conftest.err; then
1926     grep -v '^ *+' conftest.err >conftest.er1
1927     cat conftest.er1 >&5
1928     mv -f conftest.er1 conftest.err
1929   fi
1930   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931   test $ac_status = 0; } && {
1932          test -z "$ac_cxx_werror_flag" ||
1933          test ! -s conftest.err
1934        } && test -s conftest$ac_exeext && {
1935          test "$cross_compiling" = yes ||
1936          test -x conftest$ac_exeext
1937        }
1938 then :
1939   ac_retval=0
1940 else $as_nop
1941   printf "%s\n" "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944         ac_retval=1
1945 fi
1946   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948   # interfere with the next link command; also delete a directory that is
1949   # left behind by Apple's compiler.  We do this before executing the actions.
1950   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952   as_fn_set_status $ac_retval
1953
1954 } # ac_fn_cxx_try_link
1955
1956 # ac_fn_c_try_run LINENO
1957 # ----------------------
1958 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1959 # executables *can* be run.
1960 ac_fn_c_try_run ()
1961 {
1962   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963   if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966   *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 printf "%s\n" "$ac_try_echo"; } >&5
1970   (eval "$ac_link") 2>&5
1971   ac_status=$?
1972   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1974   { { case "(($ac_try" in
1975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976   *) ac_try_echo=$ac_try;;
1977 esac
1978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979 printf "%s\n" "$ac_try_echo"; } >&5
1980   (eval "$ac_try") 2>&5
1981   ac_status=$?
1982   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; }; }
1984 then :
1985   ac_retval=0
1986 else $as_nop
1987   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1988        printf "%s\n" "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1990
1991        ac_retval=$ac_status
1992 fi
1993   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995   as_fn_set_status $ac_retval
1996
1997 } # ac_fn_c_try_run
1998 ac_configure_args_raw=
1999 for ac_arg
2000 do
2001   case $ac_arg in
2002   *\'*)
2003     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004   esac
2005   as_fn_append ac_configure_args_raw " '$ac_arg'"
2006 done
2007
2008 case $ac_configure_args_raw in
2009   *$as_nl*)
2010     ac_safe_unquote= ;;
2011   *)
2012     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2013     ac_unsafe_a="$ac_unsafe_z#~"
2014     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2015     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2016 esac
2017
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2021
2022 It was created by lcms2 $as_me 2.16, which was
2023 generated by GNU Autoconf 2.71.  Invocation command line was
2024
2025   $ $0$ac_configure_args_raw
2026
2027 _ACEOF
2028 exec 5>>config.log
2029 {
2030 cat <<_ASUNAME
2031 ## --------- ##
2032 ## Platform. ##
2033 ## --------- ##
2034
2035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040
2041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2042 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2043
2044 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2045 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2047 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2048 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2049 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2050 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2051
2052 _ASUNAME
2053
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   case $as_dir in #(((
2059     '') as_dir=./ ;;
2060     */) ;;
2061     *) as_dir=$as_dir/ ;;
2062   esac
2063     printf "%s\n" "PATH: $as_dir"
2064   done
2065 IFS=$as_save_IFS
2066
2067 } >&5
2068
2069 cat >&5 <<_ACEOF
2070
2071
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2075
2076 _ACEOF
2077
2078
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090   for ac_arg
2091   do
2092     case $ac_arg in
2093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095     | -silent | --silent | --silen | --sile | --sil)
2096       continue ;;
2097     *\'*)
2098       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099     esac
2100     case $ac_pass in
2101     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102     2)
2103       as_fn_append ac_configure_args1 " '$ac_arg'"
2104       if test $ac_must_keep_next = true; then
2105         ac_must_keep_next=false # Got value, back to normal.
2106       else
2107         case $ac_arg in
2108           *=* | --config-cache | -C | -disable-* | --disable-* \
2109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111           | -with-* | --with-* | -without-* | --without-* | --x)
2112             case "$ac_configure_args0 " in
2113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114             esac
2115             ;;
2116           -* ) ac_must_keep_next=true ;;
2117         esac
2118       fi
2119       as_fn_append ac_configure_args " '$ac_arg'"
2120       ;;
2121     esac
2122   done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log.  We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133   # Sanitize IFS.
2134   IFS=" ""      $as_nl"
2135   # Save into config.log some information that might help in debugging.
2136   {
2137     echo
2138
2139     printf "%s\n" "## ---------------- ##
2140 ## Cache variables. ##
2141 ## ---------------- ##"
2142     echo
2143     # The following way of writing the cache mishandles newlines in values,
2144 (
2145   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2146     eval ac_val=\$$ac_var
2147     case $ac_val in #(
2148     *${as_nl}*)
2149       case $ac_var in #(
2150       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2151 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2152       esac
2153       case $ac_var in #(
2154       _ | IFS | as_nl) ;; #(
2155       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2156       *) { eval $ac_var=; unset $ac_var;} ;;
2157       esac ;;
2158     esac
2159   done
2160   (set) 2>&1 |
2161     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2162     *${as_nl}ac_space=\ *)
2163       sed -n \
2164         "s/'\''/'\''\\\\'\'''\''/g;
2165           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2166       ;; #(
2167     *)
2168       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2169       ;;
2170     esac |
2171     sort
2172 )
2173     echo
2174
2175     printf "%s\n" "## ----------------- ##
2176 ## Output variables. ##
2177 ## ----------------- ##"
2178     echo
2179     for ac_var in $ac_subst_vars
2180     do
2181       eval ac_val=\$$ac_var
2182       case $ac_val in
2183       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184       esac
2185       printf "%s\n" "$ac_var='\''$ac_val'\''"
2186     done | sort
2187     echo
2188
2189     if test -n "$ac_subst_files"; then
2190       printf "%s\n" "## ------------------- ##
2191 ## File substitutions. ##
2192 ## ------------------- ##"
2193       echo
2194       for ac_var in $ac_subst_files
2195       do
2196         eval ac_val=\$$ac_var
2197         case $ac_val in
2198         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2199         esac
2200         printf "%s\n" "$ac_var='\''$ac_val'\''"
2201       done | sort
2202       echo
2203     fi
2204
2205     if test -s confdefs.h; then
2206       printf "%s\n" "## ----------- ##
2207 ## confdefs.h. ##
2208 ## ----------- ##"
2209       echo
2210       cat confdefs.h
2211       echo
2212     fi
2213     test "$ac_signal" != 0 &&
2214       printf "%s\n" "$as_me: caught signal $ac_signal"
2215     printf "%s\n" "$as_me: exit $exit_status"
2216   } >&5
2217   rm -f core *.core core.conftest.* &&
2218     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2219     exit $exit_status
2220 ' 0
2221 for ac_signal in 1 2 13 15; do
2222   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2223 done
2224 ac_signal=0
2225
2226 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2227 rm -f -r conftest* confdefs.h
2228
2229 printf "%s\n" "/* confdefs.h */" > confdefs.h
2230
2231 # Predefined preprocessor variables.
2232
2233 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2234
2235 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2236
2237 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2238
2239 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2240
2241 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2242
2243 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2244
2245
2246 # Let the site file select an alternate cache file if it wants to.
2247 # Prefer an explicitly selected file to automatically selected ones.
2248 if test -n "$CONFIG_SITE"; then
2249   ac_site_files="$CONFIG_SITE"
2250 elif test "x$prefix" != xNONE; then
2251   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2252 else
2253   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2254 fi
2255
2256 for ac_site_file in $ac_site_files
2257 do
2258   case $ac_site_file in #(
2259   */*) :
2260      ;; #(
2261   *) :
2262     ac_site_file=./$ac_site_file ;;
2263 esac
2264   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2265     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2266 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2267     sed 's/^/| /' "$ac_site_file" >&5
2268     . "$ac_site_file" \
2269       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2270 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2271 as_fn_error $? "failed to load site script $ac_site_file
2272 See \`config.log' for more details" "$LINENO" 5; }
2273   fi
2274 done
2275
2276 if test -r "$cache_file"; then
2277   # Some versions of bash will fail to source /dev/null (special files
2278   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2279   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2280     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2281 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2282     case $cache_file in
2283       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2284       *)                      . "./$cache_file";;
2285     esac
2286   fi
2287 else
2288   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2289 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2290   >$cache_file
2291 fi
2292
2293 # Test code for whether the C compiler supports C89 (global declarations)
2294 ac_c_conftest_c89_globals='
2295 /* Does the compiler advertise C89 conformance?
2296    Do not test the value of __STDC__, because some compilers set it to 0
2297    while being otherwise adequately conformant. */
2298 #if !defined __STDC__
2299 # error "Compiler does not advertise C89 conformance"
2300 #endif
2301
2302 #include <stddef.h>
2303 #include <stdarg.h>
2304 struct stat;
2305 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2306 struct buf { int x; };
2307 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2308 static char *e (p, i)
2309      char **p;
2310      int i;
2311 {
2312   return p[i];
2313 }
2314 static char *f (char * (*g) (char **, int), char **p, ...)
2315 {
2316   char *s;
2317   va_list v;
2318   va_start (v,p);
2319   s = g (p, va_arg (v,int));
2320   va_end (v);
2321   return s;
2322 }
2323
2324 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2325    function prototypes and stuff, but not \xHH hex character constants.
2326    These do not provoke an error unfortunately, instead are silently treated
2327    as an "x".  The following induces an error, until -std is added to get
2328    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2329    array size at least.  It is necessary to write \x00 == 0 to get something
2330    that is true only with -std.  */
2331 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2332
2333 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2334    inside strings and character constants.  */
2335 #define FOO(x) '\''x'\''
2336 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2337
2338 int test (int i, double x);
2339 struct s1 {int (*f) (int a);};
2340 struct s2 {int (*f) (double a);};
2341 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2342                int, int);'
2343
2344 # Test code for whether the C compiler supports C89 (body of main).
2345 ac_c_conftest_c89_main='
2346 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2347 '
2348
2349 # Test code for whether the C compiler supports C99 (global declarations)
2350 ac_c_conftest_c99_globals='
2351 // Does the compiler advertise C99 conformance?
2352 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2353 # error "Compiler does not advertise C99 conformance"
2354 #endif
2355
2356 #include <stdbool.h>
2357 extern int puts (const char *);
2358 extern int printf (const char *, ...);
2359 extern int dprintf (int, const char *, ...);
2360 extern void *malloc (size_t);
2361
2362 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2363 // dprintf is used instead of fprintf to avoid needing to declare
2364 // FILE and stderr.
2365 #define debug(...) dprintf (2, __VA_ARGS__)
2366 #define showlist(...) puts (#__VA_ARGS__)
2367 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2368 static void
2369 test_varargs_macros (void)
2370 {
2371   int x = 1234;
2372   int y = 5678;
2373   debug ("Flag");
2374   debug ("X = %d\n", x);
2375   showlist (The first, second, and third items.);
2376   report (x>y, "x is %d but y is %d", x, y);
2377 }
2378
2379 // Check long long types.
2380 #define BIG64 18446744073709551615ull
2381 #define BIG32 4294967295ul
2382 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2383 #if !BIG_OK
2384   #error "your preprocessor is broken"
2385 #endif
2386 #if BIG_OK
2387 #else
2388   #error "your preprocessor is broken"
2389 #endif
2390 static long long int bignum = -9223372036854775807LL;
2391 static unsigned long long int ubignum = BIG64;
2392
2393 struct incomplete_array
2394 {
2395   int datasize;
2396   double data[];
2397 };
2398
2399 struct named_init {
2400   int number;
2401   const wchar_t *name;
2402   double average;
2403 };
2404
2405 typedef const char *ccp;
2406
2407 static inline int
2408 test_restrict (ccp restrict text)
2409 {
2410   // See if C++-style comments work.
2411   // Iterate through items via the restricted pointer.
2412   // Also check for declarations in for loops.
2413   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2414     continue;
2415   return 0;
2416 }
2417
2418 // Check varargs and va_copy.
2419 static bool
2420 test_varargs (const char *format, ...)
2421 {
2422   va_list args;
2423   va_start (args, format);
2424   va_list args_copy;
2425   va_copy (args_copy, args);
2426
2427   const char *str = "";
2428   int number = 0;
2429   float fnumber = 0;
2430
2431   while (*format)
2432     {
2433       switch (*format++)
2434         {
2435         case '\''s'\'': // string
2436           str = va_arg (args_copy, const char *);
2437           break;
2438         case '\''d'\'': // int
2439           number = va_arg (args_copy, int);
2440           break;
2441         case '\''f'\'': // float
2442           fnumber = va_arg (args_copy, double);
2443           break;
2444         default:
2445           break;
2446         }
2447     }
2448   va_end (args_copy);
2449   va_end (args);
2450
2451   return *str && number && fnumber;
2452 }
2453 '
2454
2455 # Test code for whether the C compiler supports C99 (body of main).
2456 ac_c_conftest_c99_main='
2457   // Check bool.
2458   _Bool success = false;
2459   success |= (argc != 0);
2460
2461   // Check restrict.
2462   if (test_restrict ("String literal") == 0)
2463     success = true;
2464   char *restrict newvar = "Another string";
2465
2466   // Check varargs.
2467   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2468   test_varargs_macros ();
2469
2470   // Check flexible array members.
2471   struct incomplete_array *ia =
2472     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2473   ia->datasize = 10;
2474   for (int i = 0; i < ia->datasize; ++i)
2475     ia->data[i] = i * 1.234;
2476
2477   // Check named initializers.
2478   struct named_init ni = {
2479     .number = 34,
2480     .name = L"Test wide string",
2481     .average = 543.34343,
2482   };
2483
2484   ni.number = 58;
2485
2486   int dynamic_array[ni.number];
2487   dynamic_array[0] = argv[0][0];
2488   dynamic_array[ni.number - 1] = 543;
2489
2490   // work around unused variable warnings
2491   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2492          || dynamic_array[ni.number - 1] != 543);
2493 '
2494
2495 # Test code for whether the C compiler supports C11 (global declarations)
2496 ac_c_conftest_c11_globals='
2497 // Does the compiler advertise C11 conformance?
2498 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2499 # error "Compiler does not advertise C11 conformance"
2500 #endif
2501
2502 // Check _Alignas.
2503 char _Alignas (double) aligned_as_double;
2504 char _Alignas (0) no_special_alignment;
2505 extern char aligned_as_int;
2506 char _Alignas (0) _Alignas (int) aligned_as_int;
2507
2508 // Check _Alignof.
2509 enum
2510 {
2511   int_alignment = _Alignof (int),
2512   int_array_alignment = _Alignof (int[100]),
2513   char_alignment = _Alignof (char)
2514 };
2515 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2516
2517 // Check _Noreturn.
2518 int _Noreturn does_not_return (void) { for (;;) continue; }
2519
2520 // Check _Static_assert.
2521 struct test_static_assert
2522 {
2523   int x;
2524   _Static_assert (sizeof (int) <= sizeof (long int),
2525                   "_Static_assert does not work in struct");
2526   long int y;
2527 };
2528
2529 // Check UTF-8 literals.
2530 #define u8 syntax error!
2531 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2532
2533 // Check duplicate typedefs.
2534 typedef long *long_ptr;
2535 typedef long int *long_ptr;
2536 typedef long_ptr long_ptr;
2537
2538 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2539 struct anonymous
2540 {
2541   union {
2542     struct { int i; int j; };
2543     struct { int k; long int l; } w;
2544   };
2545   int m;
2546 } v1;
2547 '
2548
2549 # Test code for whether the C compiler supports C11 (body of main).
2550 ac_c_conftest_c11_main='
2551   _Static_assert ((offsetof (struct anonymous, i)
2552                    == offsetof (struct anonymous, w.k)),
2553                   "Anonymous union alignment botch");
2554   v1.i = 2;
2555   v1.w.k = 5;
2556   ok |= v1.i != 5;
2557 '
2558
2559 # Test code for whether the C compiler supports C11 (complete).
2560 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2561 ${ac_c_conftest_c99_globals}
2562 ${ac_c_conftest_c11_globals}
2563
2564 int
2565 main (int argc, char **argv)
2566 {
2567   int ok = 0;
2568   ${ac_c_conftest_c89_main}
2569   ${ac_c_conftest_c99_main}
2570   ${ac_c_conftest_c11_main}
2571   return ok;
2572 }
2573 "
2574
2575 # Test code for whether the C compiler supports C99 (complete).
2576 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2577 ${ac_c_conftest_c99_globals}
2578
2579 int
2580 main (int argc, char **argv)
2581 {
2582   int ok = 0;
2583   ${ac_c_conftest_c89_main}
2584   ${ac_c_conftest_c99_main}
2585   return ok;
2586 }
2587 "
2588
2589 # Test code for whether the C compiler supports C89 (complete).
2590 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2591
2592 int
2593 main (int argc, char **argv)
2594 {
2595   int ok = 0;
2596   ${ac_c_conftest_c89_main}
2597   return ok;
2598 }
2599 "
2600
2601 # Test code for whether the C++ compiler supports C++98 (global declarations)
2602 ac_cxx_conftest_cxx98_globals='
2603 // Does the compiler advertise C++98 conformance?
2604 #if !defined __cplusplus || __cplusplus < 199711L
2605 # error "Compiler does not advertise C++98 conformance"
2606 #endif
2607
2608 // These inclusions are to reject old compilers that
2609 // lack the unsuffixed header files.
2610 #include <cstdlib>
2611 #include <exception>
2612
2613 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2614 extern void assert (int);
2615 namespace std {
2616   extern int strcmp (const char *, const char *);
2617 }
2618
2619 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2620 using std::exception;
2621 using std::strcmp;
2622
2623 namespace {
2624
2625 void test_exception_syntax()
2626 {
2627   try {
2628     throw "test";
2629   } catch (const char *s) {
2630     // Extra parentheses suppress a warning when building autoconf itself,
2631     // due to lint rules shared with more typical C programs.
2632     assert (!(strcmp) (s, "test"));
2633   }
2634 }
2635
2636 template <typename T> struct test_template
2637 {
2638   T const val;
2639   explicit test_template(T t) : val(t) {}
2640   template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2641 };
2642
2643 } // anonymous namespace
2644 '
2645
2646 # Test code for whether the C++ compiler supports C++98 (body of main)
2647 ac_cxx_conftest_cxx98_main='
2648   assert (argc);
2649   assert (! argv[0]);
2650 {
2651   test_exception_syntax ();
2652   test_template<double> tt (2.0);
2653   assert (tt.add (4) == 6.0);
2654   assert (true && !false);
2655 }
2656 '
2657
2658 # Test code for whether the C++ compiler supports C++11 (global declarations)
2659 ac_cxx_conftest_cxx11_globals='
2660 // Does the compiler advertise C++ 2011 conformance?
2661 #if !defined __cplusplus || __cplusplus < 201103L
2662 # error "Compiler does not advertise C++11 conformance"
2663 #endif
2664
2665 namespace cxx11test
2666 {
2667   constexpr int get_val() { return 20; }
2668
2669   struct testinit
2670   {
2671     int i;
2672     double d;
2673   };
2674
2675   class delegate
2676   {
2677   public:
2678     delegate(int n) : n(n) {}
2679     delegate(): delegate(2354) {}
2680
2681     virtual int getval() { return this->n; };
2682   protected:
2683     int n;
2684   };
2685
2686   class overridden : public delegate
2687   {
2688   public:
2689     overridden(int n): delegate(n) {}
2690     virtual int getval() override final { return this->n * 2; }
2691   };
2692
2693   class nocopy
2694   {
2695   public:
2696     nocopy(int i): i(i) {}
2697     nocopy() = default;
2698     nocopy(const nocopy&) = delete;
2699     nocopy & operator=(const nocopy&) = delete;
2700   private:
2701     int i;
2702   };
2703
2704   // for testing lambda expressions
2705   template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2706   {
2707     return f(v);
2708   }
2709
2710   // for testing variadic templates and trailing return types
2711   template <typename V> auto sum(V first) -> V
2712   {
2713     return first;
2714   }
2715   template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2716   {
2717     return first + sum(rest...);
2718   }
2719 }
2720 '
2721
2722 # Test code for whether the C++ compiler supports C++11 (body of main)
2723 ac_cxx_conftest_cxx11_main='
2724 {
2725   // Test auto and decltype
2726   auto a1 = 6538;
2727   auto a2 = 48573953.4;
2728   auto a3 = "String literal";
2729
2730   int total = 0;
2731   for (auto i = a3; *i; ++i) { total += *i; }
2732
2733   decltype(a2) a4 = 34895.034;
2734 }
2735 {
2736   // Test constexpr
2737   short sa[cxx11test::get_val()] = { 0 };
2738 }
2739 {
2740   // Test initializer lists
2741   cxx11test::testinit il = { 4323, 435234.23544 };
2742 }
2743 {
2744   // Test range-based for
2745   int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2746                  14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2747   for (auto &x : array) { x += 23; }
2748 }
2749 {
2750   // Test lambda expressions
2751   using cxx11test::eval;
2752   assert (eval ([](int x) { return x*2; }, 21) == 42);
2753   double d = 2.0;
2754   assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2755   assert (d == 5.0);
2756   assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2757   assert (d == 5.0);
2758 }
2759 {
2760   // Test use of variadic templates
2761   using cxx11test::sum;
2762   auto a = sum(1);
2763   auto b = sum(1, 2);
2764   auto c = sum(1.0, 2.0, 3.0);
2765 }
2766 {
2767   // Test constructor delegation
2768   cxx11test::delegate d1;
2769   cxx11test::delegate d2();
2770   cxx11test::delegate d3(45);
2771 }
2772 {
2773   // Test override and final
2774   cxx11test::overridden o1(55464);
2775 }
2776 {
2777   // Test nullptr
2778   char *c = nullptr;
2779 }
2780 {
2781   // Test template brackets
2782   test_template<::test_template<int>> v(test_template<int>(12));
2783 }
2784 {
2785   // Unicode literals
2786   char const *utf8 = u8"UTF-8 string \u2500";
2787   char16_t const *utf16 = u"UTF-8 string \u2500";
2788   char32_t const *utf32 = U"UTF-32 string \u2500";
2789 }
2790 '
2791
2792 # Test code for whether the C compiler supports C++11 (complete).
2793 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2794 ${ac_cxx_conftest_cxx11_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799   int ok = 0;
2800   ${ac_cxx_conftest_cxx98_main}
2801   ${ac_cxx_conftest_cxx11_main}
2802   return ok;
2803 }
2804 "
2805
2806 # Test code for whether the C compiler supports C++98 (complete).
2807 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2808 int
2809 main (int argc, char **argv)
2810 {
2811   int ok = 0;
2812   ${ac_cxx_conftest_cxx98_main}
2813   return ok;
2814 }
2815 "
2816
2817 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2818 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2819 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2820 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2821 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2822 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2823 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2824 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2825 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2826
2827 # Auxiliary files required by this configure script.
2828 ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
2829
2830 # Locations in which to look for auxiliary files.
2831 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2832
2833 # Search for a directory containing all of the required auxiliary files,
2834 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2835 # If we don't find one directory that contains all the files we need,
2836 # we report the set of missing files from the *first* directory in
2837 # $ac_aux_dir_candidates and give up.
2838 ac_missing_aux_files=""
2839 ac_first_candidate=:
2840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 as_found=false
2843 for as_dir in $ac_aux_dir_candidates
2844 do
2845   IFS=$as_save_IFS
2846   case $as_dir in #(((
2847     '') as_dir=./ ;;
2848     */) ;;
2849     *) as_dir=$as_dir/ ;;
2850   esac
2851   as_found=:
2852
2853   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2854   ac_aux_dir_found=yes
2855   ac_install_sh=
2856   for ac_aux in $ac_aux_files
2857   do
2858     # As a special case, if "install-sh" is required, that requirement
2859     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2860     # and $ac_install_sh is set appropriately for whichever one is found.
2861     if test x"$ac_aux" = x"install-sh"
2862     then
2863       if test -f "${as_dir}install-sh"; then
2864         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2865         ac_install_sh="${as_dir}install-sh -c"
2866       elif test -f "${as_dir}install.sh"; then
2867         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2868         ac_install_sh="${as_dir}install.sh -c"
2869       elif test -f "${as_dir}shtool"; then
2870         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2871         ac_install_sh="${as_dir}shtool install -c"
2872       else
2873         ac_aux_dir_found=no
2874         if $ac_first_candidate; then
2875           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2876         else
2877           break
2878         fi
2879       fi
2880     else
2881       if test -f "${as_dir}${ac_aux}"; then
2882         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2883       else
2884         ac_aux_dir_found=no
2885         if $ac_first_candidate; then
2886           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2887         else
2888           break
2889         fi
2890       fi
2891     fi
2892   done
2893   if test "$ac_aux_dir_found" = yes; then
2894     ac_aux_dir="$as_dir"
2895     break
2896   fi
2897   ac_first_candidate=false
2898
2899   as_found=false
2900 done
2901 IFS=$as_save_IFS
2902 if $as_found
2903 then :
2904
2905 else $as_nop
2906   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2907 fi
2908
2909
2910 # These three variables are undocumented and unsupported,
2911 # and are intended to be withdrawn in a future Autoconf release.
2912 # They can cause serious problems if a builder's source tree is in a directory
2913 # whose full name contains unusual characters.
2914 if test -f "${ac_aux_dir}config.guess"; then
2915   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2916 fi
2917 if test -f "${ac_aux_dir}config.sub"; then
2918   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2919 fi
2920 if test -f "$ac_aux_dir/configure"; then
2921   ac_configure="$SHELL ${ac_aux_dir}configure"
2922 fi
2923
2924 # Check that the precious variables saved in the cache have kept the same
2925 # value.
2926 ac_cache_corrupted=false
2927 for ac_var in $ac_precious_vars; do
2928   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2929   eval ac_new_set=\$ac_env_${ac_var}_set
2930   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2931   eval ac_new_val=\$ac_env_${ac_var}_value
2932   case $ac_old_set,$ac_new_set in
2933     set,)
2934       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2935 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2936       ac_cache_corrupted=: ;;
2937     ,set)
2938       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2939 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2940       ac_cache_corrupted=: ;;
2941     ,);;
2942     *)
2943       if test "x$ac_old_val" != "x$ac_new_val"; then
2944         # differences in whitespace do not lead to failure.
2945         ac_old_val_w=`echo x $ac_old_val`
2946         ac_new_val_w=`echo x $ac_new_val`
2947         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2948           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2949 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2950           ac_cache_corrupted=:
2951         else
2952           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2953 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2954           eval $ac_var=\$ac_old_val
2955         fi
2956         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2957 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2958         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2959 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2960       fi;;
2961   esac
2962   # Pass precious variables to config.status.
2963   if test "$ac_new_set" = set; then
2964     case $ac_new_val in
2965     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2966     *) ac_arg=$ac_var=$ac_new_val ;;
2967     esac
2968     case " $ac_configure_args " in
2969       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2970       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971     esac
2972   fi
2973 done
2974 if $ac_cache_corrupted; then
2975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2977   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2978 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2979   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2980             and start over" "$LINENO" 5
2981 fi
2982 ## -------------------- ##
2983 ## Main body of script. ##
2984 ## -------------------- ##
2985
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991
2992
2993
2994 # Specify directory where m4 macros may be found.
2995
2996
2997 #
2998 # Libtool library revision control info
2999 #
3000 LIBRARY_CURRENT=2
3001 LIBRARY_REVISION=16
3002 LIBRARY_AGE=0
3003
3004
3005 # Obtain system type by running config.guess
3006
3007
3008
3009   # Make sure we can run config.sub.
3010 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3011   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3012
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3014 printf %s "checking build system type... " >&6; }
3015 if test ${ac_cv_build+y}
3016 then :
3017   printf %s "(cached) " >&6
3018 else $as_nop
3019   ac_build_alias=$build_alias
3020 test "x$ac_build_alias" = x &&
3021   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3022 test "x$ac_build_alias" = x &&
3023   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3024 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3025   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3026
3027 fi
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3029 printf "%s\n" "$ac_cv_build" >&6; }
3030 case $ac_cv_build in
3031 *-*-*) ;;
3032 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3033 esac
3034 build=$ac_cv_build
3035 ac_save_IFS=$IFS; IFS='-'
3036 set x $ac_cv_build
3037 shift
3038 build_cpu=$1
3039 build_vendor=$2
3040 shift; shift
3041 # Remember, the first character of IFS is used to create $*,
3042 # except with old shells:
3043 build_os=$*
3044 IFS=$ac_save_IFS
3045 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3046
3047
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3049 printf %s "checking host system type... " >&6; }
3050 if test ${ac_cv_host+y}
3051 then :
3052   printf %s "(cached) " >&6
3053 else $as_nop
3054   if test "x$host_alias" = x; then
3055   ac_cv_host=$ac_cv_build
3056 else
3057   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3058     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3059 fi
3060
3061 fi
3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3063 printf "%s\n" "$ac_cv_host" >&6; }
3064 case $ac_cv_host in
3065 *-*-*) ;;
3066 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3067 esac
3068 host=$ac_cv_host
3069 ac_save_IFS=$IFS; IFS='-'
3070 set x $ac_cv_host
3071 shift
3072 host_cpu=$1
3073 host_vendor=$2
3074 shift; shift
3075 # Remember, the first character of IFS is used to create $*,
3076 # except with old shells:
3077 host_os=$*
3078 IFS=$ac_save_IFS
3079 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3080
3081
3082
3083 am__api_version='1.16'
3084
3085
3086   # Find a good install program.  We prefer a C program (faster),
3087 # so one script is as good as another.  But avoid the broken or
3088 # incompatible versions:
3089 # SysV /etc/install, /usr/sbin/install
3090 # SunOS /usr/etc/install
3091 # IRIX /sbin/install
3092 # AIX /bin/install
3093 # AmigaOS /C/install, which installs bootblocks on floppy discs
3094 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3095 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3096 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3097 # OS/2's system install, which has a completely different semantic
3098 # ./install, which can be erroneously created by make from ./install.sh.
3099 # Reject install programs that cannot install multiple files.
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3101 printf %s "checking for a BSD-compatible install... " >&6; }
3102 if test -z "$INSTALL"; then
3103 if test ${ac_cv_path_install+y}
3104 then :
3105   printf %s "(cached) " >&6
3106 else $as_nop
3107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3109 do
3110   IFS=$as_save_IFS
3111   case $as_dir in #(((
3112     '') as_dir=./ ;;
3113     */) ;;
3114     *) as_dir=$as_dir/ ;;
3115   esac
3116     # Account for fact that we put trailing slashes in our PATH walk.
3117 case $as_dir in #((
3118   ./ | /[cC]/* | \
3119   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3120   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3121   /usr/ucb/* ) ;;
3122   *)
3123     # OSF1 and SCO ODT 3.0 have their own names for install.
3124     # Don't use installbsd from OSF since it installs stuff as root
3125     # by default.
3126     for ac_prog in ginstall scoinst install; do
3127       for ac_exec_ext in '' $ac_executable_extensions; do
3128         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3129           if test $ac_prog = install &&
3130             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3131             # AIX install.  It has an incompatible calling convention.
3132             :
3133           elif test $ac_prog = install &&
3134             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3135             # program-specific install script used by HP pwplus--don't use.
3136             :
3137           else
3138             rm -rf conftest.one conftest.two conftest.dir
3139             echo one > conftest.one
3140             echo two > conftest.two
3141             mkdir conftest.dir
3142             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3143               test -s conftest.one && test -s conftest.two &&
3144               test -s conftest.dir/conftest.one &&
3145               test -s conftest.dir/conftest.two
3146             then
3147               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3148               break 3
3149             fi
3150           fi
3151         fi
3152       done
3153     done
3154     ;;
3155 esac
3156
3157   done
3158 IFS=$as_save_IFS
3159
3160 rm -rf conftest.one conftest.two conftest.dir
3161
3162 fi
3163   if test ${ac_cv_path_install+y}; then
3164     INSTALL=$ac_cv_path_install
3165   else
3166     # As a last resort, use the slow shell script.  Don't cache a
3167     # value for INSTALL within a source directory, because that will
3168     # break other packages using the cache if that directory is
3169     # removed, or if the value is a relative name.
3170     INSTALL=$ac_install_sh
3171   fi
3172 fi
3173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3174 printf "%s\n" "$INSTALL" >&6; }
3175
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3179
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3181
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3183
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3185 printf %s "checking whether build environment is sane... " >&6; }
3186 # Reject unsafe characters in $srcdir or the absolute working directory
3187 # name.  Accept space and tab only in the latter.
3188 am_lf='
3189 '
3190 case `pwd` in
3191   *[\\\"\#\$\&\'\`$am_lf]*)
3192     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3193 esac
3194 case $srcdir in
3195   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3196     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3197 esac
3198
3199 # Do 'set' in a subshell so we don't clobber the current shell's
3200 # arguments.  Must try -L first in case configure is actually a
3201 # symlink; some systems play weird games with the mod time of symlinks
3202 # (eg FreeBSD returns the mod time of the symlink's containing
3203 # directory).
3204 if (
3205    am_has_slept=no
3206    for am_try in 1 2; do
3207      echo "timestamp, slept: $am_has_slept" > conftest.file
3208      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3209      if test "$*" = "X"; then
3210         # -L didn't work.
3211         set X `ls -t "$srcdir/configure" conftest.file`
3212      fi
3213      if test "$*" != "X $srcdir/configure conftest.file" \
3214         && test "$*" != "X conftest.file $srcdir/configure"; then
3215
3216         # If neither matched, then we have a broken ls.  This can happen
3217         # if, for instance, CONFIG_SHELL is bash and it inherits a
3218         # broken ls alias from the environment.  This has actually
3219         # happened.  Such a system could not be considered "sane".
3220         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3221   alias in your environment" "$LINENO" 5
3222      fi
3223      if test "$2" = conftest.file || test $am_try -eq 2; then
3224        break
3225      fi
3226      # Just in case.
3227      sleep 1
3228      am_has_slept=yes
3229    done
3230    test "$2" = conftest.file
3231    )
3232 then
3233    # Ok.
3234    :
3235 else
3236    as_fn_error $? "newly created file is older than distributed files!
3237 Check your system clock" "$LINENO" 5
3238 fi
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240 printf "%s\n" "yes" >&6; }
3241 # If we didn't sleep, we still need to ensure time stamps of config.status and
3242 # generated files are strictly newer.
3243 am_sleep_pid=
3244 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3245   ( sleep 1 ) &
3246   am_sleep_pid=$!
3247 fi
3248
3249 rm -f conftest.file
3250
3251 test "$program_prefix" != NONE &&
3252   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3253 # Use a double $ so make ignores it.
3254 test "$program_suffix" != NONE &&
3255   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3256 # Double any \ or $.
3257 # By default was `s,x,x', remove it if useless.
3258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3259 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3260
3261
3262 # Expand $ac_aux_dir to an absolute path.
3263 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3264
3265
3266   if test x"${MISSING+set}" != xset; then
3267   MISSING="\${SHELL} '$am_aux_dir/missing'"
3268 fi
3269 # Use eval to expand $SHELL
3270 if eval "$MISSING --is-lightweight"; then
3271   am_missing_run="$MISSING "
3272 else
3273   am_missing_run=
3274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3275 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3276 fi
3277
3278 if test x"${install_sh+set}" != xset; then
3279   case $am_aux_dir in
3280   *\ * | *\     *)
3281     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3282   *)
3283     install_sh="\${SHELL} $am_aux_dir/install-sh"
3284   esac
3285 fi
3286
3287 # Installed binaries are usually stripped using 'strip' when the user
3288 # run "make install-strip".  However 'strip' might not be the right
3289 # tool to use in cross-compilation environments, therefore Automake
3290 # will honor the 'STRIP' environment variable to overrule this program.
3291 if test "$cross_compiling" != no; then
3292   if test -n "$ac_tool_prefix"; then
3293   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}strip; ac_word=$2
3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 printf %s "checking for $ac_word... " >&6; }
3297 if test ${ac_cv_prog_STRIP+y}
3298 then :
3299   printf %s "(cached) " >&6
3300 else $as_nop
3301   if test -n "$STRIP"; then
3302   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307   IFS=$as_save_IFS
3308   case $as_dir in #(((
3309     '') as_dir=./ ;;
3310     */) ;;
3311     *) as_dir=$as_dir/ ;;
3312   esac
3313     for ac_exec_ext in '' $ac_executable_extensions; do
3314   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3315     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3316     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3317     break 2
3318   fi
3319 done
3320   done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 STRIP=$ac_cv_prog_STRIP
3326 if test -n "$STRIP"; then
3327   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3328 printf "%s\n" "$STRIP" >&6; }
3329 else
3330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 printf "%s\n" "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 if test -z "$ac_cv_prog_STRIP"; then
3337   ac_ct_STRIP=$STRIP
3338   # Extract the first word of "strip", so it can be a program name with args.
3339 set dummy strip; ac_word=$2
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 printf %s "checking for $ac_word... " >&6; }
3342 if test ${ac_cv_prog_ac_ct_STRIP+y}
3343 then :
3344   printf %s "(cached) " >&6
3345 else $as_nop
3346   if test -n "$ac_ct_STRIP"; then
3347   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   case $as_dir in #(((
3354     '') as_dir=./ ;;
3355     */) ;;
3356     *) as_dir=$as_dir/ ;;
3357   esac
3358     for ac_exec_ext in '' $ac_executable_extensions; do
3359   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360     ac_cv_prog_ac_ct_STRIP="strip"
3361     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362     break 2
3363   fi
3364 done
3365   done
3366 IFS=$as_save_IFS
3367
3368 fi
3369 fi
3370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3371 if test -n "$ac_ct_STRIP"; then
3372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3373 printf "%s\n" "$ac_ct_STRIP" >&6; }
3374 else
3375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 printf "%s\n" "no" >&6; }
3377 fi
3378
3379   if test "x$ac_ct_STRIP" = x; then
3380     STRIP=":"
3381   else
3382     case $cross_compiling:$ac_tool_warned in
3383 yes:)
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3386 ac_tool_warned=yes ;;
3387 esac
3388     STRIP=$ac_ct_STRIP
3389   fi
3390 else
3391   STRIP="$ac_cv_prog_STRIP"
3392 fi
3393
3394 fi
3395 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3396
3397
3398   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3399 printf %s "checking for a race-free mkdir -p... " >&6; }
3400 if test -z "$MKDIR_P"; then
3401   if test ${ac_cv_path_mkdir+y}
3402 then :
3403   printf %s "(cached) " >&6
3404 else $as_nop
3405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3407 do
3408   IFS=$as_save_IFS
3409   case $as_dir in #(((
3410     '') as_dir=./ ;;
3411     */) ;;
3412     *) as_dir=$as_dir/ ;;
3413   esac
3414     for ac_prog in mkdir gmkdir; do
3415          for ac_exec_ext in '' $ac_executable_extensions; do
3416            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3417            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3418              'mkdir ('*'coreutils) '* | \
3419              'BusyBox '* | \
3420              'mkdir (fileutils) '4.1*)
3421                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3422                break 3;;
3423            esac
3424          done
3425        done
3426   done
3427 IFS=$as_save_IFS
3428
3429 fi
3430
3431   test -d ./--version && rmdir ./--version
3432   if test ${ac_cv_path_mkdir+y}; then
3433     MKDIR_P="$ac_cv_path_mkdir -p"
3434   else
3435     # As a last resort, use the slow shell script.  Don't cache a
3436     # value for MKDIR_P within a source directory, because that will
3437     # break other packages using the cache if that directory is
3438     # removed, or if the value is a relative name.
3439     MKDIR_P="$ac_install_sh -d"
3440   fi
3441 fi
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3443 printf "%s\n" "$MKDIR_P" >&6; }
3444
3445 for ac_prog in gawk mawk nawk awk
3446 do
3447   # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy $ac_prog; ac_word=$2
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 printf %s "checking for $ac_word... " >&6; }
3451 if test ${ac_cv_prog_AWK+y}
3452 then :
3453   printf %s "(cached) " >&6
3454 else $as_nop
3455   if test -n "$AWK"; then
3456   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   case $as_dir in #(((
3463     '') as_dir=./ ;;
3464     */) ;;
3465     *) as_dir=$as_dir/ ;;
3466   esac
3467     for ac_exec_ext in '' $ac_executable_extensions; do
3468   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3469     ac_cv_prog_AWK="$ac_prog"
3470     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3471     break 2
3472   fi
3473 done
3474   done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 AWK=$ac_cv_prog_AWK
3480 if test -n "$AWK"; then
3481   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3482 printf "%s\n" "$AWK" >&6; }
3483 else
3484   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 printf "%s\n" "no" >&6; }
3486 fi
3487
3488
3489   test -n "$AWK" && break
3490 done
3491
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3493 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3494 set x ${MAKE-make}
3495 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3496 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3497 then :
3498   printf %s "(cached) " >&6
3499 else $as_nop
3500   cat >conftest.make <<\_ACEOF
3501 SHELL = /bin/sh
3502 all:
3503         @echo '@@@%%%=$(MAKE)=@@@%%%'
3504 _ACEOF
3505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3507   *@@@%%%=?*=@@@%%%*)
3508     eval ac_cv_prog_make_${ac_make}_set=yes;;
3509   *)
3510     eval ac_cv_prog_make_${ac_make}_set=no;;
3511 esac
3512 rm -f conftest.make
3513 fi
3514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3516 printf "%s\n" "yes" >&6; }
3517   SET_MAKE=
3518 else
3519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 printf "%s\n" "no" >&6; }
3521   SET_MAKE="MAKE=${MAKE-make}"
3522 fi
3523
3524 rm -rf .tst 2>/dev/null
3525 mkdir .tst 2>/dev/null
3526 if test -d .tst; then
3527   am__leading_dot=.
3528 else
3529   am__leading_dot=_
3530 fi
3531 rmdir .tst 2>/dev/null
3532
3533 # Check whether --enable-silent-rules was given.
3534 if test ${enable_silent_rules+y}
3535 then :
3536   enableval=$enable_silent_rules;
3537 fi
3538
3539 case $enable_silent_rules in # (((
3540   yes) AM_DEFAULT_VERBOSITY=0;;
3541    no) AM_DEFAULT_VERBOSITY=1;;
3542     *) AM_DEFAULT_VERBOSITY=1;;
3543 esac
3544 am_make=${MAKE-make}
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3546 printf %s "checking whether $am_make supports nested variables... " >&6; }
3547 if test ${am_cv_make_support_nested_variables+y}
3548 then :
3549   printf %s "(cached) " >&6
3550 else $as_nop
3551   if printf "%s\n" 'TRUE=$(BAR$(V))
3552 BAR0=false
3553 BAR1=true
3554 V=1
3555 am__doit:
3556         @$(TRUE)
3557 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3558   am_cv_make_support_nested_variables=yes
3559 else
3560   am_cv_make_support_nested_variables=no
3561 fi
3562 fi
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3565 if test $am_cv_make_support_nested_variables = yes; then
3566     AM_V='$(V)'
3567   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3568 else
3569   AM_V=$AM_DEFAULT_VERBOSITY
3570   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3571 fi
3572 AM_BACKSLASH='\'
3573
3574 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3575   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3576   # is not polluted with repeated "-I."
3577   am__isrc=' -I$(srcdir)'
3578   # test to see if srcdir already configured
3579   if test -f $srcdir/config.status; then
3580     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3581   fi
3582 fi
3583
3584 # test whether we have cygpath
3585 if test -z "$CYGPATH_W"; then
3586   if (cygpath --version) >/dev/null 2>/dev/null; then
3587     CYGPATH_W='cygpath -w'
3588   else
3589     CYGPATH_W=echo
3590   fi
3591 fi
3592
3593
3594 # Define the identity of the package.
3595  PACKAGE='lcms2'
3596  VERSION='2.16'
3597
3598
3599 # Some tools Automake needs.
3600
3601 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3602
3603
3604 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3605
3606
3607 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3608
3609
3610 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3611
3612
3613 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3614
3615 # For better backward compatibility.  To be removed once Automake 1.9.x
3616 # dies out for good.  For more background, see:
3617 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3618 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3619 mkdir_p='$(MKDIR_P)'
3620
3621 # We need awk for the "check" target (and possibly the TAP driver).  The
3622 # system "awk" is bad on some platforms.
3623 # Always define AMTAR for backward compatibility.  Yes, it's still used
3624 # in the wild :-(  We should find a proper way to deprecate it ...
3625 AMTAR='$${TAR-tar}'
3626
3627
3628 # We'll loop over all known methods to create a tar archive until one works.
3629 _am_tools='gnutar plaintar pax cpio none'
3630
3631 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3632       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3633       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3634       # and bug#13588).
3635       am_max_uid=2097151 # 2^21 - 1
3636       am_max_gid=$am_max_uid
3637       # The $UID and $GID variables are not portable, so we need to resort
3638       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3639       # below are definitely unexpected, so allow the users to see them
3640       # (that is, avoid stderr redirection).
3641       am_uid=`id -u || echo unknown`
3642       am_gid=`id -g || echo unknown`
3643       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3644 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3645       if test $am_uid -le $am_max_uid; then
3646          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 printf "%s\n" "yes" >&6; }
3648       else
3649          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 printf "%s\n" "no" >&6; }
3651          _am_tools=none
3652       fi
3653       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3654 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3655       if test $am_gid -le $am_max_gid; then
3656          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3657 printf "%s\n" "yes" >&6; }
3658       else
3659         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 printf "%s\n" "no" >&6; }
3661         _am_tools=none
3662       fi
3663
3664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3665 printf %s "checking how to create a ustar tar archive... " >&6; }
3666
3667   # Go ahead even if we have the value already cached.  We do so because we
3668   # need to set the values for the 'am__tar' and 'am__untar' variables.
3669   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3670
3671   for _am_tool in $_am_tools; do
3672     case $_am_tool in
3673     gnutar)
3674       for _am_tar in tar gnutar gtar; do
3675         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3676    ($_am_tar --version) >&5 2>&5
3677    ac_status=$?
3678    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679    (exit $ac_status); } && break
3680       done
3681       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3682       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3683       am__untar="$_am_tar -xf -"
3684       ;;
3685     plaintar)
3686       # Must skip GNU tar: if it does not support --format= it doesn't create
3687       # ustar tarball either.
3688       (tar --version) >/dev/null 2>&1 && continue
3689       am__tar='tar chf - "$$tardir"'
3690       am__tar_='tar chf - "$tardir"'
3691       am__untar='tar xf -'
3692       ;;
3693     pax)
3694       am__tar='pax -L -x ustar -w "$$tardir"'
3695       am__tar_='pax -L -x ustar -w "$tardir"'
3696       am__untar='pax -r'
3697       ;;
3698     cpio)
3699       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3700       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3701       am__untar='cpio -i -H ustar -d'
3702       ;;
3703     none)
3704       am__tar=false
3705       am__tar_=false
3706       am__untar=false
3707       ;;
3708     esac
3709
3710     # If the value was cached, stop now.  We just wanted to have am__tar
3711     # and am__untar set.
3712     test -n "${am_cv_prog_tar_ustar}" && break
3713
3714     # tar/untar a dummy directory, and stop if the command works.
3715     rm -rf conftest.dir
3716     mkdir conftest.dir
3717     echo GrepMe > conftest.dir/file
3718     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3719    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3720    ac_status=$?
3721    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722    (exit $ac_status); }
3723     rm -rf conftest.dir
3724     if test -s conftest.tar; then
3725       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3726    ($am__untar <conftest.tar) >&5 2>&5
3727    ac_status=$?
3728    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729    (exit $ac_status); }
3730       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3731    (cat conftest.dir/file) >&5 2>&5
3732    ac_status=$?
3733    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734    (exit $ac_status); }
3735       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3736     fi
3737   done
3738   rm -rf conftest.dir
3739
3740   if test ${am_cv_prog_tar_ustar+y}
3741 then :
3742   printf %s "(cached) " >&6
3743 else $as_nop
3744   am_cv_prog_tar_ustar=$_am_tool
3745 fi
3746
3747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3748 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3749
3750
3751
3752
3753
3754 # Variables for tags utilities; see am/tags.am
3755 if test -z "$CTAGS"; then
3756   CTAGS=ctags
3757 fi
3758
3759 if test -z "$ETAGS"; then
3760   ETAGS=etags
3761 fi
3762
3763 if test -z "$CSCOPE"; then
3764   CSCOPE=cscope
3765 fi
3766
3767
3768
3769 # POSIX will say in a future version that running "rm -f" with no argument
3770 # is OK; and we want to be able to make that assumption in our Makefile
3771 # recipes.  So use an aggressive probe to check that the usage we want is
3772 # actually supported "in the wild" to an acceptable degree.
3773 # See automake bug#10828.
3774 # To make any issue more visible, cause the running configure to be aborted
3775 # by default if the 'rm' program in use doesn't match our expectations; the
3776 # user can still override this though.
3777 if rm -f && rm -fr && rm -rf; then : OK; else
3778   cat >&2 <<'END'
3779 Oops!
3780
3781 Your 'rm' program seems unable to run without file operands specified
3782 on the command line, even when the '-f' option is present.  This is contrary
3783 to the behaviour of most rm programs out there, and not conforming with
3784 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3785
3786 Please tell bug-automake@gnu.org about your system, including the value
3787 of your $PATH and any error possibly output before this message.  This
3788 can help us improve future automake versions.
3789
3790 END
3791   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3792     echo 'Configuration will proceed anyway, since you have set the' >&2
3793     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3794     echo >&2
3795   else
3796     cat >&2 <<'END'
3797 Aborting the configuration process, to ensure you take notice of the issue.
3798
3799 You can download and install GNU coreutils to get an 'rm' implementation
3800 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3801
3802 If you want to complete the configuration process using your problematic
3803 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3804 to "yes", and re-run configure.
3805
3806 END
3807     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3808   fi
3809 fi
3810
3811
3812
3813 # Check for programs
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823 ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 if test -n "$ac_tool_prefix"; then
3829   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3830 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 printf %s "checking for $ac_word... " >&6; }
3833 if test ${ac_cv_prog_CC+y}
3834 then :
3835   printf %s "(cached) " >&6
3836 else $as_nop
3837   if test -n "$CC"; then
3838   ac_cv_prog_CC="$CC" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3842 do
3843   IFS=$as_save_IFS
3844   case $as_dir in #(((
3845     '') as_dir=./ ;;
3846     */) ;;
3847     *) as_dir=$as_dir/ ;;
3848   esac
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3851     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 printf "%s\n" "$CC" >&6; }
3865 else
3866   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 printf "%s\n" "no" >&6; }
3868 fi
3869
3870
3871 fi
3872 if test -z "$ac_cv_prog_CC"; then
3873   ac_ct_CC=$CC
3874   # Extract the first word of "gcc", so it can be a program name with args.
3875 set dummy gcc; ac_word=$2
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877 printf %s "checking for $ac_word... " >&6; }
3878 if test ${ac_cv_prog_ac_ct_CC+y}
3879 then :
3880   printf %s "(cached) " >&6
3881 else $as_nop
3882   if test -n "$ac_ct_CC"; then
3883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884 else
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH
3887 do
3888   IFS=$as_save_IFS
3889   case $as_dir in #(((
3890     '') as_dir=./ ;;
3891     */) ;;
3892     *) as_dir=$as_dir/ ;;
3893   esac
3894     for ac_exec_ext in '' $ac_executable_extensions; do
3895   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3896     ac_cv_prog_ac_ct_CC="gcc"
3897     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901   done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3907 if test -n "$ac_ct_CC"; then
3908   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3909 printf "%s\n" "$ac_ct_CC" >&6; }
3910 else
3911   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 printf "%s\n" "no" >&6; }
3913 fi
3914
3915   if test "x$ac_ct_CC" = x; then
3916     CC=""
3917   else
3918     case $cross_compiling:$ac_tool_warned in
3919 yes:)
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922 ac_tool_warned=yes ;;
3923 esac
3924     CC=$ac_ct_CC
3925   fi
3926 else
3927   CC="$ac_cv_prog_CC"
3928 fi
3929
3930 if test -z "$CC"; then
3931           if test -n "$ac_tool_prefix"; then
3932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3933 set dummy ${ac_tool_prefix}cc; ac_word=$2
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 printf %s "checking for $ac_word... " >&6; }
3936 if test ${ac_cv_prog_CC+y}
3937 then :
3938   printf %s "(cached) " >&6
3939 else $as_nop
3940   if test -n "$CC"; then
3941   ac_cv_prog_CC="$CC" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3945 do
3946   IFS=$as_save_IFS
3947   case $as_dir in #(((
3948     '') as_dir=./ ;;
3949     */) ;;
3950     *) as_dir=$as_dir/ ;;
3951   esac
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3954     ac_cv_prog_CC="${ac_tool_prefix}cc"
3955     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3956     break 2
3957   fi
3958 done
3959   done
3960 IFS=$as_save_IFS
3961
3962 fi
3963 fi
3964 CC=$ac_cv_prog_CC
3965 if test -n "$CC"; then
3966   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 printf "%s\n" "$CC" >&6; }
3968 else
3969   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 printf "%s\n" "no" >&6; }
3971 fi
3972
3973
3974   fi
3975 fi
3976 if test -z "$CC"; then
3977   # Extract the first word of "cc", so it can be a program name with args.
3978 set dummy cc; ac_word=$2
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 printf %s "checking for $ac_word... " >&6; }
3981 if test ${ac_cv_prog_CC+y}
3982 then :
3983   printf %s "(cached) " >&6
3984 else $as_nop
3985   if test -n "$CC"; then
3986   ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988   ac_prog_rejected=no
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992   IFS=$as_save_IFS
3993   case $as_dir in #(((
3994     '') as_dir=./ ;;
3995     */) ;;
3996     *) as_dir=$as_dir/ ;;
3997   esac
3998     for ac_exec_ext in '' $ac_executable_extensions; do
3999   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4000     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001        ac_prog_rejected=yes
4002        continue
4003      fi
4004     ac_cv_prog_CC="cc"
4005     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009   done
4010 IFS=$as_save_IFS
4011
4012 if test $ac_prog_rejected = yes; then
4013   # We found a bogon in the path, so make sure we never use it.
4014   set dummy $ac_cv_prog_CC
4015   shift
4016   if test $# != 0; then
4017     # We chose a different compiler from the bogus one.
4018     # However, it has the same basename, so the bogon will be chosen
4019     # first if we set CC to just the basename; use the full file name.
4020     shift
4021     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4022   fi
4023 fi
4024 fi
4025 fi
4026 CC=$ac_cv_prog_CC
4027 if test -n "$CC"; then
4028   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 printf "%s\n" "$CC" >&6; }
4030 else
4031   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 printf "%s\n" "no" >&6; }
4033 fi
4034
4035
4036 fi
4037 if test -z "$CC"; then
4038   if test -n "$ac_tool_prefix"; then
4039   for ac_prog in cl.exe
4040   do
4041     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 printf %s "checking for $ac_word... " >&6; }
4045 if test ${ac_cv_prog_CC+y}
4046 then :
4047   printf %s "(cached) " >&6
4048 else $as_nop
4049   if test -n "$CC"; then
4050   ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   case $as_dir in #(((
4057     '') as_dir=./ ;;
4058     */) ;;
4059     *) as_dir=$as_dir/ ;;
4060   esac
4061     for ac_exec_ext in '' $ac_executable_extensions; do
4062   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4064     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 fi
4072 fi
4073 CC=$ac_cv_prog_CC
4074 if test -n "$CC"; then
4075   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4076 printf "%s\n" "$CC" >&6; }
4077 else
4078   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 printf "%s\n" "no" >&6; }
4080 fi
4081
4082
4083     test -n "$CC" && break
4084   done
4085 fi
4086 if test -z "$CC"; then
4087   ac_ct_CC=$CC
4088   for ac_prog in cl.exe
4089 do
4090   # Extract the first word of "$ac_prog", so it can be a program name with args.
4091 set dummy $ac_prog; ac_word=$2
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093 printf %s "checking for $ac_word... " >&6; }
4094 if test ${ac_cv_prog_ac_ct_CC+y}
4095 then :
4096   printf %s "(cached) " >&6
4097 else $as_nop
4098   if test -n "$ac_ct_CC"; then
4099   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4100 else
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH
4103 do
4104   IFS=$as_save_IFS
4105   case $as_dir in #(((
4106     '') as_dir=./ ;;
4107     */) ;;
4108     *) as_dir=$as_dir/ ;;
4109   esac
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4112     ac_cv_prog_ac_ct_CC="$ac_prog"
4113     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4123 if test -n "$ac_ct_CC"; then
4124   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4125 printf "%s\n" "$ac_ct_CC" >&6; }
4126 else
4127   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 printf "%s\n" "no" >&6; }
4129 fi
4130
4131
4132   test -n "$ac_ct_CC" && break
4133 done
4134
4135   if test "x$ac_ct_CC" = x; then
4136     CC=""
4137   else
4138     case $cross_compiling:$ac_tool_warned in
4139 yes:)
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4141 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4142 ac_tool_warned=yes ;;
4143 esac
4144     CC=$ac_ct_CC
4145   fi
4146 fi
4147
4148 fi
4149 if test -z "$CC"; then
4150   if test -n "$ac_tool_prefix"; then
4151   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}clang; ac_word=$2
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 printf %s "checking for $ac_word... " >&6; }
4155 if test ${ac_cv_prog_CC+y}
4156 then :
4157   printf %s "(cached) " >&6
4158 else $as_nop
4159   if test -n "$CC"; then
4160   ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   case $as_dir in #(((
4167     '') as_dir=./ ;;
4168     */) ;;
4169     *) as_dir=$as_dir/ ;;
4170   esac
4171     for ac_exec_ext in '' $ac_executable_extensions; do
4172   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4173     ac_cv_prog_CC="${ac_tool_prefix}clang"
4174     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4175     break 2
4176   fi
4177 done
4178   done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 CC=$ac_cv_prog_CC
4184 if test -n "$CC"; then
4185   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186 printf "%s\n" "$CC" >&6; }
4187 else
4188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 printf "%s\n" "no" >&6; }
4190 fi
4191
4192
4193 fi
4194 if test -z "$ac_cv_prog_CC"; then
4195   ac_ct_CC=$CC
4196   # Extract the first word of "clang", so it can be a program name with args.
4197 set dummy clang; ac_word=$2
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 printf %s "checking for $ac_word... " >&6; }
4200 if test ${ac_cv_prog_ac_ct_CC+y}
4201 then :
4202   printf %s "(cached) " >&6
4203 else $as_nop
4204   if test -n "$ac_ct_CC"; then
4205   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4206 else
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   case $as_dir in #(((
4212     '') as_dir=./ ;;
4213     */) ;;
4214     *) as_dir=$as_dir/ ;;
4215   esac
4216     for ac_exec_ext in '' $ac_executable_extensions; do
4217   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4218     ac_cv_prog_ac_ct_CC="clang"
4219     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223   done
4224 IFS=$as_save_IFS
4225
4226 fi
4227 fi
4228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4229 if test -n "$ac_ct_CC"; then
4230   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4231 printf "%s\n" "$ac_ct_CC" >&6; }
4232 else
4233   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 printf "%s\n" "no" >&6; }
4235 fi
4236
4237   if test "x$ac_ct_CC" = x; then
4238     CC=""
4239   else
4240     case $cross_compiling:$ac_tool_warned in
4241 yes:)
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4243 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4244 ac_tool_warned=yes ;;
4245 esac
4246     CC=$ac_ct_CC
4247   fi
4248 else
4249   CC="$ac_cv_prog_CC"
4250 fi
4251
4252 fi
4253
4254
4255 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error $? "no acceptable C compiler found in \$PATH
4258 See \`config.log' for more details" "$LINENO" 5; }
4259
4260 # Provide some information about the compiler.
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4262 set X $ac_compile
4263 ac_compiler=$2
4264 for ac_option in --version -v -V -qversion -version; do
4265   { { ac_try="$ac_compiler $ac_option >&5"
4266 case "(($ac_try" in
4267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268   *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 printf "%s\n" "$ac_try_echo"; } >&5
4272   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4273   ac_status=$?
4274   if test -s conftest.err; then
4275     sed '10a\
4276 ... rest of stderr output deleted ...
4277          10q' conftest.err >conftest.er1
4278     cat conftest.er1 >&5
4279   fi
4280   rm -f conftest.er1 conftest.err
4281   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4282   test $ac_status = 0; }
4283 done
4284
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h.  */
4287
4288 int
4289 main (void)
4290 {
4291
4292   ;
4293   return 0;
4294 }
4295 _ACEOF
4296 ac_clean_files_save=$ac_clean_files
4297 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4298 # Try to create an executable without -o first, disregard a.out.
4299 # It will help us diagnose broken compilers, and finding out an intuition
4300 # of exeext.
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4302 printf %s "checking whether the C compiler works... " >&6; }
4303 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4304
4305 # The possible output files:
4306 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4307
4308 ac_rmfiles=
4309 for ac_file in $ac_files
4310 do
4311   case $ac_file in
4312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4313     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4314   esac
4315 done
4316 rm -f $ac_rmfiles
4317
4318 if { { ac_try="$ac_link_default"
4319 case "(($ac_try" in
4320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321   *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 printf "%s\n" "$ac_try_echo"; } >&5
4325   (eval "$ac_link_default") 2>&5
4326   ac_status=$?
4327   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; }
4329 then :
4330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4333 # so that the user can short-circuit this test for compilers unknown to
4334 # Autoconf.
4335 for ac_file in $ac_files ''
4336 do
4337   test -f "$ac_file" || continue
4338   case $ac_file in
4339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4340         ;;
4341     [ab].out )
4342         # We found the default executable, but exeext='' is most
4343         # certainly right.
4344         break;;
4345     *.* )
4346         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4347         then :; else
4348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349         fi
4350         # We set ac_cv_exeext here because the later test for it is not
4351         # safe: cross compilers may not add the suffix if given an `-o'
4352         # argument, so we may need to know it at that point already.
4353         # Even if this section looks crufty: it has the advantage of
4354         # actually working.
4355         break;;
4356     * )
4357         break;;
4358   esac
4359 done
4360 test "$ac_cv_exeext" = no && ac_cv_exeext=
4361
4362 else $as_nop
4363   ac_file=''
4364 fi
4365 if test -z "$ac_file"
4366 then :
4367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 printf "%s\n" "no" >&6; }
4369 printf "%s\n" "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4374 as_fn_error 77 "C compiler cannot create executables
4375 See \`config.log' for more details" "$LINENO" 5; }
4376 else $as_nop
4377   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 printf "%s\n" "yes" >&6; }
4379 fi
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4381 printf %s "checking for C compiler default output file name... " >&6; }
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4383 printf "%s\n" "$ac_file" >&6; }
4384 ac_exeext=$ac_cv_exeext
4385
4386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4387 ac_clean_files=$ac_clean_files_save
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4389 printf %s "checking for suffix of executables... " >&6; }
4390 if { { ac_try="$ac_link"
4391 case "(($ac_try" in
4392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393   *) ac_try_echo=$ac_try;;
4394 esac
4395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396 printf "%s\n" "$ac_try_echo"; } >&5
4397   (eval "$ac_link") 2>&5
4398   ac_status=$?
4399   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400   test $ac_status = 0; }
4401 then :
4402   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4403 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4404 # work properly (i.e., refer to `conftest.exe'), while it won't with
4405 # `rm'.
4406 for ac_file in conftest.exe conftest conftest.*; do
4407   test -f "$ac_file" || continue
4408   case $ac_file in
4409     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4410     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411           break;;
4412     * ) break;;
4413   esac
4414 done
4415 else $as_nop
4416   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4417 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4418 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4419 See \`config.log' for more details" "$LINENO" 5; }
4420 fi
4421 rm -f conftest conftest$ac_cv_exeext
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4423 printf "%s\n" "$ac_cv_exeext" >&6; }
4424
4425 rm -f conftest.$ac_ext
4426 EXEEXT=$ac_cv_exeext
4427 ac_exeext=$EXEEXT
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h.  */
4430 #include <stdio.h>
4431 int
4432 main (void)
4433 {
4434 FILE *f = fopen ("conftest.out", "w");
4435  return ferror (f) || fclose (f) != 0;
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 ac_clean_files="$ac_clean_files conftest.out"
4442 # Check that the compiler produces executables we can run.  If not, either
4443 # the compiler is broken, or we cross compile.
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4445 printf %s "checking whether we are cross compiling... " >&6; }
4446 if test "$cross_compiling" != yes; then
4447   { { ac_try="$ac_link"
4448 case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 printf "%s\n" "$ac_try_echo"; } >&5
4454   (eval "$ac_link") 2>&5
4455   ac_status=$?
4456   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457   test $ac_status = 0; }
4458   if { ac_try='./conftest$ac_cv_exeext'
4459   { { case "(($ac_try" in
4460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461   *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 printf "%s\n" "$ac_try_echo"; } >&5
4465   (eval "$ac_try") 2>&5
4466   ac_status=$?
4467   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468   test $ac_status = 0; }; }; then
4469     cross_compiling=no
4470   else
4471     if test "$cross_compiling" = maybe; then
4472         cross_compiling=yes
4473     else
4474         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4476 as_fn_error 77 "cannot run C compiled programs.
4477 If you meant to cross compile, use \`--host'.
4478 See \`config.log' for more details" "$LINENO" 5; }
4479     fi
4480   fi
4481 fi
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4483 printf "%s\n" "$cross_compiling" >&6; }
4484
4485 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4486 ac_clean_files=$ac_clean_files_save
4487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4488 printf %s "checking for suffix of object files... " >&6; }
4489 if test ${ac_cv_objext+y}
4490 then :
4491   printf %s "(cached) " >&6
4492 else $as_nop
4493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h.  */
4495
4496 int
4497 main (void)
4498 {
4499
4500   ;
4501   return 0;
4502 }
4503 _ACEOF
4504 rm -f conftest.o conftest.obj
4505 if { { ac_try="$ac_compile"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4511 printf "%s\n" "$ac_try_echo"; } >&5
4512   (eval "$ac_compile") 2>&5
4513   ac_status=$?
4514   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4515   test $ac_status = 0; }
4516 then :
4517   for ac_file in conftest.o conftest.obj conftest.*; do
4518   test -f "$ac_file" || continue;
4519   case $ac_file in
4520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4521     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4522        break;;
4523   esac
4524 done
4525 else $as_nop
4526   printf "%s\n" "$as_me: failed program was:" >&5
4527 sed 's/^/| /' conftest.$ac_ext >&5
4528
4529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot compute suffix of object files: cannot compile
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4535 fi
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4537 printf "%s\n" "$ac_cv_objext" >&6; }
4538 OBJEXT=$ac_cv_objext
4539 ac_objext=$OBJEXT
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4541 printf %s "checking whether the compiler supports GNU C... " >&6; }
4542 if test ${ac_cv_c_compiler_gnu+y}
4543 then :
4544   printf %s "(cached) " >&6
4545 else $as_nop
4546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 int
4550 main (void)
4551 {
4552 #ifndef __GNUC__
4553        choke me
4554 #endif
4555
4556   ;
4557   return 0;
4558 }
4559 _ACEOF
4560 if ac_fn_c_try_compile "$LINENO"
4561 then :
4562   ac_compiler_gnu=yes
4563 else $as_nop
4564   ac_compiler_gnu=no
4565 fi
4566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4568
4569 fi
4570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4571 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573
4574 if test $ac_compiler_gnu = yes; then
4575   GCC=yes
4576 else
4577   GCC=
4578 fi
4579 ac_test_CFLAGS=${CFLAGS+y}
4580 ac_save_CFLAGS=$CFLAGS
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4582 printf %s "checking whether $CC accepts -g... " >&6; }
4583 if test ${ac_cv_prog_cc_g+y}
4584 then :
4585   printf %s "(cached) " >&6
4586 else $as_nop
4587   ac_save_c_werror_flag=$ac_c_werror_flag
4588    ac_c_werror_flag=yes
4589    ac_cv_prog_cc_g=no
4590    CFLAGS="-g"
4591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h.  */
4593
4594 int
4595 main (void)
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 if ac_fn_c_try_compile "$LINENO"
4603 then :
4604   ac_cv_prog_cc_g=yes
4605 else $as_nop
4606   CFLAGS=""
4607       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h.  */
4609
4610 int
4611 main (void)
4612 {
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"
4619 then :
4620
4621 else $as_nop
4622   ac_c_werror_flag=$ac_save_c_werror_flag
4623          CFLAGS="-g"
4624          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626
4627 int
4628 main (void)
4629 {
4630
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_compile "$LINENO"
4636 then :
4637   ac_cv_prog_cc_g=yes
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4640 fi
4641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4642 fi
4643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4644    ac_c_werror_flag=$ac_save_c_werror_flag
4645 fi
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4647 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4648 if test $ac_test_CFLAGS; then
4649   CFLAGS=$ac_save_CFLAGS
4650 elif test $ac_cv_prog_cc_g = yes; then
4651   if test "$GCC" = yes; then
4652     CFLAGS="-g -O2"
4653   else
4654     CFLAGS="-g"
4655   fi
4656 else
4657   if test "$GCC" = yes; then
4658     CFLAGS="-O2"
4659   else
4660     CFLAGS=
4661   fi
4662 fi
4663 ac_prog_cc_stdc=no
4664 if test x$ac_prog_cc_stdc = xno
4665 then :
4666   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4667 printf %s "checking for $CC option to enable C11 features... " >&6; }
4668 if test ${ac_cv_prog_cc_c11+y}
4669 then :
4670   printf %s "(cached) " >&6
4671 else $as_nop
4672   ac_cv_prog_cc_c11=no
4673 ac_save_CC=$CC
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h.  */
4676 $ac_c_conftest_c11_program
4677 _ACEOF
4678 for ac_arg in '' -std=gnu11
4679 do
4680   CC="$ac_save_CC $ac_arg"
4681   if ac_fn_c_try_compile "$LINENO"
4682 then :
4683   ac_cv_prog_cc_c11=$ac_arg
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.beam
4686   test "x$ac_cv_prog_cc_c11" != "xno" && break
4687 done
4688 rm -f conftest.$ac_ext
4689 CC=$ac_save_CC
4690 fi
4691
4692 if test "x$ac_cv_prog_cc_c11" = xno
4693 then :
4694   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4695 printf "%s\n" "unsupported" >&6; }
4696 else $as_nop
4697   if test "x$ac_cv_prog_cc_c11" = x
4698 then :
4699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4700 printf "%s\n" "none needed" >&6; }
4701 else $as_nop
4702   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4703 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4704      CC="$CC $ac_cv_prog_cc_c11"
4705 fi
4706   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4707   ac_prog_cc_stdc=c11
4708 fi
4709 fi
4710 if test x$ac_prog_cc_stdc = xno
4711 then :
4712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4713 printf %s "checking for $CC option to enable C99 features... " >&6; }
4714 if test ${ac_cv_prog_cc_c99+y}
4715 then :
4716   printf %s "(cached) " >&6
4717 else $as_nop
4718   ac_cv_prog_cc_c99=no
4719 ac_save_CC=$CC
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h.  */
4722 $ac_c_conftest_c99_program
4723 _ACEOF
4724 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4725 do
4726   CC="$ac_save_CC $ac_arg"
4727   if ac_fn_c_try_compile "$LINENO"
4728 then :
4729   ac_cv_prog_cc_c99=$ac_arg
4730 fi
4731 rm -f core conftest.err conftest.$ac_objext conftest.beam
4732   test "x$ac_cv_prog_cc_c99" != "xno" && break
4733 done
4734 rm -f conftest.$ac_ext
4735 CC=$ac_save_CC
4736 fi
4737
4738 if test "x$ac_cv_prog_cc_c99" = xno
4739 then :
4740   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741 printf "%s\n" "unsupported" >&6; }
4742 else $as_nop
4743   if test "x$ac_cv_prog_cc_c99" = x
4744 then :
4745   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4746 printf "%s\n" "none needed" >&6; }
4747 else $as_nop
4748   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4749 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4750      CC="$CC $ac_cv_prog_cc_c99"
4751 fi
4752   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4753   ac_prog_cc_stdc=c99
4754 fi
4755 fi
4756 if test x$ac_prog_cc_stdc = xno
4757 then :
4758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4759 printf %s "checking for $CC option to enable C89 features... " >&6; }
4760 if test ${ac_cv_prog_cc_c89+y}
4761 then :
4762   printf %s "(cached) " >&6
4763 else $as_nop
4764   ac_cv_prog_cc_c89=no
4765 ac_save_CC=$CC
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 $ac_c_conftest_c89_program
4769 _ACEOF
4770 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4771 do
4772   CC="$ac_save_CC $ac_arg"
4773   if ac_fn_c_try_compile "$LINENO"
4774 then :
4775   ac_cv_prog_cc_c89=$ac_arg
4776 fi
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam
4778   test "x$ac_cv_prog_cc_c89" != "xno" && break
4779 done
4780 rm -f conftest.$ac_ext
4781 CC=$ac_save_CC
4782 fi
4783
4784 if test "x$ac_cv_prog_cc_c89" = xno
4785 then :
4786   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4787 printf "%s\n" "unsupported" >&6; }
4788 else $as_nop
4789   if test "x$ac_cv_prog_cc_c89" = x
4790 then :
4791   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792 printf "%s\n" "none needed" >&6; }
4793 else $as_nop
4794   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4795 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4796      CC="$CC $ac_cv_prog_cc_c89"
4797 fi
4798   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4799   ac_prog_cc_stdc=c89
4800 fi
4801 fi
4802
4803 ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809
4810   ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4816 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4817 if test ${am_cv_prog_cc_c_o+y}
4818 then :
4819   printf %s "(cached) " >&6
4820 else $as_nop
4821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h.  */
4823
4824 int
4825 main (void)
4826 {
4827
4828   ;
4829   return 0;
4830 }
4831 _ACEOF
4832   # Make sure it works both with $CC and with simple cc.
4833   # Following AC_PROG_CC_C_O, we do the test twice because some
4834   # compilers refuse to overwrite an existing .o file with -o,
4835   # though they will create one.
4836   am_cv_prog_cc_c_o=yes
4837   for am_i in 1 2; do
4838     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4839    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4840    ac_status=$?
4841    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842    (exit $ac_status); } \
4843          && test -f conftest2.$ac_objext; then
4844       : OK
4845     else
4846       am_cv_prog_cc_c_o=no
4847       break
4848     fi
4849   done
4850   rm -f core conftest*
4851   unset am_i
4852 fi
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4854 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4855 if test "$am_cv_prog_cc_c_o" != yes; then
4856    # Losing compiler, so override with the script.
4857    # FIXME: It is wrong to rewrite CC.
4858    # But if we don't then we get into trouble of one sort or another.
4859    # A longer-term fix would be to have automake use am__CC in this case,
4860    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4861    CC="$am_aux_dir/compile $CC"
4862 fi
4863 ac_ext=c
4864 ac_cpp='$CPP $CPPFLAGS'
4865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4868
4869 DEPDIR="${am__leading_dot}deps"
4870
4871 ac_config_commands="$ac_config_commands depfiles"
4872
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4874 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4875 cat > confinc.mk << 'END'
4876 am__doit:
4877         @echo this is the am__doit target >confinc.out
4878 .PHONY: am__doit
4879 END
4880 am__include="#"
4881 am__quote=
4882 # BSD make does it like this.
4883 echo '.include "confinc.mk" # ignored' > confmf.BSD
4884 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4885 echo 'include confinc.mk # ignored' > confmf.GNU
4886 _am_result=no
4887 for s in GNU BSD; do
4888   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4889    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4890    ac_status=$?
4891    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892    (exit $ac_status); }
4893   case $?:`cat confinc.out 2>/dev/null` in #(
4894   '0:this is the am__doit target') :
4895     case $s in #(
4896   BSD) :
4897     am__include='.include' am__quote='"' ;; #(
4898   *) :
4899     am__include='include' am__quote='' ;;
4900 esac ;; #(
4901   *) :
4902      ;;
4903 esac
4904   if test "$am__include" != "#"; then
4905     _am_result="yes ($s style)"
4906     break
4907   fi
4908 done
4909 rm -f confinc.* confmf.*
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4911 printf "%s\n" "${_am_result}" >&6; }
4912
4913 # Check whether --enable-dependency-tracking was given.
4914 if test ${enable_dependency_tracking+y}
4915 then :
4916   enableval=$enable_dependency_tracking;
4917 fi
4918
4919 if test "x$enable_dependency_tracking" != xno; then
4920   am_depcomp="$ac_aux_dir/depcomp"
4921   AMDEPBACKSLASH='\'
4922   am__nodep='_no'
4923 fi
4924  if test "x$enable_dependency_tracking" != xno; then
4925   AMDEP_TRUE=
4926   AMDEP_FALSE='#'
4927 else
4928   AMDEP_TRUE='#'
4929   AMDEP_FALSE=
4930 fi
4931
4932
4933
4934 depcc="$CC"   am_compiler_list=
4935
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4937 printf %s "checking dependency style of $depcc... " >&6; }
4938 if test ${am_cv_CC_dependencies_compiler_type+y}
4939 then :
4940   printf %s "(cached) " >&6
4941 else $as_nop
4942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943   # We make a subdir and do the tests there.  Otherwise we can end up
4944   # making bogus files that we don't know about and never remove.  For
4945   # instance it was reported that on HP-UX the gcc test will end up
4946   # making a dummy file named 'D' -- because '-MD' means "put the output
4947   # in D".
4948   rm -rf conftest.dir
4949   mkdir conftest.dir
4950   # Copy depcomp to subdir because otherwise we won't find it if we're
4951   # using a relative directory.
4952   cp "$am_depcomp" conftest.dir
4953   cd conftest.dir
4954   # We will build objects and dependencies in a subdirectory because
4955   # it helps to detect inapplicable dependency modes.  For instance
4956   # both Tru64's cc and ICC support -MD to output dependencies as a
4957   # side effect of compilation, but ICC will put the dependencies in
4958   # the current directory while Tru64 will put them in the object
4959   # directory.
4960   mkdir sub
4961
4962   am_cv_CC_dependencies_compiler_type=none
4963   if test "$am_compiler_list" = ""; then
4964      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4965   fi
4966   am__universal=false
4967   case " $depcc " in #(
4968      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4969      esac
4970
4971   for depmode in $am_compiler_list; do
4972     # Setup a source with many dependencies, because some compilers
4973     # like to wrap large dependency lists on column 80 (with \), and
4974     # we should not choose a depcomp mode which is confused by this.
4975     #
4976     # We need to recreate these files for each test, as the compiler may
4977     # overwrite some of them when testing with obscure command lines.
4978     # This happens at least with the AIX C compiler.
4979     : > sub/conftest.c
4980     for i in 1 2 3 4 5 6; do
4981       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4983       # Solaris 10 /bin/sh.
4984       echo '/* dummy */' > sub/conftst$i.h
4985     done
4986     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
4988     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4989     # mode.  It turns out that the SunPro C++ compiler does not properly
4990     # handle '-M -o', and we need to detect this.  Also, some Intel
4991     # versions had trouble with output in subdirs.
4992     am__obj=sub/conftest.${OBJEXT-o}
4993     am__minus_obj="-o $am__obj"
4994     case $depmode in
4995     gcc)
4996       # This depmode causes a compiler race in universal mode.
4997       test "$am__universal" = false || continue
4998       ;;
4999     nosideeffect)
5000       # After this tag, mechanisms are not by side-effect, so they'll
5001       # only be used when explicitly requested.
5002       if test "x$enable_dependency_tracking" = xyes; then
5003         continue
5004       else
5005         break
5006       fi
5007       ;;
5008     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5009       # This compiler won't grok '-c -o', but also, the minuso test has
5010       # not run yet.  These depmodes are late enough in the game, and
5011       # so weak that their functioning should not be impacted.
5012       am__obj=conftest.${OBJEXT-o}
5013       am__minus_obj=
5014       ;;
5015     none) break ;;
5016     esac
5017     if depmode=$depmode \
5018        source=sub/conftest.c object=$am__obj \
5019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5021          >/dev/null 2>conftest.err &&
5022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5024        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5026       # icc doesn't choke on unknown options, it will just issue warnings
5027       # or remarks (even with -Werror).  So we grep stderr for any message
5028       # that says an option was ignored or not supported.
5029       # When given -MP, icc 7.0 and 7.1 complain thusly:
5030       #   icc: Command line warning: ignoring option '-M'; no argument required
5031       # The diagnosis changed in icc 8.0:
5032       #   icc: Command line remark: option '-MP' not supported
5033       if (grep 'ignoring option' conftest.err ||
5034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5035         am_cv_CC_dependencies_compiler_type=$depmode
5036         break
5037       fi
5038     fi
5039   done
5040
5041   cd ..
5042   rm -rf conftest.dir
5043 else
5044   am_cv_CC_dependencies_compiler_type=none
5045 fi
5046
5047 fi
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5049 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5051
5052  if
5053   test "x$enable_dependency_tracking" != xno \
5054   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5055   am__fastdepCC_TRUE=
5056   am__fastdepCC_FALSE='#'
5057 else
5058   am__fastdepCC_TRUE='#'
5059   am__fastdepCC_FALSE=
5060 fi
5061
5062
5063 ac_ext=c
5064 ac_cpp='$CPP $CPPFLAGS'
5065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5069 printf %s "checking how to run the C preprocessor... " >&6; }
5070 # On Suns, sometimes $CPP names a directory.
5071 if test -n "$CPP" && test -d "$CPP"; then
5072   CPP=
5073 fi
5074 if test -z "$CPP"; then
5075   if test ${ac_cv_prog_CPP+y}
5076 then :
5077   printf %s "(cached) " >&6
5078 else $as_nop
5079       # Double quotes because $CC needs to be expanded
5080     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5081     do
5082       ac_preproc_ok=false
5083 for ac_c_preproc_warn_flag in '' yes
5084 do
5085   # Use a header file that comes with gcc, so configuring glibc
5086   # with a fresh cross-compiler works.
5087   # On the NeXT, cc -E runs the code through the compiler's parser,
5088   # not just through cpp. "Syntax error" is here to catch this case.
5089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h.  */
5091 #include <limits.h>
5092                      Syntax error
5093 _ACEOF
5094 if ac_fn_c_try_cpp "$LINENO"
5095 then :
5096
5097 else $as_nop
5098   # Broken: fails on valid input.
5099 continue
5100 fi
5101 rm -f conftest.err conftest.i conftest.$ac_ext
5102
5103   # OK, works on sane cases.  Now check whether nonexistent headers
5104   # can be detected and how.
5105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h.  */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if ac_fn_c_try_cpp "$LINENO"
5110 then :
5111   # Broken: success on invalid input.
5112 continue
5113 else $as_nop
5114   # Passes both tests.
5115 ac_preproc_ok=:
5116 break
5117 fi
5118 rm -f conftest.err conftest.i conftest.$ac_ext
5119
5120 done
5121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5122 rm -f conftest.i conftest.err conftest.$ac_ext
5123 if $ac_preproc_ok
5124 then :
5125   break
5126 fi
5127
5128     done
5129     ac_cv_prog_CPP=$CPP
5130
5131 fi
5132   CPP=$ac_cv_prog_CPP
5133 else
5134   ac_cv_prog_CPP=$CPP
5135 fi
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5137 printf "%s\n" "$CPP" >&6; }
5138 ac_preproc_ok=false
5139 for ac_c_preproc_warn_flag in '' yes
5140 do
5141   # Use a header file that comes with gcc, so configuring glibc
5142   # with a fresh cross-compiler works.
5143   # On the NeXT, cc -E runs the code through the compiler's parser,
5144   # not just through cpp. "Syntax error" is here to catch this case.
5145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h.  */
5147 #include <limits.h>
5148                      Syntax error
5149 _ACEOF
5150 if ac_fn_c_try_cpp "$LINENO"
5151 then :
5152
5153 else $as_nop
5154   # Broken: fails on valid input.
5155 continue
5156 fi
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5158
5159   # OK, works on sane cases.  Now check whether nonexistent headers
5160   # can be detected and how.
5161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h.  */
5163 #include <ac_nonexistent.h>
5164 _ACEOF
5165 if ac_fn_c_try_cpp "$LINENO"
5166 then :
5167   # Broken: success on invalid input.
5168 continue
5169 else $as_nop
5170   # Passes both tests.
5171 ac_preproc_ok=:
5172 break
5173 fi
5174 rm -f conftest.err conftest.i conftest.$ac_ext
5175
5176 done
5177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178 rm -f conftest.i conftest.err conftest.$ac_ext
5179 if $ac_preproc_ok
5180 then :
5181
5182 else $as_nop
5183   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5184 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5185 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5186 See \`config.log' for more details" "$LINENO" 5; }
5187 fi
5188
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195
5196
5197
5198
5199
5200
5201 ac_ext=cpp
5202 ac_cpp='$CXXCPP $CPPFLAGS'
5203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5206 if test -z "$CXX"; then
5207   if test -n "$CCC"; then
5208     CXX=$CCC
5209   else
5210     if test -n "$ac_tool_prefix"; then
5211   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5212   do
5213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5216 printf %s "checking for $ac_word... " >&6; }
5217 if test ${ac_cv_prog_CXX+y}
5218 then :
5219   printf %s "(cached) " >&6
5220 else $as_nop
5221   if test -n "$CXX"; then
5222   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   case $as_dir in #(((
5229     '') as_dir=./ ;;
5230     */) ;;
5231     *) as_dir=$as_dir/ ;;
5232   esac
5233     for ac_exec_ext in '' $ac_executable_extensions; do
5234   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5235     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5236     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5237     break 2
5238   fi
5239 done
5240   done
5241 IFS=$as_save_IFS
5242
5243 fi
5244 fi
5245 CXX=$ac_cv_prog_CXX
5246 if test -n "$CXX"; then
5247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5248 printf "%s\n" "$CXX" >&6; }
5249 else
5250   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 printf "%s\n" "no" >&6; }
5252 fi
5253
5254
5255     test -n "$CXX" && break
5256   done
5257 fi
5258 if test -z "$CXX"; then
5259   ac_ct_CXX=$CXX
5260   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5261 do
5262   # Extract the first word of "$ac_prog", so it can be a program name with args.
5263 set dummy $ac_prog; ac_word=$2
5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 printf %s "checking for $ac_word... " >&6; }
5266 if test ${ac_cv_prog_ac_ct_CXX+y}
5267 then :
5268   printf %s "(cached) " >&6
5269 else $as_nop
5270   if test -n "$ac_ct_CXX"; then
5271   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   case $as_dir in #(((
5278     '') as_dir=./ ;;
5279     */) ;;
5280     *) as_dir=$as_dir/ ;;
5281   esac
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_ac_ct_CXX="$ac_prog"
5285     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5295 if test -n "$ac_ct_CXX"; then
5296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5297 printf "%s\n" "$ac_ct_CXX" >&6; }
5298 else
5299   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 printf "%s\n" "no" >&6; }
5301 fi
5302
5303
5304   test -n "$ac_ct_CXX" && break
5305 done
5306
5307   if test "x$ac_ct_CXX" = x; then
5308     CXX="g++"
5309   else
5310     case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314 ac_tool_warned=yes ;;
5315 esac
5316     CXX=$ac_ct_CXX
5317   fi
5318 fi
5319
5320   fi
5321 fi
5322 # Provide some information about the compiler.
5323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5324 set X $ac_compile
5325 ac_compiler=$2
5326 for ac_option in --version -v -V -qversion; do
5327   { { ac_try="$ac_compiler $ac_option >&5"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5333 printf "%s\n" "$ac_try_echo"; } >&5
5334   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5335   ac_status=$?
5336   if test -s conftest.err; then
5337     sed '10a\
5338 ... rest of stderr output deleted ...
5339          10q' conftest.err >conftest.er1
5340     cat conftest.er1 >&5
5341   fi
5342   rm -f conftest.er1 conftest.err
5343   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5344   test $ac_status = 0; }
5345 done
5346
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5348 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5349 if test ${ac_cv_cxx_compiler_gnu+y}
5350 then :
5351   printf %s "(cached) " >&6
5352 else $as_nop
5353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h.  */
5355
5356 int
5357 main (void)
5358 {
5359 #ifndef __GNUC__
5360        choke me
5361 #endif
5362
5363   ;
5364   return 0;
5365 }
5366 _ACEOF
5367 if ac_fn_cxx_try_compile "$LINENO"
5368 then :
5369   ac_compiler_gnu=yes
5370 else $as_nop
5371   ac_compiler_gnu=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5375
5376 fi
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5378 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5380
5381 if test $ac_compiler_gnu = yes; then
5382   GXX=yes
5383 else
5384   GXX=
5385 fi
5386 ac_test_CXXFLAGS=${CXXFLAGS+y}
5387 ac_save_CXXFLAGS=$CXXFLAGS
5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5389 printf %s "checking whether $CXX accepts -g... " >&6; }
5390 if test ${ac_cv_prog_cxx_g+y}
5391 then :
5392   printf %s "(cached) " >&6
5393 else $as_nop
5394   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5395    ac_cxx_werror_flag=yes
5396    ac_cv_prog_cxx_g=no
5397    CXXFLAGS="-g"
5398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5399 /* end confdefs.h.  */
5400
5401 int
5402 main (void)
5403 {
5404
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 if ac_fn_cxx_try_compile "$LINENO"
5410 then :
5411   ac_cv_prog_cxx_g=yes
5412 else $as_nop
5413   CXXFLAGS=""
5414       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h.  */
5416
5417 int
5418 main (void)
5419 {
5420
5421   ;
5422   return 0;
5423 }
5424 _ACEOF
5425 if ac_fn_cxx_try_compile "$LINENO"
5426 then :
5427
5428 else $as_nop
5429   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5430          CXXFLAGS="-g"
5431          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h.  */
5433
5434 int
5435 main (void)
5436 {
5437
5438   ;
5439   return 0;
5440 }
5441 _ACEOF
5442 if ac_fn_cxx_try_compile "$LINENO"
5443 then :
5444   ac_cv_prog_cxx_g=yes
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5451    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5454 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5455 if test $ac_test_CXXFLAGS; then
5456   CXXFLAGS=$ac_save_CXXFLAGS
5457 elif test $ac_cv_prog_cxx_g = yes; then
5458   if test "$GXX" = yes; then
5459     CXXFLAGS="-g -O2"
5460   else
5461     CXXFLAGS="-g"
5462   fi
5463 else
5464   if test "$GXX" = yes; then
5465     CXXFLAGS="-O2"
5466   else
5467     CXXFLAGS=
5468   fi
5469 fi
5470 ac_prog_cxx_stdcxx=no
5471 if test x$ac_prog_cxx_stdcxx = xno
5472 then :
5473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5474 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
5475 if test ${ac_cv_prog_cxx_cxx11+y}
5476 then :
5477   printf %s "(cached) " >&6
5478 else $as_nop
5479   ac_cv_prog_cxx_cxx11=no
5480 ac_save_CXX=$CXX
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h.  */
5483 $ac_cxx_conftest_cxx11_program
5484 _ACEOF
5485 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5486 do
5487   CXX="$ac_save_CXX $ac_arg"
5488   if ac_fn_cxx_try_compile "$LINENO"
5489 then :
5490   ac_cv_prog_cxx_cxx11=$ac_arg
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.beam
5493   test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5494 done
5495 rm -f conftest.$ac_ext
5496 CXX=$ac_save_CXX
5497 fi
5498
5499 if test "x$ac_cv_prog_cxx_cxx11" = xno
5500 then :
5501   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5502 printf "%s\n" "unsupported" >&6; }
5503 else $as_nop
5504   if test "x$ac_cv_prog_cxx_cxx11" = x
5505 then :
5506   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5507 printf "%s\n" "none needed" >&6; }
5508 else $as_nop
5509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
5510 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
5511      CXX="$CXX $ac_cv_prog_cxx_cxx11"
5512 fi
5513   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
5514   ac_prog_cxx_stdcxx=cxx11
5515 fi
5516 fi
5517 if test x$ac_prog_cxx_stdcxx = xno
5518 then :
5519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5520 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
5521 if test ${ac_cv_prog_cxx_cxx98+y}
5522 then :
5523   printf %s "(cached) " >&6
5524 else $as_nop
5525   ac_cv_prog_cxx_cxx98=no
5526 ac_save_CXX=$CXX
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h.  */
5529 $ac_cxx_conftest_cxx98_program
5530 _ACEOF
5531 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5532 do
5533   CXX="$ac_save_CXX $ac_arg"
5534   if ac_fn_cxx_try_compile "$LINENO"
5535 then :
5536   ac_cv_prog_cxx_cxx98=$ac_arg
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext conftest.beam
5539   test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5540 done
5541 rm -f conftest.$ac_ext
5542 CXX=$ac_save_CXX
5543 fi
5544
5545 if test "x$ac_cv_prog_cxx_cxx98" = xno
5546 then :
5547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5548 printf "%s\n" "unsupported" >&6; }
5549 else $as_nop
5550   if test "x$ac_cv_prog_cxx_cxx98" = x
5551 then :
5552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5553 printf "%s\n" "none needed" >&6; }
5554 else $as_nop
5555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
5556 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
5557      CXX="$CXX $ac_cv_prog_cxx_cxx98"
5558 fi
5559   ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
5560   ac_prog_cxx_stdcxx=cxx98
5561 fi
5562 fi
5563
5564 ac_ext=c
5565 ac_cpp='$CPP $CPPFLAGS'
5566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5569
5570 depcc="$CXX"  am_compiler_list=
5571
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5573 printf %s "checking dependency style of $depcc... " >&6; }
5574 if test ${am_cv_CXX_dependencies_compiler_type+y}
5575 then :
5576   printf %s "(cached) " >&6
5577 else $as_nop
5578   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5579   # We make a subdir and do the tests there.  Otherwise we can end up
5580   # making bogus files that we don't know about and never remove.  For
5581   # instance it was reported that on HP-UX the gcc test will end up
5582   # making a dummy file named 'D' -- because '-MD' means "put the output
5583   # in D".
5584   rm -rf conftest.dir
5585   mkdir conftest.dir
5586   # Copy depcomp to subdir because otherwise we won't find it if we're
5587   # using a relative directory.
5588   cp "$am_depcomp" conftest.dir
5589   cd conftest.dir
5590   # We will build objects and dependencies in a subdirectory because
5591   # it helps to detect inapplicable dependency modes.  For instance
5592   # both Tru64's cc and ICC support -MD to output dependencies as a
5593   # side effect of compilation, but ICC will put the dependencies in
5594   # the current directory while Tru64 will put them in the object
5595   # directory.
5596   mkdir sub
5597
5598   am_cv_CXX_dependencies_compiler_type=none
5599   if test "$am_compiler_list" = ""; then
5600      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5601   fi
5602   am__universal=false
5603   case " $depcc " in #(
5604      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5605      esac
5606
5607   for depmode in $am_compiler_list; do
5608     # Setup a source with many dependencies, because some compilers
5609     # like to wrap large dependency lists on column 80 (with \), and
5610     # we should not choose a depcomp mode which is confused by this.
5611     #
5612     # We need to recreate these files for each test, as the compiler may
5613     # overwrite some of them when testing with obscure command lines.
5614     # This happens at least with the AIX C compiler.
5615     : > sub/conftest.c
5616     for i in 1 2 3 4 5 6; do
5617       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5618       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5619       # Solaris 10 /bin/sh.
5620       echo '/* dummy */' > sub/conftst$i.h
5621     done
5622     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5623
5624     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5625     # mode.  It turns out that the SunPro C++ compiler does not properly
5626     # handle '-M -o', and we need to detect this.  Also, some Intel
5627     # versions had trouble with output in subdirs.
5628     am__obj=sub/conftest.${OBJEXT-o}
5629     am__minus_obj="-o $am__obj"
5630     case $depmode in
5631     gcc)
5632       # This depmode causes a compiler race in universal mode.
5633       test "$am__universal" = false || continue
5634       ;;
5635     nosideeffect)
5636       # After this tag, mechanisms are not by side-effect, so they'll
5637       # only be used when explicitly requested.
5638       if test "x$enable_dependency_tracking" = xyes; then
5639         continue
5640       else
5641         break
5642       fi
5643       ;;
5644     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5645       # This compiler won't grok '-c -o', but also, the minuso test has
5646       # not run yet.  These depmodes are late enough in the game, and
5647       # so weak that their functioning should not be impacted.
5648       am__obj=conftest.${OBJEXT-o}
5649       am__minus_obj=
5650       ;;
5651     none) break ;;
5652     esac
5653     if depmode=$depmode \
5654        source=sub/conftest.c object=$am__obj \
5655        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5656        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5657          >/dev/null 2>conftest.err &&
5658        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5659        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5660        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5661        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5662       # icc doesn't choke on unknown options, it will just issue warnings
5663       # or remarks (even with -Werror).  So we grep stderr for any message
5664       # that says an option was ignored or not supported.
5665       # When given -MP, icc 7.0 and 7.1 complain thusly:
5666       #   icc: Command line warning: ignoring option '-M'; no argument required
5667       # The diagnosis changed in icc 8.0:
5668       #   icc: Command line remark: option '-MP' not supported
5669       if (grep 'ignoring option' conftest.err ||
5670           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5671         am_cv_CXX_dependencies_compiler_type=$depmode
5672         break
5673       fi
5674     fi
5675   done
5676
5677   cd ..
5678   rm -rf conftest.dir
5679 else
5680   am_cv_CXX_dependencies_compiler_type=none
5681 fi
5682
5683 fi
5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5685 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
5686 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5687
5688  if
5689   test "x$enable_dependency_tracking" != xno \
5690   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5691   am__fastdepCXX_TRUE=
5692   am__fastdepCXX_FALSE='#'
5693 else
5694   am__fastdepCXX_TRUE='#'
5695   am__fastdepCXX_FALSE=
5696 fi
5697
5698
5699 case `pwd` in
5700   *\ * | *\     *)
5701     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5702 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5703 esac
5704
5705
5706
5707 macro_version='2.4.7'
5708 macro_revision='2.4.7'
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 ltmain=$ac_aux_dir/ltmain.sh
5724
5725 # Backslashify metacharacters that are still active within
5726 # double-quoted strings.
5727 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5728
5729 # Same as above, but do not quote variable references.
5730 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5731
5732 # Sed substitution to delay expansion of an escaped shell variable in a
5733 # double_quote_subst'ed string.
5734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5735
5736 # Sed substitution to delay expansion of an escaped single quote.
5737 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5738
5739 # Sed substitution to avoid accidental globbing in evaled expressions
5740 no_glob_subst='s/\*/\\\*/g'
5741
5742 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5743 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5744 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5745
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5747 printf %s "checking how to print strings... " >&6; }
5748 # Test print first, because it will be a builtin if present.
5749 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5750    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5751   ECHO='print -r --'
5752 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5753   ECHO='printf %s\n'
5754 else
5755   # Use this function as a fallback that always works.
5756   func_fallback_echo ()
5757   {
5758     eval 'cat <<_LTECHO_EOF
5759 $1
5760 _LTECHO_EOF'
5761   }
5762   ECHO='func_fallback_echo'
5763 fi
5764
5765 # func_echo_all arg...
5766 # Invoke $ECHO with all args, space-separated.
5767 func_echo_all ()
5768 {
5769     $ECHO ""
5770 }
5771
5772 case $ECHO in
5773   printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5774 printf "%s\n" "printf" >&6; } ;;
5775   print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5776 printf "%s\n" "print -r" >&6; } ;;
5777   *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5778 printf "%s\n" "cat" >&6; } ;;
5779 esac
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5795 printf %s "checking for a sed that does not truncate output... " >&6; }
5796 if test ${ac_cv_path_SED+y}
5797 then :
5798   printf %s "(cached) " >&6
5799 else $as_nop
5800             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5801      for ac_i in 1 2 3 4 5 6 7; do
5802        ac_script="$ac_script$as_nl$ac_script"
5803      done
5804      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5805      { ac_script=; unset ac_script;}
5806      if test -z "$SED"; then
5807   ac_path_SED_found=false
5808   # Loop through the user's path and test for each of PROGNAME-LIST
5809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   case $as_dir in #(((
5814     '') as_dir=./ ;;
5815     */) ;;
5816     *) as_dir=$as_dir/ ;;
5817   esac
5818     for ac_prog in sed gsed
5819    do
5820     for ac_exec_ext in '' $ac_executable_extensions; do
5821       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5822       as_fn_executable_p "$ac_path_SED" || continue
5823 # Check for GNU ac_path_SED and select it if it is found.
5824   # Check for GNU $ac_path_SED
5825 case `"$ac_path_SED" --version 2>&1` in
5826 *GNU*)
5827   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5828 *)
5829   ac_count=0
5830   printf %s 0123456789 >"conftest.in"
5831   while :
5832   do
5833     cat "conftest.in" "conftest.in" >"conftest.tmp"
5834     mv "conftest.tmp" "conftest.in"
5835     cp "conftest.in" "conftest.nl"
5836     printf "%s\n" '' >> "conftest.nl"
5837     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5838     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5839     as_fn_arith $ac_count + 1 && ac_count=$as_val
5840     if test $ac_count -gt ${ac_path_SED_max-0}; then
5841       # Best one so far, save it but keep looking for a better one
5842       ac_cv_path_SED="$ac_path_SED"
5843       ac_path_SED_max=$ac_count
5844     fi
5845     # 10*(2^10) chars as input seems more than enough
5846     test $ac_count -gt 10 && break
5847   done
5848   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5849 esac
5850
5851       $ac_path_SED_found && break 3
5852     done
5853   done
5854   done
5855 IFS=$as_save_IFS
5856   if test -z "$ac_cv_path_SED"; then
5857     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5858   fi
5859 else
5860   ac_cv_path_SED=$SED
5861 fi
5862
5863 fi
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5865 printf "%s\n" "$ac_cv_path_SED" >&6; }
5866  SED="$ac_cv_path_SED"
5867   rm -f conftest.sed
5868
5869 test -z "$SED" && SED=sed
5870 Xsed="$SED -e 1s/^X//"
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5883 printf %s "checking for grep that handles long lines and -e... " >&6; }
5884 if test ${ac_cv_path_GREP+y}
5885 then :
5886   printf %s "(cached) " >&6
5887 else $as_nop
5888   if test -z "$GREP"; then
5889   ac_path_GREP_found=false
5890   # Loop through the user's path and test for each of PROGNAME-LIST
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5893 do
5894   IFS=$as_save_IFS
5895   case $as_dir in #(((
5896     '') as_dir=./ ;;
5897     */) ;;
5898     *) as_dir=$as_dir/ ;;
5899   esac
5900     for ac_prog in grep ggrep
5901    do
5902     for ac_exec_ext in '' $ac_executable_extensions; do
5903       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5904       as_fn_executable_p "$ac_path_GREP" || continue
5905 # Check for GNU ac_path_GREP and select it if it is found.
5906   # Check for GNU $ac_path_GREP
5907 case `"$ac_path_GREP" --version 2>&1` in
5908 *GNU*)
5909   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5910 *)
5911   ac_count=0
5912   printf %s 0123456789 >"conftest.in"
5913   while :
5914   do
5915     cat "conftest.in" "conftest.in" >"conftest.tmp"
5916     mv "conftest.tmp" "conftest.in"
5917     cp "conftest.in" "conftest.nl"
5918     printf "%s\n" 'GREP' >> "conftest.nl"
5919     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5921     as_fn_arith $ac_count + 1 && ac_count=$as_val
5922     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5923       # Best one so far, save it but keep looking for a better one
5924       ac_cv_path_GREP="$ac_path_GREP"
5925       ac_path_GREP_max=$ac_count
5926     fi
5927     # 10*(2^10) chars as input seems more than enough
5928     test $ac_count -gt 10 && break
5929   done
5930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5931 esac
5932
5933       $ac_path_GREP_found && break 3
5934     done
5935   done
5936   done
5937 IFS=$as_save_IFS
5938   if test -z "$ac_cv_path_GREP"; then
5939     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5940   fi
5941 else
5942   ac_cv_path_GREP=$GREP
5943 fi
5944
5945 fi
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5947 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5948  GREP="$ac_cv_path_GREP"
5949
5950
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5952 printf %s "checking for egrep... " >&6; }
5953 if test ${ac_cv_path_EGREP+y}
5954 then :
5955   printf %s "(cached) " >&6
5956 else $as_nop
5957   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5958    then ac_cv_path_EGREP="$GREP -E"
5959    else
5960      if test -z "$EGREP"; then
5961   ac_path_EGREP_found=false
5962   # Loop through the user's path and test for each of PROGNAME-LIST
5963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5965 do
5966   IFS=$as_save_IFS
5967   case $as_dir in #(((
5968     '') as_dir=./ ;;
5969     */) ;;
5970     *) as_dir=$as_dir/ ;;
5971   esac
5972     for ac_prog in egrep
5973    do
5974     for ac_exec_ext in '' $ac_executable_extensions; do
5975       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5976       as_fn_executable_p "$ac_path_EGREP" || continue
5977 # Check for GNU ac_path_EGREP and select it if it is found.
5978   # Check for GNU $ac_path_EGREP
5979 case `"$ac_path_EGREP" --version 2>&1` in
5980 *GNU*)
5981   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5982 *)
5983   ac_count=0
5984   printf %s 0123456789 >"conftest.in"
5985   while :
5986   do
5987     cat "conftest.in" "conftest.in" >"conftest.tmp"
5988     mv "conftest.tmp" "conftest.in"
5989     cp "conftest.in" "conftest.nl"
5990     printf "%s\n" 'EGREP' >> "conftest.nl"
5991     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5992     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5993     as_fn_arith $ac_count + 1 && ac_count=$as_val
5994     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5995       # Best one so far, save it but keep looking for a better one
5996       ac_cv_path_EGREP="$ac_path_EGREP"
5997       ac_path_EGREP_max=$ac_count
5998     fi
5999     # 10*(2^10) chars as input seems more than enough
6000     test $ac_count -gt 10 && break
6001   done
6002   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6003 esac
6004
6005       $ac_path_EGREP_found && break 3
6006     done
6007   done
6008   done
6009 IFS=$as_save_IFS
6010   if test -z "$ac_cv_path_EGREP"; then
6011     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6012   fi
6013 else
6014   ac_cv_path_EGREP=$EGREP
6015 fi
6016
6017    fi
6018 fi
6019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6020 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6021  EGREP="$ac_cv_path_EGREP"
6022
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6025 printf %s "checking for fgrep... " >&6; }
6026 if test ${ac_cv_path_FGREP+y}
6027 then :
6028   printf %s "(cached) " >&6
6029 else $as_nop
6030   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6031    then ac_cv_path_FGREP="$GREP -F"
6032    else
6033      if test -z "$FGREP"; then
6034   ac_path_FGREP_found=false
6035   # Loop through the user's path and test for each of PROGNAME-LIST
6036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6038 do
6039   IFS=$as_save_IFS
6040   case $as_dir in #(((
6041     '') as_dir=./ ;;
6042     */) ;;
6043     *) as_dir=$as_dir/ ;;
6044   esac
6045     for ac_prog in fgrep
6046    do
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048       ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6049       as_fn_executable_p "$ac_path_FGREP" || continue
6050 # Check for GNU ac_path_FGREP and select it if it is found.
6051   # Check for GNU $ac_path_FGREP
6052 case `"$ac_path_FGREP" --version 2>&1` in
6053 *GNU*)
6054   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6055 *)
6056   ac_count=0
6057   printf %s 0123456789 >"conftest.in"
6058   while :
6059   do
6060     cat "conftest.in" "conftest.in" >"conftest.tmp"
6061     mv "conftest.tmp" "conftest.in"
6062     cp "conftest.in" "conftest.nl"
6063     printf "%s\n" 'FGREP' >> "conftest.nl"
6064     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6065     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6066     as_fn_arith $ac_count + 1 && ac_count=$as_val
6067     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6068       # Best one so far, save it but keep looking for a better one
6069       ac_cv_path_FGREP="$ac_path_FGREP"
6070       ac_path_FGREP_max=$ac_count
6071     fi
6072     # 10*(2^10) chars as input seems more than enough
6073     test $ac_count -gt 10 && break
6074   done
6075   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6076 esac
6077
6078       $ac_path_FGREP_found && break 3
6079     done
6080   done
6081   done
6082 IFS=$as_save_IFS
6083   if test -z "$ac_cv_path_FGREP"; then
6084     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6085   fi
6086 else
6087   ac_cv_path_FGREP=$FGREP
6088 fi
6089
6090    fi
6091 fi
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6093 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6094  FGREP="$ac_cv_path_FGREP"
6095
6096
6097 test -z "$GREP" && GREP=grep
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 # Check whether --with-gnu-ld was given.
6118 if test ${with_gnu_ld+y}
6119 then :
6120   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6121 else $as_nop
6122   with_gnu_ld=no
6123 fi
6124
6125 ac_prog=ld
6126 if test yes = "$GCC"; then
6127   # Check if gcc -print-prog-name=ld gives a path.
6128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6129 printf %s "checking for ld used by $CC... " >&6; }
6130   case $host in
6131   *-*-mingw*)
6132     # gcc leaves a trailing carriage return, which upsets mingw
6133     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6134   *)
6135     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6136   esac
6137   case $ac_prog in
6138     # Accept absolute paths.
6139     [\\/]* | ?:[\\/]*)
6140       re_direlt='/[^/][^/]*/\.\./'
6141       # Canonicalize the pathname of ld
6142       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6143       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6144         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6145       done
6146       test -z "$LD" && LD=$ac_prog
6147       ;;
6148   "")
6149     # If it fails, then pretend we aren't using GCC.
6150     ac_prog=ld
6151     ;;
6152   *)
6153     # If it is relative, then search for the first ld in PATH.
6154     with_gnu_ld=unknown
6155     ;;
6156   esac
6157 elif test yes = "$with_gnu_ld"; then
6158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6159 printf %s "checking for GNU ld... " >&6; }
6160 else
6161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6162 printf %s "checking for non-GNU ld... " >&6; }
6163 fi
6164 if test ${lt_cv_path_LD+y}
6165 then :
6166   printf %s "(cached) " >&6
6167 else $as_nop
6168   if test -z "$LD"; then
6169   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6170   for ac_dir in $PATH; do
6171     IFS=$lt_save_ifs
6172     test -z "$ac_dir" && ac_dir=.
6173     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6174       lt_cv_path_LD=$ac_dir/$ac_prog
6175       # Check to see if the program is GNU ld.  I'd rather use --version,
6176       # but apparently some variants of GNU ld only accept -v.
6177       # Break only if it was the GNU/non-GNU ld that we prefer.
6178       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6179       *GNU* | *'with BFD'*)
6180         test no != "$with_gnu_ld" && break
6181         ;;
6182       *)
6183         test yes != "$with_gnu_ld" && break
6184         ;;
6185       esac
6186     fi
6187   done
6188   IFS=$lt_save_ifs
6189 else
6190   lt_cv_path_LD=$LD # Let the user override the test with a path.
6191 fi
6192 fi
6193
6194 LD=$lt_cv_path_LD
6195 if test -n "$LD"; then
6196   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6197 printf "%s\n" "$LD" >&6; }
6198 else
6199   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 printf "%s\n" "no" >&6; }
6201 fi
6202 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6204 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6205 if test ${lt_cv_prog_gnu_ld+y}
6206 then :
6207   printf %s "(cached) " >&6
6208 else $as_nop
6209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6210 case `$LD -v 2>&1 </dev/null` in
6211 *GNU* | *'with BFD'*)
6212   lt_cv_prog_gnu_ld=yes
6213   ;;
6214 *)
6215   lt_cv_prog_gnu_ld=no
6216   ;;
6217 esac
6218 fi
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6220 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6221 with_gnu_ld=$lt_cv_prog_gnu_ld
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6232 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6233 if test ${lt_cv_path_NM+y}
6234 then :
6235   printf %s "(cached) " >&6
6236 else $as_nop
6237   if test -n "$NM"; then
6238   # Let the user override the test.
6239   lt_cv_path_NM=$NM
6240 else
6241   lt_nm_to_check=${ac_tool_prefix}nm
6242   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6243     lt_nm_to_check="$lt_nm_to_check nm"
6244   fi
6245   for lt_tmp_nm in $lt_nm_to_check; do
6246     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6247     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6248       IFS=$lt_save_ifs
6249       test -z "$ac_dir" && ac_dir=.
6250       tmp_nm=$ac_dir/$lt_tmp_nm
6251       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6252         # Check to see if the nm accepts a BSD-compat flag.
6253         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6254         #   nm: unknown option "B" ignored
6255         # Tru64's nm complains that /dev/null is an invalid object file
6256         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6257         case $build_os in
6258         mingw*) lt_bad_file=conftest.nm/nofile ;;
6259         *) lt_bad_file=/dev/null ;;
6260         esac
6261         case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6262         *$lt_bad_file* | *'Invalid file or object type'*)
6263           lt_cv_path_NM="$tmp_nm -B"
6264           break 2
6265           ;;
6266         *)
6267           case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6268           */dev/null*)
6269             lt_cv_path_NM="$tmp_nm -p"
6270             break 2
6271             ;;
6272           *)
6273             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6274             continue # so that we can try to find one that supports BSD flags
6275             ;;
6276           esac
6277           ;;
6278         esac
6279       fi
6280     done
6281     IFS=$lt_save_ifs
6282   done
6283   : ${lt_cv_path_NM=no}
6284 fi
6285 fi
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6287 printf "%s\n" "$lt_cv_path_NM" >&6; }
6288 if test no != "$lt_cv_path_NM"; then
6289   NM=$lt_cv_path_NM
6290 else
6291   # Didn't find any BSD compatible name lister, look for dumpbin.
6292   if test -n "$DUMPBIN"; then :
6293     # Let the user override the test.
6294   else
6295     if test -n "$ac_tool_prefix"; then
6296   for ac_prog in dumpbin "link -dump"
6297   do
6298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 printf %s "checking for $ac_word... " >&6; }
6302 if test ${ac_cv_prog_DUMPBIN+y}
6303 then :
6304   printf %s "(cached) " >&6
6305 else $as_nop
6306   if test -n "$DUMPBIN"; then
6307   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6308 else
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH
6311 do
6312   IFS=$as_save_IFS
6313   case $as_dir in #(((
6314     '') as_dir=./ ;;
6315     */) ;;
6316     *) as_dir=$as_dir/ ;;
6317   esac
6318     for ac_exec_ext in '' $ac_executable_extensions; do
6319   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6320     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6321     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325   done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 DUMPBIN=$ac_cv_prog_DUMPBIN
6331 if test -n "$DUMPBIN"; then
6332   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6333 printf "%s\n" "$DUMPBIN" >&6; }
6334 else
6335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 printf "%s\n" "no" >&6; }
6337 fi
6338
6339
6340     test -n "$DUMPBIN" && break
6341   done
6342 fi
6343 if test -z "$DUMPBIN"; then
6344   ac_ct_DUMPBIN=$DUMPBIN
6345   for ac_prog in dumpbin "link -dump"
6346 do
6347   # Extract the first word of "$ac_prog", so it can be a program name with args.
6348 set dummy $ac_prog; ac_word=$2
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 printf %s "checking for $ac_word... " >&6; }
6351 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6352 then :
6353   printf %s "(cached) " >&6
6354 else $as_nop
6355   if test -n "$ac_ct_DUMPBIN"; then
6356   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   case $as_dir in #(((
6363     '') as_dir=./ ;;
6364     */) ;;
6365     *) as_dir=$as_dir/ ;;
6366   esac
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6369     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6370     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6380 if test -n "$ac_ct_DUMPBIN"; then
6381   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6382 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6383 else
6384   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 printf "%s\n" "no" >&6; }
6386 fi
6387
6388
6389   test -n "$ac_ct_DUMPBIN" && break
6390 done
6391
6392   if test "x$ac_ct_DUMPBIN" = x; then
6393     DUMPBIN=":"
6394   else
6395     case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401     DUMPBIN=$ac_ct_DUMPBIN
6402   fi
6403 fi
6404
6405     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6406     *COFF*)
6407       DUMPBIN="$DUMPBIN -symbols -headers"
6408       ;;
6409     *)
6410       DUMPBIN=:
6411       ;;
6412     esac
6413   fi
6414
6415   if test : != "$DUMPBIN"; then
6416     NM=$DUMPBIN
6417   fi
6418 fi
6419 test -z "$NM" && NM=nm
6420
6421
6422
6423
6424
6425
6426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6427 printf %s "checking the name lister ($NM) interface... " >&6; }
6428 if test ${lt_cv_nm_interface+y}
6429 then :
6430   printf %s "(cached) " >&6
6431 else $as_nop
6432   lt_cv_nm_interface="BSD nm"
6433   echo "int some_variable = 0;" > conftest.$ac_ext
6434   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6435   (eval "$ac_compile" 2>conftest.err)
6436   cat conftest.err >&5
6437   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6438   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6439   cat conftest.err >&5
6440   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6441   cat conftest.out >&5
6442   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6443     lt_cv_nm_interface="MS dumpbin"
6444   fi
6445   rm -f conftest*
6446 fi
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6448 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6449
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6451 printf %s "checking whether ln -s works... " >&6; }
6452 LN_S=$as_ln_s
6453 if test "$LN_S" = "ln -s"; then
6454   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 printf "%s\n" "yes" >&6; }
6456 else
6457   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6458 printf "%s\n" "no, using $LN_S" >&6; }
6459 fi
6460
6461 # find the maximum length of command line arguments
6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6463 printf %s "checking the maximum length of command line arguments... " >&6; }
6464 if test ${lt_cv_sys_max_cmd_len+y}
6465 then :
6466   printf %s "(cached) " >&6
6467 else $as_nop
6468     i=0
6469   teststring=ABCD
6470
6471   case $build_os in
6472   msdosdjgpp*)
6473     # On DJGPP, this test can blow up pretty badly due to problems in libc
6474     # (any single argument exceeding 2000 bytes causes a buffer overrun
6475     # during glob expansion).  Even if it were fixed, the result of this
6476     # check would be larger than it should be.
6477     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6478     ;;
6479
6480   gnu*)
6481     # Under GNU Hurd, this test is not required because there is
6482     # no limit to the length of command line arguments.
6483     # Libtool will interpret -1 as no limit whatsoever
6484     lt_cv_sys_max_cmd_len=-1;
6485     ;;
6486
6487   cygwin* | mingw* | cegcc*)
6488     # On Win9x/ME, this test blows up -- it succeeds, but takes
6489     # about 5 minutes as the teststring grows exponentially.
6490     # Worse, since 9x/ME are not pre-emptively multitasking,
6491     # you end up with a "frozen" computer, even though with patience
6492     # the test eventually succeeds (with a max line length of 256k).
6493     # Instead, let's just punt: use the minimum linelength reported by
6494     # all of the supported platforms: 8192 (on NT/2K/XP).
6495     lt_cv_sys_max_cmd_len=8192;
6496     ;;
6497
6498   mint*)
6499     # On MiNT this can take a long time and run out of memory.
6500     lt_cv_sys_max_cmd_len=8192;
6501     ;;
6502
6503   amigaos*)
6504     # On AmigaOS with pdksh, this test takes hours, literally.
6505     # So we just punt and use a minimum line length of 8192.
6506     lt_cv_sys_max_cmd_len=8192;
6507     ;;
6508
6509   bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6510     # This has been around since 386BSD, at least.  Likely further.
6511     if test -x /sbin/sysctl; then
6512       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6513     elif test -x /usr/sbin/sysctl; then
6514       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6515     else
6516       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6517     fi
6518     # And add a safety zone
6519     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6520     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6521     ;;
6522
6523   interix*)
6524     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6525     lt_cv_sys_max_cmd_len=196608
6526     ;;
6527
6528   os2*)
6529     # The test takes a long time on OS/2.
6530     lt_cv_sys_max_cmd_len=8192
6531     ;;
6532
6533   osf*)
6534     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6535     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6536     # nice to cause kernel panics so lets avoid the loop below.
6537     # First set a reasonable default.
6538     lt_cv_sys_max_cmd_len=16384
6539     #
6540     if test -x /sbin/sysconfig; then
6541       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6542         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6543       esac
6544     fi
6545     ;;
6546   sco3.2v5*)
6547     lt_cv_sys_max_cmd_len=102400
6548     ;;
6549   sysv5* | sco5v6* | sysv4.2uw2*)
6550     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6551     if test -n "$kargmax"; then
6552       lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[         ]//'`
6553     else
6554       lt_cv_sys_max_cmd_len=32768
6555     fi
6556     ;;
6557   *)
6558     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6559     if test -n "$lt_cv_sys_max_cmd_len" && \
6560        test undefined != "$lt_cv_sys_max_cmd_len"; then
6561       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6562       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6563     else
6564       # Make teststring a little bigger before we do anything with it.
6565       # a 1K string should be a reasonable start.
6566       for i in 1 2 3 4 5 6 7 8; do
6567         teststring=$teststring$teststring
6568       done
6569       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6570       # If test is not a shell built-in, we'll probably end up computing a
6571       # maximum length that is only half of the actual maximum length, but
6572       # we can't tell.
6573       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6574                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6575               test 17 != "$i" # 1/2 MB should be enough
6576       do
6577         i=`expr $i + 1`
6578         teststring=$teststring$teststring
6579       done
6580       # Only check the string length outside the loop.
6581       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6582       teststring=
6583       # Add a significant safety factor because C++ compilers can tack on
6584       # massive amounts of additional arguments before passing them to the
6585       # linker.  It appears as though 1/2 is a usable value.
6586       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6587     fi
6588     ;;
6589   esac
6590
6591 fi
6592
6593 if test -n "$lt_cv_sys_max_cmd_len"; then
6594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6595 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6596 else
6597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6598 printf "%s\n" "none" >&6; }
6599 fi
6600 max_cmd_len=$lt_cv_sys_max_cmd_len
6601
6602
6603
6604
6605
6606
6607 : ${CP="cp -f"}
6608 : ${MV="mv -f"}
6609 : ${RM="rm -f"}
6610
6611 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6612   lt_unset=unset
6613 else
6614   lt_unset=false
6615 fi
6616
6617
6618
6619
6620
6621 # test EBCDIC or ASCII
6622 case `echo X|tr X '\101'` in
6623  A) # ASCII based system
6624     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6625   lt_SP2NL='tr \040 \012'
6626   lt_NL2SP='tr \015\012 \040\040'
6627   ;;
6628  *) # EBCDIC based system
6629   lt_SP2NL='tr \100 \n'
6630   lt_NL2SP='tr \r\n \100\100'
6631   ;;
6632 esac
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6643 printf %s "checking how to convert $build file names to $host format... " >&6; }
6644 if test ${lt_cv_to_host_file_cmd+y}
6645 then :
6646   printf %s "(cached) " >&6
6647 else $as_nop
6648   case $host in
6649   *-*-mingw* )
6650     case $build in
6651       *-*-mingw* ) # actually msys
6652         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6653         ;;
6654       *-*-cygwin* )
6655         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6656         ;;
6657       * ) # otherwise, assume *nix
6658         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6659         ;;
6660     esac
6661     ;;
6662   *-*-cygwin* )
6663     case $build in
6664       *-*-mingw* ) # actually msys
6665         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6666         ;;
6667       *-*-cygwin* )
6668         lt_cv_to_host_file_cmd=func_convert_file_noop
6669         ;;
6670       * ) # otherwise, assume *nix
6671         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6672         ;;
6673     esac
6674     ;;
6675   * ) # unhandled hosts (and "normal" native builds)
6676     lt_cv_to_host_file_cmd=func_convert_file_noop
6677     ;;
6678 esac
6679
6680 fi
6681
6682 to_host_file_cmd=$lt_cv_to_host_file_cmd
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6684 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6685
6686
6687
6688
6689
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6691 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6692 if test ${lt_cv_to_tool_file_cmd+y}
6693 then :
6694   printf %s "(cached) " >&6
6695 else $as_nop
6696   #assume ordinary cross tools, or native build.
6697 lt_cv_to_tool_file_cmd=func_convert_file_noop
6698 case $host in
6699   *-*-mingw* )
6700     case $build in
6701       *-*-mingw* ) # actually msys
6702         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6703         ;;
6704     esac
6705     ;;
6706 esac
6707
6708 fi
6709
6710 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6712 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6713
6714
6715
6716
6717
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6719 printf %s "checking for $LD option to reload object files... " >&6; }
6720 if test ${lt_cv_ld_reload_flag+y}
6721 then :
6722   printf %s "(cached) " >&6
6723 else $as_nop
6724   lt_cv_ld_reload_flag='-r'
6725 fi
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6727 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6728 reload_flag=$lt_cv_ld_reload_flag
6729 case $reload_flag in
6730 "" | " "*) ;;
6731 *) reload_flag=" $reload_flag" ;;
6732 esac
6733 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6734 case $host_os in
6735   cygwin* | mingw* | pw32* | cegcc*)
6736     if test yes != "$GCC"; then
6737       reload_cmds=false
6738     fi
6739     ;;
6740   darwin*)
6741     if test yes = "$GCC"; then
6742       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6743     else
6744       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6745     fi
6746     ;;
6747 esac
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757 if test -n "$ac_tool_prefix"; then
6758   # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6759 set dummy ${ac_tool_prefix}file; ac_word=$2
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 printf %s "checking for $ac_word... " >&6; }
6762 if test ${ac_cv_prog_FILECMD+y}
6763 then :
6764   printf %s "(cached) " >&6
6765 else $as_nop
6766   if test -n "$FILECMD"; then
6767   ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   case $as_dir in #(((
6774     '') as_dir=./ ;;
6775     */) ;;
6776     *) as_dir=$as_dir/ ;;
6777   esac
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6780     ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6781     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 FILECMD=$ac_cv_prog_FILECMD
6791 if test -n "$FILECMD"; then
6792   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6793 printf "%s\n" "$FILECMD" >&6; }
6794 else
6795   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 printf "%s\n" "no" >&6; }
6797 fi
6798
6799
6800 fi
6801 if test -z "$ac_cv_prog_FILECMD"; then
6802   ac_ct_FILECMD=$FILECMD
6803   # Extract the first word of "file", so it can be a program name with args.
6804 set dummy file; ac_word=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s "checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6808 then :
6809   printf %s "(cached) " >&6
6810 else $as_nop
6811   if test -n "$ac_ct_FILECMD"; then
6812   ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   case $as_dir in #(((
6819     '') as_dir=./ ;;
6820     */) ;;
6821     *) as_dir=$as_dir/ ;;
6822   esac
6823     for ac_exec_ext in '' $ac_executable_extensions; do
6824   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6825     ac_cv_prog_ac_ct_FILECMD="file"
6826     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6827     break 2
6828   fi
6829 done
6830   done
6831 IFS=$as_save_IFS
6832
6833 fi
6834 fi
6835 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6836 if test -n "$ac_ct_FILECMD"; then
6837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6838 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6839 else
6840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6842 fi
6843
6844   if test "x$ac_ct_FILECMD" = x; then
6845     FILECMD=":"
6846   else
6847     case $cross_compiling:$ac_tool_warned in
6848 yes:)
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6851 ac_tool_warned=yes ;;
6852 esac
6853     FILECMD=$ac_ct_FILECMD
6854   fi
6855 else
6856   FILECMD="$ac_cv_prog_FILECMD"
6857 fi
6858
6859
6860
6861
6862
6863
6864
6865 if test -n "$ac_tool_prefix"; then
6866   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6867 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 printf %s "checking for $ac_word... " >&6; }
6870 if test ${ac_cv_prog_OBJDUMP+y}
6871 then :
6872   printf %s "(cached) " >&6
6873 else $as_nop
6874   if test -n "$OBJDUMP"; then
6875   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   case $as_dir in #(((
6882     '') as_dir=./ ;;
6883     */) ;;
6884     *) as_dir=$as_dir/ ;;
6885   esac
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6889     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893   done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 OBJDUMP=$ac_cv_prog_OBJDUMP
6899 if test -n "$OBJDUMP"; then
6900   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6901 printf "%s\n" "$OBJDUMP" >&6; }
6902 else
6903   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 printf "%s\n" "no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_OBJDUMP"; then
6910   ac_ct_OBJDUMP=$OBJDUMP
6911   # Extract the first word of "objdump", so it can be a program name with args.
6912 set dummy objdump; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6916 then :
6917   printf %s "(cached) " >&6
6918 else $as_nop
6919   if test -n "$ac_ct_OBJDUMP"; then
6920   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   case $as_dir in #(((
6927     '') as_dir=./ ;;
6928     */) ;;
6929     *) as_dir=$as_dir/ ;;
6930   esac
6931     for ac_exec_ext in '' $ac_executable_extensions; do
6932   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6934     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938   done
6939 IFS=$as_save_IFS
6940
6941 fi
6942 fi
6943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6944 if test -n "$ac_ct_OBJDUMP"; then
6945   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6946 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6947 else
6948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 printf "%s\n" "no" >&6; }
6950 fi
6951
6952   if test "x$ac_ct_OBJDUMP" = x; then
6953     OBJDUMP="false"
6954   else
6955     case $cross_compiling:$ac_tool_warned in
6956 yes:)
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6960 esac
6961     OBJDUMP=$ac_ct_OBJDUMP
6962   fi
6963 else
6964   OBJDUMP="$ac_cv_prog_OBJDUMP"
6965 fi
6966
6967 test -z "$OBJDUMP" && OBJDUMP=objdump
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6978 printf %s "checking how to recognize dependent libraries... " >&6; }
6979 if test ${lt_cv_deplibs_check_method+y}
6980 then :
6981   printf %s "(cached) " >&6
6982 else $as_nop
6983   lt_cv_file_magic_cmd='$MAGIC_CMD'
6984 lt_cv_file_magic_test_file=
6985 lt_cv_deplibs_check_method='unknown'
6986 # Need to set the preceding variable on all platforms that support
6987 # interlibrary dependencies.
6988 # 'none' -- dependencies not supported.
6989 # 'unknown' -- same as none, but documents that we really don't know.
6990 # 'pass_all' -- all dependencies passed with no checks.
6991 # 'test_compile' -- check by making test program.
6992 # 'file_magic [[regex]]' -- check by looking for files in library path
6993 # that responds to the $file_magic_cmd with a given extended regex.
6994 # If you have 'file' or equivalent on your system and you're not sure
6995 # whether 'pass_all' will *always* work, you probably want this one.
6996
6997 case $host_os in
6998 aix[4-9]*)
6999   lt_cv_deplibs_check_method=pass_all
7000   ;;
7001
7002 beos*)
7003   lt_cv_deplibs_check_method=pass_all
7004   ;;
7005
7006 bsdi[45]*)
7007   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7008   lt_cv_file_magic_cmd='$FILECMD -L'
7009   lt_cv_file_magic_test_file=/shlib/libc.so
7010   ;;
7011
7012 cygwin*)
7013   # func_win32_libid is a shell function defined in ltmain.sh
7014   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015   lt_cv_file_magic_cmd='func_win32_libid'
7016   ;;
7017
7018 mingw* | pw32*)
7019   # Base MSYS/MinGW do not provide the 'file' command needed by
7020   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7021   # unless we find 'file', for example because we are cross-compiling.
7022   if ( file / ) >/dev/null 2>&1; then
7023     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7024     lt_cv_file_magic_cmd='func_win32_libid'
7025   else
7026     # Keep this pattern in sync with the one in func_win32_libid.
7027     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7028     lt_cv_file_magic_cmd='$OBJDUMP -f'
7029   fi
7030   ;;
7031
7032 cegcc*)
7033   # use the weaker test based on 'objdump'. See mingw*.
7034   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7035   lt_cv_file_magic_cmd='$OBJDUMP -f'
7036   ;;
7037
7038 darwin* | rhapsody*)
7039   lt_cv_deplibs_check_method=pass_all
7040   ;;
7041
7042 freebsd* | dragonfly* | midnightbsd*)
7043   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044     case $host_cpu in
7045     i*86 )
7046       # Not sure whether the presence of OpenBSD here was a mistake.
7047       # Let's accept both of them until this is cleared up.
7048       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7049       lt_cv_file_magic_cmd=$FILECMD
7050       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7051       ;;
7052     esac
7053   else
7054     lt_cv_deplibs_check_method=pass_all
7055   fi
7056   ;;
7057
7058 haiku*)
7059   lt_cv_deplibs_check_method=pass_all
7060   ;;
7061
7062 hpux10.20* | hpux11*)
7063   lt_cv_file_magic_cmd=$FILECMD
7064   case $host_cpu in
7065   ia64*)
7066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7067     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7068     ;;
7069   hppa*64*)
7070     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7071     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7072     ;;
7073   *)
7074     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7075     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7076     ;;
7077   esac
7078   ;;
7079
7080 interix[3-9]*)
7081   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7082   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7083   ;;
7084
7085 irix5* | irix6* | nonstopux*)
7086   case $LD in
7087   *-32|*"-32 ") libmagic=32-bit;;
7088   *-n32|*"-n32 ") libmagic=N32;;
7089   *-64|*"-64 ") libmagic=64-bit;;
7090   *) libmagic=never-match;;
7091   esac
7092   lt_cv_deplibs_check_method=pass_all
7093   ;;
7094
7095 # This must be glibc/ELF.
7096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7097   lt_cv_deplibs_check_method=pass_all
7098   ;;
7099
7100 netbsd* | netbsdelf*-gnu)
7101   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7102     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7103   else
7104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7105   fi
7106   ;;
7107
7108 newos6*)
7109   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7110   lt_cv_file_magic_cmd=$FILECMD
7111   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7112   ;;
7113
7114 *nto* | *qnx*)
7115   lt_cv_deplibs_check_method=pass_all
7116   ;;
7117
7118 openbsd* | bitrig*)
7119   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7120     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7121   else
7122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7123   fi
7124   ;;
7125
7126 osf3* | osf4* | osf5*)
7127   lt_cv_deplibs_check_method=pass_all
7128   ;;
7129
7130 rdos*)
7131   lt_cv_deplibs_check_method=pass_all
7132   ;;
7133
7134 solaris*)
7135   lt_cv_deplibs_check_method=pass_all
7136   ;;
7137
7138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7139   lt_cv_deplibs_check_method=pass_all
7140   ;;
7141
7142 sysv4 | sysv4.3*)
7143   case $host_vendor in
7144   motorola)
7145     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]'
7146     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7147     ;;
7148   ncr)
7149     lt_cv_deplibs_check_method=pass_all
7150     ;;
7151   sequent)
7152     lt_cv_file_magic_cmd='/bin/file'
7153     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7154     ;;
7155   sni)
7156     lt_cv_file_magic_cmd='/bin/file'
7157     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7158     lt_cv_file_magic_test_file=/lib/libc.so
7159     ;;
7160   siemens)
7161     lt_cv_deplibs_check_method=pass_all
7162     ;;
7163   pc)
7164     lt_cv_deplibs_check_method=pass_all
7165     ;;
7166   esac
7167   ;;
7168
7169 tpf*)
7170   lt_cv_deplibs_check_method=pass_all
7171   ;;
7172 os2*)
7173   lt_cv_deplibs_check_method=pass_all
7174   ;;
7175 esac
7176
7177 fi
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7179 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7180
7181 file_magic_glob=
7182 want_nocaseglob=no
7183 if test "$build" = "$host"; then
7184   case $host_os in
7185   mingw* | pw32*)
7186     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7187       want_nocaseglob=yes
7188     else
7189       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7190     fi
7191     ;;
7192   esac
7193 fi
7194
7195 file_magic_cmd=$lt_cv_file_magic_cmd
7196 deplibs_check_method=$lt_cv_deplibs_check_method
7197 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220 if test -n "$ac_tool_prefix"; then
7221   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 printf %s "checking for $ac_word... " >&6; }
7225 if test ${ac_cv_prog_DLLTOOL+y}
7226 then :
7227   printf %s "(cached) " >&6
7228 else $as_nop
7229   if test -n "$DLLTOOL"; then
7230   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   case $as_dir in #(((
7237     '') as_dir=./ ;;
7238     */) ;;
7239     *) as_dir=$as_dir/ ;;
7240   esac
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7243     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7244     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 DLLTOOL=$ac_cv_prog_DLLTOOL
7254 if test -n "$DLLTOOL"; then
7255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7256 printf "%s\n" "$DLLTOOL" >&6; }
7257 else
7258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 printf "%s\n" "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_DLLTOOL"; then
7265   ac_ct_DLLTOOL=$DLLTOOL
7266   # Extract the first word of "dlltool", so it can be a program name with args.
7267 set dummy dlltool; ac_word=$2
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 printf %s "checking for $ac_word... " >&6; }
7270 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7271 then :
7272   printf %s "(cached) " >&6
7273 else $as_nop
7274   if test -n "$ac_ct_DLLTOOL"; then
7275   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   case $as_dir in #(((
7282     '') as_dir=./ ;;
7283     */) ;;
7284     *) as_dir=$as_dir/ ;;
7285   esac
7286     for ac_exec_ext in '' $ac_executable_extensions; do
7287   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7288     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7289     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7290     break 2
7291   fi
7292 done
7293   done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7299 if test -n "$ac_ct_DLLTOOL"; then
7300   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7301 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7302 else
7303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 printf "%s\n" "no" >&6; }
7305 fi
7306
7307   if test "x$ac_ct_DLLTOOL" = x; then
7308     DLLTOOL="false"
7309   else
7310     case $cross_compiling:$ac_tool_warned in
7311 yes:)
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7313 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7314 ac_tool_warned=yes ;;
7315 esac
7316     DLLTOOL=$ac_ct_DLLTOOL
7317   fi
7318 else
7319   DLLTOOL="$ac_cv_prog_DLLTOOL"
7320 fi
7321
7322 test -z "$DLLTOOL" && DLLTOOL=dlltool
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7334 printf %s "checking how to associate runtime and link libraries... " >&6; }
7335 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7336 then :
7337   printf %s "(cached) " >&6
7338 else $as_nop
7339   lt_cv_sharedlib_from_linklib_cmd='unknown'
7340
7341 case $host_os in
7342 cygwin* | mingw* | pw32* | cegcc*)
7343   # two different shell functions defined in ltmain.sh;
7344   # decide which one to use based on capabilities of $DLLTOOL
7345   case `$DLLTOOL --help 2>&1` in
7346   *--identify-strict*)
7347     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7348     ;;
7349   *)
7350     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7351     ;;
7352   esac
7353   ;;
7354 *)
7355   # fallback: assume linklib IS sharedlib
7356   lt_cv_sharedlib_from_linklib_cmd=$ECHO
7357   ;;
7358 esac
7359
7360 fi
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7362 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7363 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7364 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7365
7366
7367
7368
7369
7370
7371
7372
7373 if test -n "$ac_tool_prefix"; then
7374   for ac_prog in ar
7375   do
7376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 printf %s "checking for $ac_word... " >&6; }
7380 if test ${ac_cv_prog_AR+y}
7381 then :
7382   printf %s "(cached) " >&6
7383 else $as_nop
7384   if test -n "$AR"; then
7385   ac_cv_prog_AR="$AR" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390   IFS=$as_save_IFS
7391   case $as_dir in #(((
7392     '') as_dir=./ ;;
7393     */) ;;
7394     *) as_dir=$as_dir/ ;;
7395   esac
7396     for ac_exec_ext in '' $ac_executable_extensions; do
7397   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7398     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7399     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7400     break 2
7401   fi
7402 done
7403   done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 AR=$ac_cv_prog_AR
7409 if test -n "$AR"; then
7410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7411 printf "%s\n" "$AR" >&6; }
7412 else
7413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 printf "%s\n" "no" >&6; }
7415 fi
7416
7417
7418     test -n "$AR" && break
7419   done
7420 fi
7421 if test -z "$AR"; then
7422   ac_ct_AR=$AR
7423   for ac_prog in ar
7424 do
7425   # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_ac_ct_AR+y}
7430 then :
7431   printf %s "(cached) " >&6
7432 else $as_nop
7433   if test -n "$ac_ct_AR"; then
7434   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   case $as_dir in #(((
7441     '') as_dir=./ ;;
7442     */) ;;
7443     *) as_dir=$as_dir/ ;;
7444   esac
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447     ac_cv_prog_ac_ct_AR="$ac_prog"
7448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7458 if test -n "$ac_ct_AR"; then
7459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7460 printf "%s\n" "$ac_ct_AR" >&6; }
7461 else
7462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 printf "%s\n" "no" >&6; }
7464 fi
7465
7466
7467   test -n "$ac_ct_AR" && break
7468 done
7469
7470   if test "x$ac_ct_AR" = x; then
7471     AR="false"
7472   else
7473     case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479     AR=$ac_ct_AR
7480   fi
7481 fi
7482
7483 : ${AR=ar}
7484
7485
7486
7487
7488
7489
7490 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7491 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7492 # higher priority because thats what people were doing historically (setting
7493 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7494 # variable obsoleted/removed.
7495
7496 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7497 lt_ar_flags=$AR_FLAGS
7498
7499
7500
7501
7502
7503
7504 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7505 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7506
7507
7508
7509
7510
7511
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7513 printf %s "checking for archiver @FILE support... " >&6; }
7514 if test ${lt_cv_ar_at_file+y}
7515 then :
7516   printf %s "(cached) " >&6
7517 else $as_nop
7518   lt_cv_ar_at_file=no
7519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h.  */
7521
7522 int
7523 main (void)
7524 {
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"
7531 then :
7532   echo conftest.$ac_objext > conftest.lst
7533       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7534       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7535   (eval $lt_ar_try) 2>&5
7536   ac_status=$?
7537   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538   test $ac_status = 0; }
7539       if test 0 -eq "$ac_status"; then
7540         # Ensure the archiver fails upon bogus file names.
7541         rm -f conftest.$ac_objext libconftest.a
7542         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7543   (eval $lt_ar_try) 2>&5
7544   ac_status=$?
7545   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546   test $ac_status = 0; }
7547         if test 0 -ne "$ac_status"; then
7548           lt_cv_ar_at_file=@
7549         fi
7550       fi
7551       rm -f conftest.* libconftest.a
7552
7553 fi
7554 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7555
7556 fi
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7558 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7559
7560 if test no = "$lt_cv_ar_at_file"; then
7561   archiver_list_spec=
7562 else
7563   archiver_list_spec=$lt_cv_ar_at_file
7564 fi
7565
7566
7567
7568
7569
7570
7571
7572 if test -n "$ac_tool_prefix"; then
7573   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}strip; ac_word=$2
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 printf %s "checking for $ac_word... " >&6; }
7577 if test ${ac_cv_prog_STRIP+y}
7578 then :
7579   printf %s "(cached) " >&6
7580 else $as_nop
7581   if test -n "$STRIP"; then
7582   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   case $as_dir in #(((
7589     '') as_dir=./ ;;
7590     */) ;;
7591     *) as_dir=$as_dir/ ;;
7592   esac
7593     for ac_exec_ext in '' $ac_executable_extensions; do
7594   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7595     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7596     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7597     break 2
7598   fi
7599 done
7600   done
7601 IFS=$as_save_IFS
7602
7603 fi
7604 fi
7605 STRIP=$ac_cv_prog_STRIP
7606 if test -n "$STRIP"; then
7607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7608 printf "%s\n" "$STRIP" >&6; }
7609 else
7610   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 printf "%s\n" "no" >&6; }
7612 fi
7613
7614
7615 fi
7616 if test -z "$ac_cv_prog_STRIP"; then
7617   ac_ct_STRIP=$STRIP
7618   # Extract the first word of "strip", so it can be a program name with args.
7619 set dummy strip; ac_word=$2
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 printf %s "checking for $ac_word... " >&6; }
7622 if test ${ac_cv_prog_ac_ct_STRIP+y}
7623 then :
7624   printf %s "(cached) " >&6
7625 else $as_nop
7626   if test -n "$ac_ct_STRIP"; then
7627   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632   IFS=$as_save_IFS
7633   case $as_dir in #(((
7634     '') as_dir=./ ;;
7635     */) ;;
7636     *) as_dir=$as_dir/ ;;
7637   esac
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7640     ac_cv_prog_ac_ct_STRIP="strip"
7641     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7651 if test -n "$ac_ct_STRIP"; then
7652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7653 printf "%s\n" "$ac_ct_STRIP" >&6; }
7654 else
7655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 printf "%s\n" "no" >&6; }
7657 fi
7658
7659   if test "x$ac_ct_STRIP" = x; then
7660     STRIP=":"
7661   else
7662     case $cross_compiling:$ac_tool_warned in
7663 yes:)
7664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7665 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7666 ac_tool_warned=yes ;;
7667 esac
7668     STRIP=$ac_ct_STRIP
7669   fi
7670 else
7671   STRIP="$ac_cv_prog_STRIP"
7672 fi
7673
7674 test -z "$STRIP" && STRIP=:
7675
7676
7677
7678
7679
7680
7681 if test -n "$ac_tool_prefix"; then
7682   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7683 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 printf %s "checking for $ac_word... " >&6; }
7686 if test ${ac_cv_prog_RANLIB+y}
7687 then :
7688   printf %s "(cached) " >&6
7689 else $as_nop
7690   if test -n "$RANLIB"; then
7691   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7692 else
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   case $as_dir in #(((
7698     '') as_dir=./ ;;
7699     */) ;;
7700     *) as_dir=$as_dir/ ;;
7701   esac
7702     for ac_exec_ext in '' $ac_executable_extensions; do
7703   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7704     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7705     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7706     break 2
7707   fi
7708 done
7709   done
7710 IFS=$as_save_IFS
7711
7712 fi
7713 fi
7714 RANLIB=$ac_cv_prog_RANLIB
7715 if test -n "$RANLIB"; then
7716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7717 printf "%s\n" "$RANLIB" >&6; }
7718 else
7719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 printf "%s\n" "no" >&6; }
7721 fi
7722
7723
7724 fi
7725 if test -z "$ac_cv_prog_RANLIB"; then
7726   ac_ct_RANLIB=$RANLIB
7727   # Extract the first word of "ranlib", so it can be a program name with args.
7728 set dummy ranlib; ac_word=$2
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 printf %s "checking for $ac_word... " >&6; }
7731 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7732 then :
7733   printf %s "(cached) " >&6
7734 else $as_nop
7735   if test -n "$ac_ct_RANLIB"; then
7736   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741   IFS=$as_save_IFS
7742   case $as_dir in #(((
7743     '') as_dir=./ ;;
7744     */) ;;
7745     *) as_dir=$as_dir/ ;;
7746   esac
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7749     ac_cv_prog_ac_ct_RANLIB="ranlib"
7750     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756
7757 fi
7758 fi
7759 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7760 if test -n "$ac_ct_RANLIB"; then
7761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7762 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7763 else
7764   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765 printf "%s\n" "no" >&6; }
7766 fi
7767
7768   if test "x$ac_ct_RANLIB" = x; then
7769     RANLIB=":"
7770   else
7771     case $cross_compiling:$ac_tool_warned in
7772 yes:)
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7774 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7775 ac_tool_warned=yes ;;
7776 esac
7777     RANLIB=$ac_ct_RANLIB
7778   fi
7779 else
7780   RANLIB="$ac_cv_prog_RANLIB"
7781 fi
7782
7783 test -z "$RANLIB" && RANLIB=:
7784
7785
7786
7787
7788
7789
7790 # Determine commands to create old-style static archives.
7791 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7792 old_postinstall_cmds='chmod 644 $oldlib'
7793 old_postuninstall_cmds=
7794
7795 if test -n "$RANLIB"; then
7796   case $host_os in
7797   bitrig* | openbsd*)
7798     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7799     ;;
7800   *)
7801     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7802     ;;
7803   esac
7804   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7805 fi
7806
7807 case $host_os in
7808   darwin*)
7809     lock_old_archive_extraction=yes ;;
7810   *)
7811     lock_old_archive_extraction=no ;;
7812 esac
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852 # If no C compiler was specified, use CC.
7853 LTCC=${LTCC-"$CC"}
7854
7855 # If no C compiler flags were specified, use CFLAGS.
7856 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7857
7858 # Allow CC to be a program name with arguments.
7859 compiler=$CC
7860
7861
7862 # Check for command to grab the raw symbol name followed by C symbol from nm.
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7864 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7865 if test ${lt_cv_sys_global_symbol_pipe+y}
7866 then :
7867   printf %s "(cached) " >&6
7868 else $as_nop
7869
7870 # These are sane defaults that work on at least a few old systems.
7871 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7872
7873 # Character class describing NM global symbol codes.
7874 symcode='[BCDEGRST]'
7875
7876 # Regexp to match symbols that can be accessed directly from C.
7877 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7878
7879 # Define system-specific variables.
7880 case $host_os in
7881 aix*)
7882   symcode='[BCDT]'
7883   ;;
7884 cygwin* | mingw* | pw32* | cegcc*)
7885   symcode='[ABCDGISTW]'
7886   ;;
7887 hpux*)
7888   if test ia64 = "$host_cpu"; then
7889     symcode='[ABCDEGRST]'
7890   fi
7891   ;;
7892 irix* | nonstopux*)
7893   symcode='[BCDEGRST]'
7894   ;;
7895 osf*)
7896   symcode='[BCDEGQRST]'
7897   ;;
7898 solaris*)
7899   symcode='[BDRT]'
7900   ;;
7901 sco3.2v5*)
7902   symcode='[DT]'
7903   ;;
7904 sysv4.2uw2*)
7905   symcode='[DT]'
7906   ;;
7907 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7908   symcode='[ABDT]'
7909   ;;
7910 sysv4)
7911   symcode='[DFNSTU]'
7912   ;;
7913 esac
7914
7915 # If we're using GNU nm, then use its standard symbol codes.
7916 case `$NM -V 2>&1` in
7917 *GNU* | *'with BFD'*)
7918   symcode='[ABCDGIRSTW]' ;;
7919 esac
7920
7921 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7922   # Gets list of data symbols to import.
7923   lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7924   # Adjust the below global symbol transforms to fixup imported variables.
7925   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7926   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7927   lt_c_name_lib_hook="\
7928   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7929   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7930 else
7931   # Disable hooks by default.
7932   lt_cv_sys_global_symbol_to_import=
7933   lt_cdecl_hook=
7934   lt_c_name_hook=
7935   lt_c_name_lib_hook=
7936 fi
7937
7938 # Transform an extracted symbol line into a proper C declaration.
7939 # Some systems (esp. on ia64) link data and code symbols differently,
7940 # so use this general approach.
7941 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7942 $lt_cdecl_hook\
7943 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7944 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7945
7946 # Transform an extracted symbol line into symbol name and symbol address
7947 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7948 $lt_c_name_hook\
7949 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7950 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7951
7952 # Transform an extracted symbol line into symbol name with lib prefix and
7953 # symbol address.
7954 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7955 $lt_c_name_lib_hook\
7956 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7957 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7958 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7959
7960 # Handle CRLF in mingw tool chain
7961 opt_cr=
7962 case $build_os in
7963 mingw*)
7964   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7965   ;;
7966 esac
7967
7968 # Try without a prefix underscore, then with it.
7969 for ac_symprfx in "" "_"; do
7970
7971   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7972   symxfrm="\\1 $ac_symprfx\\2 \\2"
7973
7974   # Write the raw and C identifiers.
7975   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7976     # Fake it for dumpbin and say T for any non-static function,
7977     # D for any global variable and I for any imported variable.
7978     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7979     # which start with @ or ?.
7980     lt_cv_sys_global_symbol_pipe="$AWK '"\
7981 "     {last_section=section; section=\$ 3};"\
7982 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7983 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7984 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7985 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7986 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7987 "     \$ 0!~/External *\|/{next};"\
7988 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7989 "     {if(hide[section]) next};"\
7990 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7991 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7992 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7993 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7994 "     ' prfx=^$ac_symprfx"
7995   else
7996     lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7997   fi
7998   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7999
8000   # Check to see that the pipe works correctly.
8001   pipe_works=no
8002
8003   rm -f conftest*
8004   cat > conftest.$ac_ext <<_LT_EOF
8005 #ifdef __cplusplus
8006 extern "C" {
8007 #endif
8008 char nm_test_var;
8009 void nm_test_func(void);
8010 void nm_test_func(void){}
8011 #ifdef __cplusplus
8012 }
8013 #endif
8014 int main(){nm_test_var='a';nm_test_func();return(0);}
8015 _LT_EOF
8016
8017   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8018   (eval $ac_compile) 2>&5
8019   ac_status=$?
8020   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8021   test $ac_status = 0; }; then
8022     # Now try to grab the symbols.
8023     nlist=conftest.nm
8024     $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8025     if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8026       # Try sorting and uniquifying the output.
8027       if sort "$nlist" | uniq > "$nlist"T; then
8028         mv -f "$nlist"T "$nlist"
8029       else
8030         rm -f "$nlist"T
8031       fi
8032
8033       # Make sure that we snagged all the symbols we need.
8034       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8035         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8036           cat <<_LT_EOF > conftest.$ac_ext
8037 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8038 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8039 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8040    relocations are performed -- see ld's documentation on pseudo-relocs.  */
8041 # define LT_DLSYM_CONST
8042 #elif defined __osf__
8043 /* This system does not cope well with relocations in const data.  */
8044 # define LT_DLSYM_CONST
8045 #else
8046 # define LT_DLSYM_CONST const
8047 #endif
8048
8049 #ifdef __cplusplus
8050 extern "C" {
8051 #endif
8052
8053 _LT_EOF
8054           # Now generate the symbol file.
8055           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8056
8057           cat <<_LT_EOF >> conftest.$ac_ext
8058
8059 /* The mapping between symbol names and symbols.  */
8060 LT_DLSYM_CONST struct {
8061   const char *name;
8062   void       *address;
8063 }
8064 lt__PROGRAM__LTX_preloaded_symbols[] =
8065 {
8066   { "@PROGRAM@", (void *) 0 },
8067 _LT_EOF
8068           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8069           cat <<\_LT_EOF >> conftest.$ac_ext
8070   {0, (void *) 0}
8071 };
8072
8073 /* This works around a problem in FreeBSD linker */
8074 #ifdef FREEBSD_WORKAROUND
8075 static const void *lt_preloaded_setup() {
8076   return lt__PROGRAM__LTX_preloaded_symbols;
8077 }
8078 #endif
8079
8080 #ifdef __cplusplus
8081 }
8082 #endif
8083 _LT_EOF
8084           # Now try linking the two files.
8085           mv conftest.$ac_objext conftstm.$ac_objext
8086           lt_globsym_save_LIBS=$LIBS
8087           lt_globsym_save_CFLAGS=$CFLAGS
8088           LIBS=conftstm.$ac_objext
8089           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8090           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8091   (eval $ac_link) 2>&5
8092   ac_status=$?
8093   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8094   test $ac_status = 0; } && test -s conftest$ac_exeext; then
8095             pipe_works=yes
8096           fi
8097           LIBS=$lt_globsym_save_LIBS
8098           CFLAGS=$lt_globsym_save_CFLAGS
8099         else
8100           echo "cannot find nm_test_func in $nlist" >&5
8101         fi
8102       else
8103         echo "cannot find nm_test_var in $nlist" >&5
8104       fi
8105     else
8106       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8107     fi
8108   else
8109     echo "$progname: failed program was:" >&5
8110     cat conftest.$ac_ext >&5
8111   fi
8112   rm -rf conftest* conftst*
8113
8114   # Do not use the global_symbol_pipe unless it works.
8115   if test yes = "$pipe_works"; then
8116     break
8117   else
8118     lt_cv_sys_global_symbol_pipe=
8119   fi
8120 done
8121
8122 fi
8123
8124 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8125   lt_cv_sys_global_symbol_to_cdecl=
8126 fi
8127 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8128   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8129 printf "%s\n" "failed" >&6; }
8130 else
8131   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8132 printf "%s\n" "ok" >&6; }
8133 fi
8134
8135 # Response file support.
8136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8137   nm_file_list_spec='@'
8138 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8139   nm_file_list_spec='@'
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8179 printf %s "checking for sysroot... " >&6; }
8180
8181 # Check whether --with-sysroot was given.
8182 if test ${with_sysroot+y}
8183 then :
8184   withval=$with_sysroot;
8185 else $as_nop
8186   with_sysroot=no
8187 fi
8188
8189
8190 lt_sysroot=
8191 case $with_sysroot in #(
8192  yes)
8193    if test yes = "$GCC"; then
8194      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8195    fi
8196    ;; #(
8197  /*)
8198    lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8199    ;; #(
8200  no|'')
8201    ;; #(
8202  *)
8203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8204 printf "%s\n" "$with_sysroot" >&6; }
8205    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8206    ;;
8207 esac
8208
8209  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8210 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8211
8212
8213
8214
8215
8216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8217 printf %s "checking for a working dd... " >&6; }
8218 if test ${ac_cv_path_lt_DD+y}
8219 then :
8220   printf %s "(cached) " >&6
8221 else $as_nop
8222   printf 0123456789abcdef0123456789abcdef >conftest.i
8223 cat conftest.i conftest.i >conftest2.i
8224 : ${lt_DD:=$DD}
8225 if test -z "$lt_DD"; then
8226   ac_path_lt_DD_found=false
8227   # Loop through the user's path and test for each of PROGNAME-LIST
8228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   case $as_dir in #(((
8233     '') as_dir=./ ;;
8234     */) ;;
8235     *) as_dir=$as_dir/ ;;
8236   esac
8237     for ac_prog in dd
8238    do
8239     for ac_exec_ext in '' $ac_executable_extensions; do
8240       ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8241       as_fn_executable_p "$ac_path_lt_DD" || continue
8242 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8243   cmp -s conftest.i conftest.out \
8244   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8245 fi
8246       $ac_path_lt_DD_found && break 3
8247     done
8248   done
8249   done
8250 IFS=$as_save_IFS
8251   if test -z "$ac_cv_path_lt_DD"; then
8252     :
8253   fi
8254 else
8255   ac_cv_path_lt_DD=$lt_DD
8256 fi
8257
8258 rm -f conftest.i conftest2.i conftest.out
8259 fi
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8261 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8262
8263
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8265 printf %s "checking how to truncate binary pipes... " >&6; }
8266 if test ${lt_cv_truncate_bin+y}
8267 then :
8268   printf %s "(cached) " >&6
8269 else $as_nop
8270   printf 0123456789abcdef0123456789abcdef >conftest.i
8271 cat conftest.i conftest.i >conftest2.i
8272 lt_cv_truncate_bin=
8273 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8274   cmp -s conftest.i conftest.out \
8275   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8276 fi
8277 rm -f conftest.i conftest2.i conftest.out
8278 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8279 fi
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8281 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8282
8283
8284
8285
8286
8287
8288
8289 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8290 func_cc_basename ()
8291 {
8292     for cc_temp in $*""; do
8293       case $cc_temp in
8294         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8295         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8296         \-*) ;;
8297         *) break;;
8298       esac
8299     done
8300     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8301 }
8302
8303 # Check whether --enable-libtool-lock was given.
8304 if test ${enable_libtool_lock+y}
8305 then :
8306   enableval=$enable_libtool_lock;
8307 fi
8308
8309 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8310
8311 # Some flags need to be propagated to the compiler or linker for good
8312 # libtool support.
8313 case $host in
8314 ia64-*-hpux*)
8315   # Find out what ABI is being produced by ac_compile, and set mode
8316   # options accordingly.
8317   echo 'int i;' > conftest.$ac_ext
8318   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8319   (eval $ac_compile) 2>&5
8320   ac_status=$?
8321   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322   test $ac_status = 0; }; then
8323     case `$FILECMD conftest.$ac_objext` in
8324       *ELF-32*)
8325         HPUX_IA64_MODE=32
8326         ;;
8327       *ELF-64*)
8328         HPUX_IA64_MODE=64
8329         ;;
8330     esac
8331   fi
8332   rm -rf conftest*
8333   ;;
8334 *-*-irix6*)
8335   # Find out what ABI is being produced by ac_compile, and set linker
8336   # options accordingly.
8337   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8339   (eval $ac_compile) 2>&5
8340   ac_status=$?
8341   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8342   test $ac_status = 0; }; then
8343     if test yes = "$lt_cv_prog_gnu_ld"; then
8344       case `$FILECMD conftest.$ac_objext` in
8345         *32-bit*)
8346           LD="${LD-ld} -melf32bsmip"
8347           ;;
8348         *N32*)
8349           LD="${LD-ld} -melf32bmipn32"
8350           ;;
8351         *64-bit*)
8352           LD="${LD-ld} -melf64bmip"
8353         ;;
8354       esac
8355     else
8356       case `$FILECMD conftest.$ac_objext` in
8357         *32-bit*)
8358           LD="${LD-ld} -32"
8359           ;;
8360         *N32*)
8361           LD="${LD-ld} -n32"
8362           ;;
8363         *64-bit*)
8364           LD="${LD-ld} -64"
8365           ;;
8366       esac
8367     fi
8368   fi
8369   rm -rf conftest*
8370   ;;
8371
8372 mips64*-*linux*)
8373   # Find out what ABI is being produced by ac_compile, and set linker
8374   # options accordingly.
8375   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8376   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8377   (eval $ac_compile) 2>&5
8378   ac_status=$?
8379   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8380   test $ac_status = 0; }; then
8381     emul=elf
8382     case `$FILECMD conftest.$ac_objext` in
8383       *32-bit*)
8384         emul="${emul}32"
8385         ;;
8386       *64-bit*)
8387         emul="${emul}64"
8388         ;;
8389     esac
8390     case `$FILECMD conftest.$ac_objext` in
8391       *MSB*)
8392         emul="${emul}btsmip"
8393         ;;
8394       *LSB*)
8395         emul="${emul}ltsmip"
8396         ;;
8397     esac
8398     case `$FILECMD conftest.$ac_objext` in
8399       *N32*)
8400         emul="${emul}n32"
8401         ;;
8402     esac
8403     LD="${LD-ld} -m $emul"
8404   fi
8405   rm -rf conftest*
8406   ;;
8407
8408 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8409 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8410   # Find out what ABI is being produced by ac_compile, and set linker
8411   # options accordingly.  Note that the listed cases only cover the
8412   # situations where additional linker options are needed (such as when
8413   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8414   # vice versa); the common cases where no linker options are needed do
8415   # not appear in the list.
8416   echo 'int i;' > conftest.$ac_ext
8417   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8418   (eval $ac_compile) 2>&5
8419   ac_status=$?
8420   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8421   test $ac_status = 0; }; then
8422     case `$FILECMD conftest.o` in
8423       *32-bit*)
8424         case $host in
8425           x86_64-*kfreebsd*-gnu)
8426             LD="${LD-ld} -m elf_i386_fbsd"
8427             ;;
8428           x86_64-*linux*)
8429             case `$FILECMD conftest.o` in
8430               *x86-64*)
8431                 LD="${LD-ld} -m elf32_x86_64"
8432                 ;;
8433               *)
8434                 LD="${LD-ld} -m elf_i386"
8435                 ;;
8436             esac
8437             ;;
8438           powerpc64le-*linux*)
8439             LD="${LD-ld} -m elf32lppclinux"
8440             ;;
8441           powerpc64-*linux*)
8442             LD="${LD-ld} -m elf32ppclinux"
8443             ;;
8444           s390x-*linux*)
8445             LD="${LD-ld} -m elf_s390"
8446             ;;
8447           sparc64-*linux*)
8448             LD="${LD-ld} -m elf32_sparc"
8449             ;;
8450         esac
8451         ;;
8452       *64-bit*)
8453         case $host in
8454           x86_64-*kfreebsd*-gnu)
8455             LD="${LD-ld} -m elf_x86_64_fbsd"
8456             ;;
8457           x86_64-*linux*)
8458             LD="${LD-ld} -m elf_x86_64"
8459             ;;
8460           powerpcle-*linux*)
8461             LD="${LD-ld} -m elf64lppc"
8462             ;;
8463           powerpc-*linux*)
8464             LD="${LD-ld} -m elf64ppc"
8465             ;;
8466           s390*-*linux*|s390*-*tpf*)
8467             LD="${LD-ld} -m elf64_s390"
8468             ;;
8469           sparc*-*linux*)
8470             LD="${LD-ld} -m elf64_sparc"
8471             ;;
8472         esac
8473         ;;
8474     esac
8475   fi
8476   rm -rf conftest*
8477   ;;
8478
8479 *-*-sco3.2v5*)
8480   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8481   SAVE_CFLAGS=$CFLAGS
8482   CFLAGS="$CFLAGS -belf"
8483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8484 printf %s "checking whether the C compiler needs -belf... " >&6; }
8485 if test ${lt_cv_cc_needs_belf+y}
8486 then :
8487   printf %s "(cached) " >&6
8488 else $as_nop
8489   ac_ext=c
8490 ac_cpp='$CPP $CPPFLAGS'
8491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8494
8495      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h.  */
8497
8498 int
8499 main (void)
8500 {
8501
8502   ;
8503   return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"
8507 then :
8508   lt_cv_cc_needs_belf=yes
8509 else $as_nop
8510   lt_cv_cc_needs_belf=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8513     conftest$ac_exeext conftest.$ac_ext
8514      ac_ext=c
8515 ac_cpp='$CPP $CPPFLAGS'
8516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8519
8520 fi
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8522 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8523   if test yes != "$lt_cv_cc_needs_belf"; then
8524     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8525     CFLAGS=$SAVE_CFLAGS
8526   fi
8527   ;;
8528 *-*solaris*)
8529   # Find out what ABI is being produced by ac_compile, and set linker
8530   # options accordingly.
8531   echo 'int i;' > conftest.$ac_ext
8532   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8533   (eval $ac_compile) 2>&5
8534   ac_status=$?
8535   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8536   test $ac_status = 0; }; then
8537     case `$FILECMD conftest.o` in
8538     *64-bit*)
8539       case $lt_cv_prog_gnu_ld in
8540       yes*)
8541         case $host in
8542         i?86-*-solaris*|x86_64-*-solaris*)
8543           LD="${LD-ld} -m elf_x86_64"
8544           ;;
8545         sparc*-*-solaris*)
8546           LD="${LD-ld} -m elf64_sparc"
8547           ;;
8548         esac
8549         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8550         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8551           LD=${LD-ld}_sol2
8552         fi
8553         ;;
8554       *)
8555         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8556           LD="${LD-ld} -64"
8557         fi
8558         ;;
8559       esac
8560       ;;
8561     esac
8562   fi
8563   rm -rf conftest*
8564   ;;
8565 esac
8566
8567 need_locks=$enable_libtool_lock
8568
8569 if test -n "$ac_tool_prefix"; then
8570   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8571 set dummy ${ac_tool_prefix}mt; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8575 then :
8576   printf %s "(cached) " >&6
8577 else $as_nop
8578   if test -n "$MANIFEST_TOOL"; then
8579   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8580 else
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8582 for as_dir in $PATH
8583 do
8584   IFS=$as_save_IFS
8585   case $as_dir in #(((
8586     '') as_dir=./ ;;
8587     */) ;;
8588     *) as_dir=$as_dir/ ;;
8589   esac
8590     for ac_exec_ext in '' $ac_executable_extensions; do
8591   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8593     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8594     break 2
8595   fi
8596 done
8597   done
8598 IFS=$as_save_IFS
8599
8600 fi
8601 fi
8602 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8603 if test -n "$MANIFEST_TOOL"; then
8604   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8605 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8606 else
8607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611
8612 fi
8613 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8614   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8615   # Extract the first word of "mt", so it can be a program name with args.
8616 set dummy mt; ac_word=$2
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618 printf %s "checking for $ac_word... " >&6; }
8619 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8620 then :
8621   printf %s "(cached) " >&6
8622 else $as_nop
8623   if test -n "$ac_ct_MANIFEST_TOOL"; then
8624   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8625 else
8626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8627 for as_dir in $PATH
8628 do
8629   IFS=$as_save_IFS
8630   case $as_dir in #(((
8631     '') as_dir=./ ;;
8632     */) ;;
8633     *) as_dir=$as_dir/ ;;
8634   esac
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8637     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8638     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8648 if test -n "$ac_ct_MANIFEST_TOOL"; then
8649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8650 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8651 else
8652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 printf "%s\n" "no" >&6; }
8654 fi
8655
8656   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8657     MANIFEST_TOOL=":"
8658   else
8659     case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8666   fi
8667 else
8668   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8669 fi
8670
8671 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8673 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8674 if test ${lt_cv_path_mainfest_tool+y}
8675 then :
8676   printf %s "(cached) " >&6
8677 else $as_nop
8678   lt_cv_path_mainfest_tool=no
8679   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8680   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8681   cat conftest.err >&5
8682   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8683     lt_cv_path_mainfest_tool=yes
8684   fi
8685   rm -f conftest*
8686 fi
8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8688 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8689 if test yes != "$lt_cv_path_mainfest_tool"; then
8690   MANIFEST_TOOL=:
8691 fi
8692
8693
8694
8695
8696
8697
8698   case $host_os in
8699     rhapsody* | darwin*)
8700     if test -n "$ac_tool_prefix"; then
8701   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8702 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 printf %s "checking for $ac_word... " >&6; }
8705 if test ${ac_cv_prog_DSYMUTIL+y}
8706 then :
8707   printf %s "(cached) " >&6
8708 else $as_nop
8709   if test -n "$DSYMUTIL"; then
8710   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8711 else
8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713 for as_dir in $PATH
8714 do
8715   IFS=$as_save_IFS
8716   case $as_dir in #(((
8717     '') as_dir=./ ;;
8718     */) ;;
8719     *) as_dir=$as_dir/ ;;
8720   esac
8721     for ac_exec_ext in '' $ac_executable_extensions; do
8722   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8723     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8724     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8725     break 2
8726   fi
8727 done
8728   done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8734 if test -n "$DSYMUTIL"; then
8735   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8736 printf "%s\n" "$DSYMUTIL" >&6; }
8737 else
8738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 printf "%s\n" "no" >&6; }
8740 fi
8741
8742
8743 fi
8744 if test -z "$ac_cv_prog_DSYMUTIL"; then
8745   ac_ct_DSYMUTIL=$DSYMUTIL
8746   # Extract the first word of "dsymutil", so it can be a program name with args.
8747 set dummy dsymutil; ac_word=$2
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 printf %s "checking for $ac_word... " >&6; }
8750 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8751 then :
8752   printf %s "(cached) " >&6
8753 else $as_nop
8754   if test -n "$ac_ct_DSYMUTIL"; then
8755   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8756 else
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8759 do
8760   IFS=$as_save_IFS
8761   case $as_dir in #(((
8762     '') as_dir=./ ;;
8763     */) ;;
8764     *) as_dir=$as_dir/ ;;
8765   esac
8766     for ac_exec_ext in '' $ac_executable_extensions; do
8767   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8768     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8769     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773   done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8779 if test -n "$ac_ct_DSYMUTIL"; then
8780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8781 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8782 else
8783   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784 printf "%s\n" "no" >&6; }
8785 fi
8786
8787   if test "x$ac_ct_DSYMUTIL" = x; then
8788     DSYMUTIL=":"
8789   else
8790     case $cross_compiling:$ac_tool_warned in
8791 yes:)
8792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8794 ac_tool_warned=yes ;;
8795 esac
8796     DSYMUTIL=$ac_ct_DSYMUTIL
8797   fi
8798 else
8799   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8800 fi
8801
8802     if test -n "$ac_tool_prefix"; then
8803   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8804 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 printf %s "checking for $ac_word... " >&6; }
8807 if test ${ac_cv_prog_NMEDIT+y}
8808 then :
8809   printf %s "(cached) " >&6
8810 else $as_nop
8811   if test -n "$NMEDIT"; then
8812   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   case $as_dir in #(((
8819     '') as_dir=./ ;;
8820     */) ;;
8821     *) as_dir=$as_dir/ ;;
8822   esac
8823     for ac_exec_ext in '' $ac_executable_extensions; do
8824   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8825     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8826     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8827     break 2
8828   fi
8829 done
8830   done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 NMEDIT=$ac_cv_prog_NMEDIT
8836 if test -n "$NMEDIT"; then
8837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8838 printf "%s\n" "$NMEDIT" >&6; }
8839 else
8840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 printf "%s\n" "no" >&6; }
8842 fi
8843
8844
8845 fi
8846 if test -z "$ac_cv_prog_NMEDIT"; then
8847   ac_ct_NMEDIT=$NMEDIT
8848   # Extract the first word of "nmedit", so it can be a program name with args.
8849 set dummy nmedit; ac_word=$2
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 printf %s "checking for $ac_word... " >&6; }
8852 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8853 then :
8854   printf %s "(cached) " >&6
8855 else $as_nop
8856   if test -n "$ac_ct_NMEDIT"; then
8857   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8858 else
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862   IFS=$as_save_IFS
8863   case $as_dir in #(((
8864     '') as_dir=./ ;;
8865     */) ;;
8866     *) as_dir=$as_dir/ ;;
8867   esac
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8870     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8871     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877
8878 fi
8879 fi
8880 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8881 if test -n "$ac_ct_NMEDIT"; then
8882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8883 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8884 else
8885   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 printf "%s\n" "no" >&6; }
8887 fi
8888
8889   if test "x$ac_ct_NMEDIT" = x; then
8890     NMEDIT=":"
8891   else
8892     case $cross_compiling:$ac_tool_warned in
8893 yes:)
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8896 ac_tool_warned=yes ;;
8897 esac
8898     NMEDIT=$ac_ct_NMEDIT
8899   fi
8900 else
8901   NMEDIT="$ac_cv_prog_NMEDIT"
8902 fi
8903
8904     if test -n "$ac_tool_prefix"; then
8905   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 printf %s "checking for $ac_word... " >&6; }
8909 if test ${ac_cv_prog_LIPO+y}
8910 then :
8911   printf %s "(cached) " >&6
8912 else $as_nop
8913   if test -n "$LIPO"; then
8914   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8915 else
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in $PATH
8918 do
8919   IFS=$as_save_IFS
8920   case $as_dir in #(((
8921     '') as_dir=./ ;;
8922     */) ;;
8923     *) as_dir=$as_dir/ ;;
8924   esac
8925     for ac_exec_ext in '' $ac_executable_extensions; do
8926   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8927     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8928     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8929     break 2
8930   fi
8931 done
8932   done
8933 IFS=$as_save_IFS
8934
8935 fi
8936 fi
8937 LIPO=$ac_cv_prog_LIPO
8938 if test -n "$LIPO"; then
8939   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8940 printf "%s\n" "$LIPO" >&6; }
8941 else
8942   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 printf "%s\n" "no" >&6; }
8944 fi
8945
8946
8947 fi
8948 if test -z "$ac_cv_prog_LIPO"; then
8949   ac_ct_LIPO=$LIPO
8950   # Extract the first word of "lipo", so it can be a program name with args.
8951 set dummy lipo; ac_word=$2
8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8953 printf %s "checking for $ac_word... " >&6; }
8954 if test ${ac_cv_prog_ac_ct_LIPO+y}
8955 then :
8956   printf %s "(cached) " >&6
8957 else $as_nop
8958   if test -n "$ac_ct_LIPO"; then
8959   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8960 else
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8963 do
8964   IFS=$as_save_IFS
8965   case $as_dir in #(((
8966     '') as_dir=./ ;;
8967     */) ;;
8968     *) as_dir=$as_dir/ ;;
8969   esac
8970     for ac_exec_ext in '' $ac_executable_extensions; do
8971   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8972     ac_cv_prog_ac_ct_LIPO="lipo"
8973     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8974     break 2
8975   fi
8976 done
8977   done
8978 IFS=$as_save_IFS
8979
8980 fi
8981 fi
8982 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8983 if test -n "$ac_ct_LIPO"; then
8984   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8985 printf "%s\n" "$ac_ct_LIPO" >&6; }
8986 else
8987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 printf "%s\n" "no" >&6; }
8989 fi
8990
8991   if test "x$ac_ct_LIPO" = x; then
8992     LIPO=":"
8993   else
8994     case $cross_compiling:$ac_tool_warned in
8995 yes:)
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8998 ac_tool_warned=yes ;;
8999 esac
9000     LIPO=$ac_ct_LIPO
9001   fi
9002 else
9003   LIPO="$ac_cv_prog_LIPO"
9004 fi
9005
9006     if test -n "$ac_tool_prefix"; then
9007   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9008 set dummy ${ac_tool_prefix}otool; ac_word=$2
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9010 printf %s "checking for $ac_word... " >&6; }
9011 if test ${ac_cv_prog_OTOOL+y}
9012 then :
9013   printf %s "(cached) " >&6
9014 else $as_nop
9015   if test -n "$OTOOL"; then
9016   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9017 else
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9020 do
9021   IFS=$as_save_IFS
9022   case $as_dir in #(((
9023     '') as_dir=./ ;;
9024     */) ;;
9025     *) as_dir=$as_dir/ ;;
9026   esac
9027     for ac_exec_ext in '' $ac_executable_extensions; do
9028   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9029     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9030     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9031     break 2
9032   fi
9033 done
9034   done
9035 IFS=$as_save_IFS
9036
9037 fi
9038 fi
9039 OTOOL=$ac_cv_prog_OTOOL
9040 if test -n "$OTOOL"; then
9041   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9042 printf "%s\n" "$OTOOL" >&6; }
9043 else
9044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 printf "%s\n" "no" >&6; }
9046 fi
9047
9048
9049 fi
9050 if test -z "$ac_cv_prog_OTOOL"; then
9051   ac_ct_OTOOL=$OTOOL
9052   # Extract the first word of "otool", so it can be a program name with args.
9053 set dummy otool; ac_word=$2
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 printf %s "checking for $ac_word... " >&6; }
9056 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9057 then :
9058   printf %s "(cached) " >&6
9059 else $as_nop
9060   if test -n "$ac_ct_OTOOL"; then
9061   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9062 else
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in $PATH
9065 do
9066   IFS=$as_save_IFS
9067   case $as_dir in #(((
9068     '') as_dir=./ ;;
9069     */) ;;
9070     *) as_dir=$as_dir/ ;;
9071   esac
9072     for ac_exec_ext in '' $ac_executable_extensions; do
9073   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9074     ac_cv_prog_ac_ct_OTOOL="otool"
9075     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9076     break 2
9077   fi
9078 done
9079   done
9080 IFS=$as_save_IFS
9081
9082 fi
9083 fi
9084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9085 if test -n "$ac_ct_OTOOL"; then
9086   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9087 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9088 else
9089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 printf "%s\n" "no" >&6; }
9091 fi
9092
9093   if test "x$ac_ct_OTOOL" = x; then
9094     OTOOL=":"
9095   else
9096     case $cross_compiling:$ac_tool_warned in
9097 yes:)
9098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9099 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9100 ac_tool_warned=yes ;;
9101 esac
9102     OTOOL=$ac_ct_OTOOL
9103   fi
9104 else
9105   OTOOL="$ac_cv_prog_OTOOL"
9106 fi
9107
9108     if test -n "$ac_tool_prefix"; then
9109   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112 printf %s "checking for $ac_word... " >&6; }
9113 if test ${ac_cv_prog_OTOOL64+y}
9114 then :
9115   printf %s "(cached) " >&6
9116 else $as_nop
9117   if test -n "$OTOOL64"; then
9118   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9119 else
9120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121 for as_dir in $PATH
9122 do
9123   IFS=$as_save_IFS
9124   case $as_dir in #(((
9125     '') as_dir=./ ;;
9126     */) ;;
9127     *) as_dir=$as_dir/ ;;
9128   esac
9129     for ac_exec_ext in '' $ac_executable_extensions; do
9130   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9131     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9132     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9133     break 2
9134   fi
9135 done
9136   done
9137 IFS=$as_save_IFS
9138
9139 fi
9140 fi
9141 OTOOL64=$ac_cv_prog_OTOOL64
9142 if test -n "$OTOOL64"; then
9143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9144 printf "%s\n" "$OTOOL64" >&6; }
9145 else
9146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 printf "%s\n" "no" >&6; }
9148 fi
9149
9150
9151 fi
9152 if test -z "$ac_cv_prog_OTOOL64"; then
9153   ac_ct_OTOOL64=$OTOOL64
9154   # Extract the first word of "otool64", so it can be a program name with args.
9155 set dummy otool64; ac_word=$2
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 printf %s "checking for $ac_word... " >&6; }
9158 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9159 then :
9160   printf %s "(cached) " >&6
9161 else $as_nop
9162   if test -n "$ac_ct_OTOOL64"; then
9163   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9164 else
9165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166 for as_dir in $PATH
9167 do
9168   IFS=$as_save_IFS
9169   case $as_dir in #(((
9170     '') as_dir=./ ;;
9171     */) ;;
9172     *) as_dir=$as_dir/ ;;
9173   esac
9174     for ac_exec_ext in '' $ac_executable_extensions; do
9175   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9176     ac_cv_prog_ac_ct_OTOOL64="otool64"
9177     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9178     break 2
9179   fi
9180 done
9181   done
9182 IFS=$as_save_IFS
9183
9184 fi
9185 fi
9186 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9187 if test -n "$ac_ct_OTOOL64"; then
9188   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9189 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9190 else
9191   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 printf "%s\n" "no" >&6; }
9193 fi
9194
9195   if test "x$ac_ct_OTOOL64" = x; then
9196     OTOOL64=":"
9197   else
9198     case $cross_compiling:$ac_tool_warned in
9199 yes:)
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202 ac_tool_warned=yes ;;
9203 esac
9204     OTOOL64=$ac_ct_OTOOL64
9205   fi
9206 else
9207   OTOOL64="$ac_cv_prog_OTOOL64"
9208 fi
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9237 printf %s "checking for -single_module linker flag... " >&6; }
9238 if test ${lt_cv_apple_cc_single_mod+y}
9239 then :
9240   printf %s "(cached) " >&6
9241 else $as_nop
9242   lt_cv_apple_cc_single_mod=no
9243       if test -z "$LT_MULTI_MODULE"; then
9244         # By default we will add the -single_module flag. You can override
9245         # by either setting the environment variable LT_MULTI_MODULE
9246         # non-empty at configure time, or by adding -multi_module to the
9247         # link flags.
9248         rm -rf libconftest.dylib*
9249         echo "int foo(void){return 1;}" > conftest.c
9250         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9251 -dynamiclib -Wl,-single_module conftest.c" >&5
9252         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9253           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9254         _lt_result=$?
9255         # If there is a non-empty error log, and "single_module"
9256         # appears in it, assume the flag caused a linker warning
9257         if test -s conftest.err && $GREP single_module conftest.err; then
9258           cat conftest.err >&5
9259         # Otherwise, if the output was created with a 0 exit code from
9260         # the compiler, it worked.
9261         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9262           lt_cv_apple_cc_single_mod=yes
9263         else
9264           cat conftest.err >&5
9265         fi
9266         rm -rf libconftest.dylib*
9267         rm -f conftest.*
9268       fi
9269 fi
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9271 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9272
9273     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9274 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9275 if test ${lt_cv_ld_exported_symbols_list+y}
9276 then :
9277   printf %s "(cached) " >&6
9278 else $as_nop
9279   lt_cv_ld_exported_symbols_list=no
9280       save_LDFLAGS=$LDFLAGS
9281       echo "_main" > conftest.sym
9282       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h.  */
9285
9286 int
9287 main (void)
9288 {
9289
9290   ;
9291   return 0;
9292 }
9293 _ACEOF
9294 if ac_fn_c_try_link "$LINENO"
9295 then :
9296   lt_cv_ld_exported_symbols_list=yes
9297 else $as_nop
9298   lt_cv_ld_exported_symbols_list=no
9299 fi
9300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9301     conftest$ac_exeext conftest.$ac_ext
9302         LDFLAGS=$save_LDFLAGS
9303
9304 fi
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9306 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9307
9308     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9309 printf %s "checking for -force_load linker flag... " >&6; }
9310 if test ${lt_cv_ld_force_load+y}
9311 then :
9312   printf %s "(cached) " >&6
9313 else $as_nop
9314   lt_cv_ld_force_load=no
9315       cat > conftest.c << _LT_EOF
9316 int forced_loaded() { return 2;}
9317 _LT_EOF
9318       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9319       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9320       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9321       $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9322       echo "$RANLIB libconftest.a" >&5
9323       $RANLIB libconftest.a 2>&5
9324       cat > conftest.c << _LT_EOF
9325 int main() { return 0;}
9326 _LT_EOF
9327       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9328       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9329       _lt_result=$?
9330       if test -s conftest.err && $GREP force_load conftest.err; then
9331         cat conftest.err >&5
9332       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9333         lt_cv_ld_force_load=yes
9334       else
9335         cat conftest.err >&5
9336       fi
9337         rm -f conftest.err libconftest.a conftest conftest.c
9338         rm -rf conftest.dSYM
9339
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9342 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9343     case $host_os in
9344     rhapsody* | darwin1.[012])
9345       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9346     darwin1.*)
9347       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9348     darwin*)
9349       case $MACOSX_DEPLOYMENT_TARGET,$host in
9350         10.[012],*|,*powerpc*-darwin[5-8]*)
9351           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9352         *)
9353           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9354       esac
9355     ;;
9356   esac
9357     if test yes = "$lt_cv_apple_cc_single_mod"; then
9358       _lt_dar_single_mod='$single_module'
9359     fi
9360     if test yes = "$lt_cv_ld_exported_symbols_list"; then
9361       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9362     else
9363       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9364     fi
9365     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9366       _lt_dsymutil='~$DSYMUTIL $lib || :'
9367     else
9368       _lt_dsymutil=
9369     fi
9370     ;;
9371   esac
9372
9373 # func_munge_path_list VARIABLE PATH
9374 # -----------------------------------
9375 # VARIABLE is name of variable containing _space_ separated list of
9376 # directories to be munged by the contents of PATH, which is string
9377 # having a format:
9378 # "DIR[:DIR]:"
9379 #       string "DIR[ DIR]" will be prepended to VARIABLE
9380 # ":DIR[:DIR]"
9381 #       string "DIR[ DIR]" will be appended to VARIABLE
9382 # "DIRP[:DIRP]::[DIRA:]DIRA"
9383 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9384 #       "DIRA[ DIRA]" will be appended to VARIABLE
9385 # "DIR[:DIR]"
9386 #       VARIABLE will be replaced by "DIR[ DIR]"
9387 func_munge_path_list ()
9388 {
9389     case x$2 in
9390     x)
9391         ;;
9392     *:)
9393         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9394         ;;
9395     x:*)
9396         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9397         ;;
9398     *::*)
9399         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9400         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9401         ;;
9402     *)
9403         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9404         ;;
9405     esac
9406 }
9407
9408 ac_header= ac_cache=
9409 for ac_item in $ac_header_c_list
9410 do
9411   if test $ac_cache; then
9412     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9413     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9414       printf "%s\n" "#define $ac_item 1" >> confdefs.h
9415     fi
9416     ac_header= ac_cache=
9417   elif test $ac_header; then
9418     ac_cache=$ac_item
9419   else
9420     ac_header=$ac_item
9421   fi
9422 done
9423
9424
9425
9426
9427
9428
9429
9430
9431 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9432 then :
9433
9434 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9435
9436 fi
9437 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9438 "
9439 if test "x$ac_cv_header_dlfcn_h" = xyes
9440 then :
9441   printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9442
9443 fi
9444
9445
9446
9447
9448 func_stripname_cnf ()
9449 {
9450   case $2 in
9451   .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9452   *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9453   esac
9454 } # func_stripname_cnf
9455
9456
9457
9458
9459
9460 # Set options
9461
9462
9463
9464         enable_dlopen=no
9465
9466
9467   enable_win32_dll=no
9468
9469
9470             # Check whether --enable-shared was given.
9471 if test ${enable_shared+y}
9472 then :
9473   enableval=$enable_shared; p=${PACKAGE-default}
9474     case $enableval in
9475     yes) enable_shared=yes ;;
9476     no) enable_shared=no ;;
9477     *)
9478       enable_shared=no
9479       # Look at the argument we got.  We use all the common list separators.
9480       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9481       for pkg in $enableval; do
9482         IFS=$lt_save_ifs
9483         if test "X$pkg" = "X$p"; then
9484           enable_shared=yes
9485         fi
9486       done
9487       IFS=$lt_save_ifs
9488       ;;
9489     esac
9490 else $as_nop
9491   enable_shared=yes
9492 fi
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502   # Check whether --enable-static was given.
9503 if test ${enable_static+y}
9504 then :
9505   enableval=$enable_static; p=${PACKAGE-default}
9506     case $enableval in
9507     yes) enable_static=yes ;;
9508     no) enable_static=no ;;
9509     *)
9510      enable_static=no
9511       # Look at the argument we got.  We use all the common list separators.
9512       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9513       for pkg in $enableval; do
9514         IFS=$lt_save_ifs
9515         if test "X$pkg" = "X$p"; then
9516           enable_static=yes
9517         fi
9518       done
9519       IFS=$lt_save_ifs
9520       ;;
9521     esac
9522 else $as_nop
9523   enable_static=yes
9524 fi
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535 # Check whether --with-pic was given.
9536 if test ${with_pic+y}
9537 then :
9538   withval=$with_pic; lt_p=${PACKAGE-default}
9539     case $withval in
9540     yes|no) pic_mode=$withval ;;
9541     *)
9542       pic_mode=default
9543       # Look at the argument we got.  We use all the common list separators.
9544       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9545       for lt_pkg in $withval; do
9546         IFS=$lt_save_ifs
9547         if test "X$lt_pkg" = "X$lt_p"; then
9548           pic_mode=yes
9549         fi
9550       done
9551       IFS=$lt_save_ifs
9552       ;;
9553     esac
9554 else $as_nop
9555   pic_mode=default
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564
9565   # Check whether --enable-fast-install was given.
9566 if test ${enable_fast_install+y}
9567 then :
9568   enableval=$enable_fast_install; p=${PACKAGE-default}
9569     case $enableval in
9570     yes) enable_fast_install=yes ;;
9571     no) enable_fast_install=no ;;
9572     *)
9573       enable_fast_install=no
9574       # Look at the argument we got.  We use all the common list separators.
9575       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9576       for pkg in $enableval; do
9577         IFS=$lt_save_ifs
9578         if test "X$pkg" = "X$p"; then
9579           enable_fast_install=yes
9580         fi
9581       done
9582       IFS=$lt_save_ifs
9583       ;;
9584     esac
9585 else $as_nop
9586   enable_fast_install=yes
9587 fi
9588
9589
9590
9591
9592
9593
9594
9595
9596   shared_archive_member_spec=
9597 case $host,$enable_shared in
9598 power*-*-aix[5-9]*,yes)
9599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9600 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9601
9602 # Check whether --with-aix-soname was given.
9603 if test ${with_aix_soname+y}
9604 then :
9605   withval=$with_aix_soname; case $withval in
9606     aix|svr4|both)
9607       ;;
9608     *)
9609       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9610       ;;
9611     esac
9612     lt_cv_with_aix_soname=$with_aix_soname
9613 else $as_nop
9614   if test ${lt_cv_with_aix_soname+y}
9615 then :
9616   printf %s "(cached) " >&6
9617 else $as_nop
9618   lt_cv_with_aix_soname=aix
9619 fi
9620
9621     with_aix_soname=$lt_cv_with_aix_soname
9622 fi
9623
9624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9625 printf "%s\n" "$with_aix_soname" >&6; }
9626   if test aix != "$with_aix_soname"; then
9627     # For the AIX way of multilib, we name the shared archive member
9628     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9629     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9630     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9631     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9632     if test 64 = "${OBJECT_MODE-32}"; then
9633       shared_archive_member_spec=shr_64
9634     else
9635       shared_archive_member_spec=shr
9636     fi
9637   fi
9638   ;;
9639 *)
9640   with_aix_soname=aix
9641   ;;
9642 esac
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653 # This can be used to rebuild libtool when needed
9654 LIBTOOL_DEPS=$ltmain
9655
9656 # Always use our own libtool.
9657 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688 test -z "$LN_S" && LN_S="ln -s"
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703 if test -n "${ZSH_VERSION+set}"; then
9704    setopt NO_GLOB_SUBST
9705 fi
9706
9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9708 printf %s "checking for objdir... " >&6; }
9709 if test ${lt_cv_objdir+y}
9710 then :
9711   printf %s "(cached) " >&6
9712 else $as_nop
9713   rm -f .libs 2>/dev/null
9714 mkdir .libs 2>/dev/null
9715 if test -d .libs; then
9716   lt_cv_objdir=.libs
9717 else
9718   # MS-DOS does not allow filenames that begin with a dot.
9719   lt_cv_objdir=_libs
9720 fi
9721 rmdir .libs 2>/dev/null
9722 fi
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9724 printf "%s\n" "$lt_cv_objdir" >&6; }
9725 objdir=$lt_cv_objdir
9726
9727
9728
9729
9730
9731 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9732
9733
9734
9735
9736 case $host_os in
9737 aix3*)
9738   # AIX sometimes has problems with the GCC collect2 program.  For some
9739   # reason, if we set the COLLECT_NAMES environment variable, the problems
9740   # vanish in a puff of smoke.
9741   if test set != "${COLLECT_NAMES+set}"; then
9742     COLLECT_NAMES=
9743     export COLLECT_NAMES
9744   fi
9745   ;;
9746 esac
9747
9748 # Global variables:
9749 ofile=libtool
9750 can_build_shared=yes
9751
9752 # All known linkers require a '.a' archive for static linking (except MSVC and
9753 # ICC, which need '.lib').
9754 libext=a
9755
9756 with_gnu_ld=$lt_cv_prog_gnu_ld
9757
9758 old_CC=$CC
9759 old_CFLAGS=$CFLAGS
9760
9761 # Set sane defaults for various variables
9762 test -z "$CC" && CC=cc
9763 test -z "$LTCC" && LTCC=$CC
9764 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9765 test -z "$LD" && LD=ld
9766 test -z "$ac_objext" && ac_objext=o
9767
9768 func_cc_basename $compiler
9769 cc_basename=$func_cc_basename_result
9770
9771
9772 # Only perform the check for file, if the check method requires it
9773 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9774 case $deplibs_check_method in
9775 file_magic*)
9776   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9777     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9778 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9779 if test ${lt_cv_path_MAGIC_CMD+y}
9780 then :
9781   printf %s "(cached) " >&6
9782 else $as_nop
9783   case $MAGIC_CMD in
9784 [\\/*] |  ?:[\\/]*)
9785   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9786   ;;
9787 *)
9788   lt_save_MAGIC_CMD=$MAGIC_CMD
9789   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9790   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9791   for ac_dir in $ac_dummy; do
9792     IFS=$lt_save_ifs
9793     test -z "$ac_dir" && ac_dir=.
9794     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9795       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9796       if test -n "$file_magic_test_file"; then
9797         case $deplibs_check_method in
9798         "file_magic "*)
9799           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9800           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9801           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9802             $EGREP "$file_magic_regex" > /dev/null; then
9803             :
9804           else
9805             cat <<_LT_EOF 1>&2
9806
9807 *** Warning: the command libtool uses to detect shared libraries,
9808 *** $file_magic_cmd, produces output that libtool cannot recognize.
9809 *** The result is that libtool may fail to recognize shared libraries
9810 *** as such.  This will affect the creation of libtool libraries that
9811 *** depend on shared libraries, but programs linked with such libtool
9812 *** libraries will work regardless of this problem.  Nevertheless, you
9813 *** may want to report the problem to your system manager and/or to
9814 *** bug-libtool@gnu.org
9815
9816 _LT_EOF
9817           fi ;;
9818         esac
9819       fi
9820       break
9821     fi
9822   done
9823   IFS=$lt_save_ifs
9824   MAGIC_CMD=$lt_save_MAGIC_CMD
9825   ;;
9826 esac
9827 fi
9828
9829 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9830 if test -n "$MAGIC_CMD"; then
9831   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9832 printf "%s\n" "$MAGIC_CMD" >&6; }
9833 else
9834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835 printf "%s\n" "no" >&6; }
9836 fi
9837
9838
9839
9840
9841
9842 if test -z "$lt_cv_path_MAGIC_CMD"; then
9843   if test -n "$ac_tool_prefix"; then
9844     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9845 printf %s "checking for file... " >&6; }
9846 if test ${lt_cv_path_MAGIC_CMD+y}
9847 then :
9848   printf %s "(cached) " >&6
9849 else $as_nop
9850   case $MAGIC_CMD in
9851 [\\/*] |  ?:[\\/]*)
9852   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9853   ;;
9854 *)
9855   lt_save_MAGIC_CMD=$MAGIC_CMD
9856   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9857   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9858   for ac_dir in $ac_dummy; do
9859     IFS=$lt_save_ifs
9860     test -z "$ac_dir" && ac_dir=.
9861     if test -f "$ac_dir/file"; then
9862       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9863       if test -n "$file_magic_test_file"; then
9864         case $deplibs_check_method in
9865         "file_magic "*)
9866           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9867           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9868           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9869             $EGREP "$file_magic_regex" > /dev/null; then
9870             :
9871           else
9872             cat <<_LT_EOF 1>&2
9873
9874 *** Warning: the command libtool uses to detect shared libraries,
9875 *** $file_magic_cmd, produces output that libtool cannot recognize.
9876 *** The result is that libtool may fail to recognize shared libraries
9877 *** as such.  This will affect the creation of libtool libraries that
9878 *** depend on shared libraries, but programs linked with such libtool
9879 *** libraries will work regardless of this problem.  Nevertheless, you
9880 *** may want to report the problem to your system manager and/or to
9881 *** bug-libtool@gnu.org
9882
9883 _LT_EOF
9884           fi ;;
9885         esac
9886       fi
9887       break
9888     fi
9889   done
9890   IFS=$lt_save_ifs
9891   MAGIC_CMD=$lt_save_MAGIC_CMD
9892   ;;
9893 esac
9894 fi
9895
9896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9897 if test -n "$MAGIC_CMD"; then
9898   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9899 printf "%s\n" "$MAGIC_CMD" >&6; }
9900 else
9901   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9902 printf "%s\n" "no" >&6; }
9903 fi
9904
9905
9906   else
9907     MAGIC_CMD=:
9908   fi
9909 fi
9910
9911   fi
9912   ;;
9913 esac
9914
9915 # Use C for the default configuration in the libtool script
9916
9917 lt_save_CC=$CC
9918 ac_ext=c
9919 ac_cpp='$CPP $CPPFLAGS'
9920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9923
9924
9925 # Source file extension for C test sources.
9926 ac_ext=c
9927
9928 # Object file extension for compiled C test sources.
9929 objext=o
9930 objext=$objext
9931
9932 # Code to be used in simple compile tests
9933 lt_simple_compile_test_code="int some_variable = 0;"
9934
9935 # Code to be used in simple link tests
9936 lt_simple_link_test_code='int main(){return(0);}'
9937
9938
9939
9940
9941
9942
9943
9944 # If no C compiler was specified, use CC.
9945 LTCC=${LTCC-"$CC"}
9946
9947 # If no C compiler flags were specified, use CFLAGS.
9948 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9949
9950 # Allow CC to be a program name with arguments.
9951 compiler=$CC
9952
9953 # Save the default compiler, since it gets overwritten when the other
9954 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9955 compiler_DEFAULT=$CC
9956
9957 # save warnings/boilerplate of simple test code
9958 ac_outfile=conftest.$ac_objext
9959 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9960 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9961 _lt_compiler_boilerplate=`cat conftest.err`
9962 $RM conftest*
9963
9964 ac_outfile=conftest.$ac_objext
9965 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9966 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9967 _lt_linker_boilerplate=`cat conftest.err`
9968 $RM -r conftest*
9969
9970
9971 ## CAVEAT EMPTOR:
9972 ## There is no encapsulation within the following macros, do not change
9973 ## the running order or otherwise move them around unless you know exactly
9974 ## what you are doing...
9975 if test -n "$compiler"; then
9976
9977 lt_prog_compiler_no_builtin_flag=
9978
9979 if test yes = "$GCC"; then
9980   case $cc_basename in
9981   nvcc*)
9982     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9983   *)
9984     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9985   esac
9986
9987   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9988 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9989 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9990 then :
9991   printf %s "(cached) " >&6
9992 else $as_nop
9993   lt_cv_prog_compiler_rtti_exceptions=no
9994    ac_outfile=conftest.$ac_objext
9995    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9997    # Insert the option either (1) after the last *FLAGS variable, or
9998    # (2) before a word containing "conftest.", or (3) at the end.
9999    # Note that $ac_compile itself does not contain backslashes and begins
10000    # with a dollar sign (not a hyphen), so the echo should work correctly.
10001    # The option is referenced via a variable to avoid confusing sed.
10002    lt_compile=`echo "$ac_compile" | $SED \
10003    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10004    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10005    -e 's:$: $lt_compiler_flag:'`
10006    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10007    (eval "$lt_compile" 2>conftest.err)
10008    ac_status=$?
10009    cat conftest.err >&5
10010    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011    if (exit $ac_status) && test -s "$ac_outfile"; then
10012      # The compiler can only warn and ignore the option if not recognized
10013      # So say no if there are warnings other than the usual output.
10014      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10015      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10016      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10017        lt_cv_prog_compiler_rtti_exceptions=yes
10018      fi
10019    fi
10020    $RM conftest*
10021
10022 fi
10023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10024 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10025
10026 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10027     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10028 else
10029     :
10030 fi
10031
10032 fi
10033
10034
10035
10036
10037
10038
10039   lt_prog_compiler_wl=
10040 lt_prog_compiler_pic=
10041 lt_prog_compiler_static=
10042
10043
10044   if test yes = "$GCC"; then
10045     lt_prog_compiler_wl='-Wl,'
10046     lt_prog_compiler_static='-static'
10047
10048     case $host_os in
10049       aix*)
10050       # All AIX code is PIC.
10051       if test ia64 = "$host_cpu"; then
10052         # AIX 5 now supports IA64 processor
10053         lt_prog_compiler_static='-Bstatic'
10054       fi
10055       lt_prog_compiler_pic='-fPIC'
10056       ;;
10057
10058     amigaos*)
10059       case $host_cpu in
10060       powerpc)
10061             # see comment about AmigaOS4 .so support
10062             lt_prog_compiler_pic='-fPIC'
10063         ;;
10064       m68k)
10065             # FIXME: we need at least 68020 code to build shared libraries, but
10066             # adding the '-m68020' flag to GCC prevents building anything better,
10067             # like '-m68040'.
10068             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10069         ;;
10070       esac
10071       ;;
10072
10073     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10074       # PIC is the default for these OSes.
10075       ;;
10076
10077     mingw* | cygwin* | pw32* | os2* | cegcc*)
10078       # This hack is so that the source file can tell whether it is being
10079       # built for inclusion in a dll (and should export symbols for example).
10080       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10081       # (--disable-auto-import) libraries
10082       lt_prog_compiler_pic='-DDLL_EXPORT'
10083       case $host_os in
10084       os2*)
10085         lt_prog_compiler_static='$wl-static'
10086         ;;
10087       esac
10088       ;;
10089
10090     darwin* | rhapsody*)
10091       # PIC is the default on this platform
10092       # Common symbols not allowed in MH_DYLIB files
10093       lt_prog_compiler_pic='-fno-common'
10094       ;;
10095
10096     haiku*)
10097       # PIC is the default for Haiku.
10098       # The "-static" flag exists, but is broken.
10099       lt_prog_compiler_static=
10100       ;;
10101
10102     hpux*)
10103       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10104       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10105       # sets the default TLS model and affects inlining.
10106       case $host_cpu in
10107       hppa*64*)
10108         # +Z the default
10109         ;;
10110       *)
10111         lt_prog_compiler_pic='-fPIC'
10112         ;;
10113       esac
10114       ;;
10115
10116     interix[3-9]*)
10117       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10118       # Instead, we relocate shared libraries at runtime.
10119       ;;
10120
10121     msdosdjgpp*)
10122       # Just because we use GCC doesn't mean we suddenly get shared libraries
10123       # on systems that don't support them.
10124       lt_prog_compiler_can_build_shared=no
10125       enable_shared=no
10126       ;;
10127
10128     *nto* | *qnx*)
10129       # QNX uses GNU C++, but need to define -shared option too, otherwise
10130       # it will coredump.
10131       lt_prog_compiler_pic='-fPIC -shared'
10132       ;;
10133
10134     sysv4*MP*)
10135       if test -d /usr/nec; then
10136         lt_prog_compiler_pic=-Kconform_pic
10137       fi
10138       ;;
10139
10140     *)
10141       lt_prog_compiler_pic='-fPIC'
10142       ;;
10143     esac
10144
10145     case $cc_basename in
10146     nvcc*) # Cuda Compiler Driver 2.2
10147       lt_prog_compiler_wl='-Xlinker '
10148       if test -n "$lt_prog_compiler_pic"; then
10149         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10150       fi
10151       ;;
10152     esac
10153   else
10154     # PORTME Check for flag to pass linker flags through the system compiler.
10155     case $host_os in
10156     aix*)
10157       lt_prog_compiler_wl='-Wl,'
10158       if test ia64 = "$host_cpu"; then
10159         # AIX 5 now supports IA64 processor
10160         lt_prog_compiler_static='-Bstatic'
10161       else
10162         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10163       fi
10164       ;;
10165
10166     darwin* | rhapsody*)
10167       # PIC is the default on this platform
10168       # Common symbols not allowed in MH_DYLIB files
10169       lt_prog_compiler_pic='-fno-common'
10170       case $cc_basename in
10171       nagfor*)
10172         # NAG Fortran compiler
10173         lt_prog_compiler_wl='-Wl,-Wl,,'
10174         lt_prog_compiler_pic='-PIC'
10175         lt_prog_compiler_static='-Bstatic'
10176         ;;
10177       esac
10178       ;;
10179
10180     mingw* | cygwin* | pw32* | os2* | cegcc*)
10181       # This hack is so that the source file can tell whether it is being
10182       # built for inclusion in a dll (and should export symbols for example).
10183       lt_prog_compiler_pic='-DDLL_EXPORT'
10184       case $host_os in
10185       os2*)
10186         lt_prog_compiler_static='$wl-static'
10187         ;;
10188       esac
10189       ;;
10190
10191     hpux9* | hpux10* | hpux11*)
10192       lt_prog_compiler_wl='-Wl,'
10193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10194       # not for PA HP-UX.
10195       case $host_cpu in
10196       hppa*64*|ia64*)
10197         # +Z the default
10198         ;;
10199       *)
10200         lt_prog_compiler_pic='+Z'
10201         ;;
10202       esac
10203       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10204       lt_prog_compiler_static='$wl-a ${wl}archive'
10205       ;;
10206
10207     irix5* | irix6* | nonstopux*)
10208       lt_prog_compiler_wl='-Wl,'
10209       # PIC (with -KPIC) is the default.
10210       lt_prog_compiler_static='-non_shared'
10211       ;;
10212
10213     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10214       case $cc_basename in
10215       # old Intel for x86_64, which still supported -KPIC.
10216       ecc*)
10217         lt_prog_compiler_wl='-Wl,'
10218         lt_prog_compiler_pic='-KPIC'
10219         lt_prog_compiler_static='-static'
10220         ;;
10221       # flang / f18. f95 an alias for gfortran or flang on Debian
10222       flang* | f18* | f95*)
10223         lt_prog_compiler_wl='-Wl,'
10224         lt_prog_compiler_pic='-fPIC'
10225         lt_prog_compiler_static='-static'
10226         ;;
10227       # icc used to be incompatible with GCC.
10228       # ICC 10 doesn't accept -KPIC any more.
10229       icc* | ifort*)
10230         lt_prog_compiler_wl='-Wl,'
10231         lt_prog_compiler_pic='-fPIC'
10232         lt_prog_compiler_static='-static'
10233         ;;
10234       # Lahey Fortran 8.1.
10235       lf95*)
10236         lt_prog_compiler_wl='-Wl,'
10237         lt_prog_compiler_pic='--shared'
10238         lt_prog_compiler_static='--static'
10239         ;;
10240       nagfor*)
10241         # NAG Fortran compiler
10242         lt_prog_compiler_wl='-Wl,-Wl,,'
10243         lt_prog_compiler_pic='-PIC'
10244         lt_prog_compiler_static='-Bstatic'
10245         ;;
10246       tcc*)
10247         # Fabrice Bellard et al's Tiny C Compiler
10248         lt_prog_compiler_wl='-Wl,'
10249         lt_prog_compiler_pic='-fPIC'
10250         lt_prog_compiler_static='-static'
10251         ;;
10252       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10253         # Portland Group compilers (*not* the Pentium gcc compiler,
10254         # which looks to be a dead project)
10255         lt_prog_compiler_wl='-Wl,'
10256         lt_prog_compiler_pic='-fpic'
10257         lt_prog_compiler_static='-Bstatic'
10258         ;;
10259       ccc*)
10260         lt_prog_compiler_wl='-Wl,'
10261         # All Alpha code is PIC.
10262         lt_prog_compiler_static='-non_shared'
10263         ;;
10264       xl* | bgxl* | bgf* | mpixl*)
10265         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10266         lt_prog_compiler_wl='-Wl,'
10267         lt_prog_compiler_pic='-qpic'
10268         lt_prog_compiler_static='-qstaticlink'
10269         ;;
10270       *)
10271         case `$CC -V 2>&1 | $SED 5q` in
10272         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10273           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10274           lt_prog_compiler_pic='-KPIC'
10275           lt_prog_compiler_static='-Bstatic'
10276           lt_prog_compiler_wl=''
10277           ;;
10278         *Sun\ F* | *Sun*Fortran*)
10279           lt_prog_compiler_pic='-KPIC'
10280           lt_prog_compiler_static='-Bstatic'
10281           lt_prog_compiler_wl='-Qoption ld '
10282           ;;
10283         *Sun\ C*)
10284           # Sun C 5.9
10285           lt_prog_compiler_pic='-KPIC'
10286           lt_prog_compiler_static='-Bstatic'
10287           lt_prog_compiler_wl='-Wl,'
10288           ;;
10289         *Intel*\ [CF]*Compiler*)
10290           lt_prog_compiler_wl='-Wl,'
10291           lt_prog_compiler_pic='-fPIC'
10292           lt_prog_compiler_static='-static'
10293           ;;
10294         *Portland\ Group*)
10295           lt_prog_compiler_wl='-Wl,'
10296           lt_prog_compiler_pic='-fpic'
10297           lt_prog_compiler_static='-Bstatic'
10298           ;;
10299         esac
10300         ;;
10301       esac
10302       ;;
10303
10304     newsos6)
10305       lt_prog_compiler_pic='-KPIC'
10306       lt_prog_compiler_static='-Bstatic'
10307       ;;
10308
10309     *nto* | *qnx*)
10310       # QNX uses GNU C++, but need to define -shared option too, otherwise
10311       # it will coredump.
10312       lt_prog_compiler_pic='-fPIC -shared'
10313       ;;
10314
10315     osf3* | osf4* | osf5*)
10316       lt_prog_compiler_wl='-Wl,'
10317       # All OSF/1 code is PIC.
10318       lt_prog_compiler_static='-non_shared'
10319       ;;
10320
10321     rdos*)
10322       lt_prog_compiler_static='-non_shared'
10323       ;;
10324
10325     solaris*)
10326       lt_prog_compiler_pic='-KPIC'
10327       lt_prog_compiler_static='-Bstatic'
10328       case $cc_basename in
10329       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10330         lt_prog_compiler_wl='-Qoption ld ';;
10331       *)
10332         lt_prog_compiler_wl='-Wl,';;
10333       esac
10334       ;;
10335
10336     sunos4*)
10337       lt_prog_compiler_wl='-Qoption ld '
10338       lt_prog_compiler_pic='-PIC'
10339       lt_prog_compiler_static='-Bstatic'
10340       ;;
10341
10342     sysv4 | sysv4.2uw2* | sysv4.3*)
10343       lt_prog_compiler_wl='-Wl,'
10344       lt_prog_compiler_pic='-KPIC'
10345       lt_prog_compiler_static='-Bstatic'
10346       ;;
10347
10348     sysv4*MP*)
10349       if test -d /usr/nec; then
10350         lt_prog_compiler_pic='-Kconform_pic'
10351         lt_prog_compiler_static='-Bstatic'
10352       fi
10353       ;;
10354
10355     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10356       lt_prog_compiler_wl='-Wl,'
10357       lt_prog_compiler_pic='-KPIC'
10358       lt_prog_compiler_static='-Bstatic'
10359       ;;
10360
10361     unicos*)
10362       lt_prog_compiler_wl='-Wl,'
10363       lt_prog_compiler_can_build_shared=no
10364       ;;
10365
10366     uts4*)
10367       lt_prog_compiler_pic='-pic'
10368       lt_prog_compiler_static='-Bstatic'
10369       ;;
10370
10371     *)
10372       lt_prog_compiler_can_build_shared=no
10373       ;;
10374     esac
10375   fi
10376
10377 case $host_os in
10378   # For platforms that do not support PIC, -DPIC is meaningless:
10379   *djgpp*)
10380     lt_prog_compiler_pic=
10381     ;;
10382   *)
10383     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10384     ;;
10385 esac
10386
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10388 printf %s "checking for $compiler option to produce PIC... " >&6; }
10389 if test ${lt_cv_prog_compiler_pic+y}
10390 then :
10391   printf %s "(cached) " >&6
10392 else $as_nop
10393   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10394 fi
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10396 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10397 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10398
10399 #
10400 # Check to make sure the PIC flag actually works.
10401 #
10402 if test -n "$lt_prog_compiler_pic"; then
10403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10404 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10405 if test ${lt_cv_prog_compiler_pic_works+y}
10406 then :
10407   printf %s "(cached) " >&6
10408 else $as_nop
10409   lt_cv_prog_compiler_pic_works=no
10410    ac_outfile=conftest.$ac_objext
10411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10412    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10413    # Insert the option either (1) after the last *FLAGS variable, or
10414    # (2) before a word containing "conftest.", or (3) at the end.
10415    # Note that $ac_compile itself does not contain backslashes and begins
10416    # with a dollar sign (not a hyphen), so the echo should work correctly.
10417    # The option is referenced via a variable to avoid confusing sed.
10418    lt_compile=`echo "$ac_compile" | $SED \
10419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10421    -e 's:$: $lt_compiler_flag:'`
10422    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10423    (eval "$lt_compile" 2>conftest.err)
10424    ac_status=$?
10425    cat conftest.err >&5
10426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427    if (exit $ac_status) && test -s "$ac_outfile"; then
10428      # The compiler can only warn and ignore the option if not recognized
10429      # So say no if there are warnings other than the usual output.
10430      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10431      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10432      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10433        lt_cv_prog_compiler_pic_works=yes
10434      fi
10435    fi
10436    $RM conftest*
10437
10438 fi
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10440 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10441
10442 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10443     case $lt_prog_compiler_pic in
10444      "" | " "*) ;;
10445      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10446      esac
10447 else
10448     lt_prog_compiler_pic=
10449      lt_prog_compiler_can_build_shared=no
10450 fi
10451
10452 fi
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464 #
10465 # Check to make sure the static flag actually works.
10466 #
10467 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10469 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10470 if test ${lt_cv_prog_compiler_static_works+y}
10471 then :
10472   printf %s "(cached) " >&6
10473 else $as_nop
10474   lt_cv_prog_compiler_static_works=no
10475    save_LDFLAGS=$LDFLAGS
10476    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10477    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10478    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10479      # The linker can only warn and ignore the option if not recognized
10480      # So say no if there are warnings
10481      if test -s conftest.err; then
10482        # Append any errors to the config.log.
10483        cat conftest.err 1>&5
10484        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10485        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10486        if diff conftest.exp conftest.er2 >/dev/null; then
10487          lt_cv_prog_compiler_static_works=yes
10488        fi
10489      else
10490        lt_cv_prog_compiler_static_works=yes
10491      fi
10492    fi
10493    $RM -r conftest*
10494    LDFLAGS=$save_LDFLAGS
10495
10496 fi
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10498 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10499
10500 if test yes = "$lt_cv_prog_compiler_static_works"; then
10501     :
10502 else
10503     lt_prog_compiler_static=
10504 fi
10505
10506
10507
10508
10509
10510
10511
10512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10513 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10514 if test ${lt_cv_prog_compiler_c_o+y}
10515 then :
10516   printf %s "(cached) " >&6
10517 else $as_nop
10518   lt_cv_prog_compiler_c_o=no
10519    $RM -r conftest 2>/dev/null
10520    mkdir conftest
10521    cd conftest
10522    mkdir out
10523    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10524
10525    lt_compiler_flag="-o out/conftest2.$ac_objext"
10526    # Insert the option either (1) after the last *FLAGS variable, or
10527    # (2) before a word containing "conftest.", or (3) at the end.
10528    # Note that $ac_compile itself does not contain backslashes and begins
10529    # with a dollar sign (not a hyphen), so the echo should work correctly.
10530    lt_compile=`echo "$ac_compile" | $SED \
10531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10533    -e 's:$: $lt_compiler_flag:'`
10534    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10535    (eval "$lt_compile" 2>out/conftest.err)
10536    ac_status=$?
10537    cat out/conftest.err >&5
10538    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10540    then
10541      # The compiler can only warn and ignore the option if not recognized
10542      # So say no if there are warnings
10543      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10544      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10545      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10546        lt_cv_prog_compiler_c_o=yes
10547      fi
10548    fi
10549    chmod u+w . 2>&5
10550    $RM conftest*
10551    # SGI C++ compiler will create directory out/ii_files/ for
10552    # template instantiation
10553    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10554    $RM out/* && rmdir out
10555    cd ..
10556    $RM -r conftest
10557    $RM conftest*
10558
10559 fi
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10561 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10562
10563
10564
10565
10566
10567
10568   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10569 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10570 if test ${lt_cv_prog_compiler_c_o+y}
10571 then :
10572   printf %s "(cached) " >&6
10573 else $as_nop
10574   lt_cv_prog_compiler_c_o=no
10575    $RM -r conftest 2>/dev/null
10576    mkdir conftest
10577    cd conftest
10578    mkdir out
10579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10580
10581    lt_compiler_flag="-o out/conftest2.$ac_objext"
10582    # Insert the option either (1) after the last *FLAGS variable, or
10583    # (2) before a word containing "conftest.", or (3) at the end.
10584    # Note that $ac_compile itself does not contain backslashes and begins
10585    # with a dollar sign (not a hyphen), so the echo should work correctly.
10586    lt_compile=`echo "$ac_compile" | $SED \
10587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10589    -e 's:$: $lt_compiler_flag:'`
10590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10591    (eval "$lt_compile" 2>out/conftest.err)
10592    ac_status=$?
10593    cat out/conftest.err >&5
10594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10596    then
10597      # The compiler can only warn and ignore the option if not recognized
10598      # So say no if there are warnings
10599      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10600      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10601      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10602        lt_cv_prog_compiler_c_o=yes
10603      fi
10604    fi
10605    chmod u+w . 2>&5
10606    $RM conftest*
10607    # SGI C++ compiler will create directory out/ii_files/ for
10608    # template instantiation
10609    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10610    $RM out/* && rmdir out
10611    cd ..
10612    $RM -r conftest
10613    $RM conftest*
10614
10615 fi
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10617 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10618
10619
10620
10621
10622 hard_links=nottested
10623 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10624   # do not overwrite the value of need_locks provided by the user
10625   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10626 printf %s "checking if we can lock with hard links... " >&6; }
10627   hard_links=yes
10628   $RM conftest*
10629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10630   touch conftest.a
10631   ln conftest.a conftest.b 2>&5 || hard_links=no
10632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10634 printf "%s\n" "$hard_links" >&6; }
10635   if test no = "$hard_links"; then
10636     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10637 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10638     need_locks=warn
10639   fi
10640 else
10641   need_locks=no
10642 fi
10643
10644
10645
10646
10647
10648
10649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10650 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10651
10652   runpath_var=
10653   allow_undefined_flag=
10654   always_export_symbols=no
10655   archive_cmds=
10656   archive_expsym_cmds=
10657   compiler_needs_object=no
10658   enable_shared_with_static_runtimes=no
10659   export_dynamic_flag_spec=
10660   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10661   hardcode_automatic=no
10662   hardcode_direct=no
10663   hardcode_direct_absolute=no
10664   hardcode_libdir_flag_spec=
10665   hardcode_libdir_separator=
10666   hardcode_minus_L=no
10667   hardcode_shlibpath_var=unsupported
10668   inherit_rpath=no
10669   link_all_deplibs=unknown
10670   module_cmds=
10671   module_expsym_cmds=
10672   old_archive_from_new_cmds=
10673   old_archive_from_expsyms_cmds=
10674   thread_safe_flag_spec=
10675   whole_archive_flag_spec=
10676   # include_expsyms should be a list of space-separated symbols to be *always*
10677   # included in the symbol list
10678   include_expsyms=
10679   # exclude_expsyms can be an extended regexp of symbols to exclude
10680   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10681   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10682   # as well as any symbol that contains 'd'.
10683   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10684   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10685   # platforms (ab)use it in PIC code, but their linkers get confused if
10686   # the symbol is explicitly referenced.  Since portable code cannot
10687   # rely on this symbol name, it's probably fine to never include it in
10688   # preloaded symbol tables.
10689   # Exclude shared library initialization/finalization symbols.
10690   extract_expsyms_cmds=
10691
10692   case $host_os in
10693   cygwin* | mingw* | pw32* | cegcc*)
10694     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10695     # When not using gcc, we currently assume that we are using
10696     # Microsoft Visual C++ or Intel C++ Compiler.
10697     if test yes != "$GCC"; then
10698       with_gnu_ld=no
10699     fi
10700     ;;
10701   interix*)
10702     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10703     with_gnu_ld=yes
10704     ;;
10705   openbsd* | bitrig*)
10706     with_gnu_ld=no
10707     ;;
10708   linux* | k*bsd*-gnu | gnu*)
10709     link_all_deplibs=no
10710     ;;
10711   esac
10712
10713   ld_shlibs=yes
10714
10715   # On some targets, GNU ld is compatible enough with the native linker
10716   # that we're better off using the native interface for both.
10717   lt_use_gnu_ld_interface=no
10718   if test yes = "$with_gnu_ld"; then
10719     case $host_os in
10720       aix*)
10721         # The AIX port of GNU ld has always aspired to compatibility
10722         # with the native linker.  However, as the warning in the GNU ld
10723         # block says, versions before 2.19.5* couldn't really create working
10724         # shared libraries, regardless of the interface used.
10725         case `$LD -v 2>&1` in
10726           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10727           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10728           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10729           *)
10730             lt_use_gnu_ld_interface=yes
10731             ;;
10732         esac
10733         ;;
10734       *)
10735         lt_use_gnu_ld_interface=yes
10736         ;;
10737     esac
10738   fi
10739
10740   if test yes = "$lt_use_gnu_ld_interface"; then
10741     # If archive_cmds runs LD, not CC, wlarc should be empty
10742     wlarc='$wl'
10743
10744     # Set some defaults for GNU ld with shared library support. These
10745     # are reset later if shared libraries are not supported. Putting them
10746     # here allows them to be overridden if necessary.
10747     runpath_var=LD_RUN_PATH
10748     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10749     export_dynamic_flag_spec='$wl--export-dynamic'
10750     # ancient GNU ld didn't support --whole-archive et. al.
10751     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10752       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10753     else
10754       whole_archive_flag_spec=
10755     fi
10756     supports_anon_versioning=no
10757     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10758       *GNU\ gold*) supports_anon_versioning=yes ;;
10759       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10760       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10761       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10762       *\ 2.11.*) ;; # other 2.11 versions
10763       *) supports_anon_versioning=yes ;;
10764     esac
10765
10766     # See if GNU ld supports shared libraries.
10767     case $host_os in
10768     aix[3-9]*)
10769       # On AIX/PPC, the GNU linker is very broken
10770       if test ia64 != "$host_cpu"; then
10771         ld_shlibs=no
10772         cat <<_LT_EOF 1>&2
10773
10774 *** Warning: the GNU linker, at least up to release 2.19, is reported
10775 *** to be unable to reliably create shared libraries on AIX.
10776 *** Therefore, libtool is disabling shared libraries support.  If you
10777 *** really care for shared libraries, you may want to install binutils
10778 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10779 *** You will then need to restart the configuration process.
10780
10781 _LT_EOF
10782       fi
10783       ;;
10784
10785     amigaos*)
10786       case $host_cpu in
10787       powerpc)
10788             # see comment about AmigaOS4 .so support
10789             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10790             archive_expsym_cmds=''
10791         ;;
10792       m68k)
10793             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)'
10794             hardcode_libdir_flag_spec='-L$libdir'
10795             hardcode_minus_L=yes
10796         ;;
10797       esac
10798       ;;
10799
10800     beos*)
10801       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10802         allow_undefined_flag=unsupported
10803         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10804         # support --undefined.  This deserves some investigation.  FIXME
10805         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10806       else
10807         ld_shlibs=no
10808       fi
10809       ;;
10810
10811     cygwin* | mingw* | pw32* | cegcc*)
10812       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10813       # as there is no search path for DLLs.
10814       hardcode_libdir_flag_spec='-L$libdir'
10815       export_dynamic_flag_spec='$wl--export-all-symbols'
10816       allow_undefined_flag=unsupported
10817       always_export_symbols=no
10818       enable_shared_with_static_runtimes=yes
10819       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10820       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10821
10822       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10823         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10824         # If the export-symbols file already is a .def file, use it as
10825         # is; otherwise, prepend EXPORTS...
10826         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10827           cp $export_symbols $output_objdir/$soname.def;
10828         else
10829           echo EXPORTS > $output_objdir/$soname.def;
10830           cat $export_symbols >> $output_objdir/$soname.def;
10831         fi~
10832         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10833       else
10834         ld_shlibs=no
10835       fi
10836       ;;
10837
10838     haiku*)
10839       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10840       link_all_deplibs=yes
10841       ;;
10842
10843     os2*)
10844       hardcode_libdir_flag_spec='-L$libdir'
10845       hardcode_minus_L=yes
10846       allow_undefined_flag=unsupported
10847       shrext_cmds=.dll
10848       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10849         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10850         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10851         $ECHO EXPORTS >> $output_objdir/$libname.def~
10852         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10853         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10854         emximp -o $lib $output_objdir/$libname.def'
10855       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10856         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10857         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10858         $ECHO EXPORTS >> $output_objdir/$libname.def~
10859         prefix_cmds="$SED"~
10860         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10861           prefix_cmds="$prefix_cmds -e 1d";
10862         fi~
10863         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10864         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10865         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10866         emximp -o $lib $output_objdir/$libname.def'
10867       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10868       enable_shared_with_static_runtimes=yes
10869       file_list_spec='@'
10870       ;;
10871
10872     interix[3-9]*)
10873       hardcode_direct=no
10874       hardcode_shlibpath_var=no
10875       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10876       export_dynamic_flag_spec='$wl-E'
10877       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10878       # Instead, shared libraries are loaded at an image base (0x10000000 by
10879       # default) and relocated if they conflict, which is a slow very memory
10880       # consuming and fragmenting process.  To avoid this, we pick a random,
10881       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10882       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10883       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10884       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'
10885       ;;
10886
10887     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10888       tmp_diet=no
10889       if test linux-dietlibc = "$host_os"; then
10890         case $cc_basename in
10891           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10892         esac
10893       fi
10894       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10895          && test no = "$tmp_diet"
10896       then
10897         tmp_addflag=' $pic_flag'
10898         tmp_sharedflag='-shared'
10899         case $cc_basename,$host_cpu in
10900         pgcc*)                          # Portland Group C compiler
10901           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10902           tmp_addflag=' $pic_flag'
10903           ;;
10904         pgf77* | pgf90* | pgf95* | pgfortran*)
10905                                         # Portland Group f77 and f90 compilers
10906           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10907           tmp_addflag=' $pic_flag -Mnomain' ;;
10908         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10909           tmp_addflag=' -i_dynamic' ;;
10910         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10911           tmp_addflag=' -i_dynamic -nofor_main' ;;
10912         ifc* | ifort*)                  # Intel Fortran compiler
10913           tmp_addflag=' -nofor_main' ;;
10914         lf95*)                          # Lahey Fortran 8.1
10915           whole_archive_flag_spec=
10916           tmp_sharedflag='--shared' ;;
10917         nagfor*)                        # NAGFOR 5.3
10918           tmp_sharedflag='-Wl,-shared' ;;
10919         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10920           tmp_sharedflag='-qmkshrobj'
10921           tmp_addflag= ;;
10922         nvcc*)  # Cuda Compiler Driver 2.2
10923           whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10924           compiler_needs_object=yes
10925           ;;
10926         esac
10927         case `$CC -V 2>&1 | $SED 5q` in
10928         *Sun\ C*)                       # Sun C 5.9
10929           whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10930           compiler_needs_object=yes
10931           tmp_sharedflag='-G' ;;
10932         *Sun\ F*)                       # Sun Fortran 8.3
10933           tmp_sharedflag='-G' ;;
10934         esac
10935         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10936
10937         if test yes = "$supports_anon_versioning"; then
10938           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10939             cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10940             echo "local: *; };" >> $output_objdir/$libname.ver~
10941             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10942         fi
10943
10944         case $cc_basename in
10945         tcc*)
10946           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10947           export_dynamic_flag_spec='-rdynamic'
10948           ;;
10949         xlf* | bgf* | bgxlf* | mpixlf*)
10950           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10951           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10952           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10953           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10954           if test yes = "$supports_anon_versioning"; then
10955             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10956               cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10957               echo "local: *; };" >> $output_objdir/$libname.ver~
10958               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10959           fi
10960           ;;
10961         esac
10962       else
10963         ld_shlibs=no
10964       fi
10965       ;;
10966
10967     netbsd* | netbsdelf*-gnu)
10968       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10969         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10970         wlarc=
10971       else
10972         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10973         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10974       fi
10975       ;;
10976
10977     solaris*)
10978       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10979         ld_shlibs=no
10980         cat <<_LT_EOF 1>&2
10981
10982 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10983 *** create shared libraries on Solaris systems.  Therefore, libtool
10984 *** is disabling shared libraries support.  We urge you to upgrade GNU
10985 *** binutils to release 2.9.1 or newer.  Another option is to modify
10986 *** your PATH or compiler configuration so that the native linker is
10987 *** used, and then restart.
10988
10989 _LT_EOF
10990       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10991         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10992         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10993       else
10994         ld_shlibs=no
10995       fi
10996       ;;
10997
10998     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10999       case `$LD -v 2>&1` in
11000         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11001         ld_shlibs=no
11002         cat <<_LT_EOF 1>&2
11003
11004 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11005 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11006 *** is disabling shared libraries support.  We urge you to upgrade GNU
11007 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11008 *** your PATH or compiler configuration so that the native linker is
11009 *** used, and then restart.
11010
11011 _LT_EOF
11012         ;;
11013         *)
11014           # For security reasons, it is highly recommended that you always
11015           # use absolute paths for naming shared libraries, and exclude the
11016           # DT_RUNPATH tag from executables and libraries.  But doing so
11017           # requires that you compile everything twice, which is a pain.
11018           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11019             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11020             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11021             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11022           else
11023             ld_shlibs=no
11024           fi
11025         ;;
11026       esac
11027       ;;
11028
11029     sunos4*)
11030       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11031       wlarc=
11032       hardcode_direct=yes
11033       hardcode_shlibpath_var=no
11034       ;;
11035
11036     *)
11037       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11038         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11039         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11040       else
11041         ld_shlibs=no
11042       fi
11043       ;;
11044     esac
11045
11046     if test no = "$ld_shlibs"; then
11047       runpath_var=
11048       hardcode_libdir_flag_spec=
11049       export_dynamic_flag_spec=
11050       whole_archive_flag_spec=
11051     fi
11052   else
11053     # PORTME fill in a description of your system's linker (not GNU ld)
11054     case $host_os in
11055     aix3*)
11056       allow_undefined_flag=unsupported
11057       always_export_symbols=yes
11058       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'
11059       # Note: this linker hardcodes the directories in LIBPATH if there
11060       # are no directories specified by -L.
11061       hardcode_minus_L=yes
11062       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11063         # Neither direct hardcoding nor static linking is supported with a
11064         # broken collect2.
11065         hardcode_direct=unsupported
11066       fi
11067       ;;
11068
11069     aix[4-9]*)
11070       if test ia64 = "$host_cpu"; then
11071         # On IA64, the linker does run time linking by default, so we don't
11072         # have to do anything special.
11073         aix_use_runtimelinking=no
11074         exp_sym_flag='-Bexport'
11075         no_entry_flag=
11076       else
11077         # If we're using GNU nm, then we don't want the "-C" option.
11078         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11079         # Without the "-l" option, or with the "-B" option, AIX nm treats
11080         # weak defined symbols like other global defined symbols, whereas
11081         # GNU nm marks them as "W".
11082         # While the 'weak' keyword is ignored in the Export File, we need
11083         # it in the Import File for the 'aix-soname' feature, so we have
11084         # to replace the "-B" option with "-P" for AIX nm.
11085         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11086           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11087         else
11088           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11089         fi
11090         aix_use_runtimelinking=no
11091
11092         # Test if we are trying to use run time linking or normal
11093         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11094         # have runtime linking enabled, and use it for executables.
11095         # For shared libraries, we enable/disable runtime linking
11096         # depending on the kind of the shared library created -
11097         # when "with_aix_soname,aix_use_runtimelinking" is:
11098         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11099         # "aix,yes"  lib.so          shared, rtl:yes, for executables
11100         #            lib.a           static archive
11101         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
11102         #            lib.a(lib.so.V) shared, rtl:no,  for executables
11103         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11104         #            lib.a(lib.so.V) shared, rtl:no
11105         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11106         #            lib.a           static archive
11107         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11108           for ld_flag in $LDFLAGS; do
11109           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11110             aix_use_runtimelinking=yes
11111             break
11112           fi
11113           done
11114           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11115             # With aix-soname=svr4, we create the lib.so.V shared archives only,
11116             # so we don't have lib.a shared libs to link our executables.
11117             # We have to force runtime linking in this case.
11118             aix_use_runtimelinking=yes
11119             LDFLAGS="$LDFLAGS -Wl,-brtl"
11120           fi
11121           ;;
11122         esac
11123
11124         exp_sym_flag='-bexport'
11125         no_entry_flag='-bnoentry'
11126       fi
11127
11128       # When large executables or shared objects are built, AIX ld can
11129       # have problems creating the table of contents.  If linking a library
11130       # or program results in "error TOC overflow" add -mminimal-toc to
11131       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11132       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11133
11134       archive_cmds=''
11135       hardcode_direct=yes
11136       hardcode_direct_absolute=yes
11137       hardcode_libdir_separator=':'
11138       link_all_deplibs=yes
11139       file_list_spec='$wl-f,'
11140       case $with_aix_soname,$aix_use_runtimelinking in
11141       aix,*) ;; # traditional, no import file
11142       svr4,* | *,yes) # use import file
11143         # The Import File defines what to hardcode.
11144         hardcode_direct=no
11145         hardcode_direct_absolute=no
11146         ;;
11147       esac
11148
11149       if test yes = "$GCC"; then
11150         case $host_os in aix4.[012]|aix4.[012].*)
11151         # We only want to do this on AIX 4.2 and lower, the check
11152         # below for broken collect2 doesn't work under 4.3+
11153           collect2name=`$CC -print-prog-name=collect2`
11154           if test -f "$collect2name" &&
11155            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11156           then
11157           # We have reworked collect2
11158           :
11159           else
11160           # We have old collect2
11161           hardcode_direct=unsupported
11162           # It fails to find uninstalled libraries when the uninstalled
11163           # path is not listed in the libpath.  Setting hardcode_minus_L
11164           # to unsupported forces relinking
11165           hardcode_minus_L=yes
11166           hardcode_libdir_flag_spec='-L$libdir'
11167           hardcode_libdir_separator=
11168           fi
11169           ;;
11170         esac
11171         shared_flag='-shared'
11172         if test yes = "$aix_use_runtimelinking"; then
11173           shared_flag="$shared_flag "'$wl-G'
11174         fi
11175         # Need to ensure runtime linking is disabled for the traditional
11176         # shared library, or the linker may eventually find shared libraries
11177         # /with/ Import File - we do not want to mix them.
11178         shared_flag_aix='-shared'
11179         shared_flag_svr4='-shared $wl-G'
11180       else
11181         # not using gcc
11182         if test ia64 = "$host_cpu"; then
11183         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11184         # chokes on -Wl,-G. The following line is correct:
11185           shared_flag='-G'
11186         else
11187           if test yes = "$aix_use_runtimelinking"; then
11188             shared_flag='$wl-G'
11189           else
11190             shared_flag='$wl-bM:SRE'
11191           fi
11192           shared_flag_aix='$wl-bM:SRE'
11193           shared_flag_svr4='$wl-G'
11194         fi
11195       fi
11196
11197       export_dynamic_flag_spec='$wl-bexpall'
11198       # It seems that -bexpall does not export symbols beginning with
11199       # underscore (_), so it is better to generate a list of symbols to export.
11200       always_export_symbols=yes
11201       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11202         # Warning - without using the other runtime loading flags (-brtl),
11203         # -berok will link without error, but may produce a broken library.
11204         allow_undefined_flag='-berok'
11205         # Determine the default libpath from the value encoded in an
11206         # empty executable.
11207         if test set = "${lt_cv_aix_libpath+set}"; then
11208   aix_libpath=$lt_cv_aix_libpath
11209 else
11210   if test ${lt_cv_aix_libpath_+y}
11211 then :
11212   printf %s "(cached) " >&6
11213 else $as_nop
11214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h.  */
11216
11217 int
11218 main (void)
11219 {
11220
11221   ;
11222   return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"
11226 then :
11227
11228   lt_aix_libpath_sed='
11229       /Import File Strings/,/^$/ {
11230           /^0/ {
11231               s/^0  *\([^ ]*\) *$/\1/
11232               p
11233           }
11234       }'
11235   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11236   # Check for a 64-bit object if we didn't find anything.
11237   if test -z "$lt_cv_aix_libpath_"; then
11238     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11239   fi
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11242     conftest$ac_exeext conftest.$ac_ext
11243   if test -z "$lt_cv_aix_libpath_"; then
11244     lt_cv_aix_libpath_=/usr/lib:/lib
11245   fi
11246
11247 fi
11248
11249   aix_libpath=$lt_cv_aix_libpath_
11250 fi
11251
11252         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11253         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11254       else
11255         if test ia64 = "$host_cpu"; then
11256           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11257           allow_undefined_flag="-z nodefs"
11258           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"
11259         else
11260          # Determine the default libpath from the value encoded in an
11261          # empty executable.
11262          if test set = "${lt_cv_aix_libpath+set}"; then
11263   aix_libpath=$lt_cv_aix_libpath
11264 else
11265   if test ${lt_cv_aix_libpath_+y}
11266 then :
11267   printf %s "(cached) " >&6
11268 else $as_nop
11269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11270 /* end confdefs.h.  */
11271
11272 int
11273 main (void)
11274 {
11275
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 if ac_fn_c_try_link "$LINENO"
11281 then :
11282
11283   lt_aix_libpath_sed='
11284       /Import File Strings/,/^$/ {
11285           /^0/ {
11286               s/^0  *\([^ ]*\) *$/\1/
11287               p
11288           }
11289       }'
11290   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11291   # Check for a 64-bit object if we didn't find anything.
11292   if test -z "$lt_cv_aix_libpath_"; then
11293     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11294   fi
11295 fi
11296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11297     conftest$ac_exeext conftest.$ac_ext
11298   if test -z "$lt_cv_aix_libpath_"; then
11299     lt_cv_aix_libpath_=/usr/lib:/lib
11300   fi
11301
11302 fi
11303
11304   aix_libpath=$lt_cv_aix_libpath_
11305 fi
11306
11307          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11308           # Warning - without using the other run time loading flags,
11309           # -berok will link without error, but may produce a broken library.
11310           no_undefined_flag=' $wl-bernotok'
11311           allow_undefined_flag=' $wl-berok'
11312           if test yes = "$with_gnu_ld"; then
11313             # We only use this code for GNU lds that support --whole-archive.
11314             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11315           else
11316             # Exported symbols can be pulled into shared objects from archives
11317             whole_archive_flag_spec='$convenience'
11318           fi
11319           archive_cmds_need_lc=yes
11320           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11321           # -brtl affects multiple linker settings, -berok does not and is overridden later
11322           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11323           if test svr4 != "$with_aix_soname"; then
11324             # This is similar to how AIX traditionally builds its shared libraries.
11325             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11326           fi
11327           if test aix != "$with_aix_soname"; then
11328             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11329           else
11330             # used by -dlpreopen to get the symbols
11331             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11332           fi
11333           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11334         fi
11335       fi
11336       ;;
11337
11338     amigaos*)
11339       case $host_cpu in
11340       powerpc)
11341             # see comment about AmigaOS4 .so support
11342             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11343             archive_expsym_cmds=''
11344         ;;
11345       m68k)
11346             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)'
11347             hardcode_libdir_flag_spec='-L$libdir'
11348             hardcode_minus_L=yes
11349         ;;
11350       esac
11351       ;;
11352
11353     bsdi[45]*)
11354       export_dynamic_flag_spec=-rdynamic
11355       ;;
11356
11357     cygwin* | mingw* | pw32* | cegcc*)
11358       # When not using gcc, we currently assume that we are using
11359       # Microsoft Visual C++ or Intel C++ Compiler.
11360       # hardcode_libdir_flag_spec is actually meaningless, as there is
11361       # no search path for DLLs.
11362       case $cc_basename in
11363       cl* | icl*)
11364         # Native MSVC or ICC
11365         hardcode_libdir_flag_spec=' '
11366         allow_undefined_flag=unsupported
11367         always_export_symbols=yes
11368         file_list_spec='@'
11369         # Tell ltmain to make .lib files, not .a files.
11370         libext=lib
11371         # Tell ltmain to make .dll files, not .so files.
11372         shrext_cmds=.dll
11373         # FIXME: Setting linknames here is a bad hack.
11374         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11375         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11376             cp "$export_symbols" "$output_objdir/$soname.def";
11377             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11378           else
11379             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11380           fi~
11381           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11382           linknames='
11383         # The linker will not automatically build a static lib if we build a DLL.
11384         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11385         enable_shared_with_static_runtimes=yes
11386         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11387         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11388         # Don't use ranlib
11389         old_postinstall_cmds='chmod 644 $oldlib'
11390         postlink_cmds='lt_outputfile="@OUTPUT@"~
11391           lt_tool_outputfile="@TOOL_OUTPUT@"~
11392           case $lt_outputfile in
11393             *.exe|*.EXE) ;;
11394             *)
11395               lt_outputfile=$lt_outputfile.exe
11396               lt_tool_outputfile=$lt_tool_outputfile.exe
11397               ;;
11398           esac~
11399           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11400             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11401             $RM "$lt_outputfile.manifest";
11402           fi'
11403         ;;
11404       *)
11405         # Assume MSVC and ICC wrapper
11406         hardcode_libdir_flag_spec=' '
11407         allow_undefined_flag=unsupported
11408         # Tell ltmain to make .lib files, not .a files.
11409         libext=lib
11410         # Tell ltmain to make .dll files, not .so files.
11411         shrext_cmds=.dll
11412         # FIXME: Setting linknames here is a bad hack.
11413         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11414         # The linker will automatically build a .lib file if we build a DLL.
11415         old_archive_from_new_cmds='true'
11416         # FIXME: Should let the user specify the lib program.
11417         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11418         enable_shared_with_static_runtimes=yes
11419         ;;
11420       esac
11421       ;;
11422
11423     darwin* | rhapsody*)
11424
11425
11426   archive_cmds_need_lc=no
11427   hardcode_direct=no
11428   hardcode_automatic=yes
11429   hardcode_shlibpath_var=unsupported
11430   if test yes = "$lt_cv_ld_force_load"; then
11431     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11432
11433   else
11434     whole_archive_flag_spec=''
11435   fi
11436   link_all_deplibs=yes
11437   allow_undefined_flag=$_lt_dar_allow_undefined
11438   case $cc_basename in
11439      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11440      *) _lt_dar_can_shared=$GCC ;;
11441   esac
11442   if test yes = "$_lt_dar_can_shared"; then
11443     output_verbose_link_cmd=func_echo_all
11444     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11445     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11446     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"
11447     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"
11448
11449   else
11450   ld_shlibs=no
11451   fi
11452
11453       ;;
11454
11455     dgux*)
11456       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457       hardcode_libdir_flag_spec='-L$libdir'
11458       hardcode_shlibpath_var=no
11459       ;;
11460
11461     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11462     # support.  Future versions do this automatically, but an explicit c++rt0.o
11463     # does not break anything, and helps significantly (at the cost of a little
11464     # extra space).
11465     freebsd2.2*)
11466       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11467       hardcode_libdir_flag_spec='-R$libdir'
11468       hardcode_direct=yes
11469       hardcode_shlibpath_var=no
11470       ;;
11471
11472     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11473     freebsd2.*)
11474       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11475       hardcode_direct=yes
11476       hardcode_minus_L=yes
11477       hardcode_shlibpath_var=no
11478       ;;
11479
11480     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11481     freebsd* | dragonfly* | midnightbsd*)
11482       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11483       hardcode_libdir_flag_spec='-R$libdir'
11484       hardcode_direct=yes
11485       hardcode_shlibpath_var=no
11486       ;;
11487
11488     hpux9*)
11489       if test yes = "$GCC"; then
11490         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11491       else
11492         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11493       fi
11494       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11495       hardcode_libdir_separator=:
11496       hardcode_direct=yes
11497
11498       # hardcode_minus_L: Not really in the search PATH,
11499       # but as the default location of the library.
11500       hardcode_minus_L=yes
11501       export_dynamic_flag_spec='$wl-E'
11502       ;;
11503
11504     hpux10*)
11505       if test yes,no = "$GCC,$with_gnu_ld"; then
11506         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11507       else
11508         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11509       fi
11510       if test no = "$with_gnu_ld"; then
11511         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11512         hardcode_libdir_separator=:
11513         hardcode_direct=yes
11514         hardcode_direct_absolute=yes
11515         export_dynamic_flag_spec='$wl-E'
11516         # hardcode_minus_L: Not really in the search PATH,
11517         # but as the default location of the library.
11518         hardcode_minus_L=yes
11519       fi
11520       ;;
11521
11522     hpux11*)
11523       if test yes,no = "$GCC,$with_gnu_ld"; then
11524         case $host_cpu in
11525         hppa*64*)
11526           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11527           ;;
11528         ia64*)
11529           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11530           ;;
11531         *)
11532           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11533           ;;
11534         esac
11535       else
11536         case $host_cpu in
11537         hppa*64*)
11538           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11539           ;;
11540         ia64*)
11541           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11542           ;;
11543         *)
11544
11545           # Older versions of the 11.00 compiler do not understand -b yet
11546           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11547           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11548 printf %s "checking if $CC understands -b... " >&6; }
11549 if test ${lt_cv_prog_compiler__b+y}
11550 then :
11551   printf %s "(cached) " >&6
11552 else $as_nop
11553   lt_cv_prog_compiler__b=no
11554    save_LDFLAGS=$LDFLAGS
11555    LDFLAGS="$LDFLAGS -b"
11556    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11557    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11558      # The linker can only warn and ignore the option if not recognized
11559      # So say no if there are warnings
11560      if test -s conftest.err; then
11561        # Append any errors to the config.log.
11562        cat conftest.err 1>&5
11563        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11564        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11565        if diff conftest.exp conftest.er2 >/dev/null; then
11566          lt_cv_prog_compiler__b=yes
11567        fi
11568      else
11569        lt_cv_prog_compiler__b=yes
11570      fi
11571    fi
11572    $RM -r conftest*
11573    LDFLAGS=$save_LDFLAGS
11574
11575 fi
11576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11577 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11578
11579 if test yes = "$lt_cv_prog_compiler__b"; then
11580     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11581 else
11582     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11583 fi
11584
11585           ;;
11586         esac
11587       fi
11588       if test no = "$with_gnu_ld"; then
11589         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11590         hardcode_libdir_separator=:
11591
11592         case $host_cpu in
11593         hppa*64*|ia64*)
11594           hardcode_direct=no
11595           hardcode_shlibpath_var=no
11596           ;;
11597         *)
11598           hardcode_direct=yes
11599           hardcode_direct_absolute=yes
11600           export_dynamic_flag_spec='$wl-E'
11601
11602           # hardcode_minus_L: Not really in the search PATH,
11603           # but as the default location of the library.
11604           hardcode_minus_L=yes
11605           ;;
11606         esac
11607       fi
11608       ;;
11609
11610     irix5* | irix6* | nonstopux*)
11611       if test yes = "$GCC"; then
11612         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11613         # Try to use the -exported_symbol ld option, if it does not
11614         # work, assume that -exports_file does not work either and
11615         # implicitly export all symbols.
11616         # This should be the same for all languages, so no per-tag cache variable.
11617         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11618 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11619 if test ${lt_cv_irix_exported_symbol+y}
11620 then :
11621   printf %s "(cached) " >&6
11622 else $as_nop
11623   save_LDFLAGS=$LDFLAGS
11624            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11625            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h.  */
11627 int foo (void) { return 0; }
11628 _ACEOF
11629 if ac_fn_c_try_link "$LINENO"
11630 then :
11631   lt_cv_irix_exported_symbol=yes
11632 else $as_nop
11633   lt_cv_irix_exported_symbol=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11636     conftest$ac_exeext conftest.$ac_ext
11637            LDFLAGS=$save_LDFLAGS
11638 fi
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11640 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11641         if test yes = "$lt_cv_irix_exported_symbol"; then
11642           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11643         fi
11644         link_all_deplibs=no
11645       else
11646         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11647         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11648       fi
11649       archive_cmds_need_lc='no'
11650       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11651       hardcode_libdir_separator=:
11652       inherit_rpath=yes
11653       link_all_deplibs=yes
11654       ;;
11655
11656     linux*)
11657       case $cc_basename in
11658       tcc*)
11659         # Fabrice Bellard et al's Tiny C Compiler
11660         ld_shlibs=yes
11661         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11662         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11663         ;;
11664       esac
11665       ;;
11666
11667     netbsd* | netbsdelf*-gnu)
11668       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11669         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11670       else
11671         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11672       fi
11673       hardcode_libdir_flag_spec='-R$libdir'
11674       hardcode_direct=yes
11675       hardcode_shlibpath_var=no
11676       ;;
11677
11678     newsos6)
11679       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11680       hardcode_direct=yes
11681       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11682       hardcode_libdir_separator=:
11683       hardcode_shlibpath_var=no
11684       ;;
11685
11686     *nto* | *qnx*)
11687       ;;
11688
11689     openbsd* | bitrig*)
11690       if test -f /usr/libexec/ld.so; then
11691         hardcode_direct=yes
11692         hardcode_shlibpath_var=no
11693         hardcode_direct_absolute=yes
11694         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11695           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11696           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11697           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11698           export_dynamic_flag_spec='$wl-E'
11699         else
11700           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11701           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11702         fi
11703       else
11704         ld_shlibs=no
11705       fi
11706       ;;
11707
11708     os2*)
11709       hardcode_libdir_flag_spec='-L$libdir'
11710       hardcode_minus_L=yes
11711       allow_undefined_flag=unsupported
11712       shrext_cmds=.dll
11713       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11714         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11715         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11716         $ECHO EXPORTS >> $output_objdir/$libname.def~
11717         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11718         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11719         emximp -o $lib $output_objdir/$libname.def'
11720       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11721         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11722         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11723         $ECHO EXPORTS >> $output_objdir/$libname.def~
11724         prefix_cmds="$SED"~
11725         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11726           prefix_cmds="$prefix_cmds -e 1d";
11727         fi~
11728         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11729         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11730         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11731         emximp -o $lib $output_objdir/$libname.def'
11732       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11733       enable_shared_with_static_runtimes=yes
11734       file_list_spec='@'
11735       ;;
11736
11737     osf3*)
11738       if test yes = "$GCC"; then
11739         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11740         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11741       else
11742         allow_undefined_flag=' -expect_unresolved \*'
11743         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11744       fi
11745       archive_cmds_need_lc='no'
11746       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11747       hardcode_libdir_separator=:
11748       ;;
11749
11750     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11751       if test yes = "$GCC"; then
11752         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11753         archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11754         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11755       else
11756         allow_undefined_flag=' -expect_unresolved \*'
11757         archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11758         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~
11759           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11760
11761         # Both c and cxx compiler support -rpath directly
11762         hardcode_libdir_flag_spec='-rpath $libdir'
11763       fi
11764       archive_cmds_need_lc='no'
11765       hardcode_libdir_separator=:
11766       ;;
11767
11768     solaris*)
11769       no_undefined_flag=' -z defs'
11770       if test yes = "$GCC"; then
11771         wlarc='$wl'
11772         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11773         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11774           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11775       else
11776         case `$CC -V 2>&1` in
11777         *"Compilers 5.0"*)
11778           wlarc=''
11779           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11780           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11781             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11782           ;;
11783         *)
11784           wlarc='$wl'
11785           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11786           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11787             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11788           ;;
11789         esac
11790       fi
11791       hardcode_libdir_flag_spec='-R$libdir'
11792       hardcode_shlibpath_var=no
11793       case $host_os in
11794       solaris2.[0-5] | solaris2.[0-5].*) ;;
11795       *)
11796         # The compiler driver will combine and reorder linker options,
11797         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11798         # but is careful enough not to reorder.
11799         # Supported since Solaris 2.6 (maybe 2.5.1?)
11800         if test yes = "$GCC"; then
11801           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11802         else
11803           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11804         fi
11805         ;;
11806       esac
11807       link_all_deplibs=yes
11808       ;;
11809
11810     sunos4*)
11811       if test sequent = "$host_vendor"; then
11812         # Use $CC to link under sequent, because it throws in some extra .o
11813         # files that make .init and .fini sections work.
11814         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11815       else
11816         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11817       fi
11818       hardcode_libdir_flag_spec='-L$libdir'
11819       hardcode_direct=yes
11820       hardcode_minus_L=yes
11821       hardcode_shlibpath_var=no
11822       ;;
11823
11824     sysv4)
11825       case $host_vendor in
11826         sni)
11827           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828           hardcode_direct=yes # is this really true???
11829         ;;
11830         siemens)
11831           ## LD is ld it makes a PLAMLIB
11832           ## CC just makes a GrossModule.
11833           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11834           reload_cmds='$CC -r -o $output$reload_objs'
11835           hardcode_direct=no
11836         ;;
11837         motorola)
11838           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11839           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11840         ;;
11841       esac
11842       runpath_var='LD_RUN_PATH'
11843       hardcode_shlibpath_var=no
11844       ;;
11845
11846     sysv4.3*)
11847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11848       hardcode_shlibpath_var=no
11849       export_dynamic_flag_spec='-Bexport'
11850       ;;
11851
11852     sysv4*MP*)
11853       if test -d /usr/nec; then
11854         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11855         hardcode_shlibpath_var=no
11856         runpath_var=LD_RUN_PATH
11857         hardcode_runpath_var=yes
11858         ld_shlibs=yes
11859       fi
11860       ;;
11861
11862     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11863       no_undefined_flag='$wl-z,text'
11864       archive_cmds_need_lc=no
11865       hardcode_shlibpath_var=no
11866       runpath_var='LD_RUN_PATH'
11867
11868       if test yes = "$GCC"; then
11869         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11870         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11871       else
11872         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11873         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11874       fi
11875       ;;
11876
11877     sysv5* | sco3.2v5* | sco5v6*)
11878       # Note: We CANNOT use -z defs as we might desire, because we do not
11879       # link with -lc, and that would cause any symbols used from libc to
11880       # always be unresolved, which means just about no library would
11881       # ever link correctly.  If we're not using GNU ld we use -z text
11882       # though, which does catch some bad symbols but isn't as heavy-handed
11883       # as -z defs.
11884       no_undefined_flag='$wl-z,text'
11885       allow_undefined_flag='$wl-z,nodefs'
11886       archive_cmds_need_lc=no
11887       hardcode_shlibpath_var=no
11888       hardcode_libdir_flag_spec='$wl-R,$libdir'
11889       hardcode_libdir_separator=':'
11890       link_all_deplibs=yes
11891       export_dynamic_flag_spec='$wl-Bexport'
11892       runpath_var='LD_RUN_PATH'
11893
11894       if test yes = "$GCC"; then
11895         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11896         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11897       else
11898         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11899         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900       fi
11901       ;;
11902
11903     uts4*)
11904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11905       hardcode_libdir_flag_spec='-L$libdir'
11906       hardcode_shlibpath_var=no
11907       ;;
11908
11909     *)
11910       ld_shlibs=no
11911       ;;
11912     esac
11913
11914     if test sni = "$host_vendor"; then
11915       case $host in
11916       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11917         export_dynamic_flag_spec='$wl-Blargedynsym'
11918         ;;
11919       esac
11920     fi
11921   fi
11922
11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11924 printf "%s\n" "$ld_shlibs" >&6; }
11925 test no = "$ld_shlibs" && can_build_shared=no
11926
11927 with_gnu_ld=$with_gnu_ld
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943 #
11944 # Do we need to explicitly link libc?
11945 #
11946 case "x$archive_cmds_need_lc" in
11947 x|xyes)
11948   # Assume -lc should be added
11949   archive_cmds_need_lc=yes
11950
11951   if test yes,yes = "$GCC,$enable_shared"; then
11952     case $archive_cmds in
11953     *'~'*)
11954       # FIXME: we may have to deal with multi-command sequences.
11955       ;;
11956     '$CC '*)
11957       # Test whether the compiler implicitly links with -lc since on some
11958       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11959       # to ld, don't add -lc before -lgcc.
11960       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11961 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11962 if test ${lt_cv_archive_cmds_need_lc+y}
11963 then :
11964   printf %s "(cached) " >&6
11965 else $as_nop
11966   $RM conftest*
11967         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11968
11969         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11970   (eval $ac_compile) 2>&5
11971   ac_status=$?
11972   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973   test $ac_status = 0; } 2>conftest.err; then
11974           soname=conftest
11975           lib=conftest
11976           libobjs=conftest.$ac_objext
11977           deplibs=
11978           wl=$lt_prog_compiler_wl
11979           pic_flag=$lt_prog_compiler_pic
11980           compiler_flags=-v
11981           linker_flags=-v
11982           verstring=
11983           output_objdir=.
11984           libname=conftest
11985           lt_save_allow_undefined_flag=$allow_undefined_flag
11986           allow_undefined_flag=
11987           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11988   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11989   ac_status=$?
11990   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11991   test $ac_status = 0; }
11992           then
11993             lt_cv_archive_cmds_need_lc=no
11994           else
11995             lt_cv_archive_cmds_need_lc=yes
11996           fi
11997           allow_undefined_flag=$lt_save_allow_undefined_flag
11998         else
11999           cat conftest.err 1>&5
12000         fi
12001         $RM conftest*
12002
12003 fi
12004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12005 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12006       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12007       ;;
12008     esac
12009   fi
12010   ;;
12011 esac
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12165 printf %s "checking dynamic linker characteristics... " >&6; }
12166
12167 if test yes = "$GCC"; then
12168   case $host_os in
12169     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12170     *) lt_awk_arg='/^libraries:/' ;;
12171   esac
12172   case $host_os in
12173     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12174     *) lt_sed_strip_eq='s|=/|/|g' ;;
12175   esac
12176   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12177   case $lt_search_path_spec in
12178   *\;*)
12179     # if the path contains ";" then we assume it to be the separator
12180     # otherwise default to the standard path separator (i.e. ":") - it is
12181     # assumed that no part of a normal pathname contains ";" but that should
12182     # okay in the real world where ";" in dirpaths is itself problematic.
12183     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12184     ;;
12185   *)
12186     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12187     ;;
12188   esac
12189   # Ok, now we have the path, separated by spaces, we can step through it
12190   # and add multilib dir if necessary...
12191   lt_tmp_lt_search_path_spec=
12192   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12193   # ...but if some path component already ends with the multilib dir we assume
12194   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12195   case "$lt_multi_os_dir; $lt_search_path_spec " in
12196   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12197     lt_multi_os_dir=
12198     ;;
12199   esac
12200   for lt_sys_path in $lt_search_path_spec; do
12201     if test -d "$lt_sys_path$lt_multi_os_dir"; then
12202       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12203     elif test -n "$lt_multi_os_dir"; then
12204       test -d "$lt_sys_path" && \
12205         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12206     fi
12207   done
12208   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12209 BEGIN {RS = " "; FS = "/|\n";} {
12210   lt_foo = "";
12211   lt_count = 0;
12212   for (lt_i = NF; lt_i > 0; lt_i--) {
12213     if ($lt_i != "" && $lt_i != ".") {
12214       if ($lt_i == "..") {
12215         lt_count++;
12216       } else {
12217         if (lt_count == 0) {
12218           lt_foo = "/" $lt_i lt_foo;
12219         } else {
12220           lt_count--;
12221         }
12222       }
12223     }
12224   }
12225   if (lt_foo != "") { lt_freq[lt_foo]++; }
12226   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12227 }'`
12228   # AWK program above erroneously prepends '/' to C:/dos/paths
12229   # for these hosts.
12230   case $host_os in
12231     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12232       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12233   esac
12234   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12235 else
12236   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12237 fi
12238 library_names_spec=
12239 libname_spec='lib$name'
12240 soname_spec=
12241 shrext_cmds=.so
12242 postinstall_cmds=
12243 postuninstall_cmds=
12244 finish_cmds=
12245 finish_eval=
12246 shlibpath_var=
12247 shlibpath_overrides_runpath=unknown
12248 version_type=none
12249 dynamic_linker="$host_os ld.so"
12250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12251 need_lib_prefix=unknown
12252 hardcode_into_libs=no
12253
12254 # when you set need_version to no, make sure it does not cause -set_version
12255 # flags to be left without arguments
12256 need_version=unknown
12257
12258
12259
12260 case $host_os in
12261 aix3*)
12262   version_type=linux # correct to gnu/linux during the next big refactor
12263   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12264   shlibpath_var=LIBPATH
12265
12266   # AIX 3 has no versioning support, so we append a major version to the name.
12267   soname_spec='$libname$release$shared_ext$major'
12268   ;;
12269
12270 aix[4-9]*)
12271   version_type=linux # correct to gnu/linux during the next big refactor
12272   need_lib_prefix=no
12273   need_version=no
12274   hardcode_into_libs=yes
12275   if test ia64 = "$host_cpu"; then
12276     # AIX 5 supports IA64
12277     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12278     shlibpath_var=LD_LIBRARY_PATH
12279   else
12280     # With GCC up to 2.95.x, collect2 would create an import file
12281     # for dependence libraries.  The import file would start with
12282     # the line '#! .'.  This would cause the generated library to
12283     # depend on '.', always an invalid library.  This was fixed in
12284     # development snapshots of GCC prior to 3.0.
12285     case $host_os in
12286       aix4 | aix4.[01] | aix4.[01].*)
12287       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12288            echo ' yes '
12289            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12290         :
12291       else
12292         can_build_shared=no
12293       fi
12294       ;;
12295     esac
12296     # Using Import Files as archive members, it is possible to support
12297     # filename-based versioning of shared library archives on AIX. While
12298     # this would work for both with and without runtime linking, it will
12299     # prevent static linking of such archives. So we do filename-based
12300     # shared library versioning with .so extension only, which is used
12301     # when both runtime linking and shared linking is enabled.
12302     # Unfortunately, runtime linking may impact performance, so we do
12303     # not want this to be the default eventually. Also, we use the
12304     # versioned .so libs for executables only if there is the -brtl
12305     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12306     # To allow for filename-based versioning support, we need to create
12307     # libNAME.so.V as an archive file, containing:
12308     # *) an Import File, referring to the versioned filename of the
12309     #    archive as well as the shared archive member, telling the
12310     #    bitwidth (32 or 64) of that shared object, and providing the
12311     #    list of exported symbols of that shared object, eventually
12312     #    decorated with the 'weak' keyword
12313     # *) the shared object with the F_LOADONLY flag set, to really avoid
12314     #    it being seen by the linker.
12315     # At run time we better use the real file rather than another symlink,
12316     # but for link time we create the symlink libNAME.so -> libNAME.so.V
12317
12318     case $with_aix_soname,$aix_use_runtimelinking in
12319     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12320     # soname into executable. Probably we can add versioning support to
12321     # collect2, so additional links can be useful in future.
12322     aix,yes) # traditional libtool
12323       dynamic_linker='AIX unversionable lib.so'
12324       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12325       # instead of lib<name>.a to let people know that these are not
12326       # typical AIX shared libraries.
12327       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328       ;;
12329     aix,no) # traditional AIX only
12330       dynamic_linker='AIX lib.a(lib.so.V)'
12331       # We preserve .a as extension for shared libraries through AIX4.2
12332       # and later when we are not doing run time linking.
12333       library_names_spec='$libname$release.a $libname.a'
12334       soname_spec='$libname$release$shared_ext$major'
12335       ;;
12336     svr4,*) # full svr4 only
12337       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12338       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12339       # We do not specify a path in Import Files, so LIBPATH fires.
12340       shlibpath_overrides_runpath=yes
12341       ;;
12342     *,yes) # both, prefer svr4
12343       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12344       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12345       # unpreferred sharedlib libNAME.a needs extra handling
12346       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12347       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12348       # We do not specify a path in Import Files, so LIBPATH fires.
12349       shlibpath_overrides_runpath=yes
12350       ;;
12351     *,no) # both, prefer aix
12352       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12353       library_names_spec='$libname$release.a $libname.a'
12354       soname_spec='$libname$release$shared_ext$major'
12355       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12356       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12357       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12358       ;;
12359     esac
12360     shlibpath_var=LIBPATH
12361   fi
12362   ;;
12363
12364 amigaos*)
12365   case $host_cpu in
12366   powerpc)
12367     # Since July 2007 AmigaOS4 officially supports .so libraries.
12368     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12369     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12370     ;;
12371   m68k)
12372     library_names_spec='$libname.ixlibrary $libname.a'
12373     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12374     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12375     ;;
12376   esac
12377   ;;
12378
12379 beos*)
12380   library_names_spec='$libname$shared_ext'
12381   dynamic_linker="$host_os ld.so"
12382   shlibpath_var=LIBRARY_PATH
12383   ;;
12384
12385 bsdi[45]*)
12386   version_type=linux # correct to gnu/linux during the next big refactor
12387   need_version=no
12388   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389   soname_spec='$libname$release$shared_ext$major'
12390   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12391   shlibpath_var=LD_LIBRARY_PATH
12392   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12393   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12394   # the default ld.so.conf also contains /usr/contrib/lib and
12395   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12396   # libtool to hard-code these into programs
12397   ;;
12398
12399 cygwin* | mingw* | pw32* | cegcc*)
12400   version_type=windows
12401   shrext_cmds=.dll
12402   need_version=no
12403   need_lib_prefix=no
12404
12405   case $GCC,$cc_basename in
12406   yes,*)
12407     # gcc
12408     library_names_spec='$libname.dll.a'
12409     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12410     postinstall_cmds='base_file=`basename \$file`~
12411       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12412       dldir=$destdir/`dirname \$dlpath`~
12413       test -d \$dldir || mkdir -p \$dldir~
12414       $install_prog $dir/$dlname \$dldir/$dlname~
12415       chmod a+x \$dldir/$dlname~
12416       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12417         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12418       fi'
12419     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12420       dlpath=$dir/\$dldll~
12421        $RM \$dlpath'
12422     shlibpath_overrides_runpath=yes
12423
12424     case $host_os in
12425     cygwin*)
12426       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12427       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12428
12429       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12430       ;;
12431     mingw* | cegcc*)
12432       # MinGW DLLs use traditional 'lib' prefix
12433       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12434       ;;
12435     pw32*)
12436       # pw32 DLLs use 'pw' prefix rather than 'lib'
12437       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12438       ;;
12439     esac
12440     dynamic_linker='Win32 ld.exe'
12441     ;;
12442
12443   *,cl* | *,icl*)
12444     # Native MSVC or ICC
12445     libname_spec='$name'
12446     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12447     library_names_spec='$libname.dll.lib'
12448
12449     case $build_os in
12450     mingw*)
12451       sys_lib_search_path_spec=
12452       lt_save_ifs=$IFS
12453       IFS=';'
12454       for lt_path in $LIB
12455       do
12456         IFS=$lt_save_ifs
12457         # Let DOS variable expansion print the short 8.3 style file name.
12458         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12459         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12460       done
12461       IFS=$lt_save_ifs
12462       # Convert to MSYS style.
12463       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12464       ;;
12465     cygwin*)
12466       # Convert to unix form, then to dos form, then back to unix form
12467       # but this time dos style (no spaces!) so that the unix form looks
12468       # like /cygdrive/c/PROGRA~1:/cygdr...
12469       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12470       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12471       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12472       ;;
12473     *)
12474       sys_lib_search_path_spec=$LIB
12475       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12476         # It is most probably a Windows format PATH.
12477         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12478       else
12479         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12480       fi
12481       # FIXME: find the short name or the path components, as spaces are
12482       # common. (e.g. "Program Files" -> "PROGRA~1")
12483       ;;
12484     esac
12485
12486     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12487     postinstall_cmds='base_file=`basename \$file`~
12488       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12489       dldir=$destdir/`dirname \$dlpath`~
12490       test -d \$dldir || mkdir -p \$dldir~
12491       $install_prog $dir/$dlname \$dldir/$dlname'
12492     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12493       dlpath=$dir/\$dldll~
12494        $RM \$dlpath'
12495     shlibpath_overrides_runpath=yes
12496     dynamic_linker='Win32 link.exe'
12497     ;;
12498
12499   *)
12500     # Assume MSVC and ICC wrapper
12501     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12502     dynamic_linker='Win32 ld.exe'
12503     ;;
12504   esac
12505   # FIXME: first we should search . and the directory the executable is in
12506   shlibpath_var=PATH
12507   ;;
12508
12509 darwin* | rhapsody*)
12510   dynamic_linker="$host_os dyld"
12511   version_type=darwin
12512   need_lib_prefix=no
12513   need_version=no
12514   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12515   soname_spec='$libname$release$major$shared_ext'
12516   shlibpath_overrides_runpath=yes
12517   shlibpath_var=DYLD_LIBRARY_PATH
12518   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12519
12520   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12521   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12522   ;;
12523
12524 dgux*)
12525   version_type=linux # correct to gnu/linux during the next big refactor
12526   need_lib_prefix=no
12527   need_version=no
12528   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12529   soname_spec='$libname$release$shared_ext$major'
12530   shlibpath_var=LD_LIBRARY_PATH
12531   ;;
12532
12533 freebsd* | dragonfly* | midnightbsd*)
12534   # DragonFly does not have aout.  When/if they implement a new
12535   # versioning mechanism, adjust this.
12536   if test -x /usr/bin/objformat; then
12537     objformat=`/usr/bin/objformat`
12538   else
12539     case $host_os in
12540     freebsd[23].*) objformat=aout ;;
12541     *) objformat=elf ;;
12542     esac
12543   fi
12544   version_type=freebsd-$objformat
12545   case $version_type in
12546     freebsd-elf*)
12547       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12548       soname_spec='$libname$release$shared_ext$major'
12549       need_version=no
12550       need_lib_prefix=no
12551       ;;
12552     freebsd-*)
12553       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12554       need_version=yes
12555       ;;
12556   esac
12557   shlibpath_var=LD_LIBRARY_PATH
12558   case $host_os in
12559   freebsd2.*)
12560     shlibpath_overrides_runpath=yes
12561     ;;
12562   freebsd3.[01]* | freebsdelf3.[01]*)
12563     shlibpath_overrides_runpath=yes
12564     hardcode_into_libs=yes
12565     ;;
12566   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12567   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12568     shlibpath_overrides_runpath=no
12569     hardcode_into_libs=yes
12570     ;;
12571   *) # from 4.6 on, and DragonFly
12572     shlibpath_overrides_runpath=yes
12573     hardcode_into_libs=yes
12574     ;;
12575   esac
12576   ;;
12577
12578 haiku*)
12579   version_type=linux # correct to gnu/linux during the next big refactor
12580   need_lib_prefix=no
12581   need_version=no
12582   dynamic_linker="$host_os runtime_loader"
12583   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584   soname_spec='$libname$release$shared_ext$major'
12585   shlibpath_var=LIBRARY_PATH
12586   shlibpath_overrides_runpath=no
12587   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12588   hardcode_into_libs=yes
12589   ;;
12590
12591 hpux9* | hpux10* | hpux11*)
12592   # Give a soname corresponding to the major version so that dld.sl refuses to
12593   # link against other versions.
12594   version_type=sunos
12595   need_lib_prefix=no
12596   need_version=no
12597   case $host_cpu in
12598   ia64*)
12599     shrext_cmds='.so'
12600     hardcode_into_libs=yes
12601     dynamic_linker="$host_os dld.so"
12602     shlibpath_var=LD_LIBRARY_PATH
12603     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12604     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12605     soname_spec='$libname$release$shared_ext$major'
12606     if test 32 = "$HPUX_IA64_MODE"; then
12607       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12608       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12609     else
12610       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12611       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12612     fi
12613     ;;
12614   hppa*64*)
12615     shrext_cmds='.sl'
12616     hardcode_into_libs=yes
12617     dynamic_linker="$host_os dld.sl"
12618     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12619     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12620     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12621     soname_spec='$libname$release$shared_ext$major'
12622     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12623     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12624     ;;
12625   *)
12626     shrext_cmds='.sl'
12627     dynamic_linker="$host_os dld.sl"
12628     shlibpath_var=SHLIB_PATH
12629     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12630     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12631     soname_spec='$libname$release$shared_ext$major'
12632     ;;
12633   esac
12634   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12635   postinstall_cmds='chmod 555 $lib'
12636   # or fails outright, so override atomically:
12637   install_override_mode=555
12638   ;;
12639
12640 interix[3-9]*)
12641   version_type=linux # correct to gnu/linux during the next big refactor
12642   need_lib_prefix=no
12643   need_version=no
12644   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12645   soname_spec='$libname$release$shared_ext$major'
12646   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12647   shlibpath_var=LD_LIBRARY_PATH
12648   shlibpath_overrides_runpath=no
12649   hardcode_into_libs=yes
12650   ;;
12651
12652 irix5* | irix6* | nonstopux*)
12653   case $host_os in
12654     nonstopux*) version_type=nonstopux ;;
12655     *)
12656         if test yes = "$lt_cv_prog_gnu_ld"; then
12657                 version_type=linux # correct to gnu/linux during the next big refactor
12658         else
12659                 version_type=irix
12660         fi ;;
12661   esac
12662   need_lib_prefix=no
12663   need_version=no
12664   soname_spec='$libname$release$shared_ext$major'
12665   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12666   case $host_os in
12667   irix5* | nonstopux*)
12668     libsuff= shlibsuff=
12669     ;;
12670   *)
12671     case $LD in # libtool.m4 will add one of these switches to LD
12672     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12673       libsuff= shlibsuff= libmagic=32-bit;;
12674     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12675       libsuff=32 shlibsuff=N32 libmagic=N32;;
12676     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12677       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12678     *) libsuff= shlibsuff= libmagic=never-match;;
12679     esac
12680     ;;
12681   esac
12682   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12683   shlibpath_overrides_runpath=no
12684   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12685   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12686   hardcode_into_libs=yes
12687   ;;
12688
12689 # No shared lib support for Linux oldld, aout, or coff.
12690 linux*oldld* | linux*aout* | linux*coff*)
12691   dynamic_linker=no
12692   ;;
12693
12694 linux*android*)
12695   version_type=none # Android doesn't support versioned libraries.
12696   need_lib_prefix=no
12697   need_version=no
12698   library_names_spec='$libname$release$shared_ext'
12699   soname_spec='$libname$release$shared_ext'
12700   finish_cmds=
12701   shlibpath_var=LD_LIBRARY_PATH
12702   shlibpath_overrides_runpath=yes
12703
12704   # This implies no fast_install, which is unacceptable.
12705   # Some rework will be needed to allow for fast_install
12706   # before this can be enabled.
12707   hardcode_into_libs=yes
12708
12709   dynamic_linker='Android linker'
12710   # Don't embed -rpath directories since the linker doesn't support them.
12711   hardcode_libdir_flag_spec='-L$libdir'
12712   ;;
12713
12714 # This must be glibc/ELF.
12715 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12716   version_type=linux # correct to gnu/linux during the next big refactor
12717   need_lib_prefix=no
12718   need_version=no
12719   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720   soname_spec='$libname$release$shared_ext$major'
12721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12722   shlibpath_var=LD_LIBRARY_PATH
12723   shlibpath_overrides_runpath=no
12724
12725   # Some binutils ld are patched to set DT_RUNPATH
12726   if test ${lt_cv_shlibpath_overrides_runpath+y}
12727 then :
12728   printf %s "(cached) " >&6
12729 else $as_nop
12730   lt_cv_shlibpath_overrides_runpath=no
12731     save_LDFLAGS=$LDFLAGS
12732     save_libdir=$libdir
12733     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12734          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12735     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h.  */
12737
12738 int
12739 main (void)
12740 {
12741
12742   ;
12743   return 0;
12744 }
12745 _ACEOF
12746 if ac_fn_c_try_link "$LINENO"
12747 then :
12748   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12749 then :
12750   lt_cv_shlibpath_overrides_runpath=yes
12751 fi
12752 fi
12753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12754     conftest$ac_exeext conftest.$ac_ext
12755     LDFLAGS=$save_LDFLAGS
12756     libdir=$save_libdir
12757
12758 fi
12759
12760   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12761
12762   # This implies no fast_install, which is unacceptable.
12763   # Some rework will be needed to allow for fast_install
12764   # before this can be enabled.
12765   hardcode_into_libs=yes
12766
12767   # Ideally, we could use ldconfig to report *all* directores which are
12768   # searched for libraries, however this is still not possible.  Aside from not
12769   # being certain /sbin/ldconfig is available, command
12770   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12771   # even though it is searched at run-time.  Try to do the best guess by
12772   # appending ld.so.conf contents (and includes) to the search path.
12773   if test -f /etc/ld.so.conf; then
12774     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12775     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12776   fi
12777
12778   # We used to test for /lib/ld.so.1 and disable shared libraries on
12779   # powerpc, because MkLinux only supported shared libraries with the
12780   # GNU dynamic linker.  Since this was broken with cross compilers,
12781   # most powerpc-linux boxes support dynamic linking these days and
12782   # people can always --disable-shared, the test was removed, and we
12783   # assume the GNU/Linux dynamic linker is in use.
12784   dynamic_linker='GNU/Linux ld.so'
12785   ;;
12786
12787 netbsdelf*-gnu)
12788   version_type=linux
12789   need_lib_prefix=no
12790   need_version=no
12791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12792   soname_spec='${libname}${release}${shared_ext}$major'
12793   shlibpath_var=LD_LIBRARY_PATH
12794   shlibpath_overrides_runpath=no
12795   hardcode_into_libs=yes
12796   dynamic_linker='NetBSD ld.elf_so'
12797   ;;
12798
12799 netbsd*)
12800   version_type=sunos
12801   need_lib_prefix=no
12802   need_version=no
12803   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12804     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12805     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12806     dynamic_linker='NetBSD (a.out) ld.so'
12807   else
12808     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12809     soname_spec='$libname$release$shared_ext$major'
12810     dynamic_linker='NetBSD ld.elf_so'
12811   fi
12812   shlibpath_var=LD_LIBRARY_PATH
12813   shlibpath_overrides_runpath=yes
12814   hardcode_into_libs=yes
12815   ;;
12816
12817 newsos6)
12818   version_type=linux # correct to gnu/linux during the next big refactor
12819   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12820   shlibpath_var=LD_LIBRARY_PATH
12821   shlibpath_overrides_runpath=yes
12822   ;;
12823
12824 *nto* | *qnx*)
12825   version_type=qnx
12826   need_lib_prefix=no
12827   need_version=no
12828   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12829   soname_spec='$libname$release$shared_ext$major'
12830   shlibpath_var=LD_LIBRARY_PATH
12831   shlibpath_overrides_runpath=no
12832   hardcode_into_libs=yes
12833   dynamic_linker='ldqnx.so'
12834   ;;
12835
12836 openbsd* | bitrig*)
12837   version_type=sunos
12838   sys_lib_dlsearch_path_spec=/usr/lib
12839   need_lib_prefix=no
12840   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12841     need_version=no
12842   else
12843     need_version=yes
12844   fi
12845   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12846   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12847   shlibpath_var=LD_LIBRARY_PATH
12848   shlibpath_overrides_runpath=yes
12849   ;;
12850
12851 os2*)
12852   libname_spec='$name'
12853   version_type=windows
12854   shrext_cmds=.dll
12855   need_version=no
12856   need_lib_prefix=no
12857   # OS/2 can only load a DLL with a base name of 8 characters or less.
12858   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12859     v=$($ECHO $release$versuffix | tr -d .-);
12860     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12861     $ECHO $n$v`$shared_ext'
12862   library_names_spec='${libname}_dll.$libext'
12863   dynamic_linker='OS/2 ld.exe'
12864   shlibpath_var=BEGINLIBPATH
12865   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12866   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12867   postinstall_cmds='base_file=`basename \$file`~
12868     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12869     dldir=$destdir/`dirname \$dlpath`~
12870     test -d \$dldir || mkdir -p \$dldir~
12871     $install_prog $dir/$dlname \$dldir/$dlname~
12872     chmod a+x \$dldir/$dlname~
12873     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12874       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12875     fi'
12876   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12877     dlpath=$dir/\$dldll~
12878     $RM \$dlpath'
12879   ;;
12880
12881 osf3* | osf4* | osf5*)
12882   version_type=osf
12883   need_lib_prefix=no
12884   need_version=no
12885   soname_spec='$libname$release$shared_ext$major'
12886   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12887   shlibpath_var=LD_LIBRARY_PATH
12888   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12889   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12890   ;;
12891
12892 rdos*)
12893   dynamic_linker=no
12894   ;;
12895
12896 solaris*)
12897   version_type=linux # correct to gnu/linux during the next big refactor
12898   need_lib_prefix=no
12899   need_version=no
12900   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12901   soname_spec='$libname$release$shared_ext$major'
12902   shlibpath_var=LD_LIBRARY_PATH
12903   shlibpath_overrides_runpath=yes
12904   hardcode_into_libs=yes
12905   # ldd complains unless libraries are executable
12906   postinstall_cmds='chmod +x $lib'
12907   ;;
12908
12909 sunos4*)
12910   version_type=sunos
12911   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12912   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12913   shlibpath_var=LD_LIBRARY_PATH
12914   shlibpath_overrides_runpath=yes
12915   if test yes = "$with_gnu_ld"; then
12916     need_lib_prefix=no
12917   fi
12918   need_version=yes
12919   ;;
12920
12921 sysv4 | sysv4.3*)
12922   version_type=linux # correct to gnu/linux during the next big refactor
12923   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12924   soname_spec='$libname$release$shared_ext$major'
12925   shlibpath_var=LD_LIBRARY_PATH
12926   case $host_vendor in
12927     sni)
12928       shlibpath_overrides_runpath=no
12929       need_lib_prefix=no
12930       runpath_var=LD_RUN_PATH
12931       ;;
12932     siemens)
12933       need_lib_prefix=no
12934       ;;
12935     motorola)
12936       need_lib_prefix=no
12937       need_version=no
12938       shlibpath_overrides_runpath=no
12939       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12940       ;;
12941   esac
12942   ;;
12943
12944 sysv4*MP*)
12945   if test -d /usr/nec; then
12946     version_type=linux # correct to gnu/linux during the next big refactor
12947     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12948     soname_spec='$libname$shared_ext.$major'
12949     shlibpath_var=LD_LIBRARY_PATH
12950   fi
12951   ;;
12952
12953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12954   version_type=sco
12955   need_lib_prefix=no
12956   need_version=no
12957   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12958   soname_spec='$libname$release$shared_ext$major'
12959   shlibpath_var=LD_LIBRARY_PATH
12960   shlibpath_overrides_runpath=yes
12961   hardcode_into_libs=yes
12962   if test yes = "$with_gnu_ld"; then
12963     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12964   else
12965     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12966     case $host_os in
12967       sco3.2v5*)
12968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12969         ;;
12970     esac
12971   fi
12972   sys_lib_dlsearch_path_spec='/usr/lib'
12973   ;;
12974
12975 tpf*)
12976   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12977   version_type=linux # correct to gnu/linux during the next big refactor
12978   need_lib_prefix=no
12979   need_version=no
12980   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981   shlibpath_var=LD_LIBRARY_PATH
12982   shlibpath_overrides_runpath=no
12983   hardcode_into_libs=yes
12984   ;;
12985
12986 uts4*)
12987   version_type=linux # correct to gnu/linux during the next big refactor
12988   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12989   soname_spec='$libname$release$shared_ext$major'
12990   shlibpath_var=LD_LIBRARY_PATH
12991   ;;
12992
12993 *)
12994   dynamic_linker=no
12995   ;;
12996 esac
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12998 printf "%s\n" "$dynamic_linker" >&6; }
12999 test no = "$dynamic_linker" && can_build_shared=no
13000
13001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13002 if test yes = "$GCC"; then
13003   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13004 fi
13005
13006 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13007   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13008 fi
13009
13010 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13011   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13012 fi
13013
13014 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13015 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13016
13017 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13018 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13019
13020 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13021 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13120 printf %s "checking how to hardcode library paths into programs... " >&6; }
13121 hardcode_action=
13122 if test -n "$hardcode_libdir_flag_spec" ||
13123    test -n "$runpath_var" ||
13124    test yes = "$hardcode_automatic"; then
13125
13126   # We can hardcode non-existent directories.
13127   if test no != "$hardcode_direct" &&
13128      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13129      # have to relink, otherwise we might link with an installed library
13130      # when we should be linking with a yet-to-be-installed one
13131      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13132      test no != "$hardcode_minus_L"; then
13133     # Linking always hardcodes the temporary library directory.
13134     hardcode_action=relink
13135   else
13136     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13137     hardcode_action=immediate
13138   fi
13139 else
13140   # We cannot hardcode anything, or else we can only hardcode existing
13141   # directories.
13142   hardcode_action=unsupported
13143 fi
13144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13145 printf "%s\n" "$hardcode_action" >&6; }
13146
13147 if test relink = "$hardcode_action" ||
13148    test yes = "$inherit_rpath"; then
13149   # Fast installation is not supported
13150   enable_fast_install=no
13151 elif test yes = "$shlibpath_overrides_runpath" ||
13152      test no = "$enable_shared"; then
13153   # Fast installation is not necessary
13154   enable_fast_install=needless
13155 fi
13156
13157
13158
13159
13160
13161
13162   if test yes != "$enable_dlopen"; then
13163   enable_dlopen=unknown
13164   enable_dlopen_self=unknown
13165   enable_dlopen_self_static=unknown
13166 else
13167   lt_cv_dlopen=no
13168   lt_cv_dlopen_libs=
13169
13170   case $host_os in
13171   beos*)
13172     lt_cv_dlopen=load_add_on
13173     lt_cv_dlopen_libs=
13174     lt_cv_dlopen_self=yes
13175     ;;
13176
13177   mingw* | pw32* | cegcc*)
13178     lt_cv_dlopen=LoadLibrary
13179     lt_cv_dlopen_libs=
13180     ;;
13181
13182   cygwin*)
13183     lt_cv_dlopen=dlopen
13184     lt_cv_dlopen_libs=
13185     ;;
13186
13187   darwin*)
13188     # if libdl is installed we need to link against it
13189     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13190 printf %s "checking for dlopen in -ldl... " >&6; }
13191 if test ${ac_cv_lib_dl_dlopen+y}
13192 then :
13193   printf %s "(cached) " >&6
13194 else $as_nop
13195   ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-ldl  $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199
13200 /* Override any GCC internal prototype to avoid an error.
13201    Use char because int might match the return type of a GCC
13202    builtin and then its argument prototype would still apply.  */
13203 char dlopen ();
13204 int
13205 main (void)
13206 {
13207 return dlopen ();
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"
13213 then :
13214   ac_cv_lib_dl_dlopen=yes
13215 else $as_nop
13216   ac_cv_lib_dl_dlopen=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13219     conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13221 fi
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13223 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13224 if test "x$ac_cv_lib_dl_dlopen" = xyes
13225 then :
13226   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13227 else $as_nop
13228
13229     lt_cv_dlopen=dyld
13230     lt_cv_dlopen_libs=
13231     lt_cv_dlopen_self=yes
13232
13233 fi
13234
13235     ;;
13236
13237   tpf*)
13238     # Don't try to run any link tests for TPF.  We know it's impossible
13239     # because TPF is a cross-compiler, and we know how we open DSOs.
13240     lt_cv_dlopen=dlopen
13241     lt_cv_dlopen_libs=
13242     lt_cv_dlopen_self=no
13243     ;;
13244
13245   *)
13246     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13247 if test "x$ac_cv_func_shl_load" = xyes
13248 then :
13249   lt_cv_dlopen=shl_load
13250 else $as_nop
13251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13252 printf %s "checking for shl_load in -ldld... " >&6; }
13253 if test ${ac_cv_lib_dld_shl_load+y}
13254 then :
13255   printf %s "(cached) " >&6
13256 else $as_nop
13257   ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-ldld  $LIBS"
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h.  */
13261
13262 /* Override any GCC internal prototype to avoid an error.
13263    Use char because int might match the return type of a GCC
13264    builtin and then its argument prototype would still apply.  */
13265 char shl_load ();
13266 int
13267 main (void)
13268 {
13269 return shl_load ();
13270   ;
13271   return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"
13275 then :
13276   ac_cv_lib_dld_shl_load=yes
13277 else $as_nop
13278   ac_cv_lib_dld_shl_load=no
13279 fi
13280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13281     conftest$ac_exeext conftest.$ac_ext
13282 LIBS=$ac_check_lib_save_LIBS
13283 fi
13284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13285 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13286 if test "x$ac_cv_lib_dld_shl_load" = xyes
13287 then :
13288   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13289 else $as_nop
13290   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13291 if test "x$ac_cv_func_dlopen" = xyes
13292 then :
13293   lt_cv_dlopen=dlopen
13294 else $as_nop
13295   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13296 printf %s "checking for dlopen in -ldl... " >&6; }
13297 if test ${ac_cv_lib_dl_dlopen+y}
13298 then :
13299   printf %s "(cached) " >&6
13300 else $as_nop
13301   ac_check_lib_save_LIBS=$LIBS
13302 LIBS="-ldl  $LIBS"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h.  */
13305
13306 /* Override any GCC internal prototype to avoid an error.
13307    Use char because int might match the return type of a GCC
13308    builtin and then its argument prototype would still apply.  */
13309 char dlopen ();
13310 int
13311 main (void)
13312 {
13313 return dlopen ();
13314   ;
13315   return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_link "$LINENO"
13319 then :
13320   ac_cv_lib_dl_dlopen=yes
13321 else $as_nop
13322   ac_cv_lib_dl_dlopen=no
13323 fi
13324 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13325     conftest$ac_exeext conftest.$ac_ext
13326 LIBS=$ac_check_lib_save_LIBS
13327 fi
13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13329 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13330 if test "x$ac_cv_lib_dl_dlopen" = xyes
13331 then :
13332   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13333 else $as_nop
13334   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13335 printf %s "checking for dlopen in -lsvld... " >&6; }
13336 if test ${ac_cv_lib_svld_dlopen+y}
13337 then :
13338   printf %s "(cached) " >&6
13339 else $as_nop
13340   ac_check_lib_save_LIBS=$LIBS
13341 LIBS="-lsvld  $LIBS"
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13344
13345 /* Override any GCC internal prototype to avoid an error.
13346    Use char because int might match the return type of a GCC
13347    builtin and then its argument prototype would still apply.  */
13348 char dlopen ();
13349 int
13350 main (void)
13351 {
13352 return dlopen ();
13353   ;
13354   return 0;
13355 }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"
13358 then :
13359   ac_cv_lib_svld_dlopen=yes
13360 else $as_nop
13361   ac_cv_lib_svld_dlopen=no
13362 fi
13363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13364     conftest$ac_exeext conftest.$ac_ext
13365 LIBS=$ac_check_lib_save_LIBS
13366 fi
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13368 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13369 if test "x$ac_cv_lib_svld_dlopen" = xyes
13370 then :
13371   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13372 else $as_nop
13373   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13374 printf %s "checking for dld_link in -ldld... " >&6; }
13375 if test ${ac_cv_lib_dld_dld_link+y}
13376 then :
13377   printf %s "(cached) " >&6
13378 else $as_nop
13379   ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-ldld  $LIBS"
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h.  */
13383
13384 /* Override any GCC internal prototype to avoid an error.
13385    Use char because int might match the return type of a GCC
13386    builtin and then its argument prototype would still apply.  */
13387 char dld_link ();
13388 int
13389 main (void)
13390 {
13391 return dld_link ();
13392   ;
13393   return 0;
13394 }
13395 _ACEOF
13396 if ac_fn_c_try_link "$LINENO"
13397 then :
13398   ac_cv_lib_dld_dld_link=yes
13399 else $as_nop
13400   ac_cv_lib_dld_dld_link=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13403     conftest$ac_exeext conftest.$ac_ext
13404 LIBS=$ac_check_lib_save_LIBS
13405 fi
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13407 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13408 if test "x$ac_cv_lib_dld_dld_link" = xyes
13409 then :
13410   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13411 fi
13412
13413
13414 fi
13415
13416
13417 fi
13418
13419
13420 fi
13421
13422
13423 fi
13424
13425
13426 fi
13427
13428     ;;
13429   esac
13430
13431   if test no = "$lt_cv_dlopen"; then
13432     enable_dlopen=no
13433   else
13434     enable_dlopen=yes
13435   fi
13436
13437   case $lt_cv_dlopen in
13438   dlopen)
13439     save_CPPFLAGS=$CPPFLAGS
13440     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13441
13442     save_LDFLAGS=$LDFLAGS
13443     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13444
13445     save_LIBS=$LIBS
13446     LIBS="$lt_cv_dlopen_libs $LIBS"
13447
13448     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13449 printf %s "checking whether a program can dlopen itself... " >&6; }
13450 if test ${lt_cv_dlopen_self+y}
13451 then :
13452   printf %s "(cached) " >&6
13453 else $as_nop
13454           if test yes = "$cross_compiling"; then :
13455   lt_cv_dlopen_self=cross
13456 else
13457   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13458   lt_status=$lt_dlunknown
13459   cat > conftest.$ac_ext <<_LT_EOF
13460 #line $LINENO "configure"
13461 #include "confdefs.h"
13462
13463 #if HAVE_DLFCN_H
13464 #include <dlfcn.h>
13465 #endif
13466
13467 #include <stdio.h>
13468
13469 #ifdef RTLD_GLOBAL
13470 #  define LT_DLGLOBAL           RTLD_GLOBAL
13471 #else
13472 #  ifdef DL_GLOBAL
13473 #    define LT_DLGLOBAL         DL_GLOBAL
13474 #  else
13475 #    define LT_DLGLOBAL         0
13476 #  endif
13477 #endif
13478
13479 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13480    find out it does not work in some platform. */
13481 #ifndef LT_DLLAZY_OR_NOW
13482 #  ifdef RTLD_LAZY
13483 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13484 #  else
13485 #    ifdef DL_LAZY
13486 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13487 #    else
13488 #      ifdef RTLD_NOW
13489 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13490 #      else
13491 #        ifdef DL_NOW
13492 #          define LT_DLLAZY_OR_NOW      DL_NOW
13493 #        else
13494 #          define LT_DLLAZY_OR_NOW      0
13495 #        endif
13496 #      endif
13497 #    endif
13498 #  endif
13499 #endif
13500
13501 /* When -fvisibility=hidden is used, assume the code has been annotated
13502    correspondingly for the symbols needed.  */
13503 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13504 int fnord () __attribute__((visibility("default")));
13505 #endif
13506
13507 int fnord () { return 42; }
13508 int main ()
13509 {
13510   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13511   int status = $lt_dlunknown;
13512
13513   if (self)
13514     {
13515       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13516       else
13517         {
13518           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13519           else puts (dlerror ());
13520         }
13521       /* dlclose (self); */
13522     }
13523   else
13524     puts (dlerror ());
13525
13526   return status;
13527 }
13528 _LT_EOF
13529   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13530   (eval $ac_link) 2>&5
13531   ac_status=$?
13532   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13533   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13534     (./conftest; exit; ) >&5 2>/dev/null
13535     lt_status=$?
13536     case x$lt_status in
13537       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13538       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13539       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13540     esac
13541   else :
13542     # compilation failed
13543     lt_cv_dlopen_self=no
13544   fi
13545 fi
13546 rm -fr conftest*
13547
13548
13549 fi
13550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13551 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13552
13553     if test yes = "$lt_cv_dlopen_self"; then
13554       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13555       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13556 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13557 if test ${lt_cv_dlopen_self_static+y}
13558 then :
13559   printf %s "(cached) " >&6
13560 else $as_nop
13561           if test yes = "$cross_compiling"; then :
13562   lt_cv_dlopen_self_static=cross
13563 else
13564   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13565   lt_status=$lt_dlunknown
13566   cat > conftest.$ac_ext <<_LT_EOF
13567 #line $LINENO "configure"
13568 #include "confdefs.h"
13569
13570 #if HAVE_DLFCN_H
13571 #include <dlfcn.h>
13572 #endif
13573
13574 #include <stdio.h>
13575
13576 #ifdef RTLD_GLOBAL
13577 #  define LT_DLGLOBAL           RTLD_GLOBAL
13578 #else
13579 #  ifdef DL_GLOBAL
13580 #    define LT_DLGLOBAL         DL_GLOBAL
13581 #  else
13582 #    define LT_DLGLOBAL         0
13583 #  endif
13584 #endif
13585
13586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13587    find out it does not work in some platform. */
13588 #ifndef LT_DLLAZY_OR_NOW
13589 #  ifdef RTLD_LAZY
13590 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13591 #  else
13592 #    ifdef DL_LAZY
13593 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13594 #    else
13595 #      ifdef RTLD_NOW
13596 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13597 #      else
13598 #        ifdef DL_NOW
13599 #          define LT_DLLAZY_OR_NOW      DL_NOW
13600 #        else
13601 #          define LT_DLLAZY_OR_NOW      0
13602 #        endif
13603 #      endif
13604 #    endif
13605 #  endif
13606 #endif
13607
13608 /* When -fvisibility=hidden is used, assume the code has been annotated
13609    correspondingly for the symbols needed.  */
13610 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13611 int fnord () __attribute__((visibility("default")));
13612 #endif
13613
13614 int fnord () { return 42; }
13615 int main ()
13616 {
13617   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13618   int status = $lt_dlunknown;
13619
13620   if (self)
13621     {
13622       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13623       else
13624         {
13625           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13626           else puts (dlerror ());
13627         }
13628       /* dlclose (self); */
13629     }
13630   else
13631     puts (dlerror ());
13632
13633   return status;
13634 }
13635 _LT_EOF
13636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13637   (eval $ac_link) 2>&5
13638   ac_status=$?
13639   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13641     (./conftest; exit; ) >&5 2>/dev/null
13642     lt_status=$?
13643     case x$lt_status in
13644       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13645       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13646       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13647     esac
13648   else :
13649     # compilation failed
13650     lt_cv_dlopen_self_static=no
13651   fi
13652 fi
13653 rm -fr conftest*
13654
13655
13656 fi
13657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13658 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13659     fi
13660
13661     CPPFLAGS=$save_CPPFLAGS
13662     LDFLAGS=$save_LDFLAGS
13663     LIBS=$save_LIBS
13664     ;;
13665   esac
13666
13667   case $lt_cv_dlopen_self in
13668   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13669   *) enable_dlopen_self=unknown ;;
13670   esac
13671
13672   case $lt_cv_dlopen_self_static in
13673   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13674   *) enable_dlopen_self_static=unknown ;;
13675   esac
13676 fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694 striplib=
13695 old_striplib=
13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13697 printf %s "checking whether stripping libraries is possible... " >&6; }
13698 if test -z "$STRIP"; then
13699   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13700 printf "%s\n" "no" >&6; }
13701 else
13702   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13703     old_striplib="$STRIP --strip-debug"
13704     striplib="$STRIP --strip-unneeded"
13705     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13706 printf "%s\n" "yes" >&6; }
13707   else
13708     case $host_os in
13709     darwin*)
13710       # FIXME - insert some real tests, host_os isn't really good enough
13711       striplib="$STRIP -x"
13712       old_striplib="$STRIP -S"
13713       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 printf "%s\n" "yes" >&6; }
13715       ;;
13716     freebsd*)
13717       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13718         old_striplib="$STRIP --strip-debug"
13719         striplib="$STRIP --strip-unneeded"
13720         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13721 printf "%s\n" "yes" >&6; }
13722       else
13723         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13724 printf "%s\n" "no" >&6; }
13725       fi
13726       ;;
13727     *)
13728       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13729 printf "%s\n" "no" >&6; }
13730       ;;
13731     esac
13732   fi
13733 fi
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746   # Report what library types will actually be built
13747   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13748 printf %s "checking if libtool supports shared libraries... " >&6; }
13749   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13750 printf "%s\n" "$can_build_shared" >&6; }
13751
13752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13753 printf %s "checking whether to build shared libraries... " >&6; }
13754   test no = "$can_build_shared" && enable_shared=no
13755
13756   # On AIX, shared libraries and static libraries use the same namespace, and
13757   # are all built from PIC.
13758   case $host_os in
13759   aix3*)
13760     test yes = "$enable_shared" && enable_static=no
13761     if test -n "$RANLIB"; then
13762       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13763       postinstall_cmds='$RANLIB $lib'
13764     fi
13765     ;;
13766
13767   aix[4-9]*)
13768     if test ia64 != "$host_cpu"; then
13769       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13770       yes,aix,yes) ;;                   # shared object as lib.so file only
13771       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13772       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13773       esac
13774     fi
13775     ;;
13776   esac
13777   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13778 printf "%s\n" "$enable_shared" >&6; }
13779
13780   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13781 printf %s "checking whether to build static libraries... " >&6; }
13782   # Make sure either enable_shared or enable_static is yes.
13783   test yes = "$enable_shared" || enable_static=yes
13784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13785 printf "%s\n" "$enable_static" >&6; }
13786
13787
13788
13789
13790 fi
13791 ac_ext=c
13792 ac_cpp='$CPP $CPPFLAGS'
13793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13796
13797 CC=$lt_save_CC
13798
13799       if test -n "$CXX" && ( test no != "$CXX" &&
13800     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13801     (test g++ != "$CXX"))); then
13802   ac_ext=cpp
13803 ac_cpp='$CXXCPP $CPPFLAGS'
13804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13808 printf %s "checking how to run the C++ preprocessor... " >&6; }
13809 if test -z "$CXXCPP"; then
13810   if test ${ac_cv_prog_CXXCPP+y}
13811 then :
13812   printf %s "(cached) " >&6
13813 else $as_nop
13814       # Double quotes because $CXX needs to be expanded
13815     for CXXCPP in "$CXX -E" cpp /lib/cpp
13816     do
13817       ac_preproc_ok=false
13818 for ac_cxx_preproc_warn_flag in '' yes
13819 do
13820   # Use a header file that comes with gcc, so configuring glibc
13821   # with a fresh cross-compiler works.
13822   # On the NeXT, cc -E runs the code through the compiler's parser,
13823   # not just through cpp. "Syntax error" is here to catch this case.
13824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826 #include <limits.h>
13827                      Syntax error
13828 _ACEOF
13829 if ac_fn_cxx_try_cpp "$LINENO"
13830 then :
13831
13832 else $as_nop
13833   # Broken: fails on valid input.
13834 continue
13835 fi
13836 rm -f conftest.err conftest.i conftest.$ac_ext
13837
13838   # OK, works on sane cases.  Now check whether nonexistent headers
13839   # can be detected and how.
13840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h.  */
13842 #include <ac_nonexistent.h>
13843 _ACEOF
13844 if ac_fn_cxx_try_cpp "$LINENO"
13845 then :
13846   # Broken: success on invalid input.
13847 continue
13848 else $as_nop
13849   # Passes both tests.
13850 ac_preproc_ok=:
13851 break
13852 fi
13853 rm -f conftest.err conftest.i conftest.$ac_ext
13854
13855 done
13856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13857 rm -f conftest.i conftest.err conftest.$ac_ext
13858 if $ac_preproc_ok
13859 then :
13860   break
13861 fi
13862
13863     done
13864     ac_cv_prog_CXXCPP=$CXXCPP
13865
13866 fi
13867   CXXCPP=$ac_cv_prog_CXXCPP
13868 else
13869   ac_cv_prog_CXXCPP=$CXXCPP
13870 fi
13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13872 printf "%s\n" "$CXXCPP" >&6; }
13873 ac_preproc_ok=false
13874 for ac_cxx_preproc_warn_flag in '' yes
13875 do
13876   # Use a header file that comes with gcc, so configuring glibc
13877   # with a fresh cross-compiler works.
13878   # On the NeXT, cc -E runs the code through the compiler's parser,
13879   # not just through cpp. "Syntax error" is here to catch this case.
13880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h.  */
13882 #include <limits.h>
13883                      Syntax error
13884 _ACEOF
13885 if ac_fn_cxx_try_cpp "$LINENO"
13886 then :
13887
13888 else $as_nop
13889   # Broken: fails on valid input.
13890 continue
13891 fi
13892 rm -f conftest.err conftest.i conftest.$ac_ext
13893
13894   # OK, works on sane cases.  Now check whether nonexistent headers
13895   # can be detected and how.
13896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13897 /* end confdefs.h.  */
13898 #include <ac_nonexistent.h>
13899 _ACEOF
13900 if ac_fn_cxx_try_cpp "$LINENO"
13901 then :
13902   # Broken: success on invalid input.
13903 continue
13904 else $as_nop
13905   # Passes both tests.
13906 ac_preproc_ok=:
13907 break
13908 fi
13909 rm -f conftest.err conftest.i conftest.$ac_ext
13910
13911 done
13912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13913 rm -f conftest.i conftest.err conftest.$ac_ext
13914 if $ac_preproc_ok
13915 then :
13916
13917 else $as_nop
13918   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13919 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13920 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13921 See \`config.log' for more details" "$LINENO" 5; }
13922 fi
13923
13924 ac_ext=c
13925 ac_cpp='$CPP $CPPFLAGS'
13926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13929
13930 else
13931   _lt_caught_CXX_error=yes
13932 fi
13933
13934 ac_ext=cpp
13935 ac_cpp='$CXXCPP $CPPFLAGS'
13936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13939
13940 archive_cmds_need_lc_CXX=no
13941 allow_undefined_flag_CXX=
13942 always_export_symbols_CXX=no
13943 archive_expsym_cmds_CXX=
13944 compiler_needs_object_CXX=no
13945 export_dynamic_flag_spec_CXX=
13946 hardcode_direct_CXX=no
13947 hardcode_direct_absolute_CXX=no
13948 hardcode_libdir_flag_spec_CXX=
13949 hardcode_libdir_separator_CXX=
13950 hardcode_minus_L_CXX=no
13951 hardcode_shlibpath_var_CXX=unsupported
13952 hardcode_automatic_CXX=no
13953 inherit_rpath_CXX=no
13954 module_cmds_CXX=
13955 module_expsym_cmds_CXX=
13956 link_all_deplibs_CXX=unknown
13957 old_archive_cmds_CXX=$old_archive_cmds
13958 reload_flag_CXX=$reload_flag
13959 reload_cmds_CXX=$reload_cmds
13960 no_undefined_flag_CXX=
13961 whole_archive_flag_spec_CXX=
13962 enable_shared_with_static_runtimes_CXX=no
13963
13964 # Source file extension for C++ test sources.
13965 ac_ext=cpp
13966
13967 # Object file extension for compiled C++ test sources.
13968 objext=o
13969 objext_CXX=$objext
13970
13971 # No sense in running all these tests if we already determined that
13972 # the CXX compiler isn't working.  Some variables (like enable_shared)
13973 # are currently assumed to apply to all compilers on this platform,
13974 # and will be corrupted by setting them based on a non-working compiler.
13975 if test yes != "$_lt_caught_CXX_error"; then
13976   # Code to be used in simple compile tests
13977   lt_simple_compile_test_code="int some_variable = 0;"
13978
13979   # Code to be used in simple link tests
13980   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13981
13982   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13983
13984
13985
13986
13987
13988
13989 # If no C compiler was specified, use CC.
13990 LTCC=${LTCC-"$CC"}
13991
13992 # If no C compiler flags were specified, use CFLAGS.
13993 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13994
13995 # Allow CC to be a program name with arguments.
13996 compiler=$CC
13997
13998
13999   # save warnings/boilerplate of simple test code
14000   ac_outfile=conftest.$ac_objext
14001 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14002 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14003 _lt_compiler_boilerplate=`cat conftest.err`
14004 $RM conftest*
14005
14006   ac_outfile=conftest.$ac_objext
14007 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14008 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14009 _lt_linker_boilerplate=`cat conftest.err`
14010 $RM -r conftest*
14011
14012
14013   # Allow CC to be a program name with arguments.
14014   lt_save_CC=$CC
14015   lt_save_CFLAGS=$CFLAGS
14016   lt_save_LD=$LD
14017   lt_save_GCC=$GCC
14018   GCC=$GXX
14019   lt_save_with_gnu_ld=$with_gnu_ld
14020   lt_save_path_LD=$lt_cv_path_LD
14021   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14022     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14023   else
14024     $as_unset lt_cv_prog_gnu_ld
14025   fi
14026   if test -n "${lt_cv_path_LDCXX+set}"; then
14027     lt_cv_path_LD=$lt_cv_path_LDCXX
14028   else
14029     $as_unset lt_cv_path_LD
14030   fi
14031   test -z "${LDCXX+set}" || LD=$LDCXX
14032   CC=${CXX-"c++"}
14033   CFLAGS=$CXXFLAGS
14034   compiler=$CC
14035   compiler_CXX=$CC
14036   func_cc_basename $compiler
14037 cc_basename=$func_cc_basename_result
14038
14039
14040   if test -n "$compiler"; then
14041     # We don't want -fno-exception when compiling C++ code, so set the
14042     # no_builtin_flag separately
14043     if test yes = "$GXX"; then
14044       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14045     else
14046       lt_prog_compiler_no_builtin_flag_CXX=
14047     fi
14048
14049     if test yes = "$GXX"; then
14050       # Set up default GNU C++ configuration
14051
14052
14053
14054 # Check whether --with-gnu-ld was given.
14055 if test ${with_gnu_ld+y}
14056 then :
14057   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14058 else $as_nop
14059   with_gnu_ld=no
14060 fi
14061
14062 ac_prog=ld
14063 if test yes = "$GCC"; then
14064   # Check if gcc -print-prog-name=ld gives a path.
14065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14066 printf %s "checking for ld used by $CC... " >&6; }
14067   case $host in
14068   *-*-mingw*)
14069     # gcc leaves a trailing carriage return, which upsets mingw
14070     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14071   *)
14072     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14073   esac
14074   case $ac_prog in
14075     # Accept absolute paths.
14076     [\\/]* | ?:[\\/]*)
14077       re_direlt='/[^/][^/]*/\.\./'
14078       # Canonicalize the pathname of ld
14079       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14080       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14081         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14082       done
14083       test -z "$LD" && LD=$ac_prog
14084       ;;
14085   "")
14086     # If it fails, then pretend we aren't using GCC.
14087     ac_prog=ld
14088     ;;
14089   *)
14090     # If it is relative, then search for the first ld in PATH.
14091     with_gnu_ld=unknown
14092     ;;
14093   esac
14094 elif test yes = "$with_gnu_ld"; then
14095   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14096 printf %s "checking for GNU ld... " >&6; }
14097 else
14098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14099 printf %s "checking for non-GNU ld... " >&6; }
14100 fi
14101 if test ${lt_cv_path_LD+y}
14102 then :
14103   printf %s "(cached) " >&6
14104 else $as_nop
14105   if test -z "$LD"; then
14106   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14107   for ac_dir in $PATH; do
14108     IFS=$lt_save_ifs
14109     test -z "$ac_dir" && ac_dir=.
14110     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14111       lt_cv_path_LD=$ac_dir/$ac_prog
14112       # Check to see if the program is GNU ld.  I'd rather use --version,
14113       # but apparently some variants of GNU ld only accept -v.
14114       # Break only if it was the GNU/non-GNU ld that we prefer.
14115       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14116       *GNU* | *'with BFD'*)
14117         test no != "$with_gnu_ld" && break
14118         ;;
14119       *)
14120         test yes != "$with_gnu_ld" && break
14121         ;;
14122       esac
14123     fi
14124   done
14125   IFS=$lt_save_ifs
14126 else
14127   lt_cv_path_LD=$LD # Let the user override the test with a path.
14128 fi
14129 fi
14130
14131 LD=$lt_cv_path_LD
14132 if test -n "$LD"; then
14133   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14134 printf "%s\n" "$LD" >&6; }
14135 else
14136   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14137 printf "%s\n" "no" >&6; }
14138 fi
14139 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14141 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14142 if test ${lt_cv_prog_gnu_ld+y}
14143 then :
14144   printf %s "(cached) " >&6
14145 else $as_nop
14146   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14147 case `$LD -v 2>&1 </dev/null` in
14148 *GNU* | *'with BFD'*)
14149   lt_cv_prog_gnu_ld=yes
14150   ;;
14151 *)
14152   lt_cv_prog_gnu_ld=no
14153   ;;
14154 esac
14155 fi
14156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14157 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14158 with_gnu_ld=$lt_cv_prog_gnu_ld
14159
14160
14161
14162
14163
14164
14165
14166       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14167       # archiving commands below assume that GNU ld is being used.
14168       if test yes = "$with_gnu_ld"; then
14169         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14170         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14171
14172         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14173         export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14174
14175         # If archive_cmds runs LD, not CC, wlarc should be empty
14176         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14177         #     investigate it a little bit more. (MM)
14178         wlarc='$wl'
14179
14180         # ancient GNU ld didn't support --whole-archive et. al.
14181         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14182           $GREP 'no-whole-archive' > /dev/null; then
14183           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14184         else
14185           whole_archive_flag_spec_CXX=
14186         fi
14187       else
14188         with_gnu_ld=no
14189         wlarc=
14190
14191         # A generic and very simple default shared library creation
14192         # command for GNU C++ for the case where it uses the native
14193         # linker, instead of GNU ld.  If possible, this setting should
14194         # overridden to take advantage of the native linker features on
14195         # the platform it is being used on.
14196         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14197       fi
14198
14199       # Commands to make compiler produce verbose output that lists
14200       # what "hidden" libraries, object files and flags are used when
14201       # linking a shared library.
14202       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
14203
14204     else
14205       GXX=no
14206       with_gnu_ld=no
14207       wlarc=
14208     fi
14209
14210     # PORTME: fill in a description of your system's C++ link characteristics
14211     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14212 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14213     ld_shlibs_CXX=yes
14214     case $host_os in
14215       aix3*)
14216         # FIXME: insert proper C++ library support
14217         ld_shlibs_CXX=no
14218         ;;
14219       aix[4-9]*)
14220         if test ia64 = "$host_cpu"; then
14221           # On IA64, the linker does run time linking by default, so we don't
14222           # have to do anything special.
14223           aix_use_runtimelinking=no
14224           exp_sym_flag='-Bexport'
14225           no_entry_flag=
14226         else
14227           aix_use_runtimelinking=no
14228
14229           # Test if we are trying to use run time linking or normal
14230           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14231           # have runtime linking enabled, and use it for executables.
14232           # For shared libraries, we enable/disable runtime linking
14233           # depending on the kind of the shared library created -
14234           # when "with_aix_soname,aix_use_runtimelinking" is:
14235           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14236           # "aix,yes"  lib.so          shared, rtl:yes, for executables
14237           #            lib.a           static archive
14238           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14239           #            lib.a(lib.so.V) shared, rtl:no,  for executables
14240           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14241           #            lib.a(lib.so.V) shared, rtl:no
14242           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14243           #            lib.a           static archive
14244           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14245             for ld_flag in $LDFLAGS; do
14246               case $ld_flag in
14247               *-brtl*)
14248                 aix_use_runtimelinking=yes
14249                 break
14250                 ;;
14251               esac
14252             done
14253             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14254               # With aix-soname=svr4, we create the lib.so.V shared archives only,
14255               # so we don't have lib.a shared libs to link our executables.
14256               # We have to force runtime linking in this case.
14257               aix_use_runtimelinking=yes
14258               LDFLAGS="$LDFLAGS -Wl,-brtl"
14259             fi
14260             ;;
14261           esac
14262
14263           exp_sym_flag='-bexport'
14264           no_entry_flag='-bnoentry'
14265         fi
14266
14267         # When large executables or shared objects are built, AIX ld can
14268         # have problems creating the table of contents.  If linking a library
14269         # or program results in "error TOC overflow" add -mminimal-toc to
14270         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14271         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14272
14273         archive_cmds_CXX=''
14274         hardcode_direct_CXX=yes
14275         hardcode_direct_absolute_CXX=yes
14276         hardcode_libdir_separator_CXX=':'
14277         link_all_deplibs_CXX=yes
14278         file_list_spec_CXX='$wl-f,'
14279         case $with_aix_soname,$aix_use_runtimelinking in
14280         aix,*) ;;       # no import file
14281         svr4,* | *,yes) # use import file
14282           # The Import File defines what to hardcode.
14283           hardcode_direct_CXX=no
14284           hardcode_direct_absolute_CXX=no
14285           ;;
14286         esac
14287
14288         if test yes = "$GXX"; then
14289           case $host_os in aix4.[012]|aix4.[012].*)
14290           # We only want to do this on AIX 4.2 and lower, the check
14291           # below for broken collect2 doesn't work under 4.3+
14292           collect2name=`$CC -print-prog-name=collect2`
14293           if test -f "$collect2name" &&
14294              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14295           then
14296             # We have reworked collect2
14297             :
14298           else
14299             # We have old collect2
14300             hardcode_direct_CXX=unsupported
14301             # It fails to find uninstalled libraries when the uninstalled
14302             # path is not listed in the libpath.  Setting hardcode_minus_L
14303             # to unsupported forces relinking
14304             hardcode_minus_L_CXX=yes
14305             hardcode_libdir_flag_spec_CXX='-L$libdir'
14306             hardcode_libdir_separator_CXX=
14307           fi
14308           esac
14309           shared_flag='-shared'
14310           if test yes = "$aix_use_runtimelinking"; then
14311             shared_flag=$shared_flag' $wl-G'
14312           fi
14313           # Need to ensure runtime linking is disabled for the traditional
14314           # shared library, or the linker may eventually find shared libraries
14315           # /with/ Import File - we do not want to mix them.
14316           shared_flag_aix='-shared'
14317           shared_flag_svr4='-shared $wl-G'
14318         else
14319           # not using gcc
14320           if test ia64 = "$host_cpu"; then
14321           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14322           # chokes on -Wl,-G. The following line is correct:
14323           shared_flag='-G'
14324           else
14325             if test yes = "$aix_use_runtimelinking"; then
14326               shared_flag='$wl-G'
14327             else
14328               shared_flag='$wl-bM:SRE'
14329             fi
14330             shared_flag_aix='$wl-bM:SRE'
14331             shared_flag_svr4='$wl-G'
14332           fi
14333         fi
14334
14335         export_dynamic_flag_spec_CXX='$wl-bexpall'
14336         # It seems that -bexpall does not export symbols beginning with
14337         # underscore (_), so it is better to generate a list of symbols to
14338         # export.
14339         always_export_symbols_CXX=yes
14340         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14341           # Warning - without using the other runtime loading flags (-brtl),
14342           # -berok will link without error, but may produce a broken library.
14343           # The "-G" linker flag allows undefined symbols.
14344           no_undefined_flag_CXX='-bernotok'
14345           # Determine the default libpath from the value encoded in an empty
14346           # executable.
14347           if test set = "${lt_cv_aix_libpath+set}"; then
14348   aix_libpath=$lt_cv_aix_libpath
14349 else
14350   if test ${lt_cv_aix_libpath__CXX+y}
14351 then :
14352   printf %s "(cached) " >&6
14353 else $as_nop
14354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h.  */
14356
14357 int
14358 main (void)
14359 {
14360
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_cxx_try_link "$LINENO"
14366 then :
14367
14368   lt_aix_libpath_sed='
14369       /Import File Strings/,/^$/ {
14370           /^0/ {
14371               s/^0  *\([^ ]*\) *$/\1/
14372               p
14373           }
14374       }'
14375   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14376   # Check for a 64-bit object if we didn't find anything.
14377   if test -z "$lt_cv_aix_libpath__CXX"; then
14378     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14379   fi
14380 fi
14381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14382     conftest$ac_exeext conftest.$ac_ext
14383   if test -z "$lt_cv_aix_libpath__CXX"; then
14384     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14385   fi
14386
14387 fi
14388
14389   aix_libpath=$lt_cv_aix_libpath__CXX
14390 fi
14391
14392           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14393
14394           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
14395         else
14396           if test ia64 = "$host_cpu"; then
14397             hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14398             allow_undefined_flag_CXX="-z nodefs"
14399             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"
14400           else
14401             # Determine the default libpath from the value encoded in an
14402             # empty executable.
14403             if test set = "${lt_cv_aix_libpath+set}"; then
14404   aix_libpath=$lt_cv_aix_libpath
14405 else
14406   if test ${lt_cv_aix_libpath__CXX+y}
14407 then :
14408   printf %s "(cached) " >&6
14409 else $as_nop
14410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h.  */
14412
14413 int
14414 main (void)
14415 {
14416
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_cxx_try_link "$LINENO"
14422 then :
14423
14424   lt_aix_libpath_sed='
14425       /Import File Strings/,/^$/ {
14426           /^0/ {
14427               s/^0  *\([^ ]*\) *$/\1/
14428               p
14429           }
14430       }'
14431   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14432   # Check for a 64-bit object if we didn't find anything.
14433   if test -z "$lt_cv_aix_libpath__CXX"; then
14434     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14435   fi
14436 fi
14437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14438     conftest$ac_exeext conftest.$ac_ext
14439   if test -z "$lt_cv_aix_libpath__CXX"; then
14440     lt_cv_aix_libpath__CXX=/usr/lib:/lib
14441   fi
14442
14443 fi
14444
14445   aix_libpath=$lt_cv_aix_libpath__CXX
14446 fi
14447
14448             hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14449             # Warning - without using the other run time loading flags,
14450             # -berok will link without error, but may produce a broken library.
14451             no_undefined_flag_CXX=' $wl-bernotok'
14452             allow_undefined_flag_CXX=' $wl-berok'
14453             if test yes = "$with_gnu_ld"; then
14454               # We only use this code for GNU lds that support --whole-archive.
14455               whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14456             else
14457               # Exported symbols can be pulled into shared objects from archives
14458               whole_archive_flag_spec_CXX='$convenience'
14459             fi
14460             archive_cmds_need_lc_CXX=yes
14461             archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14462             # -brtl affects multiple linker settings, -berok does not and is overridden later
14463             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14464             if test svr4 != "$with_aix_soname"; then
14465               # This is similar to how AIX traditionally builds its shared
14466               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14467               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
14468             fi
14469             if test aix != "$with_aix_soname"; then
14470               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
14471             else
14472               # used by -dlpreopen to get the symbols
14473               archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14474             fi
14475             archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14476           fi
14477         fi
14478         ;;
14479
14480       beos*)
14481         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14482           allow_undefined_flag_CXX=unsupported
14483           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14484           # support --undefined.  This deserves some investigation.  FIXME
14485           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14486         else
14487           ld_shlibs_CXX=no
14488         fi
14489         ;;
14490
14491       chorus*)
14492         case $cc_basename in
14493           *)
14494           # FIXME: insert proper C++ library support
14495           ld_shlibs_CXX=no
14496           ;;
14497         esac
14498         ;;
14499
14500       cygwin* | mingw* | pw32* | cegcc*)
14501         case $GXX,$cc_basename in
14502         ,cl* | no,cl* | ,icl* | no,icl*)
14503           # Native MSVC or ICC
14504           # hardcode_libdir_flag_spec is actually meaningless, as there is
14505           # no search path for DLLs.
14506           hardcode_libdir_flag_spec_CXX=' '
14507           allow_undefined_flag_CXX=unsupported
14508           always_export_symbols_CXX=yes
14509           file_list_spec_CXX='@'
14510           # Tell ltmain to make .lib files, not .a files.
14511           libext=lib
14512           # Tell ltmain to make .dll files, not .so files.
14513           shrext_cmds=.dll
14514           # FIXME: Setting linknames here is a bad hack.
14515           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14516           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14517               cp "$export_symbols" "$output_objdir/$soname.def";
14518               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14519             else
14520               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14521             fi~
14522             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14523             linknames='
14524           # The linker will not automatically build a static lib if we build a DLL.
14525           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14526           enable_shared_with_static_runtimes_CXX=yes
14527           # Don't use ranlib
14528           old_postinstall_cmds_CXX='chmod 644 $oldlib'
14529           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14530             lt_tool_outputfile="@TOOL_OUTPUT@"~
14531             case $lt_outputfile in
14532               *.exe|*.EXE) ;;
14533               *)
14534                 lt_outputfile=$lt_outputfile.exe
14535                 lt_tool_outputfile=$lt_tool_outputfile.exe
14536                 ;;
14537             esac~
14538             func_to_tool_file "$lt_outputfile"~
14539             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14540               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14541               $RM "$lt_outputfile.manifest";
14542             fi'
14543           ;;
14544         *)
14545           # g++
14546           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14547           # as there is no search path for DLLs.
14548           hardcode_libdir_flag_spec_CXX='-L$libdir'
14549           export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14550           allow_undefined_flag_CXX=unsupported
14551           always_export_symbols_CXX=no
14552           enable_shared_with_static_runtimes_CXX=yes
14553
14554           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14555             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'
14556             # If the export-symbols file already is a .def file, use it as
14557             # is; otherwise, prepend EXPORTS...
14558             archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14559               cp $export_symbols $output_objdir/$soname.def;
14560             else
14561               echo EXPORTS > $output_objdir/$soname.def;
14562               cat $export_symbols >> $output_objdir/$soname.def;
14563             fi~
14564             $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'
14565           else
14566             ld_shlibs_CXX=no
14567           fi
14568           ;;
14569         esac
14570         ;;
14571       darwin* | rhapsody*)
14572
14573
14574   archive_cmds_need_lc_CXX=no
14575   hardcode_direct_CXX=no
14576   hardcode_automatic_CXX=yes
14577   hardcode_shlibpath_var_CXX=unsupported
14578   if test yes = "$lt_cv_ld_force_load"; then
14579     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14580
14581   else
14582     whole_archive_flag_spec_CXX=''
14583   fi
14584   link_all_deplibs_CXX=yes
14585   allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14586   case $cc_basename in
14587      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14588      *) _lt_dar_can_shared=$GCC ;;
14589   esac
14590   if test yes = "$_lt_dar_can_shared"; then
14591     output_verbose_link_cmd=func_echo_all
14592     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"
14593     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14594     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"
14595     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"
14596        if test yes != "$lt_cv_apple_cc_single_mod"; then
14597       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"
14598       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"
14599     fi
14600
14601   else
14602   ld_shlibs_CXX=no
14603   fi
14604
14605         ;;
14606
14607       os2*)
14608         hardcode_libdir_flag_spec_CXX='-L$libdir'
14609         hardcode_minus_L_CXX=yes
14610         allow_undefined_flag_CXX=unsupported
14611         shrext_cmds=.dll
14612         archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14613           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14614           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14615           $ECHO EXPORTS >> $output_objdir/$libname.def~
14616           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14617           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14618           emximp -o $lib $output_objdir/$libname.def'
14619         archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14620           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14621           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14622           $ECHO EXPORTS >> $output_objdir/$libname.def~
14623           prefix_cmds="$SED"~
14624           if test EXPORTS = "`$SED 1q $export_symbols`"; then
14625             prefix_cmds="$prefix_cmds -e 1d";
14626           fi~
14627           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14628           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14629           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14630           emximp -o $lib $output_objdir/$libname.def'
14631         old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14632         enable_shared_with_static_runtimes_CXX=yes
14633         file_list_spec_CXX='@'
14634         ;;
14635
14636       dgux*)
14637         case $cc_basename in
14638           ec++*)
14639             # FIXME: insert proper C++ library support
14640             ld_shlibs_CXX=no
14641             ;;
14642           ghcx*)
14643             # Green Hills C++ Compiler
14644             # FIXME: insert proper C++ library support
14645             ld_shlibs_CXX=no
14646             ;;
14647           *)
14648             # FIXME: insert proper C++ library support
14649             ld_shlibs_CXX=no
14650             ;;
14651         esac
14652         ;;
14653
14654       freebsd2.*)
14655         # C++ shared libraries reported to be fairly broken before
14656         # switch to ELF
14657         ld_shlibs_CXX=no
14658         ;;
14659
14660       freebsd-elf*)
14661         archive_cmds_need_lc_CXX=no
14662         ;;
14663
14664       freebsd* | dragonfly* | midnightbsd*)
14665         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14666         # conventions
14667         ld_shlibs_CXX=yes
14668         ;;
14669
14670       haiku*)
14671         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14672         link_all_deplibs_CXX=yes
14673         ;;
14674
14675       hpux9*)
14676         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14677         hardcode_libdir_separator_CXX=:
14678         export_dynamic_flag_spec_CXX='$wl-E'
14679         hardcode_direct_CXX=yes
14680         hardcode_minus_L_CXX=yes # Not in the search PATH,
14681                                              # but as the default
14682                                              # location of the library.
14683
14684         case $cc_basename in
14685           CC*)
14686             # FIXME: insert proper C++ library support
14687             ld_shlibs_CXX=no
14688             ;;
14689           aCC*)
14690             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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14691             # Commands to make compiler produce verbose output that lists
14692             # what "hidden" libraries, object files and flags are used when
14693             # linking a shared library.
14694             #
14695             # There doesn't appear to be a way to prevent this compiler from
14696             # explicitly linking system object files so we need to strip them
14697             # from the output so that they don't get included in the library
14698             # dependencies.
14699             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14700             ;;
14701           *)
14702             if test yes = "$GXX"; then
14703               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14704             else
14705               # FIXME: insert proper C++ library support
14706               ld_shlibs_CXX=no
14707             fi
14708             ;;
14709         esac
14710         ;;
14711
14712       hpux10*|hpux11*)
14713         if test no = "$with_gnu_ld"; then
14714           hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14715           hardcode_libdir_separator_CXX=:
14716
14717           case $host_cpu in
14718             hppa*64*|ia64*)
14719               ;;
14720             *)
14721               export_dynamic_flag_spec_CXX='$wl-E'
14722               ;;
14723           esac
14724         fi
14725         case $host_cpu in
14726           hppa*64*|ia64*)
14727             hardcode_direct_CXX=no
14728             hardcode_shlibpath_var_CXX=no
14729             ;;
14730           *)
14731             hardcode_direct_CXX=yes
14732             hardcode_direct_absolute_CXX=yes
14733             hardcode_minus_L_CXX=yes # Not in the search PATH,
14734                                                  # but as the default
14735                                                  # location of the library.
14736             ;;
14737         esac
14738
14739         case $cc_basename in
14740           CC*)
14741             # FIXME: insert proper C++ library support
14742             ld_shlibs_CXX=no
14743             ;;
14744           aCC*)
14745             case $host_cpu in
14746               hppa*64*)
14747                 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14748                 ;;
14749               ia64*)
14750                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14751                 ;;
14752               *)
14753                 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14754                 ;;
14755             esac
14756             # Commands to make compiler produce verbose output that lists
14757             # what "hidden" libraries, object files and flags are used when
14758             # linking a shared library.
14759             #
14760             # There doesn't appear to be a way to prevent this compiler from
14761             # explicitly linking system object files so we need to strip them
14762             # from the output so that they don't get included in the library
14763             # dependencies.
14764             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14765             ;;
14766           *)
14767             if test yes = "$GXX"; then
14768               if test no = "$with_gnu_ld"; then
14769                 case $host_cpu in
14770                   hppa*64*)
14771                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14772                     ;;
14773                   ia64*)
14774                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14775                     ;;
14776                   *)
14777                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14778                     ;;
14779                 esac
14780               fi
14781             else
14782               # FIXME: insert proper C++ library support
14783               ld_shlibs_CXX=no
14784             fi
14785             ;;
14786         esac
14787         ;;
14788
14789       interix[3-9]*)
14790         hardcode_direct_CXX=no
14791         hardcode_shlibpath_var_CXX=no
14792         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14793         export_dynamic_flag_spec_CXX='$wl-E'
14794         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14795         # Instead, shared libraries are loaded at an image base (0x10000000 by
14796         # default) and relocated if they conflict, which is a slow very memory
14797         # consuming and fragmenting process.  To avoid this, we pick a random,
14798         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14799         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14800         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'
14801         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'
14802         ;;
14803       irix5* | irix6*)
14804         case $cc_basename in
14805           CC*)
14806             # SGI C++
14807             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14808
14809             # Archives containing C++ object files must be created using
14810             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14811             # necessary to make sure instantiated templates are included
14812             # in the archive.
14813             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14814             ;;
14815           *)
14816             if test yes = "$GXX"; then
14817               if test no = "$with_gnu_ld"; then
14818                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14819               else
14820                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14821               fi
14822             fi
14823             link_all_deplibs_CXX=yes
14824             ;;
14825         esac
14826         hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14827         hardcode_libdir_separator_CXX=:
14828         inherit_rpath_CXX=yes
14829         ;;
14830
14831       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14832         case $cc_basename in
14833           KCC*)
14834             # Kuck and Associates, Inc. (KAI) C++ Compiler
14835
14836             # KCC will only create a shared library if the output file
14837             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14838             # to its proper name (with version) after linking.
14839             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'
14840             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'
14841             # Commands to make compiler produce verbose output that lists
14842             # what "hidden" libraries, object files and flags are used when
14843             # linking a shared library.
14844             #
14845             # There doesn't appear to be a way to prevent this compiler from
14846             # explicitly linking system object files so we need to strip them
14847             # from the output so that they don't get included in the library
14848             # dependencies.
14849             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14850
14851             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14852             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14853
14854             # Archives containing C++ object files must be created using
14855             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14856             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14857             ;;
14858           icpc* | ecpc* )
14859             # Intel C++
14860             with_gnu_ld=yes
14861             # version 8.0 and above of icpc choke on multiply defined symbols
14862             # if we add $predep_objects and $postdep_objects, however 7.1 and
14863             # earlier do not add the objects themselves.
14864             case `$CC -V 2>&1` in
14865               *"Version 7."*)
14866                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14867                 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'
14868                 ;;
14869               *)  # Version 8.0 or newer
14870                 tmp_idyn=
14871                 case $host_cpu in
14872                   ia64*) tmp_idyn=' -i_dynamic';;
14873                 esac
14874                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14875                 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'
14876                 ;;
14877             esac
14878             archive_cmds_need_lc_CXX=no
14879             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14880             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14881             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14882             ;;
14883           pgCC* | pgcpp*)
14884             # Portland Group C++ compiler
14885             case `$CC -V` in
14886             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14887               prelink_cmds_CXX='tpldir=Template.dir~
14888                rm -rf $tpldir~
14889                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14890                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14891               old_archive_cmds_CXX='tpldir=Template.dir~
14892                 rm -rf $tpldir~
14893                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14894                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14895                 $RANLIB $oldlib'
14896               archive_cmds_CXX='tpldir=Template.dir~
14897                 rm -rf $tpldir~
14898                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14899                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14900               archive_expsym_cmds_CXX='tpldir=Template.dir~
14901                 rm -rf $tpldir~
14902                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14903                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14904               ;;
14905             *) # Version 6 and above use weak symbols
14906               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14907               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'
14908               ;;
14909             esac
14910
14911             hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14912             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14913             whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14914             ;;
14915           cxx*)
14916             # Compaq C++
14917             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14918             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'
14919
14920             runpath_var=LD_RUN_PATH
14921             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14922             hardcode_libdir_separator_CXX=:
14923
14924             # Commands to make compiler produce verbose output that lists
14925             # what "hidden" libraries, object files and flags are used when
14926             # linking a shared library.
14927             #
14928             # There doesn't appear to be a way to prevent this compiler from
14929             # explicitly linking system object files so we need to strip them
14930             # from the output so that they don't get included in the library
14931             # dependencies.
14932             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14933             ;;
14934           xl* | mpixl* | bgxl*)
14935             # IBM XL 8.0 on PPC, with GNU ld
14936             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14937             export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14938             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14939             if test yes = "$supports_anon_versioning"; then
14940               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14941                 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14942                 echo "local: *; };" >> $output_objdir/$libname.ver~
14943                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14944             fi
14945             ;;
14946           *)
14947             case `$CC -V 2>&1 | $SED 5q` in
14948             *Sun\ C*)
14949               # Sun C++ 5.9
14950               no_undefined_flag_CXX=' -zdefs'
14951               archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14952               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'
14953               hardcode_libdir_flag_spec_CXX='-R$libdir'
14954               whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14955               compiler_needs_object_CXX=yes
14956
14957               # Not sure whether something based on
14958               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14959               # would be better.
14960               output_verbose_link_cmd='func_echo_all'
14961
14962               # Archives containing C++ object files must be created using
14963               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14964               # necessary to make sure instantiated templates are included
14965               # in the archive.
14966               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14967               ;;
14968             esac
14969             ;;
14970         esac
14971         ;;
14972
14973       lynxos*)
14974         # FIXME: insert proper C++ library support
14975         ld_shlibs_CXX=no
14976         ;;
14977
14978       m88k*)
14979         # FIXME: insert proper C++ library support
14980         ld_shlibs_CXX=no
14981         ;;
14982
14983       mvs*)
14984         case $cc_basename in
14985           cxx*)
14986             # FIXME: insert proper C++ library support
14987             ld_shlibs_CXX=no
14988             ;;
14989           *)
14990             # FIXME: insert proper C++ library support
14991             ld_shlibs_CXX=no
14992             ;;
14993         esac
14994         ;;
14995
14996       netbsd*)
14997         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14998           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14999           wlarc=
15000           hardcode_libdir_flag_spec_CXX='-R$libdir'
15001           hardcode_direct_CXX=yes
15002           hardcode_shlibpath_var_CXX=no
15003         fi
15004         # Workaround some broken pre-1.5 toolchains
15005         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15006         ;;
15007
15008       *nto* | *qnx*)
15009         ld_shlibs_CXX=yes
15010         ;;
15011
15012       openbsd* | bitrig*)
15013         if test -f /usr/libexec/ld.so; then
15014           hardcode_direct_CXX=yes
15015           hardcode_shlibpath_var_CXX=no
15016           hardcode_direct_absolute_CXX=yes
15017           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15018           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15019           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15020             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15021             export_dynamic_flag_spec_CXX='$wl-E'
15022             whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15023           fi
15024           output_verbose_link_cmd=func_echo_all
15025         else
15026           ld_shlibs_CXX=no
15027         fi
15028         ;;
15029
15030       osf3* | osf4* | osf5*)
15031         case $cc_basename in
15032           KCC*)
15033             # Kuck and Associates, Inc. (KAI) C++ Compiler
15034
15035             # KCC will only create a shared library if the output file
15036             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15037             # to its proper name (with version) after linking.
15038             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'
15039
15040             hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15041             hardcode_libdir_separator_CXX=:
15042
15043             # Archives containing C++ object files must be created using
15044             # the KAI C++ compiler.
15045             case $host in
15046               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15047               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15048             esac
15049             ;;
15050           RCC*)
15051             # Rational C++ 2.4.1
15052             # FIXME: insert proper C++ library support
15053             ld_shlibs_CXX=no
15054             ;;
15055           cxx*)
15056             case $host in
15057               osf3*)
15058                 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15059                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15060                 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15061                 ;;
15062               *)
15063                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15064                 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15065                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15066                   echo "-hidden">> $lib.exp~
15067                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15068                   $RM $lib.exp'
15069                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15070                 ;;
15071             esac
15072
15073             hardcode_libdir_separator_CXX=:
15074
15075             # Commands to make compiler produce verbose output that lists
15076             # what "hidden" libraries, object files and flags are used when
15077             # linking a shared library.
15078             #
15079             # There doesn't appear to be a way to prevent this compiler from
15080             # explicitly linking system object files so we need to strip them
15081             # from the output so that they don't get included in the library
15082             # dependencies.
15083             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15084             ;;
15085           *)
15086             if test yes,no = "$GXX,$with_gnu_ld"; then
15087               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15088               case $host in
15089                 osf3*)
15090                   archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15091                   ;;
15092                 *)
15093                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15094                   ;;
15095               esac
15096
15097               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15098               hardcode_libdir_separator_CXX=:
15099
15100               # Commands to make compiler produce verbose output that lists
15101               # what "hidden" libraries, object files and flags are used when
15102               # linking a shared library.
15103               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15104
15105             else
15106               # FIXME: insert proper C++ library support
15107               ld_shlibs_CXX=no
15108             fi
15109             ;;
15110         esac
15111         ;;
15112
15113       psos*)
15114         # FIXME: insert proper C++ library support
15115         ld_shlibs_CXX=no
15116         ;;
15117
15118       sunos4*)
15119         case $cc_basename in
15120           CC*)
15121             # Sun C++ 4.x
15122             # FIXME: insert proper C++ library support
15123             ld_shlibs_CXX=no
15124             ;;
15125           lcc*)
15126             # Lucid
15127             # FIXME: insert proper C++ library support
15128             ld_shlibs_CXX=no
15129             ;;
15130           *)
15131             # FIXME: insert proper C++ library support
15132             ld_shlibs_CXX=no
15133             ;;
15134         esac
15135         ;;
15136
15137       solaris*)
15138         case $cc_basename in
15139           CC* | sunCC*)
15140             # Sun C++ 4.2, 5.x and Centerline C++
15141             archive_cmds_need_lc_CXX=yes
15142             no_undefined_flag_CXX=' -zdefs'
15143             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15144             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15145               $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'
15146
15147             hardcode_libdir_flag_spec_CXX='-R$libdir'
15148             hardcode_shlibpath_var_CXX=no
15149             case $host_os in
15150               solaris2.[0-5] | solaris2.[0-5].*) ;;
15151               *)
15152                 # The compiler driver will combine and reorder linker options,
15153                 # but understands '-z linker_flag'.
15154                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15155                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15156                 ;;
15157             esac
15158             link_all_deplibs_CXX=yes
15159
15160             output_verbose_link_cmd='func_echo_all'
15161
15162             # Archives containing C++ object files must be created using
15163             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15164             # necessary to make sure instantiated templates are included
15165             # in the archive.
15166             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15167             ;;
15168           gcx*)
15169             # Green Hills C++ Compiler
15170             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15171
15172             # The C++ compiler must be used to create the archive.
15173             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15174             ;;
15175           *)
15176             # GNU C++ compiler with Solaris linker
15177             if test yes,no = "$GXX,$with_gnu_ld"; then
15178               no_undefined_flag_CXX=' $wl-z ${wl}defs'
15179               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15180                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15181                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15182                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15183
15184                 # Commands to make compiler produce verbose output that lists
15185                 # what "hidden" libraries, object files and flags are used when
15186                 # linking a shared library.
15187                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15188               else
15189                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15190                 # platform.
15191                 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15192                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15193                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15194
15195                 # Commands to make compiler produce verbose output that lists
15196                 # what "hidden" libraries, object files and flags are used when
15197                 # linking a shared library.
15198                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15199               fi
15200
15201               hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15202               case $host_os in
15203                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15204                 *)
15205                   whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15206                   ;;
15207               esac
15208             fi
15209             ;;
15210         esac
15211         ;;
15212
15213     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15214       no_undefined_flag_CXX='$wl-z,text'
15215       archive_cmds_need_lc_CXX=no
15216       hardcode_shlibpath_var_CXX=no
15217       runpath_var='LD_RUN_PATH'
15218
15219       case $cc_basename in
15220         CC*)
15221           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15222           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15223           ;;
15224         *)
15225           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15226           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15227           ;;
15228       esac
15229       ;;
15230
15231       sysv5* | sco3.2v5* | sco5v6*)
15232         # Note: We CANNOT use -z defs as we might desire, because we do not
15233         # link with -lc, and that would cause any symbols used from libc to
15234         # always be unresolved, which means just about no library would
15235         # ever link correctly.  If we're not using GNU ld we use -z text
15236         # though, which does catch some bad symbols but isn't as heavy-handed
15237         # as -z defs.
15238         no_undefined_flag_CXX='$wl-z,text'
15239         allow_undefined_flag_CXX='$wl-z,nodefs'
15240         archive_cmds_need_lc_CXX=no
15241         hardcode_shlibpath_var_CXX=no
15242         hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15243         hardcode_libdir_separator_CXX=':'
15244         link_all_deplibs_CXX=yes
15245         export_dynamic_flag_spec_CXX='$wl-Bexport'
15246         runpath_var='LD_RUN_PATH'
15247
15248         case $cc_basename in
15249           CC*)
15250             archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15251             archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15252             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15253               '"$old_archive_cmds_CXX"
15254             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15255               '"$reload_cmds_CXX"
15256             ;;
15257           *)
15258             archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15259             archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15260             ;;
15261         esac
15262       ;;
15263
15264       tandem*)
15265         case $cc_basename in
15266           NCC*)
15267             # NonStop-UX NCC 3.20
15268             # FIXME: insert proper C++ library support
15269             ld_shlibs_CXX=no
15270             ;;
15271           *)
15272             # FIXME: insert proper C++ library support
15273             ld_shlibs_CXX=no
15274             ;;
15275         esac
15276         ;;
15277
15278       vxworks*)
15279         # FIXME: insert proper C++ library support
15280         ld_shlibs_CXX=no
15281         ;;
15282
15283       *)
15284         # FIXME: insert proper C++ library support
15285         ld_shlibs_CXX=no
15286         ;;
15287     esac
15288
15289     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15290 printf "%s\n" "$ld_shlibs_CXX" >&6; }
15291     test no = "$ld_shlibs_CXX" && can_build_shared=no
15292
15293     GCC_CXX=$GXX
15294     LD_CXX=$LD
15295
15296     ## CAVEAT EMPTOR:
15297     ## There is no encapsulation within the following macros, do not change
15298     ## the running order or otherwise move them around unless you know exactly
15299     ## what you are doing...
15300     # Dependencies to place before and after the object being linked:
15301 predep_objects_CXX=
15302 postdep_objects_CXX=
15303 predeps_CXX=
15304 postdeps_CXX=
15305 compiler_lib_search_path_CXX=
15306
15307 cat > conftest.$ac_ext <<_LT_EOF
15308 class Foo
15309 {
15310 public:
15311   Foo (void) { a = 0; }
15312 private:
15313   int a;
15314 };
15315 _LT_EOF
15316
15317
15318 _lt_libdeps_save_CFLAGS=$CFLAGS
15319 case "$CC $CFLAGS " in #(
15320 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15321 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15322 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15323 esac
15324
15325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15326   (eval $ac_compile) 2>&5
15327   ac_status=$?
15328   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15329   test $ac_status = 0; }; then
15330   # Parse the compiler output and extract the necessary
15331   # objects, libraries and library flags.
15332
15333   # Sentinel used to keep track of whether or not we are before
15334   # the conftest object file.
15335   pre_test_object_deps_done=no
15336
15337   for p in `eval "$output_verbose_link_cmd"`; do
15338     case $prev$p in
15339
15340     -L* | -R* | -l*)
15341        # Some compilers place space between "-{L,R}" and the path.
15342        # Remove the space.
15343        if test x-L = "$p" ||
15344           test x-R = "$p"; then
15345          prev=$p
15346          continue
15347        fi
15348
15349        # Expand the sysroot to ease extracting the directories later.
15350        if test -z "$prev"; then
15351          case $p in
15352          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15353          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15354          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15355          esac
15356        fi
15357        case $p in
15358        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15359        esac
15360        if test no = "$pre_test_object_deps_done"; then
15361          case $prev in
15362          -L | -R)
15363            # Internal compiler library paths should come after those
15364            # provided the user.  The postdeps already come after the
15365            # user supplied libs so there is no need to process them.
15366            if test -z "$compiler_lib_search_path_CXX"; then
15367              compiler_lib_search_path_CXX=$prev$p
15368            else
15369              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15370            fi
15371            ;;
15372          # The "-l" case would never come before the object being
15373          # linked, so don't bother handling this case.
15374          esac
15375        else
15376          if test -z "$postdeps_CXX"; then
15377            postdeps_CXX=$prev$p
15378          else
15379            postdeps_CXX="${postdeps_CXX} $prev$p"
15380          fi
15381        fi
15382        prev=
15383        ;;
15384
15385     *.lto.$objext) ;; # Ignore GCC LTO objects
15386     *.$objext)
15387        # This assumes that the test object file only shows up
15388        # once in the compiler output.
15389        if test "$p" = "conftest.$objext"; then
15390          pre_test_object_deps_done=yes
15391          continue
15392        fi
15393
15394        if test no = "$pre_test_object_deps_done"; then
15395          if test -z "$predep_objects_CXX"; then
15396            predep_objects_CXX=$p
15397          else
15398            predep_objects_CXX="$predep_objects_CXX $p"
15399          fi
15400        else
15401          if test -z "$postdep_objects_CXX"; then
15402            postdep_objects_CXX=$p
15403          else
15404            postdep_objects_CXX="$postdep_objects_CXX $p"
15405          fi
15406        fi
15407        ;;
15408
15409     *) ;; # Ignore the rest.
15410
15411     esac
15412   done
15413
15414   # Clean up.
15415   rm -f a.out a.exe
15416 else
15417   echo "libtool.m4: error: problem compiling CXX test program"
15418 fi
15419
15420 $RM -f confest.$objext
15421 CFLAGS=$_lt_libdeps_save_CFLAGS
15422
15423 # PORTME: override above test on systems where it is broken
15424 case $host_os in
15425 interix[3-9]*)
15426   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15427   # hack all around it, let's just trust "g++" to DTRT.
15428   predep_objects_CXX=
15429   postdep_objects_CXX=
15430   postdeps_CXX=
15431   ;;
15432 esac
15433
15434
15435 case " $postdeps_CXX " in
15436 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15437 esac
15438  compiler_lib_search_dirs_CXX=
15439 if test -n "${compiler_lib_search_path_CXX}"; then
15440  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15441 fi
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473     lt_prog_compiler_wl_CXX=
15474 lt_prog_compiler_pic_CXX=
15475 lt_prog_compiler_static_CXX=
15476
15477
15478   # C++ specific cases for pic, static, wl, etc.
15479   if test yes = "$GXX"; then
15480     lt_prog_compiler_wl_CXX='-Wl,'
15481     lt_prog_compiler_static_CXX='-static'
15482
15483     case $host_os in
15484     aix*)
15485       # All AIX code is PIC.
15486       if test ia64 = "$host_cpu"; then
15487         # AIX 5 now supports IA64 processor
15488         lt_prog_compiler_static_CXX='-Bstatic'
15489       fi
15490       lt_prog_compiler_pic_CXX='-fPIC'
15491       ;;
15492
15493     amigaos*)
15494       case $host_cpu in
15495       powerpc)
15496             # see comment about AmigaOS4 .so support
15497             lt_prog_compiler_pic_CXX='-fPIC'
15498         ;;
15499       m68k)
15500             # FIXME: we need at least 68020 code to build shared libraries, but
15501             # adding the '-m68020' flag to GCC prevents building anything better,
15502             # like '-m68040'.
15503             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15504         ;;
15505       esac
15506       ;;
15507
15508     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15509       # PIC is the default for these OSes.
15510       ;;
15511     mingw* | cygwin* | os2* | pw32* | cegcc*)
15512       # This hack is so that the source file can tell whether it is being
15513       # built for inclusion in a dll (and should export symbols for example).
15514       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15515       # (--disable-auto-import) libraries
15516       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15517       case $host_os in
15518       os2*)
15519         lt_prog_compiler_static_CXX='$wl-static'
15520         ;;
15521       esac
15522       ;;
15523     darwin* | rhapsody*)
15524       # PIC is the default on this platform
15525       # Common symbols not allowed in MH_DYLIB files
15526       lt_prog_compiler_pic_CXX='-fno-common'
15527       ;;
15528     *djgpp*)
15529       # DJGPP does not support shared libraries at all
15530       lt_prog_compiler_pic_CXX=
15531       ;;
15532     haiku*)
15533       # PIC is the default for Haiku.
15534       # The "-static" flag exists, but is broken.
15535       lt_prog_compiler_static_CXX=
15536       ;;
15537     interix[3-9]*)
15538       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15539       # Instead, we relocate shared libraries at runtime.
15540       ;;
15541     sysv4*MP*)
15542       if test -d /usr/nec; then
15543         lt_prog_compiler_pic_CXX=-Kconform_pic
15544       fi
15545       ;;
15546     hpux*)
15547       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15548       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15549       # sets the default TLS model and affects inlining.
15550       case $host_cpu in
15551       hppa*64*)
15552         ;;
15553       *)
15554         lt_prog_compiler_pic_CXX='-fPIC'
15555         ;;
15556       esac
15557       ;;
15558     *qnx* | *nto*)
15559       # QNX uses GNU C++, but need to define -shared option too, otherwise
15560       # it will coredump.
15561       lt_prog_compiler_pic_CXX='-fPIC -shared'
15562       ;;
15563     *)
15564       lt_prog_compiler_pic_CXX='-fPIC'
15565       ;;
15566     esac
15567   else
15568     case $host_os in
15569       aix[4-9]*)
15570         # All AIX code is PIC.
15571         if test ia64 = "$host_cpu"; then
15572           # AIX 5 now supports IA64 processor
15573           lt_prog_compiler_static_CXX='-Bstatic'
15574         else
15575           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15576         fi
15577         ;;
15578       chorus*)
15579         case $cc_basename in
15580         cxch68*)
15581           # Green Hills C++ Compiler
15582           # _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"
15583           ;;
15584         esac
15585         ;;
15586       mingw* | cygwin* | os2* | pw32* | cegcc*)
15587         # This hack is so that the source file can tell whether it is being
15588         # built for inclusion in a dll (and should export symbols for example).
15589         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15590         ;;
15591       dgux*)
15592         case $cc_basename in
15593           ec++*)
15594             lt_prog_compiler_pic_CXX='-KPIC'
15595             ;;
15596           ghcx*)
15597             # Green Hills C++ Compiler
15598             lt_prog_compiler_pic_CXX='-pic'
15599             ;;
15600           *)
15601             ;;
15602         esac
15603         ;;
15604       freebsd* | dragonfly* | midnightbsd*)
15605         # FreeBSD uses GNU C++
15606         ;;
15607       hpux9* | hpux10* | hpux11*)
15608         case $cc_basename in
15609           CC*)
15610             lt_prog_compiler_wl_CXX='-Wl,'
15611             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15612             if test ia64 != "$host_cpu"; then
15613               lt_prog_compiler_pic_CXX='+Z'
15614             fi
15615             ;;
15616           aCC*)
15617             lt_prog_compiler_wl_CXX='-Wl,'
15618             lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15619             case $host_cpu in
15620             hppa*64*|ia64*)
15621               # +Z the default
15622               ;;
15623             *)
15624               lt_prog_compiler_pic_CXX='+Z'
15625               ;;
15626             esac
15627             ;;
15628           *)
15629             ;;
15630         esac
15631         ;;
15632       interix*)
15633         # This is c89, which is MS Visual C++ (no shared libs)
15634         # Anyone wants to do a port?
15635         ;;
15636       irix5* | irix6* | nonstopux*)
15637         case $cc_basename in
15638           CC*)
15639             lt_prog_compiler_wl_CXX='-Wl,'
15640             lt_prog_compiler_static_CXX='-non_shared'
15641             # CC pic flag -KPIC is the default.
15642             ;;
15643           *)
15644             ;;
15645         esac
15646         ;;
15647       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15648         case $cc_basename in
15649           KCC*)
15650             # KAI C++ Compiler
15651             lt_prog_compiler_wl_CXX='--backend -Wl,'
15652             lt_prog_compiler_pic_CXX='-fPIC'
15653             ;;
15654           ecpc* )
15655             # old Intel C++ for x86_64, which still supported -KPIC.
15656             lt_prog_compiler_wl_CXX='-Wl,'
15657             lt_prog_compiler_pic_CXX='-KPIC'
15658             lt_prog_compiler_static_CXX='-static'
15659             ;;
15660           icpc* )
15661             # Intel C++, used to be incompatible with GCC.
15662             # ICC 10 doesn't accept -KPIC any more.
15663             lt_prog_compiler_wl_CXX='-Wl,'
15664             lt_prog_compiler_pic_CXX='-fPIC'
15665             lt_prog_compiler_static_CXX='-static'
15666             ;;
15667           pgCC* | pgcpp*)
15668             # Portland Group C++ compiler
15669             lt_prog_compiler_wl_CXX='-Wl,'
15670             lt_prog_compiler_pic_CXX='-fpic'
15671             lt_prog_compiler_static_CXX='-Bstatic'
15672             ;;
15673           cxx*)
15674             # Compaq C++
15675             # Make sure the PIC flag is empty.  It appears that all Alpha
15676             # Linux and Compaq Tru64 Unix objects are PIC.
15677             lt_prog_compiler_pic_CXX=
15678             lt_prog_compiler_static_CXX='-non_shared'
15679             ;;
15680           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15681             # IBM XL 8.0, 9.0 on PPC and BlueGene
15682             lt_prog_compiler_wl_CXX='-Wl,'
15683             lt_prog_compiler_pic_CXX='-qpic'
15684             lt_prog_compiler_static_CXX='-qstaticlink'
15685             ;;
15686           *)
15687             case `$CC -V 2>&1 | $SED 5q` in
15688             *Sun\ C*)
15689               # Sun C++ 5.9
15690               lt_prog_compiler_pic_CXX='-KPIC'
15691               lt_prog_compiler_static_CXX='-Bstatic'
15692               lt_prog_compiler_wl_CXX='-Qoption ld '
15693               ;;
15694             esac
15695             ;;
15696         esac
15697         ;;
15698       lynxos*)
15699         ;;
15700       m88k*)
15701         ;;
15702       mvs*)
15703         case $cc_basename in
15704           cxx*)
15705             lt_prog_compiler_pic_CXX='-W c,exportall'
15706             ;;
15707           *)
15708             ;;
15709         esac
15710         ;;
15711       netbsd* | netbsdelf*-gnu)
15712         ;;
15713       *qnx* | *nto*)
15714         # QNX uses GNU C++, but need to define -shared option too, otherwise
15715         # it will coredump.
15716         lt_prog_compiler_pic_CXX='-fPIC -shared'
15717         ;;
15718       osf3* | osf4* | osf5*)
15719         case $cc_basename in
15720           KCC*)
15721             lt_prog_compiler_wl_CXX='--backend -Wl,'
15722             ;;
15723           RCC*)
15724             # Rational C++ 2.4.1
15725             lt_prog_compiler_pic_CXX='-pic'
15726             ;;
15727           cxx*)
15728             # Digital/Compaq C++
15729             lt_prog_compiler_wl_CXX='-Wl,'
15730             # Make sure the PIC flag is empty.  It appears that all Alpha
15731             # Linux and Compaq Tru64 Unix objects are PIC.
15732             lt_prog_compiler_pic_CXX=
15733             lt_prog_compiler_static_CXX='-non_shared'
15734             ;;
15735           *)
15736             ;;
15737         esac
15738         ;;
15739       psos*)
15740         ;;
15741       solaris*)
15742         case $cc_basename in
15743           CC* | sunCC*)
15744             # Sun C++ 4.2, 5.x and Centerline C++
15745             lt_prog_compiler_pic_CXX='-KPIC'
15746             lt_prog_compiler_static_CXX='-Bstatic'
15747             lt_prog_compiler_wl_CXX='-Qoption ld '
15748             ;;
15749           gcx*)
15750             # Green Hills C++ Compiler
15751             lt_prog_compiler_pic_CXX='-PIC'
15752             ;;
15753           *)
15754             ;;
15755         esac
15756         ;;
15757       sunos4*)
15758         case $cc_basename in
15759           CC*)
15760             # Sun C++ 4.x
15761             lt_prog_compiler_pic_CXX='-pic'
15762             lt_prog_compiler_static_CXX='-Bstatic'
15763             ;;
15764           lcc*)
15765             # Lucid
15766             lt_prog_compiler_pic_CXX='-pic'
15767             ;;
15768           *)
15769             ;;
15770         esac
15771         ;;
15772       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15773         case $cc_basename in
15774           CC*)
15775             lt_prog_compiler_wl_CXX='-Wl,'
15776             lt_prog_compiler_pic_CXX='-KPIC'
15777             lt_prog_compiler_static_CXX='-Bstatic'
15778             ;;
15779         esac
15780         ;;
15781       tandem*)
15782         case $cc_basename in
15783           NCC*)
15784             # NonStop-UX NCC 3.20
15785             lt_prog_compiler_pic_CXX='-KPIC'
15786             ;;
15787           *)
15788             ;;
15789         esac
15790         ;;
15791       vxworks*)
15792         ;;
15793       *)
15794         lt_prog_compiler_can_build_shared_CXX=no
15795         ;;
15796     esac
15797   fi
15798
15799 case $host_os in
15800   # For platforms that do not support PIC, -DPIC is meaningless:
15801   *djgpp*)
15802     lt_prog_compiler_pic_CXX=
15803     ;;
15804   *)
15805     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15806     ;;
15807 esac
15808
15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15810 printf %s "checking for $compiler option to produce PIC... " >&6; }
15811 if test ${lt_cv_prog_compiler_pic_CXX+y}
15812 then :
15813   printf %s "(cached) " >&6
15814 else $as_nop
15815   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15816 fi
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15818 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15819 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15820
15821 #
15822 # Check to make sure the PIC flag actually works.
15823 #
15824 if test -n "$lt_prog_compiler_pic_CXX"; then
15825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15826 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15827 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15828 then :
15829   printf %s "(cached) " >&6
15830 else $as_nop
15831   lt_cv_prog_compiler_pic_works_CXX=no
15832    ac_outfile=conftest.$ac_objext
15833    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15834    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15835    # Insert the option either (1) after the last *FLAGS variable, or
15836    # (2) before a word containing "conftest.", or (3) at the end.
15837    # Note that $ac_compile itself does not contain backslashes and begins
15838    # with a dollar sign (not a hyphen), so the echo should work correctly.
15839    # The option is referenced via a variable to avoid confusing sed.
15840    lt_compile=`echo "$ac_compile" | $SED \
15841    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15842    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15843    -e 's:$: $lt_compiler_flag:'`
15844    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15845    (eval "$lt_compile" 2>conftest.err)
15846    ac_status=$?
15847    cat conftest.err >&5
15848    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849    if (exit $ac_status) && test -s "$ac_outfile"; then
15850      # The compiler can only warn and ignore the option if not recognized
15851      # So say no if there are warnings other than the usual output.
15852      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15853      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15854      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15855        lt_cv_prog_compiler_pic_works_CXX=yes
15856      fi
15857    fi
15858    $RM conftest*
15859
15860 fi
15861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15862 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15863
15864 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15865     case $lt_prog_compiler_pic_CXX in
15866      "" | " "*) ;;
15867      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15868      esac
15869 else
15870     lt_prog_compiler_pic_CXX=
15871      lt_prog_compiler_can_build_shared_CXX=no
15872 fi
15873
15874 fi
15875
15876
15877
15878
15879
15880 #
15881 # Check to make sure the static flag actually works.
15882 #
15883 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15885 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15886 if test ${lt_cv_prog_compiler_static_works_CXX+y}
15887 then :
15888   printf %s "(cached) " >&6
15889 else $as_nop
15890   lt_cv_prog_compiler_static_works_CXX=no
15891    save_LDFLAGS=$LDFLAGS
15892    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15893    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15894    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15895      # The linker can only warn and ignore the option if not recognized
15896      # So say no if there are warnings
15897      if test -s conftest.err; then
15898        # Append any errors to the config.log.
15899        cat conftest.err 1>&5
15900        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15901        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15902        if diff conftest.exp conftest.er2 >/dev/null; then
15903          lt_cv_prog_compiler_static_works_CXX=yes
15904        fi
15905      else
15906        lt_cv_prog_compiler_static_works_CXX=yes
15907      fi
15908    fi
15909    $RM -r conftest*
15910    LDFLAGS=$save_LDFLAGS
15911
15912 fi
15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15914 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15915
15916 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15917     :
15918 else
15919     lt_prog_compiler_static_CXX=
15920 fi
15921
15922
15923
15924
15925     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15926 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15927 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15928 then :
15929   printf %s "(cached) " >&6
15930 else $as_nop
15931   lt_cv_prog_compiler_c_o_CXX=no
15932    $RM -r conftest 2>/dev/null
15933    mkdir conftest
15934    cd conftest
15935    mkdir out
15936    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15937
15938    lt_compiler_flag="-o out/conftest2.$ac_objext"
15939    # Insert the option either (1) after the last *FLAGS variable, or
15940    # (2) before a word containing "conftest.", or (3) at the end.
15941    # Note that $ac_compile itself does not contain backslashes and begins
15942    # with a dollar sign (not a hyphen), so the echo should work correctly.
15943    lt_compile=`echo "$ac_compile" | $SED \
15944    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15945    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15946    -e 's:$: $lt_compiler_flag:'`
15947    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15948    (eval "$lt_compile" 2>out/conftest.err)
15949    ac_status=$?
15950    cat out/conftest.err >&5
15951    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15953    then
15954      # The compiler can only warn and ignore the option if not recognized
15955      # So say no if there are warnings
15956      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15957      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15958      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15959        lt_cv_prog_compiler_c_o_CXX=yes
15960      fi
15961    fi
15962    chmod u+w . 2>&5
15963    $RM conftest*
15964    # SGI C++ compiler will create directory out/ii_files/ for
15965    # template instantiation
15966    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15967    $RM out/* && rmdir out
15968    cd ..
15969    $RM -r conftest
15970    $RM conftest*
15971
15972 fi
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15974 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15975
15976
15977
15978     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15979 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15980 if test ${lt_cv_prog_compiler_c_o_CXX+y}
15981 then :
15982   printf %s "(cached) " >&6
15983 else $as_nop
15984   lt_cv_prog_compiler_c_o_CXX=no
15985    $RM -r conftest 2>/dev/null
15986    mkdir conftest
15987    cd conftest
15988    mkdir out
15989    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15990
15991    lt_compiler_flag="-o out/conftest2.$ac_objext"
15992    # Insert the option either (1) after the last *FLAGS variable, or
15993    # (2) before a word containing "conftest.", or (3) at the end.
15994    # Note that $ac_compile itself does not contain backslashes and begins
15995    # with a dollar sign (not a hyphen), so the echo should work correctly.
15996    lt_compile=`echo "$ac_compile" | $SED \
15997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15999    -e 's:$: $lt_compiler_flag:'`
16000    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16001    (eval "$lt_compile" 2>out/conftest.err)
16002    ac_status=$?
16003    cat out/conftest.err >&5
16004    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16006    then
16007      # The compiler can only warn and ignore the option if not recognized
16008      # So say no if there are warnings
16009      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16010      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16011      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16012        lt_cv_prog_compiler_c_o_CXX=yes
16013      fi
16014    fi
16015    chmod u+w . 2>&5
16016    $RM conftest*
16017    # SGI C++ compiler will create directory out/ii_files/ for
16018    # template instantiation
16019    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16020    $RM out/* && rmdir out
16021    cd ..
16022    $RM -r conftest
16023    $RM conftest*
16024
16025 fi
16026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16027 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16028
16029
16030
16031
16032 hard_links=nottested
16033 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16034   # do not overwrite the value of need_locks provided by the user
16035   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16036 printf %s "checking if we can lock with hard links... " >&6; }
16037   hard_links=yes
16038   $RM conftest*
16039   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16040   touch conftest.a
16041   ln conftest.a conftest.b 2>&5 || hard_links=no
16042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16043   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16044 printf "%s\n" "$hard_links" >&6; }
16045   if test no = "$hard_links"; then
16046     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16047 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16048     need_locks=warn
16049   fi
16050 else
16051   need_locks=no
16052 fi
16053
16054
16055
16056     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16057 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16058
16059   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16060   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16061   case $host_os in
16062   aix[4-9]*)
16063     # If we're using GNU nm, then we don't want the "-C" option.
16064     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16065     # Without the "-l" option, or with the "-B" option, AIX nm treats
16066     # weak defined symbols like other global defined symbols, whereas
16067     # GNU nm marks them as "W".
16068     # While the 'weak' keyword is ignored in the Export File, we need
16069     # it in the Import File for the 'aix-soname' feature, so we have
16070     # to replace the "-B" option with "-P" for AIX nm.
16071     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16072       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16073     else
16074       export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16075     fi
16076     ;;
16077   pw32*)
16078     export_symbols_cmds_CXX=$ltdll_cmds
16079     ;;
16080   cygwin* | mingw* | cegcc*)
16081     case $cc_basename in
16082     cl* | icl*)
16083       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16084       ;;
16085     *)
16086       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16087       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16088       ;;
16089     esac
16090     ;;
16091   linux* | k*bsd*-gnu | gnu*)
16092     link_all_deplibs_CXX=no
16093     ;;
16094   *)
16095     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16096     ;;
16097   esac
16098
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16100 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16101 test no = "$ld_shlibs_CXX" && can_build_shared=no
16102
16103 with_gnu_ld_CXX=$with_gnu_ld
16104
16105
16106
16107
16108
16109
16110 #
16111 # Do we need to explicitly link libc?
16112 #
16113 case "x$archive_cmds_need_lc_CXX" in
16114 x|xyes)
16115   # Assume -lc should be added
16116   archive_cmds_need_lc_CXX=yes
16117
16118   if test yes,yes = "$GCC,$enable_shared"; then
16119     case $archive_cmds_CXX in
16120     *'~'*)
16121       # FIXME: we may have to deal with multi-command sequences.
16122       ;;
16123     '$CC '*)
16124       # Test whether the compiler implicitly links with -lc since on some
16125       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16126       # to ld, don't add -lc before -lgcc.
16127       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16128 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16129 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16130 then :
16131   printf %s "(cached) " >&6
16132 else $as_nop
16133   $RM conftest*
16134         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16135
16136         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16137   (eval $ac_compile) 2>&5
16138   ac_status=$?
16139   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16140   test $ac_status = 0; } 2>conftest.err; then
16141           soname=conftest
16142           lib=conftest
16143           libobjs=conftest.$ac_objext
16144           deplibs=
16145           wl=$lt_prog_compiler_wl_CXX
16146           pic_flag=$lt_prog_compiler_pic_CXX
16147           compiler_flags=-v
16148           linker_flags=-v
16149           verstring=
16150           output_objdir=.
16151           libname=conftest
16152           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16153           allow_undefined_flag_CXX=
16154           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16155   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16156   ac_status=$?
16157   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16158   test $ac_status = 0; }
16159           then
16160             lt_cv_archive_cmds_need_lc_CXX=no
16161           else
16162             lt_cv_archive_cmds_need_lc_CXX=yes
16163           fi
16164           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16165         else
16166           cat conftest.err 1>&5
16167         fi
16168         $RM conftest*
16169
16170 fi
16171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16172 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16173       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16174       ;;
16175     esac
16176   fi
16177   ;;
16178 esac
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16242 printf %s "checking dynamic linker characteristics... " >&6; }
16243
16244 library_names_spec=
16245 libname_spec='lib$name'
16246 soname_spec=
16247 shrext_cmds=.so
16248 postinstall_cmds=
16249 postuninstall_cmds=
16250 finish_cmds=
16251 finish_eval=
16252 shlibpath_var=
16253 shlibpath_overrides_runpath=unknown
16254 version_type=none
16255 dynamic_linker="$host_os ld.so"
16256 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16257 need_lib_prefix=unknown
16258 hardcode_into_libs=no
16259
16260 # when you set need_version to no, make sure it does not cause -set_version
16261 # flags to be left without arguments
16262 need_version=unknown
16263
16264
16265
16266 case $host_os in
16267 aix3*)
16268   version_type=linux # correct to gnu/linux during the next big refactor
16269   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16270   shlibpath_var=LIBPATH
16271
16272   # AIX 3 has no versioning support, so we append a major version to the name.
16273   soname_spec='$libname$release$shared_ext$major'
16274   ;;
16275
16276 aix[4-9]*)
16277   version_type=linux # correct to gnu/linux during the next big refactor
16278   need_lib_prefix=no
16279   need_version=no
16280   hardcode_into_libs=yes
16281   if test ia64 = "$host_cpu"; then
16282     # AIX 5 supports IA64
16283     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16284     shlibpath_var=LD_LIBRARY_PATH
16285   else
16286     # With GCC up to 2.95.x, collect2 would create an import file
16287     # for dependence libraries.  The import file would start with
16288     # the line '#! .'.  This would cause the generated library to
16289     # depend on '.', always an invalid library.  This was fixed in
16290     # development snapshots of GCC prior to 3.0.
16291     case $host_os in
16292       aix4 | aix4.[01] | aix4.[01].*)
16293       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16294            echo ' yes '
16295            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16296         :
16297       else
16298         can_build_shared=no
16299       fi
16300       ;;
16301     esac
16302     # Using Import Files as archive members, it is possible to support
16303     # filename-based versioning of shared library archives on AIX. While
16304     # this would work for both with and without runtime linking, it will
16305     # prevent static linking of such archives. So we do filename-based
16306     # shared library versioning with .so extension only, which is used
16307     # when both runtime linking and shared linking is enabled.
16308     # Unfortunately, runtime linking may impact performance, so we do
16309     # not want this to be the default eventually. Also, we use the
16310     # versioned .so libs for executables only if there is the -brtl
16311     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16312     # To allow for filename-based versioning support, we need to create
16313     # libNAME.so.V as an archive file, containing:
16314     # *) an Import File, referring to the versioned filename of the
16315     #    archive as well as the shared archive member, telling the
16316     #    bitwidth (32 or 64) of that shared object, and providing the
16317     #    list of exported symbols of that shared object, eventually
16318     #    decorated with the 'weak' keyword
16319     # *) the shared object with the F_LOADONLY flag set, to really avoid
16320     #    it being seen by the linker.
16321     # At run time we better use the real file rather than another symlink,
16322     # but for link time we create the symlink libNAME.so -> libNAME.so.V
16323
16324     case $with_aix_soname,$aix_use_runtimelinking in
16325     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16326     # soname into executable. Probably we can add versioning support to
16327     # collect2, so additional links can be useful in future.
16328     aix,yes) # traditional libtool
16329       dynamic_linker='AIX unversionable lib.so'
16330       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16331       # instead of lib<name>.a to let people know that these are not
16332       # typical AIX shared libraries.
16333       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16334       ;;
16335     aix,no) # traditional AIX only
16336       dynamic_linker='AIX lib.a(lib.so.V)'
16337       # We preserve .a as extension for shared libraries through AIX4.2
16338       # and later when we are not doing run time linking.
16339       library_names_spec='$libname$release.a $libname.a'
16340       soname_spec='$libname$release$shared_ext$major'
16341       ;;
16342     svr4,*) # full svr4 only
16343       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16344       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16345       # We do not specify a path in Import Files, so LIBPATH fires.
16346       shlibpath_overrides_runpath=yes
16347       ;;
16348     *,yes) # both, prefer svr4
16349       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16350       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16351       # unpreferred sharedlib libNAME.a needs extra handling
16352       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
16353       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
16354       # We do not specify a path in Import Files, so LIBPATH fires.
16355       shlibpath_overrides_runpath=yes
16356       ;;
16357     *,no) # both, prefer aix
16358       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16359       library_names_spec='$libname$release.a $libname.a'
16360       soname_spec='$libname$release$shared_ext$major'
16361       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16362       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
16363       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
16364       ;;
16365     esac
16366     shlibpath_var=LIBPATH
16367   fi
16368   ;;
16369
16370 amigaos*)
16371   case $host_cpu in
16372   powerpc)
16373     # Since July 2007 AmigaOS4 officially supports .so libraries.
16374     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16375     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16376     ;;
16377   m68k)
16378     library_names_spec='$libname.ixlibrary $libname.a'
16379     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16380     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
16381     ;;
16382   esac
16383   ;;
16384
16385 beos*)
16386   library_names_spec='$libname$shared_ext'
16387   dynamic_linker="$host_os ld.so"
16388   shlibpath_var=LIBRARY_PATH
16389   ;;
16390
16391 bsdi[45]*)
16392   version_type=linux # correct to gnu/linux during the next big refactor
16393   need_version=no
16394   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16395   soname_spec='$libname$release$shared_ext$major'
16396   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16397   shlibpath_var=LD_LIBRARY_PATH
16398   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16399   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16400   # the default ld.so.conf also contains /usr/contrib/lib and
16401   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16402   # libtool to hard-code these into programs
16403   ;;
16404
16405 cygwin* | mingw* | pw32* | cegcc*)
16406   version_type=windows
16407   shrext_cmds=.dll
16408   need_version=no
16409   need_lib_prefix=no
16410
16411   case $GCC,$cc_basename in
16412   yes,*)
16413     # gcc
16414     library_names_spec='$libname.dll.a'
16415     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16416     postinstall_cmds='base_file=`basename \$file`~
16417       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16418       dldir=$destdir/`dirname \$dlpath`~
16419       test -d \$dldir || mkdir -p \$dldir~
16420       $install_prog $dir/$dlname \$dldir/$dlname~
16421       chmod a+x \$dldir/$dlname~
16422       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16423         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16424       fi'
16425     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16426       dlpath=$dir/\$dldll~
16427        $RM \$dlpath'
16428     shlibpath_overrides_runpath=yes
16429
16430     case $host_os in
16431     cygwin*)
16432       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16433       soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16434
16435       ;;
16436     mingw* | cegcc*)
16437       # MinGW DLLs use traditional 'lib' prefix
16438       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16439       ;;
16440     pw32*)
16441       # pw32 DLLs use 'pw' prefix rather than 'lib'
16442       library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16443       ;;
16444     esac
16445     dynamic_linker='Win32 ld.exe'
16446     ;;
16447
16448   *,cl* | *,icl*)
16449     # Native MSVC or ICC
16450     libname_spec='$name'
16451     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16452     library_names_spec='$libname.dll.lib'
16453
16454     case $build_os in
16455     mingw*)
16456       sys_lib_search_path_spec=
16457       lt_save_ifs=$IFS
16458       IFS=';'
16459       for lt_path in $LIB
16460       do
16461         IFS=$lt_save_ifs
16462         # Let DOS variable expansion print the short 8.3 style file name.
16463         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16464         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16465       done
16466       IFS=$lt_save_ifs
16467       # Convert to MSYS style.
16468       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16469       ;;
16470     cygwin*)
16471       # Convert to unix form, then to dos form, then back to unix form
16472       # but this time dos style (no spaces!) so that the unix form looks
16473       # like /cygdrive/c/PROGRA~1:/cygdr...
16474       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16475       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16476       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16477       ;;
16478     *)
16479       sys_lib_search_path_spec=$LIB
16480       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16481         # It is most probably a Windows format PATH.
16482         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16483       else
16484         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16485       fi
16486       # FIXME: find the short name or the path components, as spaces are
16487       # common. (e.g. "Program Files" -> "PROGRA~1")
16488       ;;
16489     esac
16490
16491     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16492     postinstall_cmds='base_file=`basename \$file`~
16493       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16494       dldir=$destdir/`dirname \$dlpath`~
16495       test -d \$dldir || mkdir -p \$dldir~
16496       $install_prog $dir/$dlname \$dldir/$dlname'
16497     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16498       dlpath=$dir/\$dldll~
16499        $RM \$dlpath'
16500     shlibpath_overrides_runpath=yes
16501     dynamic_linker='Win32 link.exe'
16502     ;;
16503
16504   *)
16505     # Assume MSVC and ICC wrapper
16506     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16507     dynamic_linker='Win32 ld.exe'
16508     ;;
16509   esac
16510   # FIXME: first we should search . and the directory the executable is in
16511   shlibpath_var=PATH
16512   ;;
16513
16514 darwin* | rhapsody*)
16515   dynamic_linker="$host_os dyld"
16516   version_type=darwin
16517   need_lib_prefix=no
16518   need_version=no
16519   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16520   soname_spec='$libname$release$major$shared_ext'
16521   shlibpath_overrides_runpath=yes
16522   shlibpath_var=DYLD_LIBRARY_PATH
16523   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16524
16525   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16526   ;;
16527
16528 dgux*)
16529   version_type=linux # correct to gnu/linux during the next big refactor
16530   need_lib_prefix=no
16531   need_version=no
16532   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16533   soname_spec='$libname$release$shared_ext$major'
16534   shlibpath_var=LD_LIBRARY_PATH
16535   ;;
16536
16537 freebsd* | dragonfly* | midnightbsd*)
16538   # DragonFly does not have aout.  When/if they implement a new
16539   # versioning mechanism, adjust this.
16540   if test -x /usr/bin/objformat; then
16541     objformat=`/usr/bin/objformat`
16542   else
16543     case $host_os in
16544     freebsd[23].*) objformat=aout ;;
16545     *) objformat=elf ;;
16546     esac
16547   fi
16548   version_type=freebsd-$objformat
16549   case $version_type in
16550     freebsd-elf*)
16551       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16552       soname_spec='$libname$release$shared_ext$major'
16553       need_version=no
16554       need_lib_prefix=no
16555       ;;
16556     freebsd-*)
16557       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16558       need_version=yes
16559       ;;
16560   esac
16561   shlibpath_var=LD_LIBRARY_PATH
16562   case $host_os in
16563   freebsd2.*)
16564     shlibpath_overrides_runpath=yes
16565     ;;
16566   freebsd3.[01]* | freebsdelf3.[01]*)
16567     shlibpath_overrides_runpath=yes
16568     hardcode_into_libs=yes
16569     ;;
16570   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16571   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16572     shlibpath_overrides_runpath=no
16573     hardcode_into_libs=yes
16574     ;;
16575   *) # from 4.6 on, and DragonFly
16576     shlibpath_overrides_runpath=yes
16577     hardcode_into_libs=yes
16578     ;;
16579   esac
16580   ;;
16581
16582 haiku*)
16583   version_type=linux # correct to gnu/linux during the next big refactor
16584   need_lib_prefix=no
16585   need_version=no
16586   dynamic_linker="$host_os runtime_loader"
16587   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16588   soname_spec='$libname$release$shared_ext$major'
16589   shlibpath_var=LIBRARY_PATH
16590   shlibpath_overrides_runpath=no
16591   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16592   hardcode_into_libs=yes
16593   ;;
16594
16595 hpux9* | hpux10* | hpux11*)
16596   # Give a soname corresponding to the major version so that dld.sl refuses to
16597   # link against other versions.
16598   version_type=sunos
16599   need_lib_prefix=no
16600   need_version=no
16601   case $host_cpu in
16602   ia64*)
16603     shrext_cmds='.so'
16604     hardcode_into_libs=yes
16605     dynamic_linker="$host_os dld.so"
16606     shlibpath_var=LD_LIBRARY_PATH
16607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16608     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16609     soname_spec='$libname$release$shared_ext$major'
16610     if test 32 = "$HPUX_IA64_MODE"; then
16611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16612       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16613     else
16614       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16615       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16616     fi
16617     ;;
16618   hppa*64*)
16619     shrext_cmds='.sl'
16620     hardcode_into_libs=yes
16621     dynamic_linker="$host_os dld.sl"
16622     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16623     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16624     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16625     soname_spec='$libname$release$shared_ext$major'
16626     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16627     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16628     ;;
16629   *)
16630     shrext_cmds='.sl'
16631     dynamic_linker="$host_os dld.sl"
16632     shlibpath_var=SHLIB_PATH
16633     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16634     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16635     soname_spec='$libname$release$shared_ext$major'
16636     ;;
16637   esac
16638   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16639   postinstall_cmds='chmod 555 $lib'
16640   # or fails outright, so override atomically:
16641   install_override_mode=555
16642   ;;
16643
16644 interix[3-9]*)
16645   version_type=linux # correct to gnu/linux during the next big refactor
16646   need_lib_prefix=no
16647   need_version=no
16648   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16649   soname_spec='$libname$release$shared_ext$major'
16650   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16651   shlibpath_var=LD_LIBRARY_PATH
16652   shlibpath_overrides_runpath=no
16653   hardcode_into_libs=yes
16654   ;;
16655
16656 irix5* | irix6* | nonstopux*)
16657   case $host_os in
16658     nonstopux*) version_type=nonstopux ;;
16659     *)
16660         if test yes = "$lt_cv_prog_gnu_ld"; then
16661                 version_type=linux # correct to gnu/linux during the next big refactor
16662         else
16663                 version_type=irix
16664         fi ;;
16665   esac
16666   need_lib_prefix=no
16667   need_version=no
16668   soname_spec='$libname$release$shared_ext$major'
16669   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16670   case $host_os in
16671   irix5* | nonstopux*)
16672     libsuff= shlibsuff=
16673     ;;
16674   *)
16675     case $LD in # libtool.m4 will add one of these switches to LD
16676     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16677       libsuff= shlibsuff= libmagic=32-bit;;
16678     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16679       libsuff=32 shlibsuff=N32 libmagic=N32;;
16680     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16681       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16682     *) libsuff= shlibsuff= libmagic=never-match;;
16683     esac
16684     ;;
16685   esac
16686   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16687   shlibpath_overrides_runpath=no
16688   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16689   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16690   hardcode_into_libs=yes
16691   ;;
16692
16693 # No shared lib support for Linux oldld, aout, or coff.
16694 linux*oldld* | linux*aout* | linux*coff*)
16695   dynamic_linker=no
16696   ;;
16697
16698 linux*android*)
16699   version_type=none # Android doesn't support versioned libraries.
16700   need_lib_prefix=no
16701   need_version=no
16702   library_names_spec='$libname$release$shared_ext'
16703   soname_spec='$libname$release$shared_ext'
16704   finish_cmds=
16705   shlibpath_var=LD_LIBRARY_PATH
16706   shlibpath_overrides_runpath=yes
16707
16708   # This implies no fast_install, which is unacceptable.
16709   # Some rework will be needed to allow for fast_install
16710   # before this can be enabled.
16711   hardcode_into_libs=yes
16712
16713   dynamic_linker='Android linker'
16714   # Don't embed -rpath directories since the linker doesn't support them.
16715   hardcode_libdir_flag_spec_CXX='-L$libdir'
16716   ;;
16717
16718 # This must be glibc/ELF.
16719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16720   version_type=linux # correct to gnu/linux during the next big refactor
16721   need_lib_prefix=no
16722   need_version=no
16723   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16724   soname_spec='$libname$release$shared_ext$major'
16725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16726   shlibpath_var=LD_LIBRARY_PATH
16727   shlibpath_overrides_runpath=no
16728
16729   # Some binutils ld are patched to set DT_RUNPATH
16730   if test ${lt_cv_shlibpath_overrides_runpath+y}
16731 then :
16732   printf %s "(cached) " >&6
16733 else $as_nop
16734   lt_cv_shlibpath_overrides_runpath=no
16735     save_LDFLAGS=$LDFLAGS
16736     save_libdir=$libdir
16737     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16738          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16740 /* end confdefs.h.  */
16741
16742 int
16743 main (void)
16744 {
16745
16746   ;
16747   return 0;
16748 }
16749 _ACEOF
16750 if ac_fn_cxx_try_link "$LINENO"
16751 then :
16752   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16753 then :
16754   lt_cv_shlibpath_overrides_runpath=yes
16755 fi
16756 fi
16757 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16758     conftest$ac_exeext conftest.$ac_ext
16759     LDFLAGS=$save_LDFLAGS
16760     libdir=$save_libdir
16761
16762 fi
16763
16764   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16765
16766   # This implies no fast_install, which is unacceptable.
16767   # Some rework will be needed to allow for fast_install
16768   # before this can be enabled.
16769   hardcode_into_libs=yes
16770
16771   # Ideally, we could use ldconfig to report *all* directores which are
16772   # searched for libraries, however this is still not possible.  Aside from not
16773   # being certain /sbin/ldconfig is available, command
16774   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16775   # even though it is searched at run-time.  Try to do the best guess by
16776   # appending ld.so.conf contents (and includes) to the search path.
16777   if test -f /etc/ld.so.conf; then
16778     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16779     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16780   fi
16781
16782   # We used to test for /lib/ld.so.1 and disable shared libraries on
16783   # powerpc, because MkLinux only supported shared libraries with the
16784   # GNU dynamic linker.  Since this was broken with cross compilers,
16785   # most powerpc-linux boxes support dynamic linking these days and
16786   # people can always --disable-shared, the test was removed, and we
16787   # assume the GNU/Linux dynamic linker is in use.
16788   dynamic_linker='GNU/Linux ld.so'
16789   ;;
16790
16791 netbsdelf*-gnu)
16792   version_type=linux
16793   need_lib_prefix=no
16794   need_version=no
16795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16796   soname_spec='${libname}${release}${shared_ext}$major'
16797   shlibpath_var=LD_LIBRARY_PATH
16798   shlibpath_overrides_runpath=no
16799   hardcode_into_libs=yes
16800   dynamic_linker='NetBSD ld.elf_so'
16801   ;;
16802
16803 netbsd*)
16804   version_type=sunos
16805   need_lib_prefix=no
16806   need_version=no
16807   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16808     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16809     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16810     dynamic_linker='NetBSD (a.out) ld.so'
16811   else
16812     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16813     soname_spec='$libname$release$shared_ext$major'
16814     dynamic_linker='NetBSD ld.elf_so'
16815   fi
16816   shlibpath_var=LD_LIBRARY_PATH
16817   shlibpath_overrides_runpath=yes
16818   hardcode_into_libs=yes
16819   ;;
16820
16821 newsos6)
16822   version_type=linux # correct to gnu/linux during the next big refactor
16823   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16824   shlibpath_var=LD_LIBRARY_PATH
16825   shlibpath_overrides_runpath=yes
16826   ;;
16827
16828 *nto* | *qnx*)
16829   version_type=qnx
16830   need_lib_prefix=no
16831   need_version=no
16832   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16833   soname_spec='$libname$release$shared_ext$major'
16834   shlibpath_var=LD_LIBRARY_PATH
16835   shlibpath_overrides_runpath=no
16836   hardcode_into_libs=yes
16837   dynamic_linker='ldqnx.so'
16838   ;;
16839
16840 openbsd* | bitrig*)
16841   version_type=sunos
16842   sys_lib_dlsearch_path_spec=/usr/lib
16843   need_lib_prefix=no
16844   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16845     need_version=no
16846   else
16847     need_version=yes
16848   fi
16849   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16850   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16851   shlibpath_var=LD_LIBRARY_PATH
16852   shlibpath_overrides_runpath=yes
16853   ;;
16854
16855 os2*)
16856   libname_spec='$name'
16857   version_type=windows
16858   shrext_cmds=.dll
16859   need_version=no
16860   need_lib_prefix=no
16861   # OS/2 can only load a DLL with a base name of 8 characters or less.
16862   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16863     v=$($ECHO $release$versuffix | tr -d .-);
16864     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16865     $ECHO $n$v`$shared_ext'
16866   library_names_spec='${libname}_dll.$libext'
16867   dynamic_linker='OS/2 ld.exe'
16868   shlibpath_var=BEGINLIBPATH
16869   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16870   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16871   postinstall_cmds='base_file=`basename \$file`~
16872     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16873     dldir=$destdir/`dirname \$dlpath`~
16874     test -d \$dldir || mkdir -p \$dldir~
16875     $install_prog $dir/$dlname \$dldir/$dlname~
16876     chmod a+x \$dldir/$dlname~
16877     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16878       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16879     fi'
16880   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16881     dlpath=$dir/\$dldll~
16882     $RM \$dlpath'
16883   ;;
16884
16885 osf3* | osf4* | osf5*)
16886   version_type=osf
16887   need_lib_prefix=no
16888   need_version=no
16889   soname_spec='$libname$release$shared_ext$major'
16890   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16891   shlibpath_var=LD_LIBRARY_PATH
16892   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16893   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16894   ;;
16895
16896 rdos*)
16897   dynamic_linker=no
16898   ;;
16899
16900 solaris*)
16901   version_type=linux # correct to gnu/linux during the next big refactor
16902   need_lib_prefix=no
16903   need_version=no
16904   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16905   soname_spec='$libname$release$shared_ext$major'
16906   shlibpath_var=LD_LIBRARY_PATH
16907   shlibpath_overrides_runpath=yes
16908   hardcode_into_libs=yes
16909   # ldd complains unless libraries are executable
16910   postinstall_cmds='chmod +x $lib'
16911   ;;
16912
16913 sunos4*)
16914   version_type=sunos
16915   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16916   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16917   shlibpath_var=LD_LIBRARY_PATH
16918   shlibpath_overrides_runpath=yes
16919   if test yes = "$with_gnu_ld"; then
16920     need_lib_prefix=no
16921   fi
16922   need_version=yes
16923   ;;
16924
16925 sysv4 | sysv4.3*)
16926   version_type=linux # correct to gnu/linux during the next big refactor
16927   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16928   soname_spec='$libname$release$shared_ext$major'
16929   shlibpath_var=LD_LIBRARY_PATH
16930   case $host_vendor in
16931     sni)
16932       shlibpath_overrides_runpath=no
16933       need_lib_prefix=no
16934       runpath_var=LD_RUN_PATH
16935       ;;
16936     siemens)
16937       need_lib_prefix=no
16938       ;;
16939     motorola)
16940       need_lib_prefix=no
16941       need_version=no
16942       shlibpath_overrides_runpath=no
16943       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16944       ;;
16945   esac
16946   ;;
16947
16948 sysv4*MP*)
16949   if test -d /usr/nec; then
16950     version_type=linux # correct to gnu/linux during the next big refactor
16951     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16952     soname_spec='$libname$shared_ext.$major'
16953     shlibpath_var=LD_LIBRARY_PATH
16954   fi
16955   ;;
16956
16957 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16958   version_type=sco
16959   need_lib_prefix=no
16960   need_version=no
16961   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16962   soname_spec='$libname$release$shared_ext$major'
16963   shlibpath_var=LD_LIBRARY_PATH
16964   shlibpath_overrides_runpath=yes
16965   hardcode_into_libs=yes
16966   if test yes = "$with_gnu_ld"; then
16967     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16968   else
16969     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16970     case $host_os in
16971       sco3.2v5*)
16972         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16973         ;;
16974     esac
16975   fi
16976   sys_lib_dlsearch_path_spec='/usr/lib'
16977   ;;
16978
16979 tpf*)
16980   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16981   version_type=linux # correct to gnu/linux during the next big refactor
16982   need_lib_prefix=no
16983   need_version=no
16984   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16985   shlibpath_var=LD_LIBRARY_PATH
16986   shlibpath_overrides_runpath=no
16987   hardcode_into_libs=yes
16988   ;;
16989
16990 uts4*)
16991   version_type=linux # correct to gnu/linux during the next big refactor
16992   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16993   soname_spec='$libname$release$shared_ext$major'
16994   shlibpath_var=LD_LIBRARY_PATH
16995   ;;
16996
16997 *)
16998   dynamic_linker=no
16999   ;;
17000 esac
17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17002 printf "%s\n" "$dynamic_linker" >&6; }
17003 test no = "$dynamic_linker" && can_build_shared=no
17004
17005 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17006 if test yes = "$GCC"; then
17007   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17008 fi
17009
17010 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17011   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17012 fi
17013
17014 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17015   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17016 fi
17017
17018 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17019 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17020
17021 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17022 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17023
17024 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17025 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17067 printf %s "checking how to hardcode library paths into programs... " >&6; }
17068 hardcode_action_CXX=
17069 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17070    test -n "$runpath_var_CXX" ||
17071    test yes = "$hardcode_automatic_CXX"; then
17072
17073   # We can hardcode non-existent directories.
17074   if test no != "$hardcode_direct_CXX" &&
17075      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17076      # have to relink, otherwise we might link with an installed library
17077      # when we should be linking with a yet-to-be-installed one
17078      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
17079      test no != "$hardcode_minus_L_CXX"; then
17080     # Linking always hardcodes the temporary library directory.
17081     hardcode_action_CXX=relink
17082   else
17083     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17084     hardcode_action_CXX=immediate
17085   fi
17086 else
17087   # We cannot hardcode anything, or else we can only hardcode existing
17088   # directories.
17089   hardcode_action_CXX=unsupported
17090 fi
17091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17092 printf "%s\n" "$hardcode_action_CXX" >&6; }
17093
17094 if test relink = "$hardcode_action_CXX" ||
17095    test yes = "$inherit_rpath_CXX"; then
17096   # Fast installation is not supported
17097   enable_fast_install=no
17098 elif test yes = "$shlibpath_overrides_runpath" ||
17099      test no = "$enable_shared"; then
17100   # Fast installation is not necessary
17101   enable_fast_install=needless
17102 fi
17103
17104
17105
17106
17107
17108
17109
17110   fi # test -n "$compiler"
17111
17112   CC=$lt_save_CC
17113   CFLAGS=$lt_save_CFLAGS
17114   LDCXX=$LD
17115   LD=$lt_save_LD
17116   GCC=$lt_save_GCC
17117   with_gnu_ld=$lt_save_with_gnu_ld
17118   lt_cv_path_LDCXX=$lt_cv_path_LD
17119   lt_cv_path_LD=$lt_save_path_LD
17120   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17121   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17122 fi # test yes != "$_lt_caught_CXX_error"
17123
17124 ac_ext=c
17125 ac_cpp='$CPP $CPPFLAGS'
17126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144         ac_config_commands="$ac_config_commands libtool"
17145
17146
17147
17148
17149 # Only expand once:
17150
17151
17152
17153 #AM_PROG_LD
17154 #AC_SUBST(LD)
17155 #AC_PROG_INSTALL
17156 #AC_PROG_MAKE_SET
17157 #AC_PROG_LN_S
17158
17159 #
17160 # Tests for Windows
17161 #
17162
17163
17164
17165 # Configure libtool
17166 # Check whether --enable-shared was given.
17167 if test ${enable_shared+y}
17168 then :
17169   enableval=$enable_shared; p=${PACKAGE-default}
17170     case $enableval in
17171     yes) enable_shared=yes ;;
17172     no) enable_shared=no ;;
17173     *)
17174       enable_shared=no
17175       # Look at the argument we got.  We use all the common list separators.
17176       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17177       for pkg in $enableval; do
17178         IFS=$lt_save_ifs
17179         if test "X$pkg" = "X$p"; then
17180           enable_shared=yes
17181         fi
17182       done
17183       IFS=$lt_save_ifs
17184       ;;
17185     esac
17186 else $as_nop
17187   enable_shared=yes
17188 fi
17189
17190
17191
17192
17193
17194
17195 # Check whether --enable-static was given.
17196 if test ${enable_static+y}
17197 then :
17198   enableval=$enable_static; p=${PACKAGE-default}
17199     case $enableval in
17200     yes) enable_static=yes ;;
17201     no) enable_static=no ;;
17202     *)
17203      enable_static=no
17204       # Look at the argument we got.  We use all the common list separators.
17205       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17206       for pkg in $enableval; do
17207         IFS=$lt_save_ifs
17208         if test "X$pkg" = "X$p"; then
17209           enable_static=yes
17210         fi
17211       done
17212       IFS=$lt_save_ifs
17213       ;;
17214     esac
17215 else $as_nop
17216   enable_static=yes
17217 fi
17218
17219
17220
17221
17222
17223
17224 enable_win32_dll=yes
17225
17226 case $host in
17227 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
17228   if test -n "$ac_tool_prefix"; then
17229   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17230 set dummy ${ac_tool_prefix}as; ac_word=$2
17231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232 printf %s "checking for $ac_word... " >&6; }
17233 if test ${ac_cv_prog_AS+y}
17234 then :
17235   printf %s "(cached) " >&6
17236 else $as_nop
17237   if test -n "$AS"; then
17238   ac_cv_prog_AS="$AS" # Let the user override the test.
17239 else
17240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17241 for as_dir in $PATH
17242 do
17243   IFS=$as_save_IFS
17244   case $as_dir in #(((
17245     '') as_dir=./ ;;
17246     */) ;;
17247     *) as_dir=$as_dir/ ;;
17248   esac
17249     for ac_exec_ext in '' $ac_executable_extensions; do
17250   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17251     ac_cv_prog_AS="${ac_tool_prefix}as"
17252     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17253     break 2
17254   fi
17255 done
17256   done
17257 IFS=$as_save_IFS
17258
17259 fi
17260 fi
17261 AS=$ac_cv_prog_AS
17262 if test -n "$AS"; then
17263   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17264 printf "%s\n" "$AS" >&6; }
17265 else
17266   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17267 printf "%s\n" "no" >&6; }
17268 fi
17269
17270
17271 fi
17272 if test -z "$ac_cv_prog_AS"; then
17273   ac_ct_AS=$AS
17274   # Extract the first word of "as", so it can be a program name with args.
17275 set dummy as; ac_word=$2
17276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 printf %s "checking for $ac_word... " >&6; }
17278 if test ${ac_cv_prog_ac_ct_AS+y}
17279 then :
17280   printf %s "(cached) " >&6
17281 else $as_nop
17282   if test -n "$ac_ct_AS"; then
17283   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
17284 else
17285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286 for as_dir in $PATH
17287 do
17288   IFS=$as_save_IFS
17289   case $as_dir in #(((
17290     '') as_dir=./ ;;
17291     */) ;;
17292     *) as_dir=$as_dir/ ;;
17293   esac
17294     for ac_exec_ext in '' $ac_executable_extensions; do
17295   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17296     ac_cv_prog_ac_ct_AS="as"
17297     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17298     break 2
17299   fi
17300 done
17301   done
17302 IFS=$as_save_IFS
17303
17304 fi
17305 fi
17306 ac_ct_AS=$ac_cv_prog_ac_ct_AS
17307 if test -n "$ac_ct_AS"; then
17308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
17309 printf "%s\n" "$ac_ct_AS" >&6; }
17310 else
17311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312 printf "%s\n" "no" >&6; }
17313 fi
17314
17315   if test "x$ac_ct_AS" = x; then
17316     AS="false"
17317   else
17318     case $cross_compiling:$ac_tool_warned in
17319 yes:)
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17322 ac_tool_warned=yes ;;
17323 esac
17324     AS=$ac_ct_AS
17325   fi
17326 else
17327   AS="$ac_cv_prog_AS"
17328 fi
17329
17330   if test -n "$ac_tool_prefix"; then
17331   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
17332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17334 printf %s "checking for $ac_word... " >&6; }
17335 if test ${ac_cv_prog_DLLTOOL+y}
17336 then :
17337   printf %s "(cached) " >&6
17338 else $as_nop
17339   if test -n "$DLLTOOL"; then
17340   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17341 else
17342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17343 for as_dir in $PATH
17344 do
17345   IFS=$as_save_IFS
17346   case $as_dir in #(((
17347     '') as_dir=./ ;;
17348     */) ;;
17349     *) as_dir=$as_dir/ ;;
17350   esac
17351     for ac_exec_ext in '' $ac_executable_extensions; do
17352   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17353     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
17354     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17355     break 2
17356   fi
17357 done
17358   done
17359 IFS=$as_save_IFS
17360
17361 fi
17362 fi
17363 DLLTOOL=$ac_cv_prog_DLLTOOL
17364 if test -n "$DLLTOOL"; then
17365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
17366 printf "%s\n" "$DLLTOOL" >&6; }
17367 else
17368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 printf "%s\n" "no" >&6; }
17370 fi
17371
17372
17373 fi
17374 if test -z "$ac_cv_prog_DLLTOOL"; then
17375   ac_ct_DLLTOOL=$DLLTOOL
17376   # Extract the first word of "dlltool", so it can be a program name with args.
17377 set dummy dlltool; ac_word=$2
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17379 printf %s "checking for $ac_word... " >&6; }
17380 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
17381 then :
17382   printf %s "(cached) " >&6
17383 else $as_nop
17384   if test -n "$ac_ct_DLLTOOL"; then
17385   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
17386 else
17387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17388 for as_dir in $PATH
17389 do
17390   IFS=$as_save_IFS
17391   case $as_dir in #(((
17392     '') as_dir=./ ;;
17393     */) ;;
17394     *) as_dir=$as_dir/ ;;
17395   esac
17396     for ac_exec_ext in '' $ac_executable_extensions; do
17397   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17398     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
17399     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17400     break 2
17401   fi
17402 done
17403   done
17404 IFS=$as_save_IFS
17405
17406 fi
17407 fi
17408 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
17409 if test -n "$ac_ct_DLLTOOL"; then
17410   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
17411 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
17412 else
17413   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414 printf "%s\n" "no" >&6; }
17415 fi
17416
17417   if test "x$ac_ct_DLLTOOL" = x; then
17418     DLLTOOL="false"
17419   else
17420     case $cross_compiling:$ac_tool_warned in
17421 yes:)
17422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17424 ac_tool_warned=yes ;;
17425 esac
17426     DLLTOOL=$ac_ct_DLLTOOL
17427   fi
17428 else
17429   DLLTOOL="$ac_cv_prog_DLLTOOL"
17430 fi
17431
17432   if test -n "$ac_tool_prefix"; then
17433   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
17434 set dummy ${ac_tool_prefix}objdump; ac_word=$2
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17436 printf %s "checking for $ac_word... " >&6; }
17437 if test ${ac_cv_prog_OBJDUMP+y}
17438 then :
17439   printf %s "(cached) " >&6
17440 else $as_nop
17441   if test -n "$OBJDUMP"; then
17442   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
17443 else
17444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17445 for as_dir in $PATH
17446 do
17447   IFS=$as_save_IFS
17448   case $as_dir in #(((
17449     '') as_dir=./ ;;
17450     */) ;;
17451     *) as_dir=$as_dir/ ;;
17452   esac
17453     for ac_exec_ext in '' $ac_executable_extensions; do
17454   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17455     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
17456     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17457     break 2
17458   fi
17459 done
17460   done
17461 IFS=$as_save_IFS
17462
17463 fi
17464 fi
17465 OBJDUMP=$ac_cv_prog_OBJDUMP
17466 if test -n "$OBJDUMP"; then
17467   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
17468 printf "%s\n" "$OBJDUMP" >&6; }
17469 else
17470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17471 printf "%s\n" "no" >&6; }
17472 fi
17473
17474
17475 fi
17476 if test -z "$ac_cv_prog_OBJDUMP"; then
17477   ac_ct_OBJDUMP=$OBJDUMP
17478   # Extract the first word of "objdump", so it can be a program name with args.
17479 set dummy objdump; ac_word=$2
17480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17481 printf %s "checking for $ac_word... " >&6; }
17482 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
17483 then :
17484   printf %s "(cached) " >&6
17485 else $as_nop
17486   if test -n "$ac_ct_OBJDUMP"; then
17487   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
17488 else
17489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17490 for as_dir in $PATH
17491 do
17492   IFS=$as_save_IFS
17493   case $as_dir in #(((
17494     '') as_dir=./ ;;
17495     */) ;;
17496     *) as_dir=$as_dir/ ;;
17497   esac
17498     for ac_exec_ext in '' $ac_executable_extensions; do
17499   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17500     ac_cv_prog_ac_ct_OBJDUMP="objdump"
17501     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17502     break 2
17503   fi
17504 done
17505   done
17506 IFS=$as_save_IFS
17507
17508 fi
17509 fi
17510 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
17511 if test -n "$ac_ct_OBJDUMP"; then
17512   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
17513 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
17514 else
17515   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17516 printf "%s\n" "no" >&6; }
17517 fi
17518
17519   if test "x$ac_ct_OBJDUMP" = x; then
17520     OBJDUMP="false"
17521   else
17522     case $cross_compiling:$ac_tool_warned in
17523 yes:)
17524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17526 ac_tool_warned=yes ;;
17527 esac
17528     OBJDUMP=$ac_ct_OBJDUMP
17529   fi
17530 else
17531   OBJDUMP="$ac_cv_prog_OBJDUMP"
17532 fi
17533
17534   ;;
17535 esac
17536
17537 test -z "$AS" && AS=as
17538
17539
17540
17541
17542
17543 test -z "$DLLTOOL" && DLLTOOL=dlltool
17544
17545
17546 test -z "$OBJDUMP" && OBJDUMP=objdump
17547
17548
17549
17550
17551
17552
17553
17554
17555 LIB_PLUGINS=''
17556
17557 # Add configure option --enable-maintainer-mode which enables dependency
17558 # checking and generation useful to package maintainers.  This is made an
17559 # option to avoid confusing end users.
17560
17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17562 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17563     # Check whether --enable-maintainer-mode was given.
17564 if test ${enable_maintainer_mode+y}
17565 then :
17566   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17567 else $as_nop
17568   USE_MAINTAINER_MODE=no
17569 fi
17570
17571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17572 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
17573    if test $USE_MAINTAINER_MODE = yes; then
17574   MAINTAINER_MODE_TRUE=
17575   MAINTAINER_MODE_FALSE='#'
17576 else
17577   MAINTAINER_MODE_TRUE='#'
17578   MAINTAINER_MODE_FALSE=
17579 fi
17580
17581   MAINT=$MAINTAINER_MODE_TRUE
17582
17583
17584
17585 # If the C compiler supports the keyword inline, do nothing. Otherwise
17586 # define inline to __inline__ or __inline if it accepts one of those,
17587 # otherwise define inline to be empty.
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17589 printf %s "checking for inline... " >&6; }
17590 if test ${ac_cv_c_inline+y}
17591 then :
17592   printf %s "(cached) " >&6
17593 else $as_nop
17594   ac_cv_c_inline=no
17595 for ac_kw in inline __inline__ __inline; do
17596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17597 /* end confdefs.h.  */
17598 #ifndef __cplusplus
17599 typedef int foo_t;
17600 static $ac_kw foo_t static_foo (void) {return 0; }
17601 $ac_kw foo_t foo (void) {return 0; }
17602 #endif
17603
17604 _ACEOF
17605 if ac_fn_c_try_compile "$LINENO"
17606 then :
17607   ac_cv_c_inline=$ac_kw
17608 fi
17609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17610   test "$ac_cv_c_inline" != no && break
17611 done
17612
17613 fi
17614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17615 printf "%s\n" "$ac_cv_c_inline" >&6; }
17616
17617 case $ac_cv_c_inline in
17618   inline | yes) ;;
17619   *)
17620     case $ac_cv_c_inline in
17621       no) ac_val=;;
17622       *) ac_val=$ac_cv_c_inline;;
17623     esac
17624     cat >>confdefs.h <<_ACEOF
17625 #ifndef __cplusplus
17626 #define inline $ac_val
17627 #endif
17628 _ACEOF
17629     ;;
17630 esac
17631
17632
17633
17634 # Check if the C compiler supports the "visibility" function attribute
17635 # If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
17636
17637
17638
17639     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility))" >&5
17640 printf %s "checking for __attribute__((visibility))... " >&6; }
17641 if test ${ax_cv_have_func_attribute_visibility+y}
17642 then :
17643   printf %s "(cached) " >&6
17644 else $as_nop
17645
17646         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h.  */
17648
17649
17650                     int foo_def( void ) __attribute__((visibility("default")));
17651                     int foo_hid( void ) __attribute__((visibility("hidden")));
17652                     int foo_int( void ) __attribute__((visibility("internal")));
17653                     int foo_pro( void ) __attribute__((visibility("protected")));
17654
17655 int
17656 main (void)
17657 {
17658
17659   ;
17660   return 0;
17661 }
17662
17663 _ACEOF
17664 if ac_fn_c_try_link "$LINENO"
17665 then :
17666                                       if grep -- -Wattributes conftest.err
17667 then :
17668   ax_cv_have_func_attribute_visibility=no
17669 else $as_nop
17670   ax_cv_have_func_attribute_visibility=yes
17671 fi
17672 else $as_nop
17673   ax_cv_have_func_attribute_visibility=no
17674 fi
17675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17676     conftest$ac_exeext conftest.$ac_ext
17677
17678 fi
17679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_visibility" >&5
17680 printf "%s\n" "$ax_cv_have_func_attribute_visibility" >&6; }
17681
17682     if test yes = $ax_cv_have_func_attribute_visibility
17683 then :
17684
17685 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
17686
17687 fi
17688
17689
17690
17691
17692 # Check if the compiler supports "-fvisibility=hidden" and if yes, add it to CFLAGS
17693 # This means that symbols that are not marked explicitly for export (CMSAPI)
17694 # will not be reachable in the shared library.
17695
17696
17697
17698
17699 for flag in "-fvisibility=hidden"; do
17700   as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17702 printf %s "checking whether C compiler accepts $flag... " >&6; }
17703 if eval test \${$as_CACHEVAR+y}
17704 then :
17705   printf %s "(cached) " >&6
17706 else $as_nop
17707
17708   ax_check_save_flags=$CFLAGS
17709   CFLAGS="$CFLAGS  $flag"
17710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711 /* end confdefs.h.  */
17712
17713 int
17714 main (void)
17715 {
17716
17717   ;
17718   return 0;
17719 }
17720 _ACEOF
17721 if ac_fn_c_try_compile "$LINENO"
17722 then :
17723   eval "$as_CACHEVAR=yes"
17724 else $as_nop
17725   eval "$as_CACHEVAR=no"
17726 fi
17727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17728   CFLAGS=$ax_check_save_flags
17729 fi
17730 eval ac_res=\$$as_CACHEVAR
17731                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17732 printf "%s\n" "$ac_res" >&6; }
17733 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17734 then :
17735
17736 if test ${CFLAGS+y}
17737 then :
17738
17739   case " $CFLAGS " in #(
17740   *" $flag "*) :
17741     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17742   (: CFLAGS already contains $flag) 2>&5
17743   ac_status=$?
17744   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17745   test $ac_status = 0; } ;; #(
17746   *) :
17747
17748      as_fn_append CFLAGS " $flag"
17749      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17750   (: CFLAGS="$CFLAGS") 2>&5
17751   ac_status=$?
17752   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17753   test $ac_status = 0; }
17754      ;;
17755 esac
17756
17757 else $as_nop
17758
17759   CFLAGS=$flag
17760   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17761   (: CFLAGS="$CFLAGS") 2>&5
17762   ac_status=$?
17763   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17764   test $ac_status = 0; }
17765
17766 fi
17767
17768 else $as_nop
17769   :
17770 fi
17771
17772 done
17773
17774
17775 # If words are stored with the most significant byte first (like
17776 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
17777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17778 printf %s "checking whether byte ordering is bigendian... " >&6; }
17779 if test ${ac_cv_c_bigendian+y}
17780 then :
17781   printf %s "(cached) " >&6
17782 else $as_nop
17783   ac_cv_c_bigendian=unknown
17784     # See if we're dealing with a universal compiler.
17785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h.  */
17787 #ifndef __APPLE_CC__
17788                not a universal capable compiler
17789              #endif
17790              typedef int dummy;
17791
17792 _ACEOF
17793 if ac_fn_c_try_compile "$LINENO"
17794 then :
17795
17796         # Check for potential -arch flags.  It is not universal unless
17797         # there are at least two -arch flags with different values.
17798         ac_arch=
17799         ac_prev=
17800         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
17801          if test -n "$ac_prev"; then
17802            case $ac_word in
17803              i?86 | x86_64 | ppc | ppc64)
17804                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
17805                  ac_arch=$ac_word
17806                else
17807                  ac_cv_c_bigendian=universal
17808                  break
17809                fi
17810                ;;
17811            esac
17812            ac_prev=
17813          elif test "x$ac_word" = "x-arch"; then
17814            ac_prev=arch
17815          fi
17816        done
17817 fi
17818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17819     if test $ac_cv_c_bigendian = unknown; then
17820       # See if sys/param.h defines the BYTE_ORDER macro.
17821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h.  */
17823 #include <sys/types.h>
17824              #include <sys/param.h>
17825
17826 int
17827 main (void)
17828 {
17829 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17830                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17831                      && LITTLE_ENDIAN)
17832               bogus endian macros
17833              #endif
17834
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 if ac_fn_c_try_compile "$LINENO"
17840 then :
17841   # It does; now see whether it defined to BIG_ENDIAN or not.
17842          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h.  */
17844 #include <sys/types.h>
17845                 #include <sys/param.h>
17846
17847 int
17848 main (void)
17849 {
17850 #if BYTE_ORDER != BIG_ENDIAN
17851                  not big endian
17852                 #endif
17853
17854   ;
17855   return 0;
17856 }
17857 _ACEOF
17858 if ac_fn_c_try_compile "$LINENO"
17859 then :
17860   ac_cv_c_bigendian=yes
17861 else $as_nop
17862   ac_cv_c_bigendian=no
17863 fi
17864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17865 fi
17866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17867     fi
17868     if test $ac_cv_c_bigendian = unknown; then
17869       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17870       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17871 /* end confdefs.h.  */
17872 #include <limits.h>
17873
17874 int
17875 main (void)
17876 {
17877 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17878               bogus endian macros
17879              #endif
17880
17881   ;
17882   return 0;
17883 }
17884 _ACEOF
17885 if ac_fn_c_try_compile "$LINENO"
17886 then :
17887   # It does; now see whether it defined to _BIG_ENDIAN or not.
17888          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17889 /* end confdefs.h.  */
17890 #include <limits.h>
17891
17892 int
17893 main (void)
17894 {
17895 #ifndef _BIG_ENDIAN
17896                  not big endian
17897                 #endif
17898
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 if ac_fn_c_try_compile "$LINENO"
17904 then :
17905   ac_cv_c_bigendian=yes
17906 else $as_nop
17907   ac_cv_c_bigendian=no
17908 fi
17909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17910 fi
17911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17912     fi
17913     if test $ac_cv_c_bigendian = unknown; then
17914       # Compile a test program.
17915       if test "$cross_compiling" = yes
17916 then :
17917   # Try to guess by grepping values from an object file.
17918          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h.  */
17920 unsigned short int ascii_mm[] =
17921                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17922                 unsigned short int ascii_ii[] =
17923                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17924                 int use_ascii (int i) {
17925                   return ascii_mm[i] + ascii_ii[i];
17926                 }
17927                 unsigned short int ebcdic_ii[] =
17928                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17929                 unsigned short int ebcdic_mm[] =
17930                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17931                 int use_ebcdic (int i) {
17932                   return ebcdic_mm[i] + ebcdic_ii[i];
17933                 }
17934                 extern int foo;
17935
17936 int
17937 main (void)
17938 {
17939 return use_ascii (foo) == use_ebcdic (foo);
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 if ac_fn_c_try_compile "$LINENO"
17945 then :
17946   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17947               ac_cv_c_bigendian=yes
17948             fi
17949             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17950               if test "$ac_cv_c_bigendian" = unknown; then
17951                 ac_cv_c_bigendian=no
17952               else
17953                 # finding both strings is unlikely to happen, but who knows?
17954                 ac_cv_c_bigendian=unknown
17955               fi
17956             fi
17957 fi
17958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17959 else $as_nop
17960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h.  */
17962 $ac_includes_default
17963 int
17964 main (void)
17965 {
17966
17967              /* Are we little or big endian?  From Harbison&Steele.  */
17968              union
17969              {
17970                long int l;
17971                char c[sizeof (long int)];
17972              } u;
17973              u.l = 1;
17974              return u.c[sizeof (long int) - 1] == 1;
17975
17976   ;
17977   return 0;
17978 }
17979 _ACEOF
17980 if ac_fn_c_try_run "$LINENO"
17981 then :
17982   ac_cv_c_bigendian=no
17983 else $as_nop
17984   ac_cv_c_bigendian=yes
17985 fi
17986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17987   conftest.$ac_objext conftest.beam conftest.$ac_ext
17988 fi
17989
17990     fi
17991 fi
17992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17993 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
17994  case $ac_cv_c_bigendian in #(
17995    yes)
17996      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
17997 ;; #(
17998    no)
17999       ;; #(
18000    universal)
18001
18002 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18003
18004      ;; #(
18005    *)
18006      as_fn_error $? "unknown endianness
18007  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18008  esac
18009
18010
18011 # Check for threadsafe variants of gmtime
18012 # Note: check for gmtime_s is a bit more complex as it is implemented as a macro
18013
18014   for ac_func in gmtime_r
18015 do :
18016   ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
18017 if test "x$ac_cv_func_gmtime_r" = xyes
18018 then :
18019   printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
18020
18021 else $as_nop
18022
18023                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmtime_s" >&5
18024 printf %s "checking for gmtime_s... " >&6; }
18025                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18026 /* end confdefs.h.  */
18027
18028                  #include <time.h>
18029 int
18030 main (void)
18031 {
18032
18033                    time_t t;
18034                    struct tm m;
18035                    gmtime_s(&m, &t);
18036                    return 0;
18037
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 if ac_fn_c_try_link "$LINENO"
18043 then :
18044   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 printf "%s\n" "yes" >&6; }
18046
18047 printf "%s\n" "#define HAVE_GMTIME_S 1" >>confdefs.h
18048
18049 else $as_nop
18050   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18051 printf "%s\n" "no" >&6; }
18052
18053 fi
18054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18055     conftest$ac_exeext conftest.$ac_ext
18056 fi
18057
18058 done
18059
18060 # Point to JPEG installed in DIR or disable JPEG with --without-jpeg.
18061
18062 # Check whether --with-jpeg was given.
18063 if test ${with_jpeg+y}
18064 then :
18065   withval=$with_jpeg;
18066             if  test "x$withval" = "xno" ; then
18067               with_jpeg='no'
18068             else
18069               if  test "x$withval" != "xyes" ; then
18070                 with_jpeg=$withval
18071                 JPEG_DIR=$withval
18072                 CPPFLAGS="$CPPFLAGS -I$JPEG_DIR/include"
18073                 LDFLAGS="$LDFLAGS -L$JPEG_DIR/lib"
18074               fi
18075               with_jpeg='yes'
18076             fi
18077
18078 else $as_nop
18079   with_jpeg='yes'
18080 fi
18081
18082
18083 # Point to TIFF installed in DIR or disable TIFF with --without-tiff.
18084
18085 # Check whether --with-tiff was given.
18086 if test ${with_tiff+y}
18087 then :
18088   withval=$with_tiff;
18089             if  test "x$withval" = "xno" ; then
18090               with_tiff='no'
18091             else
18092               if  test "x$withval" != "xyes" ; then
18093                 with_tiff=$withval
18094                 TIFF_DIR=$withval
18095                 CPPFLAGS="$CPPFLAGS -I$TIFF_DIR/include"
18096                 LDFLAGS="$LDFLAGS -L$TIFF_DIR/lib"
18097               fi
18098               with_tiff='yes'
18099             fi
18100
18101 else $as_nop
18102   with_tiff='yes'
18103 fi
18104
18105
18106 # Disable ZLIB
18107
18108 # Check whether --with-zlib was given.
18109 if test ${with_zlib+y}
18110 then :
18111   withval=$with_zlib; with_zlib=$withval
18112 else $as_nop
18113   with_zlib='yes'
18114 fi
18115
18116
18117 #fast_float plugin:
18118
18119 # Check whether --with-fastfloat was given.
18120 if test ${with_fastfloat+y}
18121 then :
18122   withval=$with_fastfloat;
18123                 with_fastfloat=$withval
18124
18125 else $as_nop
18126
18127                 with_fastfloat='no'
18128
18129 fi
18130
18131 if test "x$with_fastfloat" = "xyes"
18132 then
18133             LIB_PLUGINS="$LIB_PLUGINS -llcms2_fast_float"
18134 fi
18135
18136 #multi threaded plugin:
18137
18138 # Check whether --with-threaded was given.
18139 if test ${with_threaded+y}
18140 then :
18141   withval=$with_threaded;
18142                 with_threaded=$withval
18143
18144 else $as_nop
18145
18146                 with_threaded='no'
18147
18148 fi
18149
18150 if test "x$with_threaded" = "xyes"
18151 then
18152             LIB_PLUGINS="$LIB_PLUGINS -llcms2_threaded"
18153 fi
18154
18155 #
18156 # Determine POSIX threads settings
18157 #
18158 # Enable support for POSIX thread APIs
18159
18160 # Check whether --with-threads was given.
18161 if test ${with_threads+y}
18162 then :
18163   withval=$with_threads; with_threads=$withval
18164 else $as_nop
18165   with_threads='yes'
18166 fi
18167
18168
18169 have_threads=no
18170 if test "$with_threads" != 'no'
18171 then
18172
18173
18174
18175
18176
18177
18178 ac_ext=c
18179 ac_cpp='$CPP $CPPFLAGS'
18180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18183
18184 ax_pthread_ok=no
18185
18186 # We used to check for pthread.h first, but this fails if pthread.h
18187 # requires special compiler flags (e.g. on Tru64 or Sequent).
18188 # It gets checked for in the link test anyway.
18189
18190 # First of all, check if the user has set any of the PTHREAD_LIBS,
18191 # etcetera environment variables, and if threads linking works using
18192 # them:
18193 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
18194         ax_pthread_save_CC="$CC"
18195         ax_pthread_save_CFLAGS="$CFLAGS"
18196         ax_pthread_save_LIBS="$LIBS"
18197         if test "x$PTHREAD_CC" != "x"
18198 then :
18199   CC="$PTHREAD_CC"
18200 fi
18201         if test "x$PTHREAD_CXX" != "x"
18202 then :
18203   CXX="$PTHREAD_CXX"
18204 fi
18205         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18206         LIBS="$PTHREAD_LIBS $LIBS"
18207         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
18208 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
18209         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h.  */
18211
18212 /* Override any GCC internal prototype to avoid an error.
18213    Use char because int might match the return type of a GCC
18214    builtin and then its argument prototype would still apply.  */
18215 char pthread_join ();
18216 int
18217 main (void)
18218 {
18219 return pthread_join ();
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 if ac_fn_c_try_link "$LINENO"
18225 then :
18226   ax_pthread_ok=yes
18227 fi
18228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18229     conftest$ac_exeext conftest.$ac_ext
18230         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18231 printf "%s\n" "$ax_pthread_ok" >&6; }
18232         if test "x$ax_pthread_ok" = "xno"; then
18233                 PTHREAD_LIBS=""
18234                 PTHREAD_CFLAGS=""
18235         fi
18236         CC="$ax_pthread_save_CC"
18237         CFLAGS="$ax_pthread_save_CFLAGS"
18238         LIBS="$ax_pthread_save_LIBS"
18239 fi
18240
18241 # We must check for the threads library under a number of different
18242 # names; the ordering is very important because some systems
18243 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18244 # libraries is broken (non-POSIX).
18245
18246 # Create a list of thread flags to try. Items with a "," contain both
18247 # C compiler flags (before ",") and linker flags (after ","). Other items
18248 # starting with a "-" are C compiler flags, and remaining items are
18249 # library names, except for "none" which indicates that we try without
18250 # any flags at all, and "pthread-config" which is a program returning
18251 # the flags for the Pth emulation library.
18252
18253 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18254
18255 # The ordering *is* (sometimes) important.  Some notes on the
18256 # individual items follow:
18257
18258 # pthreads: AIX (must check this before -lpthread)
18259 # none: in case threads are in libc; should be tried before -Kthread and
18260 #       other compiler flags to prevent continual compiler warnings
18261 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18262 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
18263 #           (Note: HP C rejects this with "bad form for `-t' option")
18264 # -pthreads: Solaris/gcc (Note: HP C also rejects)
18265 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18266 #      doesn't hurt to check since this sometimes defines pthreads and
18267 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
18268 #      is present but should not be used directly; and before -mthreads,
18269 #      because the compiler interprets this as "-mt" + "-hreads")
18270 # -mthreads: Mingw32/gcc, Lynx/gcc
18271 # pthread: Linux, etcetera
18272 # --thread-safe: KAI C++
18273 # pthread-config: use pthread-config program (for GNU Pth library)
18274
18275 case $host_os in
18276
18277         freebsd*)
18278
18279         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18280         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18281
18282         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
18283         ;;
18284
18285         hpux*)
18286
18287         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
18288         # multi-threading and also sets -lpthread."
18289
18290         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
18291         ;;
18292
18293         openedition*)
18294
18295         # IBM z/OS requires a feature-test macro to be defined in order to
18296         # enable POSIX threads at all, so give the user a hint if this is
18297         # not set. (We don't define these ourselves, as they can affect
18298         # other portions of the system API in unpredictable ways.)
18299
18300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h.  */
18302
18303 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
18304              AX_PTHREAD_ZOS_MISSING
18305 #            endif
18306
18307 _ACEOF
18308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18309   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
18310 then :
18311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
18312 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
18313 fi
18314 rm -rf conftest*
18315
18316         ;;
18317
18318         solaris*)
18319
18320         # On Solaris (at least, for some versions), libc contains stubbed
18321         # (non-functional) versions of the pthreads routines, so link-based
18322         # tests will erroneously succeed. (N.B.: The stubs are missing
18323         # pthread_cleanup_push, or rather a function called by this macro,
18324         # so we could check for that, but who knows whether they'll stub
18325         # that too in a future libc.)  So we'll check first for the
18326         # standard Solaris way of linking pthreads (-mt -lpthread).
18327
18328         ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
18329         ;;
18330 esac
18331
18332 # Are we compiling with Clang?
18333
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
18335 printf %s "checking whether $CC is Clang... " >&6; }
18336 if test ${ax_cv_PTHREAD_CLANG+y}
18337 then :
18338   printf %s "(cached) " >&6
18339 else $as_nop
18340   ax_cv_PTHREAD_CLANG=no
18341      # Note that Autoconf sets GCC=yes for Clang as well as GCC
18342      if test "x$GCC" = "xyes"; then
18343         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h.  */
18345 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
18346 #            if defined(__clang__) && defined(__llvm__)
18347              AX_PTHREAD_CC_IS_CLANG
18348 #            endif
18349
18350 _ACEOF
18351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18352   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
18353 then :
18354   ax_cv_PTHREAD_CLANG=yes
18355 fi
18356 rm -rf conftest*
18357
18358      fi
18359
18360 fi
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
18362 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
18363 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
18364
18365
18366 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
18367
18368 # Note that for GCC and Clang -pthread generally implies -lpthread,
18369 # except when -nostdlib is passed.
18370 # This is problematic using libtool to build C++ shared libraries with pthread:
18371 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
18372 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
18373 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
18374 # To solve this, first try -pthread together with -lpthread for GCC
18375
18376 if test "x$GCC" = "xyes"
18377 then :
18378   ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
18379 fi
18380
18381 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
18382
18383 if test "x$ax_pthread_clang" = "xyes"
18384 then :
18385   ax_pthread_flags="-pthread,-lpthread -pthread"
18386 fi
18387
18388
18389 # The presence of a feature test macro requesting re-entrant function
18390 # definitions is, on some systems, a strong hint that pthreads support is
18391 # correctly enabled
18392
18393 case $host_os in
18394         darwin* | hpux* | linux* | osf* | solaris*)
18395         ax_pthread_check_macro="_REENTRANT"
18396         ;;
18397
18398         aix*)
18399         ax_pthread_check_macro="_THREAD_SAFE"
18400         ;;
18401
18402         *)
18403         ax_pthread_check_macro="--"
18404         ;;
18405 esac
18406 if test "x$ax_pthread_check_macro" = "x--"
18407 then :
18408   ax_pthread_check_cond=0
18409 else $as_nop
18410   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
18411 fi
18412
18413
18414 if test "x$ax_pthread_ok" = "xno"; then
18415 for ax_pthread_try_flag in $ax_pthread_flags; do
18416
18417         case $ax_pthread_try_flag in
18418                 none)
18419                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18420 printf %s "checking whether pthreads work without any flags... " >&6; }
18421                 ;;
18422
18423                 *,*)
18424                 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
18425                 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
18426                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
18427 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
18428                 ;;
18429
18430                 -*)
18431                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
18432 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
18433                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
18434                 ;;
18435
18436                 pthread-config)
18437                 # Extract the first word of "pthread-config", so it can be a program name with args.
18438 set dummy pthread-config; ac_word=$2
18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18440 printf %s "checking for $ac_word... " >&6; }
18441 if test ${ac_cv_prog_ax_pthread_config+y}
18442 then :
18443   printf %s "(cached) " >&6
18444 else $as_nop
18445   if test -n "$ax_pthread_config"; then
18446   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18447 else
18448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18449 for as_dir in $PATH
18450 do
18451   IFS=$as_save_IFS
18452   case $as_dir in #(((
18453     '') as_dir=./ ;;
18454     */) ;;
18455     *) as_dir=$as_dir/ ;;
18456   esac
18457     for ac_exec_ext in '' $ac_executable_extensions; do
18458   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18459     ac_cv_prog_ax_pthread_config="yes"
18460     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18461     break 2
18462   fi
18463 done
18464   done
18465 IFS=$as_save_IFS
18466
18467   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18468 fi
18469 fi
18470 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18471 if test -n "$ax_pthread_config"; then
18472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
18473 printf "%s\n" "$ax_pthread_config" >&6; }
18474 else
18475   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18476 printf "%s\n" "no" >&6; }
18477 fi
18478
18479
18480                 if test "x$ax_pthread_config" = "xno"
18481 then :
18482   continue
18483 fi
18484                 PTHREAD_CFLAGS="`pthread-config --cflags`"
18485                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18486                 ;;
18487
18488                 *)
18489                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
18490 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
18491                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
18492                 ;;
18493         esac
18494
18495         ax_pthread_save_CFLAGS="$CFLAGS"
18496         ax_pthread_save_LIBS="$LIBS"
18497         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18498         LIBS="$PTHREAD_LIBS $LIBS"
18499
18500         # Check for various functions.  We must include pthread.h,
18501         # since some functions may be macros.  (On the Sequent, we
18502         # need a special flag -Kthread to make this header compile.)
18503         # We check for pthread_join because it is in -lpthread on IRIX
18504         # while pthread_create is in libc.  We check for pthread_attr_init
18505         # due to DEC craziness with -lpthreads.  We check for
18506         # pthread_cleanup_push because it is one of the few pthread
18507         # functions on Solaris that doesn't have a non-functional libc stub.
18508         # We try pthread_create on general principles.
18509
18510         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h.  */
18512 #include <pthread.h>
18513 #                       if $ax_pthread_check_cond
18514 #                        error "$ax_pthread_check_macro must be defined"
18515 #                       endif
18516                         static void *some_global = NULL;
18517                         static void routine(void *a)
18518                           {
18519                              /* To avoid any unused-parameter or
18520                                 unused-but-set-parameter warning.  */
18521                              some_global = a;
18522                           }
18523                         static void *start_routine(void *a) { return a; }
18524 int
18525 main (void)
18526 {
18527 pthread_t th; pthread_attr_t attr;
18528                         pthread_create(&th, 0, start_routine, 0);
18529                         pthread_join(th, 0);
18530                         pthread_attr_init(&attr);
18531                         pthread_cleanup_push(routine, 0);
18532                         pthread_cleanup_pop(0) /* ; */
18533   ;
18534   return 0;
18535 }
18536 _ACEOF
18537 if ac_fn_c_try_link "$LINENO"
18538 then :
18539   ax_pthread_ok=yes
18540 fi
18541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18542     conftest$ac_exeext conftest.$ac_ext
18543
18544         CFLAGS="$ax_pthread_save_CFLAGS"
18545         LIBS="$ax_pthread_save_LIBS"
18546
18547         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18548 printf "%s\n" "$ax_pthread_ok" >&6; }
18549         if test "x$ax_pthread_ok" = "xyes"
18550 then :
18551   break
18552 fi
18553
18554         PTHREAD_LIBS=""
18555         PTHREAD_CFLAGS=""
18556 done
18557 fi
18558
18559
18560 # Clang needs special handling, because older versions handle the -pthread
18561 # option in a rather... idiosyncratic way
18562
18563 if test "x$ax_pthread_clang" = "xyes"; then
18564
18565         # Clang takes -pthread; it has never supported any other flag
18566
18567         # (Note 1: This will need to be revisited if a system that Clang
18568         # supports has POSIX threads in a separate library.  This tends not
18569         # to be the way of modern systems, but it's conceivable.)
18570
18571         # (Note 2: On some systems, notably Darwin, -pthread is not needed
18572         # to get POSIX threads support; the API is always present and
18573         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
18574         # -pthread does define _REENTRANT, and while the Darwin headers
18575         # ignore this macro, third-party headers might not.)
18576
18577         # However, older versions of Clang make a point of warning the user
18578         # that, in an invocation where only linking and no compilation is
18579         # taking place, the -pthread option has no effect ("argument unused
18580         # during compilation").  They expect -pthread to be passed in only
18581         # when source code is being compiled.
18582         #
18583         # Problem is, this is at odds with the way Automake and most other
18584         # C build frameworks function, which is that the same flags used in
18585         # compilation (CFLAGS) are also used in linking.  Many systems
18586         # supported by AX_PTHREAD require exactly this for POSIX threads
18587         # support, and in fact it is often not straightforward to specify a
18588         # flag that is used only in the compilation phase and not in
18589         # linking.  Such a scenario is extremely rare in practice.
18590         #
18591         # Even though use of the -pthread flag in linking would only print
18592         # a warning, this can be a nuisance for well-run software projects
18593         # that build with -Werror.  So if the active version of Clang has
18594         # this misfeature, we search for an option to squash it.
18595
18596         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
18597 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
18598 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
18599 then :
18600   printf %s "(cached) " >&6
18601 else $as_nop
18602   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
18603              # Create an alternate version of $ac_link that compiles and
18604              # links in two steps (.c -> .o, .o -> exe) instead of one
18605              # (.c -> exe), because the warning occurs only in the second
18606              # step
18607              ax_pthread_save_ac_link="$ac_link"
18608              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
18609              ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
18610              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
18611              ax_pthread_save_CFLAGS="$CFLAGS"
18612              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
18613                 if test "x$ax_pthread_try" = "xunknown"
18614 then :
18615   break
18616 fi
18617                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
18618                 ac_link="$ax_pthread_save_ac_link"
18619                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h.  */
18621 int main(void){return 0;}
18622 _ACEOF
18623 if ac_fn_c_try_link "$LINENO"
18624 then :
18625   ac_link="$ax_pthread_2step_ac_link"
18626                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h.  */
18628 int main(void){return 0;}
18629 _ACEOF
18630 if ac_fn_c_try_link "$LINENO"
18631 then :
18632   break
18633 fi
18634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18635     conftest$ac_exeext conftest.$ac_ext
18636
18637 fi
18638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18639     conftest$ac_exeext conftest.$ac_ext
18640              done
18641              ac_link="$ax_pthread_save_ac_link"
18642              CFLAGS="$ax_pthread_save_CFLAGS"
18643              if test "x$ax_pthread_try" = "x"
18644 then :
18645   ax_pthread_try=no
18646 fi
18647              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
18648
18649 fi
18650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
18651 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
18652
18653         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
18654                 no | unknown) ;;
18655                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
18656         esac
18657
18658 fi # $ax_pthread_clang = yes
18659
18660
18661
18662 # Various other checks:
18663 if test "x$ax_pthread_ok" = "xyes"; then
18664         ax_pthread_save_CFLAGS="$CFLAGS"
18665         ax_pthread_save_LIBS="$LIBS"
18666         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18667         LIBS="$PTHREAD_LIBS $LIBS"
18668
18669         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18670         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18671 printf %s "checking for joinable pthread attribute... " >&6; }
18672 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
18673 then :
18674   printf %s "(cached) " >&6
18675 else $as_nop
18676   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
18677              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18678                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18679 /* end confdefs.h.  */
18680 #include <pthread.h>
18681 int
18682 main (void)
18683 {
18684 int attr = $ax_pthread_attr; return attr /* ; */
18685   ;
18686   return 0;
18687 }
18688 _ACEOF
18689 if ac_fn_c_try_link "$LINENO"
18690 then :
18691   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
18692 fi
18693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18694     conftest$ac_exeext conftest.$ac_ext
18695              done
18696
18697 fi
18698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
18699 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
18700         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
18701                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
18702                test "x$ax_pthread_joinable_attr_defined" != "xyes"
18703 then :
18704
18705 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
18706
18707                ax_pthread_joinable_attr_defined=yes
18708
18709 fi
18710
18711         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
18712 printf %s "checking whether more special flags are required for pthreads... " >&6; }
18713 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
18714 then :
18715   printf %s "(cached) " >&6
18716 else $as_nop
18717   ax_cv_PTHREAD_SPECIAL_FLAGS=no
18718              case $host_os in
18719              solaris*)
18720              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
18721              ;;
18722              esac
18723
18724 fi
18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
18726 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
18727         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
18728                test "x$ax_pthread_special_flags_added" != "xyes"
18729 then :
18730   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
18731                ax_pthread_special_flags_added=yes
18732 fi
18733
18734         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
18735 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
18736 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
18737 then :
18738   printf %s "(cached) " >&6
18739 else $as_nop
18740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741 /* end confdefs.h.  */
18742 #include <pthread.h>
18743 int
18744 main (void)
18745 {
18746 int i = PTHREAD_PRIO_INHERIT;
18747                                                return i;
18748   ;
18749   return 0;
18750 }
18751 _ACEOF
18752 if ac_fn_c_try_link "$LINENO"
18753 then :
18754   ax_cv_PTHREAD_PRIO_INHERIT=yes
18755 else $as_nop
18756   ax_cv_PTHREAD_PRIO_INHERIT=no
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18759     conftest$ac_exeext conftest.$ac_ext
18760
18761 fi
18762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
18763 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
18764         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
18765                test "x$ax_pthread_prio_inherit_defined" != "xyes"
18766 then :
18767
18768 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
18769
18770                ax_pthread_prio_inherit_defined=yes
18771
18772 fi
18773
18774         CFLAGS="$ax_pthread_save_CFLAGS"
18775         LIBS="$ax_pthread_save_LIBS"
18776
18777         # More AIX lossage: compile with *_r variant
18778         if test "x$GCC" != "xyes"; then
18779             case $host_os in
18780                 aix*)
18781                 case "x/$CC" in #(
18782   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
18783     #handle absolute path differently from PATH based program lookup
18784                      case "x$CC" in #(
18785   x/*) :
18786
18787                            if as_fn_executable_p ${CC}_r
18788 then :
18789   PTHREAD_CC="${CC}_r"
18790 fi
18791                            if test "x${CXX}" != "x"
18792 then :
18793   if as_fn_executable_p ${CXX}_r
18794 then :
18795   PTHREAD_CXX="${CXX}_r"
18796 fi
18797 fi
18798                           ;; #(
18799   *) :
18800
18801                            for ac_prog in ${CC}_r
18802 do
18803   # Extract the first word of "$ac_prog", so it can be a program name with args.
18804 set dummy $ac_prog; ac_word=$2
18805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18806 printf %s "checking for $ac_word... " >&6; }
18807 if test ${ac_cv_prog_PTHREAD_CC+y}
18808 then :
18809   printf %s "(cached) " >&6
18810 else $as_nop
18811   if test -n "$PTHREAD_CC"; then
18812   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18813 else
18814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18815 for as_dir in $PATH
18816 do
18817   IFS=$as_save_IFS
18818   case $as_dir in #(((
18819     '') as_dir=./ ;;
18820     */) ;;
18821     *) as_dir=$as_dir/ ;;
18822   esac
18823     for ac_exec_ext in '' $ac_executable_extensions; do
18824   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18825     ac_cv_prog_PTHREAD_CC="$ac_prog"
18826     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18827     break 2
18828   fi
18829 done
18830   done
18831 IFS=$as_save_IFS
18832
18833 fi
18834 fi
18835 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18836 if test -n "$PTHREAD_CC"; then
18837   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18838 printf "%s\n" "$PTHREAD_CC" >&6; }
18839 else
18840   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 printf "%s\n" "no" >&6; }
18842 fi
18843
18844
18845   test -n "$PTHREAD_CC" && break
18846 done
18847 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18848
18849                            if test "x${CXX}" != "x"
18850 then :
18851   for ac_prog in ${CXX}_r
18852 do
18853   # Extract the first word of "$ac_prog", so it can be a program name with args.
18854 set dummy $ac_prog; ac_word=$2
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18856 printf %s "checking for $ac_word... " >&6; }
18857 if test ${ac_cv_prog_PTHREAD_CXX+y}
18858 then :
18859   printf %s "(cached) " >&6
18860 else $as_nop
18861   if test -n "$PTHREAD_CXX"; then
18862   ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
18863 else
18864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18865 for as_dir in $PATH
18866 do
18867   IFS=$as_save_IFS
18868   case $as_dir in #(((
18869     '') as_dir=./ ;;
18870     */) ;;
18871     *) as_dir=$as_dir/ ;;
18872   esac
18873     for ac_exec_ext in '' $ac_executable_extensions; do
18874   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18875     ac_cv_prog_PTHREAD_CXX="$ac_prog"
18876     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18877     break 2
18878   fi
18879 done
18880   done
18881 IFS=$as_save_IFS
18882
18883 fi
18884 fi
18885 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
18886 if test -n "$PTHREAD_CXX"; then
18887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
18888 printf "%s\n" "$PTHREAD_CXX" >&6; }
18889 else
18890   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18891 printf "%s\n" "no" >&6; }
18892 fi
18893
18894
18895   test -n "$PTHREAD_CXX" && break
18896 done
18897 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18898
18899 fi
18900
18901                       ;;
18902 esac
18903                      ;; #(
18904   *) :
18905      ;;
18906 esac
18907                 ;;
18908             esac
18909         fi
18910 fi
18911
18912 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
18913 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
18914
18915
18916
18917
18918
18919
18920 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18921 if test "x$ax_pthread_ok" = "xyes"; then
18922
18923 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
18924
18925         :
18926 else
18927         ax_pthread_ok=no
18928
18929 fi
18930 ac_ext=c
18931 ac_cpp='$CPP $CPPFLAGS'
18932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18935
18936
18937
18938   if test "$ax_pthread_ok" = yes
18939   then
18940     have_threads=yes
18941
18942     DEF_THREAD="$PTHREAD_CFLAGS"
18943     CFLAGS="$CFLAGS $DEF_THREAD"
18944     CXXFLAGS="$CXXFLAGS $DEF_THREAD"
18945
18946     if test "$CC" != "$PTHREAD_CC"
18947     then
18948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
18949 printf "%s\n" "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
18950       CC="$PTHREAD_CC"
18951     fi
18952     if test "$CXX" != "$PTHREAD_CXX"
18953     then
18954       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&5
18955 printf "%s\n" "$as_me: WARNING: Replacing compiler $CXX with compiler $PTHREAD_CXX to support pthreads." >&2;}
18956       CXX="$PTHREAD_CXX"
18957     fi
18958   fi
18959 fi
18960
18961 # check if compiler supports SSE2 intrinsics
18962 ac_ext=c
18963 ac_cpp='$CPP $CPPFLAGS'
18964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18967
18968
18969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports SSE2" >&5
18970 printf %s "checking whether compiler supports SSE2... " >&6; }
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h.  */
18973
18974     #include <emmintrin.h>
18975     int main() { __m128i n = _mm_set1_epi8(42); }
18976 _ACEOF
18977 if ac_fn_c_try_compile "$LINENO"
18978 then :
18979   ac_compiler_supports_sse2=yes
18980 else $as_nop
18981   ac_compiler_supports_sse2=no
18982 fi
18983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_compiler_supports_sse2" >&5
18985 printf "%s\n" "$ac_compiler_supports_sse2" >&6; }
18986 if test "x$ac_compiler_supports_sse2" != "xyes"
18987 then :
18988
18989 printf "%s\n" "#define CMS_DONT_USE_SSE2 1" >>confdefs.h
18990
18991 fi
18992
18993 ac_ext=c
18994 ac_cpp='$CPP $CPPFLAGS'
18995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18998
18999
19000 #
19001 # Find math library
19002 #
19003 LIB_MATH=''
19004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
19005 printf %s "checking for sqrt in -lm... " >&6; }
19006 if test ${ac_cv_lib_m_sqrt+y}
19007 then :
19008   printf %s "(cached) " >&6
19009 else $as_nop
19010   ac_check_lib_save_LIBS=$LIBS
19011 LIBS="-lm  $LIBS"
19012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19013 /* end confdefs.h.  */
19014
19015 /* Override any GCC internal prototype to avoid an error.
19016    Use char because int might match the return type of a GCC
19017    builtin and then its argument prototype would still apply.  */
19018 char sqrt ();
19019 int
19020 main (void)
19021 {
19022 return sqrt ();
19023   ;
19024   return 0;
19025 }
19026 _ACEOF
19027 if ac_fn_c_try_link "$LINENO"
19028 then :
19029   ac_cv_lib_m_sqrt=yes
19030 else $as_nop
19031   ac_cv_lib_m_sqrt=no
19032 fi
19033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19034     conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_check_lib_save_LIBS
19036 fi
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
19038 printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
19039 if test "x$ac_cv_lib_m_sqrt" = xyes
19040 then :
19041   LIB_MATH="-lm"
19042 fi
19043
19044 LIBS="$LIB_MATH $LIBS"
19045
19046
19047 #
19048 # Find Posix threads library
19049 #
19050 LIB_THREAD=''
19051 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'
19052 then
19053   for lib in pthread pthreads
19054   do
19055     if test "x$PTHREAD_LIBS" = "x" ; then
19056       as_ac_Lib=`printf "%s\n" "ac_cv_lib_$lib""_pthread_mutex_lock" | $as_tr_sh`
19057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -l$lib" >&5
19058 printf %s "checking for pthread_mutex_lock in -l$lib... " >&6; }
19059 if eval test \${$as_ac_Lib+y}
19060 then :
19061   printf %s "(cached) " >&6
19062 else $as_nop
19063   ac_check_lib_save_LIBS=$LIBS
19064 LIBS="-l$lib  $LIBS"
19065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19066 /* end confdefs.h.  */
19067
19068 /* Override any GCC internal prototype to avoid an error.
19069    Use char because int might match the return type of a GCC
19070    builtin and then its argument prototype would still apply.  */
19071 char pthread_mutex_lock ();
19072 int
19073 main (void)
19074 {
19075 return pthread_mutex_lock ();
19076   ;
19077   return 0;
19078 }
19079 _ACEOF
19080 if ac_fn_c_try_link "$LINENO"
19081 then :
19082   eval "$as_ac_Lib=yes"
19083 else $as_nop
19084   eval "$as_ac_Lib=no"
19085 fi
19086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19087     conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 eval ac_res=\$$as_ac_Lib
19091                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19092 printf "%s\n" "$ac_res" >&6; }
19093 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
19094 then :
19095   PTHREAD_LIBS=-l$lib
19096 fi
19097
19098     fi
19099   done
19100
19101   LIB_THREAD="$PTHREAD_LIBS"
19102   LIBS="$LIBS $LIB_THREAD"
19103
19104 printf "%s\n" "#define HasTHREADS 1" >>confdefs.h
19105
19106 else
19107
19108 printf "%s\n" "#define HasTHREADS 0" >>confdefs.h
19109
19110 fi
19111
19112
19113 #
19114 # Check for JPEG
19115 #
19116 have_jpeg='no'
19117 LIB_JPEG=''
19118 if test ! "$with_jpeg" = 'no'
19119 then
19120     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG support" >&5
19121 printf %s "checking for JPEG support... " >&6; }
19122     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19123 printf "%s\n" "" >&6; }
19124     failed=0;
19125     passed=0;
19126     ac_fn_c_check_header_compile "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
19127 if test "x$ac_cv_header_jconfig_h" = xyes
19128 then :
19129   passed=`expr $passed + 1`
19130 else $as_nop
19131   failed=`expr $failed + 1`
19132 fi
19133
19134     ac_fn_c_check_header_compile "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
19135 if test "x$ac_cv_header_jerror_h" = xyes
19136 then :
19137   passed=`expr $passed + 1`
19138 else $as_nop
19139   failed=`expr $failed + 1`
19140 fi
19141
19142     ac_fn_c_check_header_compile "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "#include <jconfig.h>
19143 "
19144 if test "x$ac_cv_header_jmorecfg_h" = xyes
19145 then :
19146   passed=`expr $passed + 1`
19147 else $as_nop
19148   failed=`expr $failed + 1`
19149 fi
19150
19151     ac_fn_c_check_header_compile "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
19152 if test "x$ac_cv_header_jpeglib_h" = xyes
19153 then :
19154   passed=`expr $passed + 1`
19155 else $as_nop
19156   failed=`expr $failed + 1`
19157 fi
19158
19159     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
19160 printf %s "checking for jpeg_read_header in -ljpeg... " >&6; }
19161 if test ${ac_cv_lib_jpeg_jpeg_read_header+y}
19162 then :
19163   printf %s "(cached) " >&6
19164 else $as_nop
19165   ac_check_lib_save_LIBS=$LIBS
19166 LIBS="-ljpeg  $LIBS"
19167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19168 /* end confdefs.h.  */
19169
19170 /* Override any GCC internal prototype to avoid an error.
19171    Use char because int might match the return type of a GCC
19172    builtin and then its argument prototype would still apply.  */
19173 char jpeg_read_header ();
19174 int
19175 main (void)
19176 {
19177 return jpeg_read_header ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 if ac_fn_c_try_link "$LINENO"
19183 then :
19184   ac_cv_lib_jpeg_jpeg_read_header=yes
19185 else $as_nop
19186   ac_cv_lib_jpeg_jpeg_read_header=no
19187 fi
19188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19189     conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19191 fi
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19193 printf "%s\n" "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
19194 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes
19195 then :
19196   passed=`expr $passed + 1`
19197 else $as_nop
19198   failed=`expr $failed + 1`
19199 fi
19200
19201
19202 # Test for compatible JPEG library
19203 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
19205 printf %s "checking for JPEG library is version 6b or later... " >&6; }
19206 if test ${ac_cv_jpeg_version_ok+y}
19207 then :
19208   printf %s "(cached) " >&6
19209 else $as_nop
19210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h.  */
19212 #include <stdio.h>
19213 #include <stdlib.h>
19214 #include <jpeglib.h>
19215
19216 int
19217 main (void)
19218 {
19219
19220 #if JPEG_LIB_VERSION < 62
19221 #error IJG JPEG library must be version 6b or newer!
19222 #endif
19223 return 0;
19224
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 if ac_fn_c_try_compile "$LINENO"
19230 then :
19231   ac_cv_jpeg_version_ok='yes'
19232 else $as_nop
19233   ac_cv_jpeg_version_ok='no'
19234 fi
19235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19236 fi
19237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
19238 printf "%s\n" "$ac_cv_jpeg_version_ok" >&6; }
19239 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
19240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 printf "%s\n" "yes" >&6; }
19242  passed=`expr $passed + 1`
19243 else
19244  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19245 printf "%s\n" "no" >&6; }
19246  failed=`expr $failed + 1`
19247 fi
19248 fi
19249     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
19250 printf %s "checking if JPEG package is complete... " >&6; }
19251     if test $passed -gt 0
19252     then
19253     if test $failed -gt 0
19254     then
19255         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19256 printf "%s\n" "no -- some components failed test" >&6; }
19257         have_jpeg='no (failed tests)'
19258     else
19259         LIB_JPEG='-ljpeg'
19260         LIBS="$LIB_JPEG $LIBS"
19261
19262 printf "%s\n" "#define HasJPEG 1" >>confdefs.h
19263
19264         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 printf "%s\n" "yes" >&6; }
19266         have_jpeg='yes'
19267     fi
19268     else
19269         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 printf "%s\n" "no" >&6; }
19271     fi
19272 fi
19273  if test "$have_jpeg" = 'yes'; then
19274   HasJPEG_TRUE=
19275   HasJPEG_FALSE='#'
19276 else
19277   HasJPEG_TRUE='#'
19278   HasJPEG_FALSE=
19279 fi
19280
19281
19282
19283 #
19284 # Check for ZLIB
19285 #
19286 have_zlib='no'
19287 if test ! "$with_zlib" = 'no' || test ! "$with_tiff" = 'no'
19288 then
19289   LIB_ZLIB=''
19290   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
19291 printf %s "checking for ZLIB support ... " >&6; }
19292   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19293 printf "%s\n" "" >&6; }
19294   failed=0;
19295   passed=0;
19296   ac_fn_c_check_header_compile "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
19297 if test "x$ac_cv_header_zconf_h" = xyes
19298 then :
19299   passed=`expr $passed + 1`
19300 else $as_nop
19301   failed=`expr $failed + 1`
19302 fi
19303
19304   ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19305 if test "x$ac_cv_header_zlib_h" = xyes
19306 then :
19307   passed=`expr $passed + 1`
19308 else $as_nop
19309   failed=`expr $failed + 1`
19310 fi
19311
19312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
19313 printf %s "checking for compress in -lz... " >&6; }
19314 if test ${ac_cv_lib_z_compress+y}
19315 then :
19316   printf %s "(cached) " >&6
19317 else $as_nop
19318   ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lz  $LIBS"
19320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h.  */
19322
19323 /* Override any GCC internal prototype to avoid an error.
19324    Use char because int might match the return type of a GCC
19325    builtin and then its argument prototype would still apply.  */
19326 char compress ();
19327 int
19328 main (void)
19329 {
19330 return compress ();
19331   ;
19332   return 0;
19333 }
19334 _ACEOF
19335 if ac_fn_c_try_link "$LINENO"
19336 then :
19337   ac_cv_lib_z_compress=yes
19338 else $as_nop
19339   ac_cv_lib_z_compress=no
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19342     conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19344 fi
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
19346 printf "%s\n" "$ac_cv_lib_z_compress" >&6; }
19347 if test "x$ac_cv_lib_z_compress" = xyes
19348 then :
19349   passed=`expr $passed + 1`
19350 else $as_nop
19351   failed=`expr $failed + 1`
19352 fi
19353
19354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
19355 printf %s "checking for uncompress in -lz... " >&6; }
19356 if test ${ac_cv_lib_z_uncompress+y}
19357 then :
19358   printf %s "(cached) " >&6
19359 else $as_nop
19360   ac_check_lib_save_LIBS=$LIBS
19361 LIBS="-lz  $LIBS"
19362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19363 /* end confdefs.h.  */
19364
19365 /* Override any GCC internal prototype to avoid an error.
19366    Use char because int might match the return type of a GCC
19367    builtin and then its argument prototype would still apply.  */
19368 char uncompress ();
19369 int
19370 main (void)
19371 {
19372 return uncompress ();
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_c_try_link "$LINENO"
19378 then :
19379   ac_cv_lib_z_uncompress=yes
19380 else $as_nop
19381   ac_cv_lib_z_uncompress=no
19382 fi
19383 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19384     conftest$ac_exeext conftest.$ac_ext
19385 LIBS=$ac_check_lib_save_LIBS
19386 fi
19387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
19388 printf "%s\n" "$ac_cv_lib_z_uncompress" >&6; }
19389 if test "x$ac_cv_lib_z_uncompress" = xyes
19390 then :
19391   passed=`expr $passed + 1`
19392 else $as_nop
19393   failed=`expr $failed + 1`
19394 fi
19395
19396   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
19397 printf %s "checking for deflate in -lz... " >&6; }
19398 if test ${ac_cv_lib_z_deflate+y}
19399 then :
19400   printf %s "(cached) " >&6
19401 else $as_nop
19402   ac_check_lib_save_LIBS=$LIBS
19403 LIBS="-lz  $LIBS"
19404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405 /* end confdefs.h.  */
19406
19407 /* Override any GCC internal prototype to avoid an error.
19408    Use char because int might match the return type of a GCC
19409    builtin and then its argument prototype would still apply.  */
19410 char deflate ();
19411 int
19412 main (void)
19413 {
19414 return deflate ();
19415   ;
19416   return 0;
19417 }
19418 _ACEOF
19419 if ac_fn_c_try_link "$LINENO"
19420 then :
19421   ac_cv_lib_z_deflate=yes
19422 else $as_nop
19423   ac_cv_lib_z_deflate=no
19424 fi
19425 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19426     conftest$ac_exeext conftest.$ac_ext
19427 LIBS=$ac_check_lib_save_LIBS
19428 fi
19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
19430 printf "%s\n" "$ac_cv_lib_z_deflate" >&6; }
19431 if test "x$ac_cv_lib_z_deflate" = xyes
19432 then :
19433   passed=`expr $passed + 1`
19434 else $as_nop
19435   failed=`expr $failed + 1`
19436 fi
19437
19438   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
19439 printf %s "checking for inflate in -lz... " >&6; }
19440 if test ${ac_cv_lib_z_inflate+y}
19441 then :
19442   printf %s "(cached) " >&6
19443 else $as_nop
19444   ac_check_lib_save_LIBS=$LIBS
19445 LIBS="-lz  $LIBS"
19446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19447 /* end confdefs.h.  */
19448
19449 /* Override any GCC internal prototype to avoid an error.
19450    Use char because int might match the return type of a GCC
19451    builtin and then its argument prototype would still apply.  */
19452 char inflate ();
19453 int
19454 main (void)
19455 {
19456 return inflate ();
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 if ac_fn_c_try_link "$LINENO"
19462 then :
19463   ac_cv_lib_z_inflate=yes
19464 else $as_nop
19465   ac_cv_lib_z_inflate=no
19466 fi
19467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19468     conftest$ac_exeext conftest.$ac_ext
19469 LIBS=$ac_check_lib_save_LIBS
19470 fi
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
19472 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
19473 if test "x$ac_cv_lib_z_inflate" = xyes
19474 then :
19475   passed=`expr $passed + 1`
19476 else $as_nop
19477   failed=`expr $failed + 1`
19478 fi
19479
19480   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
19481 printf %s "checking for gzseek in -lz... " >&6; }
19482 if test ${ac_cv_lib_z_gzseek+y}
19483 then :
19484   printf %s "(cached) " >&6
19485 else $as_nop
19486   ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lz  $LIBS"
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h.  */
19490
19491 /* Override any GCC internal prototype to avoid an error.
19492    Use char because int might match the return type of a GCC
19493    builtin and then its argument prototype would still apply.  */
19494 char gzseek ();
19495 int
19496 main (void)
19497 {
19498 return gzseek ();
19499   ;
19500   return 0;
19501 }
19502 _ACEOF
19503 if ac_fn_c_try_link "$LINENO"
19504 then :
19505   ac_cv_lib_z_gzseek=yes
19506 else $as_nop
19507   ac_cv_lib_z_gzseek=no
19508 fi
19509 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19510     conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19512 fi
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
19514 printf "%s\n" "$ac_cv_lib_z_gzseek" >&6; }
19515 if test "x$ac_cv_lib_z_gzseek" = xyes
19516 then :
19517   passed=`expr $passed + 1`
19518 else $as_nop
19519   failed=`expr $failed + 1`
19520 fi
19521
19522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
19523 printf %s "checking for gztell in -lz... " >&6; }
19524 if test ${ac_cv_lib_z_gztell+y}
19525 then :
19526   printf %s "(cached) " >&6
19527 else $as_nop
19528   ac_check_lib_save_LIBS=$LIBS
19529 LIBS="-lz  $LIBS"
19530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19531 /* end confdefs.h.  */
19532
19533 /* Override any GCC internal prototype to avoid an error.
19534    Use char because int might match the return type of a GCC
19535    builtin and then its argument prototype would still apply.  */
19536 char gztell ();
19537 int
19538 main (void)
19539 {
19540 return gztell ();
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_c_try_link "$LINENO"
19546 then :
19547   ac_cv_lib_z_gztell=yes
19548 else $as_nop
19549   ac_cv_lib_z_gztell=no
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19552     conftest$ac_exeext conftest.$ac_ext
19553 LIBS=$ac_check_lib_save_LIBS
19554 fi
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
19556 printf "%s\n" "$ac_cv_lib_z_gztell" >&6; }
19557 if test "x$ac_cv_lib_z_gztell" = xyes
19558 then :
19559   passed=`expr $passed + 1`
19560 else $as_nop
19561   failed=`expr $failed + 1`
19562 fi
19563
19564   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
19565 printf %s "checking if ZLIB package is complete... " >&6; }
19566   if test $passed -gt 0
19567   then
19568     if test $failed -gt 0
19569     then
19570       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19571 printf "%s\n" "no -- some components failed test" >&6; }
19572       have_zlib='no (failed tests)'
19573     else
19574       LIB_ZLIB='-lz'
19575       LIBS="$LIB_ZLIB $LIBS"
19576
19577 printf "%s\n" "#define HasZLIB 1" >>confdefs.h
19578
19579       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19580 printf "%s\n" "yes" >&6; }
19581       have_zlib='yes'
19582     fi
19583   else
19584     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 printf "%s\n" "no" >&6; }
19586   fi
19587 fi
19588  if test "$have_zlib" = 'yes'; then
19589   HasZLIB_TRUE=
19590   HasZLIB_FALSE='#'
19591 else
19592   HasZLIB_TRUE='#'
19593   HasZLIB_FALSE=
19594 fi
19595
19596
19597
19598 #
19599 # Check for TIFF
19600 #
19601 have_tiff='no'
19602 LIB_TIFF=''
19603 if test ! "$with_tiff" = 'no'
19604 then
19605     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFF support" >&5
19606 printf %s "checking for TIFF support... " >&6; }
19607     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
19608 printf "%s\n" "" >&6; }
19609     failed=0;
19610     passed=0;
19611     ac_fn_c_check_header_compile "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
19612 if test "x$ac_cv_header_tiff_h" = xyes
19613 then :
19614   passed=`expr $passed + 1`
19615 else $as_nop
19616   failed=`expr $failed + 1`
19617 fi
19618
19619     ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
19620 if test "x$ac_cv_header_tiffio_h" = xyes
19621 then :
19622   passed=`expr $passed + 1`
19623 else $as_nop
19624   failed=`expr $failed + 1`
19625 fi
19626
19627     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
19628 printf %s "checking for TIFFOpen in -ltiff... " >&6; }
19629 if test ${ac_cv_lib_tiff_TIFFOpen+y}
19630 then :
19631   printf %s "(cached) " >&6
19632 else $as_nop
19633   ac_check_lib_save_LIBS=$LIBS
19634 LIBS="-ltiff  $LIBS"
19635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19636 /* end confdefs.h.  */
19637
19638 /* Override any GCC internal prototype to avoid an error.
19639    Use char because int might match the return type of a GCC
19640    builtin and then its argument prototype would still apply.  */
19641 char TIFFOpen ();
19642 int
19643 main (void)
19644 {
19645 return TIFFOpen ();
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 if ac_fn_c_try_link "$LINENO"
19651 then :
19652   ac_cv_lib_tiff_TIFFOpen=yes
19653 else $as_nop
19654   ac_cv_lib_tiff_TIFFOpen=no
19655 fi
19656 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19657     conftest$ac_exeext conftest.$ac_ext
19658 LIBS=$ac_check_lib_save_LIBS
19659 fi
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
19661 printf "%s\n" "$ac_cv_lib_tiff_TIFFOpen" >&6; }
19662 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes
19663 then :
19664   passed=`expr $passed + 1`
19665 else $as_nop
19666   failed=`expr $failed + 1`
19667 fi
19668
19669     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
19670 printf %s "checking for TIFFClientOpen in -ltiff... " >&6; }
19671 if test ${ac_cv_lib_tiff_TIFFClientOpen+y}
19672 then :
19673   printf %s "(cached) " >&6
19674 else $as_nop
19675   ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-ltiff  $LIBS"
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h.  */
19679
19680 /* Override any GCC internal prototype to avoid an error.
19681    Use char because int might match the return type of a GCC
19682    builtin and then its argument prototype would still apply.  */
19683 char TIFFClientOpen ();
19684 int
19685 main (void)
19686 {
19687 return TIFFClientOpen ();
19688   ;
19689   return 0;
19690 }
19691 _ACEOF
19692 if ac_fn_c_try_link "$LINENO"
19693 then :
19694   ac_cv_lib_tiff_TIFFClientOpen=yes
19695 else $as_nop
19696   ac_cv_lib_tiff_TIFFClientOpen=no
19697 fi
19698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19699     conftest$ac_exeext conftest.$ac_ext
19700 LIBS=$ac_check_lib_save_LIBS
19701 fi
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
19703 printf "%s\n" "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
19704 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes
19705 then :
19706   passed=`expr $passed + 1`
19707 else $as_nop
19708   failed=`expr $failed + 1`
19709 fi
19710
19711     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
19712 printf %s "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
19713 if test ${ac_cv_lib_tiff_TIFFIsByteSwapped+y}
19714 then :
19715   printf %s "(cached) " >&6
19716 else $as_nop
19717   ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-ltiff  $LIBS"
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h.  */
19721
19722 /* Override any GCC internal prototype to avoid an error.
19723    Use char because int might match the return type of a GCC
19724    builtin and then its argument prototype would still apply.  */
19725 char TIFFIsByteSwapped ();
19726 int
19727 main (void)
19728 {
19729 return TIFFIsByteSwapped ();
19730   ;
19731   return 0;
19732 }
19733 _ACEOF
19734 if ac_fn_c_try_link "$LINENO"
19735 then :
19736   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
19737 else $as_nop
19738   ac_cv_lib_tiff_TIFFIsByteSwapped=no
19739 fi
19740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19741     conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_check_lib_save_LIBS
19743 fi
19744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
19745 printf "%s\n" "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
19746 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes
19747 then :
19748   passed=`expr $passed + 1`
19749 else $as_nop
19750   failed=`expr $failed + 1`
19751 fi
19752
19753     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
19754 printf %s "checking if TIFF package is complete... " >&6; }
19755     if test $passed -gt 0
19756     then
19757     if test $failed -gt 0
19758     then
19759         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
19760 printf "%s\n" "no -- some components failed test" >&6; }
19761         have_tiff='no (failed tests)'
19762     else
19763         LIB_TIFF='-ltiff'
19764         LIBS="$LIB_TIFF $LIBS"
19765
19766 printf "%s\n" "#define HasTIFF 1" >>confdefs.h
19767
19768         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19769 printf "%s\n" "yes" >&6; }
19770         have_tiff='yes'
19771         ac_fn_c_check_header_compile "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
19772 if test "x$ac_cv_header_tiffconf_h" = xyes
19773 then :
19774   printf "%s\n" "#define HAVE_TIFFCONF_H 1" >>confdefs.h
19775
19776 fi
19777
19778     fi
19779     else
19780     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19781 printf "%s\n" "no" >&6; }
19782     fi
19783 fi
19784  if test "$have_tiff" = 'yes'; then
19785   HasTIFF_TRUE=
19786   HasTIFF_FALSE='#'
19787 else
19788   HasTIFF_TRUE='#'
19789   HasTIFF_FALSE=
19790 fi
19791
19792
19793
19794
19795 # Libraries that the LCMS library depends on
19796 LCMS_LIB_DEPLIBS="$LIB_MATH $LIB_THREAD"
19797 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/  */ /g'`
19798
19799
19800
19801
19802 # Libraries that the jpegicc program depends on
19803 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH $LIB_THREAD"
19804 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/  */ /g'`
19805
19806
19807 # Libraries that the tifficc program depends on
19808 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH $LIB_THREAD"
19809 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/  */ /g'`
19810
19811
19812 LIBS=''
19813
19814 #
19815 # Perform substitutions
19816 #
19817 ac_config_files="$ac_config_files Makefile"
19818
19819 ac_config_files="$ac_config_files lcms2.pc"
19820
19821 ac_config_files="$ac_config_files include/Makefile"
19822
19823 ac_config_files="$ac_config_files src/Makefile"
19824
19825 ac_config_files="$ac_config_files utils/tificc/Makefile"
19826
19827 ac_config_files="$ac_config_files utils/transicc/Makefile"
19828
19829 ac_config_files="$ac_config_files utils/linkicc/Makefile"
19830
19831 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
19832
19833 ac_config_files="$ac_config_files utils/psicc/Makefile"
19834
19835 ac_config_files="$ac_config_files testbed/Makefile"
19836
19837  if test "x$with_fastfloat" = "xyes" ; then
19838   COND_FASTFLOAT_TRUE=
19839   COND_FASTFLOAT_FALSE='#'
19840 else
19841   COND_FASTFLOAT_TRUE='#'
19842   COND_FASTFLOAT_FALSE=
19843 fi
19844
19845  if test "x$with_threaded" = "xyes" ; then
19846   COND_THREADED_TRUE=
19847   COND_THREADED_FALSE='#'
19848 else
19849   COND_THREADED_TRUE='#'
19850   COND_THREADED_FALSE=
19851 fi
19852
19853 ac_config_files="$ac_config_files plugins/Makefile"
19854
19855 ac_config_files="$ac_config_files plugins/fast_float/Makefile"
19856
19857 ac_config_files="$ac_config_files plugins/fast_float/src/Makefile"
19858
19859 ac_config_files="$ac_config_files plugins/fast_float/include/Makefile"
19860
19861 ac_config_files="$ac_config_files plugins/fast_float/testbed/Makefile"
19862
19863 ac_config_files="$ac_config_files plugins/threaded/Makefile"
19864
19865 ac_config_files="$ac_config_files plugins/threaded/src/Makefile"
19866
19867 ac_config_files="$ac_config_files plugins/threaded/include/Makefile"
19868
19869 ac_config_files="$ac_config_files plugins/threaded/testbed/Makefile"
19870
19871 cat >confcache <<\_ACEOF
19872 # This file is a shell script that caches the results of configure
19873 # tests run on this system so they can be shared between configure
19874 # scripts and configure runs, see configure's option --config-cache.
19875 # It is not useful on other systems.  If it contains results you don't
19876 # want to keep, you may remove or edit it.
19877 #
19878 # config.status only pays attention to the cache file if you give it
19879 # the --recheck option to rerun configure.
19880 #
19881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19883 # following values.
19884
19885 _ACEOF
19886
19887 # The following way of writing the cache mishandles newlines in values,
19888 # but we know of no workaround that is simple, portable, and efficient.
19889 # So, we kill variables containing newlines.
19890 # Ultrix sh set writes to stderr and can't be redirected directly,
19891 # and sets the high bit in the cache file unless we assign to the vars.
19892 (
19893   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19894     eval ac_val=\$$ac_var
19895     case $ac_val in #(
19896     *${as_nl}*)
19897       case $ac_var in #(
19898       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19899 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19900       esac
19901       case $ac_var in #(
19902       _ | IFS | as_nl) ;; #(
19903       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19904       *) { eval $ac_var=; unset $ac_var;} ;;
19905       esac ;;
19906     esac
19907   done
19908
19909   (set) 2>&1 |
19910     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19911     *${as_nl}ac_space=\ *)
19912       # `set' does not quote correctly, so add quotes: double-quote
19913       # substitution turns \\\\ into \\, and sed turns \\ into \.
19914       sed -n \
19915         "s/'/'\\\\''/g;
19916           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19917       ;; #(
19918     *)
19919       # `set' quotes correctly as required by POSIX, so do not add quotes.
19920       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19921       ;;
19922     esac |
19923     sort
19924 ) |
19925   sed '
19926      /^ac_cv_env_/b end
19927      t clear
19928      :clear
19929      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19930      t end
19931      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19932      :end' >>confcache
19933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19934   if test -w "$cache_file"; then
19935     if test "x$cache_file" != "x/dev/null"; then
19936       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19937 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19938       if test ! -f "$cache_file" || test -h "$cache_file"; then
19939         cat confcache >"$cache_file"
19940       else
19941         case $cache_file in #(
19942         */* | ?:*)
19943           mv -f confcache "$cache_file"$$ &&
19944           mv -f "$cache_file"$$ "$cache_file" ;; #(
19945         *)
19946           mv -f confcache "$cache_file" ;;
19947         esac
19948       fi
19949     fi
19950   else
19951     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19952 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19953   fi
19954 fi
19955 rm -f confcache
19956
19957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19958 # Let make expand exec_prefix.
19959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19960
19961 # Transform confdefs.h into DEFS.
19962 # Protect against shell expansion while executing Makefile rules.
19963 # Protect against Makefile macro expansion.
19964 #
19965 # If the first sed substitution is executed (which looks for macros that
19966 # take arguments), then branch to the quote section.  Otherwise,
19967 # look for a macro that doesn't take arguments.
19968 ac_script='
19969 :mline
19970 /\\$/{
19971  N
19972  s,\\\n,,
19973  b mline
19974 }
19975 t clear
19976 :clear
19977 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
19978 t quote
19979 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
19980 t quote
19981 b any
19982 :quote
19983 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19984 s/\[/\\&/g
19985 s/\]/\\&/g
19986 s/\$/$$/g
19987 H
19988 :any
19989 ${
19990         g
19991         s/^\n//
19992         s/\n/ /g
19993         p
19994 }
19995 '
19996 DEFS=`sed -n "$ac_script" confdefs.h`
19997
19998
19999 ac_libobjs=
20000 ac_ltlibobjs=
20001 U=
20002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20003   # 1. Remove the extension, and $U if already installed.
20004   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20005   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20006   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20007   #    will be set to the directory where LIBOBJS objects are built.
20008   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20009   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20010 done
20011 LIBOBJS=$ac_libobjs
20012
20013 LTLIBOBJS=$ac_ltlibobjs
20014
20015
20016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20017 printf %s "checking that generated files are newer than configure... " >&6; }
20018    if test -n "$am_sleep_pid"; then
20019      # Hide warnings about reused PIDs.
20020      wait $am_sleep_pid 2>/dev/null
20021    fi
20022    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20023 printf "%s\n" "done" >&6; }
20024  if test -n "$EXEEXT"; then
20025   am__EXEEXT_TRUE=
20026   am__EXEEXT_FALSE='#'
20027 else
20028   am__EXEEXT_TRUE='#'
20029   am__EXEEXT_FALSE=
20030 fi
20031
20032 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20033   as_fn_error $? "conditional \"AMDEP\" was never defined.
20034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20035 fi
20036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20037   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20039 fi
20040 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20041   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20043 fi
20044 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20045   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20047 fi
20048
20049 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
20050   as_fn_error $? "conditional \"HasJPEG\" was never defined.
20051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20052 fi
20053 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
20054   as_fn_error $? "conditional \"HasZLIB\" was never defined.
20055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20056 fi
20057 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
20058   as_fn_error $? "conditional \"HasTIFF\" was never defined.
20059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20060 fi
20061 if test -z "${COND_FASTFLOAT_TRUE}" && test -z "${COND_FASTFLOAT_FALSE}"; then
20062   as_fn_error $? "conditional \"COND_FASTFLOAT\" was never defined.
20063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20064 fi
20065 if test -z "${COND_THREADED_TRUE}" && test -z "${COND_THREADED_FALSE}"; then
20066   as_fn_error $? "conditional \"COND_THREADED\" was never defined.
20067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20068 fi
20069
20070 : "${CONFIG_STATUS=./config.status}"
20071 ac_write_fail=0
20072 ac_clean_files_save=$ac_clean_files
20073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20075 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20076 as_write_fail=0
20077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20078 #! $SHELL
20079 # Generated by $as_me.
20080 # Run this file to recreate the current configuration.
20081 # Compiler output produced by configure, useful for debugging
20082 # configure, is in config.log if it exists.
20083
20084 debug=false
20085 ac_cs_recheck=false
20086 ac_cs_silent=false
20087
20088 SHELL=\${CONFIG_SHELL-$SHELL}
20089 export SHELL
20090 _ASEOF
20091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20092 ## -------------------- ##
20093 ## M4sh Initialization. ##
20094 ## -------------------- ##
20095
20096 # Be more Bourne compatible
20097 DUALCASE=1; export DUALCASE # for MKS sh
20098 as_nop=:
20099 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20100 then :
20101   emulate sh
20102   NULLCMD=:
20103   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20104   # is contrary to our usage.  Disable this feature.
20105   alias -g '${1+"$@"}'='"$@"'
20106   setopt NO_GLOB_SUBST
20107 else $as_nop
20108   case `(set -o) 2>/dev/null` in #(
20109   *posix*) :
20110     set -o posix ;; #(
20111   *) :
20112      ;;
20113 esac
20114 fi
20115
20116
20117
20118 # Reset variables that may have inherited troublesome values from
20119 # the environment.
20120
20121 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20122 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20123 # side effect of setting IFS to empty, thus disabling word splitting.)
20124 # Quoting is to prevent editors from complaining about space-tab.
20125 as_nl='
20126 '
20127 export as_nl
20128 IFS=" ""        $as_nl"
20129
20130 PS1='$ '
20131 PS2='> '
20132 PS4='+ '
20133
20134 # Ensure predictable behavior from utilities with locale-dependent output.
20135 LC_ALL=C
20136 export LC_ALL
20137 LANGUAGE=C
20138 export LANGUAGE
20139
20140 # We cannot yet rely on "unset" to work, but we need these variables
20141 # to be unset--not just set to an empty or harmless value--now, to
20142 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20143 # also avoids known problems related to "unset" and subshell syntax
20144 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20145 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20146 do eval test \${$as_var+y} \
20147   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20148 done
20149
20150 # Ensure that fds 0, 1, and 2 are open.
20151 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20152 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20153 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20154
20155 # The user is always right.
20156 if ${PATH_SEPARATOR+false} :; then
20157   PATH_SEPARATOR=:
20158   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20159     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20160       PATH_SEPARATOR=';'
20161   }
20162 fi
20163
20164
20165 # Find who we are.  Look in the path if we contain no directory separator.
20166 as_myself=
20167 case $0 in #((
20168   *[\\/]* ) as_myself=$0 ;;
20169   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20170 for as_dir in $PATH
20171 do
20172   IFS=$as_save_IFS
20173   case $as_dir in #(((
20174     '') as_dir=./ ;;
20175     */) ;;
20176     *) as_dir=$as_dir/ ;;
20177   esac
20178     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20179   done
20180 IFS=$as_save_IFS
20181
20182      ;;
20183 esac
20184 # We did not find ourselves, most probably we were run as `sh COMMAND'
20185 # in which case we are not to be found in the path.
20186 if test "x$as_myself" = x; then
20187   as_myself=$0
20188 fi
20189 if test ! -f "$as_myself"; then
20190   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20191   exit 1
20192 fi
20193
20194
20195
20196 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20197 # ----------------------------------------
20198 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20199 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20200 # script with STATUS, using 1 if that was 0.
20201 as_fn_error ()
20202 {
20203   as_status=$1; test $as_status -eq 0 && as_status=1
20204   if test "$4"; then
20205     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20206     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20207   fi
20208   printf "%s\n" "$as_me: error: $2" >&2
20209   as_fn_exit $as_status
20210 } # as_fn_error
20211
20212
20213
20214 # as_fn_set_status STATUS
20215 # -----------------------
20216 # Set $? to STATUS, without forking.
20217 as_fn_set_status ()
20218 {
20219   return $1
20220 } # as_fn_set_status
20221
20222 # as_fn_exit STATUS
20223 # -----------------
20224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20225 as_fn_exit ()
20226 {
20227   set +e
20228   as_fn_set_status $1
20229   exit $1
20230 } # as_fn_exit
20231
20232 # as_fn_unset VAR
20233 # ---------------
20234 # Portably unset VAR.
20235 as_fn_unset ()
20236 {
20237   { eval $1=; unset $1;}
20238 }
20239 as_unset=as_fn_unset
20240
20241 # as_fn_append VAR VALUE
20242 # ----------------------
20243 # Append the text in VALUE to the end of the definition contained in VAR. Take
20244 # advantage of any shell optimizations that allow amortized linear growth over
20245 # repeated appends, instead of the typical quadratic growth present in naive
20246 # implementations.
20247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20248 then :
20249   eval 'as_fn_append ()
20250   {
20251     eval $1+=\$2
20252   }'
20253 else $as_nop
20254   as_fn_append ()
20255   {
20256     eval $1=\$$1\$2
20257   }
20258 fi # as_fn_append
20259
20260 # as_fn_arith ARG...
20261 # ------------------
20262 # Perform arithmetic evaluation on the ARGs, and store the result in the
20263 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20264 # must be portable across $(()) and expr.
20265 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20266 then :
20267   eval 'as_fn_arith ()
20268   {
20269     as_val=$(( $* ))
20270   }'
20271 else $as_nop
20272   as_fn_arith ()
20273   {
20274     as_val=`expr "$@" || test $? -eq 1`
20275   }
20276 fi # as_fn_arith
20277
20278
20279 if expr a : '\(a\)' >/dev/null 2>&1 &&
20280    test "X`expr 00001 : '.*\(...\)'`" = X001; then
20281   as_expr=expr
20282 else
20283   as_expr=false
20284 fi
20285
20286 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20287   as_basename=basename
20288 else
20289   as_basename=false
20290 fi
20291
20292 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20293   as_dirname=dirname
20294 else
20295   as_dirname=false
20296 fi
20297
20298 as_me=`$as_basename -- "$0" ||
20299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20300          X"$0" : 'X\(//\)$' \| \
20301          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20302 printf "%s\n" X/"$0" |
20303     sed '/^.*\/\([^/][^/]*\)\/*$/{
20304             s//\1/
20305             q
20306           }
20307           /^X\/\(\/\/\)$/{
20308             s//\1/
20309             q
20310           }
20311           /^X\/\(\/\).*/{
20312             s//\1/
20313             q
20314           }
20315           s/.*/./; q'`
20316
20317 # Avoid depending upon Character Ranges.
20318 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20319 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20320 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20321 as_cr_digits='0123456789'
20322 as_cr_alnum=$as_cr_Letters$as_cr_digits
20323
20324
20325 # Determine whether it's possible to make 'echo' print without a newline.
20326 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20327 # for compatibility with existing Makefiles.
20328 ECHO_C= ECHO_N= ECHO_T=
20329 case `echo -n x` in #(((((
20330 -n*)
20331   case `echo 'xy\c'` in
20332   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
20333   xy)  ECHO_C='\c';;
20334   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20335        ECHO_T=' ';;
20336   esac;;
20337 *)
20338   ECHO_N='-n';;
20339 esac
20340
20341 # For backward compatibility with old third-party macros, we provide
20342 # the shell variables $as_echo and $as_echo_n.  New code should use
20343 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20344 as_echo='printf %s\n'
20345 as_echo_n='printf %s'
20346
20347 rm -f conf$$ conf$$.exe conf$$.file
20348 if test -d conf$$.dir; then
20349   rm -f conf$$.dir/conf$$.file
20350 else
20351   rm -f conf$$.dir
20352   mkdir conf$$.dir 2>/dev/null
20353 fi
20354 if (echo >conf$$.file) 2>/dev/null; then
20355   if ln -s conf$$.file conf$$ 2>/dev/null; then
20356     as_ln_s='ln -s'
20357     # ... but there are two gotchas:
20358     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20359     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20360     # In both cases, we have to default to `cp -pR'.
20361     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20362       as_ln_s='cp -pR'
20363   elif ln conf$$.file conf$$ 2>/dev/null; then
20364     as_ln_s=ln
20365   else
20366     as_ln_s='cp -pR'
20367   fi
20368 else
20369   as_ln_s='cp -pR'
20370 fi
20371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20372 rmdir conf$$.dir 2>/dev/null
20373
20374
20375 # as_fn_mkdir_p
20376 # -------------
20377 # Create "$as_dir" as a directory, including parents if necessary.
20378 as_fn_mkdir_p ()
20379 {
20380
20381   case $as_dir in #(
20382   -*) as_dir=./$as_dir;;
20383   esac
20384   test -d "$as_dir" || eval $as_mkdir_p || {
20385     as_dirs=
20386     while :; do
20387       case $as_dir in #(
20388       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20389       *) as_qdir=$as_dir;;
20390       esac
20391       as_dirs="'$as_qdir' $as_dirs"
20392       as_dir=`$as_dirname -- "$as_dir" ||
20393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20394          X"$as_dir" : 'X\(//\)[^/]' \| \
20395          X"$as_dir" : 'X\(//\)$' \| \
20396          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20397 printf "%s\n" X"$as_dir" |
20398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20399             s//\1/
20400             q
20401           }
20402           /^X\(\/\/\)[^/].*/{
20403             s//\1/
20404             q
20405           }
20406           /^X\(\/\/\)$/{
20407             s//\1/
20408             q
20409           }
20410           /^X\(\/\).*/{
20411             s//\1/
20412             q
20413           }
20414           s/.*/./; q'`
20415       test -d "$as_dir" && break
20416     done
20417     test -z "$as_dirs" || eval "mkdir $as_dirs"
20418   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20419
20420
20421 } # as_fn_mkdir_p
20422 if mkdir -p . 2>/dev/null; then
20423   as_mkdir_p='mkdir -p "$as_dir"'
20424 else
20425   test -d ./-p && rmdir ./-p
20426   as_mkdir_p=false
20427 fi
20428
20429
20430 # as_fn_executable_p FILE
20431 # -----------------------
20432 # Test if FILE is an executable regular file.
20433 as_fn_executable_p ()
20434 {
20435   test -f "$1" && test -x "$1"
20436 } # as_fn_executable_p
20437 as_test_x='test -x'
20438 as_executable_p=as_fn_executable_p
20439
20440 # Sed expression to map a string onto a valid CPP name.
20441 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20442
20443 # Sed expression to map a string onto a valid variable name.
20444 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20445
20446
20447 exec 6>&1
20448 ## ----------------------------------- ##
20449 ## Main body of $CONFIG_STATUS script. ##
20450 ## ----------------------------------- ##
20451 _ASEOF
20452 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20453
20454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20455 # Save the log message, to keep $0 and so on meaningful, and to
20456 # report actual input values of CONFIG_FILES etc. instead of their
20457 # values after options handling.
20458 ac_log="
20459 This file was extended by lcms2 $as_me 2.16, which was
20460 generated by GNU Autoconf 2.71.  Invocation command line was
20461
20462   CONFIG_FILES    = $CONFIG_FILES
20463   CONFIG_HEADERS  = $CONFIG_HEADERS
20464   CONFIG_LINKS    = $CONFIG_LINKS
20465   CONFIG_COMMANDS = $CONFIG_COMMANDS
20466   $ $0 $@
20467
20468 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20469 "
20470
20471 _ACEOF
20472
20473 case $ac_config_files in *"
20474 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20475 esac
20476
20477
20478
20479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20480 # Files that config.status was made for.
20481 config_files="$ac_config_files"
20482 config_commands="$ac_config_commands"
20483
20484 _ACEOF
20485
20486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20487 ac_cs_usage="\
20488 \`$as_me' instantiates files and other configuration actions
20489 from templates according to the current configuration.  Unless the files
20490 and actions are specified as TAGs, all are instantiated by default.
20491
20492 Usage: $0 [OPTION]... [TAG]...
20493
20494   -h, --help       print this help, then exit
20495   -V, --version    print version number and configuration settings, then exit
20496       --config     print configuration, then exit
20497   -q, --quiet, --silent
20498                    do not print progress messages
20499   -d, --debug      don't remove temporary files
20500       --recheck    update $as_me by reconfiguring in the same conditions
20501       --file=FILE[:TEMPLATE]
20502                    instantiate the configuration file FILE
20503
20504 Configuration files:
20505 $config_files
20506
20507 Configuration commands:
20508 $config_commands
20509
20510 Report bugs to the package provider."
20511
20512 _ACEOF
20513 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20514 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20516 ac_cs_config='$ac_cs_config_escaped'
20517 ac_cs_version="\\
20518 lcms2 config.status 2.16
20519 configured by $0, generated by GNU Autoconf 2.71,
20520   with options \\"\$ac_cs_config\\"
20521
20522 Copyright (C) 2021 Free Software Foundation, Inc.
20523 This config.status script is free software; the Free Software Foundation
20524 gives unlimited permission to copy, distribute and modify it."
20525
20526 ac_pwd='$ac_pwd'
20527 srcdir='$srcdir'
20528 INSTALL='$INSTALL'
20529 MKDIR_P='$MKDIR_P'
20530 AWK='$AWK'
20531 test -n "\$AWK" || AWK=awk
20532 _ACEOF
20533
20534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20535 # The default lists apply if the user does not specify any file.
20536 ac_need_defaults=:
20537 while test $# != 0
20538 do
20539   case $1 in
20540   --*=?*)
20541     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20542     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20543     ac_shift=:
20544     ;;
20545   --*=)
20546     ac_option=`expr "X$1" : 'X\([^=]*\)='`
20547     ac_optarg=
20548     ac_shift=:
20549     ;;
20550   *)
20551     ac_option=$1
20552     ac_optarg=$2
20553     ac_shift=shift
20554     ;;
20555   esac
20556
20557   case $ac_option in
20558   # Handling of the options.
20559   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20560     ac_cs_recheck=: ;;
20561   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20562     printf "%s\n" "$ac_cs_version"; exit ;;
20563   --config | --confi | --conf | --con | --co | --c )
20564     printf "%s\n" "$ac_cs_config"; exit ;;
20565   --debug | --debu | --deb | --de | --d | -d )
20566     debug=: ;;
20567   --file | --fil | --fi | --f )
20568     $ac_shift
20569     case $ac_optarg in
20570     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20571     '') as_fn_error $? "missing file argument" ;;
20572     esac
20573     as_fn_append CONFIG_FILES " '$ac_optarg'"
20574     ac_need_defaults=false;;
20575   --he | --h |  --help | --hel | -h )
20576     printf "%s\n" "$ac_cs_usage"; exit ;;
20577   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20578   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20579     ac_cs_silent=: ;;
20580
20581   # This is an error.
20582   -*) as_fn_error $? "unrecognized option: \`$1'
20583 Try \`$0 --help' for more information." ;;
20584
20585   *) as_fn_append ac_config_targets " $1"
20586      ac_need_defaults=false ;;
20587
20588   esac
20589   shift
20590 done
20591
20592 ac_configure_extra_args=
20593
20594 if $ac_cs_silent; then
20595   exec 6>/dev/null
20596   ac_configure_extra_args="$ac_configure_extra_args --silent"
20597 fi
20598
20599 _ACEOF
20600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20601 if \$ac_cs_recheck; then
20602   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20603   shift
20604   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20605   CONFIG_SHELL='$SHELL'
20606   export CONFIG_SHELL
20607   exec "\$@"
20608 fi
20609
20610 _ACEOF
20611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20612 exec 5>>config.log
20613 {
20614   echo
20615   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20616 ## Running $as_me. ##
20617 _ASBOX
20618   printf "%s\n" "$ac_log"
20619 } >&5
20620
20621 _ACEOF
20622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20623 #
20624 # INIT-COMMANDS
20625 #
20626 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20627
20628
20629 # The HP-UX ksh and POSIX shell print the target directory to stdout
20630 # if CDPATH is set.
20631 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20632
20633 sed_quote_subst='$sed_quote_subst'
20634 double_quote_subst='$double_quote_subst'
20635 delay_variable_subst='$delay_variable_subst'
20636 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20637 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20638 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20639 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20640 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20641 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20642 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20643 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20644 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20645 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20646 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20647 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20648 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20649 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20650 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20651 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20652 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20653 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20654 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20655 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20656 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20657 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20658 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20659 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20660 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20661 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20662 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20663 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20664 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20665 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20666 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20667 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20668 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20669 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20670 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20671 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20672 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20673 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20674 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20675 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20676 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20677 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20678 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20679 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20680 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20681 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20682 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20683 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20684 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20685 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20686 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20687 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20688 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20689 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20690 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20691 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20692 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20693 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20694 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20695 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20696 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20697 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20698 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20699 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20700 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20701 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20702 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20703 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20704 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20705 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20706 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20707 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20708 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20709 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20710 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20711 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20712 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20713 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20714 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20715 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20716 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20717 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20718 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20719 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20720 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20721 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20722 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20723 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20724 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20725 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20726 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20727 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20728 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20729 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20730 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20731 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20732 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20733 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20734 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20735 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20736 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20737 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20738 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20739 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20740 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20741 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20742 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20743 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20744 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20745 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20746 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20747 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20748 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20749 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20750 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20751 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20752 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20753 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20754 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20755 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20756 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20757 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20758 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20759 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20760 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20761 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20762 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20763 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20764 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20765 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20766 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20767 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20768 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20769 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20770 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20771 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20772 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20773 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20774 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20775 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20776 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20777 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20778 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20779 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20780 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20781 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20782 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20783 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20784 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20785 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20786 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20787 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20788 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20789 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20790 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20791 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20792 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20793 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20794 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20795 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20796 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20797 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20798 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20799 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20800 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20803 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20804 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20805 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20806 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20807 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20808 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20809 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20810 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20811 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20812 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20813 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20814 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20815 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20816 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20817 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20818 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20819 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20820 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20821 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20822 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20823 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20824 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20825 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20826 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20827 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20828
20829 LTCC='$LTCC'
20830 LTCFLAGS='$LTCFLAGS'
20831 compiler='$compiler_DEFAULT'
20832
20833 # A function that is used when there is no print builtin or printf.
20834 func_fallback_echo ()
20835 {
20836   eval 'cat <<_LTECHO_EOF
20837 \$1
20838 _LTECHO_EOF'
20839 }
20840
20841 # Quote evaled strings.
20842 for var in SHELL \
20843 ECHO \
20844 PATH_SEPARATOR \
20845 SED \
20846 GREP \
20847 EGREP \
20848 FGREP \
20849 LD \
20850 NM \
20851 LN_S \
20852 lt_SP2NL \
20853 lt_NL2SP \
20854 reload_flag \
20855 FILECMD \
20856 OBJDUMP \
20857 deplibs_check_method \
20858 file_magic_cmd \
20859 file_magic_glob \
20860 want_nocaseglob \
20861 DLLTOOL \
20862 sharedlib_from_linklib_cmd \
20863 AR \
20864 archiver_list_spec \
20865 STRIP \
20866 RANLIB \
20867 CC \
20868 CFLAGS \
20869 compiler \
20870 lt_cv_sys_global_symbol_pipe \
20871 lt_cv_sys_global_symbol_to_cdecl \
20872 lt_cv_sys_global_symbol_to_import \
20873 lt_cv_sys_global_symbol_to_c_name_address \
20874 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20875 lt_cv_nm_interface \
20876 nm_file_list_spec \
20877 lt_cv_truncate_bin \
20878 lt_prog_compiler_no_builtin_flag \
20879 lt_prog_compiler_pic \
20880 lt_prog_compiler_wl \
20881 lt_prog_compiler_static \
20882 lt_cv_prog_compiler_c_o \
20883 need_locks \
20884 MANIFEST_TOOL \
20885 DSYMUTIL \
20886 NMEDIT \
20887 LIPO \
20888 OTOOL \
20889 OTOOL64 \
20890 shrext_cmds \
20891 export_dynamic_flag_spec \
20892 whole_archive_flag_spec \
20893 compiler_needs_object \
20894 with_gnu_ld \
20895 allow_undefined_flag \
20896 no_undefined_flag \
20897 hardcode_libdir_flag_spec \
20898 hardcode_libdir_separator \
20899 exclude_expsyms \
20900 include_expsyms \
20901 file_list_spec \
20902 variables_saved_for_relink \
20903 libname_spec \
20904 library_names_spec \
20905 soname_spec \
20906 install_override_mode \
20907 finish_eval \
20908 old_striplib \
20909 striplib \
20910 compiler_lib_search_dirs \
20911 predep_objects \
20912 postdep_objects \
20913 predeps \
20914 postdeps \
20915 compiler_lib_search_path \
20916 AS \
20917 LD_CXX \
20918 reload_flag_CXX \
20919 compiler_CXX \
20920 lt_prog_compiler_no_builtin_flag_CXX \
20921 lt_prog_compiler_pic_CXX \
20922 lt_prog_compiler_wl_CXX \
20923 lt_prog_compiler_static_CXX \
20924 lt_cv_prog_compiler_c_o_CXX \
20925 export_dynamic_flag_spec_CXX \
20926 whole_archive_flag_spec_CXX \
20927 compiler_needs_object_CXX \
20928 with_gnu_ld_CXX \
20929 allow_undefined_flag_CXX \
20930 no_undefined_flag_CXX \
20931 hardcode_libdir_flag_spec_CXX \
20932 hardcode_libdir_separator_CXX \
20933 exclude_expsyms_CXX \
20934 include_expsyms_CXX \
20935 file_list_spec_CXX \
20936 compiler_lib_search_dirs_CXX \
20937 predep_objects_CXX \
20938 postdep_objects_CXX \
20939 predeps_CXX \
20940 postdeps_CXX \
20941 compiler_lib_search_path_CXX; do
20942     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20943     *[\\\\\\\`\\"\\\$]*)
20944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20945       ;;
20946     *)
20947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20948       ;;
20949     esac
20950 done
20951
20952 # Double-quote double-evaled strings.
20953 for var in reload_cmds \
20954 old_postinstall_cmds \
20955 old_postuninstall_cmds \
20956 old_archive_cmds \
20957 extract_expsyms_cmds \
20958 old_archive_from_new_cmds \
20959 old_archive_from_expsyms_cmds \
20960 archive_cmds \
20961 archive_expsym_cmds \
20962 module_cmds \
20963 module_expsym_cmds \
20964 export_symbols_cmds \
20965 prelink_cmds \
20966 postlink_cmds \
20967 postinstall_cmds \
20968 postuninstall_cmds \
20969 finish_cmds \
20970 sys_lib_search_path_spec \
20971 configure_time_dlsearch_path \
20972 configure_time_lt_sys_library_path \
20973 reload_cmds_CXX \
20974 old_archive_cmds_CXX \
20975 old_archive_from_new_cmds_CXX \
20976 old_archive_from_expsyms_cmds_CXX \
20977 archive_cmds_CXX \
20978 archive_expsym_cmds_CXX \
20979 module_cmds_CXX \
20980 module_expsym_cmds_CXX \
20981 export_symbols_cmds_CXX \
20982 prelink_cmds_CXX \
20983 postlink_cmds_CXX; do
20984     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20985     *[\\\\\\\`\\"\\\$]*)
20986       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20987       ;;
20988     *)
20989       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20990       ;;
20991     esac
20992 done
20993
20994 ac_aux_dir='$ac_aux_dir'
20995
20996 # See if we are running on zsh, and set the options that allow our
20997 # commands through without removal of \ escapes INIT.
20998 if test -n "\${ZSH_VERSION+set}"; then
20999    setopt NO_GLOB_SUBST
21000 fi
21001
21002
21003     PACKAGE='$PACKAGE'
21004     VERSION='$VERSION'
21005     RM='$RM'
21006     ofile='$ofile'
21007
21008
21009
21010
21011
21012
21013 _ACEOF
21014
21015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21016
21017 # Handling of arguments.
21018 for ac_config_target in $ac_config_targets
21019 do
21020   case $ac_config_target in
21021     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21022     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21023     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21024     "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
21025     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21026     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21027     "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
21028     "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
21029     "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
21030     "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
21031     "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
21032     "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
21033     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
21034     "plugins/fast_float/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/Makefile" ;;
21035     "plugins/fast_float/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/src/Makefile" ;;
21036     "plugins/fast_float/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/include/Makefile" ;;
21037     "plugins/fast_float/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/fast_float/testbed/Makefile" ;;
21038     "plugins/threaded/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/Makefile" ;;
21039     "plugins/threaded/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/src/Makefile" ;;
21040     "plugins/threaded/include/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/include/Makefile" ;;
21041     "plugins/threaded/testbed/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/threaded/testbed/Makefile" ;;
21042
21043   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21044   esac
21045 done
21046
21047
21048 # If the user did not use the arguments to specify the items to instantiate,
21049 # then the envvar interface is used.  Set only those that are not.
21050 # We use the long form for the default assignment because of an extremely
21051 # bizarre bug on SunOS 4.1.3.
21052 if $ac_need_defaults; then
21053   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21054   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21055 fi
21056
21057 # Have a temporary directory for convenience.  Make it in the build tree
21058 # simply because there is no reason against having it here, and in addition,
21059 # creating and moving files from /tmp can sometimes cause problems.
21060 # Hook for its removal unless debugging.
21061 # Note that there is a small window in which the directory will not be cleaned:
21062 # after its creation but before its name has been assigned to `$tmp'.
21063 $debug ||
21064 {
21065   tmp= ac_tmp=
21066   trap 'exit_status=$?
21067   : "${ac_tmp:=$tmp}"
21068   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21069 ' 0
21070   trap 'as_fn_exit 1' 1 2 13 15
21071 }
21072 # Create a (secure) tmp directory for tmp files.
21073
21074 {
21075   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21076   test -d "$tmp"
21077 }  ||
21078 {
21079   tmp=./conf$$-$RANDOM
21080   (umask 077 && mkdir "$tmp")
21081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21082 ac_tmp=$tmp
21083
21084 # Set up the scripts for CONFIG_FILES section.
21085 # No need to generate them if there are no CONFIG_FILES.
21086 # This happens for instance with `./config.status config.h'.
21087 if test -n "$CONFIG_FILES"; then
21088
21089
21090 ac_cr=`echo X | tr X '\015'`
21091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21092 # But we know of no other shell where ac_cr would be empty at this
21093 # point, so we can use a bashism as a fallback.
21094 if test "x$ac_cr" = x; then
21095   eval ac_cr=\$\'\\r\'
21096 fi
21097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21099   ac_cs_awk_cr='\\r'
21100 else
21101   ac_cs_awk_cr=$ac_cr
21102 fi
21103
21104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21105 _ACEOF
21106
21107
21108 {
21109   echo "cat >conf$$subs.awk <<_ACEOF" &&
21110   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21111   echo "_ACEOF"
21112 } >conf$$subs.sh ||
21113   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21115 ac_delim='%!_!# '
21116 for ac_last_try in false false false false false :; do
21117   . ./conf$$subs.sh ||
21118     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21119
21120   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21121   if test $ac_delim_n = $ac_delim_num; then
21122     break
21123   elif $ac_last_try; then
21124     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21125   else
21126     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21127   fi
21128 done
21129 rm -f conf$$subs.sh
21130
21131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21133 _ACEOF
21134 sed -n '
21135 h
21136 s/^/S["/; s/!.*/"]=/
21137 p
21138 g
21139 s/^[^!]*!//
21140 :repl
21141 t repl
21142 s/'"$ac_delim"'$//
21143 t delim
21144 :nl
21145 h
21146 s/\(.\{148\}\)..*/\1/
21147 t more1
21148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21149 p
21150 n
21151 b repl
21152 :more1
21153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21154 p
21155 g
21156 s/.\{148\}//
21157 t nl
21158 :delim
21159 h
21160 s/\(.\{148\}\)..*/\1/
21161 t more2
21162 s/["\\]/\\&/g; s/^/"/; s/$/"/
21163 p
21164 b
21165 :more2
21166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21167 p
21168 g
21169 s/.\{148\}//
21170 t delim
21171 ' <conf$$subs.awk | sed '
21172 /^[^""]/{
21173   N
21174   s/\n//
21175 }
21176 ' >>$CONFIG_STATUS || ac_write_fail=1
21177 rm -f conf$$subs.awk
21178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21179 _ACAWK
21180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21181   for (key in S) S_is_set[key] = 1
21182   FS = "\a"
21183
21184 }
21185 {
21186   line = $ 0
21187   nfields = split(line, field, "@")
21188   substed = 0
21189   len = length(field[1])
21190   for (i = 2; i < nfields; i++) {
21191     key = field[i]
21192     keylen = length(key)
21193     if (S_is_set[key]) {
21194       value = S[key]
21195       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21196       len += length(value) + length(field[++i])
21197       substed = 1
21198     } else
21199       len += 1 + keylen
21200   }
21201
21202   print line
21203 }
21204
21205 _ACAWK
21206 _ACEOF
21207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21209   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21210 else
21211   cat
21212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21213   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21214 _ACEOF
21215
21216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21218 # trailing colons and then remove the whole line if VPATH becomes empty
21219 # (actually we leave an empty line to preserve line numbers).
21220 if test "x$srcdir" = x.; then
21221   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
21222 h
21223 s///
21224 s/^/:/
21225 s/[      ]*$/:/
21226 s/:\$(srcdir):/:/g
21227 s/:\${srcdir}:/:/g
21228 s/:@srcdir@:/:/g
21229 s/^:*//
21230 s/:*$//
21231 x
21232 s/\(=[   ]*\).*/\1/
21233 G
21234 s/\n//
21235 s/^[^=]*=[       ]*$//
21236 }'
21237 fi
21238
21239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21240 fi # test -n "$CONFIG_FILES"
21241
21242
21243 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
21244 shift
21245 for ac_tag
21246 do
21247   case $ac_tag in
21248   :[FHLC]) ac_mode=$ac_tag; continue;;
21249   esac
21250   case $ac_mode$ac_tag in
21251   :[FHL]*:*);;
21252   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21253   :[FH]-) ac_tag=-:-;;
21254   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21255   esac
21256   ac_save_IFS=$IFS
21257   IFS=:
21258   set x $ac_tag
21259   IFS=$ac_save_IFS
21260   shift
21261   ac_file=$1
21262   shift
21263
21264   case $ac_mode in
21265   :L) ac_source=$1;;
21266   :[FH])
21267     ac_file_inputs=
21268     for ac_f
21269     do
21270       case $ac_f in
21271       -) ac_f="$ac_tmp/stdin";;
21272       *) # Look for the file first in the build tree, then in the source tree
21273          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21274          # because $ac_f cannot contain `:'.
21275          test -f "$ac_f" ||
21276            case $ac_f in
21277            [\\/$]*) false;;
21278            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21279            esac ||
21280            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21281       esac
21282       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21283       as_fn_append ac_file_inputs " '$ac_f'"
21284     done
21285
21286     # Let's still pretend it is `configure' which instantiates (i.e., don't
21287     # use $as_me), people would be surprised to read:
21288     #    /* config.h.  Generated by config.status.  */
21289     configure_input='Generated from '`
21290           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21291         `' by configure.'
21292     if test x"$ac_file" != x-; then
21293       configure_input="$ac_file.  $configure_input"
21294       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21295 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21296     fi
21297     # Neutralize special characters interpreted by sed in replacement strings.
21298     case $configure_input in #(
21299     *\&* | *\|* | *\\* )
21300        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21301        sed 's/[\\\\&|]/\\\\&/g'`;; #(
21302     *) ac_sed_conf_input=$configure_input;;
21303     esac
21304
21305     case $ac_tag in
21306     *:-:* | *:-) cat >"$ac_tmp/stdin" \
21307       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21308     esac
21309     ;;
21310   esac
21311
21312   ac_dir=`$as_dirname -- "$ac_file" ||
21313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21314          X"$ac_file" : 'X\(//\)[^/]' \| \
21315          X"$ac_file" : 'X\(//\)$' \| \
21316          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21317 printf "%s\n" X"$ac_file" |
21318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21319             s//\1/
21320             q
21321           }
21322           /^X\(\/\/\)[^/].*/{
21323             s//\1/
21324             q
21325           }
21326           /^X\(\/\/\)$/{
21327             s//\1/
21328             q
21329           }
21330           /^X\(\/\).*/{
21331             s//\1/
21332             q
21333           }
21334           s/.*/./; q'`
21335   as_dir="$ac_dir"; as_fn_mkdir_p
21336   ac_builddir=.
21337
21338 case "$ac_dir" in
21339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21340 *)
21341   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21342   # A ".." for each directory in $ac_dir_suffix.
21343   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21344   case $ac_top_builddir_sub in
21345   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21346   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21347   esac ;;
21348 esac
21349 ac_abs_top_builddir=$ac_pwd
21350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21351 # for backward compatibility:
21352 ac_top_builddir=$ac_top_build_prefix
21353
21354 case $srcdir in
21355   .)  # We are building in place.
21356     ac_srcdir=.
21357     ac_top_srcdir=$ac_top_builddir_sub
21358     ac_abs_top_srcdir=$ac_pwd ;;
21359   [\\/]* | ?:[\\/]* )  # Absolute name.
21360     ac_srcdir=$srcdir$ac_dir_suffix;
21361     ac_top_srcdir=$srcdir
21362     ac_abs_top_srcdir=$srcdir ;;
21363   *) # Relative name.
21364     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21365     ac_top_srcdir=$ac_top_build_prefix$srcdir
21366     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21367 esac
21368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21369
21370
21371   case $ac_mode in
21372   :F)
21373   #
21374   # CONFIG_FILE
21375   #
21376
21377   case $INSTALL in
21378   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21379   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21380   esac
21381   ac_MKDIR_P=$MKDIR_P
21382   case $MKDIR_P in
21383   [\\/$]* | ?:[\\/]* ) ;;
21384   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21385   esac
21386 _ACEOF
21387
21388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21389 # If the template does not know about datarootdir, expand it.
21390 # FIXME: This hack should be removed a few years after 2.60.
21391 ac_datarootdir_hack=; ac_datarootdir_seen=
21392 ac_sed_dataroot='
21393 /datarootdir/ {
21394   p
21395   q
21396 }
21397 /@datadir@/p
21398 /@docdir@/p
21399 /@infodir@/p
21400 /@localedir@/p
21401 /@mandir@/p'
21402 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21403 *datarootdir*) ac_datarootdir_seen=yes;;
21404 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21406 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21407 _ACEOF
21408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21409   ac_datarootdir_hack='
21410   s&@datadir@&$datadir&g
21411   s&@docdir@&$docdir&g
21412   s&@infodir@&$infodir&g
21413   s&@localedir@&$localedir&g
21414   s&@mandir@&$mandir&g
21415   s&\\\${datarootdir}&$datarootdir&g' ;;
21416 esac
21417 _ACEOF
21418
21419 # Neutralize VPATH when `$srcdir' = `.'.
21420 # Shell code in configure.ac might set extrasub.
21421 # FIXME: do we really want to maintain this feature?
21422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21423 ac_sed_extra="$ac_vpsub
21424 $extrasub
21425 _ACEOF
21426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21427 :t
21428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21429 s|@configure_input@|$ac_sed_conf_input|;t t
21430 s&@top_builddir@&$ac_top_builddir_sub&;t t
21431 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21432 s&@srcdir@&$ac_srcdir&;t t
21433 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21434 s&@top_srcdir@&$ac_top_srcdir&;t t
21435 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21436 s&@builddir@&$ac_builddir&;t t
21437 s&@abs_builddir@&$ac_abs_builddir&;t t
21438 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21439 s&@INSTALL@&$ac_INSTALL&;t t
21440 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21441 $ac_datarootdir_hack
21442 "
21443 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21444   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21445
21446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21447   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21448   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
21449       "$ac_tmp/out"`; test -z "$ac_out"; } &&
21450   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21451 which seems to be undefined.  Please make sure it is defined" >&5
21452 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21453 which seems to be undefined.  Please make sure it is defined" >&2;}
21454
21455   rm -f "$ac_tmp/stdin"
21456   case $ac_file in
21457   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21458   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21459   esac \
21460   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21461  ;;
21462
21463
21464   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21465 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21466  ;;
21467   esac
21468
21469
21470   case $ac_file$ac_mode in
21471     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21472   # Older Autoconf quotes --file arguments for eval, but not when files
21473   # are listed without --file.  Let's play safe and only enable the eval
21474   # if we detect the quoting.
21475   # TODO: see whether this extra hack can be removed once we start
21476   # requiring Autoconf 2.70 or later.
21477   case $CONFIG_FILES in #(
21478   *\'*) :
21479     eval set x "$CONFIG_FILES" ;; #(
21480   *) :
21481     set x $CONFIG_FILES ;; #(
21482   *) :
21483      ;;
21484 esac
21485   shift
21486   # Used to flag and report bootstrapping failures.
21487   am_rc=0
21488   for am_mf
21489   do
21490     # Strip MF so we end up with the name of the file.
21491     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21492     # Check whether this is an Automake generated Makefile which includes
21493     # dependency-tracking related rules and includes.
21494     # Grep'ing the whole file directly is not great: AIX grep has a line
21495     # limit of 2048, but all sed's we know have understand at least 4000.
21496     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21497       || continue
21498     am_dirpart=`$as_dirname -- "$am_mf" ||
21499 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21500          X"$am_mf" : 'X\(//\)[^/]' \| \
21501          X"$am_mf" : 'X\(//\)$' \| \
21502          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21503 printf "%s\n" X"$am_mf" |
21504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21505             s//\1/
21506             q
21507           }
21508           /^X\(\/\/\)[^/].*/{
21509             s//\1/
21510             q
21511           }
21512           /^X\(\/\/\)$/{
21513             s//\1/
21514             q
21515           }
21516           /^X\(\/\).*/{
21517             s//\1/
21518             q
21519           }
21520           s/.*/./; q'`
21521     am_filepart=`$as_basename -- "$am_mf" ||
21522 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21523          X"$am_mf" : 'X\(//\)$' \| \
21524          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21525 printf "%s\n" X/"$am_mf" |
21526     sed '/^.*\/\([^/][^/]*\)\/*$/{
21527             s//\1/
21528             q
21529           }
21530           /^X\/\(\/\/\)$/{
21531             s//\1/
21532             q
21533           }
21534           /^X\/\(\/\).*/{
21535             s//\1/
21536             q
21537           }
21538           s/.*/./; q'`
21539     { echo "$as_me:$LINENO: cd "$am_dirpart" \
21540       && sed -e '/# am--include-marker/d' "$am_filepart" \
21541         | $MAKE -f - am--depfiles" >&5
21542    (cd "$am_dirpart" \
21543       && sed -e '/# am--include-marker/d' "$am_filepart" \
21544         | $MAKE -f - am--depfiles) >&5 2>&5
21545    ac_status=$?
21546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547    (exit $ac_status); } || am_rc=$?
21548   done
21549   if test $am_rc -ne 0; then
21550     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21552 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21553     for automatic dependency tracking.  If GNU make was not used, consider
21554     re-running the configure script with MAKE=\"gmake\" (or whatever is
21555     necessary).  You can also try re-running configure with the
21556     '--disable-dependency-tracking' option to at least be able to build
21557     the package (albeit without support for automatic dependency tracking).
21558 See \`config.log' for more details" "$LINENO" 5; }
21559   fi
21560   { am_dirpart=; unset am_dirpart;}
21561   { am_filepart=; unset am_filepart;}
21562   { am_mf=; unset am_mf;}
21563   { am_rc=; unset am_rc;}
21564   rm -f conftest-deps.mk
21565 }
21566  ;;
21567     "libtool":C)
21568
21569     # See if we are running on zsh, and set the options that allow our
21570     # commands through without removal of \ escapes.
21571     if test -n "${ZSH_VERSION+set}"; then
21572       setopt NO_GLOB_SUBST
21573     fi
21574
21575     cfgfile=${ofile}T
21576     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21577     $RM "$cfgfile"
21578
21579     cat <<_LT_EOF >> "$cfgfile"
21580 #! $SHELL
21581 # Generated automatically by $as_me ($PACKAGE) $VERSION
21582 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21583
21584 # Provide generalized library-building support services.
21585 # Written by Gordon Matzigkeit, 1996
21586
21587 # Copyright (C) 2014 Free Software Foundation, Inc.
21588 # This is free software; see the source for copying conditions.  There is NO
21589 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21590
21591 # GNU Libtool is free software; you can redistribute it and/or modify
21592 # it under the terms of the GNU General Public License as published by
21593 # the Free Software Foundation; either version 2 of of the License, or
21594 # (at your option) any later version.
21595 #
21596 # As a special exception to the GNU General Public License, if you
21597 # distribute this file as part of a program or library that is built
21598 # using GNU Libtool, you may include this file under the  same
21599 # distribution terms that you use for the rest of that program.
21600 #
21601 # GNU Libtool is distributed in the hope that it will be useful, but
21602 # WITHOUT ANY WARRANTY; without even the implied warranty of
21603 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21604 # GNU General Public License for more details.
21605 #
21606 # You should have received a copy of the GNU General Public License
21607 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
21608
21609
21610 # The names of the tagged configurations supported by this script.
21611 available_tags='CXX '
21612
21613 # Configured defaults for sys_lib_dlsearch_path munging.
21614 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21615
21616 # ### BEGIN LIBTOOL CONFIG
21617
21618 # Which release of libtool.m4 was used?
21619 macro_version=$macro_version
21620 macro_revision=$macro_revision
21621
21622 # Whether or not to build shared libraries.
21623 build_libtool_libs=$enable_shared
21624
21625 # Whether or not to build static libraries.
21626 build_old_libs=$enable_static
21627
21628 # What type of objects to build.
21629 pic_mode=$pic_mode
21630
21631 # Whether or not to optimize for fast installation.
21632 fast_install=$enable_fast_install
21633
21634 # Shared archive member basename,for filename based shared library versioning on AIX.
21635 shared_archive_member_spec=$shared_archive_member_spec
21636
21637 # Shell to use when invoking shell scripts.
21638 SHELL=$lt_SHELL
21639
21640 # An echo program that protects backslashes.
21641 ECHO=$lt_ECHO
21642
21643 # The PATH separator for the build system.
21644 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21645
21646 # The host system.
21647 host_alias=$host_alias
21648 host=$host
21649 host_os=$host_os
21650
21651 # The build system.
21652 build_alias=$build_alias
21653 build=$build
21654 build_os=$build_os
21655
21656 # A sed program that does not truncate output.
21657 SED=$lt_SED
21658
21659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21660 Xsed="\$SED -e 1s/^X//"
21661
21662 # A grep program that handles long lines.
21663 GREP=$lt_GREP
21664
21665 # An ERE matcher.
21666 EGREP=$lt_EGREP
21667
21668 # A literal string matcher.
21669 FGREP=$lt_FGREP
21670
21671 # A BSD- or MS-compatible name lister.
21672 NM=$lt_NM
21673
21674 # Whether we need soft or hard links.
21675 LN_S=$lt_LN_S
21676
21677 # What is the maximum length of a command?
21678 max_cmd_len=$max_cmd_len
21679
21680 # Object file suffix (normally "o").
21681 objext=$ac_objext
21682
21683 # Executable file suffix (normally "").
21684 exeext=$exeext
21685
21686 # whether the shell understands "unset".
21687 lt_unset=$lt_unset
21688
21689 # turn spaces into newlines.
21690 SP2NL=$lt_lt_SP2NL
21691
21692 # turn newlines into spaces.
21693 NL2SP=$lt_lt_NL2SP
21694
21695 # convert \$build file names to \$host format.
21696 to_host_file_cmd=$lt_cv_to_host_file_cmd
21697
21698 # convert \$build files to toolchain format.
21699 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21700
21701 # A file(cmd) program that detects file types.
21702 FILECMD=$lt_FILECMD
21703
21704 # An object symbol dumper.
21705 OBJDUMP=$lt_OBJDUMP
21706
21707 # Method to check whether dependent libraries are shared objects.
21708 deplibs_check_method=$lt_deplibs_check_method
21709
21710 # Command to use when deplibs_check_method = "file_magic".
21711 file_magic_cmd=$lt_file_magic_cmd
21712
21713 # How to find potential files when deplibs_check_method = "file_magic".
21714 file_magic_glob=$lt_file_magic_glob
21715
21716 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21717 want_nocaseglob=$lt_want_nocaseglob
21718
21719 # DLL creation program.
21720 DLLTOOL=$lt_DLLTOOL
21721
21722 # Command to associate shared and link libraries.
21723 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21724
21725 # The archiver.
21726 AR=$lt_AR
21727
21728 # Flags to create an archive (by configure).
21729 lt_ar_flags=$lt_ar_flags
21730
21731 # Flags to create an archive.
21732 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21733
21734 # How to feed a file listing to the archiver.
21735 archiver_list_spec=$lt_archiver_list_spec
21736
21737 # A symbol stripping program.
21738 STRIP=$lt_STRIP
21739
21740 # Commands used to install an old-style archive.
21741 RANLIB=$lt_RANLIB
21742 old_postinstall_cmds=$lt_old_postinstall_cmds
21743 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21744
21745 # Whether to use a lock for old archive extraction.
21746 lock_old_archive_extraction=$lock_old_archive_extraction
21747
21748 # A C compiler.
21749 LTCC=$lt_CC
21750
21751 # LTCC compiler flags.
21752 LTCFLAGS=$lt_CFLAGS
21753
21754 # Take the output of nm and produce a listing of raw symbols and C names.
21755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21756
21757 # Transform the output of nm in a proper C declaration.
21758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21759
21760 # Transform the output of nm into a list of symbols to manually relocate.
21761 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21762
21763 # Transform the output of nm in a C name address pair.
21764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21765
21766 # Transform the output of nm in a C name address pair when lib prefix is needed.
21767 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21768
21769 # The name lister interface.
21770 nm_interface=$lt_lt_cv_nm_interface
21771
21772 # Specify filename containing input files for \$NM.
21773 nm_file_list_spec=$lt_nm_file_list_spec
21774
21775 # The root where to search for dependent libraries,and where our libraries should be installed.
21776 lt_sysroot=$lt_sysroot
21777
21778 # Command to truncate a binary pipe.
21779 lt_truncate_bin=$lt_lt_cv_truncate_bin
21780
21781 # The name of the directory that contains temporary libtool files.
21782 objdir=$objdir
21783
21784 # Used to examine libraries when file_magic_cmd begins with "file".
21785 MAGIC_CMD=$MAGIC_CMD
21786
21787 # Must we lock files when doing compilation?
21788 need_locks=$lt_need_locks
21789
21790 # Manifest tool.
21791 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21792
21793 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21794 DSYMUTIL=$lt_DSYMUTIL
21795
21796 # Tool to change global to local symbols on Mac OS X.
21797 NMEDIT=$lt_NMEDIT
21798
21799 # Tool to manipulate fat objects and archives on Mac OS X.
21800 LIPO=$lt_LIPO
21801
21802 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21803 OTOOL=$lt_OTOOL
21804
21805 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21806 OTOOL64=$lt_OTOOL64
21807
21808 # Old archive suffix (normally "a").
21809 libext=$libext
21810
21811 # Shared library suffix (normally ".so").
21812 shrext_cmds=$lt_shrext_cmds
21813
21814 # The commands to extract the exported symbol list from a shared archive.
21815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21816
21817 # Variables whose values should be saved in libtool wrapper scripts and
21818 # restored at link time.
21819 variables_saved_for_relink=$lt_variables_saved_for_relink
21820
21821 # Do we need the "lib" prefix for modules?
21822 need_lib_prefix=$need_lib_prefix
21823
21824 # Do we need a version for libraries?
21825 need_version=$need_version
21826
21827 # Library versioning type.
21828 version_type=$version_type
21829
21830 # Shared library runtime path variable.
21831 runpath_var=$runpath_var
21832
21833 # Shared library path variable.
21834 shlibpath_var=$shlibpath_var
21835
21836 # Is shlibpath searched before the hard-coded library search path?
21837 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21838
21839 # Format of library name prefix.
21840 libname_spec=$lt_libname_spec
21841
21842 # List of archive names.  First name is the real one, the rest are links.
21843 # The last name is the one that the linker finds with -lNAME
21844 library_names_spec=$lt_library_names_spec
21845
21846 # The coded name of the library, if different from the real name.
21847 soname_spec=$lt_soname_spec
21848
21849 # Permission mode override for installation of shared libraries.
21850 install_override_mode=$lt_install_override_mode
21851
21852 # Command to use after installation of a shared archive.
21853 postinstall_cmds=$lt_postinstall_cmds
21854
21855 # Command to use after uninstallation of a shared archive.
21856 postuninstall_cmds=$lt_postuninstall_cmds
21857
21858 # Commands used to finish a libtool library installation in a directory.
21859 finish_cmds=$lt_finish_cmds
21860
21861 # As "finish_cmds", except a single script fragment to be evaled but
21862 # not shown.
21863 finish_eval=$lt_finish_eval
21864
21865 # Whether we should hardcode library paths into libraries.
21866 hardcode_into_libs=$hardcode_into_libs
21867
21868 # Compile-time system search path for libraries.
21869 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21870
21871 # Detected run-time system search path for libraries.
21872 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21873
21874 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21875 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21876
21877 # Whether dlopen is supported.
21878 dlopen_support=$enable_dlopen
21879
21880 # Whether dlopen of programs is supported.
21881 dlopen_self=$enable_dlopen_self
21882
21883 # Whether dlopen of statically linked programs is supported.
21884 dlopen_self_static=$enable_dlopen_self_static
21885
21886 # Commands to strip libraries.
21887 old_striplib=$lt_old_striplib
21888 striplib=$lt_striplib
21889
21890 # Assembler program.
21891 AS=$lt_AS
21892
21893
21894 # The linker used to build libraries.
21895 LD=$lt_LD
21896
21897 # How to create reloadable object files.
21898 reload_flag=$lt_reload_flag
21899 reload_cmds=$lt_reload_cmds
21900
21901 # Commands used to build an old-style archive.
21902 old_archive_cmds=$lt_old_archive_cmds
21903
21904 # A language specific compiler.
21905 CC=$lt_compiler
21906
21907 # Is the compiler the GNU compiler?
21908 with_gcc=$GCC
21909
21910 # Compiler flag to turn off builtin functions.
21911 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21912
21913 # Additional compiler flags for building library objects.
21914 pic_flag=$lt_lt_prog_compiler_pic
21915
21916 # How to pass a linker flag through the compiler.
21917 wl=$lt_lt_prog_compiler_wl
21918
21919 # Compiler flag to prevent dynamic linking.
21920 link_static_flag=$lt_lt_prog_compiler_static
21921
21922 # Does compiler simultaneously support -c and -o options?
21923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21924
21925 # Whether or not to add -lc for building shared libraries.
21926 build_libtool_need_lc=$archive_cmds_need_lc
21927
21928 # Whether or not to disallow shared libs when runtime libs are static.
21929 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21930
21931 # Compiler flag to allow reflexive dlopens.
21932 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21933
21934 # Compiler flag to generate shared objects directly from archives.
21935 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21936
21937 # Whether the compiler copes with passing no objects directly.
21938 compiler_needs_object=$lt_compiler_needs_object
21939
21940 # Create an old-style archive from a shared archive.
21941 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21942
21943 # Create a temporary old-style archive to link instead of a shared archive.
21944 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21945
21946 # Commands used to build a shared archive.
21947 archive_cmds=$lt_archive_cmds
21948 archive_expsym_cmds=$lt_archive_expsym_cmds
21949
21950 # Commands used to build a loadable module if different from building
21951 # a shared archive.
21952 module_cmds=$lt_module_cmds
21953 module_expsym_cmds=$lt_module_expsym_cmds
21954
21955 # Whether we are building with GNU ld or not.
21956 with_gnu_ld=$lt_with_gnu_ld
21957
21958 # Flag that allows shared libraries with undefined symbols to be built.
21959 allow_undefined_flag=$lt_allow_undefined_flag
21960
21961 # Flag that enforces no undefined symbols.
21962 no_undefined_flag=$lt_no_undefined_flag
21963
21964 # Flag to hardcode \$libdir into a binary during linking.
21965 # This must work even if \$libdir does not exist
21966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21967
21968 # Whether we need a single "-rpath" flag with a separated argument.
21969 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21970
21971 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21972 # DIR into the resulting binary.
21973 hardcode_direct=$hardcode_direct
21974
21975 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21976 # DIR into the resulting binary and the resulting library dependency is
21977 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21978 # library is relocated.
21979 hardcode_direct_absolute=$hardcode_direct_absolute
21980
21981 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21982 # into the resulting binary.
21983 hardcode_minus_L=$hardcode_minus_L
21984
21985 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21986 # into the resulting binary.
21987 hardcode_shlibpath_var=$hardcode_shlibpath_var
21988
21989 # Set to "yes" if building a shared library automatically hardcodes DIR
21990 # into the library and all subsequent libraries and executables linked
21991 # against it.
21992 hardcode_automatic=$hardcode_automatic
21993
21994 # Set to yes if linker adds runtime paths of dependent libraries
21995 # to runtime path list.
21996 inherit_rpath=$inherit_rpath
21997
21998 # Whether libtool must link a program against all its dependency libraries.
21999 link_all_deplibs=$link_all_deplibs
22000
22001 # Set to "yes" if exported symbols are required.
22002 always_export_symbols=$always_export_symbols
22003
22004 # The commands to list exported symbols.
22005 export_symbols_cmds=$lt_export_symbols_cmds
22006
22007 # Symbols that should not be listed in the preloaded symbols.
22008 exclude_expsyms=$lt_exclude_expsyms
22009
22010 # Symbols that must always be exported.
22011 include_expsyms=$lt_include_expsyms
22012
22013 # Commands necessary for linking programs (against libraries) with templates.
22014 prelink_cmds=$lt_prelink_cmds
22015
22016 # Commands necessary for finishing linking programs.
22017 postlink_cmds=$lt_postlink_cmds
22018
22019 # Specify filename containing input files.
22020 file_list_spec=$lt_file_list_spec
22021
22022 # How to hardcode a shared library path into an executable.
22023 hardcode_action=$hardcode_action
22024
22025 # The directories searched by this compiler when creating a shared library.
22026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22027
22028 # Dependencies to place before and after the objects being linked to
22029 # create a shared library.
22030 predep_objects=$lt_predep_objects
22031 postdep_objects=$lt_postdep_objects
22032 predeps=$lt_predeps
22033 postdeps=$lt_postdeps
22034
22035 # The library search path used internally by the compiler when linking
22036 # a shared library.
22037 compiler_lib_search_path=$lt_compiler_lib_search_path
22038
22039 # ### END LIBTOOL CONFIG
22040
22041 _LT_EOF
22042
22043     cat <<'_LT_EOF' >> "$cfgfile"
22044
22045 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22046
22047 # func_munge_path_list VARIABLE PATH
22048 # -----------------------------------
22049 # VARIABLE is name of variable containing _space_ separated list of
22050 # directories to be munged by the contents of PATH, which is string
22051 # having a format:
22052 # "DIR[:DIR]:"
22053 #       string "DIR[ DIR]" will be prepended to VARIABLE
22054 # ":DIR[:DIR]"
22055 #       string "DIR[ DIR]" will be appended to VARIABLE
22056 # "DIRP[:DIRP]::[DIRA:]DIRA"
22057 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22058 #       "DIRA[ DIRA]" will be appended to VARIABLE
22059 # "DIR[:DIR]"
22060 #       VARIABLE will be replaced by "DIR[ DIR]"
22061 func_munge_path_list ()
22062 {
22063     case x$2 in
22064     x)
22065         ;;
22066     *:)
22067         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22068         ;;
22069     x:*)
22070         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22071         ;;
22072     *::*)
22073         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22074         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22075         ;;
22076     *)
22077         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22078         ;;
22079     esac
22080 }
22081
22082
22083 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22084 func_cc_basename ()
22085 {
22086     for cc_temp in $*""; do
22087       case $cc_temp in
22088         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22089         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22090         \-*) ;;
22091         *) break;;
22092       esac
22093     done
22094     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22095 }
22096
22097
22098 # ### END FUNCTIONS SHARED WITH CONFIGURE
22099
22100 _LT_EOF
22101
22102   case $host_os in
22103   aix3*)
22104     cat <<\_LT_EOF >> "$cfgfile"
22105 # AIX sometimes has problems with the GCC collect2 program.  For some
22106 # reason, if we set the COLLECT_NAMES environment variable, the problems
22107 # vanish in a puff of smoke.
22108 if test set != "${COLLECT_NAMES+set}"; then
22109   COLLECT_NAMES=
22110   export COLLECT_NAMES
22111 fi
22112 _LT_EOF
22113     ;;
22114   esac
22115
22116
22117
22118 ltmain=$ac_aux_dir/ltmain.sh
22119
22120
22121   # We use sed instead of cat because bash on DJGPP gets confused if
22122   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22123   # text mode, it properly converts lines to CR/LF.  This bash problem
22124   # is reportedly fixed, but why not run on old versions too?
22125   $SED '$q' "$ltmain" >> "$cfgfile" \
22126      || (rm -f "$cfgfile"; exit 1)
22127
22128    mv -f "$cfgfile" "$ofile" ||
22129     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22130   chmod +x "$ofile"
22131
22132
22133     cat <<_LT_EOF >> "$ofile"
22134
22135 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22136
22137 # The linker used to build libraries.
22138 LD=$lt_LD_CXX
22139
22140 # How to create reloadable object files.
22141 reload_flag=$lt_reload_flag_CXX
22142 reload_cmds=$lt_reload_cmds_CXX
22143
22144 # Commands used to build an old-style archive.
22145 old_archive_cmds=$lt_old_archive_cmds_CXX
22146
22147 # A language specific compiler.
22148 CC=$lt_compiler_CXX
22149
22150 # Is the compiler the GNU compiler?
22151 with_gcc=$GCC_CXX
22152
22153 # Compiler flag to turn off builtin functions.
22154 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22155
22156 # Additional compiler flags for building library objects.
22157 pic_flag=$lt_lt_prog_compiler_pic_CXX
22158
22159 # How to pass a linker flag through the compiler.
22160 wl=$lt_lt_prog_compiler_wl_CXX
22161
22162 # Compiler flag to prevent dynamic linking.
22163 link_static_flag=$lt_lt_prog_compiler_static_CXX
22164
22165 # Does compiler simultaneously support -c and -o options?
22166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22167
22168 # Whether or not to add -lc for building shared libraries.
22169 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22170
22171 # Whether or not to disallow shared libs when runtime libs are static.
22172 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22173
22174 # Compiler flag to allow reflexive dlopens.
22175 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22176
22177 # Compiler flag to generate shared objects directly from archives.
22178 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22179
22180 # Whether the compiler copes with passing no objects directly.
22181 compiler_needs_object=$lt_compiler_needs_object_CXX
22182
22183 # Create an old-style archive from a shared archive.
22184 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22185
22186 # Create a temporary old-style archive to link instead of a shared archive.
22187 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22188
22189 # Commands used to build a shared archive.
22190 archive_cmds=$lt_archive_cmds_CXX
22191 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22192
22193 # Commands used to build a loadable module if different from building
22194 # a shared archive.
22195 module_cmds=$lt_module_cmds_CXX
22196 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22197
22198 # Whether we are building with GNU ld or not.
22199 with_gnu_ld=$lt_with_gnu_ld_CXX
22200
22201 # Flag that allows shared libraries with undefined symbols to be built.
22202 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22203
22204 # Flag that enforces no undefined symbols.
22205 no_undefined_flag=$lt_no_undefined_flag_CXX
22206
22207 # Flag to hardcode \$libdir into a binary during linking.
22208 # This must work even if \$libdir does not exist
22209 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22210
22211 # Whether we need a single "-rpath" flag with a separated argument.
22212 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22213
22214 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22215 # DIR into the resulting binary.
22216 hardcode_direct=$hardcode_direct_CXX
22217
22218 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22219 # DIR into the resulting binary and the resulting library dependency is
22220 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22221 # library is relocated.
22222 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22223
22224 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22225 # into the resulting binary.
22226 hardcode_minus_L=$hardcode_minus_L_CXX
22227
22228 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22229 # into the resulting binary.
22230 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22231
22232 # Set to "yes" if building a shared library automatically hardcodes DIR
22233 # into the library and all subsequent libraries and executables linked
22234 # against it.
22235 hardcode_automatic=$hardcode_automatic_CXX
22236
22237 # Set to yes if linker adds runtime paths of dependent libraries
22238 # to runtime path list.
22239 inherit_rpath=$inherit_rpath_CXX
22240
22241 # Whether libtool must link a program against all its dependency libraries.
22242 link_all_deplibs=$link_all_deplibs_CXX
22243
22244 # Set to "yes" if exported symbols are required.
22245 always_export_symbols=$always_export_symbols_CXX
22246
22247 # The commands to list exported symbols.
22248 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22249
22250 # Symbols that should not be listed in the preloaded symbols.
22251 exclude_expsyms=$lt_exclude_expsyms_CXX
22252
22253 # Symbols that must always be exported.
22254 include_expsyms=$lt_include_expsyms_CXX
22255
22256 # Commands necessary for linking programs (against libraries) with templates.
22257 prelink_cmds=$lt_prelink_cmds_CXX
22258
22259 # Commands necessary for finishing linking programs.
22260 postlink_cmds=$lt_postlink_cmds_CXX
22261
22262 # Specify filename containing input files.
22263 file_list_spec=$lt_file_list_spec_CXX
22264
22265 # How to hardcode a shared library path into an executable.
22266 hardcode_action=$hardcode_action_CXX
22267
22268 # The directories searched by this compiler when creating a shared library.
22269 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22270
22271 # Dependencies to place before and after the objects being linked to
22272 # create a shared library.
22273 predep_objects=$lt_predep_objects_CXX
22274 postdep_objects=$lt_postdep_objects_CXX
22275 predeps=$lt_predeps_CXX
22276 postdeps=$lt_postdeps_CXX
22277
22278 # The library search path used internally by the compiler when linking
22279 # a shared library.
22280 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22281
22282 # ### END LIBTOOL TAG CONFIG: CXX
22283 _LT_EOF
22284
22285  ;;
22286
22287   esac
22288 done # for ac_tag
22289
22290
22291 as_fn_exit 0
22292 _ACEOF
22293 ac_clean_files=$ac_clean_files_save
22294
22295 test $ac_write_fail = 0 ||
22296   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22297
22298
22299 # configure is writing to config.log, and then calls config.status.
22300 # config.status does its own redirection, appending to config.log.
22301 # Unfortunately, on DOS this fails, as config.log is still kept open
22302 # by configure, so config.status won't be able to write to it; its
22303 # output is simply discarded.  So we exec the FD to /dev/null,
22304 # effectively closing config.log, so it can be properly (re)opened and
22305 # appended to by config.status.  When coming back to configure, we
22306 # need to make the FD available again.
22307 if test "$no_create" != yes; then
22308   ac_cs_success=:
22309   ac_config_status_args=
22310   test "$silent" = yes &&
22311     ac_config_status_args="$ac_config_status_args --quiet"
22312   exec 5>/dev/null
22313   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22314   exec 5>>config.log
22315   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22316   # would make configure fail if this is the last instruction.
22317   $ac_cs_success || as_fn_exit 1
22318 fi
22319 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22320   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22321 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22322 fi
22323
22324