libphobos: Build all modules with -fversion=Shared when configured with --enable...
[platform/upstream/gcc.git] / libphobos / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
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   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libphobos'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="libdruntime/gcc/attribute.d"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 WARN_DFLAGS
637 libtool_VERSION
638 SPEC_PHOBOS_DEPS
639 CHECKING_DFLAGS
640 ENABLE_LIBDRUNTIME_ONLY_FALSE
641 ENABLE_LIBDRUNTIME_ONLY_TRUE
642 ENABLE_LIBPHOBOS_FALSE
643 ENABLE_LIBPHOBOS_TRUE
644 gdc_include_dir
645 libphobos_toolexeclibdir
646 libphobos_toolexecdir
647 gcc_version
648 LIBZ
649 BACKTRACE_SUPPORTS_THREADS
650 BACKTRACE_USES_MALLOC
651 BACKTRACE_SUPPORTED
652 LIBBACKTRACE
653 LIBATOMIC
654 DCFG_HAVE_LIBATOMIC
655 DCFG_HAVE_64BIT_ATOMICS
656 DCFG_HAVE_ATOMIC_BUILTINS
657 DCFG_HAVE_QSORT_R
658 OS_LINK_SPEC
659 DCFG_DLPI_TLS_MODID
660 DRUNTIME_OS_MINFO_BRACKETING_FALSE
661 DRUNTIME_OS_MINFO_BRACKETING_TRUE
662 DCFG_MINFO_BRACKETING
663 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
664 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
665 DCFG_ARM_EABI_UNWINDER
666 DCFG_THREAD_MODEL
667 DRUNTIME_OS_POSIX_FALSE
668 DRUNTIME_OS_POSIX_TRUE
669 DRUNTIME_OS_SOLARIS_FALSE
670 DRUNTIME_OS_SOLARIS_TRUE
671 DRUNTIME_OS_MINGW_FALSE
672 DRUNTIME_OS_MINGW_TRUE
673 DRUNTIME_OS_LINUX_FALSE
674 DRUNTIME_OS_LINUX_TRUE
675 DRUNTIME_OS_OPENBSD_FALSE
676 DRUNTIME_OS_OPENBSD_TRUE
677 DRUNTIME_OS_NETBSD_FALSE
678 DRUNTIME_OS_NETBSD_TRUE
679 DRUNTIME_OS_FREEBSD_FALSE
680 DRUNTIME_OS_FREEBSD_TRUE
681 DRUNTIME_OS_DRAGONFLYBSD_FALSE
682 DRUNTIME_OS_DRAGONFLYBSD_TRUE
683 DRUNTIME_OS_DARWIN_FALSE
684 DRUNTIME_OS_DARWIN_TRUE
685 DRUNTIME_OS_ANDROID_FALSE
686 DRUNTIME_OS_ANDROID_TRUE
687 DRUNTIME_OS_AIX_FALSE
688 DRUNTIME_OS_AIX_TRUE
689 DRUNTIME_CPU_S390_FALSE
690 DRUNTIME_CPU_S390_TRUE
691 DRUNTIME_CPU_SYSTEMZ_FALSE
692 DRUNTIME_CPU_SYSTEMZ_TRUE
693 DRUNTIME_CPU_X86_FALSE
694 DRUNTIME_CPU_X86_TRUE
695 DRUNTIME_CPU_POWERPC_FALSE
696 DRUNTIME_CPU_POWERPC_TRUE
697 DRUNTIME_CPU_MIPS_FALSE
698 DRUNTIME_CPU_MIPS_TRUE
699 DRUNTIME_CPU_ARM_FALSE
700 DRUNTIME_CPU_ARM_TRUE
701 DRUNTIME_CPU_AARCH64_FALSE
702 DRUNTIME_CPU_AARCH64_TRUE
703 libphobos_srcdir
704 libphobos_builddir
705 get_gcc_base_ver
706 phobos_compiler_shared_flag
707 phobos_compiler_pic_flag
708 phobos_lt_pic_flag
709 enable_static
710 enable_shared
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 OBJDUMP
717 LN_S
718 NM
719 ac_ct_DUMPBIN
720 DUMPBIN
721 LD
722 FGREP
723 SED
724 LIBTOOL
725 CFLAGS_FOR_BUILD
726 CC_FOR_BUILD
727 AR
728 DCFG_ENABLE_CET
729 CET_DFLAGS
730 CET_FLAGS
731 RANLIB
732 MAINT
733 MAINTAINER_MODE_FALSE
734 MAINTAINER_MODE_TRUE
735 GDCFLAGS
736 GDC
737 CCASFLAGS
738 CCAS
739 AM_BACKSLASH
740 AM_DEFAULT_VERBOSITY
741 AM_DEFAULT_V
742 AM_V
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 EGREP
767 GREP
768 CPP
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 target_os
777 target_vendor
778 target_cpu
779 target
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 multi_basedir
789 target_alias
790 host_alias
791 build_alias
792 LIBS
793 ECHO_T
794 ECHO_N
795 ECHO_C
796 DEFS
797 mandir
798 localedir
799 libdir
800 psdir
801 pdfdir
802 dvidir
803 htmldir
804 infodir
805 docdir
806 oldincludedir
807 includedir
808 localstatedir
809 sharedstatedir
810 sysconfdir
811 datadir
812 datarootdir
813 libexecdir
814 sbindir
815 bindir
816 program_transform_name
817 prefix
818 exec_prefix
819 PACKAGE_URL
820 PACKAGE_BUGREPORT
821 PACKAGE_STRING
822 PACKAGE_VERSION
823 PACKAGE_TARNAME
824 PACKAGE_NAME
825 PATH_SEPARATOR
826 SHELL'
827 ac_subst_files='DRTSTUFF_SPEC'
828 ac_user_opts='
829 enable_option_checking
830 enable_multilib
831 enable_silent_rules
832 enable_maintainer_mode
833 enable_cet
834 enable_shared
835 enable_static
836 with_pic
837 enable_fast_install
838 with_gnu_ld
839 enable_libtool_lock
840 with_gcc_major_version_only
841 enable_werror
842 with_libatomic
843 with_libbacktrace
844 with_target_system_zlib
845 with_cross_host
846 enable_version_specific_runtime_libs
847 with_toolexeclibdir
848 enable_libphobos
849 with_libphobos_druntime_only
850 enable_libphobos_checking
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915   # If the previous option needs an argument, assign it.
916   if test -n "$ac_prev"; then
917     eval $ac_prev=\$ac_option
918     ac_prev=
919     continue
920   fi
921
922   case $ac_option in
923   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924   *=)   ac_optarg= ;;
925   *)    ac_optarg=yes ;;
926   esac
927
928   # Accept the important Cygnus configure options, so we can diagnose typos.
929
930   case $ac_dashdash$ac_option in
931   --)
932     ac_dashdash=yes ;;
933
934   -bindir | --bindir | --bindi | --bind | --bin | --bi)
935     ac_prev=bindir ;;
936   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937     bindir=$ac_optarg ;;
938
939   -build | --build | --buil | --bui | --bu)
940     ac_prev=build_alias ;;
941   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942     build_alias=$ac_optarg ;;
943
944   -cache-file | --cache-file | --cache-fil | --cache-fi \
945   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946     ac_prev=cache_file ;;
947   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949     cache_file=$ac_optarg ;;
950
951   --config-cache | -C)
952     cache_file=config.cache ;;
953
954   -datadir | --datadir | --datadi | --datad)
955     ac_prev=datadir ;;
956   -datadir=* | --datadir=* | --datadi=* | --datad=*)
957     datadir=$ac_optarg ;;
958
959   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960   | --dataroo | --dataro | --datar)
961     ac_prev=datarootdir ;;
962   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964     datarootdir=$ac_optarg ;;
965
966   -disable-* | --disable-*)
967     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968     # Reject names that are not valid shell variable names.
969     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970       as_fn_error $? "invalid feature name: $ac_useropt"
971     ac_useropt_orig=$ac_useropt
972     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973     case $ac_user_opts in
974       *"
975 "enable_$ac_useropt"
976 "*) ;;
977       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978          ac_unrecognized_sep=', ';;
979     esac
980     eval enable_$ac_useropt=no ;;
981
982   -docdir | --docdir | --docdi | --doc | --do)
983     ac_prev=docdir ;;
984   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985     docdir=$ac_optarg ;;
986
987   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988     ac_prev=dvidir ;;
989   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990     dvidir=$ac_optarg ;;
991
992   -enable-* | --enable-*)
993     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994     # Reject names that are not valid shell variable names.
995     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996       as_fn_error $? "invalid feature name: $ac_useropt"
997     ac_useropt_orig=$ac_useropt
998     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999     case $ac_user_opts in
1000       *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004          ac_unrecognized_sep=', ';;
1005     esac
1006     eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200       as_fn_error $? "invalid package name: $ac_useropt"
1201     ac_useropt_orig=$ac_useropt
1202     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203     case $ac_user_opts in
1204       *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208          ac_unrecognized_sep=', ';;
1209     esac
1210     eval with_$ac_useropt=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=no ;;
1227
1228   --x)
1229     # Obsolete; use --with-x.
1230     with_x=yes ;;
1231
1232   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233   | --x-incl | --x-inc | --x-in | --x-i)
1234     ac_prev=x_includes ;;
1235   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237     x_includes=$ac_optarg ;;
1238
1239   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241     ac_prev=x_libraries ;;
1242   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244     x_libraries=$ac_optarg ;;
1245
1246   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     case $ac_envvar in #(
1254       '' | [0-9]* | *[!_$as_cr_alnum]* )
1255       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256     esac
1257     eval $ac_envvar=\$ac_optarg
1258     export $ac_envvar ;;
1259
1260   *)
1261     # FIXME: should be removed in autoconf 3.0.
1262     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266     ;;
1267
1268   esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273   as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277   case $enable_option_checking in
1278     no) ;;
1279     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281   esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286                 datadir sysconfdir sharedstatedir localstatedir includedir \
1287                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288                 libdir localedir mandir
1289 do
1290   eval ac_val=\$$ac_var
1291   # Remove trailing slashes.
1292   case $ac_val in
1293     */ )
1294       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295       eval $ac_var=\$ac_val;;
1296   esac
1297   # Be sure to have absolute directory names.
1298   case $ac_val in
1299     [\\/$]* | ?:[\\/]* )  continue;;
1300     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301   esac
1302   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316   elif test "x$build_alias" != "x$host_alias"; then
1317     cross_compiling=yes
1318   fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330   as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332   as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337   ac_srcdir_defaulted=yes
1338   # Try the directory containing this script, then the parent directory.
1339   ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341          X"$as_myself" : 'X\(//\)[^/]' \| \
1342          X"$as_myself" : 'X\(//\)$' \| \
1343          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)[^/].*/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\).*/{
1358             s//\1/
1359             q
1360           }
1361           s/.*/./; q'`
1362   srcdir=$ac_confdir
1363   if test ! -r "$srcdir/$ac_unique_file"; then
1364     srcdir=..
1365   fi
1366 else
1367   ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376         pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379   srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_env_${ac_var}_value=\$${ac_var}
1390   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398   # Omit some internal or obsolete options to make the list less imposing.
1399   # This message is too long to be a string in the A/UX 3.1 sh.
1400   cat <<_ACEOF
1401 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE.  See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411   -h, --help              display this help and exit
1412       --help=short        display options specific to this package
1413       --help=recursive    display the short help of all the included packages
1414   -V, --version           display version information and exit
1415   -q, --quiet, --silent   do not print \`checking ...' messages
1416       --cache-file=FILE   cache test results in FILE [disabled]
1417   -C, --config-cache      alias for \`--cache-file=config.cache'
1418   -n, --no-create         do not create output files
1419       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422   --prefix=PREFIX         install architecture-independent files in PREFIX
1423                           [$ac_default_prefix]
1424   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1425                           [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435   --bindir=DIR            user executables [EPREFIX/bin]
1436   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1437   --libexecdir=DIR        program executables [EPREFIX/libexec]
1438   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1439   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1440   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1441   --libdir=DIR            object code libraries [EPREFIX/lib]
1442   --includedir=DIR        C header files [PREFIX/include]
1443   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1444   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1445   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1446   --infodir=DIR           info documentation [DATAROOTDIR/info]
1447   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1448   --mandir=DIR            man documentation [DATAROOTDIR/man]
1449   --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1450   --htmldir=DIR           html documentation [DOCDIR]
1451   --dvidir=DIR            dvi documentation [DOCDIR]
1452   --pdfdir=DIR            pdf documentation [DOCDIR]
1453   --psdir=DIR             ps documentation [DOCDIR]
1454 _ACEOF
1455
1456   cat <<\_ACEOF
1457
1458 Program names:
1459   --program-prefix=PREFIX            prepend PREFIX to installed program names
1460   --program-suffix=SUFFIX            append SUFFIX to installed program names
1461   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1462
1463 System types:
1464   --build=BUILD     configure for building on BUILD [guessed]
1465   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1466   --target=TARGET   configure for building compilers for TARGET [HOST]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471   case $ac_init_help in
1472      short | recursive ) echo "Configuration of package-unused version-unused:";;
1473    esac
1474   cat <<\_ACEOF
1475
1476 Optional Features:
1477   --disable-option-checking  ignore unrecognized --enable/--with options
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --enable-multilib       build many library versions (default)
1481   --enable-silent-rules   less verbose build output (undo: "make V=1")
1482   --disable-silent-rules  verbose build output (undo: "make V=0")
1483   --enable-maintainer-mode
1484                           enable make rules and dependencies not useful (and
1485                           sometimes confusing) to the casual installer
1486   --enable-cet            enable Intel CET in target libraries [default=auto]
1487   --enable-shared[=PKGS]  build shared libraries [default=yes]
1488   --enable-static[=PKGS]  build static libraries [default=yes]
1489   --enable-fast-install[=PKGS]
1490                           optimize for fast installation [default=yes]
1491   --disable-libtool-lock  avoid locking (might break parallel builds)
1492   --enable-werror         turns on -Werror [default=no]
1493   --enable-version-specific-runtime-libs
1494                           Specify that runtime libraries should be installed
1495                           in a compiler-specific directory
1496   --enable-libphobos      Enable libphobos
1497   --enable-libphobos-checking[=LIST]
1498                           enable expensive run-time checks. With LIST, enable
1499                           only specific categories of checks. Categories are:
1500                           yes,no,all,none,release. Flags are: assert or other
1501                           strings
1502
1503 Optional Packages:
1504   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1505   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1506   --with-pic              try to use only PIC/non-PIC objects [default=use
1507                           both]
1508   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509   --with-gcc-major-version-only
1510                           use only GCC major number in filesystem paths
1511   --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1512   --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1513                           auto)
1514   --with-target-system-zlib={yes,no,auto}
1515                           use installed libz (default: no)
1516   --with-cross-host=HOST  configuring with a cross compiler
1517   --with-toolexeclibdir=DIR
1518                           install libraries built with a cross compiler within
1519                           DIR
1520   --with-libphobos-druntime-only={yes,no,auto}
1521                           build only the druntime library (default: auto)
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CPP         C preprocessor
1532   CCAS        assembler compiler command (defaults to CC)
1533   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1534   GDC         D compiler command
1535   GDCFLAGS    D compiler flags
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to the package provider.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546   # If there are subdirs, report their specific --help.
1547   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548     test -d "$ac_dir" ||
1549       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550       continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 package-unused configure version-unused
1604 generated by GNU Autoconf 2.69
1605
1606 Copyright (C) 2012 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext
1624   if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_compile") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest.$ac_objext; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_try_cpp LINENO
1656 # ----------------------
1657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_cpp ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 case "(($ac_try" in
1663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664   *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669   ac_status=$?
1670   if test -s conftest.err; then
1671     grep -v '^ *+' conftest.err >conftest.er1
1672     cat conftest.er1 >&5
1673     mv -f conftest.er1 conftest.err
1674   fi
1675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676   test $ac_status = 0; } > conftest.i && {
1677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678          test ! -s conftest.err
1679        }; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685     ac_retval=1
1686 fi
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688   as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_cpp
1691
1692 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1695 # the include files in INCLUDES and setting the cache variable VAR
1696 # accordingly.
1697 ac_fn_c_check_header_mongrel ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   if eval \${$3+:} false; then :
1701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if eval \${$3+:} false; then :
1704   $as_echo_n "(cached) " >&6
1705 fi
1706 eval ac_res=\$$3
1707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 else
1710   # Is the header compilable?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1712 $as_echo_n "checking $2 usability... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719   ac_header_compiler=yes
1720 else
1721   ac_header_compiler=no
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1725 $as_echo "$ac_header_compiler" >&6; }
1726
1727 # Is the header present?
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1729 $as_echo_n "checking $2 presence... " >&6; }
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h.  */
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_cpp "$LINENO"; then :
1735   ac_header_preproc=yes
1736 else
1737   ac_header_preproc=no
1738 fi
1739 rm -f conftest.err conftest.i conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1741 $as_echo "$ac_header_preproc" >&6; }
1742
1743 # So?  What about this header?
1744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1745   yes:no: )
1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1750     ;;
1751   no:yes:* )
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1755 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1756     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1759 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1760     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1762     ;;
1763 esac
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if eval \${$3+:} false; then :
1767   $as_echo_n "(cached) " >&6
1768 else
1769   eval "$3=\$ac_header_compiler"
1770 fi
1771 eval ac_res=\$$3
1772                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1774 fi
1775   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776
1777 } # ac_fn_c_check_header_mongrel
1778
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_link") 2>&5
1794   ac_status=$?
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797   { { case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_try") 2>&5
1804   ac_status=$?
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; }; }; then :
1807   ac_retval=0
1808 else
1809   $as_echo "$as_me: program exited with status $ac_status" >&5
1810        $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813        ac_retval=$ac_status
1814 fi
1815   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817   as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_run
1820
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   eval "$3=yes"
1840 else
1841   eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_header_compile
1851
1852 # ac_fn_d_try_compile LINENO
1853 # --------------------------
1854 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_d_try_compile ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   rm -f conftest.$ac_objext
1859   if { { ac_try="$ac_compile"
1860 case "(($ac_try" in
1861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862   *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866   (eval "$ac_compile") 2>conftest.err
1867   ac_status=$?
1868   if test -s conftest.err; then
1869     grep -v '^ *+' conftest.err >conftest.er1
1870     cat conftest.er1 >&5
1871     mv -f conftest.er1 conftest.err
1872   fi
1873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874   test $ac_status = 0; } && {
1875          test -z "$ac_d_werror_flag" ||
1876          test ! -s conftest.err
1877        } && test -s conftest.$ac_objext; then :
1878   ac_retval=0
1879 else
1880   $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1882
1883         ac_retval=1
1884 fi
1885   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886   as_fn_set_status $ac_retval
1887
1888 } # ac_fn_d_try_compile
1889
1890 # ac_fn_c_try_link LINENO
1891 # -----------------------
1892 # Try to link conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_c_try_link ()
1894 {
1895   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896   rm -f conftest.$ac_objext conftest$ac_exeext
1897   if { { ac_try="$ac_link"
1898 case "(($ac_try" in
1899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900   *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904   (eval "$ac_link") 2>conftest.err
1905   ac_status=$?
1906   if test -s conftest.err; then
1907     grep -v '^ *+' conftest.err >conftest.er1
1908     cat conftest.er1 >&5
1909     mv -f conftest.er1 conftest.err
1910   fi
1911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912   test $ac_status = 0; } && {
1913          test -z "$ac_c_werror_flag" ||
1914          test ! -s conftest.err
1915        } && test -s conftest$ac_exeext && {
1916          test "$cross_compiling" = yes ||
1917          test -x conftest$ac_exeext
1918        }; then :
1919   ac_retval=0
1920 else
1921   $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924         ac_retval=1
1925 fi
1926   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1927   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1928   # interfere with the next link command; also delete a directory that is
1929   # left behind by Apple's compiler.  We do this before executing the actions.
1930   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1931   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932   as_fn_set_status $ac_retval
1933
1934 } # ac_fn_c_try_link
1935
1936 # ac_fn_c_check_func LINENO FUNC VAR
1937 # ----------------------------------
1938 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1939 ac_fn_c_check_func ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943 $as_echo_n "checking for $2... " >&6; }
1944 if eval \${$3+:} false; then :
1945   $as_echo_n "(cached) " >&6
1946 else
1947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h.  */
1949 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1951 #define $2 innocuous_$2
1952
1953 /* System header to define __stub macros and hopefully few prototypes,
1954     which can conflict with char $2 (); below.
1955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1956     <limits.h> exists even on freestanding compilers.  */
1957
1958 #ifdef __STDC__
1959 # include <limits.h>
1960 #else
1961 # include <assert.h>
1962 #endif
1963
1964 #undef $2
1965
1966 /* Override any GCC internal prototype to avoid an error.
1967    Use char because int might match the return type of a GCC
1968    builtin and then its argument prototype would still apply.  */
1969 #ifdef __cplusplus
1970 extern "C"
1971 #endif
1972 char $2 ();
1973 /* The GNU C library defines this for functions which it implements
1974     to always fail with ENOSYS.  Some functions are actually named
1975     something starting with __ and the normal name is an alias.  */
1976 #if defined __stub_$2 || defined __stub___$2
1977 choke me
1978 #endif
1979
1980 int
1981 main ()
1982 {
1983 return $2 ();
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 if ac_fn_c_try_link "$LINENO"; then :
1989   eval "$3=yes"
1990 else
1991   eval "$3=no"
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext \
1994     conftest$ac_exeext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_func
2002
2003 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004 # ----------------------------------------------------
2005 # Tries to find if the field MEMBER exists in type AGGR, after including
2006 # INCLUDES, setting cache variable VAR accordingly.
2007 ac_fn_c_check_member ()
2008 {
2009   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011 $as_echo_n "checking for $2.$3... " >&6; }
2012 if eval \${$4+:} false; then :
2013   $as_echo_n "(cached) " >&6
2014 else
2015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h.  */
2017 $5
2018 int
2019 main ()
2020 {
2021 static $2 ac_aggr;
2022 if (ac_aggr.$3)
2023 return 0;
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029   eval "$4=yes"
2030 else
2031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h.  */
2033 $5
2034 int
2035 main ()
2036 {
2037 static $2 ac_aggr;
2038 if (sizeof ac_aggr.$3)
2039 return 0;
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045   eval "$4=yes"
2046 else
2047   eval "$4=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$4
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_member
2059
2060 # ac_fn_d_try_link LINENO
2061 # -----------------------
2062 # Try to link conftest.$ac_ext, and return whether this succeeded.
2063 ac_fn_d_try_link ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   rm -f conftest.$ac_objext conftest$ac_exeext
2067   if { { ac_try="$ac_link"
2068 case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074   (eval "$ac_link") 2>conftest.err
2075   ac_status=$?
2076   if test -s conftest.err; then
2077     grep -v '^ *+' conftest.err >conftest.er1
2078     cat conftest.er1 >&5
2079     mv -f conftest.er1 conftest.err
2080   fi
2081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082   test $ac_status = 0; } && {
2083          test -z "$ac_d_werror_flag" ||
2084          test ! -s conftest.err
2085        } && test -s conftest$ac_exeext && {
2086          test "$cross_compiling" = yes ||
2087          test -x conftest$ac_exeext
2088        }; then :
2089   ac_retval=0
2090 else
2091   $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094         ac_retval=1
2095 fi
2096   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2097   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2098   # interfere with the next link command; also delete a directory that is
2099   # left behind by Apple's compiler.  We do this before executing the actions.
2100   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2101   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102   as_fn_set_status $ac_retval
2103
2104 } # ac_fn_d_try_link
2105 cat >config.log <<_ACEOF
2106 This file contains any messages produced by compilers while
2107 running configure, to aid debugging if configure makes a mistake.
2108
2109 It was created by package-unused $as_me version-unused, which was
2110 generated by GNU Autoconf 2.69.  Invocation command line was
2111
2112   $ $0 $@
2113
2114 _ACEOF
2115 exec 5>>config.log
2116 {
2117 cat <<_ASUNAME
2118 ## --------- ##
2119 ## Platform. ##
2120 ## --------- ##
2121
2122 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2130
2131 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2132 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2133 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2134 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2135 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2136 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2137 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2138
2139 _ASUNAME
2140
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142 for as_dir in $PATH
2143 do
2144   IFS=$as_save_IFS
2145   test -z "$as_dir" && as_dir=.
2146     $as_echo "PATH: $as_dir"
2147   done
2148 IFS=$as_save_IFS
2149
2150 } >&5
2151
2152 cat >&5 <<_ACEOF
2153
2154
2155 ## ----------- ##
2156 ## Core tests. ##
2157 ## ----------- ##
2158
2159 _ACEOF
2160
2161
2162 # Keep a trace of the command line.
2163 # Strip out --no-create and --no-recursion so they do not pile up.
2164 # Strip out --silent because we don't want to record it for future runs.
2165 # Also quote any args containing shell meta-characters.
2166 # Make two passes to allow for proper duplicate-argument suppression.
2167 ac_configure_args=
2168 ac_configure_args0=
2169 ac_configure_args1=
2170 ac_must_keep_next=false
2171 for ac_pass in 1 2
2172 do
2173   for ac_arg
2174   do
2175     case $ac_arg in
2176     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178     | -silent | --silent | --silen | --sile | --sil)
2179       continue ;;
2180     *\'*)
2181       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2182     esac
2183     case $ac_pass in
2184     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185     2)
2186       as_fn_append ac_configure_args1 " '$ac_arg'"
2187       if test $ac_must_keep_next = true; then
2188         ac_must_keep_next=false # Got value, back to normal.
2189       else
2190         case $ac_arg in
2191           *=* | --config-cache | -C | -disable-* | --disable-* \
2192           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194           | -with-* | --with-* | -without-* | --without-* | --x)
2195             case "$ac_configure_args0 " in
2196               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197             esac
2198             ;;
2199           -* ) ac_must_keep_next=true ;;
2200         esac
2201       fi
2202       as_fn_append ac_configure_args " '$ac_arg'"
2203       ;;
2204     esac
2205   done
2206 done
2207 { ac_configure_args0=; unset ac_configure_args0;}
2208 { ac_configure_args1=; unset ac_configure_args1;}
2209
2210 # When interrupted or exit'd, cleanup temporary files, and complete
2211 # config.log.  We remove comments because anyway the quotes in there
2212 # would cause problems or look ugly.
2213 # WARNING: Use '\'' to represent an apostrophe within the trap.
2214 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2215 trap 'exit_status=$?
2216   # Save into config.log some information that might help in debugging.
2217   {
2218     echo
2219
2220     $as_echo "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223     echo
2224     # The following way of writing the cache mishandles newlines in values,
2225 (
2226   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227     eval ac_val=\$$ac_var
2228     case $ac_val in #(
2229     *${as_nl}*)
2230       case $ac_var in #(
2231       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233       esac
2234       case $ac_var in #(
2235       _ | IFS | as_nl) ;; #(
2236       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237       *) { eval $ac_var=; unset $ac_var;} ;;
2238       esac ;;
2239     esac
2240   done
2241   (set) 2>&1 |
2242     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243     *${as_nl}ac_space=\ *)
2244       sed -n \
2245         "s/'\''/'\''\\\\'\'''\''/g;
2246           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247       ;; #(
2248     *)
2249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250       ;;
2251     esac |
2252     sort
2253 )
2254     echo
2255
2256     $as_echo "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259     echo
2260     for ac_var in $ac_subst_vars
2261     do
2262       eval ac_val=\$$ac_var
2263       case $ac_val in
2264       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265       esac
2266       $as_echo "$ac_var='\''$ac_val'\''"
2267     done | sort
2268     echo
2269
2270     if test -n "$ac_subst_files"; then
2271       $as_echo "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274       echo
2275       for ac_var in $ac_subst_files
2276       do
2277         eval ac_val=\$$ac_var
2278         case $ac_val in
2279         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280         esac
2281         $as_echo "$ac_var='\''$ac_val'\''"
2282       done | sort
2283       echo
2284     fi
2285
2286     if test -s confdefs.h; then
2287       $as_echo "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290       echo
2291       cat confdefs.h
2292       echo
2293     fi
2294     test "$ac_signal" != 0 &&
2295       $as_echo "$as_me: caught signal $ac_signal"
2296     $as_echo "$as_me: exit $exit_status"
2297   } >&5
2298   rm -f core *.core core.conftest.* &&
2299     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300     exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 $as_echo "/* confdefs.h */" > confdefs.h
2311
2312 # Predefined preprocessor variables.
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2325
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2337
2338
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344   # We do not want a PATH search for config.site.
2345   case $CONFIG_SITE in #((
2346     -*)  ac_site_file1=./$CONFIG_SITE;;
2347     */*) ac_site_file1=$CONFIG_SITE;;
2348     *)   ac_site_file1=./$CONFIG_SITE;;
2349   esac
2350 elif test "x$prefix" != xNONE; then
2351   ac_site_file1=$prefix/share/config.site
2352   ac_site_file2=$prefix/etc/config.site
2353 else
2354   ac_site_file1=$ac_default_prefix/share/config.site
2355   ac_site_file2=$ac_default_prefix/etc/config.site
2356 fi
2357 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2358 do
2359   test "x$ac_site_file" = xNONE && continue
2360   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2362 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2363     sed 's/^/| /' "$ac_site_file" >&5
2364     . "$ac_site_file" \
2365       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367 as_fn_error $? "failed to load site script $ac_site_file
2368 See \`config.log' for more details" "$LINENO" 5; }
2369   fi
2370 done
2371
2372 if test -r "$cache_file"; then
2373   # Some versions of bash will fail to source /dev/null (special files
2374   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2375   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2376     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2377 $as_echo "$as_me: loading cache $cache_file" >&6;}
2378     case $cache_file in
2379       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380       *)                      . "./$cache_file";;
2381     esac
2382   fi
2383 else
2384   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2385 $as_echo "$as_me: creating cache $cache_file" >&6;}
2386   >$cache_file
2387 fi
2388
2389 # Check that the precious variables saved in the cache have kept the same
2390 # value.
2391 ac_cache_corrupted=false
2392 for ac_var in $ac_precious_vars; do
2393   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394   eval ac_new_set=\$ac_env_${ac_var}_set
2395   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396   eval ac_new_val=\$ac_env_${ac_var}_value
2397   case $ac_old_set,$ac_new_set in
2398     set,)
2399       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2400 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2401       ac_cache_corrupted=: ;;
2402     ,set)
2403       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2404 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2405       ac_cache_corrupted=: ;;
2406     ,);;
2407     *)
2408       if test "x$ac_old_val" != "x$ac_new_val"; then
2409         # differences in whitespace do not lead to failure.
2410         ac_old_val_w=`echo x $ac_old_val`
2411         ac_new_val_w=`echo x $ac_new_val`
2412         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2413           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2414 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415           ac_cache_corrupted=:
2416         else
2417           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2418 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419           eval $ac_var=\$ac_old_val
2420         fi
2421         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2422 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2423         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2424 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2425       fi;;
2426   esac
2427   # Pass precious variables to config.status.
2428   if test "$ac_new_set" = set; then
2429     case $ac_new_val in
2430     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     *) ac_arg=$ac_var=$ac_new_val ;;
2432     esac
2433     case " $ac_configure_args " in
2434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2435       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2436     esac
2437   fi
2438 done
2439 if $ac_cache_corrupted; then
2440   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2443 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2444   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2445 fi
2446 ## -------------------- ##
2447 ## Main body of script. ##
2448 ## -------------------- ##
2449
2450 ac_ext=c
2451 ac_cpp='$CPP $CPPFLAGS'
2452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457
2458
2459
2460
2461 ac_config_headers="$ac_config_headers config.h"
2462
2463
2464 # Default to --enable-multilib
2465 # Check whether --enable-multilib was given.
2466 if test "${enable_multilib+set}" = set; then :
2467   enableval=$enable_multilib; case "$enableval" in
2468   yes) multilib=yes ;;
2469   no)  multilib=no ;;
2470   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2471  esac
2472 else
2473   multilib=yes
2474 fi
2475
2476
2477 # We may get other options which we leave undocumented:
2478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2479 # See config-ml.in if you want the gory details.
2480
2481 if test "$srcdir" = "."; then
2482   if test "$with_target_subdir" != "."; then
2483     multi_basedir="$srcdir/$with_multisrctop../.."
2484   else
2485     multi_basedir="$srcdir/$with_multisrctop.."
2486   fi
2487 else
2488   multi_basedir="$srcdir/.."
2489 fi
2490
2491
2492 # Even if the default multilib is not a cross compilation,
2493 # it may be that some of the other multilibs are.
2494 if test $cross_compiling = no && test $multilib = yes \
2495    && test "x${with_multisubdir}" != x ; then
2496    cross_compiling=maybe
2497 fi
2498
2499 ac_config_commands="$ac_config_commands default-1"
2500
2501 ac_aux_dir=
2502 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2503   if test -f "$ac_dir/install-sh"; then
2504     ac_aux_dir=$ac_dir
2505     ac_install_sh="$ac_aux_dir/install-sh -c"
2506     break
2507   elif test -f "$ac_dir/install.sh"; then
2508     ac_aux_dir=$ac_dir
2509     ac_install_sh="$ac_aux_dir/install.sh -c"
2510     break
2511   elif test -f "$ac_dir/shtool"; then
2512     ac_aux_dir=$ac_dir
2513     ac_install_sh="$ac_aux_dir/shtool install -c"
2514     break
2515   fi
2516 done
2517 if test -z "$ac_aux_dir"; then
2518   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2519 fi
2520
2521 # These three variables are undocumented and unsupported,
2522 # and are intended to be withdrawn in a future Autoconf release.
2523 # They can cause serious problems if a builder's source tree is in a directory
2524 # whose full name contains unusual characters.
2525 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2526 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2527 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2528
2529
2530 # Make sure we can run config.sub.
2531 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2532   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2533
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if ${ac_cv_build+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2544 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2545   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2546
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2549 $as_echo "$ac_cv_build" >&6; }
2550 case $ac_cv_build in
2551 *-*-*) ;;
2552 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2553 esac
2554 build=$ac_cv_build
2555 ac_save_IFS=$IFS; IFS='-'
2556 set x $ac_cv_build
2557 shift
2558 build_cpu=$1
2559 build_vendor=$2
2560 shift; shift
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2563 build_os=$*
2564 IFS=$ac_save_IFS
2565 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2566
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2569 $as_echo_n "checking host system type... " >&6; }
2570 if ${ac_cv_host+:} false; then :
2571   $as_echo_n "(cached) " >&6
2572 else
2573   if test "x$host_alias" = x; then
2574   ac_cv_host=$ac_cv_build
2575 else
2576   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2577     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2578 fi
2579
2580 fi
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2582 $as_echo "$ac_cv_host" >&6; }
2583 case $ac_cv_host in
2584 *-*-*) ;;
2585 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2586 esac
2587 host=$ac_cv_host
2588 ac_save_IFS=$IFS; IFS='-'
2589 set x $ac_cv_host
2590 shift
2591 host_cpu=$1
2592 host_vendor=$2
2593 shift; shift
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2596 host_os=$*
2597 IFS=$ac_save_IFS
2598 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2599
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2602 $as_echo_n "checking target system type... " >&6; }
2603 if ${ac_cv_target+:} false; then :
2604   $as_echo_n "(cached) " >&6
2605 else
2606   if test "x$target_alias" = x; then
2607   ac_cv_target=$ac_cv_host
2608 else
2609   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2610     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2611 fi
2612
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2615 $as_echo "$ac_cv_target" >&6; }
2616 case $ac_cv_target in
2617 *-*-*) ;;
2618 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2619 esac
2620 target=$ac_cv_target
2621 ac_save_IFS=$IFS; IFS='-'
2622 set x $ac_cv_target
2623 shift
2624 target_cpu=$1
2625 target_vendor=$2
2626 shift; shift
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2629 target_os=$*
2630 IFS=$ac_save_IFS
2631 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2632
2633
2634 # The aliases save the names the user supplied, while $host etc.
2635 # will get canonicalized.
2636 test -n "$target_alias" &&
2637   test "$program_prefix$program_suffix$program_transform_name" = \
2638     NONENONEs,x,x, &&
2639   program_prefix=${target_alias}-
2640
2641 # Expand $ac_aux_dir to an absolute path.
2642 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649 if test -n "$ac_tool_prefix"; then
2650   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if ${ac_cv_prog_CC+:} false; then :
2655   $as_echo_n "(cached) " >&6
2656 else
2657   if test -n "$CC"; then
2658   ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665     for ac_exec_ext in '' $ac_executable_extensions; do
2666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672   done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2681 else
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687 fi
2688 if test -z "$ac_cv_prog_CC"; then
2689   ac_ct_CC=$CC
2690   # Extract the first word of "gcc", so it can be a program name with args.
2691 set dummy gcc; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2695   $as_echo_n "(cached) " >&6
2696 else
2697   if test -n "$ac_ct_CC"; then
2698   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703   IFS=$as_save_IFS
2704   test -z "$as_dir" && as_dir=.
2705     for ac_exec_ext in '' $ac_executable_extensions; do
2706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2707     ac_cv_prog_ac_ct_CC="gcc"
2708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2709     break 2
2710   fi
2711 done
2712   done
2713 IFS=$as_save_IFS
2714
2715 fi
2716 fi
2717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718 if test -n "$ac_ct_CC"; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2720 $as_echo "$ac_ct_CC" >&6; }
2721 else
2722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2724 fi
2725
2726   if test "x$ac_ct_CC" = x; then
2727     CC=""
2728   else
2729     case $cross_compiling:$ac_tool_warned in
2730 yes:)
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2733 ac_tool_warned=yes ;;
2734 esac
2735     CC=$ac_ct_CC
2736   fi
2737 else
2738   CC="$ac_cv_prog_CC"
2739 fi
2740
2741 if test -z "$CC"; then
2742           if test -n "$ac_tool_prefix"; then
2743     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2744 set dummy ${ac_tool_prefix}cc; ac_word=$2
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2746 $as_echo_n "checking for $ac_word... " >&6; }
2747 if ${ac_cv_prog_CC+:} false; then :
2748   $as_echo_n "(cached) " >&6
2749 else
2750   if test -n "$CC"; then
2751   ac_cv_prog_CC="$CC" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756   IFS=$as_save_IFS
2757   test -z "$as_dir" && as_dir=.
2758     for ac_exec_ext in '' $ac_executable_extensions; do
2759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2760     ac_cv_prog_CC="${ac_tool_prefix}cc"
2761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762     break 2
2763   fi
2764 done
2765   done
2766 IFS=$as_save_IFS
2767
2768 fi
2769 fi
2770 CC=$ac_cv_prog_CC
2771 if test -n "$CC"; then
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2773 $as_echo "$CC" >&6; }
2774 else
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 fi
2778
2779
2780   fi
2781 fi
2782 if test -z "$CC"; then
2783   # Extract the first word of "cc", so it can be a program name with args.
2784 set dummy cc; ac_word=$2
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if ${ac_cv_prog_CC+:} false; then :
2788   $as_echo_n "(cached) " >&6
2789 else
2790   if test -n "$CC"; then
2791   ac_cv_prog_CC="$CC" # Let the user override the test.
2792 else
2793   ac_prog_rejected=no
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2796 do
2797   IFS=$as_save_IFS
2798   test -z "$as_dir" && as_dir=.
2799     for ac_exec_ext in '' $ac_executable_extensions; do
2800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2802        ac_prog_rejected=yes
2803        continue
2804      fi
2805     ac_cv_prog_CC="cc"
2806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807     break 2
2808   fi
2809 done
2810   done
2811 IFS=$as_save_IFS
2812
2813 if test $ac_prog_rejected = yes; then
2814   # We found a bogon in the path, so make sure we never use it.
2815   set dummy $ac_cv_prog_CC
2816   shift
2817   if test $# != 0; then
2818     # We chose a different compiler from the bogus one.
2819     # However, it has the same basename, so the bogon will be chosen
2820     # first if we set CC to just the basename; use the full file name.
2821     shift
2822     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2823   fi
2824 fi
2825 fi
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 $as_echo "$CC" >&6; }
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837 fi
2838 if test -z "$CC"; then
2839   if test -n "$ac_tool_prefix"; then
2840   for ac_prog in cl.exe
2841   do
2842     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845 $as_echo_n "checking for $ac_word... " >&6; }
2846 if ${ac_cv_prog_CC+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   if test -n "$CC"; then
2850   ac_cv_prog_CC="$CC" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855   IFS=$as_save_IFS
2856   test -z "$as_dir" && as_dir=.
2857     for ac_exec_ext in '' $ac_executable_extensions; do
2858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861     break 2
2862   fi
2863 done
2864   done
2865 IFS=$as_save_IFS
2866
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879     test -n "$CC" && break
2880   done
2881 fi
2882 if test -z "$CC"; then
2883   ac_ct_CC=$CC
2884   for ac_prog in cl.exe
2885 do
2886   # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy $ac_prog; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$ac_ct_CC"; then
2894   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2903     ac_cv_prog_ac_ct_CC="$ac_prog"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2914 if test -n "$ac_ct_CC"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2916 $as_echo "$ac_ct_CC" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922
2923   test -n "$ac_ct_CC" && break
2924 done
2925
2926   if test "x$ac_ct_CC" = x; then
2927     CC=""
2928   else
2929     case $cross_compiling:$ac_tool_warned in
2930 yes:)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 ac_tool_warned=yes ;;
2934 esac
2935     CC=$ac_ct_CC
2936   fi
2937 fi
2938
2939 fi
2940
2941
2942 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944 as_fn_error $? "no acceptable C compiler found in \$PATH
2945 See \`config.log' for more details" "$LINENO" 5; }
2946
2947 # Provide some information about the compiler.
2948 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2949 set X $ac_compile
2950 ac_compiler=$2
2951 for ac_option in --version -v -V -qversion; do
2952   { { ac_try="$ac_compiler $ac_option >&5"
2953 case "(($ac_try" in
2954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955   *) ac_try_echo=$ac_try;;
2956 esac
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2960   ac_status=$?
2961   if test -s conftest.err; then
2962     sed '10a\
2963 ... rest of stderr output deleted ...
2964          10q' conftest.err >conftest.er1
2965     cat conftest.er1 >&5
2966   fi
2967   rm -f conftest.er1 conftest.err
2968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969   test $ac_status = 0; }
2970 done
2971
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h.  */
2974
2975 int
2976 main ()
2977 {
2978
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 ac_clean_files_save=$ac_clean_files
2984 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2985 # Try to create an executable without -o first, disregard a.out.
2986 # It will help us diagnose broken compilers, and finding out an intuition
2987 # of exeext.
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2989 $as_echo_n "checking whether the C compiler works... " >&6; }
2990 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2991
2992 # The possible output files:
2993 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2994
2995 ac_rmfiles=
2996 for ac_file in $ac_files
2997 do
2998   case $ac_file in
2999     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3000     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3001   esac
3002 done
3003 rm -f $ac_rmfiles
3004
3005 if { { ac_try="$ac_link_default"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011 $as_echo "$ac_try_echo"; } >&5
3012   (eval "$ac_link_default") 2>&5
3013   ac_status=$?
3014   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015   test $ac_status = 0; }; then :
3016   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3017 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3018 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3019 # so that the user can short-circuit this test for compilers unknown to
3020 # Autoconf.
3021 for ac_file in $ac_files ''
3022 do
3023   test -f "$ac_file" || continue
3024   case $ac_file in
3025     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3026         ;;
3027     [ab].out )
3028         # We found the default executable, but exeext='' is most
3029         # certainly right.
3030         break;;
3031     *.* )
3032         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3033         then :; else
3034            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035         fi
3036         # We set ac_cv_exeext here because the later test for it is not
3037         # safe: cross compilers may not add the suffix if given an `-o'
3038         # argument, so we may need to know it at that point already.
3039         # Even if this section looks crufty: it has the advantage of
3040         # actually working.
3041         break;;
3042     * )
3043         break;;
3044   esac
3045 done
3046 test "$ac_cv_exeext" = no && ac_cv_exeext=
3047
3048 else
3049   ac_file=''
3050 fi
3051 if test -z "$ac_file"; then :
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 $as_echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3059 as_fn_error 77 "C compiler cannot create executables
3060 See \`config.log' for more details" "$LINENO" 5; }
3061 else
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064 fi
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3066 $as_echo_n "checking for C compiler default output file name... " >&6; }
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3068 $as_echo "$ac_file" >&6; }
3069 ac_exeext=$ac_cv_exeext
3070
3071 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3072 ac_clean_files=$ac_clean_files_save
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3074 $as_echo_n "checking for suffix of executables... " >&6; }
3075 if { { ac_try="$ac_link"
3076 case "(($ac_try" in
3077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078   *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081 $as_echo "$ac_try_echo"; } >&5
3082   (eval "$ac_link") 2>&5
3083   ac_status=$?
3084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3085   test $ac_status = 0; }; then :
3086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091   test -f "$ac_file" || continue
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095           break;;
3096     * ) break;;
3097   esac
3098 done
3099 else
3100   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details" "$LINENO" 5; }
3104 fi
3105 rm -f conftest conftest$ac_cv_exeext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3107 $as_echo "$ac_cv_exeext" >&6; }
3108
3109 rm -f conftest.$ac_ext
3110 EXEEXT=$ac_cv_exeext
3111 ac_exeext=$EXEEXT
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h.  */
3114 #include <stdio.h>
3115 int
3116 main ()
3117 {
3118 FILE *f = fopen ("conftest.out", "w");
3119  return ferror (f) || fclose (f) != 0;
3120
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 ac_clean_files="$ac_clean_files conftest.out"
3126 # Check that the compiler produces executables we can run.  If not, either
3127 # the compiler is broken, or we cross compile.
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3129 $as_echo_n "checking whether we are cross compiling... " >&6; }
3130 if test "$cross_compiling" != yes; then
3131   { { ac_try="$ac_link"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138   (eval "$ac_link") 2>&5
3139   ac_status=$?
3140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141   test $ac_status = 0; }
3142   if { ac_try='./conftest$ac_cv_exeext'
3143   { { case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152   test $ac_status = 0; }; }; then
3153     cross_compiling=no
3154   else
3155     if test "$cross_compiling" = maybe; then
3156         cross_compiling=yes
3157     else
3158         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160 as_fn_error $? "cannot run C compiled programs.
3161 If you meant to cross compile, use \`--host'.
3162 See \`config.log' for more details" "$LINENO" 5; }
3163     fi
3164   fi
3165 fi
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3167 $as_echo "$cross_compiling" >&6; }
3168
3169 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3170 ac_clean_files=$ac_clean_files_save
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3172 $as_echo_n "checking for suffix of object files... " >&6; }
3173 if ${ac_cv_objext+:} false; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h.  */
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.o conftest.obj
3188 if { { ac_try="$ac_compile"
3189 case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195   (eval "$ac_compile") 2>&5
3196   ac_status=$?
3197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198   test $ac_status = 0; }; then :
3199   for ac_file in conftest.o conftest.obj conftest.*; do
3200   test -f "$ac_file" || continue;
3201   case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3203     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3204        break;;
3205   esac
3206 done
3207 else
3208   $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3210
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error $? "cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details" "$LINENO" 5; }
3215 fi
3216 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3217 fi
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3219 $as_echo "$ac_cv_objext" >&6; }
3220 OBJEXT=$ac_cv_objext
3221 ac_objext=$OBJEXT
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3223 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3224 if ${ac_cv_c_compiler_gnu+:} false; then :
3225   $as_echo_n "(cached) " >&6
3226 else
3227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h.  */
3229
3230 int
3231 main ()
3232 {
3233 #ifndef __GNUC__
3234        choke me
3235 #endif
3236
3237   ;
3238   return 0;
3239 }
3240 _ACEOF
3241 if ac_fn_c_try_compile "$LINENO"; then :
3242   ac_compiler_gnu=yes
3243 else
3244   ac_compiler_gnu=no
3245 fi
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3248
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3251 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3252 if test $ac_compiler_gnu = yes; then
3253   GCC=yes
3254 else
3255   GCC=
3256 fi
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3260 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3261 if ${ac_cv_prog_cc_g+:} false; then :
3262   $as_echo_n "(cached) " >&6
3263 else
3264   ac_save_c_werror_flag=$ac_c_werror_flag
3265    ac_c_werror_flag=yes
3266    ac_cv_prog_cc_g=no
3267    CFLAGS="-g"
3268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280   ac_cv_prog_cc_g=yes
3281 else
3282   CFLAGS=""
3283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 if ac_fn_c_try_compile "$LINENO"; then :
3295
3296 else
3297   ac_c_werror_flag=$ac_save_c_werror_flag
3298          CFLAGS="-g"
3299          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h.  */
3301
3302 int
3303 main ()
3304 {
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 if ac_fn_c_try_compile "$LINENO"; then :
3311   ac_cv_prog_cc_g=yes
3312 fi
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 fi
3315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3316 fi
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318    ac_c_werror_flag=$ac_save_c_werror_flag
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3321 $as_echo "$ac_cv_prog_cc_g" >&6; }
3322 if test "$ac_test_CFLAGS" = set; then
3323   CFLAGS=$ac_save_CFLAGS
3324 elif test $ac_cv_prog_cc_g = yes; then
3325   if test "$GCC" = yes; then
3326     CFLAGS="-g -O2"
3327   else
3328     CFLAGS="-g"
3329   fi
3330 else
3331   if test "$GCC" = yes; then
3332     CFLAGS="-O2"
3333   else
3334     CFLAGS=
3335   fi
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3338 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3339 if ${ac_cv_prog_cc_c89+:} false; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   ac_cv_prog_cc_c89=no
3343 ac_save_CC=$CC
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h.  */
3346 #include <stdarg.h>
3347 #include <stdio.h>
3348 struct stat;
3349 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3350 struct buf { int x; };
3351 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3352 static char *e (p, i)
3353      char **p;
3354      int i;
3355 {
3356   return p[i];
3357 }
3358 static char *f (char * (*g) (char **, int), char **p, ...)
3359 {
3360   char *s;
3361   va_list v;
3362   va_start (v,p);
3363   s = g (p, va_arg (v,int));
3364   va_end (v);
3365   return s;
3366 }
3367
3368 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3369    function prototypes and stuff, but not '\xHH' hex character constants.
3370    These don't provoke an error unfortunately, instead are silently treated
3371    as 'x'.  The following induces an error, until -std is added to get
3372    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3373    array size at least.  It's necessary to write '\x00'==0 to get something
3374    that's true only with -std.  */
3375 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3376
3377 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3378    inside strings and character constants.  */
3379 #define FOO(x) 'x'
3380 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3381
3382 int test (int i, double x);
3383 struct s1 {int (*f) (int a);};
3384 struct s2 {int (*f) (double a);};
3385 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3386 int argc;
3387 char **argv;
3388 int
3389 main ()
3390 {
3391 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3397         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3398 do
3399   CC="$ac_save_CC $ac_arg"
3400   if ac_fn_c_try_compile "$LINENO"; then :
3401   ac_cv_prog_cc_c89=$ac_arg
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext
3404   test "x$ac_cv_prog_cc_c89" != "xno" && break
3405 done
3406 rm -f conftest.$ac_ext
3407 CC=$ac_save_CC
3408
3409 fi
3410 # AC_CACHE_VAL
3411 case "x$ac_cv_prog_cc_c89" in
3412   x)
3413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3414 $as_echo "none needed" >&6; } ;;
3415   xno)
3416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3417 $as_echo "unsupported" >&6; } ;;
3418   *)
3419     CC="$CC $ac_cv_prog_cc_c89"
3420     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3421 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3422 esac
3423 if test "x$ac_cv_prog_cc_c89" != xno; then :
3424
3425 fi
3426
3427 ac_ext=c
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3439 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3440 if ${am_cv_prog_cc_c_o+:} false; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454   # Make sure it works both with $CC and with simple cc.
3455   # Following AC_PROG_CC_C_O, we do the test twice because some
3456   # compilers refuse to overwrite an existing .o file with -o,
3457   # though they will create one.
3458   am_cv_prog_cc_c_o=yes
3459   for am_i in 1 2; do
3460     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3461    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3462    ac_status=$?
3463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464    (exit $ac_status); } \
3465          && test -f conftest2.$ac_objext; then
3466       : OK
3467     else
3468       am_cv_prog_cc_c_o=no
3469       break
3470     fi
3471   done
3472   rm -f core conftest*
3473   unset am_i
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3476 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3477 if test "$am_cv_prog_cc_c_o" != yes; then
3478    # Losing compiler, so override with the script.
3479    # FIXME: It is wrong to rewrite CC.
3480    # But if we don't then we get into trouble of one sort or another.
3481    # A longer-term fix would be to have automake use am__CC in this case,
3482    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3483    CC="$am_aux_dir/compile $CC"
3484 fi
3485 ac_ext=c
3486 ac_cpp='$CPP $CPPFLAGS'
3487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490
3491
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3499 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3500 # On Suns, sometimes $CPP names a directory.
3501 if test -n "$CPP" && test -d "$CPP"; then
3502   CPP=
3503 fi
3504 if test -z "$CPP"; then
3505   if ${ac_cv_prog_CPP+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508       # Double quotes because CPP needs to be expanded
3509     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3510     do
3511       ac_preproc_ok=false
3512 for ac_c_preproc_warn_flag in '' yes
3513 do
3514   # Use a header file that comes with gcc, so configuring glibc
3515   # with a fresh cross-compiler works.
3516   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3517   # <limits.h> exists even on freestanding compilers.
3518   # On the NeXT, cc -E runs the code through the compiler's parser,
3519   # not just through cpp. "Syntax error" is here to catch this case.
3520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h.  */
3522 #ifdef __STDC__
3523 # include <limits.h>
3524 #else
3525 # include <assert.h>
3526 #endif
3527                      Syntax error
3528 _ACEOF
3529 if ac_fn_c_try_cpp "$LINENO"; then :
3530
3531 else
3532   # Broken: fails on valid input.
3533 continue
3534 fi
3535 rm -f conftest.err conftest.i conftest.$ac_ext
3536
3537   # OK, works on sane cases.  Now check whether nonexistent headers
3538   # can be detected and how.
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541 #include <ac_nonexistent.h>
3542 _ACEOF
3543 if ac_fn_c_try_cpp "$LINENO"; then :
3544   # Broken: success on invalid input.
3545 continue
3546 else
3547   # Passes both tests.
3548 ac_preproc_ok=:
3549 break
3550 fi
3551 rm -f conftest.err conftest.i conftest.$ac_ext
3552
3553 done
3554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3555 rm -f conftest.i conftest.err conftest.$ac_ext
3556 if $ac_preproc_ok; then :
3557   break
3558 fi
3559
3560     done
3561     ac_cv_prog_CPP=$CPP
3562
3563 fi
3564   CPP=$ac_cv_prog_CPP
3565 else
3566   ac_cv_prog_CPP=$CPP
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3569 $as_echo "$CPP" >&6; }
3570 ac_preproc_ok=false
3571 for ac_c_preproc_warn_flag in '' yes
3572 do
3573   # Use a header file that comes with gcc, so configuring glibc
3574   # with a fresh cross-compiler works.
3575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3576   # <limits.h> exists even on freestanding compilers.
3577   # On the NeXT, cc -E runs the code through the compiler's parser,
3578   # not just through cpp. "Syntax error" is here to catch this case.
3579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581 #ifdef __STDC__
3582 # include <limits.h>
3583 #else
3584 # include <assert.h>
3585 #endif
3586                      Syntax error
3587 _ACEOF
3588 if ac_fn_c_try_cpp "$LINENO"; then :
3589
3590 else
3591   # Broken: fails on valid input.
3592 continue
3593 fi
3594 rm -f conftest.err conftest.i conftest.$ac_ext
3595
3596   # OK, works on sane cases.  Now check whether nonexistent headers
3597   # can be detected and how.
3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h.  */
3600 #include <ac_nonexistent.h>
3601 _ACEOF
3602 if ac_fn_c_try_cpp "$LINENO"; then :
3603   # Broken: success on invalid input.
3604 continue
3605 else
3606   # Passes both tests.
3607 ac_preproc_ok=:
3608 break
3609 fi
3610 rm -f conftest.err conftest.i conftest.$ac_ext
3611
3612 done
3613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3614 rm -f conftest.i conftest.err conftest.$ac_ext
3615 if $ac_preproc_ok; then :
3616
3617 else
3618   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3621 See \`config.log' for more details" "$LINENO" 5; }
3622 fi
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3632 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3633 if ${ac_cv_path_GREP+:} false; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   if test -z "$GREP"; then
3637   ac_path_GREP_found=false
3638   # Loop through the user's path and test for each of PROGNAME-LIST
3639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3641 do
3642   IFS=$as_save_IFS
3643   test -z "$as_dir" && as_dir=.
3644     for ac_prog in grep ggrep; do
3645     for ac_exec_ext in '' $ac_executable_extensions; do
3646       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3647       as_fn_executable_p "$ac_path_GREP" || continue
3648 # Check for GNU ac_path_GREP and select it if it is found.
3649   # Check for GNU $ac_path_GREP
3650 case `"$ac_path_GREP" --version 2>&1` in
3651 *GNU*)
3652   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3653 *)
3654   ac_count=0
3655   $as_echo_n 0123456789 >"conftest.in"
3656   while :
3657   do
3658     cat "conftest.in" "conftest.in" >"conftest.tmp"
3659     mv "conftest.tmp" "conftest.in"
3660     cp "conftest.in" "conftest.nl"
3661     $as_echo 'GREP' >> "conftest.nl"
3662     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3664     as_fn_arith $ac_count + 1 && ac_count=$as_val
3665     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3666       # Best one so far, save it but keep looking for a better one
3667       ac_cv_path_GREP="$ac_path_GREP"
3668       ac_path_GREP_max=$ac_count
3669     fi
3670     # 10*(2^10) chars as input seems more than enough
3671     test $ac_count -gt 10 && break
3672   done
3673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3674 esac
3675
3676       $ac_path_GREP_found && break 3
3677     done
3678   done
3679   done
3680 IFS=$as_save_IFS
3681   if test -z "$ac_cv_path_GREP"; then
3682     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3683   fi
3684 else
3685   ac_cv_path_GREP=$GREP
3686 fi
3687
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3690 $as_echo "$ac_cv_path_GREP" >&6; }
3691  GREP="$ac_cv_path_GREP"
3692
3693
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3695 $as_echo_n "checking for egrep... " >&6; }
3696 if ${ac_cv_path_EGREP+:} false; then :
3697   $as_echo_n "(cached) " >&6
3698 else
3699   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3700    then ac_cv_path_EGREP="$GREP -E"
3701    else
3702      if test -z "$EGREP"; then
3703   ac_path_EGREP_found=false
3704   # Loop through the user's path and test for each of PROGNAME-LIST
3705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_prog in egrep; do
3711     for ac_exec_ext in '' $ac_executable_extensions; do
3712       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3713       as_fn_executable_p "$ac_path_EGREP" || continue
3714 # Check for GNU ac_path_EGREP and select it if it is found.
3715   # Check for GNU $ac_path_EGREP
3716 case `"$ac_path_EGREP" --version 2>&1` in
3717 *GNU*)
3718   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3719 *)
3720   ac_count=0
3721   $as_echo_n 0123456789 >"conftest.in"
3722   while :
3723   do
3724     cat "conftest.in" "conftest.in" >"conftest.tmp"
3725     mv "conftest.tmp" "conftest.in"
3726     cp "conftest.in" "conftest.nl"
3727     $as_echo 'EGREP' >> "conftest.nl"
3728     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3729     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3730     as_fn_arith $ac_count + 1 && ac_count=$as_val
3731     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3732       # Best one so far, save it but keep looking for a better one
3733       ac_cv_path_EGREP="$ac_path_EGREP"
3734       ac_path_EGREP_max=$ac_count
3735     fi
3736     # 10*(2^10) chars as input seems more than enough
3737     test $ac_count -gt 10 && break
3738   done
3739   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3740 esac
3741
3742       $ac_path_EGREP_found && break 3
3743     done
3744   done
3745   done
3746 IFS=$as_save_IFS
3747   if test -z "$ac_cv_path_EGREP"; then
3748     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3749   fi
3750 else
3751   ac_cv_path_EGREP=$EGREP
3752 fi
3753
3754    fi
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3757 $as_echo "$ac_cv_path_EGREP" >&6; }
3758  EGREP="$ac_cv_path_EGREP"
3759
3760
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3762 $as_echo_n "checking for ANSI C header files... " >&6; }
3763 if ${ac_cv_header_stdc+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768 #include <stdlib.h>
3769 #include <stdarg.h>
3770 #include <string.h>
3771 #include <float.h>
3772
3773 int
3774 main ()
3775 {
3776
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 if ac_fn_c_try_compile "$LINENO"; then :
3782   ac_cv_header_stdc=yes
3783 else
3784   ac_cv_header_stdc=no
3785 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787
3788 if test $ac_cv_header_stdc = yes; then
3789   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h.  */
3792 #include <string.h>
3793
3794 _ACEOF
3795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3796   $EGREP "memchr" >/dev/null 2>&1; then :
3797
3798 else
3799   ac_cv_header_stdc=no
3800 fi
3801 rm -f conftest*
3802
3803 fi
3804
3805 if test $ac_cv_header_stdc = yes; then
3806   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h.  */
3809 #include <stdlib.h>
3810
3811 _ACEOF
3812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813   $EGREP "free" >/dev/null 2>&1; then :
3814
3815 else
3816   ac_cv_header_stdc=no
3817 fi
3818 rm -f conftest*
3819
3820 fi
3821
3822 if test $ac_cv_header_stdc = yes; then
3823   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3824   if test "$cross_compiling" = yes; then :
3825   :
3826 else
3827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829 #include <ctype.h>
3830 #include <stdlib.h>
3831 #if ((' ' & 0x0FF) == 0x020)
3832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3834 #else
3835 # define ISLOWER(c) \
3836                    (('a' <= (c) && (c) <= 'i') \
3837                      || ('j' <= (c) && (c) <= 'r') \
3838                      || ('s' <= (c) && (c) <= 'z'))
3839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3840 #endif
3841
3842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3843 int
3844 main ()
3845 {
3846   int i;
3847   for (i = 0; i < 256; i++)
3848     if (XOR (islower (i), ISLOWER (i))
3849         || toupper (i) != TOUPPER (i))
3850       return 2;
3851   return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_run "$LINENO"; then :
3855
3856 else
3857   ac_cv_header_stdc=no
3858 fi
3859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3860   conftest.$ac_objext conftest.beam conftest.$ac_ext
3861 fi
3862
3863 fi
3864 fi
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3866 $as_echo "$ac_cv_header_stdc" >&6; }
3867 if test $ac_cv_header_stdc = yes; then
3868
3869 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3870
3871 fi
3872
3873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3875                   inttypes.h stdint.h unistd.h
3876 do :
3877   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3878 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3879 "
3880 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3881   cat >>confdefs.h <<_ACEOF
3882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3883 _ACEOF
3884
3885 fi
3886
3887 done
3888
3889
3890
3891   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3892 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3893   MINIX=yes
3894 else
3895   MINIX=
3896 fi
3897
3898
3899   if test "$MINIX" = yes; then
3900
3901 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3902
3903
3904 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3905
3906
3907 $as_echo "#define _MINIX 1" >>confdefs.h
3908
3909   fi
3910
3911
3912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3913 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3914 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 #         define __EXTENSIONS__ 1
3921           $ac_includes_default
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931   ac_cv_safe_to_define___extensions__=yes
3932 else
3933   ac_cv_safe_to_define___extensions__=no
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3938 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3939   test $ac_cv_safe_to_define___extensions__ = yes &&
3940     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3941
3942   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3943
3944   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3945
3946   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3947
3948   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3949
3950
3951
3952 target_alias=${target_alias-$target}
3953
3954
3955 # 1.11.1: Require that version of automake.
3956 # foreign: Don't require README, INSTALL, NEWS, etc.
3957 # no-define: Don't define PACKAGE and VERSION.
3958 # no-dependencies: Don't generate automatic dependencies.
3959 #    (because it breaks when using bootstrap-lean, since some of the
3960 #    headers are gone at "make install" time).
3961 # subdir-objects: Build objects in sub-directories.
3962 # -Wall: Issue all automake warnings.
3963 # -Wno-portability: Don't warn about constructs supported by GNU make.
3964 #    (because GCC requires GNU make anyhow).
3965 #  -Wno-override: Overrides used in testsuite.
3966 am__api_version='1.15'
3967
3968 # Find a good install program.  We prefer a C program (faster),
3969 # so one script is as good as another.  But avoid the broken or
3970 # incompatible versions:
3971 # SysV /etc/install, /usr/sbin/install
3972 # SunOS /usr/etc/install
3973 # IRIX /sbin/install
3974 # AIX /bin/install
3975 # AmigaOS /C/install, which installs bootblocks on floppy discs
3976 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3977 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3978 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3979 # OS/2's system install, which has a completely different semantic
3980 # ./install, which can be erroneously created by make from ./install.sh.
3981 # Reject install programs that cannot install multiple files.
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3983 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3984 if test -z "$INSTALL"; then
3985 if ${ac_cv_path_install+:} false; then :
3986   $as_echo_n "(cached) " >&6
3987 else
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993     # Account for people who put trailing slashes in PATH elements.
3994 case $as_dir/ in #((
3995   ./ | .// | /[cC]/* | \
3996   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3997   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3998   /usr/ucb/* ) ;;
3999   *)
4000     # OSF1 and SCO ODT 3.0 have their own names for install.
4001     # Don't use installbsd from OSF since it installs stuff as root
4002     # by default.
4003     for ac_prog in ginstall scoinst install; do
4004       for ac_exec_ext in '' $ac_executable_extensions; do
4005         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4006           if test $ac_prog = install &&
4007             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4008             # AIX install.  It has an incompatible calling convention.
4009             :
4010           elif test $ac_prog = install &&
4011             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4012             # program-specific install script used by HP pwplus--don't use.
4013             :
4014           else
4015             rm -rf conftest.one conftest.two conftest.dir
4016             echo one > conftest.one
4017             echo two > conftest.two
4018             mkdir conftest.dir
4019             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4020               test -s conftest.one && test -s conftest.two &&
4021               test -s conftest.dir/conftest.one &&
4022               test -s conftest.dir/conftest.two
4023             then
4024               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4025               break 3
4026             fi
4027           fi
4028         fi
4029       done
4030     done
4031     ;;
4032 esac
4033
4034   done
4035 IFS=$as_save_IFS
4036
4037 rm -rf conftest.one conftest.two conftest.dir
4038
4039 fi
4040   if test "${ac_cv_path_install+set}" = set; then
4041     INSTALL=$ac_cv_path_install
4042   else
4043     # As a last resort, use the slow shell script.  Don't cache a
4044     # value for INSTALL within a source directory, because that will
4045     # break other packages using the cache if that directory is
4046     # removed, or if the value is a relative name.
4047     INSTALL=$ac_install_sh
4048   fi
4049 fi
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4051 $as_echo "$INSTALL" >&6; }
4052
4053 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4054 # It thinks the first close brace ends the variable substitution.
4055 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4056
4057 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4058
4059 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4062 $as_echo_n "checking whether build environment is sane... " >&6; }
4063 # Reject unsafe characters in $srcdir or the absolute working directory
4064 # name.  Accept space and tab only in the latter.
4065 am_lf='
4066 '
4067 case `pwd` in
4068   *[\\\"\#\$\&\'\`$am_lf]*)
4069     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4070 esac
4071 case $srcdir in
4072   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4073     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4074 esac
4075
4076 # Do 'set' in a subshell so we don't clobber the current shell's
4077 # arguments.  Must try -L first in case configure is actually a
4078 # symlink; some systems play weird games with the mod time of symlinks
4079 # (eg FreeBSD returns the mod time of the symlink's containing
4080 # directory).
4081 if (
4082    am_has_slept=no
4083    for am_try in 1 2; do
4084      echo "timestamp, slept: $am_has_slept" > conftest.file
4085      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4086      if test "$*" = "X"; then
4087         # -L didn't work.
4088         set X `ls -t "$srcdir/configure" conftest.file`
4089      fi
4090      if test "$*" != "X $srcdir/configure conftest.file" \
4091         && test "$*" != "X conftest.file $srcdir/configure"; then
4092
4093         # If neither matched, then we have a broken ls.  This can happen
4094         # if, for instance, CONFIG_SHELL is bash and it inherits a
4095         # broken ls alias from the environment.  This has actually
4096         # happened.  Such a system could not be considered "sane".
4097         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4098   alias in your environment" "$LINENO" 5
4099      fi
4100      if test "$2" = conftest.file || test $am_try -eq 2; then
4101        break
4102      fi
4103      # Just in case.
4104      sleep 1
4105      am_has_slept=yes
4106    done
4107    test "$2" = conftest.file
4108    )
4109 then
4110    # Ok.
4111    :
4112 else
4113    as_fn_error $? "newly created file is older than distributed files!
4114 Check your system clock" "$LINENO" 5
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4117 $as_echo "yes" >&6; }
4118 # If we didn't sleep, we still need to ensure time stamps of config.status and
4119 # generated files are strictly newer.
4120 am_sleep_pid=
4121 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4122   ( sleep 1 ) &
4123   am_sleep_pid=$!
4124 fi
4125
4126 rm -f conftest.file
4127
4128 test "$program_prefix" != NONE &&
4129   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4130 # Use a double $ so make ignores it.
4131 test "$program_suffix" != NONE &&
4132   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4133 # Double any \ or $.
4134 # By default was `s,x,x', remove it if useless.
4135 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4136 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4137
4138 if test x"${MISSING+set}" != xset; then
4139   case $am_aux_dir in
4140   *\ * | *\     *)
4141     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4142   *)
4143     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4144   esac
4145 fi
4146 # Use eval to expand $SHELL
4147 if eval "$MISSING --is-lightweight"; then
4148   am_missing_run="$MISSING "
4149 else
4150   am_missing_run=
4151   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4152 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4153 fi
4154
4155 if test x"${install_sh+set}" != xset; then
4156   case $am_aux_dir in
4157   *\ * | *\     *)
4158     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4159   *)
4160     install_sh="\${SHELL} $am_aux_dir/install-sh"
4161   esac
4162 fi
4163
4164 # Installed binaries are usually stripped using 'strip' when the user
4165 # run "make install-strip".  However 'strip' might not be the right
4166 # tool to use in cross-compilation environments, therefore Automake
4167 # will honor the 'STRIP' environment variable to overrule this program.
4168 if test "$cross_compiling" != no; then
4169   if test -n "$ac_tool_prefix"; then
4170   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4171 set dummy ${ac_tool_prefix}strip; ac_word=$2
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if ${ac_cv_prog_STRIP+:} false; then :
4175   $as_echo_n "(cached) " >&6
4176 else
4177   if test -n "$STRIP"; then
4178   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   test -z "$as_dir" && as_dir=.
4185     for ac_exec_ext in '' $ac_executable_extensions; do
4186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4189     break 2
4190   fi
4191 done
4192   done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 STRIP=$ac_cv_prog_STRIP
4198 if test -n "$STRIP"; then
4199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4200 $as_echo "$STRIP" >&6; }
4201 else
4202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206
4207 fi
4208 if test -z "$ac_cv_prog_STRIP"; then
4209   ac_ct_STRIP=$STRIP
4210   # Extract the first word of "strip", so it can be a program name with args.
4211 set dummy strip; ac_word=$2
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 $as_echo_n "checking for $ac_word... " >&6; }
4214 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4215   $as_echo_n "(cached) " >&6
4216 else
4217   if test -n "$ac_ct_STRIP"; then
4218   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4222 do
4223   IFS=$as_save_IFS
4224   test -z "$as_dir" && as_dir=.
4225     for ac_exec_ext in '' $ac_executable_extensions; do
4226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227     ac_cv_prog_ac_ct_STRIP="strip"
4228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229     break 2
4230   fi
4231 done
4232   done
4233 IFS=$as_save_IFS
4234
4235 fi
4236 fi
4237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4238 if test -n "$ac_ct_STRIP"; then
4239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4240 $as_echo "$ac_ct_STRIP" >&6; }
4241 else
4242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4243 $as_echo "no" >&6; }
4244 fi
4245
4246   if test "x$ac_ct_STRIP" = x; then
4247     STRIP=":"
4248   else
4249     case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255     STRIP=$ac_ct_STRIP
4256   fi
4257 else
4258   STRIP="$ac_cv_prog_STRIP"
4259 fi
4260
4261 fi
4262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4263
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4265 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4266 if test -z "$MKDIR_P"; then
4267   if ${ac_cv_path_mkdir+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275     for ac_prog in mkdir gmkdir; do
4276          for ac_exec_ext in '' $ac_executable_extensions; do
4277            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4278            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4279              'mkdir (GNU coreutils) '* | \
4280              'mkdir (coreutils) '* | \
4281              'mkdir (fileutils) '4.1*)
4282                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4283                break 3;;
4284            esac
4285          done
4286        done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291
4292   test -d ./--version && rmdir ./--version
4293   if test "${ac_cv_path_mkdir+set}" = set; then
4294     MKDIR_P="$ac_cv_path_mkdir -p"
4295   else
4296     # As a last resort, use the slow shell script.  Don't cache a
4297     # value for MKDIR_P within a source directory, because that will
4298     # break other packages using the cache if that directory is
4299     # removed, or if the value is a relative name.
4300     MKDIR_P="$ac_install_sh -d"
4301   fi
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4304 $as_echo "$MKDIR_P" >&6; }
4305
4306 for ac_prog in gawk mawk nawk awk
4307 do
4308   # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if ${ac_cv_prog_AWK+:} false; then :
4313   $as_echo_n "(cached) " >&6
4314 else
4315   if test -n "$AWK"; then
4316   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_exec_ext in '' $ac_executable_extensions; do
4324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325     ac_cv_prog_AWK="$ac_prog"
4326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330   done
4331 IFS=$as_save_IFS
4332
4333 fi
4334 fi
4335 AWK=$ac_cv_prog_AWK
4336 if test -n "$AWK"; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4338 $as_echo "$AWK" >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345   test -n "$AWK" && break
4346 done
4347
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4349 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4350 set x ${MAKE-make}
4351 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4352 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4353   $as_echo_n "(cached) " >&6
4354 else
4355   cat >conftest.make <<\_ACEOF
4356 SHELL = /bin/sh
4357 all:
4358         @echo '@@@%%%=$(MAKE)=@@@%%%'
4359 _ACEOF
4360 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4361 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4362   *@@@%%%=?*=@@@%%%*)
4363     eval ac_cv_prog_make_${ac_make}_set=yes;;
4364   *)
4365     eval ac_cv_prog_make_${ac_make}_set=no;;
4366 esac
4367 rm -f conftest.make
4368 fi
4369 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4371 $as_echo "yes" >&6; }
4372   SET_MAKE=
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376   SET_MAKE="MAKE=${MAKE-make}"
4377 fi
4378
4379 rm -rf .tst 2>/dev/null
4380 mkdir .tst 2>/dev/null
4381 if test -d .tst; then
4382   am__leading_dot=.
4383 else
4384   am__leading_dot=_
4385 fi
4386 rmdir .tst 2>/dev/null
4387
4388 # Check whether --enable-silent-rules was given.
4389 if test "${enable_silent_rules+set}" = set; then :
4390   enableval=$enable_silent_rules;
4391 fi
4392
4393 case $enable_silent_rules in # (((
4394   yes) AM_DEFAULT_VERBOSITY=0;;
4395    no) AM_DEFAULT_VERBOSITY=1;;
4396     *) AM_DEFAULT_VERBOSITY=1;;
4397 esac
4398 am_make=${MAKE-make}
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4400 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4401 if ${am_cv_make_support_nested_variables+:} false; then :
4402   $as_echo_n "(cached) " >&6
4403 else
4404   if $as_echo 'TRUE=$(BAR$(V))
4405 BAR0=false
4406 BAR1=true
4407 V=1
4408 am__doit:
4409         @$(TRUE)
4410 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4411   am_cv_make_support_nested_variables=yes
4412 else
4413   am_cv_make_support_nested_variables=no
4414 fi
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4417 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4418 if test $am_cv_make_support_nested_variables = yes; then
4419     AM_V='$(V)'
4420   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4421 else
4422   AM_V=$AM_DEFAULT_VERBOSITY
4423   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4424 fi
4425 AM_BACKSLASH='\'
4426
4427 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4428   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4429   # is not polluted with repeated "-I."
4430   am__isrc=' -I$(srcdir)'
4431   # test to see if srcdir already configured
4432   if test -f $srcdir/config.status; then
4433     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4434   fi
4435 fi
4436
4437 # test whether we have cygpath
4438 if test -z "$CYGPATH_W"; then
4439   if (cygpath --version) >/dev/null 2>/dev/null; then
4440     CYGPATH_W='cygpath -w'
4441   else
4442     CYGPATH_W=echo
4443   fi
4444 fi
4445
4446
4447 # Define the identity of the package.
4448  PACKAGE='libphobos'
4449  VERSION='version-unused'
4450
4451
4452 # Some tools Automake needs.
4453
4454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4455
4456
4457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4458
4459
4460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4461
4462
4463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4464
4465
4466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4467
4468 # For better backward compatibility.  To be removed once Automake 1.9.x
4469 # dies out for good.  For more background, see:
4470 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4471 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4472 mkdir_p='$(MKDIR_P)'
4473
4474 # We need awk for the "check" target (and possibly the TAP driver).  The
4475 # system "awk" is bad on some platforms.
4476 # Always define AMTAR for backward compatibility.  Yes, it's still used
4477 # in the wild :-(  We should find a proper way to deprecate it ...
4478 AMTAR='$${TAR-tar}'
4479
4480
4481 # We'll loop over all known methods to create a tar archive until one works.
4482 _am_tools='gnutar  pax cpio none'
4483
4484 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4485
4486
4487
4488
4489
4490
4491 # POSIX will say in a future version that running "rm -f" with no argument
4492 # is OK; and we want to be able to make that assumption in our Makefile
4493 # recipes.  So use an aggressive probe to check that the usage we want is
4494 # actually supported "in the wild" to an acceptable degree.
4495 # See automake bug#10828.
4496 # To make any issue more visible, cause the running configure to be aborted
4497 # by default if the 'rm' program in use doesn't match our expectations; the
4498 # user can still override this though.
4499 if rm -f && rm -fr && rm -rf; then : OK; else
4500   cat >&2 <<'END'
4501 Oops!
4502
4503 Your 'rm' program seems unable to run without file operands specified
4504 on the command line, even when the '-f' option is present.  This is contrary
4505 to the behaviour of most rm programs out there, and not conforming with
4506 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4507
4508 Please tell bug-automake@gnu.org about your system, including the value
4509 of your $PATH and any error possibly output before this message.  This
4510 can help us improve future automake versions.
4511
4512 END
4513   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4514     echo 'Configuration will proceed anyway, since you have set the' >&2
4515     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4516     echo >&2
4517   else
4518     cat >&2 <<'END'
4519 Aborting the configuration process, to ensure you take notice of the issue.
4520
4521 You can download and install GNU coreutils to get an 'rm' implementation
4522 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4523
4524 If you want to complete the configuration process using your problematic
4525 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4526 to "yes", and re-run configure.
4527
4528 END
4529     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4530   fi
4531 fi
4532
4533
4534
4535
4536 # By default we simply use the C compiler to build assembly code.
4537
4538 test "${CCAS+set}" = set || CCAS=$CC
4539 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4540
4541
4542
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 if test -n "$ac_tool_prefix"; then
4549   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if ${ac_cv_prog_CC+:} false; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$CC"; then
4557   ac_cv_prog_CC="$CC" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_exec_ext in '' $ac_executable_extensions; do
4565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571   done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 CC=$ac_cv_prog_CC
4577 if test -n "$CC"; then
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579 $as_echo "$CC" >&6; }
4580 else
4581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586 fi
4587 if test -z "$ac_cv_prog_CC"; then
4588   ac_ct_CC=$CC
4589   # Extract the first word of "gcc", so it can be a program name with args.
4590 set dummy gcc; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4594   $as_echo_n "(cached) " >&6
4595 else
4596   if test -n "$ac_ct_CC"; then
4597   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606     ac_cv_prog_ac_ct_CC="gcc"
4607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611   done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4617 if test -n "$ac_ct_CC"; then
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4619 $as_echo "$ac_ct_CC" >&6; }
4620 else
4621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625   if test "x$ac_ct_CC" = x; then
4626     CC=""
4627   else
4628     case $cross_compiling:$ac_tool_warned in
4629 yes:)
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4632 ac_tool_warned=yes ;;
4633 esac
4634     CC=$ac_ct_CC
4635   fi
4636 else
4637   CC="$ac_cv_prog_CC"
4638 fi
4639
4640 if test -z "$CC"; then
4641           if test -n "$ac_tool_prefix"; then
4642     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4643 set dummy ${ac_tool_prefix}cc; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_CC+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if test -n "$CC"; then
4650   ac_cv_prog_CC="$CC" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657     for ac_exec_ext in '' $ac_executable_extensions; do
4658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659     ac_cv_prog_CC="${ac_tool_prefix}cc"
4660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664   done
4665 IFS=$as_save_IFS
4666
4667 fi
4668 fi
4669 CC=$ac_cv_prog_CC
4670 if test -n "$CC"; then
4671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4672 $as_echo "$CC" >&6; }
4673 else
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4676 fi
4677
4678
4679   fi
4680 fi
4681 if test -z "$CC"; then
4682   # Extract the first word of "cc", so it can be a program name with args.
4683 set dummy cc; ac_word=$2
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685 $as_echo_n "checking for $ac_word... " >&6; }
4686 if ${ac_cv_prog_CC+:} false; then :
4687   $as_echo_n "(cached) " >&6
4688 else
4689   if test -n "$CC"; then
4690   ac_cv_prog_CC="$CC" # Let the user override the test.
4691 else
4692   ac_prog_rejected=no
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698     for ac_exec_ext in '' $ac_executable_extensions; do
4699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4701        ac_prog_rejected=yes
4702        continue
4703      fi
4704     ac_cv_prog_CC="cc"
4705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709   done
4710 IFS=$as_save_IFS
4711
4712 if test $ac_prog_rejected = yes; then
4713   # We found a bogon in the path, so make sure we never use it.
4714   set dummy $ac_cv_prog_CC
4715   shift
4716   if test $# != 0; then
4717     # We chose a different compiler from the bogus one.
4718     # However, it has the same basename, so the bogon will be chosen
4719     # first if we set CC to just the basename; use the full file name.
4720     shift
4721     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4722   fi
4723 fi
4724 fi
4725 fi
4726 CC=$ac_cv_prog_CC
4727 if test -n "$CC"; then
4728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4729 $as_echo "$CC" >&6; }
4730 else
4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735
4736 fi
4737 if test -z "$CC"; then
4738   if test -n "$ac_tool_prefix"; then
4739   for ac_prog in cl.exe
4740   do
4741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if ${ac_cv_prog_CC+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if test -n "$CC"; then
4749   ac_cv_prog_CC="$CC" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 CC=$ac_cv_prog_CC
4769 if test -n "$CC"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771 $as_echo "$CC" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777
4778     test -n "$CC" && break
4779   done
4780 fi
4781 if test -z "$CC"; then
4782   ac_ct_CC=$CC
4783   for ac_prog in cl.exe
4784 do
4785   # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4788 $as_echo_n "checking for $ac_word... " >&6; }
4789 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -n "$ac_ct_CC"; then
4793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_exec_ext in '' $ac_executable_extensions; do
4801   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_ac_ct_CC="$ac_prog"
4803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807   done
4808 IFS=$as_save_IFS
4809
4810 fi
4811 fi
4812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4813 if test -n "$ac_ct_CC"; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4815 $as_echo "$ac_ct_CC" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4818 $as_echo "no" >&6; }
4819 fi
4820
4821
4822   test -n "$ac_ct_CC" && break
4823 done
4824
4825   if test "x$ac_ct_CC" = x; then
4826     CC=""
4827   else
4828     case $cross_compiling:$ac_tool_warned in
4829 yes:)
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4832 ac_tool_warned=yes ;;
4833 esac
4834     CC=$ac_ct_CC
4835   fi
4836 fi
4837
4838 fi
4839
4840
4841 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4843 as_fn_error $? "no acceptable C compiler found in \$PATH
4844 See \`config.log' for more details" "$LINENO" 5; }
4845
4846 # Provide some information about the compiler.
4847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4848 set X $ac_compile
4849 ac_compiler=$2
4850 for ac_option in --version -v -V -qversion; do
4851   { { ac_try="$ac_compiler $ac_option >&5"
4852 case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4857 $as_echo "$ac_try_echo"; } >&5
4858   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4859   ac_status=$?
4860   if test -s conftest.err; then
4861     sed '10a\
4862 ... rest of stderr output deleted ...
4863          10q' conftest.err >conftest.er1
4864     cat conftest.er1 >&5
4865   fi
4866   rm -f conftest.er1 conftest.err
4867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868   test $ac_status = 0; }
4869 done
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4873 if ${ac_cv_c_compiler_gnu+:} false; then :
4874   $as_echo_n "(cached) " >&6
4875 else
4876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h.  */
4878
4879 int
4880 main ()
4881 {
4882 #ifndef __GNUC__
4883        choke me
4884 #endif
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"; then :
4891   ac_compiler_gnu=yes
4892 else
4893   ac_compiler_gnu=no
4894 fi
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4897
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4901 if test $ac_compiler_gnu = yes; then
4902   GCC=yes
4903 else
4904   GCC=
4905 fi
4906 ac_test_CFLAGS=${CFLAGS+set}
4907 ac_save_CFLAGS=$CFLAGS
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4910 if ${ac_cv_prog_cc_g+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   ac_save_c_werror_flag=$ac_c_werror_flag
4914    ac_c_werror_flag=yes
4915    ac_cv_prog_cc_g=no
4916    CFLAGS="-g"
4917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h.  */
4919
4920 int
4921 main ()
4922 {
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929   ac_cv_prog_cc_g=yes
4930 else
4931   CFLAGS=""
4932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h.  */
4934
4935 int
4936 main ()
4937 {
4938
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944
4945 else
4946   ac_c_werror_flag=$ac_save_c_werror_flag
4947          CFLAGS="-g"
4948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h.  */
4950
4951 int
4952 main ()
4953 {
4954
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960   ac_cv_prog_cc_g=yes
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 fi
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 fi
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967    ac_c_werror_flag=$ac_save_c_werror_flag
4968 fi
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4970 $as_echo "$ac_cv_prog_cc_g" >&6; }
4971 if test "$ac_test_CFLAGS" = set; then
4972   CFLAGS=$ac_save_CFLAGS
4973 elif test $ac_cv_prog_cc_g = yes; then
4974   if test "$GCC" = yes; then
4975     CFLAGS="-g -O2"
4976   else
4977     CFLAGS="-g"
4978   fi
4979 else
4980   if test "$GCC" = yes; then
4981     CFLAGS="-O2"
4982   else
4983     CFLAGS=
4984   fi
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4988 if ${ac_cv_prog_cc_c89+:} false; then :
4989   $as_echo_n "(cached) " >&6
4990 else
4991   ac_cv_prog_cc_c89=no
4992 ac_save_CC=$CC
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995 #include <stdarg.h>
4996 #include <stdio.h>
4997 struct stat;
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5002      char **p;
5003      int i;
5004 {
5005   return p[i];
5006 }
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5008 {
5009   char *s;
5010   va_list v;
5011   va_start (v,p);
5012   s = g (p, va_arg (v,int));
5013   va_end (v);
5014   return s;
5015 }
5016
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5018    function prototypes and stuff, but not '\xHH' hex character constants.
5019    These don't provoke an error unfortunately, instead are silently treated
5020    as 'x'.  The following induces an error, until -std is added to get
5021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5022    array size at least.  It's necessary to write '\x00'==0 to get something
5023    that's true only with -std.  */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027    inside strings and character constants.  */
5028 #define FOO(x) 'x'
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 int argc;
5036 char **argv;
5037 int
5038 main ()
5039 {
5040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047 do
5048   CC="$ac_save_CC $ac_arg"
5049   if ac_fn_c_try_compile "$LINENO"; then :
5050   ac_cv_prog_cc_c89=$ac_arg
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext
5053   test "x$ac_cv_prog_cc_c89" != "xno" && break
5054 done
5055 rm -f conftest.$ac_ext
5056 CC=$ac_save_CC
5057
5058 fi
5059 # AC_CACHE_VAL
5060 case "x$ac_cv_prog_cc_c89" in
5061   x)
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5063 $as_echo "none needed" >&6; } ;;
5064   xno)
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 $as_echo "unsupported" >&6; } ;;
5067   *)
5068     CC="$CC $ac_cv_prog_cc_c89"
5069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5071 esac
5072 if test "x$ac_cv_prog_cc_c89" != xno; then :
5073
5074 fi
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082 ac_ext=c
5083 ac_cpp='$CPP $CPPFLAGS'
5084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5088 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5089 if ${am_cv_prog_cc_c_o+:} false; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h.  */
5094
5095 int
5096 main ()
5097 {
5098
5099   ;
5100   return 0;
5101 }
5102 _ACEOF
5103   # Make sure it works both with $CC and with simple cc.
5104   # Following AC_PROG_CC_C_O, we do the test twice because some
5105   # compilers refuse to overwrite an existing .o file with -o,
5106   # though they will create one.
5107   am_cv_prog_cc_c_o=yes
5108   for am_i in 1 2; do
5109     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5110    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5111    ac_status=$?
5112    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113    (exit $ac_status); } \
5114          && test -f conftest2.$ac_objext; then
5115       : OK
5116     else
5117       am_cv_prog_cc_c_o=no
5118       break
5119     fi
5120   done
5121   rm -f core conftest*
5122   unset am_i
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5125 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5126 if test "$am_cv_prog_cc_c_o" != yes; then
5127    # Losing compiler, so override with the script.
5128    # FIXME: It is wrong to rewrite CC.
5129    # But if we don't then we get into trouble of one sort or another.
5130    # A longer-term fix would be to have automake use am__CC in this case,
5131    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5132    CC="$am_aux_dir/compile $CC"
5133 fi
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141 ac_ext=d
5142 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5143 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=yes
5145 if test -n "$ac_tool_prefix"; then
5146   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5147 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149 $as_echo_n "checking for $ac_word... " >&6; }
5150 if ${ac_cv_prog_GDC+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   if test -n "$GDC"; then
5154   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5155 else
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171 fi
5172 fi
5173 GDC=$ac_cv_prog_GDC
5174 if test -n "$GDC"; then
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5176 $as_echo "$GDC" >&6; }
5177 else
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 if test -z "$ac_cv_prog_GDC"; then
5185   ac_ct_GDC=$GDC
5186   # Extract the first word of "gdc", so it can be a program name with args.
5187 set dummy gdc; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test -n "$ac_ct_GDC"; then
5194   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203     ac_cv_prog_ac_ct_GDC="gdc"
5204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211 fi
5212 fi
5213 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5214 if test -n "$ac_ct_GDC"; then
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5216 $as_echo "$ac_ct_GDC" >&6; }
5217 else
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220 fi
5221
5222   if test "x$ac_ct_GDC" = x; then
5223     GDC=""
5224   else
5225     case $cross_compiling:$ac_tool_warned in
5226 yes:)
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229 ac_tool_warned=yes ;;
5230 esac
5231     GDC=$ac_ct_GDC
5232   fi
5233 else
5234   GDC="$ac_cv_prog_GDC"
5235 fi
5236
5237 if test -z "$GDC"; then
5238   if test -n "$ac_tool_prefix"; then
5239     # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_prog_GDC+:} false; then :
5244   $as_echo_n "(cached) " >&6
5245 else
5246   if test -n "$GDC"; then
5247   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5251 do
5252   IFS=$as_save_IFS
5253   test -z "$as_dir" && as_dir=.
5254     for ac_exec_ext in '' $ac_executable_extensions; do
5255   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256     ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258     break 2
5259   fi
5260 done
5261   done
5262 IFS=$as_save_IFS
5263
5264 fi
5265 fi
5266 GDC=$ac_cv_prog_GDC
5267 if test -n "$GDC"; then
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5269 $as_echo "$GDC" >&6; }
5270 else
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274
5275
5276   fi
5277 fi
5278 if test -z "$GDC"; then
5279   # Extract the first word of "gdc", so it can be a program name with args.
5280 set dummy gdc; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_prog_GDC+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   if test -n "$GDC"; then
5287   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5288 else
5289   ac_prog_rejected=no
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297     if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5298        ac_prog_rejected=yes
5299        continue
5300      fi
5301     ac_cv_prog_GDC="gdc"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308
5309 if test $ac_prog_rejected = yes; then
5310   # We found a bogon in the path, so make sure we never use it.
5311   set dummy $ac_cv_prog_GDC
5312   shift
5313   if test $# != 0; then
5314     # We chose a different compiler from the bogus one.
5315     # However, it has the same basename, so the bogon will be chosen
5316     # first if we set GDC to just the basename; use the full file name.
5317     shift
5318     ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5319   fi
5320 fi
5321 fi
5322 fi
5323 GDC=$ac_cv_prog_GDC
5324 if test -n "$GDC"; then
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5326 $as_echo "$GDC" >&6; }
5327 else
5328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5330 fi
5331
5332
5333 fi
5334
5335
5336 # Provide some information about the compiler.
5337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5338 set X $ac_compile
5339 ac_compiler=$2
5340 { { ac_try="$ac_compiler --version >&5"
5341 case "(($ac_try" in
5342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343   *) ac_try_echo=$ac_try;;
5344 esac
5345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5346 $as_echo "$ac_try_echo"; } >&5
5347   (eval "$ac_compiler --version >&5") 2>conftest.err
5348   ac_status=$?
5349   if test -s conftest.err; then
5350     sed '10a\
5351 ... rest of stderr output deleted ...
5352          10q' conftest.err >conftest.er1
5353     cat conftest.er1 >&5
5354   fi
5355   rm -f conftest.er1 conftest.err
5356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5357   test $ac_status = 0; }
5358 ac_ext=c
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5366 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5367 if ${phobos_cv_abs_srcdir+:} false; then :
5368   $as_echo_n "(cached) " >&6
5369 else
5370   phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5373 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5374     if test -d "$phobos_cv_abs_srcdir"; then :
5375
5376 else
5377   as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5378 fi
5379
5380
5381
5382
5383   gdc_save_DFLAGS=$GDCFLAGS
5384   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5385
5386   ac_ext=d
5387 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5388 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5389 ac_compiler_gnu=yes
5390
5391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5392 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5393     cat > conftest.$ac_ext <<_ACEOF
5394 module mod;
5395
5396
5397 extern(C) int main() {
5398   return 0;
5399 }
5400 _ACEOF
5401 if ac_fn_d_try_compile "$LINENO"; then :
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403 $as_echo "yes" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407        as_fn_error $? "can't compile D sources!" "$LINENO" 5
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410   ac_ext=c
5411 ac_cpp='$CPP $CPPFLAGS'
5412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415
5416
5417   GDCFLAGS=$gdc_save_DFLAGS
5418
5419
5420
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5425 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5426     # Check whether --enable-maintainer-mode was given.
5427 if test "${enable_maintainer_mode+set}" = set; then :
5428   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5429 else
5430   USE_MAINTAINER_MODE=no
5431 fi
5432
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5434 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5435    if test $USE_MAINTAINER_MODE = yes; then
5436   MAINTAINER_MODE_TRUE=
5437   MAINTAINER_MODE_FALSE='#'
5438 else
5439   MAINTAINER_MODE_TRUE='#'
5440   MAINTAINER_MODE_FALSE=
5441 fi
5442
5443   MAINT=$MAINTAINER_MODE_TRUE
5444
5445
5446 if test -n "$ac_tool_prefix"; then
5447   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_RANLIB+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   if test -n "$RANLIB"; then
5455   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 RANLIB=$ac_cv_prog_RANLIB
5475 if test -n "$RANLIB"; then
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5477 $as_echo "$RANLIB" >&6; }
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_RANLIB"; then
5486   ac_ct_RANLIB=$RANLIB
5487   # Extract the first word of "ranlib", so it can be a program name with args.
5488 set dummy ranlib; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if test -n "$ac_ct_RANLIB"; then
5495   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502     for ac_exec_ext in '' $ac_executable_extensions; do
5503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504     ac_cv_prog_ac_ct_RANLIB="ranlib"
5505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509   done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5515 if test -n "$ac_ct_RANLIB"; then
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5517 $as_echo "$ac_ct_RANLIB" >&6; }
5518 else
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523   if test "x$ac_ct_RANLIB" = x; then
5524     RANLIB=":"
5525   else
5526     case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532     RANLIB=$ac_ct_RANLIB
5533   fi
5534 else
5535   RANLIB="$ac_cv_prog_RANLIB"
5536 fi
5537
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5541 set x ${MAKE-make}
5542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5543 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   cat >conftest.make <<\_ACEOF
5547 SHELL = /bin/sh
5548 all:
5549         @echo '@@@%%%=$(MAKE)=@@@%%%'
5550 _ACEOF
5551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5553   *@@@%%%=?*=@@@%%%*)
5554     eval ac_cv_prog_make_${ac_make}_set=yes;;
5555   *)
5556     eval ac_cv_prog_make_${ac_make}_set=no;;
5557 esac
5558 rm -f conftest.make
5559 fi
5560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5562 $as_echo "yes" >&6; }
5563   SET_MAKE=
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567   SET_MAKE="MAKE=${MAKE-make}"
5568 fi
5569
5570
5571 # Add CET specific flags if CET is enabled
5572  # Check whether --enable-cet was given.
5573 if test "${enable_cet+set}" = set; then :
5574   enableval=$enable_cet;
5575       case "$enableval" in
5576        yes|no|auto) ;;
5577        *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5578                           esac
5579
5580 else
5581   enable_cet=auto
5582 fi
5583
5584
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5586 $as_echo_n "checking for CET support... " >&6; }
5587
5588 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
5589 case "$host" in
5590   i[34567]86-*-linux* | x86_64-*-linux*)
5591     case "$enable_cet" in
5592       auto)
5593         # Check if target supports multi-byte NOPs
5594         # and if compiler and assembler support CET insn.
5595         cet_save_CFLAGS="$CFLAGS"
5596         CFLAGS="$CFLAGS -fcf-protection"
5597         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h.  */
5599
5600 int
5601 main ()
5602 {
5603
5604 #if !defined(__SSE2__)
5605 #error target does not support multi-byte NOPs
5606 #else
5607 asm ("setssbsy");
5608 #endif
5609
5610   ;
5611   return 0;
5612 }
5613 _ACEOF
5614 if ac_fn_c_try_compile "$LINENO"; then :
5615   enable_cet=yes
5616 else
5617   enable_cet=no
5618 fi
5619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5620         CFLAGS="$cet_save_CFLAGS"
5621         ;;
5622       yes)
5623         # Check if assembler supports CET.
5624         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h.  */
5626
5627 int
5628 main ()
5629 {
5630 asm ("setssbsy");
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636
5637 else
5638   as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
5639 fi
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641         ;;
5642     esac
5643     ;;
5644   *)
5645     enable_cet=no
5646     ;;
5647 esac
5648 if test x$enable_cet = xyes; then
5649   CET_FLAGS="-fcf-protection -mshstk"
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5651 $as_echo "yes" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657
5658 # To ensure that runtime code for CET is compiled in, add in D version flags.
5659 if test x$enable_cet = xyes; then :
5660
5661   CET_DFLAGS="$CET_FLAGS -fversion=CET"
5662   DCFG_ENABLE_CET=true
5663
5664 else
5665
5666   CET_DFLAGS=
5667   DCFG_ENABLE_CET=false
5668
5669 fi
5670
5671
5672
5673 # This should be inherited in the recursive make, but ensure it is defined.
5674 test "$AR" || AR=ar
5675
5676
5677 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5678
5679
5680
5681 # Enable libtool
5682 case `pwd` in
5683   *\ * | *\     *)
5684     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5685 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5686 esac
5687
5688
5689
5690 macro_version='2.2.7a'
5691 macro_revision='1.3134'
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705 ltmain="$ac_aux_dir/ltmain.sh"
5706
5707 # Backslashify metacharacters that are still active within
5708 # double-quoted strings.
5709 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5710
5711 # Same as above, but do not quote variable references.
5712 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5713
5714 # Sed substitution to delay expansion of an escaped shell variable in a
5715 # double_quote_subst'ed string.
5716 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5717
5718 # Sed substitution to delay expansion of an escaped single quote.
5719 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5720
5721 # Sed substitution to avoid accidental globbing in evaled expressions
5722 no_glob_subst='s/\*/\\\*/g'
5723
5724 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5726 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5727
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5729 $as_echo_n "checking how to print strings... " >&6; }
5730 # Test print first, because it will be a builtin if present.
5731 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5732    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5733   ECHO='print -r --'
5734 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5735   ECHO='printf %s\n'
5736 else
5737   # Use this function as a fallback that always works.
5738   func_fallback_echo ()
5739   {
5740     eval 'cat <<_LTECHO_EOF
5741 $1
5742 _LTECHO_EOF'
5743   }
5744   ECHO='func_fallback_echo'
5745 fi
5746
5747 # func_echo_all arg...
5748 # Invoke $ECHO with all args, space-separated.
5749 func_echo_all ()
5750 {
5751     $ECHO ""
5752 }
5753
5754 case "$ECHO" in
5755   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5756 $as_echo "printf" >&6; } ;;
5757   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5758 $as_echo "print -r" >&6; } ;;
5759   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5760 $as_echo "cat" >&6; } ;;
5761 esac
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5777 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5778 if ${ac_cv_path_SED+:} false; then :
5779   $as_echo_n "(cached) " >&6
5780 else
5781             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5782      for ac_i in 1 2 3 4 5 6 7; do
5783        ac_script="$ac_script$as_nl$ac_script"
5784      done
5785      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5786      { ac_script=; unset ac_script;}
5787      if test -z "$SED"; then
5788   ac_path_SED_found=false
5789   # Loop through the user's path and test for each of PROGNAME-LIST
5790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5792 do
5793   IFS=$as_save_IFS
5794   test -z "$as_dir" && as_dir=.
5795     for ac_prog in sed gsed; do
5796     for ac_exec_ext in '' $ac_executable_extensions; do
5797       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5798       as_fn_executable_p "$ac_path_SED" || continue
5799 # Check for GNU ac_path_SED and select it if it is found.
5800   # Check for GNU $ac_path_SED
5801 case `"$ac_path_SED" --version 2>&1` in
5802 *GNU*)
5803   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5804 *)
5805   ac_count=0
5806   $as_echo_n 0123456789 >"conftest.in"
5807   while :
5808   do
5809     cat "conftest.in" "conftest.in" >"conftest.tmp"
5810     mv "conftest.tmp" "conftest.in"
5811     cp "conftest.in" "conftest.nl"
5812     $as_echo '' >> "conftest.nl"
5813     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5814     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5815     as_fn_arith $ac_count + 1 && ac_count=$as_val
5816     if test $ac_count -gt ${ac_path_SED_max-0}; then
5817       # Best one so far, save it but keep looking for a better one
5818       ac_cv_path_SED="$ac_path_SED"
5819       ac_path_SED_max=$ac_count
5820     fi
5821     # 10*(2^10) chars as input seems more than enough
5822     test $ac_count -gt 10 && break
5823   done
5824   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5825 esac
5826
5827       $ac_path_SED_found && break 3
5828     done
5829   done
5830   done
5831 IFS=$as_save_IFS
5832   if test -z "$ac_cv_path_SED"; then
5833     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5834   fi
5835 else
5836   ac_cv_path_SED=$SED
5837 fi
5838
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5841 $as_echo "$ac_cv_path_SED" >&6; }
5842  SED="$ac_cv_path_SED"
5843   rm -f conftest.sed
5844
5845 test -z "$SED" && SED=sed
5846 Xsed="$SED -e 1s/^X//"
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5859 $as_echo_n "checking for fgrep... " >&6; }
5860 if ${ac_cv_path_FGREP+:} false; then :
5861   $as_echo_n "(cached) " >&6
5862 else
5863   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5864    then ac_cv_path_FGREP="$GREP -F"
5865    else
5866      if test -z "$FGREP"; then
5867   ac_path_FGREP_found=false
5868   # Loop through the user's path and test for each of PROGNAME-LIST
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874     for ac_prog in fgrep; do
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5877       as_fn_executable_p "$ac_path_FGREP" || continue
5878 # Check for GNU ac_path_FGREP and select it if it is found.
5879   # Check for GNU $ac_path_FGREP
5880 case `"$ac_path_FGREP" --version 2>&1` in
5881 *GNU*)
5882   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5883 *)
5884   ac_count=0
5885   $as_echo_n 0123456789 >"conftest.in"
5886   while :
5887   do
5888     cat "conftest.in" "conftest.in" >"conftest.tmp"
5889     mv "conftest.tmp" "conftest.in"
5890     cp "conftest.in" "conftest.nl"
5891     $as_echo 'FGREP' >> "conftest.nl"
5892     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5894     as_fn_arith $ac_count + 1 && ac_count=$as_val
5895     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5896       # Best one so far, save it but keep looking for a better one
5897       ac_cv_path_FGREP="$ac_path_FGREP"
5898       ac_path_FGREP_max=$ac_count
5899     fi
5900     # 10*(2^10) chars as input seems more than enough
5901     test $ac_count -gt 10 && break
5902   done
5903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5904 esac
5905
5906       $ac_path_FGREP_found && break 3
5907     done
5908   done
5909   done
5910 IFS=$as_save_IFS
5911   if test -z "$ac_cv_path_FGREP"; then
5912     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5913   fi
5914 else
5915   ac_cv_path_FGREP=$FGREP
5916 fi
5917
5918    fi
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5921 $as_echo "$ac_cv_path_FGREP" >&6; }
5922  FGREP="$ac_cv_path_FGREP"
5923
5924
5925 test -z "$GREP" && GREP=grep
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945 # Check whether --with-gnu-ld was given.
5946 if test "${with_gnu_ld+set}" = set; then :
5947   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5948 else
5949   with_gnu_ld=no
5950 fi
5951
5952 ac_prog=ld
5953 if test "$GCC" = yes; then
5954   # Check if gcc -print-prog-name=ld gives a path.
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5956 $as_echo_n "checking for ld used by $CC... " >&6; }
5957   case $host in
5958   *-*-mingw*)
5959     # gcc leaves a trailing carriage return which upsets mingw
5960     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5961   *)
5962     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5963   esac
5964   case $ac_prog in
5965     # Accept absolute paths.
5966     [\\/]* | ?:[\\/]*)
5967       re_direlt='/[^/][^/]*/\.\./'
5968       # Canonicalize the pathname of ld
5969       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5970       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5971         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5972       done
5973       test -z "$LD" && LD="$ac_prog"
5974       ;;
5975   "")
5976     # If it fails, then pretend we aren't using GCC.
5977     ac_prog=ld
5978     ;;
5979   *)
5980     # If it is relative, then search for the first ld in PATH.
5981     with_gnu_ld=unknown
5982     ;;
5983   esac
5984 elif test "$with_gnu_ld" = yes; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5986 $as_echo_n "checking for GNU ld... " >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5989 $as_echo_n "checking for non-GNU ld... " >&6; }
5990 fi
5991 if ${lt_cv_path_LD+:} false; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   if test -z "$LD"; then
5995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5996   for ac_dir in $PATH; do
5997     IFS="$lt_save_ifs"
5998     test -z "$ac_dir" && ac_dir=.
5999     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6000       lt_cv_path_LD="$ac_dir/$ac_prog"
6001       # Check to see if the program is GNU ld.  I'd rather use --version,
6002       # but apparently some variants of GNU ld only accept -v.
6003       # Break only if it was the GNU/non-GNU ld that we prefer.
6004       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6005       *GNU* | *'with BFD'*)
6006         test "$with_gnu_ld" != no && break
6007         ;;
6008       *)
6009         test "$with_gnu_ld" != yes && break
6010         ;;
6011       esac
6012     fi
6013   done
6014   IFS="$lt_save_ifs"
6015 else
6016   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6017 fi
6018 fi
6019
6020 LD="$lt_cv_path_LD"
6021 if test -n "$LD"; then
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6023 $as_echo "$LD" >&6; }
6024 else
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6027 fi
6028 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6031 if ${lt_cv_prog_gnu_ld+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6035 case `$LD -v 2>&1 </dev/null` in
6036 *GNU* | *'with BFD'*)
6037   lt_cv_prog_gnu_ld=yes
6038   ;;
6039 *)
6040   lt_cv_prog_gnu_ld=no
6041   ;;
6042 esac
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6045 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6046 with_gnu_ld=$lt_cv_prog_gnu_ld
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6057 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6058 if ${lt_cv_path_NM+:} false; then :
6059   $as_echo_n "(cached) " >&6
6060 else
6061   if test -n "$NM"; then
6062   # Let the user override the test.
6063   lt_cv_path_NM="$NM"
6064 else
6065   lt_nm_to_check="${ac_tool_prefix}nm"
6066   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6067     lt_nm_to_check="$lt_nm_to_check nm"
6068   fi
6069   for lt_tmp_nm in $lt_nm_to_check; do
6070     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6071     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6072       IFS="$lt_save_ifs"
6073       test -z "$ac_dir" && ac_dir=.
6074       tmp_nm="$ac_dir/$lt_tmp_nm"
6075       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6076         # Check to see if the nm accepts a BSD-compat flag.
6077         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6078         #   nm: unknown option "B" ignored
6079         # Tru64's nm complains that /dev/null is an invalid object file
6080         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6081         */dev/null* | *'Invalid file or object type'*)
6082           lt_cv_path_NM="$tmp_nm -B"
6083           break
6084           ;;
6085         *)
6086           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6087           */dev/null*)
6088             lt_cv_path_NM="$tmp_nm -p"
6089             break
6090             ;;
6091           *)
6092             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6093             continue # so that we can try to find one that supports BSD flags
6094             ;;
6095           esac
6096           ;;
6097         esac
6098       fi
6099     done
6100     IFS="$lt_save_ifs"
6101   done
6102   : ${lt_cv_path_NM=no}
6103 fi
6104 fi
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6106 $as_echo "$lt_cv_path_NM" >&6; }
6107 if test "$lt_cv_path_NM" != "no"; then
6108   NM="$lt_cv_path_NM"
6109 else
6110   # Didn't find any BSD compatible name lister, look for dumpbin.
6111   if test -n "$DUMPBIN"; then :
6112     # Let the user override the test.
6113   else
6114     if test -n "$ac_tool_prefix"; then
6115   for ac_prog in dumpbin "link -dump"
6116   do
6117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if ${ac_cv_prog_DUMPBIN+:} false; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   if test -n "$DUMPBIN"; then
6125   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 DUMPBIN=$ac_cv_prog_DUMPBIN
6145 if test -n "$DUMPBIN"; then
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6147 $as_echo "$DUMPBIN" >&6; }
6148 else
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153
6154     test -n "$DUMPBIN" && break
6155   done
6156 fi
6157 if test -z "$DUMPBIN"; then
6158   ac_ct_DUMPBIN=$DUMPBIN
6159   for ac_prog in dumpbin "link -dump"
6160 do
6161   # Extract the first word of "$ac_prog", so it can be a program name with args.
6162 set dummy $ac_prog; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168   if test -n "$ac_ct_DUMPBIN"; then
6169   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6170 else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172 for as_dir in $PATH
6173 do
6174   IFS=$as_save_IFS
6175   test -z "$as_dir" && as_dir=.
6176     for ac_exec_ext in '' $ac_executable_extensions; do
6177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6178     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6180     break 2
6181   fi
6182 done
6183   done
6184 IFS=$as_save_IFS
6185
6186 fi
6187 fi
6188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6189 if test -n "$ac_ct_DUMPBIN"; then
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6191 $as_echo "$ac_ct_DUMPBIN" >&6; }
6192 else
6193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6195 fi
6196
6197
6198   test -n "$ac_ct_DUMPBIN" && break
6199 done
6200
6201   if test "x$ac_ct_DUMPBIN" = x; then
6202     DUMPBIN=":"
6203   else
6204     case $cross_compiling:$ac_tool_warned in
6205 yes:)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6209 esac
6210     DUMPBIN=$ac_ct_DUMPBIN
6211   fi
6212 fi
6213
6214     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6215     *COFF*)
6216       DUMPBIN="$DUMPBIN -symbols"
6217       ;;
6218     *)
6219       DUMPBIN=:
6220       ;;
6221     esac
6222   fi
6223
6224   if test "$DUMPBIN" != ":"; then
6225     NM="$DUMPBIN"
6226   fi
6227 fi
6228 test -z "$NM" && NM=nm
6229
6230
6231
6232
6233
6234
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6236 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6237 if ${lt_cv_nm_interface+:} false; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   lt_cv_nm_interface="BSD nm"
6241   echo "int some_variable = 0;" > conftest.$ac_ext
6242   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6243   (eval "$ac_compile" 2>conftest.err)
6244   cat conftest.err >&5
6245   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6246   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6247   cat conftest.err >&5
6248   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6249   cat conftest.out >&5
6250   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6251     lt_cv_nm_interface="MS dumpbin"
6252   fi
6253   rm -f conftest*
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6256 $as_echo "$lt_cv_nm_interface" >&6; }
6257
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6259 $as_echo_n "checking whether ln -s works... " >&6; }
6260 LN_S=$as_ln_s
6261 if test "$LN_S" = "ln -s"; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6263 $as_echo "yes" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6266 $as_echo "no, using $LN_S" >&6; }
6267 fi
6268
6269 # find the maximum length of command line arguments
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6271 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6272 if ${lt_cv_sys_max_cmd_len+:} false; then :
6273   $as_echo_n "(cached) " >&6
6274 else
6275     i=0
6276   teststring="ABCD"
6277
6278   case $build_os in
6279   msdosdjgpp*)
6280     # On DJGPP, this test can blow up pretty badly due to problems in libc
6281     # (any single argument exceeding 2000 bytes causes a buffer overrun
6282     # during glob expansion).  Even if it were fixed, the result of this
6283     # check would be larger than it should be.
6284     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6285     ;;
6286
6287   gnu*)
6288     # Under GNU Hurd, this test is not required because there is
6289     # no limit to the length of command line arguments.
6290     # Libtool will interpret -1 as no limit whatsoever
6291     lt_cv_sys_max_cmd_len=-1;
6292     ;;
6293
6294   cygwin* | mingw* | cegcc*)
6295     # On Win9x/ME, this test blows up -- it succeeds, but takes
6296     # about 5 minutes as the teststring grows exponentially.
6297     # Worse, since 9x/ME are not pre-emptively multitasking,
6298     # you end up with a "frozen" computer, even though with patience
6299     # the test eventually succeeds (with a max line length of 256k).
6300     # Instead, let's just punt: use the minimum linelength reported by
6301     # all of the supported platforms: 8192 (on NT/2K/XP).
6302     lt_cv_sys_max_cmd_len=8192;
6303     ;;
6304
6305   mint*)
6306     # On MiNT this can take a long time and run out of memory.
6307     lt_cv_sys_max_cmd_len=8192;
6308     ;;
6309
6310   amigaos*)
6311     # On AmigaOS with pdksh, this test takes hours, literally.
6312     # So we just punt and use a minimum line length of 8192.
6313     lt_cv_sys_max_cmd_len=8192;
6314     ;;
6315
6316   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6317     # This has been around since 386BSD, at least.  Likely further.
6318     if test -x /sbin/sysctl; then
6319       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6320     elif test -x /usr/sbin/sysctl; then
6321       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6322     else
6323       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6324     fi
6325     # And add a safety zone
6326     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6327     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6328     ;;
6329
6330   interix*)
6331     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6332     lt_cv_sys_max_cmd_len=196608
6333     ;;
6334
6335   osf*)
6336     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6337     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6338     # nice to cause kernel panics so lets avoid the loop below.
6339     # First set a reasonable default.
6340     lt_cv_sys_max_cmd_len=16384
6341     #
6342     if test -x /sbin/sysconfig; then
6343       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6344         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6345       esac
6346     fi
6347     ;;
6348   sco3.2v5*)
6349     lt_cv_sys_max_cmd_len=102400
6350     ;;
6351   sysv5* | sco5v6* | sysv4.2uw2*)
6352     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6353     if test -n "$kargmax"; then
6354       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6355     else
6356       lt_cv_sys_max_cmd_len=32768
6357     fi
6358     ;;
6359   *)
6360     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6361     if test -n "$lt_cv_sys_max_cmd_len"; then
6362       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6363       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6364     else
6365       # Make teststring a little bigger before we do anything with it.
6366       # a 1K string should be a reasonable start.
6367       for i in 1 2 3 4 5 6 7 8 ; do
6368         teststring=$teststring$teststring
6369       done
6370       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6371       # If test is not a shell built-in, we'll probably end up computing a
6372       # maximum length that is only half of the actual maximum length, but
6373       # we can't tell.
6374       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6375                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6376               test $i != 17 # 1/2 MB should be enough
6377       do
6378         i=`expr $i + 1`
6379         teststring=$teststring$teststring
6380       done
6381       # Only check the string length outside the loop.
6382       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6383       teststring=
6384       # Add a significant safety factor because C++ compilers can tack on
6385       # massive amounts of additional arguments before passing them to the
6386       # linker.  It appears as though 1/2 is a usable value.
6387       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6388     fi
6389     ;;
6390   esac
6391
6392 fi
6393
6394 if test -n $lt_cv_sys_max_cmd_len ; then
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6396 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6397 else
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6399 $as_echo "none" >&6; }
6400 fi
6401 max_cmd_len=$lt_cv_sys_max_cmd_len
6402
6403
6404
6405
6406
6407
6408 : ${CP="cp -f"}
6409 : ${MV="mv -f"}
6410 : ${RM="rm -f"}
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6413 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6414 # Try some XSI features
6415 xsi_shell=no
6416 ( _lt_dummy="a/b/c"
6417   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6418       = c,a/b,, \
6419     && eval 'test $(( 1 + 1 )) -eq 2 \
6420     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6421   && xsi_shell=yes
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6423 $as_echo "$xsi_shell" >&6; }
6424
6425
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6427 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6428 lt_shell_append=no
6429 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6430     >/dev/null 2>&1 \
6431   && lt_shell_append=yes
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6433 $as_echo "$lt_shell_append" >&6; }
6434
6435
6436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6437   lt_unset=unset
6438 else
6439   lt_unset=false
6440 fi
6441
6442
6443
6444
6445
6446 # test EBCDIC or ASCII
6447 case `echo X|tr X '\101'` in
6448  A) # ASCII based system
6449     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6450   lt_SP2NL='tr \040 \012'
6451   lt_NL2SP='tr \015\012 \040\040'
6452   ;;
6453  *) # EBCDIC based system
6454   lt_SP2NL='tr \100 \n'
6455   lt_NL2SP='tr \r\n \100\100'
6456   ;;
6457 esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6468 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6469 if ${lt_cv_ld_reload_flag+:} false; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   lt_cv_ld_reload_flag='-r'
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6475 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6476 reload_flag=$lt_cv_ld_reload_flag
6477 case $reload_flag in
6478 "" | " "*) ;;
6479 *) reload_flag=" $reload_flag" ;;
6480 esac
6481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6482 case $host_os in
6483   darwin*)
6484     if test "$GCC" = yes; then
6485       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6486     else
6487       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6488     fi
6489     ;;
6490 esac
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 if test -n "$ac_tool_prefix"; then
6501   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_OBJDUMP+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   if test -n "$OBJDUMP"; then
6509   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516     for ac_exec_ext in '' $ac_executable_extensions; do
6517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523   done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 OBJDUMP=$ac_cv_prog_OBJDUMP
6529 if test -n "$OBJDUMP"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6531 $as_echo "$OBJDUMP" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_OBJDUMP"; then
6540   ac_ct_OBJDUMP=$OBJDUMP
6541   # Extract the first word of "objdump", so it can be a program name with args.
6542 set dummy objdump; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$ac_ct_OBJDUMP"; then
6549   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6569 if test -n "$ac_ct_OBJDUMP"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6571 $as_echo "$ac_ct_OBJDUMP" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577   if test "x$ac_ct_OBJDUMP" = x; then
6578     OBJDUMP="false"
6579   else
6580     case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586     OBJDUMP=$ac_ct_OBJDUMP
6587   fi
6588 else
6589   OBJDUMP="$ac_cv_prog_OBJDUMP"
6590 fi
6591
6592 test -z "$OBJDUMP" && OBJDUMP=objdump
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6604 if ${lt_cv_deplibs_check_method+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   lt_cv_file_magic_cmd='$MAGIC_CMD'
6608 lt_cv_file_magic_test_file=
6609 lt_cv_deplibs_check_method='unknown'
6610 # Need to set the preceding variable on all platforms that support
6611 # interlibrary dependencies.
6612 # 'none' -- dependencies not supported.
6613 # `unknown' -- same as none, but documents that we really don't know.
6614 # 'pass_all' -- all dependencies passed with no checks.
6615 # 'test_compile' -- check by making test program.
6616 # 'file_magic [[regex]]' -- check by looking for files in library path
6617 # which responds to the $file_magic_cmd with a given extended regex.
6618 # If you have `file' or equivalent on your system and you're not sure
6619 # whether `pass_all' will *always* work, you probably want this one.
6620
6621 case $host_os in
6622 aix[4-9]*)
6623   lt_cv_deplibs_check_method=pass_all
6624   ;;
6625
6626 beos*)
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629
6630 bsdi[45]*)
6631   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6632   lt_cv_file_magic_cmd='/usr/bin/file -L'
6633   lt_cv_file_magic_test_file=/shlib/libc.so
6634   ;;
6635
6636 cygwin*)
6637   # func_win32_libid is a shell function defined in ltmain.sh
6638   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639   lt_cv_file_magic_cmd='func_win32_libid'
6640   ;;
6641
6642 mingw* | pw32*)
6643   # Base MSYS/MinGW do not provide the 'file' command needed by
6644   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6645   # unless we find 'file', for example because we are cross-compiling.
6646   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6647   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6648     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649     lt_cv_file_magic_cmd='func_win32_libid'
6650   else
6651     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6652     lt_cv_file_magic_cmd='$OBJDUMP -f'
6653   fi
6654   ;;
6655
6656 cegcc*)
6657   # use the weaker test based on 'objdump'. See mingw*.
6658   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6659   lt_cv_file_magic_cmd='$OBJDUMP -f'
6660   ;;
6661
6662 darwin* | rhapsody*)
6663   lt_cv_deplibs_check_method=pass_all
6664   ;;
6665
6666 freebsd* | dragonfly*)
6667   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6668     case $host_cpu in
6669     i*86 )
6670       # Not sure whether the presence of OpenBSD here was a mistake.
6671       # Let's accept both of them until this is cleared up.
6672       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6673       lt_cv_file_magic_cmd=/usr/bin/file
6674       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6675       ;;
6676     esac
6677   else
6678     lt_cv_deplibs_check_method=pass_all
6679   fi
6680   ;;
6681
6682 gnu*)
6683   lt_cv_deplibs_check_method=pass_all
6684   ;;
6685
6686 haiku*)
6687   lt_cv_deplibs_check_method=pass_all
6688   ;;
6689
6690 hpux10.20* | hpux11*)
6691   lt_cv_file_magic_cmd=/usr/bin/file
6692   case $host_cpu in
6693   ia64*)
6694     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6695     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6696     ;;
6697   hppa*64*)
6698     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]'
6699     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6700     ;;
6701   *)
6702     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6703     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6704     ;;
6705   esac
6706   ;;
6707
6708 interix[3-9]*)
6709   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6710   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6711   ;;
6712
6713 irix5* | irix6* | nonstopux*)
6714   case $LD in
6715   *-32|*"-32 ") libmagic=32-bit;;
6716   *-n32|*"-n32 ") libmagic=N32;;
6717   *-64|*"-64 ") libmagic=64-bit;;
6718   *) libmagic=never-match;;
6719   esac
6720   lt_cv_deplibs_check_method=pass_all
6721   ;;
6722
6723 # This must be Linux ELF.
6724 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6725   lt_cv_deplibs_check_method=pass_all
6726   ;;
6727
6728 netbsd*)
6729   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6730     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6731   else
6732     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6733   fi
6734   ;;
6735
6736 newos6*)
6737   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6738   lt_cv_file_magic_cmd=/usr/bin/file
6739   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6740   ;;
6741
6742 *nto* | *qnx*)
6743   lt_cv_deplibs_check_method=pass_all
6744   ;;
6745
6746 openbsd*)
6747   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6748     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6749   else
6750     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751   fi
6752   ;;
6753
6754 osf3* | osf4* | osf5*)
6755   lt_cv_deplibs_check_method=pass_all
6756   ;;
6757
6758 rdos*)
6759   lt_cv_deplibs_check_method=pass_all
6760   ;;
6761
6762 solaris*)
6763   lt_cv_deplibs_check_method=pass_all
6764   ;;
6765
6766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6767   lt_cv_deplibs_check_method=pass_all
6768   ;;
6769
6770 sysv4 | sysv4.3*)
6771   case $host_vendor in
6772   motorola)
6773     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]'
6774     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6775     ;;
6776   ncr)
6777     lt_cv_deplibs_check_method=pass_all
6778     ;;
6779   sequent)
6780     lt_cv_file_magic_cmd='/bin/file'
6781     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6782     ;;
6783   sni)
6784     lt_cv_file_magic_cmd='/bin/file'
6785     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6786     lt_cv_file_magic_test_file=/lib/libc.so
6787     ;;
6788   siemens)
6789     lt_cv_deplibs_check_method=pass_all
6790     ;;
6791   pc)
6792     lt_cv_deplibs_check_method=pass_all
6793     ;;
6794   esac
6795   ;;
6796
6797 tpf*)
6798   lt_cv_deplibs_check_method=pass_all
6799   ;;
6800 esac
6801
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6804 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6805 file_magic_cmd=$lt_cv_file_magic_cmd
6806 deplibs_check_method=$lt_cv_deplibs_check_method
6807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}ar; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_AR+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$AR"; then
6829   ac_cv_prog_AR="$AR" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838     ac_cv_prog_AR="${ac_tool_prefix}ar"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 AR=$ac_cv_prog_AR
6849 if test -n "$AR"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6851 $as_echo "$AR" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_AR"; then
6860   ac_ct_AR=$AR
6861   # Extract the first word of "ar", so it can be a program name with args.
6862 set dummy ar; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_AR"; then
6869   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878     ac_cv_prog_ac_ct_AR="ar"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6889 if test -n "$ac_ct_AR"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6891 $as_echo "$ac_ct_AR" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_AR" = x; then
6898     AR="false"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     AR=$ac_ct_AR
6907   fi
6908 else
6909   AR="$ac_cv_prog_AR"
6910 fi
6911
6912 test -z "$AR" && AR=ar
6913 test -z "$AR_FLAGS" && AR_FLAGS=cru
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925 if test -n "$ac_tool_prefix"; then
6926   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6927 set dummy ${ac_tool_prefix}strip; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_STRIP+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$STRIP"; then
6934   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 STRIP=$ac_cv_prog_STRIP
6954 if test -n "$STRIP"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6956 $as_echo "$STRIP" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962
6963 fi
6964 if test -z "$ac_cv_prog_STRIP"; then
6965   ac_ct_STRIP=$STRIP
6966   # Extract the first word of "strip", so it can be a program name with args.
6967 set dummy strip; ac_word=$2
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6969 $as_echo_n "checking for $ac_word... " >&6; }
6970 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   if test -n "$ac_ct_STRIP"; then
6974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6975 else
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_prog_ac_ct_STRIP="strip"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990
6991 fi
6992 fi
6993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6994 if test -n "$ac_ct_STRIP"; then
6995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6996 $as_echo "$ac_ct_STRIP" >&6; }
6997 else
6998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6999 $as_echo "no" >&6; }
7000 fi
7001
7002   if test "x$ac_ct_STRIP" = x; then
7003     STRIP=":"
7004   else
7005     case $cross_compiling:$ac_tool_warned in
7006 yes:)
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7009 ac_tool_warned=yes ;;
7010 esac
7011     STRIP=$ac_ct_STRIP
7012   fi
7013 else
7014   STRIP="$ac_cv_prog_STRIP"
7015 fi
7016
7017 test -z "$STRIP" && STRIP=:
7018
7019
7020
7021
7022
7023
7024 if test -n "$ac_tool_prefix"; then
7025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_prog_RANLIB+:} false; then :
7030   $as_echo_n "(cached) " >&6
7031 else
7032   if test -n "$RANLIB"; then
7033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7034 else
7035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 for as_dir in $PATH
7037 do
7038   IFS=$as_save_IFS
7039   test -z "$as_dir" && as_dir=.
7040     for ac_exec_ext in '' $ac_executable_extensions; do
7041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7044     break 2
7045   fi
7046 done
7047   done
7048 IFS=$as_save_IFS
7049
7050 fi
7051 fi
7052 RANLIB=$ac_cv_prog_RANLIB
7053 if test -n "$RANLIB"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7055 $as_echo "$RANLIB" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060
7061
7062 fi
7063 if test -z "$ac_cv_prog_RANLIB"; then
7064   ac_ct_RANLIB=$RANLIB
7065   # Extract the first word of "ranlib", so it can be a program name with args.
7066 set dummy ranlib; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   if test -n "$ac_ct_RANLIB"; then
7073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7074 else
7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 for as_dir in $PATH
7077 do
7078   IFS=$as_save_IFS
7079   test -z "$as_dir" && as_dir=.
7080     for ac_exec_ext in '' $ac_executable_extensions; do
7081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7082     ac_cv_prog_ac_ct_RANLIB="ranlib"
7083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7084     break 2
7085   fi
7086 done
7087   done
7088 IFS=$as_save_IFS
7089
7090 fi
7091 fi
7092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7093 if test -n "$ac_ct_RANLIB"; then
7094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7095 $as_echo "$ac_ct_RANLIB" >&6; }
7096 else
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7099 fi
7100
7101   if test "x$ac_ct_RANLIB" = x; then
7102     RANLIB=":"
7103   else
7104     case $cross_compiling:$ac_tool_warned in
7105 yes:)
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110     RANLIB=$ac_ct_RANLIB
7111   fi
7112 else
7113   RANLIB="$ac_cv_prog_RANLIB"
7114 fi
7115
7116 test -z "$RANLIB" && RANLIB=:
7117
7118
7119
7120
7121
7122
7123 # Determine commands to create old-style static archives.
7124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7125 old_postinstall_cmds='chmod 644 $oldlib'
7126 old_postuninstall_cmds=
7127
7128 if test -n "$RANLIB"; then
7129   case $host_os in
7130   openbsd*)
7131     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7132     ;;
7133   *)
7134     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7135     ;;
7136   esac
7137   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7138 fi
7139
7140 case $host_os in
7141   darwin*)
7142     lock_old_archive_extraction=yes ;;
7143   *)
7144     lock_old_archive_extraction=no ;;
7145 esac
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185 # If no C compiler was specified, use CC.
7186 LTCC=${LTCC-"$CC"}
7187
7188 # If no C compiler flags were specified, use CFLAGS.
7189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7190
7191 # Allow CC to be a program name with arguments.
7192 compiler=$CC
7193
7194
7195 # Check for command to grab the raw symbol name followed by C symbol from nm.
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7198 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201
7202 # These are sane defaults that work on at least a few old systems.
7203 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7204
7205 # Character class describing NM global symbol codes.
7206 symcode='[BCDEGRST]'
7207
7208 # Regexp to match symbols that can be accessed directly from C.
7209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7210
7211 # Define system-specific variables.
7212 case $host_os in
7213 aix*)
7214   symcode='[BCDT]'
7215   ;;
7216 cygwin* | mingw* | pw32* | cegcc*)
7217   symcode='[ABCDGISTW]'
7218   ;;
7219 hpux*)
7220   if test "$host_cpu" = ia64; then
7221     symcode='[ABCDEGRST]'
7222   fi
7223   ;;
7224 irix* | nonstopux*)
7225   symcode='[BCDEGRST]'
7226   ;;
7227 osf*)
7228   symcode='[BCDEGQRST]'
7229   ;;
7230 solaris*)
7231   symcode='[BDRT]'
7232   ;;
7233 sco3.2v5*)
7234   symcode='[DT]'
7235   ;;
7236 sysv4.2uw2*)
7237   symcode='[DT]'
7238   ;;
7239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7240   symcode='[ABDT]'
7241   ;;
7242 sysv4)
7243   symcode='[DFNSTU]'
7244   ;;
7245 esac
7246
7247 # If we're using GNU nm, then use its standard symbol codes.
7248 case `$NM -V 2>&1` in
7249 *GNU* | *'with BFD'*)
7250   symcode='[ABCDGIRSTW]' ;;
7251 esac
7252
7253 # Transform an extracted symbol line into a proper C declaration.
7254 # Some systems (esp. on ia64) link data and code symbols differently,
7255 # so use this general approach.
7256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7257
7258 # Transform an extracted symbol line into symbol name and symbol address
7259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7260 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7261
7262 # Handle CRLF in mingw tool chain
7263 opt_cr=
7264 case $build_os in
7265 mingw*)
7266   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7267   ;;
7268 esac
7269
7270 # Try without a prefix underscore, then with it.
7271 for ac_symprfx in "" "_"; do
7272
7273   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7274   symxfrm="\\1 $ac_symprfx\\2 \\2"
7275
7276   # Write the raw and C identifiers.
7277   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7278     # Fake it for dumpbin and say T for any non-static function
7279     # and D for any global variable.
7280     # Also find C++ and __fastcall symbols from MSVC++,
7281     # which start with @ or ?.
7282     lt_cv_sys_global_symbol_pipe="$AWK '"\
7283 "     {last_section=section; section=\$ 3};"\
7284 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7285 "     \$ 0!~/External *\|/{next};"\
7286 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7287 "     {if(hide[section]) next};"\
7288 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7289 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7290 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7291 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7292 "     ' prfx=^$ac_symprfx"
7293   else
7294     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7295   fi
7296
7297   # Check to see that the pipe works correctly.
7298   pipe_works=no
7299
7300   rm -f conftest*
7301   cat > conftest.$ac_ext <<_LT_EOF
7302 #ifdef __cplusplus
7303 extern "C" {
7304 #endif
7305 char nm_test_var;
7306 void nm_test_func(void);
7307 void nm_test_func(void){}
7308 #ifdef __cplusplus
7309 }
7310 #endif
7311 int main(){nm_test_var='a';nm_test_func();return(0);}
7312 _LT_EOF
7313
7314   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315   (eval $ac_compile) 2>&5
7316   ac_status=$?
7317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318   test $ac_status = 0; }; then
7319     # Now try to grab the symbols.
7320     nlist=conftest.nm
7321     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7322   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7323   ac_status=$?
7324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7325   test $ac_status = 0; } && test -s "$nlist"; then
7326       # Try sorting and uniquifying the output.
7327       if sort "$nlist" | uniq > "$nlist"T; then
7328         mv -f "$nlist"T "$nlist"
7329       else
7330         rm -f "$nlist"T
7331       fi
7332
7333       # Make sure that we snagged all the symbols we need.
7334       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7335         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7336           cat <<_LT_EOF > conftest.$ac_ext
7337 #ifdef __cplusplus
7338 extern "C" {
7339 #endif
7340
7341 _LT_EOF
7342           # Now generate the symbol file.
7343           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7344
7345           cat <<_LT_EOF >> conftest.$ac_ext
7346
7347 /* The mapping between symbol names and symbols.  */
7348 const struct {
7349   const char *name;
7350   void       *address;
7351 }
7352 lt__PROGRAM__LTX_preloaded_symbols[] =
7353 {
7354   { "@PROGRAM@", (void *) 0 },
7355 _LT_EOF
7356           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7357           cat <<\_LT_EOF >> conftest.$ac_ext
7358   {0, (void *) 0}
7359 };
7360
7361 /* This works around a problem in FreeBSD linker */
7362 #ifdef FREEBSD_WORKAROUND
7363 static const void *lt_preloaded_setup() {
7364   return lt__PROGRAM__LTX_preloaded_symbols;
7365 }
7366 #endif
7367
7368 #ifdef __cplusplus
7369 }
7370 #endif
7371 _LT_EOF
7372           # Now try linking the two files.
7373           mv conftest.$ac_objext conftstm.$ac_objext
7374           lt_save_LIBS="$LIBS"
7375           lt_save_CFLAGS="$CFLAGS"
7376           LIBS="conftstm.$ac_objext"
7377           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7378           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7379   (eval $ac_link) 2>&5
7380   ac_status=$?
7381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7383             pipe_works=yes
7384           fi
7385           LIBS="$lt_save_LIBS"
7386           CFLAGS="$lt_save_CFLAGS"
7387         else
7388           echo "cannot find nm_test_func in $nlist" >&5
7389         fi
7390       else
7391         echo "cannot find nm_test_var in $nlist" >&5
7392       fi
7393     else
7394       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7395     fi
7396   else
7397     echo "$progname: failed program was:" >&5
7398     cat conftest.$ac_ext >&5
7399   fi
7400   rm -rf conftest* conftst*
7401
7402   # Do not use the global_symbol_pipe unless it works.
7403   if test "$pipe_works" = yes; then
7404     break
7405   else
7406     lt_cv_sys_global_symbol_pipe=
7407   fi
7408 done
7409
7410 fi
7411
7412 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7413   lt_cv_sys_global_symbol_to_cdecl=
7414 fi
7415 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7417 $as_echo "failed" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7420 $as_echo "ok" >&6; }
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 # Check whether --enable-libtool-lock was given.
7445 if test "${enable_libtool_lock+set}" = set; then :
7446   enableval=$enable_libtool_lock;
7447 fi
7448
7449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7450
7451 # Some flags need to be propagated to the compiler or linker for good
7452 # libtool support.
7453 case $host in
7454 ia64-*-hpux*)
7455   # Find out which ABI we are using.
7456   echo 'int i;' > conftest.$ac_ext
7457   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7458   (eval $ac_compile) 2>&5
7459   ac_status=$?
7460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7461   test $ac_status = 0; }; then
7462     case `/usr/bin/file conftest.$ac_objext` in
7463       *ELF-32*)
7464         HPUX_IA64_MODE="32"
7465         ;;
7466       *ELF-64*)
7467         HPUX_IA64_MODE="64"
7468         ;;
7469     esac
7470   fi
7471   rm -rf conftest*
7472   ;;
7473 *-*-irix6*)
7474   # Find out which ABI we are using.
7475   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7477   (eval $ac_compile) 2>&5
7478   ac_status=$?
7479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7480   test $ac_status = 0; }; then
7481     if test "$lt_cv_prog_gnu_ld" = yes; then
7482       case `/usr/bin/file conftest.$ac_objext` in
7483         *32-bit*)
7484           LD="${LD-ld} -melf32bsmip"
7485           ;;
7486         *N32*)
7487           LD="${LD-ld} -melf32bmipn32"
7488           ;;
7489         *64-bit*)
7490           LD="${LD-ld} -melf64bmip"
7491         ;;
7492       esac
7493     else
7494       case `/usr/bin/file conftest.$ac_objext` in
7495         *32-bit*)
7496           LD="${LD-ld} -32"
7497           ;;
7498         *N32*)
7499           LD="${LD-ld} -n32"
7500           ;;
7501         *64-bit*)
7502           LD="${LD-ld} -64"
7503           ;;
7504       esac
7505     fi
7506   fi
7507   rm -rf conftest*
7508   ;;
7509
7510 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7511 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7512   # Find out which ABI we are using.
7513   echo 'int i;' > conftest.$ac_ext
7514   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7515   (eval $ac_compile) 2>&5
7516   ac_status=$?
7517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518   test $ac_status = 0; }; then
7519     case `/usr/bin/file conftest.o` in
7520       *32-bit*)
7521         case $host in
7522           x86_64-*kfreebsd*-gnu)
7523             LD="${LD-ld} -m elf_i386_fbsd"
7524             ;;
7525           x86_64-*linux*)
7526             case `/usr/bin/file conftest.o` in
7527               *x86-64*)
7528                 LD="${LD-ld} -m elf32_x86_64"
7529                 ;;
7530               *)
7531                 LD="${LD-ld} -m elf_i386"
7532                 ;;
7533             esac
7534             ;;
7535           powerpc64le-*linux*)
7536             LD="${LD-ld} -m elf32lppclinux"
7537             ;;
7538           powerpc64-*linux*)
7539             LD="${LD-ld} -m elf32ppclinux"
7540             ;;
7541           s390x-*linux*)
7542             LD="${LD-ld} -m elf_s390"
7543             ;;
7544           sparc64-*linux*)
7545             LD="${LD-ld} -m elf32_sparc"
7546             ;;
7547         esac
7548         ;;
7549       *64-bit*)
7550         case $host in
7551           x86_64-*kfreebsd*-gnu)
7552             LD="${LD-ld} -m elf_x86_64_fbsd"
7553             ;;
7554           x86_64-*linux*)
7555             LD="${LD-ld} -m elf_x86_64"
7556             ;;
7557           powerpcle-*linux*)
7558             LD="${LD-ld} -m elf64lppc"
7559             ;;
7560           powerpc-*linux*)
7561             LD="${LD-ld} -m elf64ppc"
7562             ;;
7563           s390*-*linux*|s390*-*tpf*)
7564             LD="${LD-ld} -m elf64_s390"
7565             ;;
7566           sparc*-*linux*)
7567             LD="${LD-ld} -m elf64_sparc"
7568             ;;
7569         esac
7570         ;;
7571     esac
7572   fi
7573   rm -rf conftest*
7574   ;;
7575
7576 *-*-sco3.2v5*)
7577   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7578   SAVE_CFLAGS="$CFLAGS"
7579   CFLAGS="$CFLAGS -belf"
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7581 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7582 if ${lt_cv_cc_needs_belf+:} false; then :
7583   $as_echo_n "(cached) " >&6
7584 else
7585   ac_ext=c
7586 ac_cpp='$CPP $CPPFLAGS'
7587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590
7591      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h.  */
7593
7594 int
7595 main ()
7596 {
7597
7598   ;
7599   return 0;
7600 }
7601 _ACEOF
7602 if ac_fn_c_try_link "$LINENO"; then :
7603   lt_cv_cc_needs_belf=yes
7604 else
7605   lt_cv_cc_needs_belf=no
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext \
7608     conftest$ac_exeext conftest.$ac_ext
7609      ac_ext=c
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615 fi
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7617 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7618   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7619     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7620     CFLAGS="$SAVE_CFLAGS"
7621   fi
7622   ;;
7623 sparc*-*solaris*)
7624   # Find out which ABI we are using.
7625   echo 'int i;' > conftest.$ac_ext
7626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7627   (eval $ac_compile) 2>&5
7628   ac_status=$?
7629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630   test $ac_status = 0; }; then
7631     case `/usr/bin/file conftest.o` in
7632     *64-bit*)
7633       case $lt_cv_prog_gnu_ld in
7634       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7635       *)
7636         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7637           LD="${LD-ld} -64"
7638         fi
7639         ;;
7640       esac
7641       ;;
7642     esac
7643   fi
7644   rm -rf conftest*
7645   ;;
7646 esac
7647
7648 need_locks="$enable_libtool_lock"
7649
7650
7651   case $host_os in
7652     rhapsody* | darwin*)
7653     if test -n "$ac_tool_prefix"; then
7654   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7655 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657 $as_echo_n "checking for $ac_word... " >&6; }
7658 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7659   $as_echo_n "(cached) " >&6
7660 else
7661   if test -n "$DSYMUTIL"; then
7662   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667   IFS=$as_save_IFS
7668   test -z "$as_dir" && as_dir=.
7669     for ac_exec_ext in '' $ac_executable_extensions; do
7670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7671     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7673     break 2
7674   fi
7675 done
7676   done
7677 IFS=$as_save_IFS
7678
7679 fi
7680 fi
7681 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7682 if test -n "$DSYMUTIL"; then
7683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7684 $as_echo "$DSYMUTIL" >&6; }
7685 else
7686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7688 fi
7689
7690
7691 fi
7692 if test -z "$ac_cv_prog_DSYMUTIL"; then
7693   ac_ct_DSYMUTIL=$DSYMUTIL
7694   # Extract the first word of "dsymutil", so it can be a program name with args.
7695 set dummy dsymutil; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -n "$ac_ct_DSYMUTIL"; then
7702   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7722 if test -n "$ac_ct_DSYMUTIL"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7724 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730   if test "x$ac_ct_DSYMUTIL" = x; then
7731     DSYMUTIL=":"
7732   else
7733     case $cross_compiling:$ac_tool_warned in
7734 yes:)
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7737 ac_tool_warned=yes ;;
7738 esac
7739     DSYMUTIL=$ac_ct_DSYMUTIL
7740   fi
7741 else
7742   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7743 fi
7744
7745     if test -n "$ac_tool_prefix"; then
7746   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7747 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if ${ac_cv_prog_NMEDIT+:} false; then :
7751   $as_echo_n "(cached) " >&6
7752 else
7753   if test -n "$NMEDIT"; then
7754   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759   IFS=$as_save_IFS
7760   test -z "$as_dir" && as_dir=.
7761     for ac_exec_ext in '' $ac_executable_extensions; do
7762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7763     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765     break 2
7766   fi
7767 done
7768   done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 NMEDIT=$ac_cv_prog_NMEDIT
7774 if test -n "$NMEDIT"; then
7775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7776 $as_echo "$NMEDIT" >&6; }
7777 else
7778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782
7783 fi
7784 if test -z "$ac_cv_prog_NMEDIT"; then
7785   ac_ct_NMEDIT=$NMEDIT
7786   # Extract the first word of "nmedit", so it can be a program name with args.
7787 set dummy nmedit; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793   if test -n "$ac_ct_NMEDIT"; then
7794   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7795 else
7796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7797 for as_dir in $PATH
7798 do
7799   IFS=$as_save_IFS
7800   test -z "$as_dir" && as_dir=.
7801     for ac_exec_ext in '' $ac_executable_extensions; do
7802   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7803     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7804     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7805     break 2
7806   fi
7807 done
7808   done
7809 IFS=$as_save_IFS
7810
7811 fi
7812 fi
7813 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7814 if test -n "$ac_ct_NMEDIT"; then
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7816 $as_echo "$ac_ct_NMEDIT" >&6; }
7817 else
7818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 fi
7821
7822   if test "x$ac_ct_NMEDIT" = x; then
7823     NMEDIT=":"
7824   else
7825     case $cross_compiling:$ac_tool_warned in
7826 yes:)
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7829 ac_tool_warned=yes ;;
7830 esac
7831     NMEDIT=$ac_ct_NMEDIT
7832   fi
7833 else
7834   NMEDIT="$ac_cv_prog_NMEDIT"
7835 fi
7836
7837     if test -n "$ac_tool_prefix"; then
7838   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if ${ac_cv_prog_LIPO+:} false; then :
7843   $as_echo_n "(cached) " >&6
7844 else
7845   if test -n "$LIPO"; then
7846   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853     for ac_exec_ext in '' $ac_executable_extensions; do
7854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860   done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 LIPO=$ac_cv_prog_LIPO
7866 if test -n "$LIPO"; then
7867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7868 $as_echo "$LIPO" >&6; }
7869 else
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874
7875 fi
7876 if test -z "$ac_cv_prog_LIPO"; then
7877   ac_ct_LIPO=$LIPO
7878   # Extract the first word of "lipo", so it can be a program name with args.
7879 set dummy lipo; ac_word=$2
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 $as_echo_n "checking for $ac_word... " >&6; }
7882 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   if test -n "$ac_ct_LIPO"; then
7886   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7887 else
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7890 do
7891   IFS=$as_save_IFS
7892   test -z "$as_dir" && as_dir=.
7893     for ac_exec_ext in '' $ac_executable_extensions; do
7894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895     ac_cv_prog_ac_ct_LIPO="lipo"
7896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897     break 2
7898   fi
7899 done
7900   done
7901 IFS=$as_save_IFS
7902
7903 fi
7904 fi
7905 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7906 if test -n "$ac_ct_LIPO"; then
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7908 $as_echo "$ac_ct_LIPO" >&6; }
7909 else
7910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7912 fi
7913
7914   if test "x$ac_ct_LIPO" = x; then
7915     LIPO=":"
7916   else
7917     case $cross_compiling:$ac_tool_warned in
7918 yes:)
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7921 ac_tool_warned=yes ;;
7922 esac
7923     LIPO=$ac_ct_LIPO
7924   fi
7925 else
7926   LIPO="$ac_cv_prog_LIPO"
7927 fi
7928
7929     if test -n "$ac_tool_prefix"; then
7930   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}otool; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_OTOOL+:} false; then :
7935   $as_echo_n "(cached) " >&6
7936 else
7937   if test -n "$OTOOL"; then
7938   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943   IFS=$as_save_IFS
7944   test -z "$as_dir" && as_dir=.
7945     for ac_exec_ext in '' $ac_executable_extensions; do
7946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949     break 2
7950   fi
7951 done
7952   done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 OTOOL=$ac_cv_prog_OTOOL
7958 if test -n "$OTOOL"; then
7959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7960 $as_echo "$OTOOL" >&6; }
7961 else
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966
7967 fi
7968 if test -z "$ac_cv_prog_OTOOL"; then
7969   ac_ct_OTOOL=$OTOOL
7970   # Extract the first word of "otool", so it can be a program name with args.
7971 set dummy otool; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7975   $as_echo_n "(cached) " >&6
7976 else
7977   if test -n "$ac_ct_OTOOL"; then
7978   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987     ac_cv_prog_ac_ct_OTOOL="otool"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994
7995 fi
7996 fi
7997 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7998 if test -n "$ac_ct_OTOOL"; then
7999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8000 $as_echo "$ac_ct_OTOOL" >&6; }
8001 else
8002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8004 fi
8005
8006   if test "x$ac_ct_OTOOL" = x; then
8007     OTOOL=":"
8008   else
8009     case $cross_compiling:$ac_tool_warned in
8010 yes:)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8014 esac
8015     OTOOL=$ac_ct_OTOOL
8016   fi
8017 else
8018   OTOOL="$ac_cv_prog_OTOOL"
8019 fi
8020
8021     if test -n "$ac_tool_prefix"; then
8022   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8023 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if ${ac_cv_prog_OTOOL64+:} false; then :
8027   $as_echo_n "(cached) " >&6
8028 else
8029   if test -n "$OTOOL64"; then
8030   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035   IFS=$as_save_IFS
8036   test -z "$as_dir" && as_dir=.
8037     for ac_exec_ext in '' $ac_executable_extensions; do
8038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8039     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041     break 2
8042   fi
8043 done
8044   done
8045 IFS=$as_save_IFS
8046
8047 fi
8048 fi
8049 OTOOL64=$ac_cv_prog_OTOOL64
8050 if test -n "$OTOOL64"; then
8051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8052 $as_echo "$OTOOL64" >&6; }
8053 else
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057
8058
8059 fi
8060 if test -z "$ac_cv_prog_OTOOL64"; then
8061   ac_ct_OTOOL64=$OTOOL64
8062   # Extract the first word of "otool64", so it can be a program name with args.
8063 set dummy otool64; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8067   $as_echo_n "(cached) " >&6
8068 else
8069   if test -n "$ac_ct_OTOOL64"; then
8070   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8074 do
8075   IFS=$as_save_IFS
8076   test -z "$as_dir" && as_dir=.
8077     for ac_exec_ext in '' $ac_executable_extensions; do
8078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8079     ac_cv_prog_ac_ct_OTOOL64="otool64"
8080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081     break 2
8082   fi
8083 done
8084   done
8085 IFS=$as_save_IFS
8086
8087 fi
8088 fi
8089 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8090 if test -n "$ac_ct_OTOOL64"; then
8091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8092 $as_echo "$ac_ct_OTOOL64" >&6; }
8093 else
8094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8096 fi
8097
8098   if test "x$ac_ct_OTOOL64" = x; then
8099     OTOOL64=":"
8100   else
8101     case $cross_compiling:$ac_tool_warned in
8102 yes:)
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105 ac_tool_warned=yes ;;
8106 esac
8107     OTOOL64=$ac_ct_OTOOL64
8108   fi
8109 else
8110   OTOOL64="$ac_cv_prog_OTOOL64"
8111 fi
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8140 $as_echo_n "checking for -single_module linker flag... " >&6; }
8141 if ${lt_cv_apple_cc_single_mod+:} false; then :
8142   $as_echo_n "(cached) " >&6
8143 else
8144   lt_cv_apple_cc_single_mod=no
8145       if test -z "${LT_MULTI_MODULE}"; then
8146         # By default we will add the -single_module flag. You can override
8147         # by either setting the environment variable LT_MULTI_MODULE
8148         # non-empty at configure time, or by adding -multi_module to the
8149         # link flags.
8150         rm -rf libconftest.dylib*
8151         echo "int foo(void){return 1;}" > conftest.c
8152         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8153 -dynamiclib -Wl,-single_module conftest.c" >&5
8154         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8155           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8156         _lt_result=$?
8157         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8158           lt_cv_apple_cc_single_mod=yes
8159         else
8160           cat conftest.err >&5
8161         fi
8162         rm -rf libconftest.dylib*
8163         rm -f conftest.*
8164       fi
8165 fi
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8167 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8169 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8170 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   lt_cv_ld_exported_symbols_list=no
8174       save_LDFLAGS=$LDFLAGS
8175       echo "_main" > conftest.sym
8176       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8177       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h.  */
8179
8180 int
8181 main ()
8182 {
8183
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189   lt_cv_ld_exported_symbols_list=yes
8190 else
8191   lt_cv_ld_exported_symbols_list=no
8192 fi
8193 rm -f core conftest.err conftest.$ac_objext \
8194     conftest$ac_exeext conftest.$ac_ext
8195         LDFLAGS="$save_LDFLAGS"
8196
8197 fi
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8199 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8201 $as_echo_n "checking for -force_load linker flag... " >&6; }
8202 if ${lt_cv_ld_force_load+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   lt_cv_ld_force_load=no
8206       cat > conftest.c << _LT_EOF
8207 int forced_loaded() { return 2;}
8208 _LT_EOF
8209       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8210       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8211       echo "$AR cru libconftest.a conftest.o" >&5
8212       $AR cru libconftest.a conftest.o 2>&5
8213       cat > conftest.c << _LT_EOF
8214 int main() { return 0;}
8215 _LT_EOF
8216       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8217       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8218       _lt_result=$?
8219       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8220         lt_cv_ld_force_load=yes
8221       else
8222         cat conftest.err >&5
8223       fi
8224         rm -f conftest.err libconftest.a conftest conftest.c
8225         rm -rf conftest.dSYM
8226
8227 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8229 $as_echo "$lt_cv_ld_force_load" >&6; }
8230     # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8231     # build without first building modern cctools / linker.
8232     case $host_cpu-$host_os in
8233     *-rhapsody* | *-darwin1.[012])
8234       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8235     *-darwin1.*)
8236       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8237     *-darwin*)
8238       # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8239       # deployment target is forced to an earlier version.
8240       case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8241         UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8242           ;;
8243         10.[012][,.]*)
8244           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8245           ;;
8246         *)
8247           ;;
8248      esac
8249     ;;
8250   esac
8251     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8252       _lt_dar_single_mod='$single_module'
8253     fi
8254     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8255       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8256     else
8257       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8258     fi
8259     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8260       _lt_dsymutil='~$DSYMUTIL $lib || :'
8261     else
8262       _lt_dsymutil=
8263     fi
8264     ;;
8265   esac
8266
8267 for ac_header in dlfcn.h
8268 do :
8269   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8270 "
8271 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8272   cat >>confdefs.h <<_ACEOF
8273 #define HAVE_DLFCN_H 1
8274 _ACEOF
8275
8276 fi
8277
8278 done
8279
8280
8281
8282
8283
8284 # Set options
8285 enable_dlopen=yes
8286
8287
8288
8289
8290   enable_win32_dll=no
8291
8292
8293             # Check whether --enable-shared was given.
8294 if test "${enable_shared+set}" = set; then :
8295   enableval=$enable_shared; p=${PACKAGE-default}
8296     case $enableval in
8297     yes) enable_shared=yes ;;
8298     no) enable_shared=no ;;
8299     *)
8300       enable_shared=no
8301       # Look at the argument we got.  We use all the common list separators.
8302       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8303       for pkg in $enableval; do
8304         IFS="$lt_save_ifs"
8305         if test "X$pkg" = "X$p"; then
8306           enable_shared=yes
8307         fi
8308       done
8309       IFS="$lt_save_ifs"
8310       ;;
8311     esac
8312 else
8313   enable_shared=yes
8314 fi
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324   # Check whether --enable-static was given.
8325 if test "${enable_static+set}" = set; then :
8326   enableval=$enable_static; p=${PACKAGE-default}
8327     case $enableval in
8328     yes) enable_static=yes ;;
8329     no) enable_static=no ;;
8330     *)
8331      enable_static=no
8332       # Look at the argument we got.  We use all the common list separators.
8333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8334       for pkg in $enableval; do
8335         IFS="$lt_save_ifs"
8336         if test "X$pkg" = "X$p"; then
8337           enable_static=yes
8338         fi
8339       done
8340       IFS="$lt_save_ifs"
8341       ;;
8342     esac
8343 else
8344   enable_static=yes
8345 fi
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 # Check whether --with-pic was given.
8357 if test "${with_pic+set}" = set; then :
8358   withval=$with_pic; pic_mode="$withval"
8359 else
8360   pic_mode=default
8361 fi
8362
8363
8364 test -z "$pic_mode" && pic_mode=default
8365
8366
8367
8368
8369
8370
8371
8372   # Check whether --enable-fast-install was given.
8373 if test "${enable_fast_install+set}" = set; then :
8374   enableval=$enable_fast_install; p=${PACKAGE-default}
8375     case $enableval in
8376     yes) enable_fast_install=yes ;;
8377     no) enable_fast_install=no ;;
8378     *)
8379       enable_fast_install=no
8380       # Look at the argument we got.  We use all the common list separators.
8381       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382       for pkg in $enableval; do
8383         IFS="$lt_save_ifs"
8384         if test "X$pkg" = "X$p"; then
8385           enable_fast_install=yes
8386         fi
8387       done
8388       IFS="$lt_save_ifs"
8389       ;;
8390     esac
8391 else
8392   enable_fast_install=yes
8393 fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 # This can be used to rebuild libtool when needed
8406 LIBTOOL_DEPS="$ltmain"
8407
8408 # Always use our own libtool.
8409 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 test -z "$LN_S" && LN_S="ln -s"
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451 if test -n "${ZSH_VERSION+set}" ; then
8452    setopt NO_GLOB_SUBST
8453 fi
8454
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8456 $as_echo_n "checking for objdir... " >&6; }
8457 if ${lt_cv_objdir+:} false; then :
8458   $as_echo_n "(cached) " >&6
8459 else
8460   rm -f .libs 2>/dev/null
8461 mkdir .libs 2>/dev/null
8462 if test -d .libs; then
8463   lt_cv_objdir=.libs
8464 else
8465   # MS-DOS does not allow filenames that begin with a dot.
8466   lt_cv_objdir=_libs
8467 fi
8468 rmdir .libs 2>/dev/null
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8471 $as_echo "$lt_cv_objdir" >&6; }
8472 objdir=$lt_cv_objdir
8473
8474
8475
8476
8477
8478 cat >>confdefs.h <<_ACEOF
8479 #define LT_OBJDIR "$lt_cv_objdir/"
8480 _ACEOF
8481
8482
8483
8484
8485 case $host_os in
8486 aix3*)
8487   # AIX sometimes has problems with the GCC collect2 program.  For some
8488   # reason, if we set the COLLECT_NAMES environment variable, the problems
8489   # vanish in a puff of smoke.
8490   if test "X${COLLECT_NAMES+set}" != Xset; then
8491     COLLECT_NAMES=
8492     export COLLECT_NAMES
8493   fi
8494   ;;
8495 esac
8496
8497 # Global variables:
8498 ofile=libtool
8499 can_build_shared=yes
8500
8501 # All known linkers require a `.a' archive for static linking (except MSVC,
8502 # which needs '.lib').
8503 libext=a
8504
8505 with_gnu_ld="$lt_cv_prog_gnu_ld"
8506
8507 old_CC="$CC"
8508 old_CFLAGS="$CFLAGS"
8509
8510 # Set sane defaults for various variables
8511 test -z "$CC" && CC=cc
8512 test -z "$LTCC" && LTCC=$CC
8513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8514 test -z "$LD" && LD=ld
8515 test -z "$ac_objext" && ac_objext=o
8516
8517 for cc_temp in $compiler""; do
8518   case $cc_temp in
8519     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8520     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8521     \-*) ;;
8522     *) break;;
8523   esac
8524 done
8525 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8526
8527
8528 # Only perform the check for file, if the check method requires it
8529 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8530 case $deplibs_check_method in
8531 file_magic*)
8532   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8534 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8535 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   case $MAGIC_CMD in
8539 [\\/*] |  ?:[\\/]*)
8540   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8541   ;;
8542 *)
8543   lt_save_MAGIC_CMD="$MAGIC_CMD"
8544   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8545   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8546   for ac_dir in $ac_dummy; do
8547     IFS="$lt_save_ifs"
8548     test -z "$ac_dir" && ac_dir=.
8549     if test -f $ac_dir/${ac_tool_prefix}file; then
8550       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8551       if test -n "$file_magic_test_file"; then
8552         case $deplibs_check_method in
8553         "file_magic "*)
8554           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8555           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8556           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8557             $EGREP "$file_magic_regex" > /dev/null; then
8558             :
8559           else
8560             cat <<_LT_EOF 1>&2
8561
8562 *** Warning: the command libtool uses to detect shared libraries,
8563 *** $file_magic_cmd, produces output that libtool cannot recognize.
8564 *** The result is that libtool may fail to recognize shared libraries
8565 *** as such.  This will affect the creation of libtool libraries that
8566 *** depend on shared libraries, but programs linked with such libtool
8567 *** libraries will work regardless of this problem.  Nevertheless, you
8568 *** may want to report the problem to your system manager and/or to
8569 *** bug-libtool@gnu.org
8570
8571 _LT_EOF
8572           fi ;;
8573         esac
8574       fi
8575       break
8576     fi
8577   done
8578   IFS="$lt_save_ifs"
8579   MAGIC_CMD="$lt_save_MAGIC_CMD"
8580   ;;
8581 esac
8582 fi
8583
8584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8585 if test -n "$MAGIC_CMD"; then
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8587 $as_echo "$MAGIC_CMD" >&6; }
8588 else
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591 fi
8592
8593
8594
8595
8596
8597 if test -z "$lt_cv_path_MAGIC_CMD"; then
8598   if test -n "$ac_tool_prefix"; then
8599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8600 $as_echo_n "checking for file... " >&6; }
8601 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   case $MAGIC_CMD in
8605 [\\/*] |  ?:[\\/]*)
8606   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8607   ;;
8608 *)
8609   lt_save_MAGIC_CMD="$MAGIC_CMD"
8610   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8611   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8612   for ac_dir in $ac_dummy; do
8613     IFS="$lt_save_ifs"
8614     test -z "$ac_dir" && ac_dir=.
8615     if test -f $ac_dir/file; then
8616       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8617       if test -n "$file_magic_test_file"; then
8618         case $deplibs_check_method in
8619         "file_magic "*)
8620           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8621           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8622           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8623             $EGREP "$file_magic_regex" > /dev/null; then
8624             :
8625           else
8626             cat <<_LT_EOF 1>&2
8627
8628 *** Warning: the command libtool uses to detect shared libraries,
8629 *** $file_magic_cmd, produces output that libtool cannot recognize.
8630 *** The result is that libtool may fail to recognize shared libraries
8631 *** as such.  This will affect the creation of libtool libraries that
8632 *** depend on shared libraries, but programs linked with such libtool
8633 *** libraries will work regardless of this problem.  Nevertheless, you
8634 *** may want to report the problem to your system manager and/or to
8635 *** bug-libtool@gnu.org
8636
8637 _LT_EOF
8638           fi ;;
8639         esac
8640       fi
8641       break
8642     fi
8643   done
8644   IFS="$lt_save_ifs"
8645   MAGIC_CMD="$lt_save_MAGIC_CMD"
8646   ;;
8647 esac
8648 fi
8649
8650 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8651 if test -n "$MAGIC_CMD"; then
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8653 $as_echo "$MAGIC_CMD" >&6; }
8654 else
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656 $as_echo "no" >&6; }
8657 fi
8658
8659
8660   else
8661     MAGIC_CMD=:
8662   fi
8663 fi
8664
8665   fi
8666   ;;
8667 esac
8668
8669 # Use C for the default configuration in the libtool script
8670
8671 lt_save_CC="$CC"
8672 ac_ext=c
8673 ac_cpp='$CPP $CPPFLAGS'
8674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8677
8678
8679 # Source file extension for C test sources.
8680 ac_ext=c
8681
8682 # Object file extension for compiled C test sources.
8683 objext=o
8684 objext=$objext
8685
8686 # Code to be used in simple compile tests
8687 lt_simple_compile_test_code="int some_variable = 0;"
8688
8689 # Code to be used in simple link tests
8690 lt_simple_link_test_code='int main(){return(0);}'
8691
8692
8693
8694
8695
8696
8697
8698 # If no C compiler was specified, use CC.
8699 LTCC=${LTCC-"$CC"}
8700
8701 # If no C compiler flags were specified, use CFLAGS.
8702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8703
8704 # Allow CC to be a program name with arguments.
8705 compiler=$CC
8706
8707 # Save the default compiler, since it gets overwritten when the other
8708 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8709 compiler_DEFAULT=$CC
8710
8711 # save warnings/boilerplate of simple test code
8712 ac_outfile=conftest.$ac_objext
8713 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8714 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8715 _lt_compiler_boilerplate=`cat conftest.err`
8716 $RM conftest*
8717
8718 ac_outfile=conftest.$ac_objext
8719 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8720 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8721 _lt_linker_boilerplate=`cat conftest.err`
8722 $RM -r conftest*
8723
8724
8725 ## CAVEAT EMPTOR:
8726 ## There is no encapsulation within the following macros, do not change
8727 ## the running order or otherwise move them around unless you know exactly
8728 ## what you are doing...
8729 if test -n "$compiler"; then
8730
8731 lt_prog_compiler_no_builtin_flag=
8732
8733 if test "$GCC" = yes; then
8734   case $cc_basename in
8735   nvcc*)
8736     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8737   *)
8738     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8739   esac
8740
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8742 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8743 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8744   $as_echo_n "(cached) " >&6
8745 else
8746   lt_cv_prog_compiler_rtti_exceptions=no
8747    ac_outfile=conftest.$ac_objext
8748    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8749    lt_compiler_flag="-fno-rtti -fno-exceptions"
8750    # Insert the option either (1) after the last *FLAGS variable, or
8751    # (2) before a word containing "conftest.", or (3) at the end.
8752    # Note that $ac_compile itself does not contain backslashes and begins
8753    # with a dollar sign (not a hyphen), so the echo should work correctly.
8754    # The option is referenced via a variable to avoid confusing sed.
8755    lt_compile=`echo "$ac_compile" | $SED \
8756    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8757    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8758    -e 's:$: $lt_compiler_flag:'`
8759    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8760    (eval "$lt_compile" 2>conftest.err)
8761    ac_status=$?
8762    cat conftest.err >&5
8763    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764    if (exit $ac_status) && test -s "$ac_outfile"; then
8765      # The compiler can only warn and ignore the option if not recognized
8766      # So say no if there are warnings other than the usual output.
8767      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8768      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8770        lt_cv_prog_compiler_rtti_exceptions=yes
8771      fi
8772    fi
8773    $RM conftest*
8774
8775 fi
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8777 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8778
8779 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8780     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8781 else
8782     :
8783 fi
8784
8785 fi
8786
8787
8788
8789
8790
8791
8792   lt_prog_compiler_wl=
8793 lt_prog_compiler_pic=
8794 lt_prog_compiler_static=
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8797 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8798
8799   if test "$GCC" = yes; then
8800     lt_prog_compiler_wl='-Wl,'
8801     lt_prog_compiler_static='-static'
8802
8803     case $host_os in
8804       aix*)
8805       # All AIX code is PIC.
8806       if test "$host_cpu" = ia64; then
8807         # AIX 5 now supports IA64 processor
8808         lt_prog_compiler_static='-Bstatic'
8809       fi
8810       lt_prog_compiler_pic='-fPIC'
8811       ;;
8812
8813     amigaos*)
8814       case $host_cpu in
8815       powerpc)
8816             # see comment about AmigaOS4 .so support
8817             lt_prog_compiler_pic='-fPIC'
8818         ;;
8819       m68k)
8820             # FIXME: we need at least 68020 code to build shared libraries, but
8821             # adding the `-m68020' flag to GCC prevents building anything better,
8822             # like `-m68040'.
8823             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8824         ;;
8825       esac
8826       ;;
8827
8828     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8829       # PIC is the default for these OSes.
8830       ;;
8831
8832     mingw* | cygwin* | pw32* | os2* | cegcc*)
8833       # This hack is so that the source file can tell whether it is being
8834       # built for inclusion in a dll (and should export symbols for example).
8835       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8836       # (--disable-auto-import) libraries
8837       lt_prog_compiler_pic='-DDLL_EXPORT'
8838       ;;
8839
8840     darwin* | rhapsody*)
8841       # PIC is the default on this platform
8842       # Common symbols not allowed in MH_DYLIB files
8843       lt_prog_compiler_pic='-fno-common'
8844       ;;
8845
8846     haiku*)
8847       # PIC is the default for Haiku.
8848       # The "-static" flag exists, but is broken.
8849       lt_prog_compiler_static=
8850       ;;
8851
8852     hpux*)
8853       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8854       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8855       # sets the default TLS model and affects inlining.
8856       case $host_cpu in
8857       hppa*64*)
8858         # +Z the default
8859         ;;
8860       *)
8861         lt_prog_compiler_pic='-fPIC'
8862         ;;
8863       esac
8864       ;;
8865
8866     interix[3-9]*)
8867       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8868       # Instead, we relocate shared libraries at runtime.
8869       ;;
8870
8871     msdosdjgpp*)
8872       # Just because we use GCC doesn't mean we suddenly get shared libraries
8873       # on systems that don't support them.
8874       lt_prog_compiler_can_build_shared=no
8875       enable_shared=no
8876       ;;
8877
8878     *nto* | *qnx*)
8879       # QNX uses GNU C++, but need to define -shared option too, otherwise
8880       # it will coredump.
8881       lt_prog_compiler_pic='-fPIC -shared'
8882       ;;
8883
8884     sysv4*MP*)
8885       if test -d /usr/nec; then
8886         lt_prog_compiler_pic=-Kconform_pic
8887       fi
8888       ;;
8889
8890     *)
8891       lt_prog_compiler_pic='-fPIC'
8892       ;;
8893     esac
8894
8895     case $cc_basename in
8896     nvcc*) # Cuda Compiler Driver 2.2
8897       lt_prog_compiler_wl='-Xlinker '
8898       lt_prog_compiler_pic='-Xcompiler -fPIC'
8899       ;;
8900     esac
8901   else
8902     # PORTME Check for flag to pass linker flags through the system compiler.
8903     case $host_os in
8904     aix*)
8905       lt_prog_compiler_wl='-Wl,'
8906       if test "$host_cpu" = ia64; then
8907         # AIX 5 now supports IA64 processor
8908         lt_prog_compiler_static='-Bstatic'
8909       else
8910         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8911       fi
8912       ;;
8913
8914     mingw* | cygwin* | pw32* | os2* | cegcc*)
8915       # This hack is so that the source file can tell whether it is being
8916       # built for inclusion in a dll (and should export symbols for example).
8917       lt_prog_compiler_pic='-DDLL_EXPORT'
8918       ;;
8919
8920     hpux9* | hpux10* | hpux11*)
8921       lt_prog_compiler_wl='-Wl,'
8922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8923       # not for PA HP-UX.
8924       case $host_cpu in
8925       hppa*64*|ia64*)
8926         # +Z the default
8927         ;;
8928       *)
8929         lt_prog_compiler_pic='+Z'
8930         ;;
8931       esac
8932       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8933       lt_prog_compiler_static='${wl}-a ${wl}archive'
8934       ;;
8935
8936     irix5* | irix6* | nonstopux*)
8937       lt_prog_compiler_wl='-Wl,'
8938       # PIC (with -KPIC) is the default.
8939       lt_prog_compiler_static='-non_shared'
8940       ;;
8941
8942     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8943       case $cc_basename in
8944       # old Intel for x86_64 which still supported -KPIC.
8945       ecc*)
8946         lt_prog_compiler_wl='-Wl,'
8947         lt_prog_compiler_pic='-KPIC'
8948         lt_prog_compiler_static='-static'
8949         ;;
8950       # icc used to be incompatible with GCC.
8951       # ICC 10 doesn't accept -KPIC any more.
8952       icc* | ifort*)
8953         lt_prog_compiler_wl='-Wl,'
8954         lt_prog_compiler_pic='-fPIC'
8955         lt_prog_compiler_static='-static'
8956         ;;
8957       # Lahey Fortran 8.1.
8958       lf95*)
8959         lt_prog_compiler_wl='-Wl,'
8960         lt_prog_compiler_pic='--shared'
8961         lt_prog_compiler_static='--static'
8962         ;;
8963       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8964         # Portland Group compilers (*not* the Pentium gcc compiler,
8965         # which looks to be a dead project)
8966         lt_prog_compiler_wl='-Wl,'
8967         lt_prog_compiler_pic='-fpic'
8968         lt_prog_compiler_static='-Bstatic'
8969         ;;
8970       ccc*)
8971         lt_prog_compiler_wl='-Wl,'
8972         # All Alpha code is PIC.
8973         lt_prog_compiler_static='-non_shared'
8974         ;;
8975       xl* | bgxl* | bgf* | mpixl*)
8976         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8977         lt_prog_compiler_wl='-Wl,'
8978         lt_prog_compiler_pic='-qpic'
8979         lt_prog_compiler_static='-qstaticlink'
8980         ;;
8981       *)
8982         case `$CC -V 2>&1 | sed 5q` in
8983         *Sun\ F* | *Sun*Fortran*)
8984           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8985           lt_prog_compiler_pic='-KPIC'
8986           lt_prog_compiler_static='-Bstatic'
8987           lt_prog_compiler_wl=''
8988           ;;
8989         *Sun\ C*)
8990           # Sun C 5.9
8991           lt_prog_compiler_pic='-KPIC'
8992           lt_prog_compiler_static='-Bstatic'
8993           lt_prog_compiler_wl='-Wl,'
8994           ;;
8995         esac
8996         ;;
8997       esac
8998       ;;
8999
9000     newsos6)
9001       lt_prog_compiler_pic='-KPIC'
9002       lt_prog_compiler_static='-Bstatic'
9003       ;;
9004
9005     *nto* | *qnx*)
9006       # QNX uses GNU C++, but need to define -shared option too, otherwise
9007       # it will coredump.
9008       lt_prog_compiler_pic='-fPIC -shared'
9009       ;;
9010
9011     osf3* | osf4* | osf5*)
9012       lt_prog_compiler_wl='-Wl,'
9013       # All OSF/1 code is PIC.
9014       lt_prog_compiler_static='-non_shared'
9015       ;;
9016
9017     rdos*)
9018       lt_prog_compiler_static='-non_shared'
9019       ;;
9020
9021     solaris*)
9022       lt_prog_compiler_pic='-KPIC'
9023       lt_prog_compiler_static='-Bstatic'
9024       case $cc_basename in
9025       f77* | f90* | f95*)
9026         lt_prog_compiler_wl='-Qoption ld ';;
9027       *)
9028         lt_prog_compiler_wl='-Wl,';;
9029       esac
9030       ;;
9031
9032     sunos4*)
9033       lt_prog_compiler_wl='-Qoption ld '
9034       lt_prog_compiler_pic='-PIC'
9035       lt_prog_compiler_static='-Bstatic'
9036       ;;
9037
9038     sysv4 | sysv4.2uw2* | sysv4.3*)
9039       lt_prog_compiler_wl='-Wl,'
9040       lt_prog_compiler_pic='-KPIC'
9041       lt_prog_compiler_static='-Bstatic'
9042       ;;
9043
9044     sysv4*MP*)
9045       if test -d /usr/nec ;then
9046         lt_prog_compiler_pic='-Kconform_pic'
9047         lt_prog_compiler_static='-Bstatic'
9048       fi
9049       ;;
9050
9051     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9052       lt_prog_compiler_wl='-Wl,'
9053       lt_prog_compiler_pic='-KPIC'
9054       lt_prog_compiler_static='-Bstatic'
9055       ;;
9056
9057     unicos*)
9058       lt_prog_compiler_wl='-Wl,'
9059       lt_prog_compiler_can_build_shared=no
9060       ;;
9061
9062     uts4*)
9063       lt_prog_compiler_pic='-pic'
9064       lt_prog_compiler_static='-Bstatic'
9065       ;;
9066
9067     *)
9068       lt_prog_compiler_can_build_shared=no
9069       ;;
9070     esac
9071   fi
9072
9073 case $host_os in
9074   # For platforms which do not support PIC, -DPIC is meaningless:
9075   *djgpp*)
9076     lt_prog_compiler_pic=
9077     ;;
9078   *)
9079     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9080     ;;
9081 esac
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9083 $as_echo "$lt_prog_compiler_pic" >&6; }
9084
9085
9086
9087
9088
9089
9090 #
9091 # Check to make sure the PIC flag actually works.
9092 #
9093 if test -n "$lt_prog_compiler_pic"; then
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9095 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9096 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9097   $as_echo_n "(cached) " >&6
9098 else
9099   lt_cv_prog_compiler_pic_works=no
9100    ac_outfile=conftest.$ac_objext
9101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9102    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9103    # Insert the option either (1) after the last *FLAGS variable, or
9104    # (2) before a word containing "conftest.", or (3) at the end.
9105    # Note that $ac_compile itself does not contain backslashes and begins
9106    # with a dollar sign (not a hyphen), so the echo should work correctly.
9107    # The option is referenced via a variable to avoid confusing sed.
9108    lt_compile=`echo "$ac_compile" | $SED \
9109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9111    -e 's:$: $lt_compiler_flag:'`
9112    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9113    (eval "$lt_compile" 2>conftest.err)
9114    ac_status=$?
9115    cat conftest.err >&5
9116    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117    if (exit $ac_status) && test -s "$ac_outfile"; then
9118      # The compiler can only warn and ignore the option if not recognized
9119      # So say no if there are warnings other than the usual output.
9120      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9121      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9122      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9123        lt_cv_prog_compiler_pic_works=yes
9124      fi
9125    fi
9126    $RM conftest*
9127
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9130 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9131
9132 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9133     case $lt_prog_compiler_pic in
9134      "" | " "*) ;;
9135      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9136      esac
9137 else
9138     lt_prog_compiler_pic=
9139      lt_prog_compiler_can_build_shared=no
9140 fi
9141
9142 fi
9143
9144
9145
9146
9147
9148
9149 #
9150 # Check to make sure the static flag actually works.
9151 #
9152 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9154 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9155 if ${lt_cv_prog_compiler_static_works+:} false; then :
9156   $as_echo_n "(cached) " >&6
9157 else
9158   lt_cv_prog_compiler_static_works=no
9159    save_LDFLAGS="$LDFLAGS"
9160    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9161    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9162    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9163      # The linker can only warn and ignore the option if not recognized
9164      # So say no if there are warnings
9165      if test -s conftest.err; then
9166        # Append any errors to the config.log.
9167        cat conftest.err 1>&5
9168        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9169        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9170        if diff conftest.exp conftest.er2 >/dev/null; then
9171          lt_cv_prog_compiler_static_works=yes
9172        fi
9173      else
9174        lt_cv_prog_compiler_static_works=yes
9175      fi
9176    fi
9177    $RM -r conftest*
9178    LDFLAGS="$save_LDFLAGS"
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9182 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9183
9184 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9185     :
9186 else
9187     lt_prog_compiler_static=
9188 fi
9189
9190
9191
9192
9193
9194
9195
9196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9197 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9198 if ${lt_cv_prog_compiler_c_o+:} false; then :
9199   $as_echo_n "(cached) " >&6
9200 else
9201   lt_cv_prog_compiler_c_o=no
9202    $RM -r conftest 2>/dev/null
9203    mkdir conftest
9204    cd conftest
9205    mkdir out
9206    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9207
9208    lt_compiler_flag="-o out/conftest2.$ac_objext"
9209    # Insert the option either (1) after the last *FLAGS variable, or
9210    # (2) before a word containing "conftest.", or (3) at the end.
9211    # Note that $ac_compile itself does not contain backslashes and begins
9212    # with a dollar sign (not a hyphen), so the echo should work correctly.
9213    lt_compile=`echo "$ac_compile" | $SED \
9214    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9215    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9216    -e 's:$: $lt_compiler_flag:'`
9217    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9218    (eval "$lt_compile" 2>out/conftest.err)
9219    ac_status=$?
9220    cat out/conftest.err >&5
9221    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9223    then
9224      # The compiler can only warn and ignore the option if not recognized
9225      # So say no if there are warnings
9226      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9227      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9228      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9229        lt_cv_prog_compiler_c_o=yes
9230      fi
9231    fi
9232    chmod u+w . 2>&5
9233    $RM conftest*
9234    # SGI C++ compiler will create directory out/ii_files/ for
9235    # template instantiation
9236    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9237    $RM out/* && rmdir out
9238    cd ..
9239    $RM -r conftest
9240    $RM conftest*
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9244 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245
9246
9247
9248
9249
9250
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9252 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9253 if ${lt_cv_prog_compiler_c_o+:} false; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   lt_cv_prog_compiler_c_o=no
9257    $RM -r conftest 2>/dev/null
9258    mkdir conftest
9259    cd conftest
9260    mkdir out
9261    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9262
9263    lt_compiler_flag="-o out/conftest2.$ac_objext"
9264    # Insert the option either (1) after the last *FLAGS variable, or
9265    # (2) before a word containing "conftest.", or (3) at the end.
9266    # Note that $ac_compile itself does not contain backslashes and begins
9267    # with a dollar sign (not a hyphen), so the echo should work correctly.
9268    lt_compile=`echo "$ac_compile" | $SED \
9269    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9270    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9271    -e 's:$: $lt_compiler_flag:'`
9272    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9273    (eval "$lt_compile" 2>out/conftest.err)
9274    ac_status=$?
9275    cat out/conftest.err >&5
9276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9278    then
9279      # The compiler can only warn and ignore the option if not recognized
9280      # So say no if there are warnings
9281      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9282      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9283      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9284        lt_cv_prog_compiler_c_o=yes
9285      fi
9286    fi
9287    chmod u+w . 2>&5
9288    $RM conftest*
9289    # SGI C++ compiler will create directory out/ii_files/ for
9290    # template instantiation
9291    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9292    $RM out/* && rmdir out
9293    cd ..
9294    $RM -r conftest
9295    $RM conftest*
9296
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9299 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9300
9301
9302
9303
9304 hard_links="nottested"
9305 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9306   # do not overwrite the value of need_locks provided by the user
9307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9308 $as_echo_n "checking if we can lock with hard links... " >&6; }
9309   hard_links=yes
9310   $RM conftest*
9311   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312   touch conftest.a
9313   ln conftest.a conftest.b 2>&5 || hard_links=no
9314   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9316 $as_echo "$hard_links" >&6; }
9317   if test "$hard_links" = no; then
9318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9319 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9320     need_locks=warn
9321   fi
9322 else
9323   need_locks=no
9324 fi
9325
9326
9327
9328
9329
9330
9331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9332 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9333
9334   runpath_var=
9335   allow_undefined_flag=
9336   always_export_symbols=no
9337   archive_cmds=
9338   archive_expsym_cmds=
9339   compiler_needs_object=no
9340   enable_shared_with_static_runtimes=no
9341   export_dynamic_flag_spec=
9342   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9343   hardcode_automatic=no
9344   hardcode_direct=no
9345   hardcode_direct_absolute=no
9346   hardcode_libdir_flag_spec=
9347   hardcode_libdir_flag_spec_ld=
9348   hardcode_libdir_separator=
9349   hardcode_minus_L=no
9350   hardcode_shlibpath_var=unsupported
9351   inherit_rpath=no
9352   link_all_deplibs=unknown
9353   module_cmds=
9354   module_expsym_cmds=
9355   old_archive_from_new_cmds=
9356   old_archive_from_expsyms_cmds=
9357   thread_safe_flag_spec=
9358   whole_archive_flag_spec=
9359   # include_expsyms should be a list of space-separated symbols to be *always*
9360   # included in the symbol list
9361   include_expsyms=
9362   # exclude_expsyms can be an extended regexp of symbols to exclude
9363   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9364   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9365   # as well as any symbol that contains `d'.
9366   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9367   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9368   # platforms (ab)use it in PIC code, but their linkers get confused if
9369   # the symbol is explicitly referenced.  Since portable code cannot
9370   # rely on this symbol name, it's probably fine to never include it in
9371   # preloaded symbol tables.
9372   # Exclude shared library initialization/finalization symbols.
9373   extract_expsyms_cmds=
9374
9375   case $host_os in
9376   cygwin* | mingw* | pw32* | cegcc*)
9377     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9378     # When not using gcc, we currently assume that we are using
9379     # Microsoft Visual C++.
9380     if test "$GCC" != yes; then
9381       with_gnu_ld=no
9382     fi
9383     ;;
9384   interix*)
9385     # we just hope/assume this is gcc and not c89 (= MSVC++)
9386     with_gnu_ld=yes
9387     ;;
9388   openbsd*)
9389     with_gnu_ld=no
9390     ;;
9391   esac
9392
9393   ld_shlibs=yes
9394
9395   # On some targets, GNU ld is compatible enough with the native linker
9396   # that we're better off using the native interface for both.
9397   lt_use_gnu_ld_interface=no
9398   if test "$with_gnu_ld" = yes; then
9399     case $host_os in
9400       aix*)
9401         # The AIX port of GNU ld has always aspired to compatibility
9402         # with the native linker.  However, as the warning in the GNU ld
9403         # block says, versions before 2.19.5* couldn't really create working
9404         # shared libraries, regardless of the interface used.
9405         case `$LD -v 2>&1` in
9406           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9407           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9408           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9409           *)
9410             lt_use_gnu_ld_interface=yes
9411             ;;
9412         esac
9413         ;;
9414       *)
9415         lt_use_gnu_ld_interface=yes
9416         ;;
9417     esac
9418   fi
9419
9420   if test "$lt_use_gnu_ld_interface" = yes; then
9421     # If archive_cmds runs LD, not CC, wlarc should be empty
9422     wlarc='${wl}'
9423
9424     # Set some defaults for GNU ld with shared library support. These
9425     # are reset later if shared libraries are not supported. Putting them
9426     # here allows them to be overridden if necessary.
9427     runpath_var=LD_RUN_PATH
9428     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429     export_dynamic_flag_spec='${wl}--export-dynamic'
9430     # ancient GNU ld didn't support --whole-archive et. al.
9431     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9432       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9433     else
9434       whole_archive_flag_spec=
9435     fi
9436     supports_anon_versioning=no
9437     case `$LD -v 2>&1` in
9438       *GNU\ gold*) supports_anon_versioning=yes ;;
9439       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9440       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9441       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9442       *\ 2.11.*) ;; # other 2.11 versions
9443       *) supports_anon_versioning=yes ;;
9444     esac
9445
9446     # See if GNU ld supports shared libraries.
9447     case $host_os in
9448     aix[3-9]*)
9449       # On AIX/PPC, the GNU linker is very broken
9450       if test "$host_cpu" != ia64; then
9451         ld_shlibs=no
9452         cat <<_LT_EOF 1>&2
9453
9454 *** Warning: the GNU linker, at least up to release 2.19, is reported
9455 *** to be unable to reliably create shared libraries on AIX.
9456 *** Therefore, libtool is disabling shared libraries support.  If you
9457 *** really care for shared libraries, you may want to install binutils
9458 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9459 *** You will then need to restart the configuration process.
9460
9461 _LT_EOF
9462       fi
9463       ;;
9464
9465     amigaos*)
9466       case $host_cpu in
9467       powerpc)
9468             # see comment about AmigaOS4 .so support
9469             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470             archive_expsym_cmds=''
9471         ;;
9472       m68k)
9473             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)'
9474             hardcode_libdir_flag_spec='-L$libdir'
9475             hardcode_minus_L=yes
9476         ;;
9477       esac
9478       ;;
9479
9480     beos*)
9481       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9482         allow_undefined_flag=unsupported
9483         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9484         # support --undefined.  This deserves some investigation.  FIXME
9485         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486       else
9487         ld_shlibs=no
9488       fi
9489       ;;
9490
9491     cygwin* | mingw* | pw32* | cegcc*)
9492       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9493       # as there is no search path for DLLs.
9494       hardcode_libdir_flag_spec='-L$libdir'
9495       export_dynamic_flag_spec='${wl}--export-all-symbols'
9496       allow_undefined_flag=unsupported
9497       always_export_symbols=no
9498       enable_shared_with_static_runtimes=yes
9499       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9500
9501       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9502         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9503         # If the export-symbols file already is a .def file (1st line
9504         # is EXPORTS), use it as is; otherwise, prepend...
9505         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9506           cp $export_symbols $output_objdir/$soname.def;
9507         else
9508           echo EXPORTS > $output_objdir/$soname.def;
9509           cat $export_symbols >> $output_objdir/$soname.def;
9510         fi~
9511         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9512       else
9513         ld_shlibs=no
9514       fi
9515       ;;
9516
9517     haiku*)
9518       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519       link_all_deplibs=yes
9520       ;;
9521
9522     interix[3-9]*)
9523       hardcode_direct=no
9524       hardcode_shlibpath_var=no
9525       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526       export_dynamic_flag_spec='${wl}-E'
9527       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9528       # Instead, shared libraries are loaded at an image base (0x10000000 by
9529       # default) and relocated if they conflict, which is a slow very memory
9530       # consuming and fragmenting process.  To avoid this, we pick a random,
9531       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9532       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9533       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9534       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'
9535       ;;
9536
9537     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9538       tmp_diet=no
9539       if test "$host_os" = linux-dietlibc; then
9540         case $cc_basename in
9541           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9542         esac
9543       fi
9544       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9545          && test "$tmp_diet" = no
9546       then
9547         tmp_addflag=' $pic_flag'
9548         tmp_sharedflag='-shared'
9549         case $cc_basename,$host_cpu in
9550         pgcc*)                          # Portland Group C compiler
9551           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'
9552           tmp_addflag=' $pic_flag'
9553           ;;
9554         pgf77* | pgf90* | pgf95* | pgfortran*)
9555                                         # Portland Group f77 and f90 compilers
9556           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'
9557           tmp_addflag=' $pic_flag -Mnomain' ;;
9558         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9559           tmp_addflag=' -i_dynamic' ;;
9560         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9561           tmp_addflag=' -i_dynamic -nofor_main' ;;
9562         ifc* | ifort*)                  # Intel Fortran compiler
9563           tmp_addflag=' -nofor_main' ;;
9564         lf95*)                          # Lahey Fortran 8.1
9565           whole_archive_flag_spec=
9566           tmp_sharedflag='--shared' ;;
9567         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9568           tmp_sharedflag='-qmkshrobj'
9569           tmp_addflag= ;;
9570         nvcc*)  # Cuda Compiler Driver 2.2
9571           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'
9572           compiler_needs_object=yes
9573           ;;
9574         esac
9575         case `$CC -V 2>&1 | sed 5q` in
9576         *Sun\ C*)                       # Sun C 5.9
9577           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'
9578           compiler_needs_object=yes
9579           tmp_sharedflag='-G' ;;
9580         *Sun\ F*)                       # Sun Fortran 8.3
9581           tmp_sharedflag='-G' ;;
9582         esac
9583         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584
9585         if test "x$supports_anon_versioning" = xyes; then
9586           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9587             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9588             echo "local: *; };" >> $output_objdir/$libname.ver~
9589             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9590         fi
9591
9592         case $cc_basename in
9593         xlf* | bgf* | bgxlf* | mpixlf*)
9594           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9595           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9596           hardcode_libdir_flag_spec=
9597           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9598           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9599           if test "x$supports_anon_versioning" = xyes; then
9600             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9601               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9602               echo "local: *; };" >> $output_objdir/$libname.ver~
9603               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9604           fi
9605           ;;
9606         esac
9607       else
9608         ld_shlibs=no
9609       fi
9610       ;;
9611
9612     netbsd*)
9613       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9614         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9615         wlarc=
9616       else
9617         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9618         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9619       fi
9620       ;;
9621
9622     solaris*)
9623       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9624         ld_shlibs=no
9625         cat <<_LT_EOF 1>&2
9626
9627 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9628 *** create shared libraries on Solaris systems.  Therefore, libtool
9629 *** is disabling shared libraries support.  We urge you to upgrade GNU
9630 *** binutils to release 2.9.1 or newer.  Another option is to modify
9631 *** your PATH or compiler configuration so that the native linker is
9632 *** used, and then restart.
9633
9634 _LT_EOF
9635       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9636         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9637         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9638       else
9639         ld_shlibs=no
9640       fi
9641       ;;
9642
9643     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9644       case `$LD -v 2>&1` in
9645         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9646         ld_shlibs=no
9647         cat <<_LT_EOF 1>&2
9648
9649 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9650 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9651 *** is disabling shared libraries support.  We urge you to upgrade GNU
9652 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9653 *** your PATH or compiler configuration so that the native linker is
9654 *** used, and then restart.
9655
9656 _LT_EOF
9657         ;;
9658         *)
9659           # For security reasons, it is highly recommended that you always
9660           # use absolute paths for naming shared libraries, and exclude the
9661           # DT_RUNPATH tag from executables and libraries.  But doing so
9662           # requires that you compile everything twice, which is a pain.
9663           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9664             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9667           else
9668             ld_shlibs=no
9669           fi
9670         ;;
9671       esac
9672       ;;
9673
9674     sunos4*)
9675       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9676       wlarc=
9677       hardcode_direct=yes
9678       hardcode_shlibpath_var=no
9679       ;;
9680
9681     *)
9682       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9684         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9685       else
9686         ld_shlibs=no
9687       fi
9688       ;;
9689     esac
9690
9691     if test "$ld_shlibs" = no; then
9692       runpath_var=
9693       hardcode_libdir_flag_spec=
9694       export_dynamic_flag_spec=
9695       whole_archive_flag_spec=
9696     fi
9697   else
9698     # PORTME fill in a description of your system's linker (not GNU ld)
9699     case $host_os in
9700     aix3*)
9701       allow_undefined_flag=unsupported
9702       always_export_symbols=yes
9703       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'
9704       # Note: this linker hardcodes the directories in LIBPATH if there
9705       # are no directories specified by -L.
9706       hardcode_minus_L=yes
9707       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9708         # Neither direct hardcoding nor static linking is supported with a
9709         # broken collect2.
9710         hardcode_direct=unsupported
9711       fi
9712       ;;
9713
9714     aix[4-9]*)
9715       if test "$host_cpu" = ia64; then
9716         # On IA64, the linker does run time linking by default, so we don't
9717         # have to do anything special.
9718         aix_use_runtimelinking=no
9719         exp_sym_flag='-Bexport'
9720         no_entry_flag=""
9721       else
9722         # If we're using GNU nm, then we don't want the "-C" option.
9723         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9724         # Also, AIX nm treats weak defined symbols like other global
9725         # defined symbols, whereas GNU nm marks them as "W".
9726         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9727           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9728         else
9729           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9730         fi
9731         aix_use_runtimelinking=no
9732
9733         # Test if we are trying to use run time linking or normal
9734         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9735         # need to do runtime linking.
9736         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9737           for ld_flag in $LDFLAGS; do
9738           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9739             aix_use_runtimelinking=yes
9740             break
9741           fi
9742           done
9743           ;;
9744         esac
9745
9746         exp_sym_flag='-bexport'
9747         no_entry_flag='-bnoentry'
9748       fi
9749
9750       # When large executables or shared objects are built, AIX ld can
9751       # have problems creating the table of contents.  If linking a library
9752       # or program results in "error TOC overflow" add -mminimal-toc to
9753       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9754       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9755
9756       archive_cmds=''
9757       hardcode_direct=yes
9758       hardcode_direct_absolute=yes
9759       hardcode_libdir_separator=':'
9760       link_all_deplibs=yes
9761       file_list_spec='${wl}-f,'
9762
9763       if test "$GCC" = yes; then
9764         case $host_os in aix4.[012]|aix4.[012].*)
9765         # We only want to do this on AIX 4.2 and lower, the check
9766         # below for broken collect2 doesn't work under 4.3+
9767           collect2name=`${CC} -print-prog-name=collect2`
9768           if test -f "$collect2name" &&
9769            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9770           then
9771           # We have reworked collect2
9772           :
9773           else
9774           # We have old collect2
9775           hardcode_direct=unsupported
9776           # It fails to find uninstalled libraries when the uninstalled
9777           # path is not listed in the libpath.  Setting hardcode_minus_L
9778           # to unsupported forces relinking
9779           hardcode_minus_L=yes
9780           hardcode_libdir_flag_spec='-L$libdir'
9781           hardcode_libdir_separator=
9782           fi
9783           ;;
9784         esac
9785         shared_flag='-shared'
9786         if test "$aix_use_runtimelinking" = yes; then
9787           shared_flag="$shared_flag "'${wl}-G'
9788         fi
9789       else
9790         # not using gcc
9791         if test "$host_cpu" = ia64; then
9792         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9793         # chokes on -Wl,-G. The following line is correct:
9794           shared_flag='-G'
9795         else
9796           if test "$aix_use_runtimelinking" = yes; then
9797             shared_flag='${wl}-G'
9798           else
9799             shared_flag='${wl}-bM:SRE'
9800           fi
9801         fi
9802       fi
9803
9804       export_dynamic_flag_spec='${wl}-bexpall'
9805       # It seems that -bexpall does not export symbols beginning with
9806       # underscore (_), so it is better to generate a list of symbols to export.
9807       always_export_symbols=yes
9808       if test "$aix_use_runtimelinking" = yes; then
9809         # Warning - without using the other runtime loading flags (-brtl),
9810         # -berok will link without error, but may produce a broken library.
9811         allow_undefined_flag='-berok'
9812         # Determine the default libpath from the value encoded in an
9813         # empty executable.
9814         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h.  */
9816
9817 int
9818 main ()
9819 {
9820
9821   ;
9822   return 0;
9823 }
9824 _ACEOF
9825 if ac_fn_c_try_link "$LINENO"; then :
9826
9827 lt_aix_libpath_sed='
9828     /Import File Strings/,/^$/ {
9829         /^0/ {
9830             s/^0  *\(.*\)$/\1/
9831             p
9832         }
9833     }'
9834 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9835 # Check for a 64-bit object if we didn't find anything.
9836 if test -z "$aix_libpath"; then
9837   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9838 fi
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext \
9841     conftest$ac_exeext conftest.$ac_ext
9842 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9843
9844         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9845         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9846       else
9847         if test "$host_cpu" = ia64; then
9848           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9849           allow_undefined_flag="-z nodefs"
9850           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"
9851         else
9852          # Determine the default libpath from the value encoded in an
9853          # empty executable.
9854          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h.  */
9856
9857 int
9858 main ()
9859 {
9860
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 if ac_fn_c_try_link "$LINENO"; then :
9866
9867 lt_aix_libpath_sed='
9868     /Import File Strings/,/^$/ {
9869         /^0/ {
9870             s/^0  *\(.*\)$/\1/
9871             p
9872         }
9873     }'
9874 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9875 # Check for a 64-bit object if we didn't find anything.
9876 if test -z "$aix_libpath"; then
9877   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9878 fi
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881     conftest$ac_exeext conftest.$ac_ext
9882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9883
9884          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9885           # Warning - without using the other run time loading flags,
9886           # -berok will link without error, but may produce a broken library.
9887           no_undefined_flag=' ${wl}-bernotok'
9888           allow_undefined_flag=' ${wl}-berok'
9889           if test "$with_gnu_ld" = yes; then
9890             # We only use this code for GNU lds that support --whole-archive.
9891             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9892           else
9893             # Exported symbols can be pulled into shared objects from archives
9894             whole_archive_flag_spec='$convenience'
9895           fi
9896           archive_cmds_need_lc=yes
9897           # This is similar to how AIX traditionally builds its shared libraries.
9898           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9899         fi
9900       fi
9901       ;;
9902
9903     amigaos*)
9904       case $host_cpu in
9905       powerpc)
9906             # see comment about AmigaOS4 .so support
9907             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908             archive_expsym_cmds=''
9909         ;;
9910       m68k)
9911             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)'
9912             hardcode_libdir_flag_spec='-L$libdir'
9913             hardcode_minus_L=yes
9914         ;;
9915       esac
9916       ;;
9917
9918     bsdi[45]*)
9919       export_dynamic_flag_spec=-rdynamic
9920       ;;
9921
9922     cygwin* | mingw* | pw32* | cegcc*)
9923       # When not using gcc, we currently assume that we are using
9924       # Microsoft Visual C++.
9925       # hardcode_libdir_flag_spec is actually meaningless, as there is
9926       # no search path for DLLs.
9927       hardcode_libdir_flag_spec=' '
9928       allow_undefined_flag=unsupported
9929       # Tell ltmain to make .lib files, not .a files.
9930       libext=lib
9931       # Tell ltmain to make .dll files, not .so files.
9932       shrext_cmds=".dll"
9933       # FIXME: Setting linknames here is a bad hack.
9934       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9935       # The linker will automatically build a .lib file if we build a DLL.
9936       old_archive_from_new_cmds='true'
9937       # FIXME: Should let the user specify the lib program.
9938       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9939       fix_srcfile_path='`cygpath -w "$srcfile"`'
9940       enable_shared_with_static_runtimes=yes
9941       ;;
9942
9943     darwin* | rhapsody*)
9944
9945
9946   archive_cmds_need_lc=no
9947   hardcode_direct=no
9948   hardcode_automatic=yes
9949   hardcode_shlibpath_var=unsupported
9950   if test "$lt_cv_ld_force_load" = "yes"; then
9951     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\"`'
9952   else
9953     whole_archive_flag_spec=''
9954   fi
9955   link_all_deplibs=yes
9956   allow_undefined_flag="$_lt_dar_allow_undefined"
9957   case $cc_basename in
9958      ifort*) _lt_dar_can_shared=yes ;;
9959      *) _lt_dar_can_shared=$GCC ;;
9960   esac
9961   if test "$_lt_dar_can_shared" = "yes"; then
9962     output_verbose_link_cmd=func_echo_all
9963     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9964     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9965     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}"
9966     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}"
9967
9968   else
9969   ld_shlibs=no
9970   fi
9971
9972       ;;
9973
9974     dgux*)
9975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976       hardcode_libdir_flag_spec='-L$libdir'
9977       hardcode_shlibpath_var=no
9978       ;;
9979
9980     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9981     # support.  Future versions do this automatically, but an explicit c++rt0.o
9982     # does not break anything, and helps significantly (at the cost of a little
9983     # extra space).
9984     freebsd2.2*)
9985       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9986       hardcode_libdir_flag_spec='-R$libdir'
9987       hardcode_direct=yes
9988       hardcode_shlibpath_var=no
9989       ;;
9990
9991     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9992     freebsd2.*)
9993       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9994       hardcode_direct=yes
9995       hardcode_minus_L=yes
9996       hardcode_shlibpath_var=no
9997       ;;
9998
9999     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10000     freebsd* | dragonfly*)
10001       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10002       hardcode_libdir_flag_spec='-R$libdir'
10003       hardcode_direct=yes
10004       hardcode_shlibpath_var=no
10005       ;;
10006
10007     hpux9*)
10008       if test "$GCC" = yes; then
10009         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10010       else
10011         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10012       fi
10013       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10014       hardcode_libdir_separator=:
10015       hardcode_direct=yes
10016
10017       # hardcode_minus_L: Not really in the search PATH,
10018       # but as the default location of the library.
10019       hardcode_minus_L=yes
10020       export_dynamic_flag_spec='${wl}-E'
10021       ;;
10022
10023     hpux10*)
10024       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10025         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10026       else
10027         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10028       fi
10029       if test "$with_gnu_ld" = no; then
10030         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10031         hardcode_libdir_flag_spec_ld='+b $libdir'
10032         hardcode_libdir_separator=:
10033         hardcode_direct=yes
10034         hardcode_direct_absolute=yes
10035         export_dynamic_flag_spec='${wl}-E'
10036         # hardcode_minus_L: Not really in the search PATH,
10037         # but as the default location of the library.
10038         hardcode_minus_L=yes
10039       fi
10040       ;;
10041
10042     hpux11*)
10043       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10044         case $host_cpu in
10045         hppa*64*)
10046           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10047           ;;
10048         ia64*)
10049           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10050           ;;
10051         *)
10052           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10053           ;;
10054         esac
10055       else
10056         case $host_cpu in
10057         hppa*64*)
10058           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10059           ;;
10060         ia64*)
10061           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10062           ;;
10063         *)
10064
10065           # Older versions of the 11.00 compiler do not understand -b yet
10066           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10067           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10068 $as_echo_n "checking if $CC understands -b... " >&6; }
10069 if ${lt_cv_prog_compiler__b+:} false; then :
10070   $as_echo_n "(cached) " >&6
10071 else
10072   lt_cv_prog_compiler__b=no
10073    save_LDFLAGS="$LDFLAGS"
10074    LDFLAGS="$LDFLAGS -b"
10075    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10076    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10077      # The linker can only warn and ignore the option if not recognized
10078      # So say no if there are warnings
10079      if test -s conftest.err; then
10080        # Append any errors to the config.log.
10081        cat conftest.err 1>&5
10082        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10083        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10084        if diff conftest.exp conftest.er2 >/dev/null; then
10085          lt_cv_prog_compiler__b=yes
10086        fi
10087      else
10088        lt_cv_prog_compiler__b=yes
10089      fi
10090    fi
10091    $RM -r conftest*
10092    LDFLAGS="$save_LDFLAGS"
10093
10094 fi
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10096 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10097
10098 if test x"$lt_cv_prog_compiler__b" = xyes; then
10099     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10100 else
10101     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10102 fi
10103
10104           ;;
10105         esac
10106       fi
10107       if test "$with_gnu_ld" = no; then
10108         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10109         hardcode_libdir_separator=:
10110
10111         case $host_cpu in
10112         hppa*64*|ia64*)
10113           hardcode_direct=no
10114           hardcode_shlibpath_var=no
10115           ;;
10116         *)
10117           hardcode_direct=yes
10118           hardcode_direct_absolute=yes
10119           export_dynamic_flag_spec='${wl}-E'
10120
10121           # hardcode_minus_L: Not really in the search PATH,
10122           # but as the default location of the library.
10123           hardcode_minus_L=yes
10124           ;;
10125         esac
10126       fi
10127       ;;
10128
10129     irix5* | irix6* | nonstopux*)
10130       if test "$GCC" = yes; then
10131         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10132         # Try to use the -exported_symbol ld option, if it does not
10133         # work, assume that -exports_file does not work either and
10134         # implicitly export all symbols.
10135         save_LDFLAGS="$LDFLAGS"
10136         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10137         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h.  */
10139 int foo(void) {}
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10143
10144 fi
10145 rm -f core conftest.err conftest.$ac_objext \
10146     conftest$ac_exeext conftest.$ac_ext
10147         LDFLAGS="$save_LDFLAGS"
10148       else
10149         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'
10150         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'
10151       fi
10152       archive_cmds_need_lc='no'
10153       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154       hardcode_libdir_separator=:
10155       inherit_rpath=yes
10156       link_all_deplibs=yes
10157       ;;
10158
10159     netbsd*)
10160       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10161         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10162       else
10163         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10164       fi
10165       hardcode_libdir_flag_spec='-R$libdir'
10166       hardcode_direct=yes
10167       hardcode_shlibpath_var=no
10168       ;;
10169
10170     newsos6)
10171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172       hardcode_direct=yes
10173       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10174       hardcode_libdir_separator=:
10175       hardcode_shlibpath_var=no
10176       ;;
10177
10178     *nto* | *qnx*)
10179       ;;
10180
10181     openbsd*)
10182       if test -f /usr/libexec/ld.so; then
10183         hardcode_direct=yes
10184         hardcode_shlibpath_var=no
10185         hardcode_direct_absolute=yes
10186         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10187           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10188           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10189           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10190           export_dynamic_flag_spec='${wl}-E'
10191         else
10192           case $host_os in
10193            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10194              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10195              hardcode_libdir_flag_spec='-R$libdir'
10196              ;;
10197            *)
10198              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10199              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10200              ;;
10201           esac
10202         fi
10203       else
10204         ld_shlibs=no
10205       fi
10206       ;;
10207
10208     os2*)
10209       hardcode_libdir_flag_spec='-L$libdir'
10210       hardcode_minus_L=yes
10211       allow_undefined_flag=unsupported
10212       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10213       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10214       ;;
10215
10216     osf3*)
10217       if test "$GCC" = yes; then
10218         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10219         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'
10220       else
10221         allow_undefined_flag=' -expect_unresolved \*'
10222         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'
10223       fi
10224       archive_cmds_need_lc='no'
10225       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10226       hardcode_libdir_separator=:
10227       ;;
10228
10229     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10230       if test "$GCC" = yes; then
10231         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10232         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10233         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10234       else
10235         allow_undefined_flag=' -expect_unresolved \*'
10236         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'
10237         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~
10238         $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'
10239
10240         # Both c and cxx compiler support -rpath directly
10241         hardcode_libdir_flag_spec='-rpath $libdir'
10242       fi
10243       archive_cmds_need_lc='no'
10244       hardcode_libdir_separator=:
10245       ;;
10246
10247     solaris*)
10248       no_undefined_flag=' -z defs'
10249       if test "$GCC" = yes; then
10250         wlarc='${wl}'
10251         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10252         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10253           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10254       else
10255         case `$CC -V 2>&1` in
10256         *"Compilers 5.0"*)
10257           wlarc=''
10258           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10260           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10261           ;;
10262         *)
10263           wlarc='${wl}'
10264           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10265           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10266           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10267           ;;
10268         esac
10269       fi
10270       hardcode_libdir_flag_spec='-R$libdir'
10271       hardcode_shlibpath_var=no
10272       case $host_os in
10273       solaris2.[0-5] | solaris2.[0-5].*) ;;
10274       *)
10275         # The compiler driver will combine and reorder linker options,
10276         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10277         # but is careful enough not to reorder.
10278         # Supported since Solaris 2.6 (maybe 2.5.1?)
10279         if test "$GCC" = yes; then
10280           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10281         else
10282           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10283         fi
10284         ;;
10285       esac
10286       link_all_deplibs=yes
10287       ;;
10288
10289     sunos4*)
10290       if test "x$host_vendor" = xsequent; then
10291         # Use $CC to link under sequent, because it throws in some extra .o
10292         # files that make .init and .fini sections work.
10293         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10294       else
10295         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10296       fi
10297       hardcode_libdir_flag_spec='-L$libdir'
10298       hardcode_direct=yes
10299       hardcode_minus_L=yes
10300       hardcode_shlibpath_var=no
10301       ;;
10302
10303     sysv4)
10304       case $host_vendor in
10305         sni)
10306           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307           hardcode_direct=yes # is this really true???
10308         ;;
10309         siemens)
10310           ## LD is ld it makes a PLAMLIB
10311           ## CC just makes a GrossModule.
10312           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10313           reload_cmds='$CC -r -o $output$reload_objs'
10314           hardcode_direct=no
10315         ;;
10316         motorola)
10317           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10318           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10319         ;;
10320       esac
10321       runpath_var='LD_RUN_PATH'
10322       hardcode_shlibpath_var=no
10323       ;;
10324
10325     sysv4.3*)
10326       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327       hardcode_shlibpath_var=no
10328       export_dynamic_flag_spec='-Bexport'
10329       ;;
10330
10331     sysv4*MP*)
10332       if test -d /usr/nec; then
10333         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334         hardcode_shlibpath_var=no
10335         runpath_var=LD_RUN_PATH
10336         hardcode_runpath_var=yes
10337         ld_shlibs=yes
10338       fi
10339       ;;
10340
10341     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10342       no_undefined_flag='${wl}-z,text'
10343       archive_cmds_need_lc=no
10344       hardcode_shlibpath_var=no
10345       runpath_var='LD_RUN_PATH'
10346
10347       if test "$GCC" = yes; then
10348         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350       else
10351         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10353       fi
10354       ;;
10355
10356     sysv5* | sco3.2v5* | sco5v6*)
10357       # Note: We can NOT use -z defs as we might desire, because we do not
10358       # link with -lc, and that would cause any symbols used from libc to
10359       # always be unresolved, which means just about no library would
10360       # ever link correctly.  If we're not using GNU ld we use -z text
10361       # though, which does catch some bad symbols but isn't as heavy-handed
10362       # as -z defs.
10363       no_undefined_flag='${wl}-z,text'
10364       allow_undefined_flag='${wl}-z,nodefs'
10365       archive_cmds_need_lc=no
10366       hardcode_shlibpath_var=no
10367       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10368       hardcode_libdir_separator=':'
10369       link_all_deplibs=yes
10370       export_dynamic_flag_spec='${wl}-Bexport'
10371       runpath_var='LD_RUN_PATH'
10372
10373       if test "$GCC" = yes; then
10374         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10375         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376       else
10377         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10378         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10379       fi
10380       ;;
10381
10382     uts4*)
10383       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384       hardcode_libdir_flag_spec='-L$libdir'
10385       hardcode_shlibpath_var=no
10386       ;;
10387
10388     *)
10389       ld_shlibs=no
10390       ;;
10391     esac
10392
10393     if test x$host_vendor = xsni; then
10394       case $host in
10395       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10396         export_dynamic_flag_spec='${wl}-Blargedynsym'
10397         ;;
10398       esac
10399     fi
10400   fi
10401
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10403 $as_echo "$ld_shlibs" >&6; }
10404 test "$ld_shlibs" = no && can_build_shared=no
10405
10406 with_gnu_ld=$with_gnu_ld
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 #
10423 # Do we need to explicitly link libc?
10424 #
10425 case "x$archive_cmds_need_lc" in
10426 x|xyes)
10427   # Assume -lc should be added
10428   archive_cmds_need_lc=yes
10429
10430   if test "$enable_shared" = yes && test "$GCC" = yes; then
10431     case $archive_cmds in
10432     *'~'*)
10433       # FIXME: we may have to deal with multi-command sequences.
10434       ;;
10435     '$CC '*)
10436       # Test whether the compiler implicitly links with -lc since on some
10437       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10438       # to ld, don't add -lc before -lgcc.
10439       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10440 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10441 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10442   $as_echo_n "(cached) " >&6
10443 else
10444   $RM conftest*
10445         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10446
10447         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10448   (eval $ac_compile) 2>&5
10449   ac_status=$?
10450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10451   test $ac_status = 0; } 2>conftest.err; then
10452           soname=conftest
10453           lib=conftest
10454           libobjs=conftest.$ac_objext
10455           deplibs=
10456           wl=$lt_prog_compiler_wl
10457           pic_flag=$lt_prog_compiler_pic
10458           compiler_flags=-v
10459           linker_flags=-v
10460           verstring=
10461           output_objdir=.
10462           libname=conftest
10463           lt_save_allow_undefined_flag=$allow_undefined_flag
10464           allow_undefined_flag=
10465           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10466   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10467   ac_status=$?
10468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10469   test $ac_status = 0; }
10470           then
10471             lt_cv_archive_cmds_need_lc=no
10472           else
10473             lt_cv_archive_cmds_need_lc=yes
10474           fi
10475           allow_undefined_flag=$lt_save_allow_undefined_flag
10476         else
10477           cat conftest.err 1>&5
10478         fi
10479         $RM conftest*
10480
10481 fi
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10483 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10484       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10485       ;;
10486     esac
10487   fi
10488   ;;
10489 esac
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10648 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10649
10650 if test "$GCC" = yes; then
10651   case $host_os in
10652     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10653     *) lt_awk_arg="/^libraries:/" ;;
10654   esac
10655   case $host_os in
10656     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10657     *) lt_sed_strip_eq="s,=/,/,g" ;;
10658   esac
10659   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10660   case $lt_search_path_spec in
10661   *\;*)
10662     # if the path contains ";" then we assume it to be the separator
10663     # otherwise default to the standard path separator (i.e. ":") - it is
10664     # assumed that no part of a normal pathname contains ";" but that should
10665     # okay in the real world where ";" in dirpaths is itself problematic.
10666     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10667     ;;
10668   *)
10669     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10670     ;;
10671   esac
10672   # Ok, now we have the path, separated by spaces, we can step through it
10673   # and add multilib dir if necessary.
10674   lt_tmp_lt_search_path_spec=
10675   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10676   for lt_sys_path in $lt_search_path_spec; do
10677     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10678       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10679     else
10680       test -d "$lt_sys_path" && \
10681         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10682     fi
10683   done
10684   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10685 BEGIN {RS=" "; FS="/|\n";} {
10686   lt_foo="";
10687   lt_count=0;
10688   for (lt_i = NF; lt_i > 0; lt_i--) {
10689     if ($lt_i != "" && $lt_i != ".") {
10690       if ($lt_i == "..") {
10691         lt_count++;
10692       } else {
10693         if (lt_count == 0) {
10694           lt_foo="/" $lt_i lt_foo;
10695         } else {
10696           lt_count--;
10697         }
10698       }
10699     }
10700   }
10701   if (lt_foo != "") { lt_freq[lt_foo]++; }
10702   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10703 }'`
10704   # AWK program above erroneously prepends '/' to C:/dos/paths
10705   # for these hosts.
10706   case $host_os in
10707     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10708       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10709   esac
10710   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10711 else
10712   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10713 fi
10714 library_names_spec=
10715 libname_spec='lib$name'
10716 soname_spec=
10717 shrext_cmds=".so"
10718 postinstall_cmds=
10719 postuninstall_cmds=
10720 finish_cmds=
10721 finish_eval=
10722 shlibpath_var=
10723 shlibpath_overrides_runpath=unknown
10724 version_type=none
10725 dynamic_linker="$host_os ld.so"
10726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10727 need_lib_prefix=unknown
10728 hardcode_into_libs=no
10729
10730 # when you set need_version to no, make sure it does not cause -set_version
10731 # flags to be left without arguments
10732 need_version=unknown
10733
10734 case $host_os in
10735 aix3*)
10736   version_type=linux
10737   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10738   shlibpath_var=LIBPATH
10739
10740   # AIX 3 has no versioning support, so we append a major version to the name.
10741   soname_spec='${libname}${release}${shared_ext}$major'
10742   ;;
10743
10744 aix[4-9]*)
10745   version_type=linux
10746   need_lib_prefix=no
10747   need_version=no
10748   hardcode_into_libs=yes
10749   if test "$host_cpu" = ia64; then
10750     # AIX 5 supports IA64
10751     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10752     shlibpath_var=LD_LIBRARY_PATH
10753   else
10754     # With GCC up to 2.95.x, collect2 would create an import file
10755     # for dependence libraries.  The import file would start with
10756     # the line `#! .'.  This would cause the generated library to
10757     # depend on `.', always an invalid library.  This was fixed in
10758     # development snapshots of GCC prior to 3.0.
10759     case $host_os in
10760       aix4 | aix4.[01] | aix4.[01].*)
10761       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10762            echo ' yes '
10763            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10764         :
10765       else
10766         can_build_shared=no
10767       fi
10768       ;;
10769     esac
10770     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10771     # soname into executable. Probably we can add versioning support to
10772     # collect2, so additional links can be useful in future.
10773     if test "$aix_use_runtimelinking" = yes; then
10774       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10775       # instead of lib<name>.a to let people know that these are not
10776       # typical AIX shared libraries.
10777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778     else
10779       # We preserve .a as extension for shared libraries through AIX4.2
10780       # and later when we are not doing run time linking.
10781       library_names_spec='${libname}${release}.a $libname.a'
10782       soname_spec='${libname}${release}${shared_ext}$major'
10783     fi
10784     shlibpath_var=LIBPATH
10785   fi
10786   ;;
10787
10788 amigaos*)
10789   case $host_cpu in
10790   powerpc)
10791     # Since July 2007 AmigaOS4 officially supports .so libraries.
10792     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794     ;;
10795   m68k)
10796     library_names_spec='$libname.ixlibrary $libname.a'
10797     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10798     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10799     ;;
10800   esac
10801   ;;
10802
10803 beos*)
10804   library_names_spec='${libname}${shared_ext}'
10805   dynamic_linker="$host_os ld.so"
10806   shlibpath_var=LIBRARY_PATH
10807   ;;
10808
10809 bsdi[45]*)
10810   version_type=linux
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10815   shlibpath_var=LD_LIBRARY_PATH
10816   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10817   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10818   # the default ld.so.conf also contains /usr/contrib/lib and
10819   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10820   # libtool to hard-code these into programs
10821   ;;
10822
10823 cygwin* | mingw* | pw32* | cegcc*)
10824   version_type=windows
10825   shrext_cmds=".dll"
10826   need_version=no
10827   need_lib_prefix=no
10828
10829   case $GCC,$host_os in
10830   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10831     library_names_spec='$libname.dll.a'
10832     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10833     postinstall_cmds='base_file=`basename \${file}`~
10834       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10835       dldir=$destdir/`dirname \$dlpath`~
10836       test -d \$dldir || mkdir -p \$dldir~
10837       $install_prog $dir/$dlname \$dldir/$dlname~
10838       chmod a+x \$dldir/$dlname~
10839       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10840         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10841       fi'
10842     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10843       dlpath=$dir/\$dldll~
10844        $RM \$dlpath'
10845     shlibpath_overrides_runpath=yes
10846
10847     case $host_os in
10848     cygwin*)
10849       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10850       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851
10852       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10853       ;;
10854     mingw* | cegcc*)
10855       # MinGW DLLs use traditional 'lib' prefix
10856       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10857       ;;
10858     pw32*)
10859       # pw32 DLLs use 'pw' prefix rather than 'lib'
10860       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10861       ;;
10862     esac
10863     ;;
10864
10865   *)
10866     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10867     ;;
10868   esac
10869   dynamic_linker='Win32 ld.exe'
10870   # FIXME: first we should search . and the directory the executable is in
10871   shlibpath_var=PATH
10872   ;;
10873
10874 darwin* | rhapsody*)
10875   dynamic_linker="$host_os dyld"
10876   version_type=darwin
10877   need_lib_prefix=no
10878   need_version=no
10879   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10880   soname_spec='${libname}${release}${major}$shared_ext'
10881   shlibpath_overrides_runpath=yes
10882   shlibpath_var=DYLD_LIBRARY_PATH
10883   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10884
10885   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10887   ;;
10888
10889 dgux*)
10890   version_type=linux
10891   need_lib_prefix=no
10892   need_version=no
10893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10894   soname_spec='${libname}${release}${shared_ext}$major'
10895   shlibpath_var=LD_LIBRARY_PATH
10896   ;;
10897
10898 freebsd* | dragonfly*)
10899   # DragonFly does not have aout.  When/if they implement a new
10900   # versioning mechanism, adjust this.
10901   if test -x /usr/bin/objformat; then
10902     objformat=`/usr/bin/objformat`
10903   else
10904     case $host_os in
10905     freebsd[23].*) objformat=aout ;;
10906     *) objformat=elf ;;
10907     esac
10908   fi
10909   version_type=freebsd-$objformat
10910   case $version_type in
10911     freebsd-elf*)
10912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10913       need_version=no
10914       need_lib_prefix=no
10915       ;;
10916     freebsd-*)
10917       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10918       need_version=yes
10919       ;;
10920   esac
10921   shlibpath_var=LD_LIBRARY_PATH
10922   case $host_os in
10923   freebsd2.*)
10924     shlibpath_overrides_runpath=yes
10925     ;;
10926   freebsd3.[01]* | freebsdelf3.[01]*)
10927     shlibpath_overrides_runpath=yes
10928     hardcode_into_libs=yes
10929     ;;
10930   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10931   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10932     shlibpath_overrides_runpath=no
10933     hardcode_into_libs=yes
10934     ;;
10935   *) # from 4.6 on, and DragonFly
10936     shlibpath_overrides_runpath=yes
10937     hardcode_into_libs=yes
10938     ;;
10939   esac
10940   ;;
10941
10942 haiku*)
10943   version_type=linux
10944   need_lib_prefix=no
10945   need_version=no
10946   dynamic_linker="$host_os runtime_loader"
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   shlibpath_var=LIBRARY_PATH
10950   shlibpath_overrides_runpath=yes
10951   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10952   hardcode_into_libs=yes
10953   ;;
10954
10955 hpux9* | hpux10* | hpux11*)
10956   # Give a soname corresponding to the major version so that dld.sl refuses to
10957   # link against other versions.
10958   version_type=sunos
10959   need_lib_prefix=no
10960   need_version=no
10961   case $host_cpu in
10962   ia64*)
10963     shrext_cmds='.so'
10964     hardcode_into_libs=yes
10965     dynamic_linker="$host_os dld.so"
10966     shlibpath_var=LD_LIBRARY_PATH
10967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969     soname_spec='${libname}${release}${shared_ext}$major'
10970     if test "X$HPUX_IA64_MODE" = X32; then
10971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10972     else
10973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10974     fi
10975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10976     ;;
10977   hppa*64*)
10978     shrext_cmds='.sl'
10979     hardcode_into_libs=yes
10980     dynamic_linker="$host_os dld.sl"
10981     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984     soname_spec='${libname}${release}${shared_ext}$major'
10985     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987     ;;
10988   *)
10989     shrext_cmds='.sl'
10990     dynamic_linker="$host_os dld.sl"
10991     shlibpath_var=SHLIB_PATH
10992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994     soname_spec='${libname}${release}${shared_ext}$major'
10995     ;;
10996   esac
10997   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10998   postinstall_cmds='chmod 555 $lib'
10999   # or fails outright, so override atomically:
11000   install_override_mode=555
11001   ;;
11002
11003 interix[3-9]*)
11004   version_type=linux
11005   need_lib_prefix=no
11006   need_version=no
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   shlibpath_overrides_runpath=no
11012   hardcode_into_libs=yes
11013   ;;
11014
11015 irix5* | irix6* | nonstopux*)
11016   case $host_os in
11017     nonstopux*) version_type=nonstopux ;;
11018     *)
11019         if test "$lt_cv_prog_gnu_ld" = yes; then
11020                 version_type=linux
11021         else
11022                 version_type=irix
11023         fi ;;
11024   esac
11025   need_lib_prefix=no
11026   need_version=no
11027   soname_spec='${libname}${release}${shared_ext}$major'
11028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11029   case $host_os in
11030   irix5* | nonstopux*)
11031     libsuff= shlibsuff=
11032     ;;
11033   *)
11034     case $LD in # libtool.m4 will add one of these switches to LD
11035     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11036       libsuff= shlibsuff= libmagic=32-bit;;
11037     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11038       libsuff=32 shlibsuff=N32 libmagic=N32;;
11039     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11040       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11041     *) libsuff= shlibsuff= libmagic=never-match;;
11042     esac
11043     ;;
11044   esac
11045   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11046   shlibpath_overrides_runpath=no
11047   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11048   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11049   hardcode_into_libs=yes
11050   ;;
11051
11052 # No shared lib support for Linux oldld, aout, or coff.
11053 linux*oldld* | linux*aout* | linux*coff*)
11054   dynamic_linker=no
11055   ;;
11056
11057 # This must be Linux ELF.
11058
11059 # uclinux* changes (here and below) have been submitted to the libtool
11060 # project, but have not yet been accepted: they are GCC-local changes
11061 # for the time being.  (See
11062 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11063 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11064   version_type=linux
11065   need_lib_prefix=no
11066   need_version=no
11067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068   soname_spec='${libname}${release}${shared_ext}$major'
11069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   shlibpath_overrides_runpath=no
11072
11073   # Some binutils ld are patched to set DT_RUNPATH
11074   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11075   $as_echo_n "(cached) " >&6
11076 else
11077   lt_cv_shlibpath_overrides_runpath=no
11078     save_LDFLAGS=$LDFLAGS
11079     save_libdir=$libdir
11080     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11081          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h.  */
11084
11085 int
11086 main ()
11087 {
11088
11089   ;
11090   return 0;
11091 }
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11095   lt_cv_shlibpath_overrides_runpath=yes
11096 fi
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext \
11099     conftest$ac_exeext conftest.$ac_ext
11100     LDFLAGS=$save_LDFLAGS
11101     libdir=$save_libdir
11102
11103 fi
11104
11105   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11106
11107   # This implies no fast_install, which is unacceptable.
11108   # Some rework will be needed to allow for fast_install
11109   # before this can be enabled.
11110   hardcode_into_libs=yes
11111
11112   # Append ld.so.conf contents to the search path
11113   if test -f /etc/ld.so.conf; then
11114     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' ' '`
11115     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11116   fi
11117
11118   # We used to test for /lib/ld.so.1 and disable shared libraries on
11119   # powerpc, because MkLinux only supported shared libraries with the
11120   # GNU dynamic linker.  Since this was broken with cross compilers,
11121   # most powerpc-linux boxes support dynamic linking these days and
11122   # people can always --disable-shared, the test was removed, and we
11123   # assume the GNU/Linux dynamic linker is in use.
11124   dynamic_linker='GNU/Linux ld.so'
11125   ;;
11126
11127 netbsd*)
11128   version_type=sunos
11129   need_lib_prefix=no
11130   need_version=no
11131   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11133     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11134     dynamic_linker='NetBSD (a.out) ld.so'
11135   else
11136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11137     soname_spec='${libname}${release}${shared_ext}$major'
11138     dynamic_linker='NetBSD ld.elf_so'
11139   fi
11140   shlibpath_var=LD_LIBRARY_PATH
11141   shlibpath_overrides_runpath=yes
11142   hardcode_into_libs=yes
11143   ;;
11144
11145 newsos6)
11146   version_type=linux
11147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   shlibpath_overrides_runpath=yes
11150   ;;
11151
11152 *nto* | *qnx*)
11153   version_type=qnx
11154   need_lib_prefix=no
11155   need_version=no
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   soname_spec='${libname}${release}${shared_ext}$major'
11158   shlibpath_var=LD_LIBRARY_PATH
11159   shlibpath_overrides_runpath=no
11160   hardcode_into_libs=yes
11161   dynamic_linker='ldqnx.so'
11162   ;;
11163
11164 openbsd*)
11165   version_type=sunos
11166   sys_lib_dlsearch_path_spec="/usr/lib"
11167   need_lib_prefix=no
11168   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11169   case $host_os in
11170     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11171     *)                          need_version=no  ;;
11172   esac
11173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11175   shlibpath_var=LD_LIBRARY_PATH
11176   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11177     case $host_os in
11178       openbsd2.[89] | openbsd2.[89].*)
11179         shlibpath_overrides_runpath=no
11180         ;;
11181       *)
11182         shlibpath_overrides_runpath=yes
11183         ;;
11184       esac
11185   else
11186     shlibpath_overrides_runpath=yes
11187   fi
11188   ;;
11189
11190 os2*)
11191   libname_spec='$name'
11192   shrext_cmds=".dll"
11193   need_lib_prefix=no
11194   library_names_spec='$libname${shared_ext} $libname.a'
11195   dynamic_linker='OS/2 ld.exe'
11196   shlibpath_var=LIBPATH
11197   ;;
11198
11199 osf3* | osf4* | osf5*)
11200   version_type=osf
11201   need_lib_prefix=no
11202   need_version=no
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11207   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11208   ;;
11209
11210 rdos*)
11211   dynamic_linker=no
11212   ;;
11213
11214 solaris*)
11215   version_type=linux
11216   need_lib_prefix=no
11217   need_version=no
11218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   shlibpath_var=LD_LIBRARY_PATH
11221   shlibpath_overrides_runpath=yes
11222   hardcode_into_libs=yes
11223   # ldd complains unless libraries are executable
11224   postinstall_cmds='chmod +x $lib'
11225   ;;
11226
11227 sunos4*)
11228   version_type=sunos
11229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11231   shlibpath_var=LD_LIBRARY_PATH
11232   shlibpath_overrides_runpath=yes
11233   if test "$with_gnu_ld" = yes; then
11234     need_lib_prefix=no
11235   fi
11236   need_version=yes
11237   ;;
11238
11239 sysv4 | sysv4.3*)
11240   version_type=linux
11241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242   soname_spec='${libname}${release}${shared_ext}$major'
11243   shlibpath_var=LD_LIBRARY_PATH
11244   case $host_vendor in
11245     sni)
11246       shlibpath_overrides_runpath=no
11247       need_lib_prefix=no
11248       runpath_var=LD_RUN_PATH
11249       ;;
11250     siemens)
11251       need_lib_prefix=no
11252       ;;
11253     motorola)
11254       need_lib_prefix=no
11255       need_version=no
11256       shlibpath_overrides_runpath=no
11257       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11258       ;;
11259   esac
11260   ;;
11261
11262 sysv4*MP*)
11263   if test -d /usr/nec ;then
11264     version_type=linux
11265     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11266     soname_spec='$libname${shared_ext}.$major'
11267     shlibpath_var=LD_LIBRARY_PATH
11268   fi
11269   ;;
11270
11271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11272   version_type=freebsd-elf
11273   need_lib_prefix=no
11274   need_version=no
11275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11276   soname_spec='${libname}${release}${shared_ext}$major'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=yes
11279   hardcode_into_libs=yes
11280   if test "$with_gnu_ld" = yes; then
11281     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11282   else
11283     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11284     case $host_os in
11285       sco3.2v5*)
11286         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11287         ;;
11288     esac
11289   fi
11290   sys_lib_dlsearch_path_spec='/usr/lib'
11291   ;;
11292
11293 tpf*)
11294   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11295   version_type=linux
11296   need_lib_prefix=no
11297   need_version=no
11298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   shlibpath_overrides_runpath=no
11301   hardcode_into_libs=yes
11302   ;;
11303
11304 uts4*)
11305   version_type=linux
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   ;;
11310
11311 *)
11312   dynamic_linker=no
11313   ;;
11314 esac
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11316 $as_echo "$dynamic_linker" >&6; }
11317 test "$dynamic_linker" = no && can_build_shared=no
11318
11319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11320 if test "$GCC" = yes; then
11321   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11322 fi
11323
11324 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11325   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11326 fi
11327 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11328   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11329 fi
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11423 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11424 hardcode_action=
11425 if test -n "$hardcode_libdir_flag_spec" ||
11426    test -n "$runpath_var" ||
11427    test "X$hardcode_automatic" = "Xyes" ; then
11428
11429   # We can hardcode non-existent directories.
11430   if test "$hardcode_direct" != no &&
11431      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11432      # have to relink, otherwise we might link with an installed library
11433      # when we should be linking with a yet-to-be-installed one
11434      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11435      test "$hardcode_minus_L" != no; then
11436     # Linking always hardcodes the temporary library directory.
11437     hardcode_action=relink
11438   else
11439     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11440     hardcode_action=immediate
11441   fi
11442 else
11443   # We cannot hardcode anything, or else we can only hardcode existing
11444   # directories.
11445   hardcode_action=unsupported
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11448 $as_echo "$hardcode_action" >&6; }
11449
11450 if test "$hardcode_action" = relink ||
11451    test "$inherit_rpath" = yes; then
11452   # Fast installation is not supported
11453   enable_fast_install=no
11454 elif test "$shlibpath_overrides_runpath" = yes ||
11455      test "$enable_shared" = no; then
11456   # Fast installation is not necessary
11457   enable_fast_install=needless
11458 fi
11459
11460
11461
11462
11463
11464
11465   if test "x$enable_dlopen" != xyes; then
11466   enable_dlopen=unknown
11467   enable_dlopen_self=unknown
11468   enable_dlopen_self_static=unknown
11469 else
11470   lt_cv_dlopen=no
11471   lt_cv_dlopen_libs=
11472
11473   case $host_os in
11474   beos*)
11475     lt_cv_dlopen="load_add_on"
11476     lt_cv_dlopen_libs=
11477     lt_cv_dlopen_self=yes
11478     ;;
11479
11480   mingw* | pw32* | cegcc*)
11481     lt_cv_dlopen="LoadLibrary"
11482     lt_cv_dlopen_libs=
11483     ;;
11484
11485   cygwin*)
11486     lt_cv_dlopen="dlopen"
11487     lt_cv_dlopen_libs=
11488     ;;
11489
11490   darwin*)
11491   # if libdl is installed we need to link against it
11492     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11494 if ${ac_cv_lib_dl_dlopen+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   ac_check_lib_save_LIBS=$LIBS
11498 LIBS="-ldl  $LIBS"
11499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11500 /* end confdefs.h.  */
11501
11502 /* Override any GCC internal prototype to avoid an error.
11503    Use char because int might match the return type of a GCC
11504    builtin and then its argument prototype would still apply.  */
11505 #ifdef __cplusplus
11506 extern "C"
11507 #endif
11508 char dlopen ();
11509 int
11510 main ()
11511 {
11512 return dlopen ();
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 if ac_fn_c_try_link "$LINENO"; then :
11518   ac_cv_lib_dl_dlopen=yes
11519 else
11520   ac_cv_lib_dl_dlopen=no
11521 fi
11522 rm -f core conftest.err conftest.$ac_objext \
11523     conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11529   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11530 else
11531
11532     lt_cv_dlopen="dyld"
11533     lt_cv_dlopen_libs=
11534     lt_cv_dlopen_self=yes
11535
11536 fi
11537
11538     ;;
11539
11540   *)
11541     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11542 if test "x$ac_cv_func_shl_load" = xyes; then :
11543   lt_cv_dlopen="shl_load"
11544 else
11545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11546 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11547 if ${ac_cv_lib_dld_shl_load+:} false; then :
11548   $as_echo_n "(cached) " >&6
11549 else
11550   ac_check_lib_save_LIBS=$LIBS
11551 LIBS="-ldld  $LIBS"
11552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11553 /* end confdefs.h.  */
11554
11555 /* Override any GCC internal prototype to avoid an error.
11556    Use char because int might match the return type of a GCC
11557    builtin and then its argument prototype would still apply.  */
11558 #ifdef __cplusplus
11559 extern "C"
11560 #endif
11561 char shl_load ();
11562 int
11563 main ()
11564 {
11565 return shl_load ();
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 if ac_fn_c_try_link "$LINENO"; then :
11571   ac_cv_lib_dld_shl_load=yes
11572 else
11573   ac_cv_lib_dld_shl_load=no
11574 fi
11575 rm -f core conftest.err conftest.$ac_objext \
11576     conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11580 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11581 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11582   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11583 else
11584   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11585 if test "x$ac_cv_func_dlopen" = xyes; then :
11586   lt_cv_dlopen="dlopen"
11587 else
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11589 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11590 if ${ac_cv_lib_dl_dlopen+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-ldl  $LIBS"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h.  */
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599    Use char because int might match the return type of a GCC
11600    builtin and then its argument prototype would still apply.  */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char dlopen ();
11605 int
11606 main ()
11607 {
11608 return dlopen ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614   ac_cv_lib_dl_dlopen=yes
11615 else
11616   ac_cv_lib_dl_dlopen=no
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext \
11619     conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11621 fi
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11623 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11624 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11625   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11626 else
11627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11628 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11629 if ${ac_cv_lib_svld_dlopen+:} false; then :
11630   $as_echo_n "(cached) " >&6
11631 else
11632   ac_check_lib_save_LIBS=$LIBS
11633 LIBS="-lsvld  $LIBS"
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h.  */
11636
11637 /* Override any GCC internal prototype to avoid an error.
11638    Use char because int might match the return type of a GCC
11639    builtin and then its argument prototype would still apply.  */
11640 #ifdef __cplusplus
11641 extern "C"
11642 #endif
11643 char dlopen ();
11644 int
11645 main ()
11646 {
11647 return dlopen ();
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 if ac_fn_c_try_link "$LINENO"; then :
11653   ac_cv_lib_svld_dlopen=yes
11654 else
11655   ac_cv_lib_svld_dlopen=no
11656 fi
11657 rm -f core conftest.err conftest.$ac_objext \
11658     conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11660 fi
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11662 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11663 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11664   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11665 else
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11667 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11668 if ${ac_cv_lib_dld_dld_link+:} false; then :
11669   $as_echo_n "(cached) " >&6
11670 else
11671   ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-ldld  $LIBS"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h.  */
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char dld_link ();
11683 int
11684 main ()
11685 {
11686 return dld_link ();
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 if ac_fn_c_try_link "$LINENO"; then :
11692   ac_cv_lib_dld_dld_link=yes
11693 else
11694   ac_cv_lib_dld_dld_link=no
11695 fi
11696 rm -f core conftest.err conftest.$ac_objext \
11697     conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11701 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11702 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11703   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11704 fi
11705
11706
11707 fi
11708
11709
11710 fi
11711
11712
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721     ;;
11722   esac
11723
11724   if test "x$lt_cv_dlopen" != xno; then
11725     enable_dlopen=yes
11726   else
11727     enable_dlopen=no
11728   fi
11729
11730   case $lt_cv_dlopen in
11731   dlopen)
11732     save_CPPFLAGS="$CPPFLAGS"
11733     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11734
11735     save_LDFLAGS="$LDFLAGS"
11736     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11737
11738     save_LIBS="$LIBS"
11739     LIBS="$lt_cv_dlopen_libs $LIBS"
11740
11741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11742 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11743 if ${lt_cv_dlopen_self+:} false; then :
11744   $as_echo_n "(cached) " >&6
11745 else
11746           if test "$cross_compiling" = yes; then :
11747   lt_cv_dlopen_self=cross
11748 else
11749   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11750   lt_status=$lt_dlunknown
11751   cat > conftest.$ac_ext <<_LT_EOF
11752 #line 11752 "configure"
11753 #include "confdefs.h"
11754
11755 #if HAVE_DLFCN_H
11756 #include <dlfcn.h>
11757 #endif
11758
11759 #include <stdio.h>
11760
11761 #ifdef RTLD_GLOBAL
11762 #  define LT_DLGLOBAL           RTLD_GLOBAL
11763 #else
11764 #  ifdef DL_GLOBAL
11765 #    define LT_DLGLOBAL         DL_GLOBAL
11766 #  else
11767 #    define LT_DLGLOBAL         0
11768 #  endif
11769 #endif
11770
11771 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11772    find out it does not work in some platform. */
11773 #ifndef LT_DLLAZY_OR_NOW
11774 #  ifdef RTLD_LAZY
11775 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11776 #  else
11777 #    ifdef DL_LAZY
11778 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11779 #    else
11780 #      ifdef RTLD_NOW
11781 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11782 #      else
11783 #        ifdef DL_NOW
11784 #          define LT_DLLAZY_OR_NOW      DL_NOW
11785 #        else
11786 #          define LT_DLLAZY_OR_NOW      0
11787 #        endif
11788 #      endif
11789 #    endif
11790 #  endif
11791 #endif
11792
11793 /* When -fvisbility=hidden is used, assume the code has been annotated
11794    correspondingly for the symbols needed.  */
11795 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11796 void fnord () __attribute__((visibility("default")));
11797 #endif
11798
11799 void fnord () { int i=42; }
11800 int main ()
11801 {
11802   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11803   int status = $lt_dlunknown;
11804
11805   if (self)
11806     {
11807       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11808       else
11809         {
11810           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11811           else puts (dlerror ());
11812         }
11813       /* dlclose (self); */
11814     }
11815   else
11816     puts (dlerror ());
11817
11818   return status;
11819 }
11820 _LT_EOF
11821   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11822   (eval $ac_link) 2>&5
11823   ac_status=$?
11824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11825   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11826     (./conftest; exit; ) >&5 2>/dev/null
11827     lt_status=$?
11828     case x$lt_status in
11829       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11830       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11831       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11832     esac
11833   else :
11834     # compilation failed
11835     lt_cv_dlopen_self=no
11836   fi
11837 fi
11838 rm -fr conftest*
11839
11840
11841 fi
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11843 $as_echo "$lt_cv_dlopen_self" >&6; }
11844
11845     if test "x$lt_cv_dlopen_self" = xyes; then
11846       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11847       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11848 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11849 if ${lt_cv_dlopen_self_static+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852           if test "$cross_compiling" = yes; then :
11853   lt_cv_dlopen_self_static=cross
11854 else
11855   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11856   lt_status=$lt_dlunknown
11857   cat > conftest.$ac_ext <<_LT_EOF
11858 #line 11858 "configure"
11859 #include "confdefs.h"
11860
11861 #if HAVE_DLFCN_H
11862 #include <dlfcn.h>
11863 #endif
11864
11865 #include <stdio.h>
11866
11867 #ifdef RTLD_GLOBAL
11868 #  define LT_DLGLOBAL           RTLD_GLOBAL
11869 #else
11870 #  ifdef DL_GLOBAL
11871 #    define LT_DLGLOBAL         DL_GLOBAL
11872 #  else
11873 #    define LT_DLGLOBAL         0
11874 #  endif
11875 #endif
11876
11877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11878    find out it does not work in some platform. */
11879 #ifndef LT_DLLAZY_OR_NOW
11880 #  ifdef RTLD_LAZY
11881 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11882 #  else
11883 #    ifdef DL_LAZY
11884 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11885 #    else
11886 #      ifdef RTLD_NOW
11887 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11888 #      else
11889 #        ifdef DL_NOW
11890 #          define LT_DLLAZY_OR_NOW      DL_NOW
11891 #        else
11892 #          define LT_DLLAZY_OR_NOW      0
11893 #        endif
11894 #      endif
11895 #    endif
11896 #  endif
11897 #endif
11898
11899 /* When -fvisbility=hidden is used, assume the code has been annotated
11900    correspondingly for the symbols needed.  */
11901 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11902 void fnord () __attribute__((visibility("default")));
11903 #endif
11904
11905 void fnord () { int i=42; }
11906 int main ()
11907 {
11908   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11909   int status = $lt_dlunknown;
11910
11911   if (self)
11912     {
11913       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11914       else
11915         {
11916           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11917           else puts (dlerror ());
11918         }
11919       /* dlclose (self); */
11920     }
11921   else
11922     puts (dlerror ());
11923
11924   return status;
11925 }
11926 _LT_EOF
11927   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11928   (eval $ac_link) 2>&5
11929   ac_status=$?
11930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11931   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11932     (./conftest; exit; ) >&5 2>/dev/null
11933     lt_status=$?
11934     case x$lt_status in
11935       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11936       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11937       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11938     esac
11939   else :
11940     # compilation failed
11941     lt_cv_dlopen_self_static=no
11942   fi
11943 fi
11944 rm -fr conftest*
11945
11946
11947 fi
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11949 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11950     fi
11951
11952     CPPFLAGS="$save_CPPFLAGS"
11953     LDFLAGS="$save_LDFLAGS"
11954     LIBS="$save_LIBS"
11955     ;;
11956   esac
11957
11958   case $lt_cv_dlopen_self in
11959   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11960   *) enable_dlopen_self=unknown ;;
11961   esac
11962
11963   case $lt_cv_dlopen_self_static in
11964   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11965   *) enable_dlopen_self_static=unknown ;;
11966   esac
11967 fi
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985 striplib=
11986 old_striplib=
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11988 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11989 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11990   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11991   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11993 $as_echo "yes" >&6; }
11994 else
11995 # FIXME - insert some real tests, host_os isn't really good enough
11996   case $host_os in
11997   darwin*)
11998     if test -n "$STRIP" ; then
11999       striplib="$STRIP -x"
12000       old_striplib="$STRIP -S"
12001       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12002 $as_echo "yes" >&6; }
12003     else
12004       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12006     fi
12007     ;;
12008   *)
12009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010 $as_echo "no" >&6; }
12011     ;;
12012   esac
12013 fi
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026   # Report which library types will actually be built
12027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12028 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12030 $as_echo "$can_build_shared" >&6; }
12031
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12033 $as_echo_n "checking whether to build shared libraries... " >&6; }
12034   test "$can_build_shared" = "no" && enable_shared=no
12035
12036   # On AIX, shared libraries and static libraries use the same namespace, and
12037   # are all built from PIC.
12038   case $host_os in
12039   aix3*)
12040     test "$enable_shared" = yes && enable_static=no
12041     if test -n "$RANLIB"; then
12042       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12043       postinstall_cmds='$RANLIB $lib'
12044     fi
12045     ;;
12046
12047   aix[4-9]*)
12048     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12049       test "$enable_shared" = yes && enable_static=no
12050     fi
12051     ;;
12052   esac
12053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12054 $as_echo "$enable_shared" >&6; }
12055
12056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12057 $as_echo_n "checking whether to build static libraries... " >&6; }
12058   # Make sure either enable_shared or enable_static is yes.
12059   test "$enable_shared" = yes || enable_static=yes
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12061 $as_echo "$enable_static" >&6; }
12062
12063
12064
12065
12066 fi
12067 ac_ext=c
12068 ac_cpp='$CPP $CPPFLAGS'
12069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12072
12073 CC="$lt_save_CC"
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087         ac_config_commands="$ac_config_commands libtool"
12088
12089
12090
12091
12092 # Only expand once:
12093
12094
12095
12096
12097
12098   gdc_save_DFLAGS=$GDCFLAGS
12099   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
12100
12101
12102 # Source file extension for D test sources.
12103 ac_ext=d
12104
12105 # Object file extension for compiled D test sources.
12106 objext=o
12107 objext_D=$objext
12108
12109 # Code to be used in simple compile tests
12110 lt_simple_compile_test_code="\
12111   module object;
12112   shared int some_variable = 0;
12113 "
12114
12115 # Code to be used in simple link tests
12116 lt_simple_link_test_code="\
12117   module object;
12118   extern(C) int main() { return 0; }
12119 "
12120
12121 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12122
12123
12124
12125
12126
12127
12128 # If no C compiler was specified, use CC.
12129 LTCC=${LTCC-"$CC"}
12130
12131 # If no C compiler flags were specified, use CFLAGS.
12132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12133
12134 # Allow CC to be a program name with arguments.
12135 compiler=$CC
12136
12137
12138 # save warnings/boilerplate of simple test code
12139 ac_outfile=conftest.$ac_objext
12140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12142 _lt_compiler_boilerplate=`cat conftest.err`
12143 $RM conftest*
12144
12145 ac_outfile=conftest.$ac_objext
12146 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12148 _lt_linker_boilerplate=`cat conftest.err`
12149 $RM -r conftest*
12150
12151
12152 # Allow CC to be a program name with arguments.
12153 lt_save_CC=$CC
12154 lt_save_CFLAGS=$CFLAGS
12155 lt_save_GCC=$GCC
12156 GCC=yes
12157 CC=${GDC-"gdc"}
12158 CFLAGS=$GDCFLAGS
12159 compiler=$CC
12160 compiler_D=$CC
12161 LD_D=$CC
12162 for cc_temp in $compiler""; do
12163   case $cc_temp in
12164     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12165     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12166     \-*) ;;
12167     *) break;;
12168   esac
12169 done
12170 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12171
12172
12173 # GDC did not exist at the time GCC didn't implicitly link libc in.
12174 archive_cmds_need_lc_D=no
12175
12176 old_archive_cmds_D=$old_archive_cmds
12177 reload_flag_D=$reload_flag
12178 reload_cmds_D=$reload_cmds
12179
12180 ## CAVEAT EMPTOR:
12181 ## There is no encapsulation within the following macros, do not change
12182 ## the running order or otherwise move them around unless you know exactly
12183 ## what you are doing...
12184 if test -n "$compiler"; then
12185
12186 lt_prog_compiler_no_builtin_flag_D=
12187
12188 if test "$GCC" = yes; then
12189   case $cc_basename in
12190   nvcc*)
12191     lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12192   *)
12193     lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12194   esac
12195
12196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12197 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12198 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12199   $as_echo_n "(cached) " >&6
12200 else
12201   lt_cv_prog_compiler_rtti_exceptions=no
12202    ac_outfile=conftest.$ac_objext
12203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12204    lt_compiler_flag="-fno-rtti -fno-exceptions"
12205    # Insert the option either (1) after the last *FLAGS variable, or
12206    # (2) before a word containing "conftest.", or (3) at the end.
12207    # Note that $ac_compile itself does not contain backslashes and begins
12208    # with a dollar sign (not a hyphen), so the echo should work correctly.
12209    # The option is referenced via a variable to avoid confusing sed.
12210    lt_compile=`echo "$ac_compile" | $SED \
12211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12213    -e 's:$: $lt_compiler_flag:'`
12214    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12215    (eval "$lt_compile" 2>conftest.err)
12216    ac_status=$?
12217    cat conftest.err >&5
12218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219    if (exit $ac_status) && test -s "$ac_outfile"; then
12220      # The compiler can only warn and ignore the option if not recognized
12221      # So say no if there are warnings other than the usual output.
12222      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12223      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12224      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12225        lt_cv_prog_compiler_rtti_exceptions=yes
12226      fi
12227    fi
12228    $RM conftest*
12229
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12232 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12233
12234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12235     lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12236 else
12237     :
12238 fi
12239
12240 fi
12241
12242
12243
12244   lt_prog_compiler_wl_D=
12245 lt_prog_compiler_pic_D=
12246 lt_prog_compiler_static_D=
12247
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12250
12251   if test "$GCC" = yes; then
12252     lt_prog_compiler_wl_D='-Wl,'
12253     lt_prog_compiler_static_D='-static'
12254
12255     case $host_os in
12256       aix*)
12257       # All AIX code is PIC.
12258       if test "$host_cpu" = ia64; then
12259         # AIX 5 now supports IA64 processor
12260         lt_prog_compiler_static_D='-Bstatic'
12261       fi
12262       lt_prog_compiler_pic_D='-fPIC'
12263       ;;
12264
12265     amigaos*)
12266       case $host_cpu in
12267       powerpc)
12268             # see comment about AmigaOS4 .so support
12269             lt_prog_compiler_pic_D='-fPIC'
12270         ;;
12271       m68k)
12272             # FIXME: we need at least 68020 code to build shared libraries, but
12273             # adding the `-m68020' flag to GCC prevents building anything better,
12274             # like `-m68040'.
12275             lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12276         ;;
12277       esac
12278       ;;
12279
12280     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12281       # PIC is the default for these OSes.
12282       ;;
12283
12284     mingw* | cygwin* | pw32* | os2* | cegcc*)
12285       # This hack is so that the source file can tell whether it is being
12286       # built for inclusion in a dll (and should export symbols for example).
12287       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12288       # (--disable-auto-import) libraries
12289       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12290       ;;
12291
12292     darwin* | rhapsody*)
12293       # PIC is the default on this platform
12294       # Common symbols not allowed in MH_DYLIB files
12295       lt_prog_compiler_pic_D='-fno-common'
12296       ;;
12297
12298     haiku*)
12299       # PIC is the default for Haiku.
12300       # The "-static" flag exists, but is broken.
12301       lt_prog_compiler_static_D=
12302       ;;
12303
12304     hpux*)
12305       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12306       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12307       # sets the default TLS model and affects inlining.
12308       case $host_cpu in
12309       hppa*64*)
12310         # +Z the default
12311         ;;
12312       *)
12313         lt_prog_compiler_pic_D='-fPIC'
12314         ;;
12315       esac
12316       ;;
12317
12318     interix[3-9]*)
12319       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12320       # Instead, we relocate shared libraries at runtime.
12321       ;;
12322
12323     msdosdjgpp*)
12324       # Just because we use GCC doesn't mean we suddenly get shared libraries
12325       # on systems that don't support them.
12326       lt_prog_compiler_can_build_shared_D=no
12327       enable_shared=no
12328       ;;
12329
12330     *nto* | *qnx*)
12331       # QNX uses GNU C++, but need to define -shared option too, otherwise
12332       # it will coredump.
12333       lt_prog_compiler_pic_D='-fPIC -shared'
12334       ;;
12335
12336     sysv4*MP*)
12337       if test -d /usr/nec; then
12338         lt_prog_compiler_pic_D=-Kconform_pic
12339       fi
12340       ;;
12341
12342     *)
12343       lt_prog_compiler_pic_D='-fPIC'
12344       ;;
12345     esac
12346
12347     case $cc_basename in
12348     nvcc*) # Cuda Compiler Driver 2.2
12349       lt_prog_compiler_wl_D='-Xlinker '
12350       lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12351       ;;
12352     esac
12353   else
12354     # PORTME Check for flag to pass linker flags through the system compiler.
12355     case $host_os in
12356     aix*)
12357       lt_prog_compiler_wl_D='-Wl,'
12358       if test "$host_cpu" = ia64; then
12359         # AIX 5 now supports IA64 processor
12360         lt_prog_compiler_static_D='-Bstatic'
12361       else
12362         lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12363       fi
12364       ;;
12365
12366     mingw* | cygwin* | pw32* | os2* | cegcc*)
12367       # This hack is so that the source file can tell whether it is being
12368       # built for inclusion in a dll (and should export symbols for example).
12369       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12370       ;;
12371
12372     hpux9* | hpux10* | hpux11*)
12373       lt_prog_compiler_wl_D='-Wl,'
12374       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12375       # not for PA HP-UX.
12376       case $host_cpu in
12377       hppa*64*|ia64*)
12378         # +Z the default
12379         ;;
12380       *)
12381         lt_prog_compiler_pic_D='+Z'
12382         ;;
12383       esac
12384       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12385       lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12386       ;;
12387
12388     irix5* | irix6* | nonstopux*)
12389       lt_prog_compiler_wl_D='-Wl,'
12390       # PIC (with -KPIC) is the default.
12391       lt_prog_compiler_static_D='-non_shared'
12392       ;;
12393
12394     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12395       case $cc_basename in
12396       # old Intel for x86_64 which still supported -KPIC.
12397       ecc*)
12398         lt_prog_compiler_wl_D='-Wl,'
12399         lt_prog_compiler_pic_D='-KPIC'
12400         lt_prog_compiler_static_D='-static'
12401         ;;
12402       # icc used to be incompatible with GCC.
12403       # ICC 10 doesn't accept -KPIC any more.
12404       icc* | ifort*)
12405         lt_prog_compiler_wl_D='-Wl,'
12406         lt_prog_compiler_pic_D='-fPIC'
12407         lt_prog_compiler_static_D='-static'
12408         ;;
12409       # Lahey Fortran 8.1.
12410       lf95*)
12411         lt_prog_compiler_wl_D='-Wl,'
12412         lt_prog_compiler_pic_D='--shared'
12413         lt_prog_compiler_static_D='--static'
12414         ;;
12415       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12416         # Portland Group compilers (*not* the Pentium gcc compiler,
12417         # which looks to be a dead project)
12418         lt_prog_compiler_wl_D='-Wl,'
12419         lt_prog_compiler_pic_D='-fpic'
12420         lt_prog_compiler_static_D='-Bstatic'
12421         ;;
12422       ccc*)
12423         lt_prog_compiler_wl_D='-Wl,'
12424         # All Alpha code is PIC.
12425         lt_prog_compiler_static_D='-non_shared'
12426         ;;
12427       xl* | bgxl* | bgf* | mpixl*)
12428         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12429         lt_prog_compiler_wl_D='-Wl,'
12430         lt_prog_compiler_pic_D='-qpic'
12431         lt_prog_compiler_static_D='-qstaticlink'
12432         ;;
12433       *)
12434         case `$CC -V 2>&1 | sed 5q` in
12435         *Sun\ F* | *Sun*Fortran*)
12436           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12437           lt_prog_compiler_pic_D='-KPIC'
12438           lt_prog_compiler_static_D='-Bstatic'
12439           lt_prog_compiler_wl_D=''
12440           ;;
12441         *Sun\ C*)
12442           # Sun C 5.9
12443           lt_prog_compiler_pic_D='-KPIC'
12444           lt_prog_compiler_static_D='-Bstatic'
12445           lt_prog_compiler_wl_D='-Wl,'
12446           ;;
12447         esac
12448         ;;
12449       esac
12450       ;;
12451
12452     newsos6)
12453       lt_prog_compiler_pic_D='-KPIC'
12454       lt_prog_compiler_static_D='-Bstatic'
12455       ;;
12456
12457     *nto* | *qnx*)
12458       # QNX uses GNU C++, but need to define -shared option too, otherwise
12459       # it will coredump.
12460       lt_prog_compiler_pic_D='-fPIC -shared'
12461       ;;
12462
12463     osf3* | osf4* | osf5*)
12464       lt_prog_compiler_wl_D='-Wl,'
12465       # All OSF/1 code is PIC.
12466       lt_prog_compiler_static_D='-non_shared'
12467       ;;
12468
12469     rdos*)
12470       lt_prog_compiler_static_D='-non_shared'
12471       ;;
12472
12473     solaris*)
12474       lt_prog_compiler_pic_D='-KPIC'
12475       lt_prog_compiler_static_D='-Bstatic'
12476       case $cc_basename in
12477       f77* | f90* | f95*)
12478         lt_prog_compiler_wl_D='-Qoption ld ';;
12479       *)
12480         lt_prog_compiler_wl_D='-Wl,';;
12481       esac
12482       ;;
12483
12484     sunos4*)
12485       lt_prog_compiler_wl_D='-Qoption ld '
12486       lt_prog_compiler_pic_D='-PIC'
12487       lt_prog_compiler_static_D='-Bstatic'
12488       ;;
12489
12490     sysv4 | sysv4.2uw2* | sysv4.3*)
12491       lt_prog_compiler_wl_D='-Wl,'
12492       lt_prog_compiler_pic_D='-KPIC'
12493       lt_prog_compiler_static_D='-Bstatic'
12494       ;;
12495
12496     sysv4*MP*)
12497       if test -d /usr/nec ;then
12498         lt_prog_compiler_pic_D='-Kconform_pic'
12499         lt_prog_compiler_static_D='-Bstatic'
12500       fi
12501       ;;
12502
12503     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12504       lt_prog_compiler_wl_D='-Wl,'
12505       lt_prog_compiler_pic_D='-KPIC'
12506       lt_prog_compiler_static_D='-Bstatic'
12507       ;;
12508
12509     unicos*)
12510       lt_prog_compiler_wl_D='-Wl,'
12511       lt_prog_compiler_can_build_shared_D=no
12512       ;;
12513
12514     uts4*)
12515       lt_prog_compiler_pic_D='-pic'
12516       lt_prog_compiler_static_D='-Bstatic'
12517       ;;
12518
12519     *)
12520       lt_prog_compiler_can_build_shared_D=no
12521       ;;
12522     esac
12523   fi
12524
12525 case $host_os in
12526   # For platforms which do not support PIC, -DPIC is meaningless:
12527   *djgpp*)
12528     lt_prog_compiler_pic_D=
12529     ;;
12530   *)
12531     lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12532     ;;
12533 esac
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12535 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12536
12537
12538
12539 #
12540 # Check to make sure the PIC flag actually works.
12541 #
12542 if test -n "$lt_prog_compiler_pic_D"; then
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12545 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12546   $as_echo_n "(cached) " >&6
12547 else
12548   lt_cv_prog_compiler_pic_works_D=no
12549    ac_outfile=conftest.$ac_objext
12550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12551    lt_compiler_flag="$lt_prog_compiler_pic_D"
12552    # Insert the option either (1) after the last *FLAGS variable, or
12553    # (2) before a word containing "conftest.", or (3) at the end.
12554    # Note that $ac_compile itself does not contain backslashes and begins
12555    # with a dollar sign (not a hyphen), so the echo should work correctly.
12556    # The option is referenced via a variable to avoid confusing sed.
12557    lt_compile=`echo "$ac_compile" | $SED \
12558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12560    -e 's:$: $lt_compiler_flag:'`
12561    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12562    (eval "$lt_compile" 2>conftest.err)
12563    ac_status=$?
12564    cat conftest.err >&5
12565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566    if (exit $ac_status) && test -s "$ac_outfile"; then
12567      # The compiler can only warn and ignore the option if not recognized
12568      # So say no if there are warnings other than the usual output.
12569      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12570      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12571      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12572        lt_cv_prog_compiler_pic_works_D=yes
12573      fi
12574    fi
12575    $RM conftest*
12576
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12579 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12580
12581 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12582     case $lt_prog_compiler_pic_D in
12583      "" | " "*) ;;
12584      *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12585      esac
12586 else
12587     lt_prog_compiler_pic_D=
12588      lt_prog_compiler_can_build_shared_D=no
12589 fi
12590
12591 fi
12592
12593
12594
12595 #
12596 # Check to make sure the static flag actually works.
12597 #
12598 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12600 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12601 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12602   $as_echo_n "(cached) " >&6
12603 else
12604   lt_cv_prog_compiler_static_works_D=no
12605    save_LDFLAGS="$LDFLAGS"
12606    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12607    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12608    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12609      # The linker can only warn and ignore the option if not recognized
12610      # So say no if there are warnings
12611      if test -s conftest.err; then
12612        # Append any errors to the config.log.
12613        cat conftest.err 1>&5
12614        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12615        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12616        if diff conftest.exp conftest.er2 >/dev/null; then
12617          lt_cv_prog_compiler_static_works_D=yes
12618        fi
12619      else
12620        lt_cv_prog_compiler_static_works_D=yes
12621      fi
12622    fi
12623    $RM -r conftest*
12624    LDFLAGS="$save_LDFLAGS"
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12628 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12629
12630 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12631     :
12632 else
12633     lt_prog_compiler_static_D=
12634 fi
12635
12636
12637
12638
12639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12640 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12641 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12642   $as_echo_n "(cached) " >&6
12643 else
12644   lt_cv_prog_compiler_c_o_D=no
12645    $RM -r conftest 2>/dev/null
12646    mkdir conftest
12647    cd conftest
12648    mkdir out
12649    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12650
12651    lt_compiler_flag="-o out/conftest2.$ac_objext"
12652    # Insert the option either (1) after the last *FLAGS variable, or
12653    # (2) before a word containing "conftest.", or (3) at the end.
12654    # Note that $ac_compile itself does not contain backslashes and begins
12655    # with a dollar sign (not a hyphen), so the echo should work correctly.
12656    lt_compile=`echo "$ac_compile" | $SED \
12657    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12658    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12659    -e 's:$: $lt_compiler_flag:'`
12660    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12661    (eval "$lt_compile" 2>out/conftest.err)
12662    ac_status=$?
12663    cat out/conftest.err >&5
12664    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12666    then
12667      # The compiler can only warn and ignore the option if not recognized
12668      # So say no if there are warnings
12669      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12670      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12671      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12672        lt_cv_prog_compiler_c_o_D=yes
12673      fi
12674    fi
12675    chmod u+w . 2>&5
12676    $RM conftest*
12677    # SGI C++ compiler will create directory out/ii_files/ for
12678    # template instantiation
12679    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12680    $RM out/* && rmdir out
12681    cd ..
12682    $RM -r conftest
12683    $RM conftest*
12684
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12687 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12688
12689
12690
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12692 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12693 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   lt_cv_prog_compiler_c_o_D=no
12697    $RM -r conftest 2>/dev/null
12698    mkdir conftest
12699    cd conftest
12700    mkdir out
12701    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12702
12703    lt_compiler_flag="-o out/conftest2.$ac_objext"
12704    # Insert the option either (1) after the last *FLAGS variable, or
12705    # (2) before a word containing "conftest.", or (3) at the end.
12706    # Note that $ac_compile itself does not contain backslashes and begins
12707    # with a dollar sign (not a hyphen), so the echo should work correctly.
12708    lt_compile=`echo "$ac_compile" | $SED \
12709    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12710    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12711    -e 's:$: $lt_compiler_flag:'`
12712    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12713    (eval "$lt_compile" 2>out/conftest.err)
12714    ac_status=$?
12715    cat out/conftest.err >&5
12716    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12718    then
12719      # The compiler can only warn and ignore the option if not recognized
12720      # So say no if there are warnings
12721      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12722      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12723      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12724        lt_cv_prog_compiler_c_o_D=yes
12725      fi
12726    fi
12727    chmod u+w . 2>&5
12728    $RM conftest*
12729    # SGI C++ compiler will create directory out/ii_files/ for
12730    # template instantiation
12731    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12732    $RM out/* && rmdir out
12733    cd ..
12734    $RM -r conftest
12735    $RM conftest*
12736
12737 fi
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12739 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12740
12741
12742
12743
12744 hard_links="nottested"
12745 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12746   # do not overwrite the value of need_locks provided by the user
12747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12748 $as_echo_n "checking if we can lock with hard links... " >&6; }
12749   hard_links=yes
12750   $RM conftest*
12751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752   touch conftest.a
12753   ln conftest.a conftest.b 2>&5 || hard_links=no
12754   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12756 $as_echo "$hard_links" >&6; }
12757   if test "$hard_links" = no; then
12758     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12759 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12760     need_locks=warn
12761   fi
12762 else
12763   need_locks=no
12764 fi
12765
12766
12767
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12769 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12770
12771   runpath_var=
12772   allow_undefined_flag_D=
12773   always_export_symbols_D=no
12774   archive_cmds_D=
12775   archive_expsym_cmds_D=
12776   compiler_needs_object_D=no
12777   enable_shared_with_static_runtimes_D=no
12778   export_dynamic_flag_spec_D=
12779   export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12780   hardcode_automatic_D=no
12781   hardcode_direct_D=no
12782   hardcode_direct_absolute_D=no
12783   hardcode_libdir_flag_spec_D=
12784   hardcode_libdir_flag_spec_ld_D=
12785   hardcode_libdir_separator_D=
12786   hardcode_minus_L_D=no
12787   hardcode_shlibpath_var_D=unsupported
12788   inherit_rpath_D=no
12789   link_all_deplibs_D=unknown
12790   module_cmds_D=
12791   module_expsym_cmds_D=
12792   old_archive_from_new_cmds_D=
12793   old_archive_from_expsyms_cmds_D=
12794   thread_safe_flag_spec_D=
12795   whole_archive_flag_spec_D=
12796   # include_expsyms should be a list of space-separated symbols to be *always*
12797   # included in the symbol list
12798   include_expsyms_D=
12799   # exclude_expsyms can be an extended regexp of symbols to exclude
12800   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12801   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12802   # as well as any symbol that contains `d'.
12803   exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12804   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12805   # platforms (ab)use it in PIC code, but their linkers get confused if
12806   # the symbol is explicitly referenced.  Since portable code cannot
12807   # rely on this symbol name, it's probably fine to never include it in
12808   # preloaded symbol tables.
12809   # Exclude shared library initialization/finalization symbols.
12810   extract_expsyms_cmds=
12811
12812   case $host_os in
12813   cygwin* | mingw* | pw32* | cegcc*)
12814     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12815     # When not using gcc, we currently assume that we are using
12816     # Microsoft Visual C++.
12817     if test "$GCC" != yes; then
12818       with_gnu_ld=no
12819     fi
12820     ;;
12821   interix*)
12822     # we just hope/assume this is gcc and not c89 (= MSVC++)
12823     with_gnu_ld=yes
12824     ;;
12825   openbsd*)
12826     with_gnu_ld=no
12827     ;;
12828   esac
12829
12830   ld_shlibs_D=yes
12831
12832   # On some targets, GNU ld is compatible enough with the native linker
12833   # that we're better off using the native interface for both.
12834   lt_use_gnu_ld_interface=no
12835   if test "$with_gnu_ld" = yes; then
12836     case $host_os in
12837       aix*)
12838         # The AIX port of GNU ld has always aspired to compatibility
12839         # with the native linker.  However, as the warning in the GNU ld
12840         # block says, versions before 2.19.5* couldn't really create working
12841         # shared libraries, regardless of the interface used.
12842         case `$LD -v 2>&1` in
12843           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12844           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12845           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12846           *)
12847             lt_use_gnu_ld_interface=yes
12848             ;;
12849         esac
12850         ;;
12851       *)
12852         lt_use_gnu_ld_interface=yes
12853         ;;
12854     esac
12855   fi
12856
12857   if test "$lt_use_gnu_ld_interface" = yes; then
12858     # If archive_cmds runs LD, not CC, wlarc should be empty
12859     wlarc='${wl}'
12860
12861     # Set some defaults for GNU ld with shared library support. These
12862     # are reset later if shared libraries are not supported. Putting them
12863     # here allows them to be overridden if necessary.
12864     runpath_var=LD_RUN_PATH
12865     hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12866     export_dynamic_flag_spec_D='${wl}--export-dynamic'
12867     # ancient GNU ld didn't support --whole-archive et. al.
12868     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12869       whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12870     else
12871       whole_archive_flag_spec_D=
12872     fi
12873     supports_anon_versioning=no
12874     case `$LD -v 2>&1` in
12875       *GNU\ gold*) supports_anon_versioning=yes ;;
12876       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12877       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12878       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12879       *\ 2.11.*) ;; # other 2.11 versions
12880       *) supports_anon_versioning=yes ;;
12881     esac
12882
12883     # See if GNU ld supports shared libraries.
12884     case $host_os in
12885     aix[3-9]*)
12886       # On AIX/PPC, the GNU linker is very broken
12887       if test "$host_cpu" != ia64; then
12888         ld_shlibs_D=no
12889         cat <<_LT_EOF 1>&2
12890
12891 *** Warning: the GNU linker, at least up to release 2.19, is reported
12892 *** to be unable to reliably create shared libraries on AIX.
12893 *** Therefore, libtool is disabling shared libraries support.  If you
12894 *** really care for shared libraries, you may want to install binutils
12895 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12896 *** You will then need to restart the configuration process.
12897
12898 _LT_EOF
12899       fi
12900       ;;
12901
12902     amigaos*)
12903       case $host_cpu in
12904       powerpc)
12905             # see comment about AmigaOS4 .so support
12906             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12907             archive_expsym_cmds_D=''
12908         ;;
12909       m68k)
12910             archive_cmds_D='$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)'
12911             hardcode_libdir_flag_spec_D='-L$libdir'
12912             hardcode_minus_L_D=yes
12913         ;;
12914       esac
12915       ;;
12916
12917     beos*)
12918       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919         allow_undefined_flag_D=unsupported
12920         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12921         # support --undefined.  This deserves some investigation.  FIXME
12922         archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12923       else
12924         ld_shlibs_D=no
12925       fi
12926       ;;
12927
12928     cygwin* | mingw* | pw32* | cegcc*)
12929       # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12930       # as there is no search path for DLLs.
12931       hardcode_libdir_flag_spec_D='-L$libdir'
12932       export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12933       allow_undefined_flag_D=unsupported
12934       always_export_symbols_D=no
12935       enable_shared_with_static_runtimes_D=yes
12936       export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12937
12938       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12939         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12940         # If the export-symbols file already is a .def file (1st line
12941         # is EXPORTS), use it as is; otherwise, prepend...
12942         archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12943           cp $export_symbols $output_objdir/$soname.def;
12944         else
12945           echo EXPORTS > $output_objdir/$soname.def;
12946           cat $export_symbols >> $output_objdir/$soname.def;
12947         fi~
12948         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12949       else
12950         ld_shlibs_D=no
12951       fi
12952       ;;
12953
12954     haiku*)
12955       archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12956       link_all_deplibs_D=yes
12957       ;;
12958
12959     interix[3-9]*)
12960       hardcode_direct_D=no
12961       hardcode_shlibpath_var_D=no
12962       hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12963       export_dynamic_flag_spec_D='${wl}-E'
12964       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12965       # Instead, shared libraries are loaded at an image base (0x10000000 by
12966       # default) and relocated if they conflict, which is a slow very memory
12967       # consuming and fragmenting process.  To avoid this, we pick a random,
12968       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12969       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12970       archive_cmds_D='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12971       archive_expsym_cmds_D='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'
12972       ;;
12973
12974     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12975       tmp_diet=no
12976       if test "$host_os" = linux-dietlibc; then
12977         case $cc_basename in
12978           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12979         esac
12980       fi
12981       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12982          && test "$tmp_diet" = no
12983       then
12984         tmp_addflag=' $pic_flag'
12985         tmp_sharedflag='-shared'
12986         case $cc_basename,$host_cpu in
12987         pgcc*)                          # Portland Group C compiler
12988           whole_archive_flag_spec_D='${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'
12989           tmp_addflag=' $pic_flag'
12990           ;;
12991         pgf77* | pgf90* | pgf95* | pgfortran*)
12992                                         # Portland Group f77 and f90 compilers
12993           whole_archive_flag_spec_D='${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'
12994           tmp_addflag=' $pic_flag -Mnomain' ;;
12995         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12996           tmp_addflag=' -i_dynamic' ;;
12997         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12998           tmp_addflag=' -i_dynamic -nofor_main' ;;
12999         ifc* | ifort*)                  # Intel Fortran compiler
13000           tmp_addflag=' -nofor_main' ;;
13001         lf95*)                          # Lahey Fortran 8.1
13002           whole_archive_flag_spec_D=
13003           tmp_sharedflag='--shared' ;;
13004         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13005           tmp_sharedflag='-qmkshrobj'
13006           tmp_addflag= ;;
13007         nvcc*)  # Cuda Compiler Driver 2.2
13008           whole_archive_flag_spec_D='${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'
13009           compiler_needs_object_D=yes
13010           ;;
13011         esac
13012         case `$CC -V 2>&1 | sed 5q` in
13013         *Sun\ C*)                       # Sun C 5.9
13014           whole_archive_flag_spec_D='${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'
13015           compiler_needs_object_D=yes
13016           tmp_sharedflag='-G' ;;
13017         *Sun\ F*)                       # Sun Fortran 8.3
13018           tmp_sharedflag='-G' ;;
13019         esac
13020         archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13021
13022         if test "x$supports_anon_versioning" = xyes; then
13023           archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13024             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13025             echo "local: *; };" >> $output_objdir/$libname.ver~
13026             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13027         fi
13028
13029         case $cc_basename in
13030         xlf* | bgf* | bgxlf* | mpixlf*)
13031           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13032           whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
13033           hardcode_libdir_flag_spec_D=
13034           hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
13035           archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13036           if test "x$supports_anon_versioning" = xyes; then
13037             archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
13038               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13039               echo "local: *; };" >> $output_objdir/$libname.ver~
13040               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13041           fi
13042           ;;
13043         esac
13044       else
13045         ld_shlibs_D=no
13046       fi
13047       ;;
13048
13049     netbsd*)
13050       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13051         archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13052         wlarc=
13053       else
13054         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13055         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13056       fi
13057       ;;
13058
13059     solaris*)
13060       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13061         ld_shlibs_D=no
13062         cat <<_LT_EOF 1>&2
13063
13064 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13065 *** create shared libraries on Solaris systems.  Therefore, libtool
13066 *** is disabling shared libraries support.  We urge you to upgrade GNU
13067 *** binutils to release 2.9.1 or newer.  Another option is to modify
13068 *** your PATH or compiler configuration so that the native linker is
13069 *** used, and then restart.
13070
13071 _LT_EOF
13072       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13073         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13074         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13075       else
13076         ld_shlibs_D=no
13077       fi
13078       ;;
13079
13080     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13081       case `$LD -v 2>&1` in
13082         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13083         ld_shlibs_D=no
13084         cat <<_LT_EOF 1>&2
13085
13086 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13087 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13088 *** is disabling shared libraries support.  We urge you to upgrade GNU
13089 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13090 *** your PATH or compiler configuration so that the native linker is
13091 *** used, and then restart.
13092
13093 _LT_EOF
13094         ;;
13095         *)
13096           # For security reasons, it is highly recommended that you always
13097           # use absolute paths for naming shared libraries, and exclude the
13098           # DT_RUNPATH tag from executables and libraries.  But doing so
13099           # requires that you compile everything twice, which is a pain.
13100           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13101             hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13102             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13103             archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13104           else
13105             ld_shlibs_D=no
13106           fi
13107         ;;
13108       esac
13109       ;;
13110
13111     sunos4*)
13112       archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13113       wlarc=
13114       hardcode_direct_D=yes
13115       hardcode_shlibpath_var_D=no
13116       ;;
13117
13118     *)
13119       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13120         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13121         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13122       else
13123         ld_shlibs_D=no
13124       fi
13125       ;;
13126     esac
13127
13128     if test "$ld_shlibs_D" = no; then
13129       runpath_var=
13130       hardcode_libdir_flag_spec_D=
13131       export_dynamic_flag_spec_D=
13132       whole_archive_flag_spec_D=
13133     fi
13134   else
13135     # PORTME fill in a description of your system's linker (not GNU ld)
13136     case $host_os in
13137     aix3*)
13138       allow_undefined_flag_D=unsupported
13139       always_export_symbols_D=yes
13140       archive_expsym_cmds_D='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13141       # Note: this linker hardcodes the directories in LIBPATH if there
13142       # are no directories specified by -L.
13143       hardcode_minus_L_D=yes
13144       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13145         # Neither direct hardcoding nor static linking is supported with a
13146         # broken collect2.
13147         hardcode_direct_D=unsupported
13148       fi
13149       ;;
13150
13151     aix[4-9]*)
13152       if test "$host_cpu" = ia64; then
13153         # On IA64, the linker does run time linking by default, so we don't
13154         # have to do anything special.
13155         aix_use_runtimelinking=no
13156         exp_sym_flag='-Bexport'
13157         no_entry_flag=""
13158       else
13159         # If we're using GNU nm, then we don't want the "-C" option.
13160         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13161         # Also, AIX nm treats weak defined symbols like other global
13162         # defined symbols, whereas GNU nm marks them as "W".
13163         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13164           export_symbols_cmds_D='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13165         else
13166           export_symbols_cmds_D='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13167         fi
13168         aix_use_runtimelinking=no
13169
13170         # Test if we are trying to use run time linking or normal
13171         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13172         # need to do runtime linking.
13173         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13174           for ld_flag in $LDFLAGS; do
13175           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13176             aix_use_runtimelinking=yes
13177             break
13178           fi
13179           done
13180           ;;
13181         esac
13182
13183         exp_sym_flag='-bexport'
13184         no_entry_flag='-bnoentry'
13185       fi
13186
13187       # When large executables or shared objects are built, AIX ld can
13188       # have problems creating the table of contents.  If linking a library
13189       # or program results in "error TOC overflow" add -mminimal-toc to
13190       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13191       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13192
13193       archive_cmds_D=''
13194       hardcode_direct_D=yes
13195       hardcode_direct_absolute_D=yes
13196       hardcode_libdir_separator_D=':'
13197       link_all_deplibs_D=yes
13198       file_list_spec_D='${wl}-f,'
13199
13200       if test "$GCC" = yes; then
13201         case $host_os in aix4.[012]|aix4.[012].*)
13202         # We only want to do this on AIX 4.2 and lower, the check
13203         # below for broken collect2 doesn't work under 4.3+
13204           collect2name=`${CC} -print-prog-name=collect2`
13205           if test -f "$collect2name" &&
13206            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13207           then
13208           # We have reworked collect2
13209           :
13210           else
13211           # We have old collect2
13212           hardcode_direct_D=unsupported
13213           # It fails to find uninstalled libraries when the uninstalled
13214           # path is not listed in the libpath.  Setting hardcode_minus_L
13215           # to unsupported forces relinking
13216           hardcode_minus_L_D=yes
13217           hardcode_libdir_flag_spec_D='-L$libdir'
13218           hardcode_libdir_separator_D=
13219           fi
13220           ;;
13221         esac
13222         shared_flag='-shared'
13223         if test "$aix_use_runtimelinking" = yes; then
13224           shared_flag="$shared_flag "'${wl}-G'
13225         fi
13226       else
13227         # not using gcc
13228         if test "$host_cpu" = ia64; then
13229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13230         # chokes on -Wl,-G. The following line is correct:
13231           shared_flag='-G'
13232         else
13233           if test "$aix_use_runtimelinking" = yes; then
13234             shared_flag='${wl}-G'
13235           else
13236             shared_flag='${wl}-bM:SRE'
13237           fi
13238         fi
13239       fi
13240
13241       export_dynamic_flag_spec_D='${wl}-bexpall'
13242       # It seems that -bexpall does not export symbols beginning with
13243       # underscore (_), so it is better to generate a list of symbols to export.
13244       always_export_symbols_D=yes
13245       if test "$aix_use_runtimelinking" = yes; then
13246         # Warning - without using the other runtime loading flags (-brtl),
13247         # -berok will link without error, but may produce a broken library.
13248         allow_undefined_flag_D='-berok'
13249         # Determine the default libpath from the value encoded in an
13250         # empty executable.
13251         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13252 /* end confdefs.h.  */
13253
13254 int
13255 main ()
13256 {
13257
13258   ;
13259   return 0;
13260 }
13261 _ACEOF
13262 if ac_fn_c_try_link "$LINENO"; then :
13263
13264 lt_aix_libpath_sed='
13265     /Import File Strings/,/^$/ {
13266         /^0/ {
13267             s/^0  *\(.*\)$/\1/
13268             p
13269         }
13270     }'
13271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13272 # Check for a 64-bit object if we didn't find anything.
13273 if test -z "$aix_libpath"; then
13274   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13275 fi
13276 fi
13277 rm -f core conftest.err conftest.$ac_objext \
13278     conftest$ac_exeext conftest.$ac_ext
13279 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13280
13281         hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13282         archive_expsym_cmds_D='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13283       else
13284         if test "$host_cpu" = ia64; then
13285           hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13286           allow_undefined_flag_D="-z nodefs"
13287           archive_expsym_cmds_D="\$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"
13288         else
13289          # Determine the default libpath from the value encoded in an
13290          # empty executable.
13291          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h.  */
13293
13294 int
13295 main ()
13296 {
13297
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303
13304 lt_aix_libpath_sed='
13305     /Import File Strings/,/^$/ {
13306         /^0/ {
13307             s/^0  *\(.*\)$/\1/
13308             p
13309         }
13310     }'
13311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13312 # Check for a 64-bit object if we didn't find anything.
13313 if test -z "$aix_libpath"; then
13314   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13315 fi
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext \
13318     conftest$ac_exeext conftest.$ac_ext
13319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13320
13321          hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13322           # Warning - without using the other run time loading flags,
13323           # -berok will link without error, but may produce a broken library.
13324           no_undefined_flag_D=' ${wl}-bernotok'
13325           allow_undefined_flag_D=' ${wl}-berok'
13326           if test "$with_gnu_ld" = yes; then
13327             # We only use this code for GNU lds that support --whole-archive.
13328             whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13329           else
13330             # Exported symbols can be pulled into shared objects from archives
13331             whole_archive_flag_spec_D='$convenience'
13332           fi
13333           archive_cmds_need_lc_D=yes
13334           # This is similar to how AIX traditionally builds its shared libraries.
13335           archive_expsym_cmds_D="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13336         fi
13337       fi
13338       ;;
13339
13340     amigaos*)
13341       case $host_cpu in
13342       powerpc)
13343             # see comment about AmigaOS4 .so support
13344             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345             archive_expsym_cmds_D=''
13346         ;;
13347       m68k)
13348             archive_cmds_D='$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)'
13349             hardcode_libdir_flag_spec_D='-L$libdir'
13350             hardcode_minus_L_D=yes
13351         ;;
13352       esac
13353       ;;
13354
13355     bsdi[45]*)
13356       export_dynamic_flag_spec_D=-rdynamic
13357       ;;
13358
13359     cygwin* | mingw* | pw32* | cegcc*)
13360       # When not using gcc, we currently assume that we are using
13361       # Microsoft Visual C++.
13362       # hardcode_libdir_flag_spec is actually meaningless, as there is
13363       # no search path for DLLs.
13364       hardcode_libdir_flag_spec_D=' '
13365       allow_undefined_flag_D=unsupported
13366       # Tell ltmain to make .lib files, not .a files.
13367       libext=lib
13368       # Tell ltmain to make .dll files, not .so files.
13369       shrext_cmds=".dll"
13370       # FIXME: Setting linknames here is a bad hack.
13371       archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13372       # The linker will automatically build a .lib file if we build a DLL.
13373       old_archive_from_new_cmds_D='true'
13374       # FIXME: Should let the user specify the lib program.
13375       old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13376       fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13377       enable_shared_with_static_runtimes_D=yes
13378       ;;
13379
13380     darwin* | rhapsody*)
13381
13382
13383   archive_cmds_need_lc_D=no
13384   hardcode_direct_D=no
13385   hardcode_automatic_D=yes
13386   hardcode_shlibpath_var_D=unsupported
13387   if test "$lt_cv_ld_force_load" = "yes"; then
13388     whole_archive_flag_spec_D='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13389   else
13390     whole_archive_flag_spec_D=''
13391   fi
13392   link_all_deplibs_D=yes
13393   allow_undefined_flag_D="$_lt_dar_allow_undefined"
13394   case $cc_basename in
13395      ifort*) _lt_dar_can_shared=yes ;;
13396      *) _lt_dar_can_shared=$GCC ;;
13397   esac
13398   if test "$_lt_dar_can_shared" = "yes"; then
13399     output_verbose_link_cmd=func_echo_all
13400     archive_cmds_D="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13401     module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13402     archive_expsym_cmds_D="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}"
13403     module_expsym_cmds_D="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}"
13404
13405   else
13406   ld_shlibs_D=no
13407   fi
13408
13409       ;;
13410
13411     dgux*)
13412       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413       hardcode_libdir_flag_spec_D='-L$libdir'
13414       hardcode_shlibpath_var_D=no
13415       ;;
13416
13417     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13418     # support.  Future versions do this automatically, but an explicit c++rt0.o
13419     # does not break anything, and helps significantly (at the cost of a little
13420     # extra space).
13421     freebsd2.2*)
13422       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13423       hardcode_libdir_flag_spec_D='-R$libdir'
13424       hardcode_direct_D=yes
13425       hardcode_shlibpath_var_D=no
13426       ;;
13427
13428     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13429     freebsd2.*)
13430       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13431       hardcode_direct_D=yes
13432       hardcode_minus_L_D=yes
13433       hardcode_shlibpath_var_D=no
13434       ;;
13435
13436     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13437     freebsd* | dragonfly*)
13438       archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13439       hardcode_libdir_flag_spec_D='-R$libdir'
13440       hardcode_direct_D=yes
13441       hardcode_shlibpath_var_D=no
13442       ;;
13443
13444     hpux9*)
13445       if test "$GCC" = yes; then
13446         archive_cmds_D='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13447       else
13448         archive_cmds_D='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13449       fi
13450       hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13451       hardcode_libdir_separator_D=:
13452       hardcode_direct_D=yes
13453
13454       # hardcode_minus_L: Not really in the search PATH,
13455       # but as the default location of the library.
13456       hardcode_minus_L_D=yes
13457       export_dynamic_flag_spec_D='${wl}-E'
13458       ;;
13459
13460     hpux10*)
13461       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13462         archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13463       else
13464         archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13465       fi
13466       if test "$with_gnu_ld" = no; then
13467         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13468         hardcode_libdir_flag_spec_ld_D='+b $libdir'
13469         hardcode_libdir_separator_D=:
13470         hardcode_direct_D=yes
13471         hardcode_direct_absolute_D=yes
13472         export_dynamic_flag_spec_D='${wl}-E'
13473         # hardcode_minus_L: Not really in the search PATH,
13474         # but as the default location of the library.
13475         hardcode_minus_L_D=yes
13476       fi
13477       ;;
13478
13479     hpux11*)
13480       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13481         case $host_cpu in
13482         hppa*64*)
13483           archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13484           ;;
13485         ia64*)
13486           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13487           ;;
13488         *)
13489           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13490           ;;
13491         esac
13492       else
13493         case $host_cpu in
13494         hppa*64*)
13495           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13496           ;;
13497         ia64*)
13498           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13499           ;;
13500         *)
13501         archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13502           ;;
13503         esac
13504       fi
13505       if test "$with_gnu_ld" = no; then
13506         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13507         hardcode_libdir_separator_D=:
13508
13509         case $host_cpu in
13510         hppa*64*|ia64*)
13511           hardcode_direct_D=no
13512           hardcode_shlibpath_var_D=no
13513           ;;
13514         *)
13515           hardcode_direct_D=yes
13516           hardcode_direct_absolute_D=yes
13517           export_dynamic_flag_spec_D='${wl}-E'
13518
13519           # hardcode_minus_L: Not really in the search PATH,
13520           # but as the default location of the library.
13521           hardcode_minus_L_D=yes
13522           ;;
13523         esac
13524       fi
13525       ;;
13526
13527     irix5* | irix6* | nonstopux*)
13528       if test "$GCC" = yes; then
13529         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13530         # Try to use the -exported_symbol ld option, if it does not
13531         # work, assume that -exports_file does not work either and
13532         # implicitly export all symbols.
13533         save_LDFLAGS="$LDFLAGS"
13534         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13535         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h.  */
13537 int foo(void) {}
13538 _ACEOF
13539 if ac_fn_c_try_link "$LINENO"; then :
13540   archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13541
13542 fi
13543 rm -f core conftest.err conftest.$ac_objext \
13544     conftest$ac_exeext conftest.$ac_ext
13545         LDFLAGS="$save_LDFLAGS"
13546       else
13547         archive_cmds_D='$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'
13548         archive_expsym_cmds_D='$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'
13549       fi
13550       archive_cmds_need_lc_D='no'
13551       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13552       hardcode_libdir_separator_D=:
13553       inherit_rpath_D=yes
13554       link_all_deplibs_D=yes
13555       ;;
13556
13557     netbsd*)
13558       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13559         archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13560       else
13561         archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13562       fi
13563       hardcode_libdir_flag_spec_D='-R$libdir'
13564       hardcode_direct_D=yes
13565       hardcode_shlibpath_var_D=no
13566       ;;
13567
13568     newsos6)
13569       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570       hardcode_direct_D=yes
13571       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13572       hardcode_libdir_separator_D=:
13573       hardcode_shlibpath_var_D=no
13574       ;;
13575
13576     *nto* | *qnx*)
13577       ;;
13578
13579     openbsd*)
13580       if test -f /usr/libexec/ld.so; then
13581         hardcode_direct_D=yes
13582         hardcode_shlibpath_var_D=no
13583         hardcode_direct_absolute_D=yes
13584         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13585           archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586           archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13587           hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13588           export_dynamic_flag_spec_D='${wl}-E'
13589         else
13590           case $host_os in
13591            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13592              archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13593              hardcode_libdir_flag_spec_D='-R$libdir'
13594              ;;
13595            *)
13596              archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13597              hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13598              ;;
13599           esac
13600         fi
13601       else
13602         ld_shlibs_D=no
13603       fi
13604       ;;
13605
13606     os2*)
13607       hardcode_libdir_flag_spec_D='-L$libdir'
13608       hardcode_minus_L_D=yes
13609       allow_undefined_flag_D=unsupported
13610       archive_cmds_D='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13611       old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13612       ;;
13613
13614     osf3*)
13615       if test "$GCC" = yes; then
13616         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13617         archive_cmds_D='$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'
13618       else
13619         allow_undefined_flag_D=' -expect_unresolved \*'
13620         archive_cmds_D='$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'
13621       fi
13622       archive_cmds_need_lc_D='no'
13623       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13624       hardcode_libdir_separator_D=:
13625       ;;
13626
13627     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13628       if test "$GCC" = yes; then
13629         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13630         archive_cmds_D='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13631         hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13632       else
13633         allow_undefined_flag_D=' -expect_unresolved \*'
13634         archive_cmds_D='$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'
13635         archive_expsym_cmds_D='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13636         $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'
13637
13638         # Both c and cxx compiler support -rpath directly
13639         hardcode_libdir_flag_spec_D='-rpath $libdir'
13640       fi
13641       archive_cmds_need_lc_D='no'
13642       hardcode_libdir_separator_D=:
13643       ;;
13644
13645     solaris*)
13646       no_undefined_flag_D=' -z defs'
13647       if test "$GCC" = yes; then
13648         wlarc='${wl}'
13649         archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13650         archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13651           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13652       else
13653         case `$CC -V 2>&1` in
13654         *"Compilers 5.0"*)
13655           wlarc=''
13656           archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13657           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13658           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13659           ;;
13660         *)
13661           wlarc='${wl}'
13662           archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13663           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13664           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13665           ;;
13666         esac
13667       fi
13668       hardcode_libdir_flag_spec_D='-R$libdir'
13669       hardcode_shlibpath_var_D=no
13670       case $host_os in
13671       solaris2.[0-5] | solaris2.[0-5].*) ;;
13672       *)
13673         # The compiler driver will combine and reorder linker options,
13674         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13675         # but is careful enough not to reorder.
13676         # Supported since Solaris 2.6 (maybe 2.5.1?)
13677         if test "$GCC" = yes; then
13678           whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13679         else
13680           whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13681         fi
13682         ;;
13683       esac
13684       link_all_deplibs_D=yes
13685       ;;
13686
13687     sunos4*)
13688       if test "x$host_vendor" = xsequent; then
13689         # Use $CC to link under sequent, because it throws in some extra .o
13690         # files that make .init and .fini sections work.
13691         archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13692       else
13693         archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13694       fi
13695       hardcode_libdir_flag_spec_D='-L$libdir'
13696       hardcode_direct_D=yes
13697       hardcode_minus_L_D=yes
13698       hardcode_shlibpath_var_D=no
13699       ;;
13700
13701     sysv4)
13702       case $host_vendor in
13703         sni)
13704           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13705           hardcode_direct_D=yes # is this really true???
13706         ;;
13707         siemens)
13708           ## LD is ld it makes a PLAMLIB
13709           ## CC just makes a GrossModule.
13710           archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13711           reload_cmds_D='$CC -r -o $output$reload_objs'
13712           hardcode_direct_D=no
13713         ;;
13714         motorola)
13715           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13716           hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13717         ;;
13718       esac
13719       runpath_var='LD_RUN_PATH'
13720       hardcode_shlibpath_var_D=no
13721       ;;
13722
13723     sysv4.3*)
13724       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13725       hardcode_shlibpath_var_D=no
13726       export_dynamic_flag_spec_D='-Bexport'
13727       ;;
13728
13729     sysv4*MP*)
13730       if test -d /usr/nec; then
13731         archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13732         hardcode_shlibpath_var_D=no
13733         runpath_var=LD_RUN_PATH
13734         hardcode_runpath_var=yes
13735         ld_shlibs_D=yes
13736       fi
13737       ;;
13738
13739     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13740       no_undefined_flag_D='${wl}-z,text'
13741       archive_cmds_need_lc_D=no
13742       hardcode_shlibpath_var_D=no
13743       runpath_var='LD_RUN_PATH'
13744
13745       if test "$GCC" = yes; then
13746         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748       else
13749         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751       fi
13752       ;;
13753
13754     sysv5* | sco3.2v5* | sco5v6*)
13755       # Note: We can NOT use -z defs as we might desire, because we do not
13756       # link with -lc, and that would cause any symbols used from libc to
13757       # always be unresolved, which means just about no library would
13758       # ever link correctly.  If we're not using GNU ld we use -z text
13759       # though, which does catch some bad symbols but isn't as heavy-handed
13760       # as -z defs.
13761       no_undefined_flag_D='${wl}-z,text'
13762       allow_undefined_flag_D='${wl}-z,nodefs'
13763       archive_cmds_need_lc_D=no
13764       hardcode_shlibpath_var_D=no
13765       hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13766       hardcode_libdir_separator_D=':'
13767       link_all_deplibs_D=yes
13768       export_dynamic_flag_spec_D='${wl}-Bexport'
13769       runpath_var='LD_RUN_PATH'
13770
13771       if test "$GCC" = yes; then
13772         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13774       else
13775         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13777       fi
13778       ;;
13779
13780     uts4*)
13781       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782       hardcode_libdir_flag_spec_D='-L$libdir'
13783       hardcode_shlibpath_var_D=no
13784       ;;
13785
13786     *)
13787       ld_shlibs_D=no
13788       ;;
13789     esac
13790
13791     if test x$host_vendor = xsni; then
13792       case $host in
13793       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13794         export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13795         ;;
13796       esac
13797     fi
13798   fi
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13801 $as_echo "$ld_shlibs_D" >&6; }
13802 test "$ld_shlibs_D" = no && can_build_shared=no
13803
13804 with_gnu_ld_D=$with_gnu_ld
13805
13806
13807
13808
13809
13810
13811 #
13812 # Do we need to explicitly link libc?
13813 #
13814 case "x$archive_cmds_need_lc_D" in
13815 x|xyes)
13816   # Assume -lc should be added
13817   archive_cmds_need_lc_D=yes
13818
13819   if test "$enable_shared" = yes && test "$GCC" = yes; then
13820     case $archive_cmds_D in
13821     *'~'*)
13822       # FIXME: we may have to deal with multi-command sequences.
13823       ;;
13824     '$CC '*)
13825       # Test whether the compiler implicitly links with -lc since on some
13826       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13827       # to ld, don't add -lc before -lgcc.
13828       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13829 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13830 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   $RM conftest*
13834         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13835
13836         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13837   (eval $ac_compile) 2>&5
13838   ac_status=$?
13839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13840   test $ac_status = 0; } 2>conftest.err; then
13841           soname=conftest
13842           lib=conftest
13843           libobjs=conftest.$ac_objext
13844           deplibs=
13845           wl=$lt_prog_compiler_wl_D
13846           pic_flag=$lt_prog_compiler_pic_D
13847           compiler_flags=-v
13848           linker_flags=-v
13849           verstring=
13850           output_objdir=.
13851           libname=conftest
13852           lt_save_allow_undefined_flag=$allow_undefined_flag_D
13853           allow_undefined_flag_D=
13854           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13855   (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13856   ac_status=$?
13857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13858   test $ac_status = 0; }
13859           then
13860             lt_cv_archive_cmds_need_lc_D=no
13861           else
13862             lt_cv_archive_cmds_need_lc_D=yes
13863           fi
13864           allow_undefined_flag_D=$lt_save_allow_undefined_flag
13865         else
13866           cat conftest.err 1>&5
13867         fi
13868         $RM conftest*
13869
13870 fi
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13872 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13873       archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13874       ;;
13875     esac
13876   fi
13877   ;;
13878 esac
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13944 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13945 hardcode_action_D=
13946 if test -n "$hardcode_libdir_flag_spec_D" ||
13947    test -n "$runpath_var_D" ||
13948    test "X$hardcode_automatic_D" = "Xyes" ; then
13949
13950   # We can hardcode non-existent directories.
13951   if test "$hardcode_direct_D" != no &&
13952      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13953      # have to relink, otherwise we might link with an installed library
13954      # when we should be linking with a yet-to-be-installed one
13955      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13956      test "$hardcode_minus_L_D" != no; then
13957     # Linking always hardcodes the temporary library directory.
13958     hardcode_action_D=relink
13959   else
13960     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13961     hardcode_action_D=immediate
13962   fi
13963 else
13964   # We cannot hardcode anything, or else we can only hardcode existing
13965   # directories.
13966   hardcode_action_D=unsupported
13967 fi
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13969 $as_echo "$hardcode_action_D" >&6; }
13970
13971 if test "$hardcode_action_D" = relink ||
13972    test "$inherit_rpath_D" = yes; then
13973   # Fast installation is not supported
13974   enable_fast_install=no
13975 elif test "$shlibpath_overrides_runpath" = yes ||
13976      test "$enable_shared" = no; then
13977   # Fast installation is not necessary
13978   enable_fast_install=needless
13979 fi
13980
13981
13982
13983
13984
13985
13986
13987 fi
13988
13989 ac_ext=c
13990 ac_cpp='$CPP $CPPFLAGS'
13991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13994
13995
13996 GCC=$lt_save_GCC
13997 CC=$lt_save_CC
13998 CFLAGS=$lt_save_CFLAGS
13999
14000   GDCFLAGS=$gdc_save_DFLAGS
14001
14002
14003
14004
14005 # libtool variables for Phobos shared and position-independent compiles.
14006 #
14007 # Use phobos_lt_pic_flag to designate the automake variable
14008 # used to encapsulate the default libtool approach to creating objects
14009 # with position-independent code. Default: -prefer-pic.
14010 #
14011 # Use phobos_compiler_shared_flag to designate the compile-time flags for
14012 # creating shared objects. Default: -fversion=Shared.
14013 #
14014 # Use phobos_compiler_pic_flag to designate the compile-time flags for
14015 # creating position-independent objects. This varies with the target
14016 # hardware and operating system, but is often: -fPIC.
14017 #
14018 # The distinction between pic and shared compilation flags is not present in
14019 # libtool, and so we make it here.  How it is handled is that in shared
14020 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
14021 # ensure that conditional compilation of shared runtime code is compiled in.
14022 if test "$enable_shared" = yes; then
14023   phobos_lt_pic_flag="-prefer-pic"
14024   phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
14025   phobos_compiler_shared_flag="-fversion=Shared"
14026 else
14027   phobos_lt_pic_flag=
14028   phobos_compiler_pic_flag=
14029   phobos_compiler_shared_flag=
14030 fi
14031
14032
14033
14034
14035 # Override the libtool's pic_flag and pic_mode.
14036 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
14037 # NB: this impacts --with-pic and --without-pic.
14038 lt_prog_compiler_pic_D="$phobos_compiler_pic_flag $phobos_compiler_shared_flag"
14039 pic_mode='default'
14040
14041 # Determine what GCC version number to use in filesystem paths.
14042
14043   get_gcc_base_ver="cat"
14044
14045 # Check whether --with-gcc-major-version-only was given.
14046 if test "${with_gcc_major_version_only+set}" = set; then :
14047   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14048         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14049       fi
14050
14051 fi
14052
14053
14054
14055
14056 # libphobos/libdruntime specific options and feature detection
14057
14058   # These need to be absolute paths, yet at the same time need to
14059   # canonicalize only relative paths, because then amd will not unmount
14060   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
14061   libphobos_builddir=`${PWDCMD-pwd}`
14062   case $srcdir in
14063     \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
14064     *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
14065   esac
14066
14067
14068
14069
14070   if test ${multilib} = yes; then
14071     multilib_arg="--enable-multilib"
14072   else
14073     multilib_arg=
14074   fi
14075
14076
14077   # Check whether --enable-werror was given.
14078 if test "${enable_werror+set}" = set; then :
14079   enableval=$enable_werror;
14080 fi
14081
14082   WERROR_FLAG=""
14083   if test "x$enable_werror" = "xyes"; then
14084       WERROR_FLAG="-Werror"
14085   fi
14086
14087
14088   druntime_target_cpu_parsed=""
14089   case "$target_cpu" in
14090       aarch64*)
14091                druntime_target_cpu_parsed="aarch64"
14092                ;;
14093       arm*)    druntime_target_cpu_parsed="arm"
14094                ;;
14095       mips*)   druntime_target_cpu_parsed="mips"
14096                ;;
14097       powerpc*)
14098                druntime_target_cpu_parsed="powerpc"
14099                ;;
14100       i[34567]86|x86_64)
14101                druntime_target_cpu_parsed="x86"
14102                ;;
14103       s390x)
14104                druntime_target_cpu_parsed="s390x"
14105                ;;
14106       s390)
14107                druntime_target_cpu_parsed="s390"
14108                ;;
14109   esac
14110    if test "$druntime_target_cpu_parsed" = "aarch64"; then
14111   DRUNTIME_CPU_AARCH64_TRUE=
14112   DRUNTIME_CPU_AARCH64_FALSE='#'
14113 else
14114   DRUNTIME_CPU_AARCH64_TRUE='#'
14115   DRUNTIME_CPU_AARCH64_FALSE=
14116 fi
14117
14118    if test "$druntime_target_cpu_parsed" = "arm"; then
14119   DRUNTIME_CPU_ARM_TRUE=
14120   DRUNTIME_CPU_ARM_FALSE='#'
14121 else
14122   DRUNTIME_CPU_ARM_TRUE='#'
14123   DRUNTIME_CPU_ARM_FALSE=
14124 fi
14125
14126    if test "$druntime_target_cpu_parsed" = "mips"; then
14127   DRUNTIME_CPU_MIPS_TRUE=
14128   DRUNTIME_CPU_MIPS_FALSE='#'
14129 else
14130   DRUNTIME_CPU_MIPS_TRUE='#'
14131   DRUNTIME_CPU_MIPS_FALSE=
14132 fi
14133
14134    if test "$druntime_target_cpu_parsed" = "powerpc"; then
14135   DRUNTIME_CPU_POWERPC_TRUE=
14136   DRUNTIME_CPU_POWERPC_FALSE='#'
14137 else
14138   DRUNTIME_CPU_POWERPC_TRUE='#'
14139   DRUNTIME_CPU_POWERPC_FALSE=
14140 fi
14141
14142    if test "$druntime_target_cpu_parsed" = "x86"; then
14143   DRUNTIME_CPU_X86_TRUE=
14144   DRUNTIME_CPU_X86_FALSE='#'
14145 else
14146   DRUNTIME_CPU_X86_TRUE='#'
14147   DRUNTIME_CPU_X86_FALSE=
14148 fi
14149
14150    if test "$druntime_target_cpu_parsed" = "s390x"; then
14151   DRUNTIME_CPU_SYSTEMZ_TRUE=
14152   DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14153 else
14154   DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14155   DRUNTIME_CPU_SYSTEMZ_FALSE=
14156 fi
14157
14158    if test "$druntime_target_cpu_parsed" = "s390"; then
14159   DRUNTIME_CPU_S390_TRUE=
14160   DRUNTIME_CPU_S390_FALSE='#'
14161 else
14162   DRUNTIME_CPU_S390_TRUE='#'
14163   DRUNTIME_CPU_S390_FALSE=
14164 fi
14165
14166
14167
14168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14169 $as_echo_n "checking for target OS... " >&6; }
14170 if ${druntime_cv_target_os+:} false; then :
14171   $as_echo_n "(cached) " >&6
14172 else
14173   druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14174 fi
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14176 $as_echo "$druntime_cv_target_os" >&6; }
14177     if test -z "$druntime_cv_target_os"; then :
14178   as_fn_error $? "can't detect target OS" "$LINENO" 5
14179 fi
14180
14181
14182
14183
14184   druntime_target_os_parsed=""
14185   case "$druntime_cv_target_os" in
14186       aix*)    druntime_target_os_parsed="aix"
14187                ;;
14188       *android*)
14189                druntime_target_os_parsed="android"
14190                ;;
14191       darwin*) druntime_target_os_parsed="darwin"
14192                ;;
14193       dragonfly*)
14194                druntime_target_os_parsed="dragonflybsd"
14195                ;;
14196       freebsd*|k*bsd*-gnu)
14197                druntime_target_os_parsed="freebsd"
14198                ;;
14199       openbsd*)
14200                druntime_target_os_parsed="openbsd"
14201                ;;
14202       netbsd*)
14203                druntime_target_os_parsed="netbsd"
14204                ;;
14205       linux*)  druntime_target_os_parsed="linux"
14206                ;;
14207       mingw*)  druntime_target_os_parsed="mingw"
14208              ;;
14209       *solaris*) druntime_target_os_parsed="solaris"
14210   esac
14211    if test "$druntime_target_os_parsed" = "aix"; then
14212   DRUNTIME_OS_AIX_TRUE=
14213   DRUNTIME_OS_AIX_FALSE='#'
14214 else
14215   DRUNTIME_OS_AIX_TRUE='#'
14216   DRUNTIME_OS_AIX_FALSE=
14217 fi
14218
14219    if test "$druntime_target_os_parsed" = "android"; then
14220   DRUNTIME_OS_ANDROID_TRUE=
14221   DRUNTIME_OS_ANDROID_FALSE='#'
14222 else
14223   DRUNTIME_OS_ANDROID_TRUE='#'
14224   DRUNTIME_OS_ANDROID_FALSE=
14225 fi
14226
14227    if test "$druntime_target_os_parsed" = "darwin"; then
14228   DRUNTIME_OS_DARWIN_TRUE=
14229   DRUNTIME_OS_DARWIN_FALSE='#'
14230 else
14231   DRUNTIME_OS_DARWIN_TRUE='#'
14232   DRUNTIME_OS_DARWIN_FALSE=
14233 fi
14234
14235    if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14236   DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14237   DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14238 else
14239   DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14240   DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14241 fi
14242
14243    if test "$druntime_target_os_parsed" = "freebsd"; then
14244   DRUNTIME_OS_FREEBSD_TRUE=
14245   DRUNTIME_OS_FREEBSD_FALSE='#'
14246 else
14247   DRUNTIME_OS_FREEBSD_TRUE='#'
14248   DRUNTIME_OS_FREEBSD_FALSE=
14249 fi
14250
14251    if test "$druntime_target_os_parsed" = "netbsd"; then
14252   DRUNTIME_OS_NETBSD_TRUE=
14253   DRUNTIME_OS_NETBSD_FALSE='#'
14254 else
14255   DRUNTIME_OS_NETBSD_TRUE='#'
14256   DRUNTIME_OS_NETBSD_FALSE=
14257 fi
14258
14259    if test "$druntime_target_os_parsed" = "openbsd"; then
14260   DRUNTIME_OS_OPENBSD_TRUE=
14261   DRUNTIME_OS_OPENBSD_FALSE='#'
14262 else
14263   DRUNTIME_OS_OPENBSD_TRUE='#'
14264   DRUNTIME_OS_OPENBSD_FALSE=
14265 fi
14266
14267    if test "$druntime_target_os_parsed" = "linux"; then
14268   DRUNTIME_OS_LINUX_TRUE=
14269   DRUNTIME_OS_LINUX_FALSE='#'
14270 else
14271   DRUNTIME_OS_LINUX_TRUE='#'
14272   DRUNTIME_OS_LINUX_FALSE=
14273 fi
14274
14275    if test "$druntime_target_os_parsed" = "mingw"; then
14276   DRUNTIME_OS_MINGW_TRUE=
14277   DRUNTIME_OS_MINGW_FALSE='#'
14278 else
14279   DRUNTIME_OS_MINGW_TRUE='#'
14280   DRUNTIME_OS_MINGW_FALSE=
14281 fi
14282
14283    if test "$druntime_target_os_parsed" = "solaris"; then
14284   DRUNTIME_OS_SOLARIS_TRUE=
14285   DRUNTIME_OS_SOLARIS_FALSE='#'
14286 else
14287   DRUNTIME_OS_SOLARIS_TRUE='#'
14288   DRUNTIME_OS_SOLARIS_FALSE=
14289 fi
14290
14291
14292   druntime_target_posix="no"
14293   case "$druntime_cv_target_os" in
14294     aix*|*bsd*|cygwin*|darwin*|dragonfly*|gnu*|linux*|skyos*|*solaris*|sysv*)
14295       druntime_target_posix="yes"
14296       ;;
14297   esac
14298    if test "$druntime_target_posix" = "yes"; then
14299   DRUNTIME_OS_POSIX_TRUE=
14300   DRUNTIME_OS_POSIX_FALSE='#'
14301 else
14302   DRUNTIME_OS_POSIX_TRUE='#'
14303   DRUNTIME_OS_POSIX_FALSE=
14304 fi
14305
14306
14307
14308
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14310 $as_echo_n "checking for thread model used by GDC... " >&6; }
14311   d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14313 $as_echo "$d_thread_model" >&6; }
14314
14315   # Map from thread model to thread interface.
14316
14317 case $d_thread_model in
14318     aix)    DCFG_THREAD_MODEL="Posix" ;;
14319     lynx)   DCFG_THREAD_MODEL="Posix" ;;
14320     posix)  DCFG_THREAD_MODEL="Posix" ;;
14321     single) DCFG_THREAD_MODEL="Single" ;;
14322     win32)  DCFG_THREAD_MODEL="Win32" ;;
14323     # TODO: These targets need porting.
14324     dce|mipssde|rtems|tpf|vxworks)
14325             DCFG_THREAD_MODEL="Single" ;;
14326     *)      as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14327 esac
14328
14329
14330
14331
14332   ac_ext=c
14333 ac_cpp='$CPP $CPPFLAGS'
14334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14337
14338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14339 $as_echo_n "checking for ARM unwinder... " >&6; }
14340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h.  */
14342 #include <unwind.h>
14343 int
14344 main ()
14345 {
14346
14347   #if __ARM_EABI_UNWINDER__
14348   #error Yes, it is.
14349   #endif
14350
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_compile "$LINENO"; then :
14356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14358      DCFG_ARM_EABI_UNWINDER=false
14359 else
14360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14361 $as_echo "yes" >&6; }
14362      DCFG_ARM_EABI_UNWINDER=true
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365
14366    if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14367   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14368   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14369 else
14370   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14371   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14372 fi
14373
14374   ac_ext=c
14375 ac_cpp='$CPP $CPPFLAGS'
14376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14379
14380
14381
14382   ac_ext=c
14383 ac_cpp='$CPP $CPPFLAGS'
14384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14387
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14389 $as_echo_n "checking for minfo section bracketing... " >&6; }
14390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h.  */
14392
14393     void* module_info_ptr __attribute__((section ("minfo")));
14394     extern void* __start_minfo __attribute__((visibility ("hidden")));
14395     extern void* __stop_minfo __attribute__((visibility ("hidden")));
14396
14397     int main()
14398     {
14399         // Never run, just to prevent compiler from optimizing access
14400         return &__start_minfo == &__stop_minfo;
14401     }
14402
14403 _ACEOF
14404 if ac_fn_c_try_link "$LINENO"; then :
14405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14406 $as_echo "yes" >&6; }
14407      DCFG_MINFO_BRACKETING=true
14408 else
14409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14410 $as_echo "no" >&6; }
14411      DCFG_MINFO_BRACKETING=false
14412 fi
14413 rm -f core conftest.err conftest.$ac_objext \
14414     conftest$ac_exeext conftest.$ac_ext
14415
14416    if test "$DCFG_MINFO_BRACKETING" = "true"; then
14417   DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14418   DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14419 else
14420   DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14421   DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14422 fi
14423
14424   ac_ext=c
14425 ac_cpp='$CPP $CPPFLAGS'
14426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429
14430
14431
14432   ac_ext=c
14433 ac_cpp='$CPP $CPPFLAGS'
14434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14437
14438   ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_tls_modid" "ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" "#include <link.h>
14439 "
14440 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14441   DCFG_DLPI_TLS_MODID=true
14442 else
14443   DCFG_DLPI_TLS_MODID=false
14444 fi
14445
14446
14447   ac_ext=c
14448 ac_cpp='$CPP $CPPFLAGS'
14449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14452
14453
14454
14455   case $target in
14456     i?86-*-solaris2.* | x86_64-*-solaris2.*)
14457       # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14458       # relocs.  Work around by disabling TLS transitions.  Not necessary
14459       # on 32-bit x86, but cannot be distinguished reliably in specs.
14460       druntime_ld_prog=`$CC -print-prog-name=ld`
14461       druntime_ld_gld=no
14462       druntime_ld_relax_transtls=no
14463       if test -n "$druntime_ld_prog" \
14464          && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14465         druntime_ld_gld=yes
14466       else
14467         echo 'int main (void) { return 0; }' > conftest.c
14468         save_LDFLAGS="$LDFLAGS"
14469         LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14470         if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14471           druntime_ld_relax_transtls=yes
14472         fi
14473         LDFLAGS="$save_LDFLAGS"
14474         rm -f conftest.c conftest
14475       fi
14476       if test "$druntime_ld_relax_transtls" = "yes"; then
14477         OS_LINK_SPEC='-z relax=transtls'
14478       fi
14479       ;;
14480   esac
14481
14482
14483
14484   ac_ext=c
14485 ac_cpp='$CPP $CPPFLAGS'
14486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14489
14490   DCFG_HAVE_QSORT_R=false
14491   ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14492 if test "x$ac_cv_func_qsort_r" = xyes; then :
14493   DCFG_HAVE_QSORT_R=true
14494 fi
14495
14496
14497   ac_ext=c
14498 ac_cpp='$CPP $CPPFLAGS'
14499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14502
14503
14504
14505
14506
14507   gdc_save_DFLAGS=$GDCFLAGS
14508   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14509
14510   ac_ext=d
14511 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14512 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14513 ac_compiler_gnu=yes
14514
14515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14516 $as_echo_n "checking for library containing malloc... " >&6; }
14517 if ${ac_cv_search_malloc+:} false; then :
14518   $as_echo_n "(cached) " >&6
14519 else
14520   ac_func_search_save_LIBS=$LIBS
14521 cat > conftest.$ac_ext <<_ACEOF
14522 module mod;
14523  extern(C) int malloc();
14524
14525 extern(C) int main() {
14526   malloc(); return 0;
14527 }
14528 _ACEOF
14529 for ac_lib in '' c; do
14530   if test -z "$ac_lib"; then
14531     ac_res="none required"
14532   else
14533     ac_res=-l$ac_lib
14534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14535   fi
14536   if ac_fn_d_try_link "$LINENO"; then :
14537   ac_cv_search_malloc=$ac_res
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext \
14540     conftest$ac_exeext
14541   if ${ac_cv_search_malloc+:} false; then :
14542   break
14543 fi
14544 done
14545 if ${ac_cv_search_malloc+:} false; then :
14546
14547 else
14548   ac_cv_search_malloc=no
14549 fi
14550 rm conftest.$ac_ext
14551 LIBS=$ac_func_search_save_LIBS
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14554 $as_echo "$ac_cv_search_malloc" >&6; }
14555 ac_res=$ac_cv_search_malloc
14556 if test "$ac_res" != no; then :
14557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14558
14559 fi
14560
14561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14562 $as_echo_n "checking for library containing pthread_create... " >&6; }
14563 if ${ac_cv_search_pthread_create+:} false; then :
14564   $as_echo_n "(cached) " >&6
14565 else
14566   ac_func_search_save_LIBS=$LIBS
14567 cat > conftest.$ac_ext <<_ACEOF
14568 module mod;
14569  extern(C) int pthread_create();
14570
14571 extern(C) int main() {
14572   pthread_create(); return 0;
14573 }
14574 _ACEOF
14575 for ac_lib in '' pthread; do
14576   if test -z "$ac_lib"; then
14577     ac_res="none required"
14578   else
14579     ac_res=-l$ac_lib
14580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14581   fi
14582   if ac_fn_d_try_link "$LINENO"; then :
14583   ac_cv_search_pthread_create=$ac_res
14584 fi
14585 rm -f core conftest.err conftest.$ac_objext \
14586     conftest$ac_exeext
14587   if ${ac_cv_search_pthread_create+:} false; then :
14588   break
14589 fi
14590 done
14591 if ${ac_cv_search_pthread_create+:} false; then :
14592
14593 else
14594   ac_cv_search_pthread_create=no
14595 fi
14596 rm conftest.$ac_ext
14597 LIBS=$ac_func_search_save_LIBS
14598 fi
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14600 $as_echo "$ac_cv_search_pthread_create" >&6; }
14601 ac_res=$ac_cv_search_pthread_create
14602 if test "$ac_res" != no; then :
14603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14604
14605 fi
14606
14607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14608 $as_echo_n "checking for library containing cosf... " >&6; }
14609 if ${ac_cv_search_cosf+:} false; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   ac_func_search_save_LIBS=$LIBS
14613 cat > conftest.$ac_ext <<_ACEOF
14614 module mod;
14615  extern(C) int cosf();
14616
14617 extern(C) int main() {
14618   cosf(); return 0;
14619 }
14620 _ACEOF
14621 for ac_lib in '' m; do
14622   if test -z "$ac_lib"; then
14623     ac_res="none required"
14624   else
14625     ac_res=-l$ac_lib
14626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14627   fi
14628   if ac_fn_d_try_link "$LINENO"; then :
14629   ac_cv_search_cosf=$ac_res
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext \
14632     conftest$ac_exeext
14633   if ${ac_cv_search_cosf+:} false; then :
14634   break
14635 fi
14636 done
14637 if ${ac_cv_search_cosf+:} false; then :
14638
14639 else
14640   ac_cv_search_cosf=no
14641 fi
14642 rm conftest.$ac_ext
14643 LIBS=$ac_func_search_save_LIBS
14644 fi
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14646 $as_echo "$ac_cv_search_cosf" >&6; }
14647 ac_res=$ac_cv_search_cosf
14648 if test "$ac_res" != no; then :
14649   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14650
14651 fi
14652
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14654 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14655 if ${ac_cv_search_clock_gettime+:} false; then :
14656   $as_echo_n "(cached) " >&6
14657 else
14658   ac_func_search_save_LIBS=$LIBS
14659 cat > conftest.$ac_ext <<_ACEOF
14660 module mod;
14661  extern(C) int clock_gettime();
14662
14663 extern(C) int main() {
14664   clock_gettime(); return 0;
14665 }
14666 _ACEOF
14667 for ac_lib in '' rt; do
14668   if test -z "$ac_lib"; then
14669     ac_res="none required"
14670   else
14671     ac_res=-l$ac_lib
14672     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14673   fi
14674   if ac_fn_d_try_link "$LINENO"; then :
14675   ac_cv_search_clock_gettime=$ac_res
14676 fi
14677 rm -f core conftest.err conftest.$ac_objext \
14678     conftest$ac_exeext
14679   if ${ac_cv_search_clock_gettime+:} false; then :
14680   break
14681 fi
14682 done
14683 if ${ac_cv_search_clock_gettime+:} false; then :
14684
14685 else
14686   ac_cv_search_clock_gettime=no
14687 fi
14688 rm conftest.$ac_ext
14689 LIBS=$ac_func_search_save_LIBS
14690 fi
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14692 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14693 ac_res=$ac_cv_search_clock_gettime
14694 if test "$ac_res" != no; then :
14695   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14696
14697 fi
14698
14699
14700   # This checks to see if the host supports the compiler-generated builtins
14701   # for atomic operations for various integral sizes. Note, this is intended
14702   # to be an all-or-nothing switch, so all the atomic operations that are
14703   # used should be checked.
14704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14705 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14706   if ${druntime_cv_atomic_byte+:} false; then :
14707   $as_echo_n "(cached) " >&6
14708 else
14709
14710     cat > conftest.$ac_ext <<_ACEOF
14711 module mod;
14712 import gcc.builtins;
14713
14714 extern(C) int main() {
14715
14716       shared(byte) c1;
14717        byte c2, c3;
14718        __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14719        __atomic_load_1(&c1, 5);
14720        __atomic_store_1(&c1, c2, 5);
14721        return 0;
14722
14723 }
14724 _ACEOF
14725 if ac_fn_d_try_link "$LINENO"; then :
14726   druntime_cv_atomic_byte=yes
14727 else
14728   druntime_cv_atomic_byte=no
14729 fi
14730 rm -f core conftest.err conftest.$ac_objext \
14731     conftest$ac_exeext conftest.$ac_ext
14732
14733 fi
14734
14735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14736 $as_echo "$druntime_cv_atomic_byte" >&6; }
14737
14738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14739 $as_echo_n "checking for atomic builtins for short... " >&6; }
14740   if ${druntime_cv_atomic_short+:} false; then :
14741   $as_echo_n "(cached) " >&6
14742 else
14743
14744     cat > conftest.$ac_ext <<_ACEOF
14745 module mod;
14746 import gcc.builtins;
14747
14748 extern(C) int main() {
14749
14750       shared(short) c1;
14751        short c2, c3;
14752        __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14753        __atomic_load_2(&c1, 5);
14754        __atomic_store_2(&c1, c2, 5);
14755        return 0;
14756
14757 }
14758 _ACEOF
14759 if ac_fn_d_try_link "$LINENO"; then :
14760   druntime_cv_atomic_short=yes
14761 else
14762   druntime_cv_atomic_short=no
14763 fi
14764 rm -f core conftest.err conftest.$ac_objext \
14765     conftest$ac_exeext conftest.$ac_ext
14766
14767 fi
14768
14769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14770 $as_echo "$druntime_cv_atomic_short" >&6; }
14771
14772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14773 $as_echo_n "checking for atomic builtins for int... " >&6; }
14774   if ${druntime_cv_atomic_int+:} false; then :
14775   $as_echo_n "(cached) " >&6
14776 else
14777
14778     cat > conftest.$ac_ext <<_ACEOF
14779 module mod;
14780 import gcc.builtins;
14781
14782 extern(C) int main() {
14783
14784       shared(int) c1;
14785        int c2, c3;
14786        __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14787        __atomic_load_4(&c1, 5);
14788        __atomic_store_4(&c1, c2, 5);
14789        return 0;
14790
14791 }
14792 _ACEOF
14793 if ac_fn_d_try_link "$LINENO"; then :
14794   druntime_cv_atomic_int=yes
14795 else
14796   druntime_cv_atomic_int=no
14797 fi
14798 rm -f core conftest.err conftest.$ac_objext \
14799     conftest$ac_exeext conftest.$ac_ext
14800
14801 fi
14802
14803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14804 $as_echo "$druntime_cv_atomic_int" >&6; }
14805
14806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14807 $as_echo_n "checking for atomic builtins for long... " >&6; }
14808   if ${druntime_cv_atomic_long+:} false; then :
14809   $as_echo_n "(cached) " >&6
14810 else
14811
14812     cat > conftest.$ac_ext <<_ACEOF
14813 module mod;
14814 import gcc.builtins;
14815
14816 extern(C) int main() {
14817
14818        shared(long) c1;
14819        long c2, c3;
14820        __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14821        __atomic_load_8(&c1, 5);
14822        __atomic_store_8(&c1, c2, 5);
14823        return 0;
14824
14825 }
14826 _ACEOF
14827 if ac_fn_d_try_link "$LINENO"; then :
14828   druntime_cv_atomic_long=yes
14829 else
14830   druntime_cv_atomic_long=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext \
14833     conftest$ac_exeext conftest.$ac_ext
14834
14835 fi
14836
14837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14838 $as_echo "$druntime_cv_atomic_long" >&6; }
14839
14840   # Have atomic builtin support if all but the long test above passes.
14841   DCFG_HAVE_ATOMIC_BUILTINS=false
14842   if test "$druntime_cv_atomic_byte" = yes \
14843      && test "$druntime_cv_atomic_short" = yes \
14844      && test "$druntime_cv_atomic_int" = yes; then \
14845     DCFG_HAVE_ATOMIC_BUILTINS=true
14846   fi
14847
14848   # Have 64-bit atomic support if the long test above passes.
14849   DCFG_HAVE_64BIT_ATOMICS=false
14850   if test "$druntime_cv_atomic_long" = yes; then
14851     DCFG_HAVE_64BIT_ATOMICS=true
14852   fi
14853
14854
14855
14856
14857   ac_ext=c
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862
14863
14864   GDCFLAGS=$gdc_save_DFLAGS
14865
14866
14867
14868
14869 # Check whether --with-libatomic was given.
14870 if test "${with_libatomic+set}" = set; then :
14871   withval=$with_libatomic;
14872 fi
14873
14874
14875   DCFG_HAVE_LIBATOMIC=false
14876   LIBATOMIC=
14877   if test "x$with_libatomic" != "xno"; then :
14878
14879     DCFG_HAVE_LIBATOMIC=true
14880     LIBATOMIC=../../libatomic/libatomic_convenience.la
14881
14882 else
14883
14884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14885 $as_echo_n "checking for libatomic... " >&6; }
14886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14887 $as_echo "disabled" >&6; }
14888
14889 fi
14890
14891
14892
14893
14894
14895   ac_ext=c
14896 ac_cpp='$CPP $CPPFLAGS'
14897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14900
14901   BACKTRACE_SUPPORTED=false
14902   BACKTRACE_USES_MALLOC=false
14903   BACKTRACE_SUPPORTS_THREADS=false
14904   LIBBACKTRACE=""
14905
14906
14907 # Check whether --with-libbacktrace was given.
14908 if test "${with_libbacktrace+set}" = set; then :
14909   withval=$with_libbacktrace;
14910 fi
14911
14912
14913   if test "x$with_libbacktrace" != "xno"; then :
14914
14915     LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14916
14917     gdc_save_CPPFLAGS=$CPPFLAGS
14918     CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14919
14920     ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14921 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14922   have_libbacktrace_h=true
14923 else
14924   have_libbacktrace_h=false
14925 fi
14926
14927
14928
14929     if $have_libbacktrace_h; then
14930       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14931 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h.  */
14934
14935       #include <backtrace-supported.h>
14936       #if BACKTRACE_SUPPORTED
14937         FOUND_LIBBACKTRACE_RESULT_GDC
14938       #endif
14939
14940 _ACEOF
14941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14943   BACKTRACE_SUPPORTED=true
14944 else
14945   BACKTRACE_SUPPORTED=false
14946 fi
14947 rm -f conftest*
14948
14949       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14950 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14951
14952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14953 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14954       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h.  */
14956
14957       #include <backtrace-supported.h>
14958       #if BACKTRACE_USES_MALLOC
14959         FOUND_LIBBACKTRACE_RESULT_GDC
14960       #endif
14961
14962 _ACEOF
14963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14964   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14965   BACKTRACE_USES_MALLOC=true
14966 else
14967   BACKTRACE_USES_MALLOC=false
14968 fi
14969 rm -f conftest*
14970
14971       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14972 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14973
14974       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14975 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14977 /* end confdefs.h.  */
14978
14979       #include <backtrace-supported.h>
14980       #if BACKTRACE_SUPPORTS_THREADS
14981         FOUND_LIBBACKTRACE_RESULT_GDC
14982       #endif
14983
14984 _ACEOF
14985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14986   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14987   BACKTRACE_SUPPORTS_THREADS=true
14988 else
14989   BACKTRACE_SUPPORTS_THREADS=false
14990 fi
14991 rm -f conftest*
14992
14993       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14994 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14995     fi
14996     CPPFLAGS=$gdc_save_CPPFLAGS
14997
14998 else
14999
15000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
15001 $as_echo_n "checking for libbacktrace... " >&6; }
15002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
15003 $as_echo "disabled" >&6; }
15004
15005 fi
15006
15007
15008
15009
15010
15011   ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017
15018
15019   # Libtool has already checked this, so re-use the inferred dlopen lib.
15020   if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
15021
15022     LIBS="$LIBS $lt_cv_dlopen_libs"
15023
15024 fi
15025
15026
15027                             druntime_check_both=no
15028   ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
15029 if test "x$ac_cv_func_connect" = xyes; then :
15030
15031 else
15032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
15033 $as_echo_n "checking for connect in -lsocket... " >&6; }
15034 if ${ac_cv_lib_socket_connect+:} false; then :
15035   $as_echo_n "(cached) " >&6
15036 else
15037   ac_check_lib_save_LIBS=$LIBS
15038 LIBS="-lsocket  $LIBS"
15039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15040 /* end confdefs.h.  */
15041
15042 /* Override any GCC internal prototype to avoid an error.
15043    Use char because int might match the return type of a GCC
15044    builtin and then its argument prototype would still apply.  */
15045 #ifdef __cplusplus
15046 extern "C"
15047 #endif
15048 char connect ();
15049 int
15050 main ()
15051 {
15052 return connect ();
15053   ;
15054   return 0;
15055 }
15056 _ACEOF
15057 if ac_fn_c_try_link "$LINENO"; then :
15058   ac_cv_lib_socket_connect=yes
15059 else
15060   ac_cv_lib_socket_connect=no
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext \
15063     conftest$ac_exeext conftest.$ac_ext
15064 LIBS=$ac_check_lib_save_LIBS
15065 fi
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
15067 $as_echo "$ac_cv_lib_socket_connect" >&6; }
15068 if test "x$ac_cv_lib_socket_connect" = xyes; then :
15069   LIBS="$LIBS -lsocket"
15070 else
15071   druntime_check_both=yes
15072 fi
15073
15074 fi
15075
15076   if test "$druntime_check_both" = "yes"; then
15077     druntime_old_libs=$LIBS
15078     LIBS="$LIBS -lsocket -lnsl"
15079     ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
15080 if test "x$ac_cv_func_accept" = xyes; then :
15081
15082 else
15083   LIBS=$druntime_old_libs
15084 fi
15085
15086   fi
15087   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15088 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15089
15090 else
15091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
15092 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
15093 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
15094   $as_echo_n "(cached) " >&6
15095 else
15096   ac_check_lib_save_LIBS=$LIBS
15097 LIBS="-lnsl  $LIBS"
15098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15099 /* end confdefs.h.  */
15100
15101 /* Override any GCC internal prototype to avoid an error.
15102    Use char because int might match the return type of a GCC
15103    builtin and then its argument prototype would still apply.  */
15104 #ifdef __cplusplus
15105 extern "C"
15106 #endif
15107 char gethostbyname ();
15108 int
15109 main ()
15110 {
15111 return gethostbyname ();
15112   ;
15113   return 0;
15114 }
15115 _ACEOF
15116 if ac_fn_c_try_link "$LINENO"; then :
15117   ac_cv_lib_nsl_gethostbyname=yes
15118 else
15119   ac_cv_lib_nsl_gethostbyname=no
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext \
15122     conftest$ac_exeext conftest.$ac_ext
15123 LIBS=$ac_check_lib_save_LIBS
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
15126 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
15127 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
15128   LIBS="$LIBS -lnsl"
15129 fi
15130
15131 fi
15132
15133
15134
15135   # Keep this in sync with core/thread.d, set druntime_fiber_asm_external to
15136   # "yes" for targets that have 'version = AsmExternal'.
15137   druntime_fiber_asm_external=no
15138   case "$target_cpu" in
15139     aarch64* | \
15140     arm* | \
15141     i[34567]86|x86_64 | \
15142     powerpc)
15143       druntime_fiber_asm_external=yes
15144       ;;
15145   esac
15146   if test "$druntime_fiber_asm_external" = no; then
15147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing swapcontext" >&5
15148 $as_echo_n "checking for library containing swapcontext... " >&6; }
15149 if ${ac_cv_search_swapcontext+:} false; then :
15150   $as_echo_n "(cached) " >&6
15151 else
15152   ac_func_search_save_LIBS=$LIBS
15153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15154 /* end confdefs.h.  */
15155
15156 /* Override any GCC internal prototype to avoid an error.
15157    Use char because int might match the return type of a GCC
15158    builtin and then its argument prototype would still apply.  */
15159 #ifdef __cplusplus
15160 extern "C"
15161 #endif
15162 char swapcontext ();
15163 int
15164 main ()
15165 {
15166 return swapcontext ();
15167   ;
15168   return 0;
15169 }
15170 _ACEOF
15171 for ac_lib in '' c ucontext; do
15172   if test -z "$ac_lib"; then
15173     ac_res="none required"
15174   else
15175     ac_res=-l$ac_lib
15176     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15177   fi
15178   if ac_fn_c_try_link "$LINENO"; then :
15179   ac_cv_search_swapcontext=$ac_res
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext \
15182     conftest$ac_exeext
15183   if ${ac_cv_search_swapcontext+:} false; then :
15184   break
15185 fi
15186 done
15187 if ${ac_cv_search_swapcontext+:} false; then :
15188
15189 else
15190   ac_cv_search_swapcontext=no
15191 fi
15192 rm conftest.$ac_ext
15193 LIBS=$ac_func_search_save_LIBS
15194 fi
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_swapcontext" >&5
15196 $as_echo "$ac_cv_search_swapcontext" >&6; }
15197 ac_res=$ac_cv_search_swapcontext
15198 if test "$ac_res" != no; then :
15199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15200
15201 else
15202   as_fn_error $? "swapcontext required but not found" "$LINENO" 5
15203 fi
15204
15205   fi
15206
15207
15208   ac_ext=c
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15213
15214   LIBZ=""
15215
15216
15217 # Check whether --with-target-system-zlib was given.
15218 if test "${with_target_system_zlib+set}" = set; then :
15219   withval=$with_target_system_zlib;
15220 else
15221   with_target_system_zlib=no
15222 fi
15223
15224
15225   case "$with_target_system_zlib" in
15226     yes|no|auto) ;;
15227     *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15228   esac
15229
15230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15231 $as_echo_n "checking for system zlib... " >&6; }
15232   save_LIBS=$LIBS
15233   LIBS="$LIBS -lz"
15234       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15235 /* end confdefs.h.  */
15236 #include <zlib.h>
15237 int
15238 main ()
15239 {
15240 gzopen("none", "rb")
15241   ;
15242   return 0;
15243 }
15244 _ACEOF
15245 if ac_fn_c_try_link "$LINENO"; then :
15246
15247       if test "$cross_compiling" = yes; then :
15248           system_zlib_found=no
15249
15250 else
15251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h.  */
15253
15254         #include <zlib.h>
15255         int main() {
15256           gzFile file = gzopen("none", "rb");
15257           return 0;
15258         }
15259
15260 _ACEOF
15261 if ac_fn_c_try_run "$LINENO"; then :
15262   system_zlib_found=yes
15263 else
15264   system_zlib_found=no
15265 fi
15266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15267   conftest.$ac_objext conftest.beam conftest.$ac_ext
15268 fi
15269
15270
15271 else
15272   system_zlib_found=no
15273 fi
15274 rm -f core conftest.err conftest.$ac_objext \
15275     conftest$ac_exeext conftest.$ac_ext
15276   LIBS=$save_LIBS
15277
15278   if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15279     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15280 $as_echo "found" >&6; }
15281     LIBS="$LIBS -lz"
15282   elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15283     as_fn_error $? "system zlib required but not found" "$LINENO" 5
15284   else
15285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15286 $as_echo "just compiled" >&6; }
15287     LIBZ=../../zlib/libz_convenience.la
15288   fi
15289
15290
15291   ac_ext=c
15292 ac_cpp='$CPP $CPPFLAGS'
15293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15296
15297
15298
15299
15300
15301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15302 $as_echo_n "checking D GCC version... " >&6; }
15303   gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15305 $as_echo "$gcc_version" >&6; }
15306
15307
15308
15309 # Check whether --with-cross-host was given.
15310 if test "${with_cross_host+set}" = set; then :
15311   withval=$with_cross_host;
15312 fi
15313
15314
15315   libphobos_toolexecdir=no
15316   libphobos_toolexeclibdir=no
15317
15318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15319 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15320   # Check whether --enable-version-specific-runtime-libs was given.
15321 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15322   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15323       yes) version_specific_libs=yes ;;
15324       no)  version_specific_libs=no ;;
15325       *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15326      esac
15327 else
15328   version_specific_libs=no
15329 fi
15330
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15332 $as_echo "$version_specific_libs" >&6; }
15333
15334
15335 # Check whether --with-toolexeclibdir was given.
15336 if test "${with_toolexeclibdir+set}" = set; then :
15337   withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15338   /)
15339     ;;
15340   */)
15341     with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15342     ;;
15343 esac
15344 else
15345   with_toolexeclibdir=no
15346 fi
15347
15348
15349
15350   # Version-specific runtime libs processing.
15351   if test $version_specific_libs = yes; then
15352     libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15353     libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15354   else
15355     # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15356     # Install a library built with a cross compiler in tooldir, not libdir.
15357     if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15358       libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15359       case ${with_toolexeclibdir} in
15360         no)
15361           libphobos_toolexeclibdir='${toolexecdir}/lib'
15362           ;;
15363         *)
15364           libphobos_toolexeclibdir=${with_toolexeclibdir}
15365           ;;
15366       esac
15367     else
15368       libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15369       libphobos_toolexeclibdir='${libdir}'
15370     fi
15371     multi_os_directory=`$GDC -print-multi-os-directory`
15372     case $multi_os_directory in
15373       .) ;; # Avoid trailing /.
15374       *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15375     esac
15376   fi
15377
15378
15379
15380   # Default case for install directory for D sources files.
15381   gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15382
15383
15384
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15386 $as_echo_n "checking for --enable-libphobos... " >&6; }
15387 # Check whether --enable-libphobos was given.
15388 if test "${enable_libphobos+set}" = set; then :
15389   enableval=$enable_libphobos;
15390 fi
15391
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15393 $as_echo "$enable_libphobos" >&6; }
15394
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libphobos-druntime-only" >&5
15396 $as_echo_n "checking for --with-libphobos-druntime-only... " >&6; }
15397
15398 # Check whether --with-libphobos-druntime-only was given.
15399 if test "${with_libphobos_druntime_only+set}" = set; then :
15400   withval=$with_libphobos_druntime_only;
15401 else
15402   with_libphobos_druntime_only=auto
15403 fi
15404
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libphobos_druntime_only" >&5
15406 $as_echo "$with_libphobos_druntime_only" >&6; }
15407
15408 case "$with_libphobos_druntime_only" in
15409   yes|no|auto) ;;
15410   *) as_fn_error $? "Invalid argument for --with-libphobos-druntime-only" "$LINENO" 5 ;;
15411 esac
15412
15413 # See if supported.
15414 unset LIBPHOBOS_SUPPORTED
15415 unset LIBDRUNTIME_ONLY
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15417 $as_echo_n "checking for host support for libphobos... " >&6; }
15418 . ${srcdir}/configure.tgt
15419 case ${host} in
15420   x86_64-*-solaris2.* | i?86-*-solaris2.*)
15421     # libphobos doesn't compile with the Solaris/x86 assembler due to a
15422     # relatively low linelength limit.
15423     as_prog=`$CC -print-prog-name=as`
15424     if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15425       druntime_cv_use_gas=yes;
15426     else
15427       druntime_cv_use_gas=no;
15428     fi
15429     rm -f a.out
15430     if test x$druntime_cv_use_gas = xno; then
15431       LIBPHOBOS_SUPPORTED=no
15432     fi
15433     # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15434     if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15435       LIBPHOBOS_SUPPORTED=no
15436     fi
15437     ;;
15438 esac
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15440 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15441
15442 # Decide if it's usable.
15443 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15444 *:no)  use_libphobos=no  ;;
15445 *:yes) use_libphobos=yes ;;
15446 yes:*) use_libphobos=yes ;;
15447 *:*)   use_libphobos=no  ;;
15448 esac
15449  if test x$use_libphobos = xyes; then
15450   ENABLE_LIBPHOBOS_TRUE=
15451   ENABLE_LIBPHOBOS_FALSE='#'
15452 else
15453   ENABLE_LIBPHOBOS_TRUE='#'
15454   ENABLE_LIBPHOBOS_FALSE=
15455 fi
15456
15457
15458 # Decide if only libdruntime should be built.
15459 case $LIBDRUNTIME_ONLY:$with_libphobos_druntime_only in
15460 *:no)  only_libdruntime=no  ;;
15461 *:yes) only_libdruntime=yes ;;
15462 yes:*) only_libdruntime=yes ;;
15463 *:*)   only_libdruntime=no  ;;
15464 esac
15465  if test x$only_libdruntime = xyes; then
15466   ENABLE_LIBDRUNTIME_ONLY_TRUE=
15467   ENABLE_LIBDRUNTIME_ONLY_FALSE='#'
15468 else
15469   ENABLE_LIBDRUNTIME_ONLY_TRUE='#'
15470   ENABLE_LIBDRUNTIME_ONLY_FALSE=
15471 fi
15472
15473
15474 # Enable expensive internal checks
15475 # Check whether --enable-libphobos-checking was given.
15476 if test "${enable_libphobos_checking+set}" = set; then :
15477   enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15478 else
15479   ac_checking_flags=release
15480 fi
15481
15482 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15483 for check in release $ac_checking_flags
15484 do
15485         case $check in
15486         # These set all the flags to specific states
15487         yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15488         no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15489         # These enable particular checks
15490         assert) ASSERT_FLAG="-fassert" ;;
15491         # Accept
15492         *) ;;
15493         esac
15494 done
15495 IFS="$ac_save_IFS"
15496 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15497
15498
15499 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15500 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15501     DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15502 else
15503     DRTSTUFF_SPEC=/dev/null
15504 fi
15505
15506
15507 # Add dependencies for libgphobos.spec file
15508 SPEC_PHOBOS_DEPS="$LIBS"
15509
15510
15511 # Libdruntime / phobos soname version
15512 libtool_VERSION=2:0:0
15513
15514
15515 # Set default flags (after DRUNTIME_WERROR!)
15516 if test -z "$GDCFLAGS"; then
15517     GDCFLAGS="-g -O2"
15518 fi
15519
15520
15521 WARN_DFLAGS="-Wall $WERROR_FLAG"
15522
15523
15524 # Sanity check for the cross-compilation case:
15525 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15526 if test "x$ac_cv_header_stdio_h" = xyes; then :
15527   :
15528 else
15529   as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15530 fi
15531
15532
15533
15534 ac_config_files="$ac_config_files Makefile"
15535
15536
15537 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15538
15539 ac_config_files="$ac_config_files src/libgphobos.spec"
15540
15541 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15542
15543
15544 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15545 # that multilib installs will end up installed in the correct place.
15546 # The testsuite needs it for multilib-aware ABI baseline files.
15547 # To work around this not being passed down from config-ml.in ->
15548 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15549 # append it here.  Only modify Makefiles that have just been created.
15550 #
15551 # Also, get rid of this simulated-VPATH thing that automake does.
15552 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15553
15554
15555 cat >confcache <<\_ACEOF
15556 # This file is a shell script that caches the results of configure
15557 # tests run on this system so they can be shared between configure
15558 # scripts and configure runs, see configure's option --config-cache.
15559 # It is not useful on other systems.  If it contains results you don't
15560 # want to keep, you may remove or edit it.
15561 #
15562 # config.status only pays attention to the cache file if you give it
15563 # the --recheck option to rerun configure.
15564 #
15565 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15566 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15567 # following values.
15568
15569 _ACEOF
15570
15571 # The following way of writing the cache mishandles newlines in values,
15572 # but we know of no workaround that is simple, portable, and efficient.
15573 # So, we kill variables containing newlines.
15574 # Ultrix sh set writes to stderr and can't be redirected directly,
15575 # and sets the high bit in the cache file unless we assign to the vars.
15576 (
15577   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15578     eval ac_val=\$$ac_var
15579     case $ac_val in #(
15580     *${as_nl}*)
15581       case $ac_var in #(
15582       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15583 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15584       esac
15585       case $ac_var in #(
15586       _ | IFS | as_nl) ;; #(
15587       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15588       *) { eval $ac_var=; unset $ac_var;} ;;
15589       esac ;;
15590     esac
15591   done
15592
15593   (set) 2>&1 |
15594     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15595     *${as_nl}ac_space=\ *)
15596       # `set' does not quote correctly, so add quotes: double-quote
15597       # substitution turns \\\\ into \\, and sed turns \\ into \.
15598       sed -n \
15599         "s/'/'\\\\''/g;
15600           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15601       ;; #(
15602     *)
15603       # `set' quotes correctly as required by POSIX, so do not add quotes.
15604       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15605       ;;
15606     esac |
15607     sort
15608 ) |
15609   sed '
15610      /^ac_cv_env_/b end
15611      t clear
15612      :clear
15613      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15614      t end
15615      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15616      :end' >>confcache
15617 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15618   if test -w "$cache_file"; then
15619     if test "x$cache_file" != "x/dev/null"; then
15620       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15621 $as_echo "$as_me: updating cache $cache_file" >&6;}
15622       if test ! -f "$cache_file" || test -h "$cache_file"; then
15623         cat confcache >"$cache_file"
15624       else
15625         case $cache_file in #(
15626         */* | ?:*)
15627           mv -f confcache "$cache_file"$$ &&
15628           mv -f "$cache_file"$$ "$cache_file" ;; #(
15629         *)
15630           mv -f confcache "$cache_file" ;;
15631         esac
15632       fi
15633     fi
15634   else
15635     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15636 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15637   fi
15638 fi
15639 rm -f confcache
15640
15641 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15642 # Let make expand exec_prefix.
15643 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15644
15645 DEFS=-DHAVE_CONFIG_H
15646
15647 ac_libobjs=
15648 ac_ltlibobjs=
15649 U=
15650 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15651   # 1. Remove the extension, and $U if already installed.
15652   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15653   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15654   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15655   #    will be set to the directory where LIBOBJS objects are built.
15656   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15657   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15658 done
15659 LIBOBJS=$ac_libobjs
15660
15661 LTLIBOBJS=$ac_ltlibobjs
15662
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15665 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15666    if test -n "$am_sleep_pid"; then
15667      # Hide warnings about reused PIDs.
15668      wait $am_sleep_pid 2>/dev/null
15669    fi
15670    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15671 $as_echo "done" >&6; }
15672  if test -n "$EXEEXT"; then
15673   am__EXEEXT_TRUE=
15674   am__EXEEXT_FALSE='#'
15675 else
15676   am__EXEEXT_TRUE='#'
15677   am__EXEEXT_FALSE=
15678 fi
15679
15680 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15681   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 fi
15684 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15685   as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15687 fi
15688 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15689   as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15691 fi
15692 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15693   as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15695 fi
15696 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15697   as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15699 fi
15700 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15701   as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15703 fi
15704 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15705   as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15707 fi
15708 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15709   as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15711 fi
15712 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15713   as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 fi
15716 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15717   as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 fi
15720 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15721   as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 fi
15724 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15725   as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 fi
15728 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15729   as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 fi
15732 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15733   as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 fi
15736 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15737   as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15739 fi
15740 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15741   as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15743 fi
15744 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15745   as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15747 fi
15748 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15749   as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15751 fi
15752 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15753   as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 fi
15756 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15757   as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 fi
15760 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15761   as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15763 fi
15764 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15765   as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15767 fi
15768 if test -z "${ENABLE_LIBDRUNTIME_ONLY_TRUE}" && test -z "${ENABLE_LIBDRUNTIME_ONLY_FALSE}"; then
15769   as_fn_error $? "conditional \"ENABLE_LIBDRUNTIME_ONLY\" was never defined.
15770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15771 fi
15772
15773 : "${CONFIG_STATUS=./config.status}"
15774 ac_write_fail=0
15775 ac_clean_files_save=$ac_clean_files
15776 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15778 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15779 as_write_fail=0
15780 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15781 #! $SHELL
15782 # Generated by $as_me.
15783 # Run this file to recreate the current configuration.
15784 # Compiler output produced by configure, useful for debugging
15785 # configure, is in config.log if it exists.
15786
15787 debug=false
15788 ac_cs_recheck=false
15789 ac_cs_silent=false
15790
15791 SHELL=\${CONFIG_SHELL-$SHELL}
15792 export SHELL
15793 _ASEOF
15794 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15795 ## -------------------- ##
15796 ## M4sh Initialization. ##
15797 ## -------------------- ##
15798
15799 # Be more Bourne compatible
15800 DUALCASE=1; export DUALCASE # for MKS sh
15801 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15802   emulate sh
15803   NULLCMD=:
15804   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15805   # is contrary to our usage.  Disable this feature.
15806   alias -g '${1+"$@"}'='"$@"'
15807   setopt NO_GLOB_SUBST
15808 else
15809   case `(set -o) 2>/dev/null` in #(
15810   *posix*) :
15811     set -o posix ;; #(
15812   *) :
15813      ;;
15814 esac
15815 fi
15816
15817
15818 as_nl='
15819 '
15820 export as_nl
15821 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15822 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15823 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15824 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15825 # Prefer a ksh shell builtin over an external printf program on Solaris,
15826 # but without wasting forks for bash or zsh.
15827 if test -z "$BASH_VERSION$ZSH_VERSION" \
15828     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15829   as_echo='print -r --'
15830   as_echo_n='print -rn --'
15831 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15832   as_echo='printf %s\n'
15833   as_echo_n='printf %s'
15834 else
15835   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15836     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15837     as_echo_n='/usr/ucb/echo -n'
15838   else
15839     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15840     as_echo_n_body='eval
15841       arg=$1;
15842       case $arg in #(
15843       *"$as_nl"*)
15844         expr "X$arg" : "X\\(.*\\)$as_nl";
15845         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15846       esac;
15847       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15848     '
15849     export as_echo_n_body
15850     as_echo_n='sh -c $as_echo_n_body as_echo'
15851   fi
15852   export as_echo_body
15853   as_echo='sh -c $as_echo_body as_echo'
15854 fi
15855
15856 # The user is always right.
15857 if test "${PATH_SEPARATOR+set}" != set; then
15858   PATH_SEPARATOR=:
15859   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15860     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15861       PATH_SEPARATOR=';'
15862   }
15863 fi
15864
15865
15866 # IFS
15867 # We need space, tab and new line, in precisely that order.  Quoting is
15868 # there to prevent editors from complaining about space-tab.
15869 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15870 # splitting by setting IFS to empty value.)
15871 IFS=" ""        $as_nl"
15872
15873 # Find who we are.  Look in the path if we contain no directory separator.
15874 as_myself=
15875 case $0 in #((
15876   *[\\/]* ) as_myself=$0 ;;
15877   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15878 for as_dir in $PATH
15879 do
15880   IFS=$as_save_IFS
15881   test -z "$as_dir" && as_dir=.
15882     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15883   done
15884 IFS=$as_save_IFS
15885
15886      ;;
15887 esac
15888 # We did not find ourselves, most probably we were run as `sh COMMAND'
15889 # in which case we are not to be found in the path.
15890 if test "x$as_myself" = x; then
15891   as_myself=$0
15892 fi
15893 if test ! -f "$as_myself"; then
15894   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15895   exit 1
15896 fi
15897
15898 # Unset variables that we do not need and which cause bugs (e.g. in
15899 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15900 # suppresses any "Segmentation fault" message there.  '((' could
15901 # trigger a bug in pdksh 5.2.14.
15902 for as_var in BASH_ENV ENV MAIL MAILPATH
15903 do eval test x\${$as_var+set} = xset \
15904   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15905 done
15906 PS1='$ '
15907 PS2='> '
15908 PS4='+ '
15909
15910 # NLS nuisances.
15911 LC_ALL=C
15912 export LC_ALL
15913 LANGUAGE=C
15914 export LANGUAGE
15915
15916 # CDPATH.
15917 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15918
15919
15920 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15921 # ----------------------------------------
15922 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15923 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15924 # script with STATUS, using 1 if that was 0.
15925 as_fn_error ()
15926 {
15927   as_status=$1; test $as_status -eq 0 && as_status=1
15928   if test "$4"; then
15929     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15930     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15931   fi
15932   $as_echo "$as_me: error: $2" >&2
15933   as_fn_exit $as_status
15934 } # as_fn_error
15935
15936
15937 # as_fn_set_status STATUS
15938 # -----------------------
15939 # Set $? to STATUS, without forking.
15940 as_fn_set_status ()
15941 {
15942   return $1
15943 } # as_fn_set_status
15944
15945 # as_fn_exit STATUS
15946 # -----------------
15947 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15948 as_fn_exit ()
15949 {
15950   set +e
15951   as_fn_set_status $1
15952   exit $1
15953 } # as_fn_exit
15954
15955 # as_fn_unset VAR
15956 # ---------------
15957 # Portably unset VAR.
15958 as_fn_unset ()
15959 {
15960   { eval $1=; unset $1;}
15961 }
15962 as_unset=as_fn_unset
15963 # as_fn_append VAR VALUE
15964 # ----------------------
15965 # Append the text in VALUE to the end of the definition contained in VAR. Take
15966 # advantage of any shell optimizations that allow amortized linear growth over
15967 # repeated appends, instead of the typical quadratic growth present in naive
15968 # implementations.
15969 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15970   eval 'as_fn_append ()
15971   {
15972     eval $1+=\$2
15973   }'
15974 else
15975   as_fn_append ()
15976   {
15977     eval $1=\$$1\$2
15978   }
15979 fi # as_fn_append
15980
15981 # as_fn_arith ARG...
15982 # ------------------
15983 # Perform arithmetic evaluation on the ARGs, and store the result in the
15984 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15985 # must be portable across $(()) and expr.
15986 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15987   eval 'as_fn_arith ()
15988   {
15989     as_val=$(( $* ))
15990   }'
15991 else
15992   as_fn_arith ()
15993   {
15994     as_val=`expr "$@" || test $? -eq 1`
15995   }
15996 fi # as_fn_arith
15997
15998
15999 if expr a : '\(a\)' >/dev/null 2>&1 &&
16000    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16001   as_expr=expr
16002 else
16003   as_expr=false
16004 fi
16005
16006 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16007   as_basename=basename
16008 else
16009   as_basename=false
16010 fi
16011
16012 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16013   as_dirname=dirname
16014 else
16015   as_dirname=false
16016 fi
16017
16018 as_me=`$as_basename -- "$0" ||
16019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16020          X"$0" : 'X\(//\)$' \| \
16021          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16022 $as_echo X/"$0" |
16023     sed '/^.*\/\([^/][^/]*\)\/*$/{
16024             s//\1/
16025             q
16026           }
16027           /^X\/\(\/\/\)$/{
16028             s//\1/
16029             q
16030           }
16031           /^X\/\(\/\).*/{
16032             s//\1/
16033             q
16034           }
16035           s/.*/./; q'`
16036
16037 # Avoid depending upon Character Ranges.
16038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16041 as_cr_digits='0123456789'
16042 as_cr_alnum=$as_cr_Letters$as_cr_digits
16043
16044 ECHO_C= ECHO_N= ECHO_T=
16045 case `echo -n x` in #(((((
16046 -n*)
16047   case `echo 'xy\c'` in
16048   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16049   xy)  ECHO_C='\c';;
16050   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16051        ECHO_T=' ';;
16052   esac;;
16053 *)
16054   ECHO_N='-n';;
16055 esac
16056
16057 rm -f conf$$ conf$$.exe conf$$.file
16058 if test -d conf$$.dir; then
16059   rm -f conf$$.dir/conf$$.file
16060 else
16061   rm -f conf$$.dir
16062   mkdir conf$$.dir 2>/dev/null
16063 fi
16064 if (echo >conf$$.file) 2>/dev/null; then
16065   if ln -s conf$$.file conf$$ 2>/dev/null; then
16066     as_ln_s='ln -s'
16067     # ... but there are two gotchas:
16068     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16069     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16070     # In both cases, we have to default to `cp -pR'.
16071     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16072       as_ln_s='cp -pR'
16073   elif ln conf$$.file conf$$ 2>/dev/null; then
16074     as_ln_s=ln
16075   else
16076     as_ln_s='cp -pR'
16077   fi
16078 else
16079   as_ln_s='cp -pR'
16080 fi
16081 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16082 rmdir conf$$.dir 2>/dev/null
16083
16084
16085 # as_fn_mkdir_p
16086 # -------------
16087 # Create "$as_dir" as a directory, including parents if necessary.
16088 as_fn_mkdir_p ()
16089 {
16090
16091   case $as_dir in #(
16092   -*) as_dir=./$as_dir;;
16093   esac
16094   test -d "$as_dir" || eval $as_mkdir_p || {
16095     as_dirs=
16096     while :; do
16097       case $as_dir in #(
16098       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16099       *) as_qdir=$as_dir;;
16100       esac
16101       as_dirs="'$as_qdir' $as_dirs"
16102       as_dir=`$as_dirname -- "$as_dir" ||
16103 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16104          X"$as_dir" : 'X\(//\)[^/]' \| \
16105          X"$as_dir" : 'X\(//\)$' \| \
16106          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16107 $as_echo X"$as_dir" |
16108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16109             s//\1/
16110             q
16111           }
16112           /^X\(\/\/\)[^/].*/{
16113             s//\1/
16114             q
16115           }
16116           /^X\(\/\/\)$/{
16117             s//\1/
16118             q
16119           }
16120           /^X\(\/\).*/{
16121             s//\1/
16122             q
16123           }
16124           s/.*/./; q'`
16125       test -d "$as_dir" && break
16126     done
16127     test -z "$as_dirs" || eval "mkdir $as_dirs"
16128   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16129
16130
16131 } # as_fn_mkdir_p
16132 if mkdir -p . 2>/dev/null; then
16133   as_mkdir_p='mkdir -p "$as_dir"'
16134 else
16135   test -d ./-p && rmdir ./-p
16136   as_mkdir_p=false
16137 fi
16138
16139
16140 # as_fn_executable_p FILE
16141 # -----------------------
16142 # Test if FILE is an executable regular file.
16143 as_fn_executable_p ()
16144 {
16145   test -f "$1" && test -x "$1"
16146 } # as_fn_executable_p
16147 as_test_x='test -x'
16148 as_executable_p=as_fn_executable_p
16149
16150 # Sed expression to map a string onto a valid CPP name.
16151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16152
16153 # Sed expression to map a string onto a valid variable name.
16154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16155
16156
16157 exec 6>&1
16158 ## ----------------------------------- ##
16159 ## Main body of $CONFIG_STATUS script. ##
16160 ## ----------------------------------- ##
16161 _ASEOF
16162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16163
16164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16165 # Save the log message, to keep $0 and so on meaningful, and to
16166 # report actual input values of CONFIG_FILES etc. instead of their
16167 # values after options handling.
16168 ac_log="
16169 This file was extended by package-unused $as_me version-unused, which was
16170 generated by GNU Autoconf 2.69.  Invocation command line was
16171
16172   CONFIG_FILES    = $CONFIG_FILES
16173   CONFIG_HEADERS  = $CONFIG_HEADERS
16174   CONFIG_LINKS    = $CONFIG_LINKS
16175   CONFIG_COMMANDS = $CONFIG_COMMANDS
16176   $ $0 $@
16177
16178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16179 "
16180
16181 _ACEOF
16182
16183 case $ac_config_files in *"
16184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16185 esac
16186
16187 case $ac_config_headers in *"
16188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16189 esac
16190
16191
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193 # Files that config.status was made for.
16194 config_files="$ac_config_files"
16195 config_headers="$ac_config_headers"
16196 config_commands="$ac_config_commands"
16197
16198 _ACEOF
16199
16200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16201 ac_cs_usage="\
16202 \`$as_me' instantiates files and other configuration actions
16203 from templates according to the current configuration.  Unless the files
16204 and actions are specified as TAGs, all are instantiated by default.
16205
16206 Usage: $0 [OPTION]... [TAG]...
16207
16208   -h, --help       print this help, then exit
16209   -V, --version    print version number and configuration settings, then exit
16210       --config     print configuration, then exit
16211   -q, --quiet, --silent
16212                    do not print progress messages
16213   -d, --debug      don't remove temporary files
16214       --recheck    update $as_me by reconfiguring in the same conditions
16215       --file=FILE[:TEMPLATE]
16216                    instantiate the configuration file FILE
16217       --header=FILE[:TEMPLATE]
16218                    instantiate the configuration header FILE
16219
16220 Configuration files:
16221 $config_files
16222
16223 Configuration headers:
16224 $config_headers
16225
16226 Configuration commands:
16227 $config_commands
16228
16229 Report bugs to the package provider."
16230
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16234 ac_cs_version="\\
16235 package-unused config.status version-unused
16236 configured by $0, generated by GNU Autoconf 2.69,
16237   with options \\"\$ac_cs_config\\"
16238
16239 Copyright (C) 2012 Free Software Foundation, Inc.
16240 This config.status script is free software; the Free Software Foundation
16241 gives unlimited permission to copy, distribute and modify it."
16242
16243 ac_pwd='$ac_pwd'
16244 srcdir='$srcdir'
16245 INSTALL='$INSTALL'
16246 MKDIR_P='$MKDIR_P'
16247 AWK='$AWK'
16248 test -n "\$AWK" || AWK=awk
16249 _ACEOF
16250
16251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16252 # The default lists apply if the user does not specify any file.
16253 ac_need_defaults=:
16254 while test $# != 0
16255 do
16256   case $1 in
16257   --*=?*)
16258     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16259     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16260     ac_shift=:
16261     ;;
16262   --*=)
16263     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16264     ac_optarg=
16265     ac_shift=:
16266     ;;
16267   *)
16268     ac_option=$1
16269     ac_optarg=$2
16270     ac_shift=shift
16271     ;;
16272   esac
16273
16274   case $ac_option in
16275   # Handling of the options.
16276   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16277     ac_cs_recheck=: ;;
16278   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16279     $as_echo "$ac_cs_version"; exit ;;
16280   --config | --confi | --conf | --con | --co | --c )
16281     $as_echo "$ac_cs_config"; exit ;;
16282   --debug | --debu | --deb | --de | --d | -d )
16283     debug=: ;;
16284   --file | --fil | --fi | --f )
16285     $ac_shift
16286     case $ac_optarg in
16287     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16288     '') as_fn_error $? "missing file argument" ;;
16289     esac
16290     as_fn_append CONFIG_FILES " '$ac_optarg'"
16291     ac_need_defaults=false;;
16292   --header | --heade | --head | --hea )
16293     $ac_shift
16294     case $ac_optarg in
16295     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16296     esac
16297     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16298     ac_need_defaults=false;;
16299   --he | --h)
16300     # Conflict between --help and --header
16301     as_fn_error $? "ambiguous option: \`$1'
16302 Try \`$0 --help' for more information.";;
16303   --help | --hel | -h )
16304     $as_echo "$ac_cs_usage"; exit ;;
16305   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16306   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16307     ac_cs_silent=: ;;
16308
16309   # This is an error.
16310   -*) as_fn_error $? "unrecognized option: \`$1'
16311 Try \`$0 --help' for more information." ;;
16312
16313   *) as_fn_append ac_config_targets " $1"
16314      ac_need_defaults=false ;;
16315
16316   esac
16317   shift
16318 done
16319
16320 ac_configure_extra_args=
16321
16322 if $ac_cs_silent; then
16323   exec 6>/dev/null
16324   ac_configure_extra_args="$ac_configure_extra_args --silent"
16325 fi
16326
16327 _ACEOF
16328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16329 if \$ac_cs_recheck; then
16330   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16331   shift
16332   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16333   CONFIG_SHELL='$SHELL'
16334   export CONFIG_SHELL
16335   exec "\$@"
16336 fi
16337
16338 _ACEOF
16339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16340 exec 5>>config.log
16341 {
16342   echo
16343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16344 ## Running $as_me. ##
16345 _ASBOX
16346   $as_echo "$ac_log"
16347 } >&5
16348
16349 _ACEOF
16350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16351 #
16352 # INIT-COMMANDS
16353 #
16354
16355 srcdir="$srcdir"
16356 host="$host"
16357 target="$target"
16358 with_multisubdir="$with_multisubdir"
16359 with_multisrctop="$with_multisrctop"
16360 with_target_subdir="$with_target_subdir"
16361 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16362 multi_basedir="$multi_basedir"
16363 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16364 CC="$CC"
16365 CXX="$CXX"
16366 GFORTRAN="$GFORTRAN"
16367 GDC="$GDC"
16368
16369
16370 # The HP-UX ksh and POSIX shell print the target directory to stdout
16371 # if CDPATH is set.
16372 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16373
16374 sed_quote_subst='$sed_quote_subst'
16375 double_quote_subst='$double_quote_subst'
16376 delay_variable_subst='$delay_variable_subst'
16377 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16378 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16379 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16380 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16381 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16382 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16383 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16384 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16385 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16386 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16387 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16388 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16389 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16390 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16391 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16392 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16393 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16394 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16395 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16396 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16397 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16398 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16399 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16400 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16401 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16402 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16403 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16404 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16405 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16406 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16407 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16408 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16409 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16410 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16411 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16412 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16413 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16414 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16415 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16416 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16417 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16418 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16419 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16420 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16421 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16422 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16423 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16424 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16425 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"`'
16426 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16427 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16428 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16429 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16430 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16431 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16432 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16433 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16434 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16435 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16436 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16437 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16438 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16439 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16440 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16441 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16442 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16443 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16444 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16445 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16446 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16447 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16448 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16449 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16450 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16451 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16452 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16453 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16454 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16455 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16456 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16457 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16458 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16459 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16460 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16461 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16462 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16463 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16464 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16465 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16466 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16467 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16468 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16469 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16470 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16471 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16472 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16473 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16474 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16475 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16476 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16477 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16478 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16479 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16480 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16481 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16482 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16483 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16484 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16485 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16486 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16487 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16488 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16489 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16490 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16491 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16492 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16493 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16494 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16495 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16496 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16497 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16498 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16499 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16500 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16501 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16502 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16503 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16504 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16505 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16506 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16507 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16508 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16509 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16510 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16511 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16512 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16513 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16514 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16515 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16516 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16517 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16518 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16519 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16520 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16521 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16522 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16523 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16524 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16525 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16526 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16527 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16528 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16529 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16530 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16531 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16532 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16533 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16534 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16535 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16536 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16537 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16538 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16539 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16540
16541 LTCC='$LTCC'
16542 LTCFLAGS='$LTCFLAGS'
16543 compiler='$compiler_DEFAULT'
16544
16545 # A function that is used when there is no print builtin or printf.
16546 func_fallback_echo ()
16547 {
16548   eval 'cat <<_LTECHO_EOF
16549 \$1
16550 _LTECHO_EOF'
16551 }
16552
16553 # Quote evaled strings.
16554 for var in SHELL \
16555 ECHO \
16556 SED \
16557 GREP \
16558 EGREP \
16559 FGREP \
16560 LD \
16561 NM \
16562 LN_S \
16563 lt_SP2NL \
16564 lt_NL2SP \
16565 reload_flag \
16566 OBJDUMP \
16567 deplibs_check_method \
16568 file_magic_cmd \
16569 AR \
16570 AR_FLAGS \
16571 STRIP \
16572 RANLIB \
16573 CC \
16574 CFLAGS \
16575 compiler \
16576 lt_cv_sys_global_symbol_pipe \
16577 lt_cv_sys_global_symbol_to_cdecl \
16578 lt_cv_sys_global_symbol_to_c_name_address \
16579 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16580 lt_prog_compiler_no_builtin_flag \
16581 lt_prog_compiler_wl \
16582 lt_prog_compiler_pic \
16583 lt_prog_compiler_static \
16584 lt_cv_prog_compiler_c_o \
16585 need_locks \
16586 DSYMUTIL \
16587 NMEDIT \
16588 LIPO \
16589 OTOOL \
16590 OTOOL64 \
16591 shrext_cmds \
16592 export_dynamic_flag_spec \
16593 whole_archive_flag_spec \
16594 compiler_needs_object \
16595 with_gnu_ld \
16596 allow_undefined_flag \
16597 no_undefined_flag \
16598 hardcode_libdir_flag_spec \
16599 hardcode_libdir_flag_spec_ld \
16600 hardcode_libdir_separator \
16601 fix_srcfile_path \
16602 exclude_expsyms \
16603 include_expsyms \
16604 file_list_spec \
16605 variables_saved_for_relink \
16606 libname_spec \
16607 library_names_spec \
16608 soname_spec \
16609 install_override_mode \
16610 finish_eval \
16611 old_striplib \
16612 striplib \
16613 LD_D \
16614 reload_flag_D \
16615 compiler_D \
16616 lt_prog_compiler_no_builtin_flag_D \
16617 lt_prog_compiler_wl_D \
16618 lt_prog_compiler_pic_D \
16619 lt_prog_compiler_static_D \
16620 lt_cv_prog_compiler_c_o_D \
16621 export_dynamic_flag_spec_D \
16622 whole_archive_flag_spec_D \
16623 compiler_needs_object_D \
16624 with_gnu_ld_D \
16625 allow_undefined_flag_D \
16626 no_undefined_flag_D \
16627 hardcode_libdir_flag_spec_D \
16628 hardcode_libdir_flag_spec_ld_D \
16629 hardcode_libdir_separator_D \
16630 fix_srcfile_path_D \
16631 exclude_expsyms_D \
16632 include_expsyms_D \
16633 file_list_spec_D; do
16634     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16635     *[\\\\\\\`\\"\\\$]*)
16636       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16637       ;;
16638     *)
16639       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16640       ;;
16641     esac
16642 done
16643
16644 # Double-quote double-evaled strings.
16645 for var in reload_cmds \
16646 old_postinstall_cmds \
16647 old_postuninstall_cmds \
16648 old_archive_cmds \
16649 extract_expsyms_cmds \
16650 old_archive_from_new_cmds \
16651 old_archive_from_expsyms_cmds \
16652 archive_cmds \
16653 archive_expsym_cmds \
16654 module_cmds \
16655 module_expsym_cmds \
16656 export_symbols_cmds \
16657 prelink_cmds \
16658 postinstall_cmds \
16659 postuninstall_cmds \
16660 finish_cmds \
16661 sys_lib_search_path_spec \
16662 sys_lib_dlsearch_path_spec \
16663 reload_cmds_D \
16664 old_archive_cmds_D \
16665 old_archive_from_new_cmds_D \
16666 old_archive_from_expsyms_cmds_D \
16667 archive_cmds_D \
16668 archive_expsym_cmds_D \
16669 module_cmds_D \
16670 module_expsym_cmds_D \
16671 export_symbols_cmds_D \
16672 prelink_cmds_D; do
16673     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16674     *[\\\\\\\`\\"\\\$]*)
16675       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16676       ;;
16677     *)
16678       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16679       ;;
16680     esac
16681 done
16682
16683 ac_aux_dir='$ac_aux_dir'
16684 xsi_shell='$xsi_shell'
16685 lt_shell_append='$lt_shell_append'
16686
16687 # See if we are running on zsh, and set the options which allow our
16688 # commands through without removal of \ escapes INIT.
16689 if test -n "\${ZSH_VERSION+set}" ; then
16690    setopt NO_GLOB_SUBST
16691 fi
16692
16693
16694     PACKAGE='$PACKAGE'
16695     VERSION='$VERSION'
16696     TIMESTAMP='$TIMESTAMP'
16697     RM='$RM'
16698     ofile='$ofile'
16699
16700
16701
16702
16703
16704
16705 _ACEOF
16706
16707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16708
16709 # Handling of arguments.
16710 for ac_config_target in $ac_config_targets
16711 do
16712   case $ac_config_target in
16713     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16714     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16715     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16716     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16717     "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16718     "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16719     "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16720     "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16721     "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16722     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16723     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16724
16725   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16726   esac
16727 done
16728
16729
16730 # If the user did not use the arguments to specify the items to instantiate,
16731 # then the envvar interface is used.  Set only those that are not.
16732 # We use the long form for the default assignment because of an extremely
16733 # bizarre bug on SunOS 4.1.3.
16734 if $ac_need_defaults; then
16735   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16736   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16737   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16738 fi
16739
16740 # Have a temporary directory for convenience.  Make it in the build tree
16741 # simply because there is no reason against having it here, and in addition,
16742 # creating and moving files from /tmp can sometimes cause problems.
16743 # Hook for its removal unless debugging.
16744 # Note that there is a small window in which the directory will not be cleaned:
16745 # after its creation but before its name has been assigned to `$tmp'.
16746 $debug ||
16747 {
16748   tmp= ac_tmp=
16749   trap 'exit_status=$?
16750   : "${ac_tmp:=$tmp}"
16751   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16752 ' 0
16753   trap 'as_fn_exit 1' 1 2 13 15
16754 }
16755 # Create a (secure) tmp directory for tmp files.
16756
16757 {
16758   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16759   test -d "$tmp"
16760 }  ||
16761 {
16762   tmp=./conf$$-$RANDOM
16763   (umask 077 && mkdir "$tmp")
16764 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16765 ac_tmp=$tmp
16766
16767 # Set up the scripts for CONFIG_FILES section.
16768 # No need to generate them if there are no CONFIG_FILES.
16769 # This happens for instance with `./config.status config.h'.
16770 if test -n "$CONFIG_FILES"; then
16771
16772 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16773   ac_cs_awk_getline=:
16774   ac_cs_awk_pipe_init=
16775   ac_cs_awk_read_file='
16776       while ((getline aline < (F[key])) > 0)
16777         print(aline)
16778       close(F[key])'
16779   ac_cs_awk_pipe_fini=
16780 else
16781   ac_cs_awk_getline=false
16782   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16783   ac_cs_awk_read_file='
16784       print "|#_!!_#|"
16785       print "cat " F[key] " &&"
16786       '$ac_cs_awk_pipe_init
16787   # The final `:' finishes the AND list.
16788   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16789 fi
16790 ac_cr=`echo X | tr X '\015'`
16791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16792 # But we know of no other shell where ac_cr would be empty at this
16793 # point, so we can use a bashism as a fallback.
16794 if test "x$ac_cr" = x; then
16795   eval ac_cr=\$\'\\r\'
16796 fi
16797 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16799   ac_cs_awk_cr='\\r'
16800 else
16801   ac_cs_awk_cr=$ac_cr
16802 fi
16803
16804 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16805 _ACEOF
16806
16807 # Create commands to substitute file output variables.
16808 {
16809   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16810   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16811   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16812   echo "_ACAWK" &&
16813   echo "_ACEOF"
16814 } >conf$$files.sh &&
16815 . ./conf$$files.sh ||
16816   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16817 rm -f conf$$files.sh
16818
16819 {
16820   echo "cat >conf$$subs.awk <<_ACEOF" &&
16821   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16822   echo "_ACEOF"
16823 } >conf$$subs.sh ||
16824   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16825 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16826 ac_delim='%!_!# '
16827 for ac_last_try in false false false false false :; do
16828   . ./conf$$subs.sh ||
16829     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16830
16831   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16832   if test $ac_delim_n = $ac_delim_num; then
16833     break
16834   elif $ac_last_try; then
16835     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16836   else
16837     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16838   fi
16839 done
16840 rm -f conf$$subs.sh
16841
16842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16843 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16844 _ACEOF
16845 sed -n '
16846 h
16847 s/^/S["/; s/!.*/"]=/
16848 p
16849 g
16850 s/^[^!]*!//
16851 :repl
16852 t repl
16853 s/'"$ac_delim"'$//
16854 t delim
16855 :nl
16856 h
16857 s/\(.\{148\}\)..*/\1/
16858 t more1
16859 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16860 p
16861 n
16862 b repl
16863 :more1
16864 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16865 p
16866 g
16867 s/.\{148\}//
16868 t nl
16869 :delim
16870 h
16871 s/\(.\{148\}\)..*/\1/
16872 t more2
16873 s/["\\]/\\&/g; s/^/"/; s/$/"/
16874 p
16875 b
16876 :more2
16877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16878 p
16879 g
16880 s/.\{148\}//
16881 t delim
16882 ' <conf$$subs.awk | sed '
16883 /^[^""]/{
16884   N
16885   s/\n//
16886 }
16887 ' >>$CONFIG_STATUS || ac_write_fail=1
16888 rm -f conf$$subs.awk
16889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16890 _ACAWK
16891 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16892   for (key in S) S_is_set[key] = 1
16893   FS = "\a"
16894   \$ac_cs_awk_pipe_init
16895 }
16896 {
16897   line = $ 0
16898   nfields = split(line, field, "@")
16899   substed = 0
16900   len = length(field[1])
16901   for (i = 2; i < nfields; i++) {
16902     key = field[i]
16903     keylen = length(key)
16904     if (S_is_set[key]) {
16905       value = S[key]
16906       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16907       len += length(value) + length(field[++i])
16908       substed = 1
16909     } else
16910       len += 1 + keylen
16911   }
16912   if (nfields == 3 && !substed) {
16913     key = field[2]
16914     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16915       \$ac_cs_awk_read_file
16916       next
16917     }
16918   }
16919   print line
16920 }
16921 \$ac_cs_awk_pipe_fini
16922 _ACAWK
16923 _ACEOF
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16926   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16927 else
16928   cat
16929 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16930   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16931 _ACEOF
16932
16933 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16934 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16935 # trailing colons and then remove the whole line if VPATH becomes empty
16936 # (actually we leave an empty line to preserve line numbers).
16937 if test "x$srcdir" = x.; then
16938   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16939 h
16940 s///
16941 s/^/:/
16942 s/[      ]*$/:/
16943 s/:\$(srcdir):/:/g
16944 s/:\${srcdir}:/:/g
16945 s/:@srcdir@:/:/g
16946 s/^:*//
16947 s/:*$//
16948 x
16949 s/\(=[   ]*\).*/\1/
16950 G
16951 s/\n//
16952 s/^[^=]*=[       ]*$//
16953 }'
16954 fi
16955
16956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16957 fi # test -n "$CONFIG_FILES"
16958
16959 # Set up the scripts for CONFIG_HEADERS section.
16960 # No need to generate them if there are no CONFIG_HEADERS.
16961 # This happens for instance with `./config.status Makefile'.
16962 if test -n "$CONFIG_HEADERS"; then
16963 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16964 BEGIN {
16965 _ACEOF
16966
16967 # Transform confdefs.h into an awk script `defines.awk', embedded as
16968 # here-document in config.status, that substitutes the proper values into
16969 # config.h.in to produce config.h.
16970
16971 # Create a delimiter string that does not exist in confdefs.h, to ease
16972 # handling of long lines.
16973 ac_delim='%!_!# '
16974 for ac_last_try in false false :; do
16975   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16976   if test -z "$ac_tt"; then
16977     break
16978   elif $ac_last_try; then
16979     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16980   else
16981     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16982   fi
16983 done
16984
16985 # For the awk script, D is an array of macro values keyed by name,
16986 # likewise P contains macro parameters if any.  Preserve backslash
16987 # newline sequences.
16988
16989 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16990 sed -n '
16991 s/.\{148\}/&'"$ac_delim"'/g
16992 t rset
16993 :rset
16994 s/^[     ]*#[    ]*define[       ][      ]*/ /
16995 t def
16996 d
16997 :def
16998 s/\\$//
16999 t bsnl
17000 s/["\\]/\\&/g
17001 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17002 D["\1"]=" \3"/p
17003 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17004 d
17005 :bsnl
17006 s/["\\]/\\&/g
17007 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17008 D["\1"]=" \3\\\\\\n"\\/p
17009 t cont
17010 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17011 t cont
17012 d
17013 :cont
17014 n
17015 s/.\{148\}/&'"$ac_delim"'/g
17016 t clear
17017 :clear
17018 s/\\$//
17019 t bsnlc
17020 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17021 d
17022 :bsnlc
17023 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17024 b cont
17025 ' <confdefs.h | sed '
17026 s/'"$ac_delim"'/"\\\
17027 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17028
17029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17030   for (key in D) D_is_set[key] = 1
17031   FS = "\a"
17032 }
17033 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17034   line = \$ 0
17035   split(line, arg, " ")
17036   if (arg[1] == "#") {
17037     defundef = arg[2]
17038     mac1 = arg[3]
17039   } else {
17040     defundef = substr(arg[1], 2)
17041     mac1 = arg[2]
17042   }
17043   split(mac1, mac2, "(") #)
17044   macro = mac2[1]
17045   prefix = substr(line, 1, index(line, defundef) - 1)
17046   if (D_is_set[macro]) {
17047     # Preserve the white space surrounding the "#".
17048     print prefix "define", macro P[macro] D[macro]
17049     next
17050   } else {
17051     # Replace #undef with comments.  This is necessary, for example,
17052     # in the case of _POSIX_SOURCE, which is predefined and required
17053     # on some systems where configure will not decide to define it.
17054     if (defundef == "undef") {
17055       print "/*", prefix defundef, macro, "*/"
17056       next
17057     }
17058   }
17059 }
17060 { print }
17061 _ACAWK
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17064   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17065 fi # test -n "$CONFIG_HEADERS"
17066
17067
17068 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17069 shift
17070 for ac_tag
17071 do
17072   case $ac_tag in
17073   :[FHLC]) ac_mode=$ac_tag; continue;;
17074   esac
17075   case $ac_mode$ac_tag in
17076   :[FHL]*:*);;
17077   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17078   :[FH]-) ac_tag=-:-;;
17079   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17080   esac
17081   ac_save_IFS=$IFS
17082   IFS=:
17083   set x $ac_tag
17084   IFS=$ac_save_IFS
17085   shift
17086   ac_file=$1
17087   shift
17088
17089   case $ac_mode in
17090   :L) ac_source=$1;;
17091   :[FH])
17092     ac_file_inputs=
17093     for ac_f
17094     do
17095       case $ac_f in
17096       -) ac_f="$ac_tmp/stdin";;
17097       *) # Look for the file first in the build tree, then in the source tree
17098          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17099          # because $ac_f cannot contain `:'.
17100          test -f "$ac_f" ||
17101            case $ac_f in
17102            [\\/$]*) false;;
17103            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17104            esac ||
17105            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17106       esac
17107       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17108       as_fn_append ac_file_inputs " '$ac_f'"
17109     done
17110
17111     # Let's still pretend it is `configure' which instantiates (i.e., don't
17112     # use $as_me), people would be surprised to read:
17113     #    /* config.h.  Generated by config.status.  */
17114     configure_input='Generated from '`
17115           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17116         `' by configure.'
17117     if test x"$ac_file" != x-; then
17118       configure_input="$ac_file.  $configure_input"
17119       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17120 $as_echo "$as_me: creating $ac_file" >&6;}
17121     fi
17122     # Neutralize special characters interpreted by sed in replacement strings.
17123     case $configure_input in #(
17124     *\&* | *\|* | *\\* )
17125        ac_sed_conf_input=`$as_echo "$configure_input" |
17126        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17127     *) ac_sed_conf_input=$configure_input;;
17128     esac
17129
17130     case $ac_tag in
17131     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17132       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17133     esac
17134     ;;
17135   esac
17136
17137   ac_dir=`$as_dirname -- "$ac_file" ||
17138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17139          X"$ac_file" : 'X\(//\)[^/]' \| \
17140          X"$ac_file" : 'X\(//\)$' \| \
17141          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17142 $as_echo X"$ac_file" |
17143     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17144             s//\1/
17145             q
17146           }
17147           /^X\(\/\/\)[^/].*/{
17148             s//\1/
17149             q
17150           }
17151           /^X\(\/\/\)$/{
17152             s//\1/
17153             q
17154           }
17155           /^X\(\/\).*/{
17156             s//\1/
17157             q
17158           }
17159           s/.*/./; q'`
17160   as_dir="$ac_dir"; as_fn_mkdir_p
17161   ac_builddir=.
17162
17163 case "$ac_dir" in
17164 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17165 *)
17166   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17167   # A ".." for each directory in $ac_dir_suffix.
17168   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17169   case $ac_top_builddir_sub in
17170   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17171   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17172   esac ;;
17173 esac
17174 ac_abs_top_builddir=$ac_pwd
17175 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17176 # for backward compatibility:
17177 ac_top_builddir=$ac_top_build_prefix
17178
17179 case $srcdir in
17180   .)  # We are building in place.
17181     ac_srcdir=.
17182     ac_top_srcdir=$ac_top_builddir_sub
17183     ac_abs_top_srcdir=$ac_pwd ;;
17184   [\\/]* | ?:[\\/]* )  # Absolute name.
17185     ac_srcdir=$srcdir$ac_dir_suffix;
17186     ac_top_srcdir=$srcdir
17187     ac_abs_top_srcdir=$srcdir ;;
17188   *) # Relative name.
17189     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17190     ac_top_srcdir=$ac_top_build_prefix$srcdir
17191     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17192 esac
17193 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17194
17195
17196   case $ac_mode in
17197   :F)
17198   #
17199   # CONFIG_FILE
17200   #
17201
17202   case $INSTALL in
17203   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17204   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17205   esac
17206   ac_MKDIR_P=$MKDIR_P
17207   case $MKDIR_P in
17208   [\\/$]* | ?:[\\/]* ) ;;
17209   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17210   esac
17211 _ACEOF
17212
17213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17214 # If the template does not know about datarootdir, expand it.
17215 # FIXME: This hack should be removed a few years after 2.60.
17216 ac_datarootdir_hack=; ac_datarootdir_seen=
17217 ac_sed_dataroot='
17218 /datarootdir/ {
17219   p
17220   q
17221 }
17222 /@datadir@/p
17223 /@docdir@/p
17224 /@infodir@/p
17225 /@localedir@/p
17226 /@mandir@/p'
17227 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17228 *datarootdir*) ac_datarootdir_seen=yes;;
17229 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17231 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17232 _ACEOF
17233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17234   ac_datarootdir_hack='
17235   s&@datadir@&$datadir&g
17236   s&@docdir@&$docdir&g
17237   s&@infodir@&$infodir&g
17238   s&@localedir@&$localedir&g
17239   s&@mandir@&$mandir&g
17240   s&\\\${datarootdir}&$datarootdir&g' ;;
17241 esac
17242 _ACEOF
17243
17244 # Neutralize VPATH when `$srcdir' = `.'.
17245 # Shell code in configure.ac might set extrasub.
17246 # FIXME: do we really want to maintain this feature?
17247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17248 ac_sed_extra="$ac_vpsub
17249 $extrasub
17250 _ACEOF
17251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17252 :t
17253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17254 s|@configure_input@|$ac_sed_conf_input|;t t
17255 s&@top_builddir@&$ac_top_builddir_sub&;t t
17256 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17257 s&@srcdir@&$ac_srcdir&;t t
17258 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17259 s&@top_srcdir@&$ac_top_srcdir&;t t
17260 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17261 s&@builddir@&$ac_builddir&;t t
17262 s&@abs_builddir@&$ac_abs_builddir&;t t
17263 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17264 s&@INSTALL@&$ac_INSTALL&;t t
17265 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17266 $ac_datarootdir_hack
17267 "
17268 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17269 if $ac_cs_awk_getline; then
17270   $AWK -f "$ac_tmp/subs.awk"
17271 else
17272   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17273 fi \
17274   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17275
17276 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17277   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17278   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17279       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17281 which seems to be undefined.  Please make sure it is defined" >&5
17282 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17283 which seems to be undefined.  Please make sure it is defined" >&2;}
17284
17285   rm -f "$ac_tmp/stdin"
17286   case $ac_file in
17287   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17288   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17289   esac \
17290   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17291  ;;
17292   :H)
17293   #
17294   # CONFIG_HEADER
17295   #
17296   if test x"$ac_file" != x-; then
17297     {
17298       $as_echo "/* $configure_input  */" \
17299       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17300     } >"$ac_tmp/config.h" \
17301       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17302     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17303       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17304 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17305     else
17306       rm -f "$ac_file"
17307       mv "$ac_tmp/config.h" "$ac_file" \
17308         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17309     fi
17310   else
17311     $as_echo "/* $configure_input  */" \
17312       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17313       || as_fn_error $? "could not create -" "$LINENO" 5
17314   fi
17315 # Compute "$ac_file"'s index in $config_headers.
17316 _am_arg="$ac_file"
17317 _am_stamp_count=1
17318 for _am_header in $config_headers :; do
17319   case $_am_header in
17320     $_am_arg | $_am_arg:* )
17321       break ;;
17322     * )
17323       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17324   esac
17325 done
17326 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17327 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17328          X"$_am_arg" : 'X\(//\)[^/]' \| \
17329          X"$_am_arg" : 'X\(//\)$' \| \
17330          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17331 $as_echo X"$_am_arg" |
17332     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17333             s//\1/
17334             q
17335           }
17336           /^X\(\/\/\)[^/].*/{
17337             s//\1/
17338             q
17339           }
17340           /^X\(\/\/\)$/{
17341             s//\1/
17342             q
17343           }
17344           /^X\(\/\).*/{
17345             s//\1/
17346             q
17347           }
17348           s/.*/./; q'`/stamp-h$_am_stamp_count
17349  ;;
17350
17351   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17352 $as_echo "$as_me: executing $ac_file commands" >&6;}
17353  ;;
17354   esac
17355
17356
17357   case $ac_file$ac_mode in
17358     "default-1":C)
17359 # Only add multilib support code if we just rebuilt the top-level
17360 # Makefile.
17361 case " $CONFIG_FILES " in
17362  *" Makefile "*)
17363    ac_file=Makefile . ${multi_basedir}/config-ml.in
17364    ;;
17365 esac ;;
17366     "libtool":C)
17367
17368     # See if we are running on zsh, and set the options which allow our
17369     # commands through without removal of \ escapes.
17370     if test -n "${ZSH_VERSION+set}" ; then
17371       setopt NO_GLOB_SUBST
17372     fi
17373
17374     cfgfile="${ofile}T"
17375     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17376     $RM "$cfgfile"
17377
17378     cat <<_LT_EOF >> "$cfgfile"
17379 #! $SHELL
17380
17381 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17382 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17383 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17384 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17385 #
17386 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17387 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17388 #   Written by Gordon Matzigkeit, 1996
17389 #
17390 #   This file is part of GNU Libtool.
17391 #
17392 # GNU Libtool is free software; you can redistribute it and/or
17393 # modify it under the terms of the GNU General Public License as
17394 # published by the Free Software Foundation; either version 2 of
17395 # the License, or (at your option) any later version.
17396 #
17397 # As a special exception to the GNU General Public License,
17398 # if you distribute this file as part of a program or library that
17399 # is built using GNU Libtool, you may include this file under the
17400 # same distribution terms that you use for the rest of that program.
17401 #
17402 # GNU Libtool is distributed in the hope that it will be useful,
17403 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17404 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17405 # GNU General Public License for more details.
17406 #
17407 # You should have received a copy of the GNU General Public License
17408 # along with GNU Libtool; see the file COPYING.  If not, a copy
17409 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17410 # obtained by writing to the Free Software Foundation, Inc.,
17411 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17412
17413
17414 # The names of the tagged configurations supported by this script.
17415 available_tags="D "
17416
17417 # ### BEGIN LIBTOOL CONFIG
17418
17419 # Which release of libtool.m4 was used?
17420 macro_version=$macro_version
17421 macro_revision=$macro_revision
17422
17423 # Whether or not to build shared libraries.
17424 build_libtool_libs=$enable_shared
17425
17426 # Whether or not to build static libraries.
17427 build_old_libs=$enable_static
17428
17429 # What type of objects to build.
17430 pic_mode=$pic_mode
17431
17432 # Whether or not to optimize for fast installation.
17433 fast_install=$enable_fast_install
17434
17435 # Shell to use when invoking shell scripts.
17436 SHELL=$lt_SHELL
17437
17438 # An echo program that protects backslashes.
17439 ECHO=$lt_ECHO
17440
17441 # The host system.
17442 host_alias=$host_alias
17443 host=$host
17444 host_os=$host_os
17445
17446 # The build system.
17447 build_alias=$build_alias
17448 build=$build
17449 build_os=$build_os
17450
17451 # A sed program that does not truncate output.
17452 SED=$lt_SED
17453
17454 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17455 Xsed="\$SED -e 1s/^X//"
17456
17457 # A grep program that handles long lines.
17458 GREP=$lt_GREP
17459
17460 # An ERE matcher.
17461 EGREP=$lt_EGREP
17462
17463 # A literal string matcher.
17464 FGREP=$lt_FGREP
17465
17466 # A BSD- or MS-compatible name lister.
17467 NM=$lt_NM
17468
17469 # Whether we need soft or hard links.
17470 LN_S=$lt_LN_S
17471
17472 # What is the maximum length of a command?
17473 max_cmd_len=$max_cmd_len
17474
17475 # Object file suffix (normally "o").
17476 objext=$ac_objext
17477
17478 # Executable file suffix (normally "").
17479 exeext=$exeext
17480
17481 # whether the shell understands "unset".
17482 lt_unset=$lt_unset
17483
17484 # turn spaces into newlines.
17485 SP2NL=$lt_lt_SP2NL
17486
17487 # turn newlines into spaces.
17488 NL2SP=$lt_lt_NL2SP
17489
17490 # An object symbol dumper.
17491 OBJDUMP=$lt_OBJDUMP
17492
17493 # Method to check whether dependent libraries are shared objects.
17494 deplibs_check_method=$lt_deplibs_check_method
17495
17496 # Command to use when deplibs_check_method == "file_magic".
17497 file_magic_cmd=$lt_file_magic_cmd
17498
17499 # The archiver.
17500 AR=$lt_AR
17501 AR_FLAGS=$lt_AR_FLAGS
17502
17503 # A symbol stripping program.
17504 STRIP=$lt_STRIP
17505
17506 # Commands used to install an old-style archive.
17507 RANLIB=$lt_RANLIB
17508 old_postinstall_cmds=$lt_old_postinstall_cmds
17509 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17510
17511 # Whether to use a lock for old archive extraction.
17512 lock_old_archive_extraction=$lock_old_archive_extraction
17513
17514 # A C compiler.
17515 LTCC=$lt_CC
17516
17517 # LTCC compiler flags.
17518 LTCFLAGS=$lt_CFLAGS
17519
17520 # Take the output of nm and produce a listing of raw symbols and C names.
17521 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17522
17523 # Transform the output of nm in a proper C declaration.
17524 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17525
17526 # Transform the output of nm in a C name address pair.
17527 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17528
17529 # Transform the output of nm in a C name address pair when lib prefix is needed.
17530 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17531
17532 # The name of the directory that contains temporary libtool files.
17533 objdir=$objdir
17534
17535 # Used to examine libraries when file_magic_cmd begins with "file".
17536 MAGIC_CMD=$MAGIC_CMD
17537
17538 # Must we lock files when doing compilation?
17539 need_locks=$lt_need_locks
17540
17541 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17542 DSYMUTIL=$lt_DSYMUTIL
17543
17544 # Tool to change global to local symbols on Mac OS X.
17545 NMEDIT=$lt_NMEDIT
17546
17547 # Tool to manipulate fat objects and archives on Mac OS X.
17548 LIPO=$lt_LIPO
17549
17550 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17551 OTOOL=$lt_OTOOL
17552
17553 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17554 OTOOL64=$lt_OTOOL64
17555
17556 # Old archive suffix (normally "a").
17557 libext=$libext
17558
17559 # Shared library suffix (normally ".so").
17560 shrext_cmds=$lt_shrext_cmds
17561
17562 # The commands to extract the exported symbol list from a shared archive.
17563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17564
17565 # Variables whose values should be saved in libtool wrapper scripts and
17566 # restored at link time.
17567 variables_saved_for_relink=$lt_variables_saved_for_relink
17568
17569 # Do we need the "lib" prefix for modules?
17570 need_lib_prefix=$need_lib_prefix
17571
17572 # Do we need a version for libraries?
17573 need_version=$need_version
17574
17575 # Library versioning type.
17576 version_type=$version_type
17577
17578 # Shared library runtime path variable.
17579 runpath_var=$runpath_var
17580
17581 # Shared library path variable.
17582 shlibpath_var=$shlibpath_var
17583
17584 # Is shlibpath searched before the hard-coded library search path?
17585 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17586
17587 # Format of library name prefix.
17588 libname_spec=$lt_libname_spec
17589
17590 # List of archive names.  First name is the real one, the rest are links.
17591 # The last name is the one that the linker finds with -lNAME
17592 library_names_spec=$lt_library_names_spec
17593
17594 # The coded name of the library, if different from the real name.
17595 soname_spec=$lt_soname_spec
17596
17597 # Permission mode override for installation of shared libraries.
17598 install_override_mode=$lt_install_override_mode
17599
17600 # Command to use after installation of a shared archive.
17601 postinstall_cmds=$lt_postinstall_cmds
17602
17603 # Command to use after uninstallation of a shared archive.
17604 postuninstall_cmds=$lt_postuninstall_cmds
17605
17606 # Commands used to finish a libtool library installation in a directory.
17607 finish_cmds=$lt_finish_cmds
17608
17609 # As "finish_cmds", except a single script fragment to be evaled but
17610 # not shown.
17611 finish_eval=$lt_finish_eval
17612
17613 # Whether we should hardcode library paths into libraries.
17614 hardcode_into_libs=$hardcode_into_libs
17615
17616 # Compile-time system search path for libraries.
17617 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17618
17619 # Run-time system search path for libraries.
17620 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17621
17622 # Whether dlopen is supported.
17623 dlopen_support=$enable_dlopen
17624
17625 # Whether dlopen of programs is supported.
17626 dlopen_self=$enable_dlopen_self
17627
17628 # Whether dlopen of statically linked programs is supported.
17629 dlopen_self_static=$enable_dlopen_self_static
17630
17631 # Commands to strip libraries.
17632 old_striplib=$lt_old_striplib
17633 striplib=$lt_striplib
17634
17635
17636 # The linker used to build libraries.
17637 LD=$lt_LD
17638
17639 # How to create reloadable object files.
17640 reload_flag=$lt_reload_flag
17641 reload_cmds=$lt_reload_cmds
17642
17643 # Commands used to build an old-style archive.
17644 old_archive_cmds=$lt_old_archive_cmds
17645
17646 # A language specific compiler.
17647 CC=$lt_compiler
17648
17649 # Is the compiler the GNU compiler?
17650 with_gcc=$GCC
17651
17652 # Compiler flag to turn off builtin functions.
17653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17654
17655 # How to pass a linker flag through the compiler.
17656 wl=$lt_lt_prog_compiler_wl
17657
17658 # Additional compiler flags for building library objects.
17659 pic_flag=$lt_lt_prog_compiler_pic
17660
17661 # Compiler flag to prevent dynamic linking.
17662 link_static_flag=$lt_lt_prog_compiler_static
17663
17664 # Does compiler simultaneously support -c and -o options?
17665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17666
17667 # Whether or not to add -lc for building shared libraries.
17668 build_libtool_need_lc=$archive_cmds_need_lc
17669
17670 # Whether or not to disallow shared libs when runtime libs are static.
17671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17672
17673 # Compiler flag to allow reflexive dlopens.
17674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17675
17676 # Compiler flag to generate shared objects directly from archives.
17677 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17678
17679 # Whether the compiler copes with passing no objects directly.
17680 compiler_needs_object=$lt_compiler_needs_object
17681
17682 # Create an old-style archive from a shared archive.
17683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17684
17685 # Create a temporary old-style archive to link instead of a shared archive.
17686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17687
17688 # Commands used to build a shared archive.
17689 archive_cmds=$lt_archive_cmds
17690 archive_expsym_cmds=$lt_archive_expsym_cmds
17691
17692 # Commands used to build a loadable module if different from building
17693 # a shared archive.
17694 module_cmds=$lt_module_cmds
17695 module_expsym_cmds=$lt_module_expsym_cmds
17696
17697 # Whether we are building with GNU ld or not.
17698 with_gnu_ld=$lt_with_gnu_ld
17699
17700 # Flag that allows shared libraries with undefined symbols to be built.
17701 allow_undefined_flag=$lt_allow_undefined_flag
17702
17703 # Flag that enforces no undefined symbols.
17704 no_undefined_flag=$lt_no_undefined_flag
17705
17706 # Flag to hardcode \$libdir into a binary during linking.
17707 # This must work even if \$libdir does not exist
17708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17709
17710 # If ld is used when linking, flag to hardcode \$libdir into a binary
17711 # during linking.  This must work even if \$libdir does not exist.
17712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17713
17714 # Whether we need a single "-rpath" flag with a separated argument.
17715 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17716
17717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17718 # DIR into the resulting binary.
17719 hardcode_direct=$hardcode_direct
17720
17721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17722 # DIR into the resulting binary and the resulting library dependency is
17723 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17724 # library is relocated.
17725 hardcode_direct_absolute=$hardcode_direct_absolute
17726
17727 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17728 # into the resulting binary.
17729 hardcode_minus_L=$hardcode_minus_L
17730
17731 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17732 # into the resulting binary.
17733 hardcode_shlibpath_var=$hardcode_shlibpath_var
17734
17735 # Set to "yes" if building a shared library automatically hardcodes DIR
17736 # into the library and all subsequent libraries and executables linked
17737 # against it.
17738 hardcode_automatic=$hardcode_automatic
17739
17740 # Set to yes if linker adds runtime paths of dependent libraries
17741 # to runtime path list.
17742 inherit_rpath=$inherit_rpath
17743
17744 # Whether libtool must link a program against all its dependency libraries.
17745 link_all_deplibs=$link_all_deplibs
17746
17747 # Fix the shell variable \$srcfile for the compiler.
17748 fix_srcfile_path=$lt_fix_srcfile_path
17749
17750 # Set to "yes" if exported symbols are required.
17751 always_export_symbols=$always_export_symbols
17752
17753 # The commands to list exported symbols.
17754 export_symbols_cmds=$lt_export_symbols_cmds
17755
17756 # Symbols that should not be listed in the preloaded symbols.
17757 exclude_expsyms=$lt_exclude_expsyms
17758
17759 # Symbols that must always be exported.
17760 include_expsyms=$lt_include_expsyms
17761
17762 # Commands necessary for linking programs (against libraries) with templates.
17763 prelink_cmds=$lt_prelink_cmds
17764
17765 # Specify filename containing input files.
17766 file_list_spec=$lt_file_list_spec
17767
17768 # How to hardcode a shared library path into an executable.
17769 hardcode_action=$hardcode_action
17770
17771 # ### END LIBTOOL CONFIG
17772
17773 _LT_EOF
17774
17775   case $host_os in
17776   aix3*)
17777     cat <<\_LT_EOF >> "$cfgfile"
17778 # AIX sometimes has problems with the GCC collect2 program.  For some
17779 # reason, if we set the COLLECT_NAMES environment variable, the problems
17780 # vanish in a puff of smoke.
17781 if test "X${COLLECT_NAMES+set}" != Xset; then
17782   COLLECT_NAMES=
17783   export COLLECT_NAMES
17784 fi
17785 _LT_EOF
17786     ;;
17787   esac
17788
17789
17790 ltmain="$ac_aux_dir/ltmain.sh"
17791
17792
17793   # We use sed instead of cat because bash on DJGPP gets confused if
17794   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17795   # text mode, it properly converts lines to CR/LF.  This bash problem
17796   # is reportedly fixed, but why not run on old versions too?
17797   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17798     || (rm -f "$cfgfile"; exit 1)
17799
17800   case $xsi_shell in
17801   yes)
17802     cat << \_LT_EOF >> "$cfgfile"
17803
17804 # func_dirname file append nondir_replacement
17805 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17806 # otherwise set result to NONDIR_REPLACEMENT.
17807 func_dirname ()
17808 {
17809   case ${1} in
17810     */*) func_dirname_result="${1%/*}${2}" ;;
17811     *  ) func_dirname_result="${3}" ;;
17812   esac
17813 }
17814
17815 # func_basename file
17816 func_basename ()
17817 {
17818   func_basename_result="${1##*/}"
17819 }
17820
17821 # func_dirname_and_basename file append nondir_replacement
17822 # perform func_basename and func_dirname in a single function
17823 # call:
17824 #   dirname:  Compute the dirname of FILE.  If nonempty,
17825 #             add APPEND to the result, otherwise set result
17826 #             to NONDIR_REPLACEMENT.
17827 #             value returned in "$func_dirname_result"
17828 #   basename: Compute filename of FILE.
17829 #             value retuned in "$func_basename_result"
17830 # Implementation must be kept synchronized with func_dirname
17831 # and func_basename. For efficiency, we do not delegate to
17832 # those functions but instead duplicate the functionality here.
17833 func_dirname_and_basename ()
17834 {
17835   case ${1} in
17836     */*) func_dirname_result="${1%/*}${2}" ;;
17837     *  ) func_dirname_result="${3}" ;;
17838   esac
17839   func_basename_result="${1##*/}"
17840 }
17841
17842 # func_stripname prefix suffix name
17843 # strip PREFIX and SUFFIX off of NAME.
17844 # PREFIX and SUFFIX must not contain globbing or regex special
17845 # characters, hashes, percent signs, but SUFFIX may contain a leading
17846 # dot (in which case that matches only a dot).
17847 func_stripname ()
17848 {
17849   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17850   # positional parameters, so assign one to ordinary parameter first.
17851   func_stripname_result=${3}
17852   func_stripname_result=${func_stripname_result#"${1}"}
17853   func_stripname_result=${func_stripname_result%"${2}"}
17854 }
17855
17856 # func_opt_split
17857 func_opt_split ()
17858 {
17859   func_opt_split_opt=${1%%=*}
17860   func_opt_split_arg=${1#*=}
17861 }
17862
17863 # func_lo2o object
17864 func_lo2o ()
17865 {
17866   case ${1} in
17867     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17868     *)    func_lo2o_result=${1} ;;
17869   esac
17870 }
17871
17872 # func_xform libobj-or-source
17873 func_xform ()
17874 {
17875   func_xform_result=${1%.*}.lo
17876 }
17877
17878 # func_arith arithmetic-term...
17879 func_arith ()
17880 {
17881   func_arith_result=$(( $* ))
17882 }
17883
17884 # func_len string
17885 # STRING may not start with a hyphen.
17886 func_len ()
17887 {
17888   func_len_result=${#1}
17889 }
17890
17891 _LT_EOF
17892     ;;
17893   *) # Bourne compatible functions.
17894     cat << \_LT_EOF >> "$cfgfile"
17895
17896 # func_dirname file append nondir_replacement
17897 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17898 # otherwise set result to NONDIR_REPLACEMENT.
17899 func_dirname ()
17900 {
17901   # Extract subdirectory from the argument.
17902   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17903   if test "X$func_dirname_result" = "X${1}"; then
17904     func_dirname_result="${3}"
17905   else
17906     func_dirname_result="$func_dirname_result${2}"
17907   fi
17908 }
17909
17910 # func_basename file
17911 func_basename ()
17912 {
17913   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17914 }
17915
17916
17917 # func_stripname prefix suffix name
17918 # strip PREFIX and SUFFIX off of NAME.
17919 # PREFIX and SUFFIX must not contain globbing or regex special
17920 # characters, hashes, percent signs, but SUFFIX may contain a leading
17921 # dot (in which case that matches only a dot).
17922 # func_strip_suffix prefix name
17923 func_stripname ()
17924 {
17925   case ${2} in
17926     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17927     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17928   esac
17929 }
17930
17931 # sed scripts:
17932 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17933 my_sed_long_arg='1s/^-[^=]*=//'
17934
17935 # func_opt_split
17936 func_opt_split ()
17937 {
17938   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17939   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17940 }
17941
17942 # func_lo2o object
17943 func_lo2o ()
17944 {
17945   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17946 }
17947
17948 # func_xform libobj-or-source
17949 func_xform ()
17950 {
17951   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17952 }
17953
17954 # func_arith arithmetic-term...
17955 func_arith ()
17956 {
17957   func_arith_result=`expr "$@"`
17958 }
17959
17960 # func_len string
17961 # STRING may not start with a hyphen.
17962 func_len ()
17963 {
17964   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17965 }
17966
17967 _LT_EOF
17968 esac
17969
17970 case $lt_shell_append in
17971   yes)
17972     cat << \_LT_EOF >> "$cfgfile"
17973
17974 # func_append var value
17975 # Append VALUE to the end of shell variable VAR.
17976 func_append ()
17977 {
17978   eval "$1+=\$2"
17979 }
17980 _LT_EOF
17981     ;;
17982   *)
17983     cat << \_LT_EOF >> "$cfgfile"
17984
17985 # func_append var value
17986 # Append VALUE to the end of shell variable VAR.
17987 func_append ()
17988 {
17989   eval "$1=\$$1\$2"
17990 }
17991
17992 _LT_EOF
17993     ;;
17994   esac
17995
17996
17997   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17998     || (rm -f "$cfgfile"; exit 1)
17999
18000   mv -f "$cfgfile" "$ofile" ||
18001     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18002   chmod +x "$ofile"
18003
18004
18005     cat <<_LT_EOF >> "$ofile"
18006
18007 # ### BEGIN LIBTOOL TAG CONFIG: D
18008
18009 # The linker used to build libraries.
18010 LD=$lt_LD_D
18011
18012 # How to create reloadable object files.
18013 reload_flag=$lt_reload_flag_D
18014 reload_cmds=$lt_reload_cmds_D
18015
18016 # Commands used to build an old-style archive.
18017 old_archive_cmds=$lt_old_archive_cmds_D
18018
18019 # A language specific compiler.
18020 CC=$lt_compiler_D
18021
18022 # Is the compiler the GNU compiler?
18023 with_gcc=$GCC_D
18024
18025 # Compiler flag to turn off builtin functions.
18026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
18027
18028 # How to pass a linker flag through the compiler.
18029 wl=$lt_lt_prog_compiler_wl_D
18030
18031 # Additional compiler flags for building library objects.
18032 pic_flag=$lt_lt_prog_compiler_pic_D
18033
18034 # Compiler flag to prevent dynamic linking.
18035 link_static_flag=$lt_lt_prog_compiler_static_D
18036
18037 # Does compiler simultaneously support -c and -o options?
18038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
18039
18040 # Whether or not to add -lc for building shared libraries.
18041 build_libtool_need_lc=$archive_cmds_need_lc_D
18042
18043 # Whether or not to disallow shared libs when runtime libs are static.
18044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
18045
18046 # Compiler flag to allow reflexive dlopens.
18047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
18048
18049 # Compiler flag to generate shared objects directly from archives.
18050 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
18051
18052 # Whether the compiler copes with passing no objects directly.
18053 compiler_needs_object=$lt_compiler_needs_object_D
18054
18055 # Create an old-style archive from a shared archive.
18056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
18057
18058 # Create a temporary old-style archive to link instead of a shared archive.
18059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
18060
18061 # Commands used to build a shared archive.
18062 archive_cmds=$lt_archive_cmds_D
18063 archive_expsym_cmds=$lt_archive_expsym_cmds_D
18064
18065 # Commands used to build a loadable module if different from building
18066 # a shared archive.
18067 module_cmds=$lt_module_cmds_D
18068 module_expsym_cmds=$lt_module_expsym_cmds_D
18069
18070 # Whether we are building with GNU ld or not.
18071 with_gnu_ld=$lt_with_gnu_ld_D
18072
18073 # Flag that allows shared libraries with undefined symbols to be built.
18074 allow_undefined_flag=$lt_allow_undefined_flag_D
18075
18076 # Flag that enforces no undefined symbols.
18077 no_undefined_flag=$lt_no_undefined_flag_D
18078
18079 # Flag to hardcode \$libdir into a binary during linking.
18080 # This must work even if \$libdir does not exist
18081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
18082
18083 # If ld is used when linking, flag to hardcode \$libdir into a binary
18084 # during linking.  This must work even if \$libdir does not exist.
18085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
18086
18087 # Whether we need a single "-rpath" flag with a separated argument.
18088 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
18089
18090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18091 # DIR into the resulting binary.
18092 hardcode_direct=$hardcode_direct_D
18093
18094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18095 # DIR into the resulting binary and the resulting library dependency is
18096 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18097 # library is relocated.
18098 hardcode_direct_absolute=$hardcode_direct_absolute_D
18099
18100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18101 # into the resulting binary.
18102 hardcode_minus_L=$hardcode_minus_L_D
18103
18104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18105 # into the resulting binary.
18106 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
18107
18108 # Set to "yes" if building a shared library automatically hardcodes DIR
18109 # into the library and all subsequent libraries and executables linked
18110 # against it.
18111 hardcode_automatic=$hardcode_automatic_D
18112
18113 # Set to yes if linker adds runtime paths of dependent libraries
18114 # to runtime path list.
18115 inherit_rpath=$inherit_rpath_D
18116
18117 # Whether libtool must link a program against all its dependency libraries.
18118 link_all_deplibs=$link_all_deplibs_D
18119
18120 # Fix the shell variable \$srcfile for the compiler.
18121 fix_srcfile_path=$lt_fix_srcfile_path_D
18122
18123 # Set to "yes" if exported symbols are required.
18124 always_export_symbols=$always_export_symbols_D
18125
18126 # The commands to list exported symbols.
18127 export_symbols_cmds=$lt_export_symbols_cmds_D
18128
18129 # Symbols that should not be listed in the preloaded symbols.
18130 exclude_expsyms=$lt_exclude_expsyms_D
18131
18132 # Symbols that must always be exported.
18133 include_expsyms=$lt_include_expsyms_D
18134
18135 # Commands necessary for linking programs (against libraries) with templates.
18136 prelink_cmds=$lt_prelink_cmds_D
18137
18138 # Specify filename containing input files.
18139 file_list_spec=$lt_file_list_spec_D
18140
18141 # How to hardcode a shared library path into an executable.
18142 hardcode_action=$hardcode_action_D
18143
18144 # ### END LIBTOOL TAG CONFIG: D
18145 _LT_EOF
18146
18147  ;;
18148     "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
18149     "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
18150 s!`test -f '$<' || echo '$(srcdir)/'`!!
18151 _EOF
18152    sed -f vpsed$$ $ac_file > tmp$$
18153    mv tmp$$ $ac_file
18154    rm vpsed$$
18155    echo 'MULTISUBDIR =' >> $ac_file
18156    ml_norecursion=yes
18157    . ${multi_basedir}/config-ml.in
18158    { ml_norecursion=; unset ml_norecursion;}
18159  ;;
18160     "src/Makefile":F) cat > vpsed$$ << \_EOF
18161 s!`test -f '$<' || echo '$(srcdir)/'`!!
18162 _EOF
18163    sed -f vpsed$$ $ac_file > tmp$$
18164    mv tmp$$ $ac_file
18165    rm vpsed$$
18166    echo 'MULTISUBDIR =' >> $ac_file
18167    ml_norecursion=yes
18168    . ${multi_basedir}/config-ml.in
18169    { ml_norecursion=; unset ml_norecursion;}
18170  ;;
18171     "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
18172 s!`test -f '$<' || echo '$(srcdir)/'`!!
18173 _EOF
18174    sed -f vpsed$$ $ac_file > tmp$$
18175    mv tmp$$ $ac_file
18176    rm vpsed$$
18177    echo 'MULTISUBDIR =' >> $ac_file
18178    ml_norecursion=yes
18179    . ${multi_basedir}/config-ml.in
18180    { ml_norecursion=; unset ml_norecursion;}
18181  ;;
18182
18183   esac
18184 done # for ac_tag
18185
18186
18187 as_fn_exit 0
18188 _ACEOF
18189 ac_clean_files=$ac_clean_files_save
18190
18191 test $ac_write_fail = 0 ||
18192   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18193
18194
18195 # configure is writing to config.log, and then calls config.status.
18196 # config.status does its own redirection, appending to config.log.
18197 # Unfortunately, on DOS this fails, as config.log is still kept open
18198 # by configure, so config.status won't be able to write to it; its
18199 # output is simply discarded.  So we exec the FD to /dev/null,
18200 # effectively closing config.log, so it can be properly (re)opened and
18201 # appended to by config.status.  When coming back to configure, we
18202 # need to make the FD available again.
18203 if test "$no_create" != yes; then
18204   ac_cs_success=:
18205   ac_config_status_args=
18206   test "$silent" = yes &&
18207     ac_config_status_args="$ac_config_status_args --quiet"
18208   exec 5>/dev/null
18209   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18210   exec 5>>config.log
18211   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18212   # would make configure fail if this is the last instruction.
18213   $ac_cs_success || as_fn_exit 1
18214 fi
18215 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18216   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18217 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18218 fi
18219