libphobos: Remove --enable-druntime-gc configure option.
[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 GDCFLAGSX
638 libtool_VERSION
639 SPEC_PHOBOS_DEPS
640 CHECKING_DFLAGS
641 ENABLE_LIBPHOBOS_FALSE
642 ENABLE_LIBPHOBOS_TRUE
643 gdc_include_dir
644 libphobos_toolexeclibdir
645 libphobos_toolexecdir
646 gcc_version
647 LIBZ
648 BACKTRACE_SUPPORTS_THREADS
649 BACKTRACE_USES_MALLOC
650 BACKTRACE_SUPPORTED
651 LIBBACKTRACE
652 LIBATOMIC
653 DCFG_HAVE_LIBATOMIC
654 DCFG_HAVE_64BIT_ATOMICS
655 DCFG_HAVE_ATOMIC_BUILTINS
656 DCFG_HAVE_QSORT_R
657 OS_LINK_SPEC
658 DCFG_DLPI_TLS_MODID
659 DRUNTIME_OS_MINFO_BRACKETING_FALSE
660 DRUNTIME_OS_MINFO_BRACKETING_TRUE
661 DCFG_MINFO_BRACKETING
662 DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE
663 DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE
664 DCFG_ARM_EABI_UNWINDER
665 DCFG_THREAD_MODEL
666 DRUNTIME_OS_POSIX_FALSE
667 DRUNTIME_OS_POSIX_TRUE
668 DRUNTIME_OS_SOLARIS_FALSE
669 DRUNTIME_OS_SOLARIS_TRUE
670 DRUNTIME_OS_MINGW_FALSE
671 DRUNTIME_OS_MINGW_TRUE
672 DRUNTIME_OS_LINUX_FALSE
673 DRUNTIME_OS_LINUX_TRUE
674 DRUNTIME_OS_OPENBSD_FALSE
675 DRUNTIME_OS_OPENBSD_TRUE
676 DRUNTIME_OS_NETBSD_FALSE
677 DRUNTIME_OS_NETBSD_TRUE
678 DRUNTIME_OS_FREEBSD_FALSE
679 DRUNTIME_OS_FREEBSD_TRUE
680 DRUNTIME_OS_DRAGONFLYBSD_FALSE
681 DRUNTIME_OS_DRAGONFLYBSD_TRUE
682 DRUNTIME_OS_DARWIN_FALSE
683 DRUNTIME_OS_DARWIN_TRUE
684 DRUNTIME_OS_ANDROID_FALSE
685 DRUNTIME_OS_ANDROID_TRUE
686 DRUNTIME_OS_AIX_FALSE
687 DRUNTIME_OS_AIX_TRUE
688 DRUNTIME_CPU_S390_FALSE
689 DRUNTIME_CPU_S390_TRUE
690 DRUNTIME_CPU_SYSTEMZ_FALSE
691 DRUNTIME_CPU_SYSTEMZ_TRUE
692 DRUNTIME_CPU_X86_FALSE
693 DRUNTIME_CPU_X86_TRUE
694 DRUNTIME_CPU_POWERPC64_FALSE
695 DRUNTIME_CPU_POWERPC64_TRUE
696 DRUNTIME_CPU_POWERPC_FALSE
697 DRUNTIME_CPU_POWERPC_TRUE
698 DRUNTIME_CPU_MIPS_FALSE
699 DRUNTIME_CPU_MIPS_TRUE
700 DRUNTIME_CPU_ARM_FALSE
701 DRUNTIME_CPU_ARM_TRUE
702 DRUNTIME_CPU_AARCH64_FALSE
703 DRUNTIME_CPU_AARCH64_TRUE
704 libphobos_srcdir
705 libphobos_builddir
706 get_gcc_base_ver
707 phobos_compiler_shared_flag
708 phobos_compiler_pic_flag
709 OTOOL64
710 OTOOL
711 LIPO
712 NMEDIT
713 DSYMUTIL
714 OBJDUMP
715 LN_S
716 NM
717 ac_ct_DUMPBIN
718 DUMPBIN
719 LD
720 FGREP
721 SED
722 LIBTOOL
723 CFLAGS_FOR_BUILD
724 CC_FOR_BUILD
725 AR
726 RANLIB
727 MAINT
728 MAINTAINER_MODE_FALSE
729 MAINTAINER_MODE_TRUE
730 GDCFLAGS
731 GDC
732 CCASFLAGS
733 CCAS
734 AM_BACKSLASH
735 AM_DEFAULT_VERBOSITY
736 AM_DEFAULT_V
737 AM_V
738 am__untar
739 am__tar
740 AMTAR
741 am__leading_dot
742 SET_MAKE
743 AWK
744 mkdir_p
745 MKDIR_P
746 INSTALL_STRIP_PROGRAM
747 STRIP
748 install_sh
749 MAKEINFO
750 AUTOHEADER
751 AUTOMAKE
752 AUTOCONF
753 ACLOCAL
754 VERSION
755 PACKAGE
756 CYGPATH_W
757 am__isrc
758 INSTALL_DATA
759 INSTALL_SCRIPT
760 INSTALL_PROGRAM
761 EGREP
762 GREP
763 CPP
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
770 CC
771 target_os
772 target_vendor
773 target_cpu
774 target
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 multi_basedir
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files='DRTSTUFF_SPEC'
823 ac_user_opts='
824 enable_option_checking
825 enable_multilib
826 enable_silent_rules
827 enable_maintainer_mode
828 enable_shared
829 enable_static
830 with_pic
831 enable_fast_install
832 with_gnu_ld
833 enable_libtool_lock
834 with_gcc_major_version_only
835 enable_werror
836 with_libatomic
837 with_libbacktrace
838 with_target_system_zlib
839 with_cross_host
840 enable_version_specific_runtime_libs
841 with_toolexeclibdir
842 enable_libphobos
843 enable_libphobos_checking
844 '
845       ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CPP'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
903
904 ac_prev=
905 ac_dashdash=
906 for ac_option
907 do
908   # If the previous option needs an argument, assign it.
909   if test -n "$ac_prev"; then
910     eval $ac_prev=\$ac_option
911     ac_prev=
912     continue
913   fi
914
915   case $ac_option in
916   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917   *=)   ac_optarg= ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963       as_fn_error $? "invalid feature name: $ac_useropt"
964     ac_useropt_orig=$ac_useropt
965     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966     case $ac_user_opts in
967       *"
968 "enable_$ac_useropt"
969 "*) ;;
970       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971          ac_unrecognized_sep=', ';;
972     esac
973     eval enable_$ac_useropt=no ;;
974
975   -docdir | --docdir | --docdi | --doc | --do)
976     ac_prev=docdir ;;
977   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978     docdir=$ac_optarg ;;
979
980   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981     ac_prev=dvidir ;;
982   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983     dvidir=$ac_optarg ;;
984
985   -enable-* | --enable-*)
986     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987     # Reject names that are not valid shell variable names.
988     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989       as_fn_error $? "invalid feature name: $ac_useropt"
990     ac_useropt_orig=$ac_useropt
991     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992     case $ac_user_opts in
993       *"
994 "enable_$ac_useropt"
995 "*) ;;
996       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997          ac_unrecognized_sep=', ';;
998     esac
999     eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003   | --exec | --exe | --ex)
1004     ac_prev=exec_prefix ;;
1005   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007   | --exec=* | --exe=* | --ex=*)
1008     exec_prefix=$ac_optarg ;;
1009
1010   -gas | --gas | --ga | --g)
1011     # Obsolete; use --with-gas.
1012     with_gas=yes ;;
1013
1014   -help | --help | --hel | --he | -h)
1015     ac_init_help=long ;;
1016   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017     ac_init_help=recursive ;;
1018   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019     ac_init_help=short ;;
1020
1021   -host | --host | --hos | --ho)
1022     ac_prev=host_alias ;;
1023   -host=* | --host=* | --hos=* | --ho=*)
1024     host_alias=$ac_optarg ;;
1025
1026   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027     ac_prev=htmldir ;;
1028   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029   | --ht=*)
1030     htmldir=$ac_optarg ;;
1031
1032   -includedir | --includedir | --includedi | --included | --include \
1033   | --includ | --inclu | --incl | --inc)
1034     ac_prev=includedir ;;
1035   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036   | --includ=* | --inclu=* | --incl=* | --inc=*)
1037     includedir=$ac_optarg ;;
1038
1039   -infodir | --infodir | --infodi | --infod | --info | --inf)
1040     ac_prev=infodir ;;
1041   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042     infodir=$ac_optarg ;;
1043
1044   -libdir | --libdir | --libdi | --libd)
1045     ac_prev=libdir ;;
1046   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047     libdir=$ac_optarg ;;
1048
1049   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050   | --libexe | --libex | --libe)
1051     ac_prev=libexecdir ;;
1052   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053   | --libexe=* | --libex=* | --libe=*)
1054     libexecdir=$ac_optarg ;;
1055
1056   -localedir | --localedir | --localedi | --localed | --locale)
1057     ac_prev=localedir ;;
1058   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059     localedir=$ac_optarg ;;
1060
1061   -localstatedir | --localstatedir | --localstatedi | --localstated \
1062   | --localstate | --localstat | --localsta | --localst | --locals)
1063     ac_prev=localstatedir ;;
1064   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066     localstatedir=$ac_optarg ;;
1067
1068   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069     ac_prev=mandir ;;
1070   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071     mandir=$ac_optarg ;;
1072
1073   -nfp | --nfp | --nf)
1074     # Obsolete; use --without-fp.
1075     with_fp=no ;;
1076
1077   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078   | --no-cr | --no-c | -n)
1079     no_create=yes ;;
1080
1081   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083     no_recursion=yes ;;
1084
1085   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087   | --oldin | --oldi | --old | --ol | --o)
1088     ac_prev=oldincludedir ;;
1089   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092     oldincludedir=$ac_optarg ;;
1093
1094   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095     ac_prev=prefix ;;
1096   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097     prefix=$ac_optarg ;;
1098
1099   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100   | --program-pre | --program-pr | --program-p)
1101     ac_prev=program_prefix ;;
1102   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104     program_prefix=$ac_optarg ;;
1105
1106   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107   | --program-suf | --program-su | --program-s)
1108     ac_prev=program_suffix ;;
1109   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111     program_suffix=$ac_optarg ;;
1112
1113   -program-transform-name | --program-transform-name \
1114   | --program-transform-nam | --program-transform-na \
1115   | --program-transform-n | --program-transform- \
1116   | --program-transform | --program-transfor \
1117   | --program-transfo | --program-transf \
1118   | --program-trans | --program-tran \
1119   | --progr-tra | --program-tr | --program-t)
1120     ac_prev=program_transform_name ;;
1121   -program-transform-name=* | --program-transform-name=* \
1122   | --program-transform-nam=* | --program-transform-na=* \
1123   | --program-transform-n=* | --program-transform-=* \
1124   | --program-transform=* | --program-transfor=* \
1125   | --program-transfo=* | --program-transf=* \
1126   | --program-trans=* | --program-tran=* \
1127   | --progr-tra=* | --program-tr=* | --program-t=*)
1128     program_transform_name=$ac_optarg ;;
1129
1130   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131     ac_prev=pdfdir ;;
1132   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133     pdfdir=$ac_optarg ;;
1134
1135   -psdir | --psdir | --psdi | --psd | --ps)
1136     ac_prev=psdir ;;
1137   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138     psdir=$ac_optarg ;;
1139
1140   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141   | -silent | --silent | --silen | --sile | --sil)
1142     silent=yes ;;
1143
1144   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145     ac_prev=sbindir ;;
1146   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147   | --sbi=* | --sb=*)
1148     sbindir=$ac_optarg ;;
1149
1150   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152   | --sharedst | --shareds | --shared | --share | --shar \
1153   | --sha | --sh)
1154     ac_prev=sharedstatedir ;;
1155   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158   | --sha=* | --sh=*)
1159     sharedstatedir=$ac_optarg ;;
1160
1161   -site | --site | --sit)
1162     ac_prev=site ;;
1163   -site=* | --site=* | --sit=*)
1164     site=$ac_optarg ;;
1165
1166   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167     ac_prev=srcdir ;;
1168   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169     srcdir=$ac_optarg ;;
1170
1171   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172   | --syscon | --sysco | --sysc | --sys | --sy)
1173     ac_prev=sysconfdir ;;
1174   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176     sysconfdir=$ac_optarg ;;
1177
1178   -target | --target | --targe | --targ | --tar | --ta | --t)
1179     ac_prev=target_alias ;;
1180   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181     target_alias=$ac_optarg ;;
1182
1183   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184     verbose=yes ;;
1185
1186   -version | --version | --versio | --versi | --vers | -V)
1187     ac_init_version=: ;;
1188
1189   -with-* | --with-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=no ;;
1220
1221   --x)
1222     # Obsolete; use --with-x.
1223     with_x=yes ;;
1224
1225   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226   | --x-incl | --x-inc | --x-in | --x-i)
1227     ac_prev=x_includes ;;
1228   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230     x_includes=$ac_optarg ;;
1231
1232   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234     ac_prev=x_libraries ;;
1235   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237     x_libraries=$ac_optarg ;;
1238
1239   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241     ;;
1242
1243   *=*)
1244     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245     # Reject names that are not valid shell variable names.
1246     case $ac_envvar in #(
1247       '' | [0-9]* | *[!_$as_cr_alnum]* )
1248       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249     esac
1250     eval $ac_envvar=\$ac_optarg
1251     export $ac_envvar ;;
1252
1253   *)
1254     # FIXME: should be removed in autoconf 3.0.
1255     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259     ;;
1260
1261   esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266   as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270   case $enable_option_checking in
1271     no) ;;
1272     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274   esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279                 datadir sysconfdir sharedstatedir localstatedir includedir \
1280                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281                 libdir localedir mandir
1282 do
1283   eval ac_val=\$$ac_var
1284   # Remove trailing slashes.
1285   case $ac_val in
1286     */ )
1287       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288       eval $ac_var=\$ac_val;;
1289   esac
1290   # Be sure to have absolute directory names.
1291   case $ac_val in
1292     [\\/$]* | ?:[\\/]* )  continue;;
1293     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294   esac
1295   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307   if test "x$build_alias" = x; then
1308     cross_compiling=maybe
1309   elif test "x$build_alias" != "x$host_alias"; then
1310     cross_compiling=yes
1311   fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323   as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330   ac_srcdir_defaulted=yes
1331   # Try the directory containing this script, then the parent directory.
1332   ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334          X"$as_myself" : 'X\(//\)[^/]' \| \
1335          X"$as_myself" : 'X\(//\)$' \| \
1336          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339             s//\1/
1340             q
1341           }
1342           /^X\(\/\/\)[^/].*/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)$/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\).*/{
1351             s//\1/
1352             q
1353           }
1354           s/.*/./; q'`
1355   srcdir=$ac_confdir
1356   if test ! -r "$srcdir/$ac_unique_file"; then
1357     srcdir=..
1358   fi
1359 else
1360   ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369         pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372   srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382   eval ac_env_${ac_var}_value=\$${ac_var}
1383   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391   # Omit some internal or obsolete options to make the list less imposing.
1392   # This message is too long to be a string in the A/UX 3.1 sh.
1393   cat <<_ACEOF
1394 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE.  See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404   -h, --help              display this help and exit
1405       --help=short        display options specific to this package
1406       --help=recursive    display the short help of all the included packages
1407   -V, --version           display version information and exit
1408   -q, --quiet, --silent   do not print \`checking ...' messages
1409       --cache-file=FILE   cache test results in FILE [disabled]
1410   -C, --config-cache      alias for \`--cache-file=config.cache'
1411   -n, --no-create         do not create output files
1412       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415   --prefix=PREFIX         install architecture-independent files in PREFIX
1416                           [$ac_default_prefix]
1417   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1418                           [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428   --bindir=DIR            user executables [EPREFIX/bin]
1429   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1430   --libexecdir=DIR        program executables [EPREFIX/libexec]
1431   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1432   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1433   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1434   --libdir=DIR            object code libraries [EPREFIX/lib]
1435   --includedir=DIR        C header files [PREFIX/include]
1436   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439   --infodir=DIR           info documentation [DATAROOTDIR/info]
1440   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441   --mandir=DIR            man documentation [DATAROOTDIR/man]
1442   --docdir=DIR            documentation root [DATAROOTDIR/doc/libphobos]
1443   --htmldir=DIR           html documentation [DOCDIR]
1444   --dvidir=DIR            dvi documentation [DOCDIR]
1445   --pdfdir=DIR            pdf documentation [DOCDIR]
1446   --psdir=DIR             ps documentation [DOCDIR]
1447 _ACEOF
1448
1449   cat <<\_ACEOF
1450
1451 Program names:
1452   --program-prefix=PREFIX            prepend PREFIX to installed program names
1453   --program-suffix=SUFFIX            append SUFFIX to installed program names
1454   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459   --target=TARGET   configure for building compilers for TARGET [HOST]
1460 _ACEOF
1461 fi
1462
1463 if test -n "$ac_init_help"; then
1464   case $ac_init_help in
1465      short | recursive ) echo "Configuration of package-unused version-unused:";;
1466    esac
1467   cat <<\_ACEOF
1468
1469 Optional Features:
1470   --disable-option-checking  ignore unrecognized --enable/--with options
1471   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473   --enable-multilib       build many library versions (default)
1474   --enable-silent-rules   less verbose build output (undo: "make V=1")
1475   --disable-silent-rules  verbose build output (undo: "make V=0")
1476   --enable-maintainer-mode
1477                           enable make rules and dependencies not useful (and
1478                           sometimes confusing) to the casual installer
1479   --enable-shared[=PKGS]  build shared libraries [default=yes]
1480   --enable-static[=PKGS]  build static libraries [default=yes]
1481   --enable-fast-install[=PKGS]
1482                           optimize for fast installation [default=yes]
1483   --disable-libtool-lock  avoid locking (might break parallel builds)
1484   --enable-werror         turns on -Werror [default=no]
1485   --enable-version-specific-runtime-libs
1486                           Specify that runtime libraries should be installed
1487                           in a compiler-specific directory
1488   --enable-libphobos      Enable libphobos
1489   --enable-libphobos-checking[=LIST]
1490                           enable expensive run-time checks. With LIST, enable
1491                           only specific categories of checks. Categories are:
1492                           yes,no,all,none,release. Flags are: assert or other
1493                           strings
1494
1495 Optional Packages:
1496   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1497   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1498   --with-pic              try to use only PIC/non-PIC objects [default=use
1499                           both]
1500   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1501   --with-gcc-major-version-only
1502                           use only GCC major number in filesystem paths
1503   --without-libatomic     Do not use libatomic in core.atomic (default: auto)
1504   --without-libbacktrace  Do not use libbacktrace in core.runtime (default:
1505                           auto)
1506   --with-target-system-zlib={yes,no,auto}
1507                           use installed libz (default: no)
1508   --with-cross-host=HOST  configuring with a cross compiler
1509   --with-toolexeclibdir=DIR
1510                           install libraries built with a cross compiler within
1511                           DIR
1512
1513 Some influential environment variables:
1514   CC          C compiler command
1515   CFLAGS      C compiler flags
1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517               nonstandard directory <lib dir>
1518   LIBS        libraries to pass to the linker, e.g. -l<library>
1519   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CPP         C preprocessor
1522   CCAS        assembler compiler command (defaults to CC)
1523   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1524   GDC         D compiler command
1525   GDCFLAGS    D compiler flags
1526
1527 Use these variables to override the choices made by `configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to the package provider.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" ||
1539       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540       continue
1541     ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547   # A ".." for each directory in $ac_dir_suffix.
1548   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549   case $ac_top_builddir_sub in
1550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552   esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560   .)  # We are building in place.
1561     ac_srcdir=.
1562     ac_top_srcdir=$ac_top_builddir_sub
1563     ac_abs_top_srcdir=$ac_pwd ;;
1564   [\\/]* | ?:[\\/]* )  # Absolute name.
1565     ac_srcdir=$srcdir$ac_dir_suffix;
1566     ac_top_srcdir=$srcdir
1567     ac_abs_top_srcdir=$srcdir ;;
1568   *) # Relative name.
1569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570     ac_top_srcdir=$ac_top_build_prefix$srcdir
1571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575     cd "$ac_dir" || { ac_status=$?; continue; }
1576     # Check for guested configure.
1577     if test -f "$ac_srcdir/configure.gnu"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580     elif test -f "$ac_srcdir/configure"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure" --help=recursive
1583     else
1584       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585     fi || ac_status=$?
1586     cd "$ac_pwd" || { ac_status=$?; break; }
1587   done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592   cat <<\_ACEOF
1593 package-unused configure version-unused
1594 generated by GNU Autoconf 2.69
1595
1596 Copyright (C) 2012 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   rm -f conftest.$ac_objext
1614   if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_compile") 2>conftest.err
1622   ac_status=$?
1623   if test -s conftest.err; then
1624     grep -v '^ *+' conftest.err >conftest.er1
1625     cat conftest.er1 >&5
1626     mv -f conftest.er1 conftest.err
1627   fi
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && {
1630          test -z "$ac_c_werror_flag" ||
1631          test ! -s conftest.err
1632        } && test -s conftest.$ac_objext; then :
1633   ac_retval=0
1634 else
1635   $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638         ac_retval=1
1639 fi
1640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641   as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } > conftest.i && {
1667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        }; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675     ac_retval=1
1676 fi
1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678   as_fn_set_status $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1683 # -------------------------------------------------------
1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1685 # the include files in INCLUDES and setting the cache variable VAR
1686 # accordingly.
1687 ac_fn_c_check_header_mongrel ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   if eval \${$3+:} false; then :
1691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \${$3+:} false; then :
1694   $as_echo_n "(cached) " >&6
1695 fi
1696 eval ac_res=\$$3
1697                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 else
1700   # Is the header compilable?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1702 $as_echo_n "checking $2 usability... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h.  */
1705 $4
1706 #include <$2>
1707 _ACEOF
1708 if ac_fn_c_try_compile "$LINENO"; then :
1709   ac_header_compiler=yes
1710 else
1711   ac_header_compiler=no
1712 fi
1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1715 $as_echo "$ac_header_compiler" >&6; }
1716
1717 # Is the header present?
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1719 $as_echo_n "checking $2 presence... " >&6; }
1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721 /* end confdefs.h.  */
1722 #include <$2>
1723 _ACEOF
1724 if ac_fn_c_try_cpp "$LINENO"; then :
1725   ac_header_preproc=yes
1726 else
1727   ac_header_preproc=no
1728 fi
1729 rm -f conftest.err conftest.i conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1731 $as_echo "$ac_header_preproc" >&6; }
1732
1733 # So?  What about this header?
1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735   yes:no: )
1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740     ;;
1741   no:yes:* )
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1745 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1749 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752     ;;
1753 esac
1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757   $as_echo_n "(cached) " >&6
1758 else
1759   eval "$3=\$ac_header_compiler"
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767 } # ac_fn_c_check_header_mongrel
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_link") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1794   ac_status=$?
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; }; }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: program exited with status $ac_status" >&5
1800        $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803        ac_retval=$ac_status
1804 fi
1805   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807   as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_run
1810
1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812 # -------------------------------------------------------
1813 # Tests whether HEADER exists and can be compiled using the include files in
1814 # INCLUDES, setting the cache variable VAR accordingly.
1815 ac_fn_c_check_header_compile ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821   $as_echo_n "(cached) " >&6
1822 else
1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 $4
1826 #include <$2>
1827 _ACEOF
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829   eval "$3=yes"
1830 else
1831   eval "$3=no"
1832 fi
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_header_compile
1841
1842 # ac_fn_d_try_compile LINENO
1843 # --------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_d_try_compile ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   rm -f conftest.$ac_objext
1849   if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852   *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856   (eval "$ac_compile") 2>conftest.err
1857   ac_status=$?
1858   if test -s conftest.err; then
1859     grep -v '^ *+' conftest.err >conftest.er1
1860     cat conftest.er1 >&5
1861     mv -f conftest.er1 conftest.err
1862   fi
1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864   test $ac_status = 0; } && {
1865          test -z "$ac_d_werror_flag" ||
1866          test ! -s conftest.err
1867        } && test -s conftest.$ac_objext; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873         ac_retval=1
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_d_try_compile
1879
1880 # ac_fn_c_try_link LINENO
1881 # -----------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_c_try_link ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   rm -f conftest.$ac_objext conftest$ac_exeext
1887   if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_link") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && {
1903          test -z "$ac_c_werror_flag" ||
1904          test ! -s conftest.err
1905        } && test -s conftest$ac_exeext && {
1906          test "$cross_compiling" = yes ||
1907          test -x conftest$ac_exeext
1908        }; then :
1909   ac_retval=0
1910 else
1911   $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914         ac_retval=1
1915 fi
1916   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918   # interfere with the next link command; also delete a directory that is
1919   # left behind by Apple's compiler.  We do this before executing the actions.
1920   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_c_try_link
1925
1926 # ac_fn_c_check_func LINENO FUNC VAR
1927 # ----------------------------------
1928 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1929 ac_fn_c_check_func ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935   $as_echo_n "(cached) " >&6
1936 else
1937   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h.  */
1939 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1941 #define $2 innocuous_$2
1942
1943 /* System header to define __stub macros and hopefully few prototypes,
1944     which can conflict with char $2 (); below.
1945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1946     <limits.h> exists even on freestanding compilers.  */
1947
1948 #ifdef __STDC__
1949 # include <limits.h>
1950 #else
1951 # include <assert.h>
1952 #endif
1953
1954 #undef $2
1955
1956 /* Override any GCC internal prototype to avoid an error.
1957    Use char because int might match the return type of a GCC
1958    builtin and then its argument prototype would still apply.  */
1959 #ifdef __cplusplus
1960 extern "C"
1961 #endif
1962 char $2 ();
1963 /* The GNU C library defines this for functions which it implements
1964     to always fail with ENOSYS.  Some functions are actually named
1965     something starting with __ and the normal name is an alias.  */
1966 #if defined __stub_$2 || defined __stub___$2
1967 choke me
1968 #endif
1969
1970 int
1971 main ()
1972 {
1973 return $2 ();
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_link "$LINENO"; then :
1979   eval "$3=yes"
1980 else
1981   eval "$3=no"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext \
1984     conftest$ac_exeext conftest.$ac_ext
1985 fi
1986 eval ac_res=\$$3
1987                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990
1991 } # ac_fn_c_check_func
1992
1993 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994 # ----------------------------------------------------
1995 # Tries to find if the field MEMBER exists in type AGGR, after including
1996 # INCLUDES, setting cache variable VAR accordingly.
1997 ac_fn_c_check_member ()
1998 {
1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001 $as_echo_n "checking for $2.$3... " >&6; }
2002 if eval \${$4+:} false; then :
2003   $as_echo_n "(cached) " >&6
2004 else
2005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h.  */
2007 $5
2008 int
2009 main ()
2010 {
2011 static $2 ac_aggr;
2012 if (ac_aggr.$3)
2013 return 0;
2014   ;
2015   return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019   eval "$4=yes"
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $5
2024 int
2025 main ()
2026 {
2027 static $2 ac_aggr;
2028 if (sizeof ac_aggr.$3)
2029 return 0;
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035   eval "$4=yes"
2036 else
2037   eval "$4=no"
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 fi
2043 eval ac_res=\$$4
2044                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048 } # ac_fn_c_check_member
2049
2050 # ac_fn_d_try_link LINENO
2051 # -----------------------
2052 # Try to link conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_d_try_link ()
2054 {
2055   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056   rm -f conftest.$ac_objext conftest$ac_exeext
2057   if { { ac_try="$ac_link"
2058 case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064   (eval "$ac_link") 2>conftest.err
2065   ac_status=$?
2066   if test -s conftest.err; then
2067     grep -v '^ *+' conftest.err >conftest.er1
2068     cat conftest.er1 >&5
2069     mv -f conftest.er1 conftest.err
2070   fi
2071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072   test $ac_status = 0; } && {
2073          test -z "$ac_d_werror_flag" ||
2074          test ! -s conftest.err
2075        } && test -s conftest$ac_exeext && {
2076          test "$cross_compiling" = yes ||
2077          test -x conftest$ac_exeext
2078        }; then :
2079   ac_retval=0
2080 else
2081   $as_echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084         ac_retval=1
2085 fi
2086   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2087   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2088   # interfere with the next link command; also delete a directory that is
2089   # left behind by Apple's compiler.  We do this before executing the actions.
2090   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2091   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092   as_fn_set_status $ac_retval
2093
2094 } # ac_fn_d_try_link
2095 cat >config.log <<_ACEOF
2096 This file contains any messages produced by compilers while
2097 running configure, to aid debugging if configure makes a mistake.
2098
2099 It was created by package-unused $as_me version-unused, which was
2100 generated by GNU Autoconf 2.69.  Invocation command line was
2101
2102   $ $0 $@
2103
2104 _ACEOF
2105 exec 5>>config.log
2106 {
2107 cat <<_ASUNAME
2108 ## --------- ##
2109 ## Platform. ##
2110 ## --------- ##
2111
2112 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2120
2121 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2122 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2123 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2124 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2125 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2126 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2127 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2128
2129 _ASUNAME
2130
2131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132 for as_dir in $PATH
2133 do
2134   IFS=$as_save_IFS
2135   test -z "$as_dir" && as_dir=.
2136     $as_echo "PATH: $as_dir"
2137   done
2138 IFS=$as_save_IFS
2139
2140 } >&5
2141
2142 cat >&5 <<_ACEOF
2143
2144
2145 ## ----------- ##
2146 ## Core tests. ##
2147 ## ----------- ##
2148
2149 _ACEOF
2150
2151
2152 # Keep a trace of the command line.
2153 # Strip out --no-create and --no-recursion so they do not pile up.
2154 # Strip out --silent because we don't want to record it for future runs.
2155 # Also quote any args containing shell meta-characters.
2156 # Make two passes to allow for proper duplicate-argument suppression.
2157 ac_configure_args=
2158 ac_configure_args0=
2159 ac_configure_args1=
2160 ac_must_keep_next=false
2161 for ac_pass in 1 2
2162 do
2163   for ac_arg
2164   do
2165     case $ac_arg in
2166     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168     | -silent | --silent | --silen | --sile | --sil)
2169       continue ;;
2170     *\'*)
2171       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2172     esac
2173     case $ac_pass in
2174     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2175     2)
2176       as_fn_append ac_configure_args1 " '$ac_arg'"
2177       if test $ac_must_keep_next = true; then
2178         ac_must_keep_next=false # Got value, back to normal.
2179       else
2180         case $ac_arg in
2181           *=* | --config-cache | -C | -disable-* | --disable-* \
2182           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184           | -with-* | --with-* | -without-* | --without-* | --x)
2185             case "$ac_configure_args0 " in
2186               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187             esac
2188             ;;
2189           -* ) ac_must_keep_next=true ;;
2190         esac
2191       fi
2192       as_fn_append ac_configure_args " '$ac_arg'"
2193       ;;
2194     esac
2195   done
2196 done
2197 { ac_configure_args0=; unset ac_configure_args0;}
2198 { ac_configure_args1=; unset ac_configure_args1;}
2199
2200 # When interrupted or exit'd, cleanup temporary files, and complete
2201 # config.log.  We remove comments because anyway the quotes in there
2202 # would cause problems or look ugly.
2203 # WARNING: Use '\'' to represent an apostrophe within the trap.
2204 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2205 trap 'exit_status=$?
2206   # Save into config.log some information that might help in debugging.
2207   {
2208     echo
2209
2210     $as_echo "## ---------------- ##
2211 ## Cache variables. ##
2212 ## ---------------- ##"
2213     echo
2214     # The following way of writing the cache mishandles newlines in values,
2215 (
2216   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2217     eval ac_val=\$$ac_var
2218     case $ac_val in #(
2219     *${as_nl}*)
2220       case $ac_var in #(
2221       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2223       esac
2224       case $ac_var in #(
2225       _ | IFS | as_nl) ;; #(
2226       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2227       *) { eval $ac_var=; unset $ac_var;} ;;
2228       esac ;;
2229     esac
2230   done
2231   (set) 2>&1 |
2232     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2233     *${as_nl}ac_space=\ *)
2234       sed -n \
2235         "s/'\''/'\''\\\\'\'''\''/g;
2236           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2237       ;; #(
2238     *)
2239       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240       ;;
2241     esac |
2242     sort
2243 )
2244     echo
2245
2246     $as_echo "## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##"
2249     echo
2250     for ac_var in $ac_subst_vars
2251     do
2252       eval ac_val=\$$ac_var
2253       case $ac_val in
2254       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255       esac
2256       $as_echo "$ac_var='\''$ac_val'\''"
2257     done | sort
2258     echo
2259
2260     if test -n "$ac_subst_files"; then
2261       $as_echo "## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##"
2264       echo
2265       for ac_var in $ac_subst_files
2266       do
2267         eval ac_val=\$$ac_var
2268         case $ac_val in
2269         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270         esac
2271         $as_echo "$ac_var='\''$ac_val'\''"
2272       done | sort
2273       echo
2274     fi
2275
2276     if test -s confdefs.h; then
2277       $as_echo "## ----------- ##
2278 ## confdefs.h. ##
2279 ## ----------- ##"
2280       echo
2281       cat confdefs.h
2282       echo
2283     fi
2284     test "$ac_signal" != 0 &&
2285       $as_echo "$as_me: caught signal $ac_signal"
2286     $as_echo "$as_me: exit $exit_status"
2287   } >&5
2288   rm -f core *.core core.conftest.* &&
2289     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2290     exit $exit_status
2291 ' 0
2292 for ac_signal in 1 2 13 15; do
2293   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2294 done
2295 ac_signal=0
2296
2297 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2298 rm -f -r conftest* confdefs.h
2299
2300 $as_echo "/* confdefs.h */" > confdefs.h
2301
2302 # Predefined preprocessor variables.
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_NAME "$PACKAGE_NAME"
2306 _ACEOF
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_STRING "$PACKAGE_STRING"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_URL "$PACKAGE_URL"
2326 _ACEOF
2327
2328
2329 # Let the site file select an alternate cache file if it wants to.
2330 # Prefer an explicitly selected file to automatically selected ones.
2331 ac_site_file1=NONE
2332 ac_site_file2=NONE
2333 if test -n "$CONFIG_SITE"; then
2334   # We do not want a PATH search for config.site.
2335   case $CONFIG_SITE in #((
2336     -*)  ac_site_file1=./$CONFIG_SITE;;
2337     */*) ac_site_file1=$CONFIG_SITE;;
2338     *)   ac_site_file1=./$CONFIG_SITE;;
2339   esac
2340 elif test "x$prefix" != xNONE; then
2341   ac_site_file1=$prefix/share/config.site
2342   ac_site_file2=$prefix/etc/config.site
2343 else
2344   ac_site_file1=$ac_default_prefix/share/config.site
2345   ac_site_file2=$ac_default_prefix/etc/config.site
2346 fi
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2348 do
2349   test "x$ac_site_file" = xNONE && continue
2350   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353     sed 's/^/| /' "$ac_site_file" >&5
2354     . "$ac_site_file" \
2355       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 as_fn_error $? "failed to load site script $ac_site_file
2358 See \`config.log' for more details" "$LINENO" 5; }
2359   fi
2360 done
2361
2362 if test -r "$cache_file"; then
2363   # Some versions of bash will fail to source /dev/null (special files
2364   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2365   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2366     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368     case $cache_file in
2369       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370       *)                      . "./$cache_file";;
2371     esac
2372   fi
2373 else
2374   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2376   >$cache_file
2377 fi
2378
2379 # Check that the precious variables saved in the cache have kept the same
2380 # value.
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384   eval ac_new_set=\$ac_env_${ac_var}_set
2385   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386   eval ac_new_val=\$ac_env_${ac_var}_value
2387   case $ac_old_set,$ac_new_set in
2388     set,)
2389       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391       ac_cache_corrupted=: ;;
2392     ,set)
2393       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395       ac_cache_corrupted=: ;;
2396     ,);;
2397     *)
2398       if test "x$ac_old_val" != "x$ac_new_val"; then
2399         # differences in whitespace do not lead to failure.
2400         ac_old_val_w=`echo x $ac_old_val`
2401         ac_new_val_w=`echo x $ac_new_val`
2402         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405           ac_cache_corrupted=:
2406         else
2407           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409           eval $ac_var=\$ac_old_val
2410         fi
2411         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2412 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2413         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2415       fi;;
2416   esac
2417   # Pass precious variables to config.status.
2418   if test "$ac_new_set" = set; then
2419     case $ac_new_val in
2420     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421     *) ac_arg=$ac_var=$ac_new_val ;;
2422     esac
2423     case " $ac_configure_args " in
2424       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2425       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426     esac
2427   fi
2428 done
2429 if $ac_cache_corrupted; then
2430   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435 fi
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2439
2440 ac_ext=c
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445
2446
2447
2448
2449
2450
2451 ac_config_headers="$ac_config_headers config.h"
2452
2453
2454 # Default to --enable-multilib
2455 # Check whether --enable-multilib was given.
2456 if test "${enable_multilib+set}" = set; then :
2457   enableval=$enable_multilib; case "$enableval" in
2458   yes) multilib=yes ;;
2459   no)  multilib=no ;;
2460   *)   as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2461  esac
2462 else
2463   multilib=yes
2464 fi
2465
2466
2467 # We may get other options which we leave undocumented:
2468 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2469 # See config-ml.in if you want the gory details.
2470
2471 if test "$srcdir" = "."; then
2472   if test "$with_target_subdir" != "."; then
2473     multi_basedir="$srcdir/$with_multisrctop../.."
2474   else
2475     multi_basedir="$srcdir/$with_multisrctop.."
2476   fi
2477 else
2478   multi_basedir="$srcdir/.."
2479 fi
2480
2481
2482 # Even if the default multilib is not a cross compilation,
2483 # it may be that some of the other multilibs are.
2484 if test $cross_compiling = no && test $multilib = yes \
2485    && test "x${with_multisubdir}" != x ; then
2486    cross_compiling=maybe
2487 fi
2488
2489 ac_config_commands="$ac_config_commands default-1"
2490
2491 ac_aux_dir=
2492 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2493   if test -f "$ac_dir/install-sh"; then
2494     ac_aux_dir=$ac_dir
2495     ac_install_sh="$ac_aux_dir/install-sh -c"
2496     break
2497   elif test -f "$ac_dir/install.sh"; then
2498     ac_aux_dir=$ac_dir
2499     ac_install_sh="$ac_aux_dir/install.sh -c"
2500     break
2501   elif test -f "$ac_dir/shtool"; then
2502     ac_aux_dir=$ac_dir
2503     ac_install_sh="$ac_aux_dir/shtool install -c"
2504     break
2505   fi
2506 done
2507 if test -z "$ac_aux_dir"; then
2508   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2509 fi
2510
2511 # These three variables are undocumented and unsupported,
2512 # and are intended to be withdrawn in a future Autoconf release.
2513 # They can cause serious problems if a builder's source tree is in a directory
2514 # whose full name contains unusual characters.
2515 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2516 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2517 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2518
2519
2520 # Make sure we can run config.sub.
2521 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2522   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2523
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2525 $as_echo_n "checking build system type... " >&6; }
2526 if ${ac_cv_build+:} false; then :
2527   $as_echo_n "(cached) " >&6
2528 else
2529   ac_build_alias=$build_alias
2530 test "x$ac_build_alias" = x &&
2531   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2532 test "x$ac_build_alias" = x &&
2533   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2534 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2535   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2536
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2539 $as_echo "$ac_cv_build" >&6; }
2540 case $ac_cv_build in
2541 *-*-*) ;;
2542 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2543 esac
2544 build=$ac_cv_build
2545 ac_save_IFS=$IFS; IFS='-'
2546 set x $ac_cv_build
2547 shift
2548 build_cpu=$1
2549 build_vendor=$2
2550 shift; shift
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2553 build_os=$*
2554 IFS=$ac_save_IFS
2555 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2556
2557
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2559 $as_echo_n "checking host system type... " >&6; }
2560 if ${ac_cv_host+:} false; then :
2561   $as_echo_n "(cached) " >&6
2562 else
2563   if test "x$host_alias" = x; then
2564   ac_cv_host=$ac_cv_build
2565 else
2566   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2567     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2568 fi
2569
2570 fi
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2572 $as_echo "$ac_cv_host" >&6; }
2573 case $ac_cv_host in
2574 *-*-*) ;;
2575 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2576 esac
2577 host=$ac_cv_host
2578 ac_save_IFS=$IFS; IFS='-'
2579 set x $ac_cv_host
2580 shift
2581 host_cpu=$1
2582 host_vendor=$2
2583 shift; shift
2584 # Remember, the first character of IFS is used to create $*,
2585 # except with old shells:
2586 host_os=$*
2587 IFS=$ac_save_IFS
2588 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2589
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2592 $as_echo_n "checking target system type... " >&6; }
2593 if ${ac_cv_target+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   if test "x$target_alias" = x; then
2597   ac_cv_target=$ac_cv_host
2598 else
2599   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2600     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2601 fi
2602
2603 fi
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2605 $as_echo "$ac_cv_target" >&6; }
2606 case $ac_cv_target in
2607 *-*-*) ;;
2608 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2609 esac
2610 target=$ac_cv_target
2611 ac_save_IFS=$IFS; IFS='-'
2612 set x $ac_cv_target
2613 shift
2614 target_cpu=$1
2615 target_vendor=$2
2616 shift; shift
2617 # Remember, the first character of IFS is used to create $*,
2618 # except with old shells:
2619 target_os=$*
2620 IFS=$ac_save_IFS
2621 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2622
2623
2624 # The aliases save the names the user supplied, while $host etc.
2625 # will get canonicalized.
2626 test -n "$target_alias" &&
2627   test "$program_prefix$program_suffix$program_transform_name" = \
2628     NONENONEs,x,x, &&
2629   program_prefix=${target_alias}-
2630
2631 # Expand $ac_aux_dir to an absolute path.
2632 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2633
2634 ac_ext=c
2635 ac_cpp='$CPP $CPPFLAGS'
2636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2639 if test -n "$ac_tool_prefix"; then
2640   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_CC+:} false; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662   done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2671 else
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 fi
2678 if test -z "$ac_cv_prog_CC"; then
2679   ac_ct_CC=$CC
2680   # Extract the first word of "gcc", so it can be a program name with args.
2681 set dummy gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   if test -n "$ac_ct_CC"; then
2688   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693   IFS=$as_save_IFS
2694   test -z "$as_dir" && as_dir=.
2695     for ac_exec_ext in '' $ac_executable_extensions; do
2696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697     ac_cv_prog_ac_ct_CC="gcc"
2698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699     break 2
2700   fi
2701 done
2702   done
2703 IFS=$as_save_IFS
2704
2705 fi
2706 fi
2707 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2708 if test -n "$ac_ct_CC"; then
2709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2710 $as_echo "$ac_ct_CC" >&6; }
2711 else
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2714 fi
2715
2716   if test "x$ac_ct_CC" = x; then
2717     CC=""
2718   else
2719     case $cross_compiling:$ac_tool_warned in
2720 yes:)
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2723 ac_tool_warned=yes ;;
2724 esac
2725     CC=$ac_ct_CC
2726   fi
2727 else
2728   CC="$ac_cv_prog_CC"
2729 fi
2730
2731 if test -z "$CC"; then
2732           if test -n "$ac_tool_prefix"; then
2733     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}cc; ac_word=$2
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 $as_echo_n "checking for $ac_word... " >&6; }
2737 if ${ac_cv_prog_CC+:} false; then :
2738   $as_echo_n "(cached) " >&6
2739 else
2740   if test -n "$CC"; then
2741   ac_cv_prog_CC="$CC" # Let the user override the test.
2742 else
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_exec_ext in '' $ac_executable_extensions; do
2749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750     ac_cv_prog_CC="${ac_tool_prefix}cc"
2751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752     break 2
2753   fi
2754 done
2755   done
2756 IFS=$as_save_IFS
2757
2758 fi
2759 fi
2760 CC=$ac_cv_prog_CC
2761 if test -n "$CC"; then
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2763 $as_echo "$CC" >&6; }
2764 else
2765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766 $as_echo "no" >&6; }
2767 fi
2768
2769
2770   fi
2771 fi
2772 if test -z "$CC"; then
2773   # Extract the first word of "cc", so it can be a program name with args.
2774 set dummy cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$CC"; then
2781   ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783   ac_prog_rejected=no
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2786 do
2787   IFS=$as_save_IFS
2788   test -z "$as_dir" && as_dir=.
2789     for ac_exec_ext in '' $ac_executable_extensions; do
2790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2792        ac_prog_rejected=yes
2793        continue
2794      fi
2795     ac_cv_prog_CC="cc"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803 if test $ac_prog_rejected = yes; then
2804   # We found a bogon in the path, so make sure we never use it.
2805   set dummy $ac_cv_prog_CC
2806   shift
2807   if test $# != 0; then
2808     # We chose a different compiler from the bogus one.
2809     # However, it has the same basename, so the bogon will be chosen
2810     # first if we set CC to just the basename; use the full file name.
2811     shift
2812     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2813   fi
2814 fi
2815 fi
2816 fi
2817 CC=$ac_cv_prog_CC
2818 if test -n "$CC"; then
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2820 $as_echo "$CC" >&6; }
2821 else
2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2824 fi
2825
2826
2827 fi
2828 if test -z "$CC"; then
2829   if test -n "$ac_tool_prefix"; then
2830   for ac_prog in cl.exe
2831   do
2832     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if ${ac_cv_prog_CC+:} false; then :
2837   $as_echo_n "(cached) " >&6
2838 else
2839   if test -n "$CC"; then
2840   ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847     for ac_exec_ext in '' $ac_executable_extensions; do
2848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2849     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854   done
2855 IFS=$as_save_IFS
2856
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 fi
2867
2868
2869     test -n "$CC" && break
2870   done
2871 fi
2872 if test -z "$CC"; then
2873   ac_ct_CC=$CC
2874   for ac_prog in cl.exe
2875 do
2876   # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if test -n "$ac_ct_CC"; then
2884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     for ac_exec_ext in '' $ac_executable_extensions; do
2892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893     ac_cv_prog_ac_ct_CC="$ac_prog"
2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898   done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913   test -n "$ac_ct_CC" && break
2914 done
2915
2916   if test "x$ac_ct_CC" = x; then
2917     CC=""
2918   else
2919     case $cross_compiling:$ac_tool_warned in
2920 yes:)
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925     CC=$ac_ct_CC
2926   fi
2927 fi
2928
2929 fi
2930
2931
2932 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error $? "no acceptable C compiler found in \$PATH
2935 See \`config.log' for more details" "$LINENO" 5; }
2936
2937 # Provide some information about the compiler.
2938 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2939 set X $ac_compile
2940 ac_compiler=$2
2941 for ac_option in --version -v -V -qversion; do
2942   { { ac_try="$ac_compiler $ac_option >&5"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948 $as_echo "$ac_try_echo"; } >&5
2949   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2950   ac_status=$?
2951   if test -s conftest.err; then
2952     sed '10a\
2953 ... rest of stderr output deleted ...
2954          10q' conftest.err >conftest.er1
2955     cat conftest.er1 >&5
2956   fi
2957   rm -f conftest.er1 conftest.err
2958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2959   test $ac_status = 0; }
2960 done
2961
2962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2963 /* end confdefs.h.  */
2964
2965 int
2966 main ()
2967 {
2968
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 ac_clean_files_save=$ac_clean_files
2974 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2975 # Try to create an executable without -o first, disregard a.out.
2976 # It will help us diagnose broken compilers, and finding out an intuition
2977 # of exeext.
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2979 $as_echo_n "checking whether the C compiler works... " >&6; }
2980 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2981
2982 # The possible output files:
2983 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2984
2985 ac_rmfiles=
2986 for ac_file in $ac_files
2987 do
2988   case $ac_file in
2989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2990     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2991   esac
2992 done
2993 rm -f $ac_rmfiles
2994
2995 if { { ac_try="$ac_link_default"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002   (eval "$ac_link_default") 2>&5
3003   ac_status=$?
3004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005   test $ac_status = 0; }; then :
3006   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3007 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3008 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3009 # so that the user can short-circuit this test for compilers unknown to
3010 # Autoconf.
3011 for ac_file in $ac_files ''
3012 do
3013   test -f "$ac_file" || continue
3014   case $ac_file in
3015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3016         ;;
3017     [ab].out )
3018         # We found the default executable, but exeext='' is most
3019         # certainly right.
3020         break;;
3021     *.* )
3022         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3023         then :; else
3024            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025         fi
3026         # We set ac_cv_exeext here because the later test for it is not
3027         # safe: cross compilers may not add the suffix if given an `-o'
3028         # argument, so we may need to know it at that point already.
3029         # Even if this section looks crufty: it has the advantage of
3030         # actually working.
3031         break;;
3032     * )
3033         break;;
3034   esac
3035 done
3036 test "$ac_cv_exeext" = no && ac_cv_exeext=
3037
3038 else
3039   ac_file=''
3040 fi
3041 if test -z "$ac_file"; then :
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 $as_echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error 77 "C compiler cannot create executables
3050 See \`config.log' for more details" "$LINENO" 5; }
3051 else
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3053 $as_echo "yes" >&6; }
3054 fi
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056 $as_echo_n "checking for C compiler default output file name... " >&6; }
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3058 $as_echo "$ac_file" >&6; }
3059 ac_exeext=$ac_cv_exeext
3060
3061 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3064 $as_echo_n "checking for suffix of executables... " >&6; }
3065 if { { ac_try="$ac_link"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072   (eval "$ac_link") 2>&5
3073   ac_status=$?
3074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075   test $ac_status = 0; }; then :
3076   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3077 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3078 # work properly (i.e., refer to `conftest.exe'), while it won't with
3079 # `rm'.
3080 for ac_file in conftest.exe conftest conftest.*; do
3081   test -f "$ac_file" || continue
3082   case $ac_file in
3083     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3084     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085           break;;
3086     * ) break;;
3087   esac
3088 done
3089 else
3090   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3093 See \`config.log' for more details" "$LINENO" 5; }
3094 fi
3095 rm -f conftest conftest$ac_cv_exeext
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3097 $as_echo "$ac_cv_exeext" >&6; }
3098
3099 rm -f conftest.$ac_ext
3100 EXEEXT=$ac_cv_exeext
3101 ac_exeext=$EXEEXT
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h.  */
3104 #include <stdio.h>
3105 int
3106 main ()
3107 {
3108 FILE *f = fopen ("conftest.out", "w");
3109  return ferror (f) || fclose (f) != 0;
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files="$ac_clean_files conftest.out"
3116 # Check that the compiler produces executables we can run.  If not, either
3117 # the compiler is broken, or we cross compile.
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3119 $as_echo_n "checking whether we are cross compiling... " >&6; }
3120 if test "$cross_compiling" != yes; then
3121   { { ac_try="$ac_link"
3122 case "(($ac_try" in
3123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124   *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3127 $as_echo "$ac_try_echo"; } >&5
3128   (eval "$ac_link") 2>&5
3129   ac_status=$?
3130   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3131   test $ac_status = 0; }
3132   if { ac_try='./conftest$ac_cv_exeext'
3133   { { case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3142   test $ac_status = 0; }; }; then
3143     cross_compiling=no
3144   else
3145     if test "$cross_compiling" = maybe; then
3146         cross_compiling=yes
3147     else
3148         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "cannot run C compiled programs.
3151 If you meant to cross compile, use \`--host'.
3152 See \`config.log' for more details" "$LINENO" 5; }
3153     fi
3154   fi
3155 fi
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3157 $as_echo "$cross_compiling" >&6; }
3158
3159 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3160 ac_clean_files=$ac_clean_files_save
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3162 $as_echo_n "checking for suffix of object files... " >&6; }
3163 if ${ac_cv_objext+:} false; then :
3164   $as_echo_n "(cached) " >&6
3165 else
3166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.o conftest.obj
3178 if { { ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185   (eval "$ac_compile") 2>&5
3186   ac_status=$?
3187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188   test $ac_status = 0; }; then :
3189   for ac_file in conftest.o conftest.obj conftest.*; do
3190   test -f "$ac_file" || continue;
3191   case $ac_file in
3192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3193     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3194        break;;
3195   esac
3196 done
3197 else
3198   $as_echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "cannot compute suffix of object files: cannot compile
3204 See \`config.log' for more details" "$LINENO" 5; }
3205 fi
3206 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 fi
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3209 $as_echo "$ac_cv_objext" >&6; }
3210 OBJEXT=$ac_cv_objext
3211 ac_objext=$OBJEXT
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3214 if ${ac_cv_c_compiler_gnu+:} false; then :
3215   $as_echo_n "(cached) " >&6
3216 else
3217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223 #ifndef __GNUC__
3224        choke me
3225 #endif
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 if ac_fn_c_try_compile "$LINENO"; then :
3232   ac_compiler_gnu=yes
3233 else
3234   ac_compiler_gnu=no
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3238
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3241 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3242 if test $ac_compiler_gnu = yes; then
3243   GCC=yes
3244 else
3245   GCC=
3246 fi
3247 ac_test_CFLAGS=${CFLAGS+set}
3248 ac_save_CFLAGS=$CFLAGS
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3250 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3251 if ${ac_cv_prog_cc_g+:} false; then :
3252   $as_echo_n "(cached) " >&6
3253 else
3254   ac_save_c_werror_flag=$ac_c_werror_flag
3255    ac_c_werror_flag=yes
3256    ac_cv_prog_cc_g=no
3257    CFLAGS="-g"
3258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 if ac_fn_c_try_compile "$LINENO"; then :
3270   ac_cv_prog_cc_g=yes
3271 else
3272   CFLAGS=""
3273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_c_try_compile "$LINENO"; then :
3285
3286 else
3287   ac_c_werror_flag=$ac_save_c_werror_flag
3288          CFLAGS="-g"
3289          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h.  */
3291
3292 int
3293 main ()
3294 {
3295
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_c_try_compile "$LINENO"; then :
3301   ac_cv_prog_cc_g=yes
3302 fi
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308    ac_c_werror_flag=$ac_save_c_werror_flag
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3311 $as_echo "$ac_cv_prog_cc_g" >&6; }
3312 if test "$ac_test_CFLAGS" = set; then
3313   CFLAGS=$ac_save_CFLAGS
3314 elif test $ac_cv_prog_cc_g = yes; then
3315   if test "$GCC" = yes; then
3316     CFLAGS="-g -O2"
3317   else
3318     CFLAGS="-g"
3319   fi
3320 else
3321   if test "$GCC" = yes; then
3322     CFLAGS="-O2"
3323   else
3324     CFLAGS=
3325   fi
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3328 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3329 if ${ac_cv_prog_cc_c89+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   ac_cv_prog_cc_c89=no
3333 ac_save_CC=$CC
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336 #include <stdarg.h>
3337 #include <stdio.h>
3338 struct stat;
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3343      char **p;
3344      int i;
3345 {
3346   return p[i];
3347 }
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3349 {
3350   char *s;
3351   va_list v;
3352   va_start (v,p);
3353   s = g (p, va_arg (v,int));
3354   va_end (v);
3355   return s;
3356 }
3357
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3359    function prototypes and stuff, but not '\xHH' hex character constants.
3360    These don't provoke an error unfortunately, instead are silently treated
3361    as 'x'.  The following induces an error, until -std is added to get
3362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3363    array size at least.  It's necessary to write '\x00'==0 to get something
3364    that's true only with -std.  */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3366
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368    inside strings and character constants.  */
3369 #define FOO(x) 'x'
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3371
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 int argc;
3377 char **argv;
3378 int
3379 main ()
3380 {
3381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3388 do
3389   CC="$ac_save_CC $ac_arg"
3390   if ac_fn_c_try_compile "$LINENO"; then :
3391   ac_cv_prog_cc_c89=$ac_arg
3392 fi
3393 rm -f core conftest.err conftest.$ac_objext
3394   test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 done
3396 rm -f conftest.$ac_ext
3397 CC=$ac_save_CC
3398
3399 fi
3400 # AC_CACHE_VAL
3401 case "x$ac_cv_prog_cc_c89" in
3402   x)
3403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404 $as_echo "none needed" >&6; } ;;
3405   xno)
3406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3407 $as_echo "unsupported" >&6; } ;;
3408   *)
3409     CC="$CC $ac_cv_prog_cc_c89"
3410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3412 esac
3413 if test "x$ac_cv_prog_cc_c89" != xno; then :
3414
3415 fi
3416
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423 ac_ext=c
3424 ac_cpp='$CPP $CPPFLAGS'
3425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3429 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3430 if ${am_cv_prog_cc_c_o+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h.  */
3435
3436 int
3437 main ()
3438 {
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444   # Make sure it works both with $CC and with simple cc.
3445   # Following AC_PROG_CC_C_O, we do the test twice because some
3446   # compilers refuse to overwrite an existing .o file with -o,
3447   # though they will create one.
3448   am_cv_prog_cc_c_o=yes
3449   for am_i in 1 2; do
3450     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3451    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3452    ac_status=$?
3453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454    (exit $ac_status); } \
3455          && test -f conftest2.$ac_objext; then
3456       : OK
3457     else
3458       am_cv_prog_cc_c_o=no
3459       break
3460     fi
3461   done
3462   rm -f core conftest*
3463   unset am_i
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3466 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3467 if test "$am_cv_prog_cc_c_o" != yes; then
3468    # Losing compiler, so override with the script.
3469    # FIXME: It is wrong to rewrite CC.
3470    # But if we don't then we get into trouble of one sort or another.
3471    # A longer-term fix would be to have automake use am__CC in this case,
3472    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3473    CC="$am_aux_dir/compile $CC"
3474 fi
3475 ac_ext=c
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3480
3481
3482
3483 ac_ext=c
3484 ac_cpp='$CPP $CPPFLAGS'
3485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3490 # On Suns, sometimes $CPP names a directory.
3491 if test -n "$CPP" && test -d "$CPP"; then
3492   CPP=
3493 fi
3494 if test -z "$CPP"; then
3495   if ${ac_cv_prog_CPP+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498       # Double quotes because CPP needs to be expanded
3499     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3500     do
3501       ac_preproc_ok=false
3502 for ac_c_preproc_warn_flag in '' yes
3503 do
3504   # Use a header file that comes with gcc, so configuring glibc
3505   # with a fresh cross-compiler works.
3506   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507   # <limits.h> exists even on freestanding compilers.
3508   # On the NeXT, cc -E runs the code through the compiler's parser,
3509   # not just through cpp. "Syntax error" is here to catch this case.
3510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512 #ifdef __STDC__
3513 # include <limits.h>
3514 #else
3515 # include <assert.h>
3516 #endif
3517                      Syntax error
3518 _ACEOF
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520
3521 else
3522   # Broken: fails on valid input.
3523 continue
3524 fi
3525 rm -f conftest.err conftest.i conftest.$ac_ext
3526
3527   # OK, works on sane cases.  Now check whether nonexistent headers
3528   # can be detected and how.
3529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h.  */
3531 #include <ac_nonexistent.h>
3532 _ACEOF
3533 if ac_fn_c_try_cpp "$LINENO"; then :
3534   # Broken: success on invalid input.
3535 continue
3536 else
3537   # Passes both tests.
3538 ac_preproc_ok=:
3539 break
3540 fi
3541 rm -f conftest.err conftest.i conftest.$ac_ext
3542
3543 done
3544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3545 rm -f conftest.i conftest.err conftest.$ac_ext
3546 if $ac_preproc_ok; then :
3547   break
3548 fi
3549
3550     done
3551     ac_cv_prog_CPP=$CPP
3552
3553 fi
3554   CPP=$ac_cv_prog_CPP
3555 else
3556   ac_cv_prog_CPP=$CPP
3557 fi
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3559 $as_echo "$CPP" >&6; }
3560 ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3562 do
3563   # Use a header file that comes with gcc, so configuring glibc
3564   # with a fresh cross-compiler works.
3565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566   # <limits.h> exists even on freestanding compilers.
3567   # On the NeXT, cc -E runs the code through the compiler's parser,
3568   # not just through cpp. "Syntax error" is here to catch this case.
3569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571 #ifdef __STDC__
3572 # include <limits.h>
3573 #else
3574 # include <assert.h>
3575 #endif
3576                      Syntax error
3577 _ACEOF
3578 if ac_fn_c_try_cpp "$LINENO"; then :
3579
3580 else
3581   # Broken: fails on valid input.
3582 continue
3583 fi
3584 rm -f conftest.err conftest.i conftest.$ac_ext
3585
3586   # OK, works on sane cases.  Now check whether nonexistent headers
3587   # can be detected and how.
3588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590 #include <ac_nonexistent.h>
3591 _ACEOF
3592 if ac_fn_c_try_cpp "$LINENO"; then :
3593   # Broken: success on invalid input.
3594 continue
3595 else
3596   # Passes both tests.
3597 ac_preproc_ok=:
3598 break
3599 fi
3600 rm -f conftest.err conftest.i conftest.$ac_ext
3601
3602 done
3603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604 rm -f conftest.i conftest.err conftest.$ac_ext
3605 if $ac_preproc_ok; then :
3606
3607 else
3608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3611 See \`config.log' for more details" "$LINENO" 5; }
3612 fi
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3622 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3623 if ${ac_cv_path_GREP+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   if test -z "$GREP"; then
3627   ac_path_GREP_found=false
3628   # Loop through the user's path and test for each of PROGNAME-LIST
3629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634     for ac_prog in grep ggrep; do
3635     for ac_exec_ext in '' $ac_executable_extensions; do
3636       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637       as_fn_executable_p "$ac_path_GREP" || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639   # Check for GNU $ac_path_GREP
3640 case `"$ac_path_GREP" --version 2>&1` in
3641 *GNU*)
3642   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643 *)
3644   ac_count=0
3645   $as_echo_n 0123456789 >"conftest.in"
3646   while :
3647   do
3648     cat "conftest.in" "conftest.in" >"conftest.tmp"
3649     mv "conftest.tmp" "conftest.in"
3650     cp "conftest.in" "conftest.nl"
3651     $as_echo 'GREP' >> "conftest.nl"
3652     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654     as_fn_arith $ac_count + 1 && ac_count=$as_val
3655     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656       # Best one so far, save it but keep looking for a better one
3657       ac_cv_path_GREP="$ac_path_GREP"
3658       ac_path_GREP_max=$ac_count
3659     fi
3660     # 10*(2^10) chars as input seems more than enough
3661     test $ac_count -gt 10 && break
3662   done
3663   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664 esac
3665
3666       $ac_path_GREP_found && break 3
3667     done
3668   done
3669   done
3670 IFS=$as_save_IFS
3671   if test -z "$ac_cv_path_GREP"; then
3672     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3673   fi
3674 else
3675   ac_cv_path_GREP=$GREP
3676 fi
3677
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3680 $as_echo "$ac_cv_path_GREP" >&6; }
3681  GREP="$ac_cv_path_GREP"
3682
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3685 $as_echo_n "checking for egrep... " >&6; }
3686 if ${ac_cv_path_EGREP+:} false; then :
3687   $as_echo_n "(cached) " >&6
3688 else
3689   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3690    then ac_cv_path_EGREP="$GREP -E"
3691    else
3692      if test -z "$EGREP"; then
3693   ac_path_EGREP_found=false
3694   # Loop through the user's path and test for each of PROGNAME-LIST
3695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700     for ac_prog in egrep; do
3701     for ac_exec_ext in '' $ac_executable_extensions; do
3702       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3703       as_fn_executable_p "$ac_path_EGREP" || continue
3704 # Check for GNU ac_path_EGREP and select it if it is found.
3705   # Check for GNU $ac_path_EGREP
3706 case `"$ac_path_EGREP" --version 2>&1` in
3707 *GNU*)
3708   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3709 *)
3710   ac_count=0
3711   $as_echo_n 0123456789 >"conftest.in"
3712   while :
3713   do
3714     cat "conftest.in" "conftest.in" >"conftest.tmp"
3715     mv "conftest.tmp" "conftest.in"
3716     cp "conftest.in" "conftest.nl"
3717     $as_echo 'EGREP' >> "conftest.nl"
3718     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3719     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3720     as_fn_arith $ac_count + 1 && ac_count=$as_val
3721     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3722       # Best one so far, save it but keep looking for a better one
3723       ac_cv_path_EGREP="$ac_path_EGREP"
3724       ac_path_EGREP_max=$ac_count
3725     fi
3726     # 10*(2^10) chars as input seems more than enough
3727     test $ac_count -gt 10 && break
3728   done
3729   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3730 esac
3731
3732       $ac_path_EGREP_found && break 3
3733     done
3734   done
3735   done
3736 IFS=$as_save_IFS
3737   if test -z "$ac_cv_path_EGREP"; then
3738     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3739   fi
3740 else
3741   ac_cv_path_EGREP=$EGREP
3742 fi
3743
3744    fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3747 $as_echo "$ac_cv_path_EGREP" >&6; }
3748  EGREP="$ac_cv_path_EGREP"
3749
3750
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3752 $as_echo_n "checking for ANSI C header files... " >&6; }
3753 if ${ac_cv_header_stdc+:} false; then :
3754   $as_echo_n "(cached) " >&6
3755 else
3756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h.  */
3758 #include <stdlib.h>
3759 #include <stdarg.h>
3760 #include <string.h>
3761 #include <float.h>
3762
3763 int
3764 main ()
3765 {
3766
3767   ;
3768   return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772   ac_cv_header_stdc=yes
3773 else
3774   ac_cv_header_stdc=no
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777
3778 if test $ac_cv_header_stdc = yes; then
3779   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h.  */
3782 #include <string.h>
3783
3784 _ACEOF
3785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3786   $EGREP "memchr" >/dev/null 2>&1; then :
3787
3788 else
3789   ac_cv_header_stdc=no
3790 fi
3791 rm -f conftest*
3792
3793 fi
3794
3795 if test $ac_cv_header_stdc = yes; then
3796   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799 #include <stdlib.h>
3800
3801 _ACEOF
3802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3803   $EGREP "free" >/dev/null 2>&1; then :
3804
3805 else
3806   ac_cv_header_stdc=no
3807 fi
3808 rm -f conftest*
3809
3810 fi
3811
3812 if test $ac_cv_header_stdc = yes; then
3813   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3814   if test "$cross_compiling" = yes; then :
3815   :
3816 else
3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819 #include <ctype.h>
3820 #include <stdlib.h>
3821 #if ((' ' & 0x0FF) == 0x020)
3822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3824 #else
3825 # define ISLOWER(c) \
3826                    (('a' <= (c) && (c) <= 'i') \
3827                      || ('j' <= (c) && (c) <= 'r') \
3828                      || ('s' <= (c) && (c) <= 'z'))
3829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3830 #endif
3831
3832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3833 int
3834 main ()
3835 {
3836   int i;
3837   for (i = 0; i < 256; i++)
3838     if (XOR (islower (i), ISLOWER (i))
3839         || toupper (i) != TOUPPER (i))
3840       return 2;
3841   return 0;
3842 }
3843 _ACEOF
3844 if ac_fn_c_try_run "$LINENO"; then :
3845
3846 else
3847   ac_cv_header_stdc=no
3848 fi
3849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3850   conftest.$ac_objext conftest.beam conftest.$ac_ext
3851 fi
3852
3853 fi
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3856 $as_echo "$ac_cv_header_stdc" >&6; }
3857 if test $ac_cv_header_stdc = yes; then
3858
3859 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3860
3861 fi
3862
3863 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3865                   inttypes.h stdint.h unistd.h
3866 do :
3867   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3868 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3869 "
3870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3871   cat >>confdefs.h <<_ACEOF
3872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3873 _ACEOF
3874
3875 fi
3876
3877 done
3878
3879
3880
3881   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3882 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3883   MINIX=yes
3884 else
3885   MINIX=
3886 fi
3887
3888
3889   if test "$MINIX" = yes; then
3890
3891 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3892
3893
3894 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3895
3896
3897 $as_echo "#define _MINIX 1" >>confdefs.h
3898
3899   fi
3900
3901
3902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3903 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3904 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3905   $as_echo_n "(cached) " >&6
3906 else
3907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h.  */
3909
3910 #         define __EXTENSIONS__ 1
3911           $ac_includes_default
3912 int
3913 main ()
3914 {
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921   ac_cv_safe_to_define___extensions__=yes
3922 else
3923   ac_cv_safe_to_define___extensions__=no
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3928 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3929   test $ac_cv_safe_to_define___extensions__ = yes &&
3930     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3931
3932   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3933
3934   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3935
3936   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3937
3938   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3939
3940
3941
3942 target_alias=${target_alias-$target}
3943
3944
3945 # 1.11.1: Require that version of automake.
3946 # foreign: Don't require README, INSTALL, NEWS, etc.
3947 # no-define: Don't define PACKAGE and VERSION.
3948 # no-dependencies: Don't generate automatic dependencies.
3949 #    (because it breaks when using bootstrap-lean, since some of the
3950 #    headers are gone at "make install" time).
3951 # subdir-objects: Build objects in sub-directories.
3952 # -Wall: Issue all automake warnings.
3953 # -Wno-portability: Don't warn about constructs supported by GNU make.
3954 #    (because GCC requires GNU make anyhow).
3955 #  -Wno-override: Overrides used in testsuite.
3956 am__api_version='1.15'
3957
3958 # Find a good install program.  We prefer a C program (faster),
3959 # so one script is as good as another.  But avoid the broken or
3960 # incompatible versions:
3961 # SysV /etc/install, /usr/sbin/install
3962 # SunOS /usr/etc/install
3963 # IRIX /sbin/install
3964 # AIX /bin/install
3965 # AmigaOS /C/install, which installs bootblocks on floppy discs
3966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3969 # OS/2's system install, which has a completely different semantic
3970 # ./install, which can be erroneously created by make from ./install.sh.
3971 # Reject install programs that cannot install multiple files.
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3973 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3974 if test -z "$INSTALL"; then
3975 if ${ac_cv_path_install+:} false; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983     # Account for people who put trailing slashes in PATH elements.
3984 case $as_dir/ in #((
3985   ./ | .// | /[cC]/* | \
3986   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3987   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3988   /usr/ucb/* ) ;;
3989   *)
3990     # OSF1 and SCO ODT 3.0 have their own names for install.
3991     # Don't use installbsd from OSF since it installs stuff as root
3992     # by default.
3993     for ac_prog in ginstall scoinst install; do
3994       for ac_exec_ext in '' $ac_executable_extensions; do
3995         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3996           if test $ac_prog = install &&
3997             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3998             # AIX install.  It has an incompatible calling convention.
3999             :
4000           elif test $ac_prog = install &&
4001             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4002             # program-specific install script used by HP pwplus--don't use.
4003             :
4004           else
4005             rm -rf conftest.one conftest.two conftest.dir
4006             echo one > conftest.one
4007             echo two > conftest.two
4008             mkdir conftest.dir
4009             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4010               test -s conftest.one && test -s conftest.two &&
4011               test -s conftest.dir/conftest.one &&
4012               test -s conftest.dir/conftest.two
4013             then
4014               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4015               break 3
4016             fi
4017           fi
4018         fi
4019       done
4020     done
4021     ;;
4022 esac
4023
4024   done
4025 IFS=$as_save_IFS
4026
4027 rm -rf conftest.one conftest.two conftest.dir
4028
4029 fi
4030   if test "${ac_cv_path_install+set}" = set; then
4031     INSTALL=$ac_cv_path_install
4032   else
4033     # As a last resort, use the slow shell script.  Don't cache a
4034     # value for INSTALL within a source directory, because that will
4035     # break other packages using the cache if that directory is
4036     # removed, or if the value is a relative name.
4037     INSTALL=$ac_install_sh
4038   fi
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4041 $as_echo "$INSTALL" >&6; }
4042
4043 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4044 # It thinks the first close brace ends the variable substitution.
4045 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4046
4047 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4048
4049 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4050
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4052 $as_echo_n "checking whether build environment is sane... " >&6; }
4053 # Reject unsafe characters in $srcdir or the absolute working directory
4054 # name.  Accept space and tab only in the latter.
4055 am_lf='
4056 '
4057 case `pwd` in
4058   *[\\\"\#\$\&\'\`$am_lf]*)
4059     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4060 esac
4061 case $srcdir in
4062   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4063     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4064 esac
4065
4066 # Do 'set' in a subshell so we don't clobber the current shell's
4067 # arguments.  Must try -L first in case configure is actually a
4068 # symlink; some systems play weird games with the mod time of symlinks
4069 # (eg FreeBSD returns the mod time of the symlink's containing
4070 # directory).
4071 if (
4072    am_has_slept=no
4073    for am_try in 1 2; do
4074      echo "timestamp, slept: $am_has_slept" > conftest.file
4075      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4076      if test "$*" = "X"; then
4077         # -L didn't work.
4078         set X `ls -t "$srcdir/configure" conftest.file`
4079      fi
4080      if test "$*" != "X $srcdir/configure conftest.file" \
4081         && test "$*" != "X conftest.file $srcdir/configure"; then
4082
4083         # If neither matched, then we have a broken ls.  This can happen
4084         # if, for instance, CONFIG_SHELL is bash and it inherits a
4085         # broken ls alias from the environment.  This has actually
4086         # happened.  Such a system could not be considered "sane".
4087         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4088   alias in your environment" "$LINENO" 5
4089      fi
4090      if test "$2" = conftest.file || test $am_try -eq 2; then
4091        break
4092      fi
4093      # Just in case.
4094      sleep 1
4095      am_has_slept=yes
4096    done
4097    test "$2" = conftest.file
4098    )
4099 then
4100    # Ok.
4101    :
4102 else
4103    as_fn_error $? "newly created file is older than distributed files!
4104 Check your system clock" "$LINENO" 5
4105 fi
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107 $as_echo "yes" >&6; }
4108 # If we didn't sleep, we still need to ensure time stamps of config.status and
4109 # generated files are strictly newer.
4110 am_sleep_pid=
4111 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4112   ( sleep 1 ) &
4113   am_sleep_pid=$!
4114 fi
4115
4116 rm -f conftest.file
4117
4118 test "$program_prefix" != NONE &&
4119   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4120 # Use a double $ so make ignores it.
4121 test "$program_suffix" != NONE &&
4122   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4123 # Double any \ or $.
4124 # By default was `s,x,x', remove it if useless.
4125 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4126 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4127
4128 if test x"${MISSING+set}" != xset; then
4129   case $am_aux_dir in
4130   *\ * | *\     *)
4131     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4132   *)
4133     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4134   esac
4135 fi
4136 # Use eval to expand $SHELL
4137 if eval "$MISSING --is-lightweight"; then
4138   am_missing_run="$MISSING "
4139 else
4140   am_missing_run=
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4142 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4143 fi
4144
4145 if test x"${install_sh+set}" != xset; then
4146   case $am_aux_dir in
4147   *\ * | *\     *)
4148     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4149   *)
4150     install_sh="\${SHELL} $am_aux_dir/install-sh"
4151   esac
4152 fi
4153
4154 # Installed binaries are usually stripped using 'strip' when the user
4155 # run "make install-strip".  However 'strip' might not be the right
4156 # tool to use in cross-compilation environments, therefore Automake
4157 # will honor the 'STRIP' environment variable to overrule this program.
4158 if test "$cross_compiling" != no; then
4159   if test -n "$ac_tool_prefix"; then
4160   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}strip; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_STRIP+:} false; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   if test -n "$STRIP"; then
4168   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182   done
4183 IFS=$as_save_IFS
4184
4185 fi
4186 fi
4187 STRIP=$ac_cv_prog_STRIP
4188 if test -n "$STRIP"; then
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4190 $as_echo "$STRIP" >&6; }
4191 else
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 fi
4195
4196
4197 fi
4198 if test -z "$ac_cv_prog_STRIP"; then
4199   ac_ct_STRIP=$STRIP
4200   # Extract the first word of "strip", so it can be a program name with args.
4201 set dummy strip; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -n "$ac_ct_STRIP"; then
4208   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4217     ac_cv_prog_ac_ct_STRIP="strip"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4228 if test -n "$ac_ct_STRIP"; then
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4230 $as_echo "$ac_ct_STRIP" >&6; }
4231 else
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236   if test "x$ac_ct_STRIP" = x; then
4237     STRIP=":"
4238   else
4239     case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245     STRIP=$ac_ct_STRIP
4246   fi
4247 else
4248   STRIP="$ac_cv_prog_STRIP"
4249 fi
4250
4251 fi
4252 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4255 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4256 if test -z "$MKDIR_P"; then
4257   if ${ac_cv_path_mkdir+:} false; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4262 do
4263   IFS=$as_save_IFS
4264   test -z "$as_dir" && as_dir=.
4265     for ac_prog in mkdir gmkdir; do
4266          for ac_exec_ext in '' $ac_executable_extensions; do
4267            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4268            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4269              'mkdir (GNU coreutils) '* | \
4270              'mkdir (coreutils) '* | \
4271              'mkdir (fileutils) '4.1*)
4272                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4273                break 3;;
4274            esac
4275          done
4276        done
4277   done
4278 IFS=$as_save_IFS
4279
4280 fi
4281
4282   test -d ./--version && rmdir ./--version
4283   if test "${ac_cv_path_mkdir+set}" = set; then
4284     MKDIR_P="$ac_cv_path_mkdir -p"
4285   else
4286     # As a last resort, use the slow shell script.  Don't cache a
4287     # value for MKDIR_P within a source directory, because that will
4288     # break other packages using the cache if that directory is
4289     # removed, or if the value is a relative name.
4290     MKDIR_P="$ac_install_sh -d"
4291   fi
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4294 $as_echo "$MKDIR_P" >&6; }
4295
4296 for ac_prog in gawk mawk nawk awk
4297 do
4298   # Extract the first word of "$ac_prog", so it can be a program name with args.
4299 set dummy $ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_AWK+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -n "$AWK"; then
4306   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313     for ac_exec_ext in '' $ac_executable_extensions; do
4314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4315     ac_cv_prog_AWK="$ac_prog"
4316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320   done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 AWK=$ac_cv_prog_AWK
4326 if test -n "$AWK"; then
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4328 $as_echo "$AWK" >&6; }
4329 else
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4333
4334
4335   test -n "$AWK" && break
4336 done
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4339 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4340 set x ${MAKE-make}
4341 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4342 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   cat >conftest.make <<\_ACEOF
4346 SHELL = /bin/sh
4347 all:
4348         @echo '@@@%%%=$(MAKE)=@@@%%%'
4349 _ACEOF
4350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4352   *@@@%%%=?*=@@@%%%*)
4353     eval ac_cv_prog_make_${ac_make}_set=yes;;
4354   *)
4355     eval ac_cv_prog_make_${ac_make}_set=no;;
4356 esac
4357 rm -f conftest.make
4358 fi
4359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 $as_echo "yes" >&6; }
4362   SET_MAKE=
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366   SET_MAKE="MAKE=${MAKE-make}"
4367 fi
4368
4369 rm -rf .tst 2>/dev/null
4370 mkdir .tst 2>/dev/null
4371 if test -d .tst; then
4372   am__leading_dot=.
4373 else
4374   am__leading_dot=_
4375 fi
4376 rmdir .tst 2>/dev/null
4377
4378 # Check whether --enable-silent-rules was given.
4379 if test "${enable_silent_rules+set}" = set; then :
4380   enableval=$enable_silent_rules;
4381 fi
4382
4383 case $enable_silent_rules in # (((
4384   yes) AM_DEFAULT_VERBOSITY=0;;
4385    no) AM_DEFAULT_VERBOSITY=1;;
4386     *) AM_DEFAULT_VERBOSITY=1;;
4387 esac
4388 am_make=${MAKE-make}
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4390 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4391 if ${am_cv_make_support_nested_variables+:} false; then :
4392   $as_echo_n "(cached) " >&6
4393 else
4394   if $as_echo 'TRUE=$(BAR$(V))
4395 BAR0=false
4396 BAR1=true
4397 V=1
4398 am__doit:
4399         @$(TRUE)
4400 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4401   am_cv_make_support_nested_variables=yes
4402 else
4403   am_cv_make_support_nested_variables=no
4404 fi
4405 fi
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4407 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4408 if test $am_cv_make_support_nested_variables = yes; then
4409     AM_V='$(V)'
4410   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4411 else
4412   AM_V=$AM_DEFAULT_VERBOSITY
4413   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4414 fi
4415 AM_BACKSLASH='\'
4416
4417 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4418   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4419   # is not polluted with repeated "-I."
4420   am__isrc=' -I$(srcdir)'
4421   # test to see if srcdir already configured
4422   if test -f $srcdir/config.status; then
4423     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4424   fi
4425 fi
4426
4427 # test whether we have cygpath
4428 if test -z "$CYGPATH_W"; then
4429   if (cygpath --version) >/dev/null 2>/dev/null; then
4430     CYGPATH_W='cygpath -w'
4431   else
4432     CYGPATH_W=echo
4433   fi
4434 fi
4435
4436
4437 # Define the identity of the package.
4438  PACKAGE='libphobos'
4439  VERSION='version-unused'
4440
4441
4442 # Some tools Automake needs.
4443
4444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4445
4446
4447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4448
4449
4450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4451
4452
4453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4454
4455
4456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4457
4458 # For better backward compatibility.  To be removed once Automake 1.9.x
4459 # dies out for good.  For more background, see:
4460 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4461 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4462 mkdir_p='$(MKDIR_P)'
4463
4464 # We need awk for the "check" target (and possibly the TAP driver).  The
4465 # system "awk" is bad on some platforms.
4466 # Always define AMTAR for backward compatibility.  Yes, it's still used
4467 # in the wild :-(  We should find a proper way to deprecate it ...
4468 AMTAR='$${TAR-tar}'
4469
4470
4471 # We'll loop over all known methods to create a tar archive until one works.
4472 _am_tools='gnutar  pax cpio none'
4473
4474 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4475
4476
4477
4478
4479
4480
4481 # POSIX will say in a future version that running "rm -f" with no argument
4482 # is OK; and we want to be able to make that assumption in our Makefile
4483 # recipes.  So use an aggressive probe to check that the usage we want is
4484 # actually supported "in the wild" to an acceptable degree.
4485 # See automake bug#10828.
4486 # To make any issue more visible, cause the running configure to be aborted
4487 # by default if the 'rm' program in use doesn't match our expectations; the
4488 # user can still override this though.
4489 if rm -f && rm -fr && rm -rf; then : OK; else
4490   cat >&2 <<'END'
4491 Oops!
4492
4493 Your 'rm' program seems unable to run without file operands specified
4494 on the command line, even when the '-f' option is present.  This is contrary
4495 to the behaviour of most rm programs out there, and not conforming with
4496 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4497
4498 Please tell bug-automake@gnu.org about your system, including the value
4499 of your $PATH and any error possibly output before this message.  This
4500 can help us improve future automake versions.
4501
4502 END
4503   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4504     echo 'Configuration will proceed anyway, since you have set the' >&2
4505     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4506     echo >&2
4507   else
4508     cat >&2 <<'END'
4509 Aborting the configuration process, to ensure you take notice of the issue.
4510
4511 You can download and install GNU coreutils to get an 'rm' implementation
4512 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4513
4514 If you want to complete the configuration process using your problematic
4515 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4516 to "yes", and re-run configure.
4517
4518 END
4519     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4520   fi
4521 fi
4522
4523
4524
4525
4526 # By default we simply use the C compiler to build assembly code.
4527
4528 test "${CCAS+set}" = set || CCAS=$CC
4529 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4530
4531
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538 if test -n "$ac_tool_prefix"; then
4539   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4540 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if ${ac_cv_prog_CC+:} false; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -n "$CC"; then
4547   ac_cv_prog_CC="$CC" # Let the user override the test.
4548 else
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563
4564 fi
4565 fi
4566 CC=$ac_cv_prog_CC
4567 if test -n "$CC"; then
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4570 else
4571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4573 fi
4574
4575
4576 fi
4577 if test -z "$ac_cv_prog_CC"; then
4578   ac_ct_CC=$CC
4579   # Extract the first word of "gcc", so it can be a program name with args.
4580 set dummy gcc; ac_word=$2
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4582 $as_echo_n "checking for $ac_word... " >&6; }
4583 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   if test -n "$ac_ct_CC"; then
4587   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594     for ac_exec_ext in '' $ac_executable_extensions; do
4595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596     ac_cv_prog_ac_ct_CC="gcc"
4597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4598     break 2
4599   fi
4600 done
4601   done
4602 IFS=$as_save_IFS
4603
4604 fi
4605 fi
4606 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4607 if test -n "$ac_ct_CC"; then
4608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4609 $as_echo "$ac_ct_CC" >&6; }
4610 else
4611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4612 $as_echo "no" >&6; }
4613 fi
4614
4615   if test "x$ac_ct_CC" = x; then
4616     CC=""
4617   else
4618     case $cross_compiling:$ac_tool_warned in
4619 yes:)
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4622 ac_tool_warned=yes ;;
4623 esac
4624     CC=$ac_ct_CC
4625   fi
4626 else
4627   CC="$ac_cv_prog_CC"
4628 fi
4629
4630 if test -z "$CC"; then
4631           if test -n "$ac_tool_prefix"; then
4632     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}cc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_CC+:} false; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if test -n "$CC"; then
4640   ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649     ac_cv_prog_CC="${ac_tool_prefix}cc"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669   fi
4670 fi
4671 if test -z "$CC"; then
4672   # Extract the first word of "cc", so it can be a program name with args.
4673 set dummy cc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_CC+:} false; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if test -n "$CC"; then
4680   ac_cv_prog_CC="$CC" # Let the user override the test.
4681 else
4682   ac_prog_rejected=no
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4690     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4691        ac_prog_rejected=yes
4692        continue
4693      fi
4694     ac_cv_prog_CC="cc"
4695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4696     break 2
4697   fi
4698 done
4699   done
4700 IFS=$as_save_IFS
4701
4702 if test $ac_prog_rejected = yes; then
4703   # We found a bogon in the path, so make sure we never use it.
4704   set dummy $ac_cv_prog_CC
4705   shift
4706   if test $# != 0; then
4707     # We chose a different compiler from the bogus one.
4708     # However, it has the same basename, so the bogon will be chosen
4709     # first if we set CC to just the basename; use the full file name.
4710     shift
4711     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4712   fi
4713 fi
4714 fi
4715 fi
4716 CC=$ac_cv_prog_CC
4717 if test -n "$CC"; then
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4719 $as_echo "$CC" >&6; }
4720 else
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 fi
4727 if test -z "$CC"; then
4728   if test -n "$ac_tool_prefix"; then
4729   for ac_prog in cl.exe
4730   do
4731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_CC+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if test -n "$CC"; then
4739   ac_cv_prog_CC="$CC" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4743 do
4744   IFS=$as_save_IFS
4745   test -z "$as_dir" && as_dir=.
4746     for ac_exec_ext in '' $ac_executable_extensions; do
4747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750     break 2
4751   fi
4752 done
4753   done
4754 IFS=$as_save_IFS
4755
4756 fi
4757 fi
4758 CC=$ac_cv_prog_CC
4759 if test -n "$CC"; then
4760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4761 $as_echo "$CC" >&6; }
4762 else
4763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4765 fi
4766
4767
4768     test -n "$CC" && break
4769   done
4770 fi
4771 if test -z "$CC"; then
4772   ac_ct_CC=$CC
4773   for ac_prog in cl.exe
4774 do
4775   # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$ac_ct_CC"; then
4783   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792     ac_cv_prog_ac_ct_CC="$ac_prog"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4803 if test -n "$ac_ct_CC"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4805 $as_echo "$ac_ct_CC" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812   test -n "$ac_ct_CC" && break
4813 done
4814
4815   if test "x$ac_ct_CC" = x; then
4816     CC=""
4817   else
4818     case $cross_compiling:$ac_tool_warned in
4819 yes:)
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4823 esac
4824     CC=$ac_ct_CC
4825   fi
4826 fi
4827
4828 fi
4829
4830
4831 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4833 as_fn_error $? "no acceptable C compiler found in \$PATH
4834 See \`config.log' for more details" "$LINENO" 5; }
4835
4836 # Provide some information about the compiler.
4837 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4838 set X $ac_compile
4839 ac_compiler=$2
4840 for ac_option in --version -v -V -qversion; do
4841   { { ac_try="$ac_compiler $ac_option >&5"
4842 case "(($ac_try" in
4843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844   *) ac_try_echo=$ac_try;;
4845 esac
4846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4847 $as_echo "$ac_try_echo"; } >&5
4848   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4849   ac_status=$?
4850   if test -s conftest.err; then
4851     sed '10a\
4852 ... rest of stderr output deleted ...
4853          10q' conftest.err >conftest.er1
4854     cat conftest.er1 >&5
4855   fi
4856   rm -f conftest.er1 conftest.err
4857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4858   test $ac_status = 0; }
4859 done
4860
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4862 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4863 if ${ac_cv_c_compiler_gnu+:} false; then :
4864   $as_echo_n "(cached) " >&6
4865 else
4866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h.  */
4868
4869 int
4870 main ()
4871 {
4872 #ifndef __GNUC__
4873        choke me
4874 #endif
4875
4876   ;
4877   return 0;
4878 }
4879 _ACEOF
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881   ac_compiler_gnu=yes
4882 else
4883   ac_compiler_gnu=no
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4887
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4890 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4891 if test $ac_compiler_gnu = yes; then
4892   GCC=yes
4893 else
4894   GCC=
4895 fi
4896 ac_test_CFLAGS=${CFLAGS+set}
4897 ac_save_CFLAGS=$CFLAGS
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4899 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4900 if ${ac_cv_prog_cc_g+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903   ac_save_c_werror_flag=$ac_c_werror_flag
4904    ac_c_werror_flag=yes
4905    ac_cv_prog_cc_g=no
4906    CFLAGS="-g"
4907    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909
4910 int
4911 main ()
4912 {
4913
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919   ac_cv_prog_cc_g=yes
4920 else
4921   CFLAGS=""
4922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h.  */
4924
4925 int
4926 main ()
4927 {
4928
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 if ac_fn_c_try_compile "$LINENO"; then :
4934
4935 else
4936   ac_c_werror_flag=$ac_save_c_werror_flag
4937          CFLAGS="-g"
4938          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h.  */
4940
4941 int
4942 main ()
4943 {
4944
4945   ;
4946   return 0;
4947 }
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"; then :
4950   ac_cv_prog_cc_g=yes
4951 fi
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957    ac_c_werror_flag=$ac_save_c_werror_flag
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4960 $as_echo "$ac_cv_prog_cc_g" >&6; }
4961 if test "$ac_test_CFLAGS" = set; then
4962   CFLAGS=$ac_save_CFLAGS
4963 elif test $ac_cv_prog_cc_g = yes; then
4964   if test "$GCC" = yes; then
4965     CFLAGS="-g -O2"
4966   else
4967     CFLAGS="-g"
4968   fi
4969 else
4970   if test "$GCC" = yes; then
4971     CFLAGS="-O2"
4972   else
4973     CFLAGS=
4974   fi
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4977 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4978 if ${ac_cv_prog_cc_c89+:} false; then :
4979   $as_echo_n "(cached) " >&6
4980 else
4981   ac_cv_prog_cc_c89=no
4982 ac_save_CC=$CC
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h.  */
4985 #include <stdarg.h>
4986 #include <stdio.h>
4987 struct stat;
4988 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4989 struct buf { int x; };
4990 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4991 static char *e (p, i)
4992      char **p;
4993      int i;
4994 {
4995   return p[i];
4996 }
4997 static char *f (char * (*g) (char **, int), char **p, ...)
4998 {
4999   char *s;
5000   va_list v;
5001   va_start (v,p);
5002   s = g (p, va_arg (v,int));
5003   va_end (v);
5004   return s;
5005 }
5006
5007 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5008    function prototypes and stuff, but not '\xHH' hex character constants.
5009    These don't provoke an error unfortunately, instead are silently treated
5010    as 'x'.  The following induces an error, until -std is added to get
5011    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5012    array size at least.  It's necessary to write '\x00'==0 to get something
5013    that's true only with -std.  */
5014 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5015
5016 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5017    inside strings and character constants.  */
5018 #define FOO(x) 'x'
5019 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5020
5021 int test (int i, double x);
5022 struct s1 {int (*f) (int a);};
5023 struct s2 {int (*f) (double a);};
5024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5025 int argc;
5026 char **argv;
5027 int
5028 main ()
5029 {
5030 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5031   ;
5032   return 0;
5033 }
5034 _ACEOF
5035 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5036         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5037 do
5038   CC="$ac_save_CC $ac_arg"
5039   if ac_fn_c_try_compile "$LINENO"; then :
5040   ac_cv_prog_cc_c89=$ac_arg
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext
5043   test "x$ac_cv_prog_cc_c89" != "xno" && break
5044 done
5045 rm -f conftest.$ac_ext
5046 CC=$ac_save_CC
5047
5048 fi
5049 # AC_CACHE_VAL
5050 case "x$ac_cv_prog_cc_c89" in
5051   x)
5052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5053 $as_echo "none needed" >&6; } ;;
5054   xno)
5055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5056 $as_echo "unsupported" >&6; } ;;
5057   *)
5058     CC="$CC $ac_cv_prog_cc_c89"
5059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5060 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5061 esac
5062 if test "x$ac_cv_prog_cc_c89" != xno; then :
5063
5064 fi
5065
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071
5072 ac_ext=c
5073 ac_cpp='$CPP $CPPFLAGS'
5074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5078 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5079 if ${am_cv_prog_cc_c_o+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h.  */
5084
5085 int
5086 main ()
5087 {
5088
5089   ;
5090   return 0;
5091 }
5092 _ACEOF
5093   # Make sure it works both with $CC and with simple cc.
5094   # Following AC_PROG_CC_C_O, we do the test twice because some
5095   # compilers refuse to overwrite an existing .o file with -o,
5096   # though they will create one.
5097   am_cv_prog_cc_c_o=yes
5098   for am_i in 1 2; do
5099     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5100    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5101    ac_status=$?
5102    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103    (exit $ac_status); } \
5104          && test -f conftest2.$ac_objext; then
5105       : OK
5106     else
5107       am_cv_prog_cc_c_o=no
5108       break
5109     fi
5110   done
5111   rm -f core conftest*
5112   unset am_i
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5115 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5116 if test "$am_cv_prog_cc_c_o" != yes; then
5117    # Losing compiler, so override with the script.
5118    # FIXME: It is wrong to rewrite CC.
5119    # But if we don't then we get into trouble of one sort or another.
5120    # A longer-term fix would be to have automake use am__CC in this case,
5121    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5122    CC="$am_aux_dir/compile $CC"
5123 fi
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
5130
5131 ac_ext=d
5132 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5133 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=yes
5135 if test -n "$ac_tool_prefix"; then
5136   # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_prog_GDC+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   if test -n "$GDC"; then
5144   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149   IFS=$as_save_IFS
5150   test -z "$as_dir" && as_dir=.
5151     for ac_exec_ext in '' $ac_executable_extensions; do
5152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153     ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155     break 2
5156   fi
5157 done
5158   done
5159 IFS=$as_save_IFS
5160
5161 fi
5162 fi
5163 GDC=$ac_cv_prog_GDC
5164 if test -n "$GDC"; then
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5166 $as_echo "$GDC" >&6; }
5167 else
5168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171
5172
5173 fi
5174 if test -z "$ac_cv_prog_GDC"; then
5175   ac_ct_GDC=$GDC
5176   # Extract the first word of "gdc", so it can be a program name with args.
5177 set dummy gdc; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -n "$ac_ct_GDC"; then
5184   ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193     ac_cv_prog_ac_ct_GDC="gdc"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5204 if test -n "$ac_ct_GDC"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5206 $as_echo "$ac_ct_GDC" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212   if test "x$ac_ct_GDC" = x; then
5213     GDC=""
5214   else
5215     case $cross_compiling:$ac_tool_warned in
5216 yes:)
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219 ac_tool_warned=yes ;;
5220 esac
5221     GDC=$ac_ct_GDC
5222   fi
5223 else
5224   GDC="$ac_cv_prog_GDC"
5225 fi
5226
5227 if test -z "$GDC"; then
5228   if test -n "$ac_tool_prefix"; then
5229     # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5230 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if ${ac_cv_prog_GDC+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   if test -n "$GDC"; then
5237   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5238 else
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_prog_GDC="$ac_tool_prefix}gdc"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253
5254 fi
5255 fi
5256 GDC=$ac_cv_prog_GDC
5257 if test -n "$GDC"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5259 $as_echo "$GDC" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5263 fi
5264
5265
5266   fi
5267 fi
5268 if test -z "$GDC"; then
5269   # Extract the first word of "gdc", so it can be a program name with args.
5270 set dummy gdc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if ${ac_cv_prog_GDC+:} false; then :
5274   $as_echo_n "(cached) " >&6
5275 else
5276   if test -n "$GDC"; then
5277   ac_cv_prog_GDC="$GDC" # Let the user override the test.
5278 else
5279   ac_prog_rejected=no
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283   IFS=$as_save_IFS
5284   test -z "$as_dir" && as_dir=.
5285     for ac_exec_ext in '' $ac_executable_extensions; do
5286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287     if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
5288        ac_prog_rejected=yes
5289        continue
5290      fi
5291     ac_cv_prog_GDC="gdc"
5292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293     break 2
5294   fi
5295 done
5296   done
5297 IFS=$as_save_IFS
5298
5299 if test $ac_prog_rejected = yes; then
5300   # We found a bogon in the path, so make sure we never use it.
5301   set dummy $ac_cv_prog_GDC
5302   shift
5303   if test $# != 0; then
5304     # We chose a different compiler from the bogus one.
5305     # However, it has the same basename, so the bogon will be chosen
5306     # first if we set GDC to just the basename; use the full file name.
5307     shift
5308     ac_cv_prog_GDC="$as_dir/$ac_word${1+' '}$@"
5309   fi
5310 fi
5311 fi
5312 fi
5313 GDC=$ac_cv_prog_GDC
5314 if test -n "$GDC"; then
5315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5316 $as_echo "$GDC" >&6; }
5317 else
5318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5320 fi
5321
5322
5323 fi
5324
5325
5326 # Provide some information about the compiler.
5327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for D compiler version" >&5
5328 set X $ac_compile
5329 ac_compiler=$2
5330 { { ac_try="$ac_compiler --version >&5"
5331 case "(($ac_try" in
5332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5333   *) ac_try_echo=$ac_try;;
5334 esac
5335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5336 $as_echo "$ac_try_echo"; } >&5
5337   (eval "$ac_compiler --version >&5") 2>conftest.err
5338   ac_status=$?
5339   if test -s conftest.err; then
5340     sed '10a\
5341 ... rest of stderr output deleted ...
5342          10q' conftest.err >conftest.er1
5343     cat conftest.er1 >&5
5344   fi
5345   rm -f conftest.er1 conftest.err
5346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5347   test $ac_status = 0; }
5348 ac_ext=c
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354
5355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for absolute libphobos source path" >&5
5356 $as_echo_n "checking for absolute libphobos source path... " >&6; }
5357 if ${phobos_cv_abs_srcdir+:} false; then :
5358   $as_echo_n "(cached) " >&6
5359 else
5360   phobos_cv_abs_srcdir=`cd $srcdir && pwd`
5361 fi
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $phobos_cv_abs_srcdir" >&5
5363 $as_echo "$phobos_cv_abs_srcdir" >&6; }
5364     if test -d "$phobos_cv_abs_srcdir"; then :
5365
5366 else
5367   as_fn_error $? "can't find absolute libphobos source path" "$LINENO" 5
5368 fi
5369
5370
5371
5372
5373   gdc_save_DFLAGS=$GDCFLAGS
5374   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
5375
5376   ac_ext=d
5377 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
5378 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5379 ac_compiler_gnu=yes
5380
5381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking If $GDC can compile D sources" >&5
5382 $as_echo_n "checking If $GDC can compile D sources... " >&6; }
5383     cat > conftest.$ac_ext <<_ACEOF
5384 module mod;
5385
5386
5387 extern(C) int main() {
5388   return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_d_try_compile "$LINENO"; then :
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393 $as_echo "yes" >&6; }
5394 else
5395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5397        as_fn_error $? "can't compile D sources!" "$LINENO" 5
5398 fi
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400   ac_ext=c
5401 ac_cpp='$CPP $CPPFLAGS'
5402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5405
5406
5407   GDCFLAGS=$gdc_save_DFLAGS
5408
5409
5410
5411
5412
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5415 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5416     # Check whether --enable-maintainer-mode was given.
5417 if test "${enable_maintainer_mode+set}" = set; then :
5418   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5419 else
5420   USE_MAINTAINER_MODE=no
5421 fi
5422
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5424 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5425    if test $USE_MAINTAINER_MODE = yes; then
5426   MAINTAINER_MODE_TRUE=
5427   MAINTAINER_MODE_FALSE='#'
5428 else
5429   MAINTAINER_MODE_TRUE='#'
5430   MAINTAINER_MODE_FALSE=
5431 fi
5432
5433   MAINT=$MAINTAINER_MODE_TRUE
5434
5435
5436 if test -n "$ac_tool_prefix"; then
5437   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5438 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440 $as_echo_n "checking for $ac_word... " >&6; }
5441 if ${ac_cv_prog_RANLIB+:} false; then :
5442   $as_echo_n "(cached) " >&6
5443 else
5444   if test -n "$RANLIB"; then
5445   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5446 else
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH
5449 do
5450   IFS=$as_save_IFS
5451   test -z "$as_dir" && as_dir=.
5452     for ac_exec_ext in '' $ac_executable_extensions; do
5453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5454     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456     break 2
5457   fi
5458 done
5459   done
5460 IFS=$as_save_IFS
5461
5462 fi
5463 fi
5464 RANLIB=$ac_cv_prog_RANLIB
5465 if test -n "$RANLIB"; then
5466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5467 $as_echo "$RANLIB" >&6; }
5468 else
5469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5471 fi
5472
5473
5474 fi
5475 if test -z "$ac_cv_prog_RANLIB"; then
5476   ac_ct_RANLIB=$RANLIB
5477   # Extract the first word of "ranlib", so it can be a program name with args.
5478 set dummy ranlib; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5482   $as_echo_n "(cached) " >&6
5483 else
5484   if test -n "$ac_ct_RANLIB"; then
5485   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492     for ac_exec_ext in '' $ac_executable_extensions; do
5493   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494     ac_cv_prog_ac_ct_RANLIB="ranlib"
5495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499   done
5500 IFS=$as_save_IFS
5501
5502 fi
5503 fi
5504 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5505 if test -n "$ac_ct_RANLIB"; then
5506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5507 $as_echo "$ac_ct_RANLIB" >&6; }
5508 else
5509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5511 fi
5512
5513   if test "x$ac_ct_RANLIB" = x; then
5514     RANLIB=":"
5515   else
5516     case $cross_compiling:$ac_tool_warned in
5517 yes:)
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520 ac_tool_warned=yes ;;
5521 esac
5522     RANLIB=$ac_ct_RANLIB
5523   fi
5524 else
5525   RANLIB="$ac_cv_prog_RANLIB"
5526 fi
5527
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5530 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5531 set x ${MAKE-make}
5532 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5533 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5534   $as_echo_n "(cached) " >&6
5535 else
5536   cat >conftest.make <<\_ACEOF
5537 SHELL = /bin/sh
5538 all:
5539         @echo '@@@%%%=$(MAKE)=@@@%%%'
5540 _ACEOF
5541 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5542 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5543   *@@@%%%=?*=@@@%%%*)
5544     eval ac_cv_prog_make_${ac_make}_set=yes;;
5545   *)
5546     eval ac_cv_prog_make_${ac_make}_set=no;;
5547 esac
5548 rm -f conftest.make
5549 fi
5550 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5552 $as_echo "yes" >&6; }
5553   SET_MAKE=
5554 else
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557   SET_MAKE="MAKE=${MAKE-make}"
5558 fi
5559
5560
5561 # This should be inherited in the recursive make, but ensure it is defined.
5562 test "$AR" || AR=ar
5563
5564
5565 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
5566
5567
5568
5569 # Enable libtool
5570 case `pwd` in
5571   *\ * | *\     *)
5572     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5573 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5574 esac
5575
5576
5577
5578 macro_version='2.2.7a'
5579 macro_revision='1.3134'
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593 ltmain="$ac_aux_dir/ltmain.sh"
5594
5595 # Backslashify metacharacters that are still active within
5596 # double-quoted strings.
5597 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5598
5599 # Same as above, but do not quote variable references.
5600 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5601
5602 # Sed substitution to delay expansion of an escaped shell variable in a
5603 # double_quote_subst'ed string.
5604 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5605
5606 # Sed substitution to delay expansion of an escaped single quote.
5607 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5608
5609 # Sed substitution to avoid accidental globbing in evaled expressions
5610 no_glob_subst='s/\*/\\\*/g'
5611
5612 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5613 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5614 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5615
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5617 $as_echo_n "checking how to print strings... " >&6; }
5618 # Test print first, because it will be a builtin if present.
5619 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5620    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5621   ECHO='print -r --'
5622 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5623   ECHO='printf %s\n'
5624 else
5625   # Use this function as a fallback that always works.
5626   func_fallback_echo ()
5627   {
5628     eval 'cat <<_LTECHO_EOF
5629 $1
5630 _LTECHO_EOF'
5631   }
5632   ECHO='func_fallback_echo'
5633 fi
5634
5635 # func_echo_all arg...
5636 # Invoke $ECHO with all args, space-separated.
5637 func_echo_all ()
5638 {
5639     $ECHO ""
5640 }
5641
5642 case "$ECHO" in
5643   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5644 $as_echo "printf" >&6; } ;;
5645   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5646 $as_echo "print -r" >&6; } ;;
5647   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5648 $as_echo "cat" >&6; } ;;
5649 esac
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5666 if ${ac_cv_path_SED+:} false; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5670      for ac_i in 1 2 3 4 5 6 7; do
5671        ac_script="$ac_script$as_nl$ac_script"
5672      done
5673      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5674      { ac_script=; unset ac_script;}
5675      if test -z "$SED"; then
5676   ac_path_SED_found=false
5677   # Loop through the user's path and test for each of PROGNAME-LIST
5678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5679 for as_dir in $PATH
5680 do
5681   IFS=$as_save_IFS
5682   test -z "$as_dir" && as_dir=.
5683     for ac_prog in sed gsed; do
5684     for ac_exec_ext in '' $ac_executable_extensions; do
5685       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5686       as_fn_executable_p "$ac_path_SED" || continue
5687 # Check for GNU ac_path_SED and select it if it is found.
5688   # Check for GNU $ac_path_SED
5689 case `"$ac_path_SED" --version 2>&1` in
5690 *GNU*)
5691   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5692 *)
5693   ac_count=0
5694   $as_echo_n 0123456789 >"conftest.in"
5695   while :
5696   do
5697     cat "conftest.in" "conftest.in" >"conftest.tmp"
5698     mv "conftest.tmp" "conftest.in"
5699     cp "conftest.in" "conftest.nl"
5700     $as_echo '' >> "conftest.nl"
5701     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5703     as_fn_arith $ac_count + 1 && ac_count=$as_val
5704     if test $ac_count -gt ${ac_path_SED_max-0}; then
5705       # Best one so far, save it but keep looking for a better one
5706       ac_cv_path_SED="$ac_path_SED"
5707       ac_path_SED_max=$ac_count
5708     fi
5709     # 10*(2^10) chars as input seems more than enough
5710     test $ac_count -gt 10 && break
5711   done
5712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5713 esac
5714
5715       $ac_path_SED_found && break 3
5716     done
5717   done
5718   done
5719 IFS=$as_save_IFS
5720   if test -z "$ac_cv_path_SED"; then
5721     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5722   fi
5723 else
5724   ac_cv_path_SED=$SED
5725 fi
5726
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5729 $as_echo "$ac_cv_path_SED" >&6; }
5730  SED="$ac_cv_path_SED"
5731   rm -f conftest.sed
5732
5733 test -z "$SED" && SED=sed
5734 Xsed="$SED -e 1s/^X//"
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5747 $as_echo_n "checking for fgrep... " >&6; }
5748 if ${ac_cv_path_FGREP+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5752    then ac_cv_path_FGREP="$GREP -F"
5753    else
5754      if test -z "$FGREP"; then
5755   ac_path_FGREP_found=false
5756   # Loop through the user's path and test for each of PROGNAME-LIST
5757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762     for ac_prog in fgrep; do
5763     for ac_exec_ext in '' $ac_executable_extensions; do
5764       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5765       as_fn_executable_p "$ac_path_FGREP" || continue
5766 # Check for GNU ac_path_FGREP and select it if it is found.
5767   # Check for GNU $ac_path_FGREP
5768 case `"$ac_path_FGREP" --version 2>&1` in
5769 *GNU*)
5770   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5771 *)
5772   ac_count=0
5773   $as_echo_n 0123456789 >"conftest.in"
5774   while :
5775   do
5776     cat "conftest.in" "conftest.in" >"conftest.tmp"
5777     mv "conftest.tmp" "conftest.in"
5778     cp "conftest.in" "conftest.nl"
5779     $as_echo 'FGREP' >> "conftest.nl"
5780     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5782     as_fn_arith $ac_count + 1 && ac_count=$as_val
5783     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5784       # Best one so far, save it but keep looking for a better one
5785       ac_cv_path_FGREP="$ac_path_FGREP"
5786       ac_path_FGREP_max=$ac_count
5787     fi
5788     # 10*(2^10) chars as input seems more than enough
5789     test $ac_count -gt 10 && break
5790   done
5791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5792 esac
5793
5794       $ac_path_FGREP_found && break 3
5795     done
5796   done
5797   done
5798 IFS=$as_save_IFS
5799   if test -z "$ac_cv_path_FGREP"; then
5800     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5801   fi
5802 else
5803   ac_cv_path_FGREP=$FGREP
5804 fi
5805
5806    fi
5807 fi
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5809 $as_echo "$ac_cv_path_FGREP" >&6; }
5810  FGREP="$ac_cv_path_FGREP"
5811
5812
5813 test -z "$GREP" && GREP=grep
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 # Check whether --with-gnu-ld was given.
5834 if test "${with_gnu_ld+set}" = set; then :
5835   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5836 else
5837   with_gnu_ld=no
5838 fi
5839
5840 ac_prog=ld
5841 if test "$GCC" = yes; then
5842   # Check if gcc -print-prog-name=ld gives a path.
5843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5844 $as_echo_n "checking for ld used by $CC... " >&6; }
5845   case $host in
5846   *-*-mingw*)
5847     # gcc leaves a trailing carriage return which upsets mingw
5848     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5849   *)
5850     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5851   esac
5852   case $ac_prog in
5853     # Accept absolute paths.
5854     [\\/]* | ?:[\\/]*)
5855       re_direlt='/[^/][^/]*/\.\./'
5856       # Canonicalize the pathname of ld
5857       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5858       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5859         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5860       done
5861       test -z "$LD" && LD="$ac_prog"
5862       ;;
5863   "")
5864     # If it fails, then pretend we aren't using GCC.
5865     ac_prog=ld
5866     ;;
5867   *)
5868     # If it is relative, then search for the first ld in PATH.
5869     with_gnu_ld=unknown
5870     ;;
5871   esac
5872 elif test "$with_gnu_ld" = yes; then
5873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5874 $as_echo_n "checking for GNU ld... " >&6; }
5875 else
5876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5877 $as_echo_n "checking for non-GNU ld... " >&6; }
5878 fi
5879 if ${lt_cv_path_LD+:} false; then :
5880   $as_echo_n "(cached) " >&6
5881 else
5882   if test -z "$LD"; then
5883   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884   for ac_dir in $PATH; do
5885     IFS="$lt_save_ifs"
5886     test -z "$ac_dir" && ac_dir=.
5887     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5888       lt_cv_path_LD="$ac_dir/$ac_prog"
5889       # Check to see if the program is GNU ld.  I'd rather use --version,
5890       # but apparently some variants of GNU ld only accept -v.
5891       # Break only if it was the GNU/non-GNU ld that we prefer.
5892       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5893       *GNU* | *'with BFD'*)
5894         test "$with_gnu_ld" != no && break
5895         ;;
5896       *)
5897         test "$with_gnu_ld" != yes && break
5898         ;;
5899       esac
5900     fi
5901   done
5902   IFS="$lt_save_ifs"
5903 else
5904   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5905 fi
5906 fi
5907
5908 LD="$lt_cv_path_LD"
5909 if test -n "$LD"; then
5910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5911 $as_echo "$LD" >&6; }
5912 else
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5914 $as_echo "no" >&6; }
5915 fi
5916 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919 if ${lt_cv_prog_gnu_ld+:} false; then :
5920   $as_echo_n "(cached) " >&6
5921 else
5922   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5923 case `$LD -v 2>&1 </dev/null` in
5924 *GNU* | *'with BFD'*)
5925   lt_cv_prog_gnu_ld=yes
5926   ;;
5927 *)
5928   lt_cv_prog_gnu_ld=no
5929   ;;
5930 esac
5931 fi
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5933 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5934 with_gnu_ld=$lt_cv_prog_gnu_ld
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5946 if ${lt_cv_path_NM+:} false; then :
5947   $as_echo_n "(cached) " >&6
5948 else
5949   if test -n "$NM"; then
5950   # Let the user override the test.
5951   lt_cv_path_NM="$NM"
5952 else
5953   lt_nm_to_check="${ac_tool_prefix}nm"
5954   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5955     lt_nm_to_check="$lt_nm_to_check nm"
5956   fi
5957   for lt_tmp_nm in $lt_nm_to_check; do
5958     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5959     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5960       IFS="$lt_save_ifs"
5961       test -z "$ac_dir" && ac_dir=.
5962       tmp_nm="$ac_dir/$lt_tmp_nm"
5963       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5964         # Check to see if the nm accepts a BSD-compat flag.
5965         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5966         #   nm: unknown option "B" ignored
5967         # Tru64's nm complains that /dev/null is an invalid object file
5968         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5969         */dev/null* | *'Invalid file or object type'*)
5970           lt_cv_path_NM="$tmp_nm -B"
5971           break
5972           ;;
5973         *)
5974           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5975           */dev/null*)
5976             lt_cv_path_NM="$tmp_nm -p"
5977             break
5978             ;;
5979           *)
5980             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981             continue # so that we can try to find one that supports BSD flags
5982             ;;
5983           esac
5984           ;;
5985         esac
5986       fi
5987     done
5988     IFS="$lt_save_ifs"
5989   done
5990   : ${lt_cv_path_NM=no}
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994 $as_echo "$lt_cv_path_NM" >&6; }
5995 if test "$lt_cv_path_NM" != "no"; then
5996   NM="$lt_cv_path_NM"
5997 else
5998   # Didn't find any BSD compatible name lister, look for dumpbin.
5999   if test -n "$DUMPBIN"; then :
6000     # Let the user override the test.
6001   else
6002     if test -n "$ac_tool_prefix"; then
6003   for ac_prog in dumpbin "link -dump"
6004   do
6005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_DUMPBIN+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$DUMPBIN"; then
6013   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_exec_ext in '' $ac_executable_extensions; do
6021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027   done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 DUMPBIN=$ac_cv_prog_DUMPBIN
6033 if test -n "$DUMPBIN"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035 $as_echo "$DUMPBIN" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042     test -n "$DUMPBIN" && break
6043   done
6044 fi
6045 if test -z "$DUMPBIN"; then
6046   ac_ct_DUMPBIN=$DUMPBIN
6047   for ac_prog in dumpbin "link -dump"
6048 do
6049   # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_DUMPBIN"; then
6057   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071   done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077 if test -n "$ac_ct_DUMPBIN"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079 $as_echo "$ac_ct_DUMPBIN" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086   test -n "$ac_ct_DUMPBIN" && break
6087 done
6088
6089   if test "x$ac_ct_DUMPBIN" = x; then
6090     DUMPBIN=":"
6091   else
6092     case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098     DUMPBIN=$ac_ct_DUMPBIN
6099   fi
6100 fi
6101
6102     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103     *COFF*)
6104       DUMPBIN="$DUMPBIN -symbols"
6105       ;;
6106     *)
6107       DUMPBIN=:
6108       ;;
6109     esac
6110   fi
6111
6112   if test "$DUMPBIN" != ":"; then
6113     NM="$DUMPBIN"
6114   fi
6115 fi
6116 test -z "$NM" && NM=nm
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125 if ${lt_cv_nm_interface+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   lt_cv_nm_interface="BSD nm"
6129   echo "int some_variable = 0;" > conftest.$ac_ext
6130   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131   (eval "$ac_compile" 2>conftest.err)
6132   cat conftest.err >&5
6133   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135   cat conftest.err >&5
6136   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137   cat conftest.out >&5
6138   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139     lt_cv_nm_interface="MS dumpbin"
6140   fi
6141   rm -f conftest*
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144 $as_echo "$lt_cv_nm_interface" >&6; }
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147 $as_echo_n "checking whether ln -s works... " >&6; }
6148 LN_S=$as_ln_s
6149 if test "$LN_S" = "ln -s"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154 $as_echo "no, using $LN_S" >&6; }
6155 fi
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if ${lt_cv_sys_max_cmd_len+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163     i=0
6164   teststring="ABCD"
6165
6166   case $build_os in
6167   msdosdjgpp*)
6168     # On DJGPP, this test can blow up pretty badly due to problems in libc
6169     # (any single argument exceeding 2000 bytes causes a buffer overrun
6170     # during glob expansion).  Even if it were fixed, the result of this
6171     # check would be larger than it should be.
6172     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6173     ;;
6174
6175   gnu*)
6176     # Under GNU Hurd, this test is not required because there is
6177     # no limit to the length of command line arguments.
6178     # Libtool will interpret -1 as no limit whatsoever
6179     lt_cv_sys_max_cmd_len=-1;
6180     ;;
6181
6182   cygwin* | mingw* | cegcc*)
6183     # On Win9x/ME, this test blows up -- it succeeds, but takes
6184     # about 5 minutes as the teststring grows exponentially.
6185     # Worse, since 9x/ME are not pre-emptively multitasking,
6186     # you end up with a "frozen" computer, even though with patience
6187     # the test eventually succeeds (with a max line length of 256k).
6188     # Instead, let's just punt: use the minimum linelength reported by
6189     # all of the supported platforms: 8192 (on NT/2K/XP).
6190     lt_cv_sys_max_cmd_len=8192;
6191     ;;
6192
6193   mint*)
6194     # On MiNT this can take a long time and run out of memory.
6195     lt_cv_sys_max_cmd_len=8192;
6196     ;;
6197
6198   amigaos*)
6199     # On AmigaOS with pdksh, this test takes hours, literally.
6200     # So we just punt and use a minimum line length of 8192.
6201     lt_cv_sys_max_cmd_len=8192;
6202     ;;
6203
6204   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205     # This has been around since 386BSD, at least.  Likely further.
6206     if test -x /sbin/sysctl; then
6207       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208     elif test -x /usr/sbin/sysctl; then
6209       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210     else
6211       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6212     fi
6213     # And add a safety zone
6214     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216     ;;
6217
6218   interix*)
6219     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220     lt_cv_sys_max_cmd_len=196608
6221     ;;
6222
6223   osf*)
6224     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226     # nice to cause kernel panics so lets avoid the loop below.
6227     # First set a reasonable default.
6228     lt_cv_sys_max_cmd_len=16384
6229     #
6230     if test -x /sbin/sysconfig; then
6231       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233       esac
6234     fi
6235     ;;
6236   sco3.2v5*)
6237     lt_cv_sys_max_cmd_len=102400
6238     ;;
6239   sysv5* | sco5v6* | sysv4.2uw2*)
6240     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241     if test -n "$kargmax"; then
6242       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6243     else
6244       lt_cv_sys_max_cmd_len=32768
6245     fi
6246     ;;
6247   *)
6248     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249     if test -n "$lt_cv_sys_max_cmd_len"; then
6250       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252     else
6253       # Make teststring a little bigger before we do anything with it.
6254       # a 1K string should be a reasonable start.
6255       for i in 1 2 3 4 5 6 7 8 ; do
6256         teststring=$teststring$teststring
6257       done
6258       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259       # If test is not a shell built-in, we'll probably end up computing a
6260       # maximum length that is only half of the actual maximum length, but
6261       # we can't tell.
6262       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6264               test $i != 17 # 1/2 MB should be enough
6265       do
6266         i=`expr $i + 1`
6267         teststring=$teststring$teststring
6268       done
6269       # Only check the string length outside the loop.
6270       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6271       teststring=
6272       # Add a significant safety factor because C++ compilers can tack on
6273       # massive amounts of additional arguments before passing them to the
6274       # linker.  It appears as though 1/2 is a usable value.
6275       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276     fi
6277     ;;
6278   esac
6279
6280 fi
6281
6282 if test -n $lt_cv_sys_max_cmd_len ; then
6283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285 else
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287 $as_echo "none" >&6; }
6288 fi
6289 max_cmd_len=$lt_cv_sys_max_cmd_len
6290
6291
6292
6293
6294
6295
6296 : ${CP="cp -f"}
6297 : ${MV="mv -f"}
6298 : ${RM="rm -f"}
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302 # Try some XSI features
6303 xsi_shell=no
6304 ( _lt_dummy="a/b/c"
6305   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6306       = c,a/b,, \
6307     && eval 'test $(( 1 + 1 )) -eq 2 \
6308     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309   && xsi_shell=yes
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311 $as_echo "$xsi_shell" >&6; }
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6316 lt_shell_append=no
6317 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6318     >/dev/null 2>&1 \
6319   && lt_shell_append=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321 $as_echo "$lt_shell_append" >&6; }
6322
6323
6324 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6325   lt_unset=unset
6326 else
6327   lt_unset=false
6328 fi
6329
6330
6331
6332
6333
6334 # test EBCDIC or ASCII
6335 case `echo X|tr X '\101'` in
6336  A) # ASCII based system
6337     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338   lt_SP2NL='tr \040 \012'
6339   lt_NL2SP='tr \015\012 \040\040'
6340   ;;
6341  *) # EBCDIC based system
6342   lt_SP2NL='tr \100 \n'
6343   lt_NL2SP='tr \r\n \100\100'
6344   ;;
6345 esac
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6356 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6357 if ${lt_cv_ld_reload_flag+:} false; then :
6358   $as_echo_n "(cached) " >&6
6359 else
6360   lt_cv_ld_reload_flag='-r'
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6363 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6364 reload_flag=$lt_cv_ld_reload_flag
6365 case $reload_flag in
6366 "" | " "*) ;;
6367 *) reload_flag=" $reload_flag" ;;
6368 esac
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 case $host_os in
6371   darwin*)
6372     if test "$GCC" = yes; then
6373       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6374     else
6375       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6376     fi
6377     ;;
6378 esac
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 if test -n "$ac_tool_prefix"; then
6389   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_OBJDUMP+:} false; then :
6394   $as_echo_n "(cached) " >&6
6395 else
6396   if test -n "$OBJDUMP"; then
6397   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402   IFS=$as_save_IFS
6403   test -z "$as_dir" && as_dir=.
6404     for ac_exec_ext in '' $ac_executable_extensions; do
6405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408     break 2
6409   fi
6410 done
6411   done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 OBJDUMP=$ac_cv_prog_OBJDUMP
6417 if test -n "$OBJDUMP"; then
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6419 $as_echo "$OBJDUMP" >&6; }
6420 else
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 fi
6427 if test -z "$ac_cv_prog_OBJDUMP"; then
6428   ac_ct_OBJDUMP=$OBJDUMP
6429   # Extract the first word of "objdump", so it can be a program name with args.
6430 set dummy objdump; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6434   $as_echo_n "(cached) " >&6
6435 else
6436   if test -n "$ac_ct_OBJDUMP"; then
6437   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442   IFS=$as_save_IFS
6443   test -z "$as_dir" && as_dir=.
6444     for ac_exec_ext in '' $ac_executable_extensions; do
6445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448     break 2
6449   fi
6450 done
6451   done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6457 if test -n "$ac_ct_OBJDUMP"; then
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6459 $as_echo "$ac_ct_OBJDUMP" >&6; }
6460 else
6461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465   if test "x$ac_ct_OBJDUMP" = x; then
6466     OBJDUMP="false"
6467   else
6468     case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474     OBJDUMP=$ac_ct_OBJDUMP
6475   fi
6476 else
6477   OBJDUMP="$ac_cv_prog_OBJDUMP"
6478 fi
6479
6480 test -z "$OBJDUMP" && OBJDUMP=objdump
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6491 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6492 if ${lt_cv_deplibs_check_method+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   lt_cv_file_magic_cmd='$MAGIC_CMD'
6496 lt_cv_file_magic_test_file=
6497 lt_cv_deplibs_check_method='unknown'
6498 # Need to set the preceding variable on all platforms that support
6499 # interlibrary dependencies.
6500 # 'none' -- dependencies not supported.
6501 # `unknown' -- same as none, but documents that we really don't know.
6502 # 'pass_all' -- all dependencies passed with no checks.
6503 # 'test_compile' -- check by making test program.
6504 # 'file_magic [[regex]]' -- check by looking for files in library path
6505 # which responds to the $file_magic_cmd with a given extended regex.
6506 # If you have `file' or equivalent on your system and you're not sure
6507 # whether `pass_all' will *always* work, you probably want this one.
6508
6509 case $host_os in
6510 aix[4-9]*)
6511   lt_cv_deplibs_check_method=pass_all
6512   ;;
6513
6514 beos*)
6515   lt_cv_deplibs_check_method=pass_all
6516   ;;
6517
6518 bsdi[45]*)
6519   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6520   lt_cv_file_magic_cmd='/usr/bin/file -L'
6521   lt_cv_file_magic_test_file=/shlib/libc.so
6522   ;;
6523
6524 cygwin*)
6525   # func_win32_libid is a shell function defined in ltmain.sh
6526   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6527   lt_cv_file_magic_cmd='func_win32_libid'
6528   ;;
6529
6530 mingw* | pw32*)
6531   # Base MSYS/MinGW do not provide the 'file' command needed by
6532   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6533   # unless we find 'file', for example because we are cross-compiling.
6534   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6535   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6536     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537     lt_cv_file_magic_cmd='func_win32_libid'
6538   else
6539     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540     lt_cv_file_magic_cmd='$OBJDUMP -f'
6541   fi
6542   ;;
6543
6544 cegcc*)
6545   # use the weaker test based on 'objdump'. See mingw*.
6546   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547   lt_cv_file_magic_cmd='$OBJDUMP -f'
6548   ;;
6549
6550 darwin* | rhapsody*)
6551   lt_cv_deplibs_check_method=pass_all
6552   ;;
6553
6554 freebsd* | dragonfly*)
6555   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6556     case $host_cpu in
6557     i*86 )
6558       # Not sure whether the presence of OpenBSD here was a mistake.
6559       # Let's accept both of them until this is cleared up.
6560       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561       lt_cv_file_magic_cmd=/usr/bin/file
6562       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6563       ;;
6564     esac
6565   else
6566     lt_cv_deplibs_check_method=pass_all
6567   fi
6568   ;;
6569
6570 gnu*)
6571   lt_cv_deplibs_check_method=pass_all
6572   ;;
6573
6574 haiku*)
6575   lt_cv_deplibs_check_method=pass_all
6576   ;;
6577
6578 hpux10.20* | hpux11*)
6579   lt_cv_file_magic_cmd=/usr/bin/file
6580   case $host_cpu in
6581   ia64*)
6582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6584     ;;
6585   hppa*64*)
6586     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]'
6587     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6588     ;;
6589   *)
6590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6591     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592     ;;
6593   esac
6594   ;;
6595
6596 interix[3-9]*)
6597   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6599   ;;
6600
6601 irix5* | irix6* | nonstopux*)
6602   case $LD in
6603   *-32|*"-32 ") libmagic=32-bit;;
6604   *-n32|*"-n32 ") libmagic=N32;;
6605   *-64|*"-64 ") libmagic=64-bit;;
6606   *) libmagic=never-match;;
6607   esac
6608   lt_cv_deplibs_check_method=pass_all
6609   ;;
6610
6611 # This must be Linux ELF.
6612 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6613   lt_cv_deplibs_check_method=pass_all
6614   ;;
6615
6616 netbsd*)
6617   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619   else
6620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621   fi
6622   ;;
6623
6624 newos6*)
6625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626   lt_cv_file_magic_cmd=/usr/bin/file
6627   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628   ;;
6629
6630 *nto* | *qnx*)
6631   lt_cv_deplibs_check_method=pass_all
6632   ;;
6633
6634 openbsd*)
6635   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637   else
6638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639   fi
6640   ;;
6641
6642 osf3* | osf4* | osf5*)
6643   lt_cv_deplibs_check_method=pass_all
6644   ;;
6645
6646 rdos*)
6647   lt_cv_deplibs_check_method=pass_all
6648   ;;
6649
6650 solaris*)
6651   lt_cv_deplibs_check_method=pass_all
6652   ;;
6653
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655   lt_cv_deplibs_check_method=pass_all
6656   ;;
6657
6658 sysv4 | sysv4.3*)
6659   case $host_vendor in
6660   motorola)
6661     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]'
6662     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6663     ;;
6664   ncr)
6665     lt_cv_deplibs_check_method=pass_all
6666     ;;
6667   sequent)
6668     lt_cv_file_magic_cmd='/bin/file'
6669     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6670     ;;
6671   sni)
6672     lt_cv_file_magic_cmd='/bin/file'
6673     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674     lt_cv_file_magic_test_file=/lib/libc.so
6675     ;;
6676   siemens)
6677     lt_cv_deplibs_check_method=pass_all
6678     ;;
6679   pc)
6680     lt_cv_deplibs_check_method=pass_all
6681     ;;
6682   esac
6683   ;;
6684
6685 tpf*)
6686   lt_cv_deplibs_check_method=pass_all
6687   ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 if test -n "$ac_tool_prefix"; then
6709   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6710 set dummy ${ac_tool_prefix}ar; ac_word=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_AR+:} false; then :
6714   $as_echo_n "(cached) " >&6
6715 else
6716   if test -n "$AR"; then
6717   ac_cv_prog_AR="$AR" # Let the user override the test.
6718 else
6719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724     for ac_exec_ext in '' $ac_executable_extensions; do
6725   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6726     ac_cv_prog_AR="${ac_tool_prefix}ar"
6727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731   done
6732 IFS=$as_save_IFS
6733
6734 fi
6735 fi
6736 AR=$ac_cv_prog_AR
6737 if test -n "$AR"; then
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6739 $as_echo "$AR" >&6; }
6740 else
6741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6743 fi
6744
6745
6746 fi
6747 if test -z "$ac_cv_prog_AR"; then
6748   ac_ct_AR=$AR
6749   # Extract the first word of "ar", so it can be a program name with args.
6750 set dummy ar; ac_word=$2
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6754   $as_echo_n "(cached) " >&6
6755 else
6756   if test -n "$ac_ct_AR"; then
6757   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6758 else
6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764     for ac_exec_ext in '' $ac_executable_extensions; do
6765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6766     ac_cv_prog_ac_ct_AR="ar"
6767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771   done
6772 IFS=$as_save_IFS
6773
6774 fi
6775 fi
6776 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6777 if test -n "$ac_ct_AR"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6779 $as_echo "$ac_ct_AR" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784
6785   if test "x$ac_ct_AR" = x; then
6786     AR="false"
6787   else
6788     case $cross_compiling:$ac_tool_warned in
6789 yes:)
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6792 ac_tool_warned=yes ;;
6793 esac
6794     AR=$ac_ct_AR
6795   fi
6796 else
6797   AR="$ac_cv_prog_AR"
6798 fi
6799
6800 test -z "$AR" && AR=ar
6801 test -z "$AR_FLAGS" && AR_FLAGS=cru
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813 if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_prog_STRIP+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   if test -n "$STRIP"; then
6822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829     for ac_exec_ext in '' $ac_executable_extensions; do
6830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836   done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6844 $as_echo "$STRIP" >&6; }
6845 else
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 $as_echo "no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_STRIP"; then
6853   ac_ct_STRIP=$STRIP
6854   # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6857 $as_echo_n "checking for $ac_word... " >&6; }
6858 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   if test -n "$ac_ct_STRIP"; then
6862   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869     for ac_exec_ext in '' $ac_executable_extensions; do
6870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6871     ac_cv_prog_ac_ct_STRIP="strip"
6872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876   done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6884 $as_echo "$ac_ct_STRIP" >&6; }
6885 else
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 $as_echo "no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_STRIP" = x; then
6891     STRIP=":"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899     STRIP=$ac_ct_STRIP
6900   fi
6901 else
6902   STRIP="$ac_cv_prog_STRIP"
6903 fi
6904
6905 test -z "$STRIP" && STRIP=:
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_RANLIB+:} false; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$RANLIB"; then
6921   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 RANLIB=$ac_cv_prog_RANLIB
6941 if test -n "$RANLIB"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6943 $as_echo "$RANLIB" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_RANLIB"; then
6952   ac_ct_RANLIB=$RANLIB
6953   # Extract the first word of "ranlib", so it can be a program name with args.
6954 set dummy ranlib; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_RANLIB"; then
6961   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970     ac_cv_prog_ac_ct_RANLIB="ranlib"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6981 if test -n "$ac_ct_RANLIB"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6983 $as_echo "$ac_ct_RANLIB" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_RANLIB" = x; then
6990     RANLIB=":"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     RANLIB=$ac_ct_RANLIB
6999   fi
7000 else
7001   RANLIB="$ac_cv_prog_RANLIB"
7002 fi
7003
7004 test -z "$RANLIB" && RANLIB=:
7005
7006
7007
7008
7009
7010
7011 # Determine commands to create old-style static archives.
7012 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7013 old_postinstall_cmds='chmod 644 $oldlib'
7014 old_postuninstall_cmds=
7015
7016 if test -n "$RANLIB"; then
7017   case $host_os in
7018   openbsd*)
7019     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7020     ;;
7021   *)
7022     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7023     ;;
7024   esac
7025   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7026 fi
7027
7028 case $host_os in
7029   darwin*)
7030     lock_old_archive_extraction=yes ;;
7031   *)
7032     lock_old_archive_extraction=no ;;
7033 esac
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073 # If no C compiler was specified, use CC.
7074 LTCC=${LTCC-"$CC"}
7075
7076 # If no C compiler flags were specified, use CFLAGS.
7077 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7078
7079 # Allow CC to be a program name with arguments.
7080 compiler=$CC
7081
7082
7083 # Check for command to grab the raw symbol name followed by C symbol from nm.
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7085 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7086 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089
7090 # These are sane defaults that work on at least a few old systems.
7091 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7092
7093 # Character class describing NM global symbol codes.
7094 symcode='[BCDEGRST]'
7095
7096 # Regexp to match symbols that can be accessed directly from C.
7097 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7098
7099 # Define system-specific variables.
7100 case $host_os in
7101 aix*)
7102   symcode='[BCDT]'
7103   ;;
7104 cygwin* | mingw* | pw32* | cegcc*)
7105   symcode='[ABCDGISTW]'
7106   ;;
7107 hpux*)
7108   if test "$host_cpu" = ia64; then
7109     symcode='[ABCDEGRST]'
7110   fi
7111   ;;
7112 irix* | nonstopux*)
7113   symcode='[BCDEGRST]'
7114   ;;
7115 osf*)
7116   symcode='[BCDEGQRST]'
7117   ;;
7118 solaris*)
7119   symcode='[BDRT]'
7120   ;;
7121 sco3.2v5*)
7122   symcode='[DT]'
7123   ;;
7124 sysv4.2uw2*)
7125   symcode='[DT]'
7126   ;;
7127 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7128   symcode='[ABDT]'
7129   ;;
7130 sysv4)
7131   symcode='[DFNSTU]'
7132   ;;
7133 esac
7134
7135 # If we're using GNU nm, then use its standard symbol codes.
7136 case `$NM -V 2>&1` in
7137 *GNU* | *'with BFD'*)
7138   symcode='[ABCDGIRSTW]' ;;
7139 esac
7140
7141 # Transform an extracted symbol line into a proper C declaration.
7142 # Some systems (esp. on ia64) link data and code symbols differently,
7143 # so use this general approach.
7144 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7145
7146 # Transform an extracted symbol line into symbol name and symbol address
7147 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7148 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'"
7149
7150 # Handle CRLF in mingw tool chain
7151 opt_cr=
7152 case $build_os in
7153 mingw*)
7154   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7155   ;;
7156 esac
7157
7158 # Try without a prefix underscore, then with it.
7159 for ac_symprfx in "" "_"; do
7160
7161   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7162   symxfrm="\\1 $ac_symprfx\\2 \\2"
7163
7164   # Write the raw and C identifiers.
7165   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7166     # Fake it for dumpbin and say T for any non-static function
7167     # and D for any global variable.
7168     # Also find C++ and __fastcall symbols from MSVC++,
7169     # which start with @ or ?.
7170     lt_cv_sys_global_symbol_pipe="$AWK '"\
7171 "     {last_section=section; section=\$ 3};"\
7172 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7173 "     \$ 0!~/External *\|/{next};"\
7174 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7175 "     {if(hide[section]) next};"\
7176 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7177 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7178 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7179 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7180 "     ' prfx=^$ac_symprfx"
7181   else
7182     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7183   fi
7184
7185   # Check to see that the pipe works correctly.
7186   pipe_works=no
7187
7188   rm -f conftest*
7189   cat > conftest.$ac_ext <<_LT_EOF
7190 #ifdef __cplusplus
7191 extern "C" {
7192 #endif
7193 char nm_test_var;
7194 void nm_test_func(void);
7195 void nm_test_func(void){}
7196 #ifdef __cplusplus
7197 }
7198 #endif
7199 int main(){nm_test_var='a';nm_test_func();return(0);}
7200 _LT_EOF
7201
7202   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7203   (eval $ac_compile) 2>&5
7204   ac_status=$?
7205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7206   test $ac_status = 0; }; then
7207     # Now try to grab the symbols.
7208     nlist=conftest.nm
7209     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7210   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7211   ac_status=$?
7212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213   test $ac_status = 0; } && test -s "$nlist"; then
7214       # Try sorting and uniquifying the output.
7215       if sort "$nlist" | uniq > "$nlist"T; then
7216         mv -f "$nlist"T "$nlist"
7217       else
7218         rm -f "$nlist"T
7219       fi
7220
7221       # Make sure that we snagged all the symbols we need.
7222       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7223         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7224           cat <<_LT_EOF > conftest.$ac_ext
7225 #ifdef __cplusplus
7226 extern "C" {
7227 #endif
7228
7229 _LT_EOF
7230           # Now generate the symbol file.
7231           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7232
7233           cat <<_LT_EOF >> conftest.$ac_ext
7234
7235 /* The mapping between symbol names and symbols.  */
7236 const struct {
7237   const char *name;
7238   void       *address;
7239 }
7240 lt__PROGRAM__LTX_preloaded_symbols[] =
7241 {
7242   { "@PROGRAM@", (void *) 0 },
7243 _LT_EOF
7244           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7245           cat <<\_LT_EOF >> conftest.$ac_ext
7246   {0, (void *) 0}
7247 };
7248
7249 /* This works around a problem in FreeBSD linker */
7250 #ifdef FREEBSD_WORKAROUND
7251 static const void *lt_preloaded_setup() {
7252   return lt__PROGRAM__LTX_preloaded_symbols;
7253 }
7254 #endif
7255
7256 #ifdef __cplusplus
7257 }
7258 #endif
7259 _LT_EOF
7260           # Now try linking the two files.
7261           mv conftest.$ac_objext conftstm.$ac_objext
7262           lt_save_LIBS="$LIBS"
7263           lt_save_CFLAGS="$CFLAGS"
7264           LIBS="conftstm.$ac_objext"
7265           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7266           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7267   (eval $ac_link) 2>&5
7268   ac_status=$?
7269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7270   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7271             pipe_works=yes
7272           fi
7273           LIBS="$lt_save_LIBS"
7274           CFLAGS="$lt_save_CFLAGS"
7275         else
7276           echo "cannot find nm_test_func in $nlist" >&5
7277         fi
7278       else
7279         echo "cannot find nm_test_var in $nlist" >&5
7280       fi
7281     else
7282       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7283     fi
7284   else
7285     echo "$progname: failed program was:" >&5
7286     cat conftest.$ac_ext >&5
7287   fi
7288   rm -rf conftest* conftst*
7289
7290   # Do not use the global_symbol_pipe unless it works.
7291   if test "$pipe_works" = yes; then
7292     break
7293   else
7294     lt_cv_sys_global_symbol_pipe=
7295   fi
7296 done
7297
7298 fi
7299
7300 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7301   lt_cv_sys_global_symbol_to_cdecl=
7302 fi
7303 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7305 $as_echo "failed" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7308 $as_echo "ok" >&6; }
7309 fi
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332 # Check whether --enable-libtool-lock was given.
7333 if test "${enable_libtool_lock+set}" = set; then :
7334   enableval=$enable_libtool_lock;
7335 fi
7336
7337 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7338
7339 # Some flags need to be propagated to the compiler or linker for good
7340 # libtool support.
7341 case $host in
7342 ia64-*-hpux*)
7343   # Find out which ABI we are using.
7344   echo 'int i;' > conftest.$ac_ext
7345   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346   (eval $ac_compile) 2>&5
7347   ac_status=$?
7348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349   test $ac_status = 0; }; then
7350     case `/usr/bin/file conftest.$ac_objext` in
7351       *ELF-32*)
7352         HPUX_IA64_MODE="32"
7353         ;;
7354       *ELF-64*)
7355         HPUX_IA64_MODE="64"
7356         ;;
7357     esac
7358   fi
7359   rm -rf conftest*
7360   ;;
7361 *-*-irix6*)
7362   # Find out which ABI we are using.
7363   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7364   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7365   (eval $ac_compile) 2>&5
7366   ac_status=$?
7367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368   test $ac_status = 0; }; then
7369     if test "$lt_cv_prog_gnu_ld" = yes; then
7370       case `/usr/bin/file conftest.$ac_objext` in
7371         *32-bit*)
7372           LD="${LD-ld} -melf32bsmip"
7373           ;;
7374         *N32*)
7375           LD="${LD-ld} -melf32bmipn32"
7376           ;;
7377         *64-bit*)
7378           LD="${LD-ld} -melf64bmip"
7379         ;;
7380       esac
7381     else
7382       case `/usr/bin/file conftest.$ac_objext` in
7383         *32-bit*)
7384           LD="${LD-ld} -32"
7385           ;;
7386         *N32*)
7387           LD="${LD-ld} -n32"
7388           ;;
7389         *64-bit*)
7390           LD="${LD-ld} -64"
7391           ;;
7392       esac
7393     fi
7394   fi
7395   rm -rf conftest*
7396   ;;
7397
7398 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7399 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7400   # Find out which ABI we are using.
7401   echo 'int i;' > conftest.$ac_ext
7402   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7403   (eval $ac_compile) 2>&5
7404   ac_status=$?
7405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406   test $ac_status = 0; }; then
7407     case `/usr/bin/file conftest.o` in
7408       *32-bit*)
7409         case $host in
7410           x86_64-*kfreebsd*-gnu)
7411             LD="${LD-ld} -m elf_i386_fbsd"
7412             ;;
7413           x86_64-*linux*)
7414             case `/usr/bin/file conftest.o` in
7415               *x86-64*)
7416                 LD="${LD-ld} -m elf32_x86_64"
7417                 ;;
7418               *)
7419                 LD="${LD-ld} -m elf_i386"
7420                 ;;
7421             esac
7422             ;;
7423           powerpc64le-*linux*)
7424             LD="${LD-ld} -m elf32lppclinux"
7425             ;;
7426           powerpc64-*linux*)
7427             LD="${LD-ld} -m elf32ppclinux"
7428             ;;
7429           s390x-*linux*)
7430             LD="${LD-ld} -m elf_s390"
7431             ;;
7432           sparc64-*linux*)
7433             LD="${LD-ld} -m elf32_sparc"
7434             ;;
7435         esac
7436         ;;
7437       *64-bit*)
7438         case $host in
7439           x86_64-*kfreebsd*-gnu)
7440             LD="${LD-ld} -m elf_x86_64_fbsd"
7441             ;;
7442           x86_64-*linux*)
7443             LD="${LD-ld} -m elf_x86_64"
7444             ;;
7445           powerpcle-*linux*)
7446             LD="${LD-ld} -m elf64lppc"
7447             ;;
7448           powerpc-*linux*)
7449             LD="${LD-ld} -m elf64ppc"
7450             ;;
7451           s390*-*linux*|s390*-*tpf*)
7452             LD="${LD-ld} -m elf64_s390"
7453             ;;
7454           sparc*-*linux*)
7455             LD="${LD-ld} -m elf64_sparc"
7456             ;;
7457         esac
7458         ;;
7459     esac
7460   fi
7461   rm -rf conftest*
7462   ;;
7463
7464 *-*-sco3.2v5*)
7465   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7466   SAVE_CFLAGS="$CFLAGS"
7467   CFLAGS="$CFLAGS -belf"
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7469 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7470 if ${lt_cv_cc_needs_belf+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   ac_ext=c
7474 ac_cpp='$CPP $CPPFLAGS'
7475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7478
7479      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h.  */
7481
7482 int
7483 main ()
7484 {
7485
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_link "$LINENO"; then :
7491   lt_cv_cc_needs_belf=yes
7492 else
7493   lt_cv_cc_needs_belf=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext \
7496     conftest$ac_exeext conftest.$ac_ext
7497      ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
7503 fi
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7505 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7506   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7507     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7508     CFLAGS="$SAVE_CFLAGS"
7509   fi
7510   ;;
7511 sparc*-*solaris*)
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     *64-bit*)
7521       case $lt_cv_prog_gnu_ld in
7522       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7523       *)
7524         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7525           LD="${LD-ld} -64"
7526         fi
7527         ;;
7528       esac
7529       ;;
7530     esac
7531   fi
7532   rm -rf conftest*
7533   ;;
7534 esac
7535
7536 need_locks="$enable_libtool_lock"
7537
7538
7539   case $host_os in
7540     rhapsody* | darwin*)
7541     if test -n "$ac_tool_prefix"; then
7542   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7543 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   if test -n "$DSYMUTIL"; then
7550   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7570 if test -n "$DSYMUTIL"; then
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7572 $as_echo "$DSYMUTIL" >&6; }
7573 else
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578
7579 fi
7580 if test -z "$ac_cv_prog_DSYMUTIL"; then
7581   ac_ct_DSYMUTIL=$DSYMUTIL
7582   # Extract the first word of "dsymutil", so it can be a program name with args.
7583 set dummy dsymutil; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   if test -n "$ac_ct_DSYMUTIL"; then
7590   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7591 else
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593 for as_dir in $PATH
7594 do
7595   IFS=$as_save_IFS
7596   test -z "$as_dir" && as_dir=.
7597     for ac_exec_ext in '' $ac_executable_extensions; do
7598   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7599     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7600     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7601     break 2
7602   fi
7603 done
7604   done
7605 IFS=$as_save_IFS
7606
7607 fi
7608 fi
7609 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7610 if test -n "$ac_ct_DSYMUTIL"; then
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7612 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7613 else
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7615 $as_echo "no" >&6; }
7616 fi
7617
7618   if test "x$ac_ct_DSYMUTIL" = x; then
7619     DSYMUTIL=":"
7620   else
7621     case $cross_compiling:$ac_tool_warned in
7622 yes:)
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7625 ac_tool_warned=yes ;;
7626 esac
7627     DSYMUTIL=$ac_ct_DSYMUTIL
7628   fi
7629 else
7630   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7631 fi
7632
7633     if test -n "$ac_tool_prefix"; then
7634   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7635 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637 $as_echo_n "checking for $ac_word... " >&6; }
7638 if ${ac_cv_prog_NMEDIT+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   if test -n "$NMEDIT"; then
7642   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7643 else
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649     for ac_exec_ext in '' $ac_executable_extensions; do
7650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656   done
7657 IFS=$as_save_IFS
7658
7659 fi
7660 fi
7661 NMEDIT=$ac_cv_prog_NMEDIT
7662 if test -n "$NMEDIT"; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7664 $as_echo "$NMEDIT" >&6; }
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669
7670
7671 fi
7672 if test -z "$ac_cv_prog_NMEDIT"; then
7673   ac_ct_NMEDIT=$NMEDIT
7674   # Extract the first word of "nmedit", so it can be a program name with args.
7675 set dummy nmedit; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   if test -n "$ac_ct_NMEDIT"; then
7682   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687   IFS=$as_save_IFS
7688   test -z "$as_dir" && as_dir=.
7689     for ac_exec_ext in '' $ac_executable_extensions; do
7690   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7691     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693     break 2
7694   fi
7695 done
7696   done
7697 IFS=$as_save_IFS
7698
7699 fi
7700 fi
7701 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7702 if test -n "$ac_ct_NMEDIT"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7704 $as_echo "$ac_ct_NMEDIT" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707 $as_echo "no" >&6; }
7708 fi
7709
7710   if test "x$ac_ct_NMEDIT" = x; then
7711     NMEDIT=":"
7712   else
7713     case $cross_compiling:$ac_tool_warned in
7714 yes:)
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7717 ac_tool_warned=yes ;;
7718 esac
7719     NMEDIT=$ac_ct_NMEDIT
7720   fi
7721 else
7722   NMEDIT="$ac_cv_prog_NMEDIT"
7723 fi
7724
7725     if test -n "$ac_tool_prefix"; then
7726   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_LIPO+:} false; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   if test -n "$LIPO"; then
7734   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741     for ac_exec_ext in '' $ac_executable_extensions; do
7742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748   done
7749 IFS=$as_save_IFS
7750
7751 fi
7752 fi
7753 LIPO=$ac_cv_prog_LIPO
7754 if test -n "$LIPO"; then
7755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7756 $as_echo "$LIPO" >&6; }
7757 else
7758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 fi
7761
7762
7763 fi
7764 if test -z "$ac_cv_prog_LIPO"; then
7765   ac_ct_LIPO=$LIPO
7766   # Extract the first word of "lipo", so it can be a program name with args.
7767 set dummy lipo; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   if test -n "$ac_ct_LIPO"; then
7774   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7778 do
7779   IFS=$as_save_IFS
7780   test -z "$as_dir" && as_dir=.
7781     for ac_exec_ext in '' $ac_executable_extensions; do
7782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783     ac_cv_prog_ac_ct_LIPO="lipo"
7784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785     break 2
7786   fi
7787 done
7788   done
7789 IFS=$as_save_IFS
7790
7791 fi
7792 fi
7793 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7794 if test -n "$ac_ct_LIPO"; then
7795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7796 $as_echo "$ac_ct_LIPO" >&6; }
7797 else
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7800 fi
7801
7802   if test "x$ac_ct_LIPO" = x; then
7803     LIPO=":"
7804   else
7805     case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811     LIPO=$ac_ct_LIPO
7812   fi
7813 else
7814   LIPO="$ac_cv_prog_LIPO"
7815 fi
7816
7817     if test -n "$ac_tool_prefix"; then
7818   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7819 set dummy ${ac_tool_prefix}otool; ac_word=$2
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7821 $as_echo_n "checking for $ac_word... " >&6; }
7822 if ${ac_cv_prog_OTOOL+:} false; then :
7823   $as_echo_n "(cached) " >&6
7824 else
7825   if test -n "$OTOOL"; then
7826   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7827 else
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7829 for as_dir in $PATH
7830 do
7831   IFS=$as_save_IFS
7832   test -z "$as_dir" && as_dir=.
7833     for ac_exec_ext in '' $ac_executable_extensions; do
7834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7835     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837     break 2
7838   fi
7839 done
7840   done
7841 IFS=$as_save_IFS
7842
7843 fi
7844 fi
7845 OTOOL=$ac_cv_prog_OTOOL
7846 if test -n "$OTOOL"; then
7847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7848 $as_echo "$OTOOL" >&6; }
7849 else
7850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 fi
7853
7854
7855 fi
7856 if test -z "$ac_cv_prog_OTOOL"; then
7857   ac_ct_OTOOL=$OTOOL
7858   # Extract the first word of "otool", so it can be a program name with args.
7859 set dummy otool; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7863   $as_echo_n "(cached) " >&6
7864 else
7865   if test -n "$ac_ct_OTOOL"; then
7866   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7870 do
7871   IFS=$as_save_IFS
7872   test -z "$as_dir" && as_dir=.
7873     for ac_exec_ext in '' $ac_executable_extensions; do
7874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875     ac_cv_prog_ac_ct_OTOOL="otool"
7876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877     break 2
7878   fi
7879 done
7880   done
7881 IFS=$as_save_IFS
7882
7883 fi
7884 fi
7885 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7886 if test -n "$ac_ct_OTOOL"; then
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7888 $as_echo "$ac_ct_OTOOL" >&6; }
7889 else
7890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7892 fi
7893
7894   if test "x$ac_ct_OTOOL" = x; then
7895     OTOOL=":"
7896   else
7897     case $cross_compiling:$ac_tool_warned in
7898 yes:)
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7901 ac_tool_warned=yes ;;
7902 esac
7903     OTOOL=$ac_ct_OTOOL
7904   fi
7905 else
7906   OTOOL="$ac_cv_prog_OTOOL"
7907 fi
7908
7909     if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_prog_OTOOL64+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   if test -n "$OTOOL64"; then
7918   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925     for ac_exec_ext in '' $ac_executable_extensions; do
7926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7927     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932   done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 OTOOL64=$ac_cv_prog_OTOOL64
7938 if test -n "$OTOOL64"; then
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7940 $as_echo "$OTOOL64" >&6; }
7941 else
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_OTOOL64"; then
7949   ac_ct_OTOOL64=$OTOOL64
7950   # Extract the first word of "otool64", so it can be a program name with args.
7951 set dummy otool64; ac_word=$2
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953 $as_echo_n "checking for $ac_word... " >&6; }
7954 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7955   $as_echo_n "(cached) " >&6
7956 else
7957   if test -n "$ac_ct_OTOOL64"; then
7958   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965     for ac_exec_ext in '' $ac_executable_extensions; do
7966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7967     ac_cv_prog_ac_ct_OTOOL64="otool64"
7968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972   done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7978 if test -n "$ac_ct_OTOOL64"; then
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7980 $as_echo "$ac_ct_OTOOL64" >&6; }
7981 else
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983 $as_echo "no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_OTOOL64" = x; then
7987     OTOOL64=":"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7993 ac_tool_warned=yes ;;
7994 esac
7995     OTOOL64=$ac_ct_OTOOL64
7996   fi
7997 else
7998   OTOOL64="$ac_cv_prog_OTOOL64"
7999 fi
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8028 $as_echo_n "checking for -single_module linker flag... " >&6; }
8029 if ${lt_cv_apple_cc_single_mod+:} false; then :
8030   $as_echo_n "(cached) " >&6
8031 else
8032   lt_cv_apple_cc_single_mod=no
8033       if test -z "${LT_MULTI_MODULE}"; then
8034         # By default we will add the -single_module flag. You can override
8035         # by either setting the environment variable LT_MULTI_MODULE
8036         # non-empty at configure time, or by adding -multi_module to the
8037         # link flags.
8038         rm -rf libconftest.dylib*
8039         echo "int foo(void){return 1;}" > conftest.c
8040         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8041 -dynamiclib -Wl,-single_module conftest.c" >&5
8042         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8043           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8044         _lt_result=$?
8045         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8046           lt_cv_apple_cc_single_mod=yes
8047         else
8048           cat conftest.err >&5
8049         fi
8050         rm -rf libconftest.dylib*
8051         rm -f conftest.*
8052       fi
8053 fi
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8055 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8057 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8058 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   lt_cv_ld_exported_symbols_list=no
8062       save_LDFLAGS=$LDFLAGS
8063       echo "_main" > conftest.sym
8064       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h.  */
8067
8068 int
8069 main ()
8070 {
8071
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077   lt_cv_ld_exported_symbols_list=yes
8078 else
8079   lt_cv_ld_exported_symbols_list=no
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext \
8082     conftest$ac_exeext conftest.$ac_ext
8083         LDFLAGS="$save_LDFLAGS"
8084
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8087 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8089 $as_echo_n "checking for -force_load linker flag... " >&6; }
8090 if ${lt_cv_ld_force_load+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   lt_cv_ld_force_load=no
8094       cat > conftest.c << _LT_EOF
8095 int forced_loaded() { return 2;}
8096 _LT_EOF
8097       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8098       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8099       echo "$AR cru libconftest.a conftest.o" >&5
8100       $AR cru libconftest.a conftest.o 2>&5
8101       cat > conftest.c << _LT_EOF
8102 int main() { return 0;}
8103 _LT_EOF
8104       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8105       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8106       _lt_result=$?
8107       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8108         lt_cv_ld_force_load=yes
8109       else
8110         cat conftest.err >&5
8111       fi
8112         rm -f conftest.err libconftest.a conftest conftest.c
8113         rm -rf conftest.dSYM
8114
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8117 $as_echo "$lt_cv_ld_force_load" >&6; }
8118     case $host_os in
8119     rhapsody* | darwin1.[012])
8120       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8121     darwin1.*)
8122       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8123     darwin*) # darwin 5.x on
8124       # if running on 10.5 or later, the deployment target defaults
8125       # to the OS version, if on x86, and 10.4, the deployment
8126       # target defaults to 10.4. Don't you love it?
8127       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8128         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8129           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8130         10.[012][,.]*)
8131           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8132         10.*)
8133           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8134       esac
8135     ;;
8136   esac
8137     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8138       _lt_dar_single_mod='$single_module'
8139     fi
8140     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8141       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8142     else
8143       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8144     fi
8145     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8146       _lt_dsymutil='~$DSYMUTIL $lib || :'
8147     else
8148       _lt_dsymutil=
8149     fi
8150     ;;
8151   esac
8152
8153 for ac_header in dlfcn.h
8154 do :
8155   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8156 "
8157 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8158   cat >>confdefs.h <<_ACEOF
8159 #define HAVE_DLFCN_H 1
8160 _ACEOF
8161
8162 fi
8163
8164 done
8165
8166
8167
8168
8169
8170 # Set options
8171 enable_dlopen=yes
8172
8173
8174
8175
8176   enable_win32_dll=no
8177
8178
8179             # Check whether --enable-shared was given.
8180 if test "${enable_shared+set}" = set; then :
8181   enableval=$enable_shared; p=${PACKAGE-default}
8182     case $enableval in
8183     yes) enable_shared=yes ;;
8184     no) enable_shared=no ;;
8185     *)
8186       enable_shared=no
8187       # Look at the argument we got.  We use all the common list separators.
8188       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8189       for pkg in $enableval; do
8190         IFS="$lt_save_ifs"
8191         if test "X$pkg" = "X$p"; then
8192           enable_shared=yes
8193         fi
8194       done
8195       IFS="$lt_save_ifs"
8196       ;;
8197     esac
8198 else
8199   enable_shared=yes
8200 fi
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210   # Check whether --enable-static was given.
8211 if test "${enable_static+set}" = set; then :
8212   enableval=$enable_static; p=${PACKAGE-default}
8213     case $enableval in
8214     yes) enable_static=yes ;;
8215     no) enable_static=no ;;
8216     *)
8217      enable_static=no
8218       # Look at the argument we got.  We use all the common list separators.
8219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8220       for pkg in $enableval; do
8221         IFS="$lt_save_ifs"
8222         if test "X$pkg" = "X$p"; then
8223           enable_static=yes
8224         fi
8225       done
8226       IFS="$lt_save_ifs"
8227       ;;
8228     esac
8229 else
8230   enable_static=yes
8231 fi
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 # Check whether --with-pic was given.
8243 if test "${with_pic+set}" = set; then :
8244   withval=$with_pic; pic_mode="$withval"
8245 else
8246   pic_mode=default
8247 fi
8248
8249
8250 test -z "$pic_mode" && pic_mode=default
8251
8252
8253
8254
8255
8256
8257
8258   # Check whether --enable-fast-install was given.
8259 if test "${enable_fast_install+set}" = set; then :
8260   enableval=$enable_fast_install; p=${PACKAGE-default}
8261     case $enableval in
8262     yes) enable_fast_install=yes ;;
8263     no) enable_fast_install=no ;;
8264     *)
8265       enable_fast_install=no
8266       # Look at the argument we got.  We use all the common list separators.
8267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8268       for pkg in $enableval; do
8269         IFS="$lt_save_ifs"
8270         if test "X$pkg" = "X$p"; then
8271           enable_fast_install=yes
8272         fi
8273       done
8274       IFS="$lt_save_ifs"
8275       ;;
8276     esac
8277 else
8278   enable_fast_install=yes
8279 fi
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291 # This can be used to rebuild libtool when needed
8292 LIBTOOL_DEPS="$ltmain"
8293
8294 # Always use our own libtool.
8295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322 test -z "$LN_S" && LN_S="ln -s"
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337 if test -n "${ZSH_VERSION+set}" ; then
8338    setopt NO_GLOB_SUBST
8339 fi
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8342 $as_echo_n "checking for objdir... " >&6; }
8343 if ${lt_cv_objdir+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   rm -f .libs 2>/dev/null
8347 mkdir .libs 2>/dev/null
8348 if test -d .libs; then
8349   lt_cv_objdir=.libs
8350 else
8351   # MS-DOS does not allow filenames that begin with a dot.
8352   lt_cv_objdir=_libs
8353 fi
8354 rmdir .libs 2>/dev/null
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8357 $as_echo "$lt_cv_objdir" >&6; }
8358 objdir=$lt_cv_objdir
8359
8360
8361
8362
8363
8364 cat >>confdefs.h <<_ACEOF
8365 #define LT_OBJDIR "$lt_cv_objdir/"
8366 _ACEOF
8367
8368
8369
8370
8371 case $host_os in
8372 aix3*)
8373   # AIX sometimes has problems with the GCC collect2 program.  For some
8374   # reason, if we set the COLLECT_NAMES environment variable, the problems
8375   # vanish in a puff of smoke.
8376   if test "X${COLLECT_NAMES+set}" != Xset; then
8377     COLLECT_NAMES=
8378     export COLLECT_NAMES
8379   fi
8380   ;;
8381 esac
8382
8383 # Global variables:
8384 ofile=libtool
8385 can_build_shared=yes
8386
8387 # All known linkers require a `.a' archive for static linking (except MSVC,
8388 # which needs '.lib').
8389 libext=a
8390
8391 with_gnu_ld="$lt_cv_prog_gnu_ld"
8392
8393 old_CC="$CC"
8394 old_CFLAGS="$CFLAGS"
8395
8396 # Set sane defaults for various variables
8397 test -z "$CC" && CC=cc
8398 test -z "$LTCC" && LTCC=$CC
8399 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8400 test -z "$LD" && LD=ld
8401 test -z "$ac_objext" && ac_objext=o
8402
8403 for cc_temp in $compiler""; do
8404   case $cc_temp in
8405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8407     \-*) ;;
8408     *) break;;
8409   esac
8410 done
8411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8412
8413
8414 # Only perform the check for file, if the check method requires it
8415 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8416 case $deplibs_check_method in
8417 file_magic*)
8418   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8420 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8421 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   case $MAGIC_CMD in
8425 [\\/*] |  ?:[\\/]*)
8426   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8427   ;;
8428 *)
8429   lt_save_MAGIC_CMD="$MAGIC_CMD"
8430   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8431   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8432   for ac_dir in $ac_dummy; do
8433     IFS="$lt_save_ifs"
8434     test -z "$ac_dir" && ac_dir=.
8435     if test -f $ac_dir/${ac_tool_prefix}file; then
8436       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8437       if test -n "$file_magic_test_file"; then
8438         case $deplibs_check_method in
8439         "file_magic "*)
8440           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8443             $EGREP "$file_magic_regex" > /dev/null; then
8444             :
8445           else
8446             cat <<_LT_EOF 1>&2
8447
8448 *** Warning: the command libtool uses to detect shared libraries,
8449 *** $file_magic_cmd, produces output that libtool cannot recognize.
8450 *** The result is that libtool may fail to recognize shared libraries
8451 *** as such.  This will affect the creation of libtool libraries that
8452 *** depend on shared libraries, but programs linked with such libtool
8453 *** libraries will work regardless of this problem.  Nevertheless, you
8454 *** may want to report the problem to your system manager and/or to
8455 *** bug-libtool@gnu.org
8456
8457 _LT_EOF
8458           fi ;;
8459         esac
8460       fi
8461       break
8462     fi
8463   done
8464   IFS="$lt_save_ifs"
8465   MAGIC_CMD="$lt_save_MAGIC_CMD"
8466   ;;
8467 esac
8468 fi
8469
8470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471 if test -n "$MAGIC_CMD"; then
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473 $as_echo "$MAGIC_CMD" >&6; }
8474 else
8475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8477 fi
8478
8479
8480
8481
8482
8483 if test -z "$lt_cv_path_MAGIC_CMD"; then
8484   if test -n "$ac_tool_prefix"; then
8485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8486 $as_echo_n "checking for file... " >&6; }
8487 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   case $MAGIC_CMD in
8491 [\\/*] |  ?:[\\/]*)
8492   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8493   ;;
8494 *)
8495   lt_save_MAGIC_CMD="$MAGIC_CMD"
8496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8497   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8498   for ac_dir in $ac_dummy; do
8499     IFS="$lt_save_ifs"
8500     test -z "$ac_dir" && ac_dir=.
8501     if test -f $ac_dir/file; then
8502       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8503       if test -n "$file_magic_test_file"; then
8504         case $deplibs_check_method in
8505         "file_magic "*)
8506           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8507           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8508           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8509             $EGREP "$file_magic_regex" > /dev/null; then
8510             :
8511           else
8512             cat <<_LT_EOF 1>&2
8513
8514 *** Warning: the command libtool uses to detect shared libraries,
8515 *** $file_magic_cmd, produces output that libtool cannot recognize.
8516 *** The result is that libtool may fail to recognize shared libraries
8517 *** as such.  This will affect the creation of libtool libraries that
8518 *** depend on shared libraries, but programs linked with such libtool
8519 *** libraries will work regardless of this problem.  Nevertheless, you
8520 *** may want to report the problem to your system manager and/or to
8521 *** bug-libtool@gnu.org
8522
8523 _LT_EOF
8524           fi ;;
8525         esac
8526       fi
8527       break
8528     fi
8529   done
8530   IFS="$lt_save_ifs"
8531   MAGIC_CMD="$lt_save_MAGIC_CMD"
8532   ;;
8533 esac
8534 fi
8535
8536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537 if test -n "$MAGIC_CMD"; then
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8539 $as_echo "$MAGIC_CMD" >&6; }
8540 else
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545
8546   else
8547     MAGIC_CMD=:
8548   fi
8549 fi
8550
8551   fi
8552   ;;
8553 esac
8554
8555 # Use C for the default configuration in the libtool script
8556
8557 lt_save_CC="$CC"
8558 ac_ext=c
8559 ac_cpp='$CPP $CPPFLAGS'
8560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8563
8564
8565 # Source file extension for C test sources.
8566 ac_ext=c
8567
8568 # Object file extension for compiled C test sources.
8569 objext=o
8570 objext=$objext
8571
8572 # Code to be used in simple compile tests
8573 lt_simple_compile_test_code="int some_variable = 0;"
8574
8575 # Code to be used in simple link tests
8576 lt_simple_link_test_code='int main(){return(0);}'
8577
8578
8579
8580
8581
8582
8583
8584 # If no C compiler was specified, use CC.
8585 LTCC=${LTCC-"$CC"}
8586
8587 # If no C compiler flags were specified, use CFLAGS.
8588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8589
8590 # Allow CC to be a program name with arguments.
8591 compiler=$CC
8592
8593 # Save the default compiler, since it gets overwritten when the other
8594 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8595 compiler_DEFAULT=$CC
8596
8597 # save warnings/boilerplate of simple test code
8598 ac_outfile=conftest.$ac_objext
8599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8601 _lt_compiler_boilerplate=`cat conftest.err`
8602 $RM conftest*
8603
8604 ac_outfile=conftest.$ac_objext
8605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8607 _lt_linker_boilerplate=`cat conftest.err`
8608 $RM -r conftest*
8609
8610
8611 ## CAVEAT EMPTOR:
8612 ## There is no encapsulation within the following macros, do not change
8613 ## the running order or otherwise move them around unless you know exactly
8614 ## what you are doing...
8615 if test -n "$compiler"; then
8616
8617 lt_prog_compiler_no_builtin_flag=
8618
8619 if test "$GCC" = yes; then
8620   case $cc_basename in
8621   nvcc*)
8622     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8623   *)
8624     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8625   esac
8626
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8628 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8629 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8630   $as_echo_n "(cached) " >&6
8631 else
8632   lt_cv_prog_compiler_rtti_exceptions=no
8633    ac_outfile=conftest.$ac_objext
8634    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8635    lt_compiler_flag="-fno-rtti -fno-exceptions"
8636    # Insert the option either (1) after the last *FLAGS variable, or
8637    # (2) before a word containing "conftest.", or (3) at the end.
8638    # Note that $ac_compile itself does not contain backslashes and begins
8639    # with a dollar sign (not a hyphen), so the echo should work correctly.
8640    # The option is referenced via a variable to avoid confusing sed.
8641    lt_compile=`echo "$ac_compile" | $SED \
8642    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8643    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8644    -e 's:$: $lt_compiler_flag:'`
8645    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8646    (eval "$lt_compile" 2>conftest.err)
8647    ac_status=$?
8648    cat conftest.err >&5
8649    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650    if (exit $ac_status) && test -s "$ac_outfile"; then
8651      # The compiler can only warn and ignore the option if not recognized
8652      # So say no if there are warnings other than the usual output.
8653      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8654      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8655      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8656        lt_cv_prog_compiler_rtti_exceptions=yes
8657      fi
8658    fi
8659    $RM conftest*
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8663 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8664
8665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8666     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8667 else
8668     :
8669 fi
8670
8671 fi
8672
8673
8674
8675
8676
8677
8678   lt_prog_compiler_wl=
8679 lt_prog_compiler_pic=
8680 lt_prog_compiler_static=
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8683 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8684
8685   if test "$GCC" = yes; then
8686     lt_prog_compiler_wl='-Wl,'
8687     lt_prog_compiler_static='-static'
8688
8689     case $host_os in
8690       aix*)
8691       # All AIX code is PIC.
8692       if test "$host_cpu" = ia64; then
8693         # AIX 5 now supports IA64 processor
8694         lt_prog_compiler_static='-Bstatic'
8695       fi
8696       lt_prog_compiler_pic='-fPIC'
8697       ;;
8698
8699     amigaos*)
8700       case $host_cpu in
8701       powerpc)
8702             # see comment about AmigaOS4 .so support
8703             lt_prog_compiler_pic='-fPIC'
8704         ;;
8705       m68k)
8706             # FIXME: we need at least 68020 code to build shared libraries, but
8707             # adding the `-m68020' flag to GCC prevents building anything better,
8708             # like `-m68040'.
8709             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8710         ;;
8711       esac
8712       ;;
8713
8714     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8715       # PIC is the default for these OSes.
8716       ;;
8717
8718     mingw* | cygwin* | pw32* | os2* | cegcc*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8722       # (--disable-auto-import) libraries
8723       lt_prog_compiler_pic='-DDLL_EXPORT'
8724       ;;
8725
8726     darwin* | rhapsody*)
8727       # PIC is the default on this platform
8728       # Common symbols not allowed in MH_DYLIB files
8729       lt_prog_compiler_pic='-fno-common'
8730       ;;
8731
8732     haiku*)
8733       # PIC is the default for Haiku.
8734       # The "-static" flag exists, but is broken.
8735       lt_prog_compiler_static=
8736       ;;
8737
8738     hpux*)
8739       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8740       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8741       # sets the default TLS model and affects inlining.
8742       case $host_cpu in
8743       hppa*64*)
8744         # +Z the default
8745         ;;
8746       *)
8747         lt_prog_compiler_pic='-fPIC'
8748         ;;
8749       esac
8750       ;;
8751
8752     interix[3-9]*)
8753       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8754       # Instead, we relocate shared libraries at runtime.
8755       ;;
8756
8757     msdosdjgpp*)
8758       # Just because we use GCC doesn't mean we suddenly get shared libraries
8759       # on systems that don't support them.
8760       lt_prog_compiler_can_build_shared=no
8761       enable_shared=no
8762       ;;
8763
8764     *nto* | *qnx*)
8765       # QNX uses GNU C++, but need to define -shared option too, otherwise
8766       # it will coredump.
8767       lt_prog_compiler_pic='-fPIC -shared'
8768       ;;
8769
8770     sysv4*MP*)
8771       if test -d /usr/nec; then
8772         lt_prog_compiler_pic=-Kconform_pic
8773       fi
8774       ;;
8775
8776     *)
8777       lt_prog_compiler_pic='-fPIC'
8778       ;;
8779     esac
8780
8781     case $cc_basename in
8782     nvcc*) # Cuda Compiler Driver 2.2
8783       lt_prog_compiler_wl='-Xlinker '
8784       lt_prog_compiler_pic='-Xcompiler -fPIC'
8785       ;;
8786     esac
8787   else
8788     # PORTME Check for flag to pass linker flags through the system compiler.
8789     case $host_os in
8790     aix*)
8791       lt_prog_compiler_wl='-Wl,'
8792       if test "$host_cpu" = ia64; then
8793         # AIX 5 now supports IA64 processor
8794         lt_prog_compiler_static='-Bstatic'
8795       else
8796         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8797       fi
8798       ;;
8799
8800     mingw* | cygwin* | pw32* | os2* | cegcc*)
8801       # This hack is so that the source file can tell whether it is being
8802       # built for inclusion in a dll (and should export symbols for example).
8803       lt_prog_compiler_pic='-DDLL_EXPORT'
8804       ;;
8805
8806     hpux9* | hpux10* | hpux11*)
8807       lt_prog_compiler_wl='-Wl,'
8808       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8809       # not for PA HP-UX.
8810       case $host_cpu in
8811       hppa*64*|ia64*)
8812         # +Z the default
8813         ;;
8814       *)
8815         lt_prog_compiler_pic='+Z'
8816         ;;
8817       esac
8818       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8819       lt_prog_compiler_static='${wl}-a ${wl}archive'
8820       ;;
8821
8822     irix5* | irix6* | nonstopux*)
8823       lt_prog_compiler_wl='-Wl,'
8824       # PIC (with -KPIC) is the default.
8825       lt_prog_compiler_static='-non_shared'
8826       ;;
8827
8828     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8829       case $cc_basename in
8830       # old Intel for x86_64 which still supported -KPIC.
8831       ecc*)
8832         lt_prog_compiler_wl='-Wl,'
8833         lt_prog_compiler_pic='-KPIC'
8834         lt_prog_compiler_static='-static'
8835         ;;
8836       # icc used to be incompatible with GCC.
8837       # ICC 10 doesn't accept -KPIC any more.
8838       icc* | ifort*)
8839         lt_prog_compiler_wl='-Wl,'
8840         lt_prog_compiler_pic='-fPIC'
8841         lt_prog_compiler_static='-static'
8842         ;;
8843       # Lahey Fortran 8.1.
8844       lf95*)
8845         lt_prog_compiler_wl='-Wl,'
8846         lt_prog_compiler_pic='--shared'
8847         lt_prog_compiler_static='--static'
8848         ;;
8849       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8850         # Portland Group compilers (*not* the Pentium gcc compiler,
8851         # which looks to be a dead project)
8852         lt_prog_compiler_wl='-Wl,'
8853         lt_prog_compiler_pic='-fpic'
8854         lt_prog_compiler_static='-Bstatic'
8855         ;;
8856       ccc*)
8857         lt_prog_compiler_wl='-Wl,'
8858         # All Alpha code is PIC.
8859         lt_prog_compiler_static='-non_shared'
8860         ;;
8861       xl* | bgxl* | bgf* | mpixl*)
8862         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8863         lt_prog_compiler_wl='-Wl,'
8864         lt_prog_compiler_pic='-qpic'
8865         lt_prog_compiler_static='-qstaticlink'
8866         ;;
8867       *)
8868         case `$CC -V 2>&1 | sed 5q` in
8869         *Sun\ F* | *Sun*Fortran*)
8870           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8871           lt_prog_compiler_pic='-KPIC'
8872           lt_prog_compiler_static='-Bstatic'
8873           lt_prog_compiler_wl=''
8874           ;;
8875         *Sun\ C*)
8876           # Sun C 5.9
8877           lt_prog_compiler_pic='-KPIC'
8878           lt_prog_compiler_static='-Bstatic'
8879           lt_prog_compiler_wl='-Wl,'
8880           ;;
8881         esac
8882         ;;
8883       esac
8884       ;;
8885
8886     newsos6)
8887       lt_prog_compiler_pic='-KPIC'
8888       lt_prog_compiler_static='-Bstatic'
8889       ;;
8890
8891     *nto* | *qnx*)
8892       # QNX uses GNU C++, but need to define -shared option too, otherwise
8893       # it will coredump.
8894       lt_prog_compiler_pic='-fPIC -shared'
8895       ;;
8896
8897     osf3* | osf4* | osf5*)
8898       lt_prog_compiler_wl='-Wl,'
8899       # All OSF/1 code is PIC.
8900       lt_prog_compiler_static='-non_shared'
8901       ;;
8902
8903     rdos*)
8904       lt_prog_compiler_static='-non_shared'
8905       ;;
8906
8907     solaris*)
8908       lt_prog_compiler_pic='-KPIC'
8909       lt_prog_compiler_static='-Bstatic'
8910       case $cc_basename in
8911       f77* | f90* | f95*)
8912         lt_prog_compiler_wl='-Qoption ld ';;
8913       *)
8914         lt_prog_compiler_wl='-Wl,';;
8915       esac
8916       ;;
8917
8918     sunos4*)
8919       lt_prog_compiler_wl='-Qoption ld '
8920       lt_prog_compiler_pic='-PIC'
8921       lt_prog_compiler_static='-Bstatic'
8922       ;;
8923
8924     sysv4 | sysv4.2uw2* | sysv4.3*)
8925       lt_prog_compiler_wl='-Wl,'
8926       lt_prog_compiler_pic='-KPIC'
8927       lt_prog_compiler_static='-Bstatic'
8928       ;;
8929
8930     sysv4*MP*)
8931       if test -d /usr/nec ;then
8932         lt_prog_compiler_pic='-Kconform_pic'
8933         lt_prog_compiler_static='-Bstatic'
8934       fi
8935       ;;
8936
8937     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8938       lt_prog_compiler_wl='-Wl,'
8939       lt_prog_compiler_pic='-KPIC'
8940       lt_prog_compiler_static='-Bstatic'
8941       ;;
8942
8943     unicos*)
8944       lt_prog_compiler_wl='-Wl,'
8945       lt_prog_compiler_can_build_shared=no
8946       ;;
8947
8948     uts4*)
8949       lt_prog_compiler_pic='-pic'
8950       lt_prog_compiler_static='-Bstatic'
8951       ;;
8952
8953     *)
8954       lt_prog_compiler_can_build_shared=no
8955       ;;
8956     esac
8957   fi
8958
8959 case $host_os in
8960   # For platforms which do not support PIC, -DPIC is meaningless:
8961   *djgpp*)
8962     lt_prog_compiler_pic=
8963     ;;
8964   *)
8965     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8966     ;;
8967 esac
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8969 $as_echo "$lt_prog_compiler_pic" >&6; }
8970
8971
8972
8973
8974
8975
8976 #
8977 # Check to make sure the PIC flag actually works.
8978 #
8979 if test -n "$lt_prog_compiler_pic"; then
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8981 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8982 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_pic_works=no
8986    ac_outfile=conftest.$ac_objext
8987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8989    # Insert the option either (1) after the last *FLAGS variable, or
8990    # (2) before a word containing "conftest.", or (3) at the end.
8991    # Note that $ac_compile itself does not contain backslashes and begins
8992    # with a dollar sign (not a hyphen), so the echo should work correctly.
8993    # The option is referenced via a variable to avoid confusing sed.
8994    lt_compile=`echo "$ac_compile" | $SED \
8995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997    -e 's:$: $lt_compiler_flag:'`
8998    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999    (eval "$lt_compile" 2>conftest.err)
9000    ac_status=$?
9001    cat conftest.err >&5
9002    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003    if (exit $ac_status) && test -s "$ac_outfile"; then
9004      # The compiler can only warn and ignore the option if not recognized
9005      # So say no if there are warnings other than the usual output.
9006      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9007      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9008      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9009        lt_cv_prog_compiler_pic_works=yes
9010      fi
9011    fi
9012    $RM conftest*
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9017
9018 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9019     case $lt_prog_compiler_pic in
9020      "" | " "*) ;;
9021      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9022      esac
9023 else
9024     lt_prog_compiler_pic=
9025      lt_prog_compiler_can_build_shared=no
9026 fi
9027
9028 fi
9029
9030
9031
9032
9033
9034
9035 #
9036 # Check to make sure the static flag actually works.
9037 #
9038 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9040 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9041 if ${lt_cv_prog_compiler_static_works+:} false; then :
9042   $as_echo_n "(cached) " >&6
9043 else
9044   lt_cv_prog_compiler_static_works=no
9045    save_LDFLAGS="$LDFLAGS"
9046    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9047    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9048    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9049      # The linker can only warn and ignore the option if not recognized
9050      # So say no if there are warnings
9051      if test -s conftest.err; then
9052        # Append any errors to the config.log.
9053        cat conftest.err 1>&5
9054        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9055        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9056        if diff conftest.exp conftest.er2 >/dev/null; then
9057          lt_cv_prog_compiler_static_works=yes
9058        fi
9059      else
9060        lt_cv_prog_compiler_static_works=yes
9061      fi
9062    fi
9063    $RM -r conftest*
9064    LDFLAGS="$save_LDFLAGS"
9065
9066 fi
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9068 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9069
9070 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9071     :
9072 else
9073     lt_prog_compiler_static=
9074 fi
9075
9076
9077
9078
9079
9080
9081
9082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9083 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9084 if ${lt_cv_prog_compiler_c_o+:} false; then :
9085   $as_echo_n "(cached) " >&6
9086 else
9087   lt_cv_prog_compiler_c_o=no
9088    $RM -r conftest 2>/dev/null
9089    mkdir conftest
9090    cd conftest
9091    mkdir out
9092    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9093
9094    lt_compiler_flag="-o out/conftest2.$ac_objext"
9095    # Insert the option either (1) after the last *FLAGS variable, or
9096    # (2) before a word containing "conftest.", or (3) at the end.
9097    # Note that $ac_compile itself does not contain backslashes and begins
9098    # with a dollar sign (not a hyphen), so the echo should work correctly.
9099    lt_compile=`echo "$ac_compile" | $SED \
9100    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9101    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9102    -e 's:$: $lt_compiler_flag:'`
9103    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9104    (eval "$lt_compile" 2>out/conftest.err)
9105    ac_status=$?
9106    cat out/conftest.err >&5
9107    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9109    then
9110      # The compiler can only warn and ignore the option if not recognized
9111      # So say no if there are warnings
9112      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9113      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9114      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9115        lt_cv_prog_compiler_c_o=yes
9116      fi
9117    fi
9118    chmod u+w . 2>&5
9119    $RM conftest*
9120    # SGI C++ compiler will create directory out/ii_files/ for
9121    # template instantiation
9122    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9123    $RM out/* && rmdir out
9124    cd ..
9125    $RM -r conftest
9126    $RM conftest*
9127
9128 fi
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9130 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131
9132
9133
9134
9135
9136
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139 if ${lt_cv_prog_compiler_c_o+:} false; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   lt_cv_prog_compiler_c_o=no
9143    $RM -r conftest 2>/dev/null
9144    mkdir conftest
9145    cd conftest
9146    mkdir out
9147    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9148
9149    lt_compiler_flag="-o out/conftest2.$ac_objext"
9150    # Insert the option either (1) after the last *FLAGS variable, or
9151    # (2) before a word containing "conftest.", or (3) at the end.
9152    # Note that $ac_compile itself does not contain backslashes and begins
9153    # with a dollar sign (not a hyphen), so the echo should work correctly.
9154    lt_compile=`echo "$ac_compile" | $SED \
9155    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157    -e 's:$: $lt_compiler_flag:'`
9158    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9159    (eval "$lt_compile" 2>out/conftest.err)
9160    ac_status=$?
9161    cat out/conftest.err >&5
9162    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164    then
9165      # The compiler can only warn and ignore the option if not recognized
9166      # So say no if there are warnings
9167      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9168      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170        lt_cv_prog_compiler_c_o=yes
9171      fi
9172    fi
9173    chmod u+w . 2>&5
9174    $RM conftest*
9175    # SGI C++ compiler will create directory out/ii_files/ for
9176    # template instantiation
9177    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178    $RM out/* && rmdir out
9179    cd ..
9180    $RM -r conftest
9181    $RM conftest*
9182
9183 fi
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9186
9187
9188
9189
9190 hard_links="nottested"
9191 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9192   # do not overwrite the value of need_locks provided by the user
9193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9194 $as_echo_n "checking if we can lock with hard links... " >&6; }
9195   hard_links=yes
9196   $RM conftest*
9197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9198   touch conftest.a
9199   ln conftest.a conftest.b 2>&5 || hard_links=no
9200   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9202 $as_echo "$hard_links" >&6; }
9203   if test "$hard_links" = no; then
9204     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9205 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9206     need_locks=warn
9207   fi
9208 else
9209   need_locks=no
9210 fi
9211
9212
9213
9214
9215
9216
9217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9218 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9219
9220   runpath_var=
9221   allow_undefined_flag=
9222   always_export_symbols=no
9223   archive_cmds=
9224   archive_expsym_cmds=
9225   compiler_needs_object=no
9226   enable_shared_with_static_runtimes=no
9227   export_dynamic_flag_spec=
9228   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9229   hardcode_automatic=no
9230   hardcode_direct=no
9231   hardcode_direct_absolute=no
9232   hardcode_libdir_flag_spec=
9233   hardcode_libdir_flag_spec_ld=
9234   hardcode_libdir_separator=
9235   hardcode_minus_L=no
9236   hardcode_shlibpath_var=unsupported
9237   inherit_rpath=no
9238   link_all_deplibs=unknown
9239   module_cmds=
9240   module_expsym_cmds=
9241   old_archive_from_new_cmds=
9242   old_archive_from_expsyms_cmds=
9243   thread_safe_flag_spec=
9244   whole_archive_flag_spec=
9245   # include_expsyms should be a list of space-separated symbols to be *always*
9246   # included in the symbol list
9247   include_expsyms=
9248   # exclude_expsyms can be an extended regexp of symbols to exclude
9249   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9250   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9251   # as well as any symbol that contains `d'.
9252   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9253   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9254   # platforms (ab)use it in PIC code, but their linkers get confused if
9255   # the symbol is explicitly referenced.  Since portable code cannot
9256   # rely on this symbol name, it's probably fine to never include it in
9257   # preloaded symbol tables.
9258   # Exclude shared library initialization/finalization symbols.
9259   extract_expsyms_cmds=
9260
9261   case $host_os in
9262   cygwin* | mingw* | pw32* | cegcc*)
9263     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9264     # When not using gcc, we currently assume that we are using
9265     # Microsoft Visual C++.
9266     if test "$GCC" != yes; then
9267       with_gnu_ld=no
9268     fi
9269     ;;
9270   interix*)
9271     # we just hope/assume this is gcc and not c89 (= MSVC++)
9272     with_gnu_ld=yes
9273     ;;
9274   openbsd*)
9275     with_gnu_ld=no
9276     ;;
9277   esac
9278
9279   ld_shlibs=yes
9280
9281   # On some targets, GNU ld is compatible enough with the native linker
9282   # that we're better off using the native interface for both.
9283   lt_use_gnu_ld_interface=no
9284   if test "$with_gnu_ld" = yes; then
9285     case $host_os in
9286       aix*)
9287         # The AIX port of GNU ld has always aspired to compatibility
9288         # with the native linker.  However, as the warning in the GNU ld
9289         # block says, versions before 2.19.5* couldn't really create working
9290         # shared libraries, regardless of the interface used.
9291         case `$LD -v 2>&1` in
9292           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9293           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9294           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9295           *)
9296             lt_use_gnu_ld_interface=yes
9297             ;;
9298         esac
9299         ;;
9300       *)
9301         lt_use_gnu_ld_interface=yes
9302         ;;
9303     esac
9304   fi
9305
9306   if test "$lt_use_gnu_ld_interface" = yes; then
9307     # If archive_cmds runs LD, not CC, wlarc should be empty
9308     wlarc='${wl}'
9309
9310     # Set some defaults for GNU ld with shared library support. These
9311     # are reset later if shared libraries are not supported. Putting them
9312     # here allows them to be overridden if necessary.
9313     runpath_var=LD_RUN_PATH
9314     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315     export_dynamic_flag_spec='${wl}--export-dynamic'
9316     # ancient GNU ld didn't support --whole-archive et. al.
9317     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9318       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9319     else
9320       whole_archive_flag_spec=
9321     fi
9322     supports_anon_versioning=no
9323     case `$LD -v 2>&1` in
9324       *GNU\ gold*) supports_anon_versioning=yes ;;
9325       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9326       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9327       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9328       *\ 2.11.*) ;; # other 2.11 versions
9329       *) supports_anon_versioning=yes ;;
9330     esac
9331
9332     # See if GNU ld supports shared libraries.
9333     case $host_os in
9334     aix[3-9]*)
9335       # On AIX/PPC, the GNU linker is very broken
9336       if test "$host_cpu" != ia64; then
9337         ld_shlibs=no
9338         cat <<_LT_EOF 1>&2
9339
9340 *** Warning: the GNU linker, at least up to release 2.19, is reported
9341 *** to be unable to reliably create shared libraries on AIX.
9342 *** Therefore, libtool is disabling shared libraries support.  If you
9343 *** really care for shared libraries, you may want to install binutils
9344 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9345 *** You will then need to restart the configuration process.
9346
9347 _LT_EOF
9348       fi
9349       ;;
9350
9351     amigaos*)
9352       case $host_cpu in
9353       powerpc)
9354             # see comment about AmigaOS4 .so support
9355             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9356             archive_expsym_cmds=''
9357         ;;
9358       m68k)
9359             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)'
9360             hardcode_libdir_flag_spec='-L$libdir'
9361             hardcode_minus_L=yes
9362         ;;
9363       esac
9364       ;;
9365
9366     beos*)
9367       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368         allow_undefined_flag=unsupported
9369         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9370         # support --undefined.  This deserves some investigation.  FIXME
9371         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372       else
9373         ld_shlibs=no
9374       fi
9375       ;;
9376
9377     cygwin* | mingw* | pw32* | cegcc*)
9378       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9379       # as there is no search path for DLLs.
9380       hardcode_libdir_flag_spec='-L$libdir'
9381       export_dynamic_flag_spec='${wl}--export-all-symbols'
9382       allow_undefined_flag=unsupported
9383       always_export_symbols=no
9384       enable_shared_with_static_runtimes=yes
9385       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9386
9387       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9388         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389         # If the export-symbols file already is a .def file (1st line
9390         # is EXPORTS), use it as is; otherwise, prepend...
9391         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9392           cp $export_symbols $output_objdir/$soname.def;
9393         else
9394           echo EXPORTS > $output_objdir/$soname.def;
9395           cat $export_symbols >> $output_objdir/$soname.def;
9396         fi~
9397         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9398       else
9399         ld_shlibs=no
9400       fi
9401       ;;
9402
9403     haiku*)
9404       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9405       link_all_deplibs=yes
9406       ;;
9407
9408     interix[3-9]*)
9409       hardcode_direct=no
9410       hardcode_shlibpath_var=no
9411       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9412       export_dynamic_flag_spec='${wl}-E'
9413       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9414       # Instead, shared libraries are loaded at an image base (0x10000000 by
9415       # default) and relocated if they conflict, which is a slow very memory
9416       # consuming and fragmenting process.  To avoid this, we pick a random,
9417       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9418       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9419       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9420       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'
9421       ;;
9422
9423     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9424       tmp_diet=no
9425       if test "$host_os" = linux-dietlibc; then
9426         case $cc_basename in
9427           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9428         esac
9429       fi
9430       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9431          && test "$tmp_diet" = no
9432       then
9433         tmp_addflag=' $pic_flag'
9434         tmp_sharedflag='-shared'
9435         case $cc_basename,$host_cpu in
9436         pgcc*)                          # Portland Group C compiler
9437           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'
9438           tmp_addflag=' $pic_flag'
9439           ;;
9440         pgf77* | pgf90* | pgf95* | pgfortran*)
9441                                         # Portland Group f77 and f90 compilers
9442           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'
9443           tmp_addflag=' $pic_flag -Mnomain' ;;
9444         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9445           tmp_addflag=' -i_dynamic' ;;
9446         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9447           tmp_addflag=' -i_dynamic -nofor_main' ;;
9448         ifc* | ifort*)                  # Intel Fortran compiler
9449           tmp_addflag=' -nofor_main' ;;
9450         lf95*)                          # Lahey Fortran 8.1
9451           whole_archive_flag_spec=
9452           tmp_sharedflag='--shared' ;;
9453         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9454           tmp_sharedflag='-qmkshrobj'
9455           tmp_addflag= ;;
9456         nvcc*)  # Cuda Compiler Driver 2.2
9457           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'
9458           compiler_needs_object=yes
9459           ;;
9460         esac
9461         case `$CC -V 2>&1 | sed 5q` in
9462         *Sun\ C*)                       # Sun C 5.9
9463           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'
9464           compiler_needs_object=yes
9465           tmp_sharedflag='-G' ;;
9466         *Sun\ F*)                       # Sun Fortran 8.3
9467           tmp_sharedflag='-G' ;;
9468         esac
9469         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470
9471         if test "x$supports_anon_versioning" = xyes; then
9472           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9473             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9474             echo "local: *; };" >> $output_objdir/$libname.ver~
9475             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9476         fi
9477
9478         case $cc_basename in
9479         xlf* | bgf* | bgxlf* | mpixlf*)
9480           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9481           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9482           hardcode_libdir_flag_spec=
9483           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9484           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9485           if test "x$supports_anon_versioning" = xyes; then
9486             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9487               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9488               echo "local: *; };" >> $output_objdir/$libname.ver~
9489               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9490           fi
9491           ;;
9492         esac
9493       else
9494         ld_shlibs=no
9495       fi
9496       ;;
9497
9498     netbsd*)
9499       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9501         wlarc=
9502       else
9503         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9504         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9505       fi
9506       ;;
9507
9508     solaris*)
9509       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9510         ld_shlibs=no
9511         cat <<_LT_EOF 1>&2
9512
9513 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9514 *** create shared libraries on Solaris systems.  Therefore, libtool
9515 *** is disabling shared libraries support.  We urge you to upgrade GNU
9516 *** binutils to release 2.9.1 or newer.  Another option is to modify
9517 *** your PATH or compiler configuration so that the native linker is
9518 *** used, and then restart.
9519
9520 _LT_EOF
9521       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9522         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9524       else
9525         ld_shlibs=no
9526       fi
9527       ;;
9528
9529     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9530       case `$LD -v 2>&1` in
9531         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9532         ld_shlibs=no
9533         cat <<_LT_EOF 1>&2
9534
9535 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9536 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9537 *** is disabling shared libraries support.  We urge you to upgrade GNU
9538 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9539 *** your PATH or compiler configuration so that the native linker is
9540 *** used, and then restart.
9541
9542 _LT_EOF
9543         ;;
9544         *)
9545           # For security reasons, it is highly recommended that you always
9546           # use absolute paths for naming shared libraries, and exclude the
9547           # DT_RUNPATH tag from executables and libraries.  But doing so
9548           # requires that you compile everything twice, which is a pain.
9549           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9550             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9553           else
9554             ld_shlibs=no
9555           fi
9556         ;;
9557       esac
9558       ;;
9559
9560     sunos4*)
9561       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562       wlarc=
9563       hardcode_direct=yes
9564       hardcode_shlibpath_var=no
9565       ;;
9566
9567     *)
9568       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9569         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9570         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9571       else
9572         ld_shlibs=no
9573       fi
9574       ;;
9575     esac
9576
9577     if test "$ld_shlibs" = no; then
9578       runpath_var=
9579       hardcode_libdir_flag_spec=
9580       export_dynamic_flag_spec=
9581       whole_archive_flag_spec=
9582     fi
9583   else
9584     # PORTME fill in a description of your system's linker (not GNU ld)
9585     case $host_os in
9586     aix3*)
9587       allow_undefined_flag=unsupported
9588       always_export_symbols=yes
9589       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'
9590       # Note: this linker hardcodes the directories in LIBPATH if there
9591       # are no directories specified by -L.
9592       hardcode_minus_L=yes
9593       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9594         # Neither direct hardcoding nor static linking is supported with a
9595         # broken collect2.
9596         hardcode_direct=unsupported
9597       fi
9598       ;;
9599
9600     aix[4-9]*)
9601       if test "$host_cpu" = ia64; then
9602         # On IA64, the linker does run time linking by default, so we don't
9603         # have to do anything special.
9604         aix_use_runtimelinking=no
9605         exp_sym_flag='-Bexport'
9606         no_entry_flag=""
9607       else
9608         # If we're using GNU nm, then we don't want the "-C" option.
9609         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9610         # Also, AIX nm treats weak defined symbols like other global
9611         # defined symbols, whereas GNU nm marks them as "W".
9612         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9613           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'
9614         else
9615           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'
9616         fi
9617         aix_use_runtimelinking=no
9618
9619         # Test if we are trying to use run time linking or normal
9620         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9621         # need to do runtime linking.
9622         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9623           for ld_flag in $LDFLAGS; do
9624           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9625             aix_use_runtimelinking=yes
9626             break
9627           fi
9628           done
9629           ;;
9630         esac
9631
9632         exp_sym_flag='-bexport'
9633         no_entry_flag='-bnoentry'
9634       fi
9635
9636       # When large executables or shared objects are built, AIX ld can
9637       # have problems creating the table of contents.  If linking a library
9638       # or program results in "error TOC overflow" add -mminimal-toc to
9639       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9640       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9641
9642       archive_cmds=''
9643       hardcode_direct=yes
9644       hardcode_direct_absolute=yes
9645       hardcode_libdir_separator=':'
9646       link_all_deplibs=yes
9647       file_list_spec='${wl}-f,'
9648
9649       if test "$GCC" = yes; then
9650         case $host_os in aix4.[012]|aix4.[012].*)
9651         # We only want to do this on AIX 4.2 and lower, the check
9652         # below for broken collect2 doesn't work under 4.3+
9653           collect2name=`${CC} -print-prog-name=collect2`
9654           if test -f "$collect2name" &&
9655            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9656           then
9657           # We have reworked collect2
9658           :
9659           else
9660           # We have old collect2
9661           hardcode_direct=unsupported
9662           # It fails to find uninstalled libraries when the uninstalled
9663           # path is not listed in the libpath.  Setting hardcode_minus_L
9664           # to unsupported forces relinking
9665           hardcode_minus_L=yes
9666           hardcode_libdir_flag_spec='-L$libdir'
9667           hardcode_libdir_separator=
9668           fi
9669           ;;
9670         esac
9671         shared_flag='-shared'
9672         if test "$aix_use_runtimelinking" = yes; then
9673           shared_flag="$shared_flag "'${wl}-G'
9674         fi
9675       else
9676         # not using gcc
9677         if test "$host_cpu" = ia64; then
9678         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9679         # chokes on -Wl,-G. The following line is correct:
9680           shared_flag='-G'
9681         else
9682           if test "$aix_use_runtimelinking" = yes; then
9683             shared_flag='${wl}-G'
9684           else
9685             shared_flag='${wl}-bM:SRE'
9686           fi
9687         fi
9688       fi
9689
9690       export_dynamic_flag_spec='${wl}-bexpall'
9691       # It seems that -bexpall does not export symbols beginning with
9692       # underscore (_), so it is better to generate a list of symbols to export.
9693       always_export_symbols=yes
9694       if test "$aix_use_runtimelinking" = yes; then
9695         # Warning - without using the other runtime loading flags (-brtl),
9696         # -berok will link without error, but may produce a broken library.
9697         allow_undefined_flag='-berok'
9698         # Determine the default libpath from the value encoded in an
9699         # empty executable.
9700         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h.  */
9702
9703 int
9704 main ()
9705 {
9706
9707   ;
9708   return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_link "$LINENO"; then :
9712
9713 lt_aix_libpath_sed='
9714     /Import File Strings/,/^$/ {
9715         /^0/ {
9716             s/^0  *\(.*\)$/\1/
9717             p
9718         }
9719     }'
9720 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9721 # Check for a 64-bit object if we didn't find anything.
9722 if test -z "$aix_libpath"; then
9723   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9724 fi
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext \
9727     conftest$ac_exeext conftest.$ac_ext
9728 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9729
9730         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9731         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"
9732       else
9733         if test "$host_cpu" = ia64; then
9734           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9735           allow_undefined_flag="-z nodefs"
9736           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"
9737         else
9738          # Determine the default libpath from the value encoded in an
9739          # empty executable.
9740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h.  */
9742
9743 int
9744 main ()
9745 {
9746
9747   ;
9748   return 0;
9749 }
9750 _ACEOF
9751 if ac_fn_c_try_link "$LINENO"; then :
9752
9753 lt_aix_libpath_sed='
9754     /Import File Strings/,/^$/ {
9755         /^0/ {
9756             s/^0  *\(.*\)$/\1/
9757             p
9758         }
9759     }'
9760 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9761 # Check for a 64-bit object if we didn't find anything.
9762 if test -z "$aix_libpath"; then
9763   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9764 fi
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext \
9767     conftest$ac_exeext conftest.$ac_ext
9768 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9769
9770          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9771           # Warning - without using the other run time loading flags,
9772           # -berok will link without error, but may produce a broken library.
9773           no_undefined_flag=' ${wl}-bernotok'
9774           allow_undefined_flag=' ${wl}-berok'
9775           if test "$with_gnu_ld" = yes; then
9776             # We only use this code for GNU lds that support --whole-archive.
9777             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9778           else
9779             # Exported symbols can be pulled into shared objects from archives
9780             whole_archive_flag_spec='$convenience'
9781           fi
9782           archive_cmds_need_lc=yes
9783           # This is similar to how AIX traditionally builds its shared libraries.
9784           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'
9785         fi
9786       fi
9787       ;;
9788
9789     amigaos*)
9790       case $host_cpu in
9791       powerpc)
9792             # see comment about AmigaOS4 .so support
9793             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9794             archive_expsym_cmds=''
9795         ;;
9796       m68k)
9797             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)'
9798             hardcode_libdir_flag_spec='-L$libdir'
9799             hardcode_minus_L=yes
9800         ;;
9801       esac
9802       ;;
9803
9804     bsdi[45]*)
9805       export_dynamic_flag_spec=-rdynamic
9806       ;;
9807
9808     cygwin* | mingw* | pw32* | cegcc*)
9809       # When not using gcc, we currently assume that we are using
9810       # Microsoft Visual C++.
9811       # hardcode_libdir_flag_spec is actually meaningless, as there is
9812       # no search path for DLLs.
9813       hardcode_libdir_flag_spec=' '
9814       allow_undefined_flag=unsupported
9815       # Tell ltmain to make .lib files, not .a files.
9816       libext=lib
9817       # Tell ltmain to make .dll files, not .so files.
9818       shrext_cmds=".dll"
9819       # FIXME: Setting linknames here is a bad hack.
9820       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9821       # The linker will automatically build a .lib file if we build a DLL.
9822       old_archive_from_new_cmds='true'
9823       # FIXME: Should let the user specify the lib program.
9824       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9825       fix_srcfile_path='`cygpath -w "$srcfile"`'
9826       enable_shared_with_static_runtimes=yes
9827       ;;
9828
9829     darwin* | rhapsody*)
9830
9831
9832   archive_cmds_need_lc=no
9833   hardcode_direct=no
9834   hardcode_automatic=yes
9835   hardcode_shlibpath_var=unsupported
9836   if test "$lt_cv_ld_force_load" = "yes"; then
9837     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\"`'
9838   else
9839     whole_archive_flag_spec=''
9840   fi
9841   link_all_deplibs=yes
9842   allow_undefined_flag="$_lt_dar_allow_undefined"
9843   case $cc_basename in
9844      ifort*) _lt_dar_can_shared=yes ;;
9845      *) _lt_dar_can_shared=$GCC ;;
9846   esac
9847   if test "$_lt_dar_can_shared" = "yes"; then
9848     output_verbose_link_cmd=func_echo_all
9849     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9850     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9851     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}"
9852     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}"
9853
9854   else
9855   ld_shlibs=no
9856   fi
9857
9858       ;;
9859
9860     dgux*)
9861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9862       hardcode_libdir_flag_spec='-L$libdir'
9863       hardcode_shlibpath_var=no
9864       ;;
9865
9866     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9867     # support.  Future versions do this automatically, but an explicit c++rt0.o
9868     # does not break anything, and helps significantly (at the cost of a little
9869     # extra space).
9870     freebsd2.2*)
9871       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9872       hardcode_libdir_flag_spec='-R$libdir'
9873       hardcode_direct=yes
9874       hardcode_shlibpath_var=no
9875       ;;
9876
9877     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9878     freebsd2.*)
9879       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880       hardcode_direct=yes
9881       hardcode_minus_L=yes
9882       hardcode_shlibpath_var=no
9883       ;;
9884
9885     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9886     freebsd* | dragonfly*)
9887       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9888       hardcode_libdir_flag_spec='-R$libdir'
9889       hardcode_direct=yes
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     hpux9*)
9894       if test "$GCC" = yes; then
9895         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'
9896       else
9897         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'
9898       fi
9899       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9900       hardcode_libdir_separator=:
9901       hardcode_direct=yes
9902
9903       # hardcode_minus_L: Not really in the search PATH,
9904       # but as the default location of the library.
9905       hardcode_minus_L=yes
9906       export_dynamic_flag_spec='${wl}-E'
9907       ;;
9908
9909     hpux10*)
9910       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9911         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9912       else
9913         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9914       fi
9915       if test "$with_gnu_ld" = no; then
9916         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9917         hardcode_libdir_flag_spec_ld='+b $libdir'
9918         hardcode_libdir_separator=:
9919         hardcode_direct=yes
9920         hardcode_direct_absolute=yes
9921         export_dynamic_flag_spec='${wl}-E'
9922         # hardcode_minus_L: Not really in the search PATH,
9923         # but as the default location of the library.
9924         hardcode_minus_L=yes
9925       fi
9926       ;;
9927
9928     hpux11*)
9929       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9930         case $host_cpu in
9931         hppa*64*)
9932           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9933           ;;
9934         ia64*)
9935           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9936           ;;
9937         *)
9938           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9939           ;;
9940         esac
9941       else
9942         case $host_cpu in
9943         hppa*64*)
9944           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         ia64*)
9947           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         *)
9950
9951           # Older versions of the 11.00 compiler do not understand -b yet
9952           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9953           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9954 $as_echo_n "checking if $CC understands -b... " >&6; }
9955 if ${lt_cv_prog_compiler__b+:} false; then :
9956   $as_echo_n "(cached) " >&6
9957 else
9958   lt_cv_prog_compiler__b=no
9959    save_LDFLAGS="$LDFLAGS"
9960    LDFLAGS="$LDFLAGS -b"
9961    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963      # The linker can only warn and ignore the option if not recognized
9964      # So say no if there are warnings
9965      if test -s conftest.err; then
9966        # Append any errors to the config.log.
9967        cat conftest.err 1>&5
9968        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970        if diff conftest.exp conftest.er2 >/dev/null; then
9971          lt_cv_prog_compiler__b=yes
9972        fi
9973      else
9974        lt_cv_prog_compiler__b=yes
9975      fi
9976    fi
9977    $RM -r conftest*
9978    LDFLAGS="$save_LDFLAGS"
9979
9980 fi
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9982 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9983
9984 if test x"$lt_cv_prog_compiler__b" = xyes; then
9985     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9988 fi
9989
9990           ;;
9991         esac
9992       fi
9993       if test "$with_gnu_ld" = no; then
9994         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9995         hardcode_libdir_separator=:
9996
9997         case $host_cpu in
9998         hppa*64*|ia64*)
9999           hardcode_direct=no
10000           hardcode_shlibpath_var=no
10001           ;;
10002         *)
10003           hardcode_direct=yes
10004           hardcode_direct_absolute=yes
10005           export_dynamic_flag_spec='${wl}-E'
10006
10007           # hardcode_minus_L: Not really in the search PATH,
10008           # but as the default location of the library.
10009           hardcode_minus_L=yes
10010           ;;
10011         esac
10012       fi
10013       ;;
10014
10015     irix5* | irix6* | nonstopux*)
10016       if test "$GCC" = yes; then
10017         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'
10018         # Try to use the -exported_symbol ld option, if it does not
10019         # work, assume that -exports_file does not work either and
10020         # implicitly export all symbols.
10021         save_LDFLAGS="$LDFLAGS"
10022         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10023         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h.  */
10025 int foo(void) {}
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028   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'
10029
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext \
10032     conftest$ac_exeext conftest.$ac_ext
10033         LDFLAGS="$save_LDFLAGS"
10034       else
10035         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'
10036         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'
10037       fi
10038       archive_cmds_need_lc='no'
10039       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10040       hardcode_libdir_separator=:
10041       inherit_rpath=yes
10042       link_all_deplibs=yes
10043       ;;
10044
10045     netbsd*)
10046       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10047         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10048       else
10049         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10050       fi
10051       hardcode_libdir_flag_spec='-R$libdir'
10052       hardcode_direct=yes
10053       hardcode_shlibpath_var=no
10054       ;;
10055
10056     newsos6)
10057       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058       hardcode_direct=yes
10059       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10060       hardcode_libdir_separator=:
10061       hardcode_shlibpath_var=no
10062       ;;
10063
10064     *nto* | *qnx*)
10065       ;;
10066
10067     openbsd*)
10068       if test -f /usr/libexec/ld.so; then
10069         hardcode_direct=yes
10070         hardcode_shlibpath_var=no
10071         hardcode_direct_absolute=yes
10072         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10073           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10074           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10075           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076           export_dynamic_flag_spec='${wl}-E'
10077         else
10078           case $host_os in
10079            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10080              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10081              hardcode_libdir_flag_spec='-R$libdir'
10082              ;;
10083            *)
10084              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10085              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086              ;;
10087           esac
10088         fi
10089       else
10090         ld_shlibs=no
10091       fi
10092       ;;
10093
10094     os2*)
10095       hardcode_libdir_flag_spec='-L$libdir'
10096       hardcode_minus_L=yes
10097       allow_undefined_flag=unsupported
10098       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'
10099       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10100       ;;
10101
10102     osf3*)
10103       if test "$GCC" = yes; then
10104         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10105         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'
10106       else
10107         allow_undefined_flag=' -expect_unresolved \*'
10108         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'
10109       fi
10110       archive_cmds_need_lc='no'
10111       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112       hardcode_libdir_separator=:
10113       ;;
10114
10115     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10116       if test "$GCC" = yes; then
10117         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10118         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'
10119         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120       else
10121         allow_undefined_flag=' -expect_unresolved \*'
10122         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'
10123         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~
10124         $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'
10125
10126         # Both c and cxx compiler support -rpath directly
10127         hardcode_libdir_flag_spec='-rpath $libdir'
10128       fi
10129       archive_cmds_need_lc='no'
10130       hardcode_libdir_separator=:
10131       ;;
10132
10133     solaris*)
10134       no_undefined_flag=' -z defs'
10135       if test "$GCC" = yes; then
10136         wlarc='${wl}'
10137         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10138         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10139           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10140       else
10141         case `$CC -V 2>&1` in
10142         *"Compilers 5.0"*)
10143           wlarc=''
10144           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10146           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10147           ;;
10148         *)
10149           wlarc='${wl}'
10150           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10151           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10152           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10153           ;;
10154         esac
10155       fi
10156       hardcode_libdir_flag_spec='-R$libdir'
10157       hardcode_shlibpath_var=no
10158       case $host_os in
10159       solaris2.[0-5] | solaris2.[0-5].*) ;;
10160       *)
10161         # The compiler driver will combine and reorder linker options,
10162         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10163         # but is careful enough not to reorder.
10164         # Supported since Solaris 2.6 (maybe 2.5.1?)
10165         if test "$GCC" = yes; then
10166           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10167         else
10168           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10169         fi
10170         ;;
10171       esac
10172       link_all_deplibs=yes
10173       ;;
10174
10175     sunos4*)
10176       if test "x$host_vendor" = xsequent; then
10177         # Use $CC to link under sequent, because it throws in some extra .o
10178         # files that make .init and .fini sections work.
10179         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10180       else
10181         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10182       fi
10183       hardcode_libdir_flag_spec='-L$libdir'
10184       hardcode_direct=yes
10185       hardcode_minus_L=yes
10186       hardcode_shlibpath_var=no
10187       ;;
10188
10189     sysv4)
10190       case $host_vendor in
10191         sni)
10192           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193           hardcode_direct=yes # is this really true???
10194         ;;
10195         siemens)
10196           ## LD is ld it makes a PLAMLIB
10197           ## CC just makes a GrossModule.
10198           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10199           reload_cmds='$CC -r -o $output$reload_objs'
10200           hardcode_direct=no
10201         ;;
10202         motorola)
10203           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10205         ;;
10206       esac
10207       runpath_var='LD_RUN_PATH'
10208       hardcode_shlibpath_var=no
10209       ;;
10210
10211     sysv4.3*)
10212       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10213       hardcode_shlibpath_var=no
10214       export_dynamic_flag_spec='-Bexport'
10215       ;;
10216
10217     sysv4*MP*)
10218       if test -d /usr/nec; then
10219         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220         hardcode_shlibpath_var=no
10221         runpath_var=LD_RUN_PATH
10222         hardcode_runpath_var=yes
10223         ld_shlibs=yes
10224       fi
10225       ;;
10226
10227     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10228       no_undefined_flag='${wl}-z,text'
10229       archive_cmds_need_lc=no
10230       hardcode_shlibpath_var=no
10231       runpath_var='LD_RUN_PATH'
10232
10233       if test "$GCC" = yes; then
10234         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10235         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236       else
10237         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239       fi
10240       ;;
10241
10242     sysv5* | sco3.2v5* | sco5v6*)
10243       # Note: We can NOT use -z defs as we might desire, because we do not
10244       # link with -lc, and that would cause any symbols used from libc to
10245       # always be unresolved, which means just about no library would
10246       # ever link correctly.  If we're not using GNU ld we use -z text
10247       # though, which does catch some bad symbols but isn't as heavy-handed
10248       # as -z defs.
10249       no_undefined_flag='${wl}-z,text'
10250       allow_undefined_flag='${wl}-z,nodefs'
10251       archive_cmds_need_lc=no
10252       hardcode_shlibpath_var=no
10253       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10254       hardcode_libdir_separator=':'
10255       link_all_deplibs=yes
10256       export_dynamic_flag_spec='${wl}-Bexport'
10257       runpath_var='LD_RUN_PATH'
10258
10259       if test "$GCC" = yes; then
10260         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262       else
10263         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265       fi
10266       ;;
10267
10268     uts4*)
10269       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10270       hardcode_libdir_flag_spec='-L$libdir'
10271       hardcode_shlibpath_var=no
10272       ;;
10273
10274     *)
10275       ld_shlibs=no
10276       ;;
10277     esac
10278
10279     if test x$host_vendor = xsni; then
10280       case $host in
10281       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10282         export_dynamic_flag_spec='${wl}-Blargedynsym'
10283         ;;
10284       esac
10285     fi
10286   fi
10287
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10289 $as_echo "$ld_shlibs" >&6; }
10290 test "$ld_shlibs" = no && can_build_shared=no
10291
10292 with_gnu_ld=$with_gnu_ld
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308 #
10309 # Do we need to explicitly link libc?
10310 #
10311 case "x$archive_cmds_need_lc" in
10312 x|xyes)
10313   # Assume -lc should be added
10314   archive_cmds_need_lc=yes
10315
10316   if test "$enable_shared" = yes && test "$GCC" = yes; then
10317     case $archive_cmds in
10318     *'~'*)
10319       # FIXME: we may have to deal with multi-command sequences.
10320       ;;
10321     '$CC '*)
10322       # Test whether the compiler implicitly links with -lc since on some
10323       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10324       # to ld, don't add -lc before -lgcc.
10325       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10326 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10327 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   $RM conftest*
10331         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10332
10333         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10334   (eval $ac_compile) 2>&5
10335   ac_status=$?
10336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10337   test $ac_status = 0; } 2>conftest.err; then
10338           soname=conftest
10339           lib=conftest
10340           libobjs=conftest.$ac_objext
10341           deplibs=
10342           wl=$lt_prog_compiler_wl
10343           pic_flag=$lt_prog_compiler_pic
10344           compiler_flags=-v
10345           linker_flags=-v
10346           verstring=
10347           output_objdir=.
10348           libname=conftest
10349           lt_save_allow_undefined_flag=$allow_undefined_flag
10350           allow_undefined_flag=
10351           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10352   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10353   ac_status=$?
10354   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10355   test $ac_status = 0; }
10356           then
10357             lt_cv_archive_cmds_need_lc=no
10358           else
10359             lt_cv_archive_cmds_need_lc=yes
10360           fi
10361           allow_undefined_flag=$lt_save_allow_undefined_flag
10362         else
10363           cat conftest.err 1>&5
10364         fi
10365         $RM conftest*
10366
10367 fi
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10369 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10370       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10371       ;;
10372     esac
10373   fi
10374   ;;
10375 esac
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10535
10536 if test "$GCC" = yes; then
10537   case $host_os in
10538     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10539     *) lt_awk_arg="/^libraries:/" ;;
10540   esac
10541   case $host_os in
10542     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10543     *) lt_sed_strip_eq="s,=/,/,g" ;;
10544   esac
10545   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10546   case $lt_search_path_spec in
10547   *\;*)
10548     # if the path contains ";" then we assume it to be the separator
10549     # otherwise default to the standard path separator (i.e. ":") - it is
10550     # assumed that no part of a normal pathname contains ";" but that should
10551     # okay in the real world where ";" in dirpaths is itself problematic.
10552     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10553     ;;
10554   *)
10555     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10556     ;;
10557   esac
10558   # Ok, now we have the path, separated by spaces, we can step through it
10559   # and add multilib dir if necessary.
10560   lt_tmp_lt_search_path_spec=
10561   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10562   for lt_sys_path in $lt_search_path_spec; do
10563     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10564       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10565     else
10566       test -d "$lt_sys_path" && \
10567         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10568     fi
10569   done
10570   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10571 BEGIN {RS=" "; FS="/|\n";} {
10572   lt_foo="";
10573   lt_count=0;
10574   for (lt_i = NF; lt_i > 0; lt_i--) {
10575     if ($lt_i != "" && $lt_i != ".") {
10576       if ($lt_i == "..") {
10577         lt_count++;
10578       } else {
10579         if (lt_count == 0) {
10580           lt_foo="/" $lt_i lt_foo;
10581         } else {
10582           lt_count--;
10583         }
10584       }
10585     }
10586   }
10587   if (lt_foo != "") { lt_freq[lt_foo]++; }
10588   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10589 }'`
10590   # AWK program above erroneously prepends '/' to C:/dos/paths
10591   # for these hosts.
10592   case $host_os in
10593     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10594       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10595   esac
10596   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10597 else
10598   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10599 fi
10600 library_names_spec=
10601 libname_spec='lib$name'
10602 soname_spec=
10603 shrext_cmds=".so"
10604 postinstall_cmds=
10605 postuninstall_cmds=
10606 finish_cmds=
10607 finish_eval=
10608 shlibpath_var=
10609 shlibpath_overrides_runpath=unknown
10610 version_type=none
10611 dynamic_linker="$host_os ld.so"
10612 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10613 need_lib_prefix=unknown
10614 hardcode_into_libs=no
10615
10616 # when you set need_version to no, make sure it does not cause -set_version
10617 # flags to be left without arguments
10618 need_version=unknown
10619
10620 case $host_os in
10621 aix3*)
10622   version_type=linux
10623   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10624   shlibpath_var=LIBPATH
10625
10626   # AIX 3 has no versioning support, so we append a major version to the name.
10627   soname_spec='${libname}${release}${shared_ext}$major'
10628   ;;
10629
10630 aix[4-9]*)
10631   version_type=linux
10632   need_lib_prefix=no
10633   need_version=no
10634   hardcode_into_libs=yes
10635   if test "$host_cpu" = ia64; then
10636     # AIX 5 supports IA64
10637     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10638     shlibpath_var=LD_LIBRARY_PATH
10639   else
10640     # With GCC up to 2.95.x, collect2 would create an import file
10641     # for dependence libraries.  The import file would start with
10642     # the line `#! .'.  This would cause the generated library to
10643     # depend on `.', always an invalid library.  This was fixed in
10644     # development snapshots of GCC prior to 3.0.
10645     case $host_os in
10646       aix4 | aix4.[01] | aix4.[01].*)
10647       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10648            echo ' yes '
10649            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10650         :
10651       else
10652         can_build_shared=no
10653       fi
10654       ;;
10655     esac
10656     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10657     # soname into executable. Probably we can add versioning support to
10658     # collect2, so additional links can be useful in future.
10659     if test "$aix_use_runtimelinking" = yes; then
10660       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10661       # instead of lib<name>.a to let people know that these are not
10662       # typical AIX shared libraries.
10663       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664     else
10665       # We preserve .a as extension for shared libraries through AIX4.2
10666       # and later when we are not doing run time linking.
10667       library_names_spec='${libname}${release}.a $libname.a'
10668       soname_spec='${libname}${release}${shared_ext}$major'
10669     fi
10670     shlibpath_var=LIBPATH
10671   fi
10672   ;;
10673
10674 amigaos*)
10675   case $host_cpu in
10676   powerpc)
10677     # Since July 2007 AmigaOS4 officially supports .so libraries.
10678     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680     ;;
10681   m68k)
10682     library_names_spec='$libname.ixlibrary $libname.a'
10683     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10684     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'
10685     ;;
10686   esac
10687   ;;
10688
10689 beos*)
10690   library_names_spec='${libname}${shared_ext}'
10691   dynamic_linker="$host_os ld.so"
10692   shlibpath_var=LIBRARY_PATH
10693   ;;
10694
10695 bsdi[45]*)
10696   version_type=linux
10697   need_version=no
10698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699   soname_spec='${libname}${release}${shared_ext}$major'
10700   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10701   shlibpath_var=LD_LIBRARY_PATH
10702   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10703   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10704   # the default ld.so.conf also contains /usr/contrib/lib and
10705   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10706   # libtool to hard-code these into programs
10707   ;;
10708
10709 cygwin* | mingw* | pw32* | cegcc*)
10710   version_type=windows
10711   shrext_cmds=".dll"
10712   need_version=no
10713   need_lib_prefix=no
10714
10715   case $GCC,$host_os in
10716   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10717     library_names_spec='$libname.dll.a'
10718     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10719     postinstall_cmds='base_file=`basename \${file}`~
10720       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10721       dldir=$destdir/`dirname \$dlpath`~
10722       test -d \$dldir || mkdir -p \$dldir~
10723       $install_prog $dir/$dlname \$dldir/$dlname~
10724       chmod a+x \$dldir/$dlname~
10725       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10726         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10727       fi'
10728     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729       dlpath=$dir/\$dldll~
10730        $RM \$dlpath'
10731     shlibpath_overrides_runpath=yes
10732
10733     case $host_os in
10734     cygwin*)
10735       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10736       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10737
10738       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10739       ;;
10740     mingw* | cegcc*)
10741       # MinGW DLLs use traditional 'lib' prefix
10742       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743       ;;
10744     pw32*)
10745       # pw32 DLLs use 'pw' prefix rather than 'lib'
10746       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10747       ;;
10748     esac
10749     ;;
10750
10751   *)
10752     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10753     ;;
10754   esac
10755   dynamic_linker='Win32 ld.exe'
10756   # FIXME: first we should search . and the directory the executable is in
10757   shlibpath_var=PATH
10758   ;;
10759
10760 darwin* | rhapsody*)
10761   dynamic_linker="$host_os dyld"
10762   version_type=darwin
10763   need_lib_prefix=no
10764   need_version=no
10765   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10766   soname_spec='${libname}${release}${major}$shared_ext'
10767   shlibpath_overrides_runpath=yes
10768   shlibpath_var=DYLD_LIBRARY_PATH
10769   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10770
10771   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10772   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10773   ;;
10774
10775 dgux*)
10776   version_type=linux
10777   need_lib_prefix=no
10778   need_version=no
10779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   shlibpath_var=LD_LIBRARY_PATH
10782   ;;
10783
10784 freebsd* | dragonfly*)
10785   # DragonFly does not have aout.  When/if they implement a new
10786   # versioning mechanism, adjust this.
10787   if test -x /usr/bin/objformat; then
10788     objformat=`/usr/bin/objformat`
10789   else
10790     case $host_os in
10791     freebsd[23].*) objformat=aout ;;
10792     *) objformat=elf ;;
10793     esac
10794   fi
10795   version_type=freebsd-$objformat
10796   case $version_type in
10797     freebsd-elf*)
10798       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10799       need_version=no
10800       need_lib_prefix=no
10801       ;;
10802     freebsd-*)
10803       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10804       need_version=yes
10805       ;;
10806   esac
10807   shlibpath_var=LD_LIBRARY_PATH
10808   case $host_os in
10809   freebsd2.*)
10810     shlibpath_overrides_runpath=yes
10811     ;;
10812   freebsd3.[01]* | freebsdelf3.[01]*)
10813     shlibpath_overrides_runpath=yes
10814     hardcode_into_libs=yes
10815     ;;
10816   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10817   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10818     shlibpath_overrides_runpath=no
10819     hardcode_into_libs=yes
10820     ;;
10821   *) # from 4.6 on, and DragonFly
10822     shlibpath_overrides_runpath=yes
10823     hardcode_into_libs=yes
10824     ;;
10825   esac
10826   ;;
10827
10828 gnu*)
10829   version_type=linux
10830   need_lib_prefix=no
10831   need_version=no
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   shlibpath_var=LD_LIBRARY_PATH
10835   hardcode_into_libs=yes
10836   ;;
10837
10838 haiku*)
10839   version_type=linux
10840   need_lib_prefix=no
10841   need_version=no
10842   dynamic_linker="$host_os runtime_loader"
10843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10844   soname_spec='${libname}${release}${shared_ext}$major'
10845   shlibpath_var=LIBRARY_PATH
10846   shlibpath_overrides_runpath=yes
10847   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10848   hardcode_into_libs=yes
10849   ;;
10850
10851 hpux9* | hpux10* | hpux11*)
10852   # Give a soname corresponding to the major version so that dld.sl refuses to
10853   # link against other versions.
10854   version_type=sunos
10855   need_lib_prefix=no
10856   need_version=no
10857   case $host_cpu in
10858   ia64*)
10859     shrext_cmds='.so'
10860     hardcode_into_libs=yes
10861     dynamic_linker="$host_os dld.so"
10862     shlibpath_var=LD_LIBRARY_PATH
10863     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10864     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10865     soname_spec='${libname}${release}${shared_ext}$major'
10866     if test "X$HPUX_IA64_MODE" = X32; then
10867       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10868     else
10869       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10870     fi
10871     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10872     ;;
10873   hppa*64*)
10874     shrext_cmds='.sl'
10875     hardcode_into_libs=yes
10876     dynamic_linker="$host_os dld.sl"
10877     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880     soname_spec='${libname}${release}${shared_ext}$major'
10881     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10882     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10883     ;;
10884   *)
10885     shrext_cmds='.sl'
10886     dynamic_linker="$host_os dld.sl"
10887     shlibpath_var=SHLIB_PATH
10888     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10889     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890     soname_spec='${libname}${release}${shared_ext}$major'
10891     ;;
10892   esac
10893   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10894   postinstall_cmds='chmod 555 $lib'
10895   # or fails outright, so override atomically:
10896   install_override_mode=555
10897   ;;
10898
10899 interix[3-9]*)
10900   version_type=linux
10901   need_lib_prefix=no
10902   need_version=no
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10904   soname_spec='${libname}${release}${shared_ext}$major'
10905   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10906   shlibpath_var=LD_LIBRARY_PATH
10907   shlibpath_overrides_runpath=no
10908   hardcode_into_libs=yes
10909   ;;
10910
10911 irix5* | irix6* | nonstopux*)
10912   case $host_os in
10913     nonstopux*) version_type=nonstopux ;;
10914     *)
10915         if test "$lt_cv_prog_gnu_ld" = yes; then
10916                 version_type=linux
10917         else
10918                 version_type=irix
10919         fi ;;
10920   esac
10921   need_lib_prefix=no
10922   need_version=no
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10925   case $host_os in
10926   irix5* | nonstopux*)
10927     libsuff= shlibsuff=
10928     ;;
10929   *)
10930     case $LD in # libtool.m4 will add one of these switches to LD
10931     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10932       libsuff= shlibsuff= libmagic=32-bit;;
10933     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10934       libsuff=32 shlibsuff=N32 libmagic=N32;;
10935     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10936       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10937     *) libsuff= shlibsuff= libmagic=never-match;;
10938     esac
10939     ;;
10940   esac
10941   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10942   shlibpath_overrides_runpath=no
10943   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10944   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10945   hardcode_into_libs=yes
10946   ;;
10947
10948 # No shared lib support for Linux oldld, aout, or coff.
10949 linux*oldld* | linux*aout* | linux*coff*)
10950   dynamic_linker=no
10951   ;;
10952
10953 # This must be Linux ELF.
10954
10955 # uclinux* changes (here and below) have been submitted to the libtool
10956 # project, but have not yet been accepted: they are GCC-local changes
10957 # for the time being.  (See
10958 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10959 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10960   version_type=linux
10961   need_lib_prefix=no
10962   need_version=no
10963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964   soname_spec='${libname}${release}${shared_ext}$major'
10965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10966   shlibpath_var=LD_LIBRARY_PATH
10967   shlibpath_overrides_runpath=no
10968
10969   # Some binutils ld are patched to set DT_RUNPATH
10970   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10971   $as_echo_n "(cached) " >&6
10972 else
10973   lt_cv_shlibpath_overrides_runpath=no
10974     save_LDFLAGS=$LDFLAGS
10975     save_libdir=$libdir
10976     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10977          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10978     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10979 /* end confdefs.h.  */
10980
10981 int
10982 main ()
10983 {
10984
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10990   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10991   lt_cv_shlibpath_overrides_runpath=yes
10992 fi
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext \
10995     conftest$ac_exeext conftest.$ac_ext
10996     LDFLAGS=$save_LDFLAGS
10997     libdir=$save_libdir
10998
10999 fi
11000
11001   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11002
11003   # This implies no fast_install, which is unacceptable.
11004   # Some rework will be needed to allow for fast_install
11005   # before this can be enabled.
11006   hardcode_into_libs=yes
11007
11008   # Append ld.so.conf contents to the search path
11009   if test -f /etc/ld.so.conf; then
11010     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' ' '`
11011     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11012   fi
11013
11014   # We used to test for /lib/ld.so.1 and disable shared libraries on
11015   # powerpc, because MkLinux only supported shared libraries with the
11016   # GNU dynamic linker.  Since this was broken with cross compilers,
11017   # most powerpc-linux boxes support dynamic linking these days and
11018   # people can always --disable-shared, the test was removed, and we
11019   # assume the GNU/Linux dynamic linker is in use.
11020   dynamic_linker='GNU/Linux ld.so'
11021   ;;
11022
11023 netbsd*)
11024   version_type=sunos
11025   need_lib_prefix=no
11026   need_version=no
11027   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11028     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11029     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11030     dynamic_linker='NetBSD (a.out) ld.so'
11031   else
11032     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11033     soname_spec='${libname}${release}${shared_ext}$major'
11034     dynamic_linker='NetBSD ld.elf_so'
11035   fi
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=yes
11038   hardcode_into_libs=yes
11039   ;;
11040
11041 newsos6)
11042   version_type=linux
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=yes
11046   ;;
11047
11048 *nto* | *qnx*)
11049   version_type=qnx
11050   need_lib_prefix=no
11051   need_version=no
11052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053   soname_spec='${libname}${release}${shared_ext}$major'
11054   shlibpath_var=LD_LIBRARY_PATH
11055   shlibpath_overrides_runpath=no
11056   hardcode_into_libs=yes
11057   dynamic_linker='ldqnx.so'
11058   ;;
11059
11060 openbsd*)
11061   version_type=sunos
11062   sys_lib_dlsearch_path_spec="/usr/lib"
11063   need_lib_prefix=no
11064   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11065   case $host_os in
11066     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11067     *)                          need_version=no  ;;
11068   esac
11069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11070   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11071   shlibpath_var=LD_LIBRARY_PATH
11072   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11073     case $host_os in
11074       openbsd2.[89] | openbsd2.[89].*)
11075         shlibpath_overrides_runpath=no
11076         ;;
11077       *)
11078         shlibpath_overrides_runpath=yes
11079         ;;
11080       esac
11081   else
11082     shlibpath_overrides_runpath=yes
11083   fi
11084   ;;
11085
11086 os2*)
11087   libname_spec='$name'
11088   shrext_cmds=".dll"
11089   need_lib_prefix=no
11090   library_names_spec='$libname${shared_ext} $libname.a'
11091   dynamic_linker='OS/2 ld.exe'
11092   shlibpath_var=LIBPATH
11093   ;;
11094
11095 osf3* | osf4* | osf5*)
11096   version_type=osf
11097   need_lib_prefix=no
11098   need_version=no
11099   soname_spec='${libname}${release}${shared_ext}$major'
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11103   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11104   ;;
11105
11106 rdos*)
11107   dynamic_linker=no
11108   ;;
11109
11110 solaris*)
11111   version_type=linux
11112   need_lib_prefix=no
11113   need_version=no
11114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115   soname_spec='${libname}${release}${shared_ext}$major'
11116   shlibpath_var=LD_LIBRARY_PATH
11117   shlibpath_overrides_runpath=yes
11118   hardcode_into_libs=yes
11119   # ldd complains unless libraries are executable
11120   postinstall_cmds='chmod +x $lib'
11121   ;;
11122
11123 sunos4*)
11124   version_type=sunos
11125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11126   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11127   shlibpath_var=LD_LIBRARY_PATH
11128   shlibpath_overrides_runpath=yes
11129   if test "$with_gnu_ld" = yes; then
11130     need_lib_prefix=no
11131   fi
11132   need_version=yes
11133   ;;
11134
11135 sysv4 | sysv4.3*)
11136   version_type=linux
11137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138   soname_spec='${libname}${release}${shared_ext}$major'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   case $host_vendor in
11141     sni)
11142       shlibpath_overrides_runpath=no
11143       need_lib_prefix=no
11144       runpath_var=LD_RUN_PATH
11145       ;;
11146     siemens)
11147       need_lib_prefix=no
11148       ;;
11149     motorola)
11150       need_lib_prefix=no
11151       need_version=no
11152       shlibpath_overrides_runpath=no
11153       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11154       ;;
11155   esac
11156   ;;
11157
11158 sysv4*MP*)
11159   if test -d /usr/nec ;then
11160     version_type=linux
11161     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11162     soname_spec='$libname${shared_ext}.$major'
11163     shlibpath_var=LD_LIBRARY_PATH
11164   fi
11165   ;;
11166
11167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11168   version_type=freebsd-elf
11169   need_lib_prefix=no
11170   need_version=no
11171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11172   soname_spec='${libname}${release}${shared_ext}$major'
11173   shlibpath_var=LD_LIBRARY_PATH
11174   shlibpath_overrides_runpath=yes
11175   hardcode_into_libs=yes
11176   if test "$with_gnu_ld" = yes; then
11177     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11178   else
11179     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11180     case $host_os in
11181       sco3.2v5*)
11182         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11183         ;;
11184     esac
11185   fi
11186   sys_lib_dlsearch_path_spec='/usr/lib'
11187   ;;
11188
11189 tpf*)
11190   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11191   version_type=linux
11192   need_lib_prefix=no
11193   need_version=no
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=no
11197   hardcode_into_libs=yes
11198   ;;
11199
11200 uts4*)
11201   version_type=linux
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11203   soname_spec='${libname}${release}${shared_ext}$major'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   ;;
11206
11207 *)
11208   dynamic_linker=no
11209   ;;
11210 esac
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11212 $as_echo "$dynamic_linker" >&6; }
11213 test "$dynamic_linker" = no && can_build_shared=no
11214
11215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11216 if test "$GCC" = yes; then
11217   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11218 fi
11219
11220 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11221   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11222 fi
11223 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11224   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11225 fi
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11319 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11320 hardcode_action=
11321 if test -n "$hardcode_libdir_flag_spec" ||
11322    test -n "$runpath_var" ||
11323    test "X$hardcode_automatic" = "Xyes" ; then
11324
11325   # We can hardcode non-existent directories.
11326   if test "$hardcode_direct" != no &&
11327      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11328      # have to relink, otherwise we might link with an installed library
11329      # when we should be linking with a yet-to-be-installed one
11330      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11331      test "$hardcode_minus_L" != no; then
11332     # Linking always hardcodes the temporary library directory.
11333     hardcode_action=relink
11334   else
11335     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11336     hardcode_action=immediate
11337   fi
11338 else
11339   # We cannot hardcode anything, or else we can only hardcode existing
11340   # directories.
11341   hardcode_action=unsupported
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11344 $as_echo "$hardcode_action" >&6; }
11345
11346 if test "$hardcode_action" = relink ||
11347    test "$inherit_rpath" = yes; then
11348   # Fast installation is not supported
11349   enable_fast_install=no
11350 elif test "$shlibpath_overrides_runpath" = yes ||
11351      test "$enable_shared" = no; then
11352   # Fast installation is not necessary
11353   enable_fast_install=needless
11354 fi
11355
11356
11357
11358
11359
11360
11361   if test "x$enable_dlopen" != xyes; then
11362   enable_dlopen=unknown
11363   enable_dlopen_self=unknown
11364   enable_dlopen_self_static=unknown
11365 else
11366   lt_cv_dlopen=no
11367   lt_cv_dlopen_libs=
11368
11369   case $host_os in
11370   beos*)
11371     lt_cv_dlopen="load_add_on"
11372     lt_cv_dlopen_libs=
11373     lt_cv_dlopen_self=yes
11374     ;;
11375
11376   mingw* | pw32* | cegcc*)
11377     lt_cv_dlopen="LoadLibrary"
11378     lt_cv_dlopen_libs=
11379     ;;
11380
11381   cygwin*)
11382     lt_cv_dlopen="dlopen"
11383     lt_cv_dlopen_libs=
11384     ;;
11385
11386   darwin*)
11387   # if libdl is installed we need to link against it
11388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11389 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11390 if ${ac_cv_lib_dl_dlopen+:} false; then :
11391   $as_echo_n "(cached) " >&6
11392 else
11393   ac_check_lib_save_LIBS=$LIBS
11394 LIBS="-ldl  $LIBS"
11395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11396 /* end confdefs.h.  */
11397
11398 /* Override any GCC internal prototype to avoid an error.
11399    Use char because int might match the return type of a GCC
11400    builtin and then its argument prototype would still apply.  */
11401 #ifdef __cplusplus
11402 extern "C"
11403 #endif
11404 char dlopen ();
11405 int
11406 main ()
11407 {
11408 return dlopen ();
11409   ;
11410   return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414   ac_cv_lib_dl_dlopen=yes
11415 else
11416   ac_cv_lib_dl_dlopen=no
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext \
11419     conftest$ac_exeext conftest.$ac_ext
11420 LIBS=$ac_check_lib_save_LIBS
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11423 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11424 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11425   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11426 else
11427
11428     lt_cv_dlopen="dyld"
11429     lt_cv_dlopen_libs=
11430     lt_cv_dlopen_self=yes
11431
11432 fi
11433
11434     ;;
11435
11436   *)
11437     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11438 if test "x$ac_cv_func_shl_load" = xyes; then :
11439   lt_cv_dlopen="shl_load"
11440 else
11441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11442 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11443 if ${ac_cv_lib_dld_shl_load+:} false; then :
11444   $as_echo_n "(cached) " >&6
11445 else
11446   ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldld  $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h.  */
11450
11451 /* Override any GCC internal prototype to avoid an error.
11452    Use char because int might match the return type of a GCC
11453    builtin and then its argument prototype would still apply.  */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char shl_load ();
11458 int
11459 main ()
11460 {
11461 return shl_load ();
11462   ;
11463   return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467   ac_cv_lib_dld_shl_load=yes
11468 else
11469   ac_cv_lib_dld_shl_load=no
11470 fi
11471 rm -f core conftest.err conftest.$ac_objext \
11472     conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11474 fi
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11476 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11477 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11478   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11479 else
11480   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11481 if test "x$ac_cv_func_dlopen" = xyes; then :
11482   lt_cv_dlopen="dlopen"
11483 else
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11485 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11486 if ${ac_cv_lib_dl_dlopen+:} false; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldl  $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493
11494 /* Override any GCC internal prototype to avoid an error.
11495    Use char because int might match the return type of a GCC
11496    builtin and then its argument prototype would still apply.  */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char dlopen ();
11501 int
11502 main ()
11503 {
11504 return dlopen ();
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510   ac_cv_lib_dl_dlopen=yes
11511 else
11512   ac_cv_lib_dl_dlopen=no
11513 fi
11514 rm -f core conftest.err conftest.$ac_objext \
11515     conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11519 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11520 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11524 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11525 if ${ac_cv_lib_svld_dlopen+:} false; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-lsvld  $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534    Use char because int might match the return type of a GCC
11535    builtin and then its argument prototype would still apply.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char dlopen ();
11540 int
11541 main ()
11542 {
11543 return dlopen ();
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549   ac_cv_lib_svld_dlopen=yes
11550 else
11551   ac_cv_lib_svld_dlopen=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554     conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11558 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11559 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11560   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11561 else
11562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11563 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11564 if ${ac_cv_lib_dld_dld_link+:} false; then :
11565   $as_echo_n "(cached) " >&6
11566 else
11567   ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-ldld  $LIBS"
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h.  */
11571
11572 /* Override any GCC internal prototype to avoid an error.
11573    Use char because int might match the return type of a GCC
11574    builtin and then its argument prototype would still apply.  */
11575 #ifdef __cplusplus
11576 extern "C"
11577 #endif
11578 char dld_link ();
11579 int
11580 main ()
11581 {
11582 return dld_link ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 if ac_fn_c_try_link "$LINENO"; then :
11588   ac_cv_lib_dld_dld_link=yes
11589 else
11590   ac_cv_lib_dld_dld_link=no
11591 fi
11592 rm -f core conftest.err conftest.$ac_objext \
11593     conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11595 fi
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11597 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11598 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11599   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11600 fi
11601
11602
11603 fi
11604
11605
11606 fi
11607
11608
11609 fi
11610
11611
11612 fi
11613
11614
11615 fi
11616
11617     ;;
11618   esac
11619
11620   if test "x$lt_cv_dlopen" != xno; then
11621     enable_dlopen=yes
11622   else
11623     enable_dlopen=no
11624   fi
11625
11626   case $lt_cv_dlopen in
11627   dlopen)
11628     save_CPPFLAGS="$CPPFLAGS"
11629     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11630
11631     save_LDFLAGS="$LDFLAGS"
11632     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11633
11634     save_LIBS="$LIBS"
11635     LIBS="$lt_cv_dlopen_libs $LIBS"
11636
11637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11638 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11639 if ${lt_cv_dlopen_self+:} false; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642           if test "$cross_compiling" = yes; then :
11643   lt_cv_dlopen_self=cross
11644 else
11645   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11646   lt_status=$lt_dlunknown
11647   cat > conftest.$ac_ext <<_LT_EOF
11648 #line 11648 "configure"
11649 #include "confdefs.h"
11650
11651 #if HAVE_DLFCN_H
11652 #include <dlfcn.h>
11653 #endif
11654
11655 #include <stdio.h>
11656
11657 #ifdef RTLD_GLOBAL
11658 #  define LT_DLGLOBAL           RTLD_GLOBAL
11659 #else
11660 #  ifdef DL_GLOBAL
11661 #    define LT_DLGLOBAL         DL_GLOBAL
11662 #  else
11663 #    define LT_DLGLOBAL         0
11664 #  endif
11665 #endif
11666
11667 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11668    find out it does not work in some platform. */
11669 #ifndef LT_DLLAZY_OR_NOW
11670 #  ifdef RTLD_LAZY
11671 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11672 #  else
11673 #    ifdef DL_LAZY
11674 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11675 #    else
11676 #      ifdef RTLD_NOW
11677 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11678 #      else
11679 #        ifdef DL_NOW
11680 #          define LT_DLLAZY_OR_NOW      DL_NOW
11681 #        else
11682 #          define LT_DLLAZY_OR_NOW      0
11683 #        endif
11684 #      endif
11685 #    endif
11686 #  endif
11687 #endif
11688
11689 /* When -fvisbility=hidden is used, assume the code has been annotated
11690    correspondingly for the symbols needed.  */
11691 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11692 void fnord () __attribute__((visibility("default")));
11693 #endif
11694
11695 void fnord () { int i=42; }
11696 int main ()
11697 {
11698   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11699   int status = $lt_dlunknown;
11700
11701   if (self)
11702     {
11703       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11704       else
11705         {
11706           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11707           else puts (dlerror ());
11708         }
11709       /* dlclose (self); */
11710     }
11711   else
11712     puts (dlerror ());
11713
11714   return status;
11715 }
11716 _LT_EOF
11717   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11718   (eval $ac_link) 2>&5
11719   ac_status=$?
11720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11721   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11722     (./conftest; exit; ) >&5 2>/dev/null
11723     lt_status=$?
11724     case x$lt_status in
11725       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11726       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11727       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11728     esac
11729   else :
11730     # compilation failed
11731     lt_cv_dlopen_self=no
11732   fi
11733 fi
11734 rm -fr conftest*
11735
11736
11737 fi
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11739 $as_echo "$lt_cv_dlopen_self" >&6; }
11740
11741     if test "x$lt_cv_dlopen_self" = xyes; then
11742       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11744 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11745 if ${lt_cv_dlopen_self_static+:} false; then :
11746   $as_echo_n "(cached) " >&6
11747 else
11748           if test "$cross_compiling" = yes; then :
11749   lt_cv_dlopen_self_static=cross
11750 else
11751   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11752   lt_status=$lt_dlunknown
11753   cat > conftest.$ac_ext <<_LT_EOF
11754 #line 11754 "configure"
11755 #include "confdefs.h"
11756
11757 #if HAVE_DLFCN_H
11758 #include <dlfcn.h>
11759 #endif
11760
11761 #include <stdio.h>
11762
11763 #ifdef RTLD_GLOBAL
11764 #  define LT_DLGLOBAL           RTLD_GLOBAL
11765 #else
11766 #  ifdef DL_GLOBAL
11767 #    define LT_DLGLOBAL         DL_GLOBAL
11768 #  else
11769 #    define LT_DLGLOBAL         0
11770 #  endif
11771 #endif
11772
11773 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11774    find out it does not work in some platform. */
11775 #ifndef LT_DLLAZY_OR_NOW
11776 #  ifdef RTLD_LAZY
11777 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11778 #  else
11779 #    ifdef DL_LAZY
11780 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11781 #    else
11782 #      ifdef RTLD_NOW
11783 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11784 #      else
11785 #        ifdef DL_NOW
11786 #          define LT_DLLAZY_OR_NOW      DL_NOW
11787 #        else
11788 #          define LT_DLLAZY_OR_NOW      0
11789 #        endif
11790 #      endif
11791 #    endif
11792 #  endif
11793 #endif
11794
11795 /* When -fvisbility=hidden is used, assume the code has been annotated
11796    correspondingly for the symbols needed.  */
11797 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11798 void fnord () __attribute__((visibility("default")));
11799 #endif
11800
11801 void fnord () { int i=42; }
11802 int main ()
11803 {
11804   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11805   int status = $lt_dlunknown;
11806
11807   if (self)
11808     {
11809       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11810       else
11811         {
11812           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11813           else puts (dlerror ());
11814         }
11815       /* dlclose (self); */
11816     }
11817   else
11818     puts (dlerror ());
11819
11820   return status;
11821 }
11822 _LT_EOF
11823   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11824   (eval $ac_link) 2>&5
11825   ac_status=$?
11826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11827   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11828     (./conftest; exit; ) >&5 2>/dev/null
11829     lt_status=$?
11830     case x$lt_status in
11831       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11832       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11833       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11834     esac
11835   else :
11836     # compilation failed
11837     lt_cv_dlopen_self_static=no
11838   fi
11839 fi
11840 rm -fr conftest*
11841
11842
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11845 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11846     fi
11847
11848     CPPFLAGS="$save_CPPFLAGS"
11849     LDFLAGS="$save_LDFLAGS"
11850     LIBS="$save_LIBS"
11851     ;;
11852   esac
11853
11854   case $lt_cv_dlopen_self in
11855   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11856   *) enable_dlopen_self=unknown ;;
11857   esac
11858
11859   case $lt_cv_dlopen_self_static in
11860   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11861   *) enable_dlopen_self_static=unknown ;;
11862   esac
11863 fi
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881 striplib=
11882 old_striplib=
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11884 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11885 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11886   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11887   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11889 $as_echo "yes" >&6; }
11890 else
11891 # FIXME - insert some real tests, host_os isn't really good enough
11892   case $host_os in
11893   darwin*)
11894     if test -n "$STRIP" ; then
11895       striplib="$STRIP -x"
11896       old_striplib="$STRIP -S"
11897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899     else
11900       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11902     fi
11903     ;;
11904   *)
11905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907     ;;
11908   esac
11909 fi
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922   # Report which library types will actually be built
11923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11924 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11926 $as_echo "$can_build_shared" >&6; }
11927
11928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11929 $as_echo_n "checking whether to build shared libraries... " >&6; }
11930   test "$can_build_shared" = "no" && enable_shared=no
11931
11932   # On AIX, shared libraries and static libraries use the same namespace, and
11933   # are all built from PIC.
11934   case $host_os in
11935   aix3*)
11936     test "$enable_shared" = yes && enable_static=no
11937     if test -n "$RANLIB"; then
11938       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11939       postinstall_cmds='$RANLIB $lib'
11940     fi
11941     ;;
11942
11943   aix[4-9]*)
11944     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11945       test "$enable_shared" = yes && enable_static=no
11946     fi
11947     ;;
11948   esac
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11950 $as_echo "$enable_shared" >&6; }
11951
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11953 $as_echo_n "checking whether to build static libraries... " >&6; }
11954   # Make sure either enable_shared or enable_static is yes.
11955   test "$enable_shared" = yes || enable_static=yes
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11957 $as_echo "$enable_static" >&6; }
11958
11959
11960
11961
11962 fi
11963 ac_ext=c
11964 ac_cpp='$CPP $CPPFLAGS'
11965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11968
11969 CC="$lt_save_CC"
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983         ac_config_commands="$ac_config_commands libtool"
11984
11985
11986
11987
11988 # Only expand once:
11989
11990
11991
11992
11993
11994   gdc_save_DFLAGS=$GDCFLAGS
11995   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime  $GDCFLAGS"
11996
11997
11998 # Source file extension for D test sources.
11999 ac_ext=d
12000
12001 # Object file extension for compiled D test sources.
12002 objext=o
12003 objext_D=$objext
12004
12005 # Code to be used in simple compile tests
12006 lt_simple_compile_test_code="\
12007   module object;
12008   shared int some_variable = 0;
12009 "
12010
12011 # Code to be used in simple link tests
12012 lt_simple_link_test_code="\
12013   module object;
12014   extern(C) int main() { return 0; }
12015 "
12016
12017 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12018
12019
12020
12021
12022
12023
12024 # If no C compiler was specified, use CC.
12025 LTCC=${LTCC-"$CC"}
12026
12027 # If no C compiler flags were specified, use CFLAGS.
12028 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12029
12030 # Allow CC to be a program name with arguments.
12031 compiler=$CC
12032
12033
12034 # save warnings/boilerplate of simple test code
12035 ac_outfile=conftest.$ac_objext
12036 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12037 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12038 _lt_compiler_boilerplate=`cat conftest.err`
12039 $RM conftest*
12040
12041 ac_outfile=conftest.$ac_objext
12042 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12043 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12044 _lt_linker_boilerplate=`cat conftest.err`
12045 $RM -r conftest*
12046
12047
12048 # Allow CC to be a program name with arguments.
12049 lt_save_CC=$CC
12050 lt_save_CFLAGS=$CFLAGS
12051 lt_save_GCC=$GCC
12052 GCC=yes
12053 CC=${GDC-"gdc"}
12054 CFLAGS=$GDCFLAGS
12055 compiler=$CC
12056 compiler_D=$CC
12057 LD_D=$CC
12058 for cc_temp in $compiler""; do
12059   case $cc_temp in
12060     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12061     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12062     \-*) ;;
12063     *) break;;
12064   esac
12065 done
12066 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12067
12068
12069 # GDC did not exist at the time GCC didn't implicitly link libc in.
12070 archive_cmds_need_lc_D=no
12071
12072 old_archive_cmds_D=$old_archive_cmds
12073 reload_flag_D=$reload_flag
12074 reload_cmds_D=$reload_cmds
12075
12076 ## CAVEAT EMPTOR:
12077 ## There is no encapsulation within the following macros, do not change
12078 ## the running order or otherwise move them around unless you know exactly
12079 ## what you are doing...
12080 if test -n "$compiler"; then
12081
12082 lt_prog_compiler_no_builtin_flag_D=
12083
12084 if test "$GCC" = yes; then
12085   case $cc_basename in
12086   nvcc*)
12087     lt_prog_compiler_no_builtin_flag_D=' -Xcompiler -fno-builtin' ;;
12088   *)
12089     lt_prog_compiler_no_builtin_flag_D=' -fno-builtin' ;;
12090   esac
12091
12092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12093 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12094 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12095   $as_echo_n "(cached) " >&6
12096 else
12097   lt_cv_prog_compiler_rtti_exceptions=no
12098    ac_outfile=conftest.$ac_objext
12099    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12100    lt_compiler_flag="-fno-rtti -fno-exceptions"
12101    # Insert the option either (1) after the last *FLAGS variable, or
12102    # (2) before a word containing "conftest.", or (3) at the end.
12103    # Note that $ac_compile itself does not contain backslashes and begins
12104    # with a dollar sign (not a hyphen), so the echo should work correctly.
12105    # The option is referenced via a variable to avoid confusing sed.
12106    lt_compile=`echo "$ac_compile" | $SED \
12107    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12108    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12109    -e 's:$: $lt_compiler_flag:'`
12110    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12111    (eval "$lt_compile" 2>conftest.err)
12112    ac_status=$?
12113    cat conftest.err >&5
12114    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115    if (exit $ac_status) && test -s "$ac_outfile"; then
12116      # The compiler can only warn and ignore the option if not recognized
12117      # So say no if there are warnings other than the usual output.
12118      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12119      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12120      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12121        lt_cv_prog_compiler_rtti_exceptions=yes
12122      fi
12123    fi
12124    $RM conftest*
12125
12126 fi
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12128 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12129
12130 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12131     lt_prog_compiler_no_builtin_flag_D="$lt_prog_compiler_no_builtin_flag_D -fno-rtti -fno-exceptions"
12132 else
12133     :
12134 fi
12135
12136 fi
12137
12138
12139
12140   lt_prog_compiler_wl_D=
12141 lt_prog_compiler_pic_D=
12142 lt_prog_compiler_static_D=
12143
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12146
12147   if test "$GCC" = yes; then
12148     lt_prog_compiler_wl_D='-Wl,'
12149     lt_prog_compiler_static_D='-static'
12150
12151     case $host_os in
12152       aix*)
12153       # All AIX code is PIC.
12154       if test "$host_cpu" = ia64; then
12155         # AIX 5 now supports IA64 processor
12156         lt_prog_compiler_static_D='-Bstatic'
12157       fi
12158       lt_prog_compiler_pic_D='-fPIC'
12159       ;;
12160
12161     amigaos*)
12162       case $host_cpu in
12163       powerpc)
12164             # see comment about AmigaOS4 .so support
12165             lt_prog_compiler_pic_D='-fPIC'
12166         ;;
12167       m68k)
12168             # FIXME: we need at least 68020 code to build shared libraries, but
12169             # adding the `-m68020' flag to GCC prevents building anything better,
12170             # like `-m68040'.
12171             lt_prog_compiler_pic_D='-m68020 -resident32 -malways-restore-a4'
12172         ;;
12173       esac
12174       ;;
12175
12176     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12177       # PIC is the default for these OSes.
12178       ;;
12179
12180     mingw* | cygwin* | pw32* | os2* | cegcc*)
12181       # This hack is so that the source file can tell whether it is being
12182       # built for inclusion in a dll (and should export symbols for example).
12183       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12184       # (--disable-auto-import) libraries
12185       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12186       ;;
12187
12188     darwin* | rhapsody*)
12189       # PIC is the default on this platform
12190       # Common symbols not allowed in MH_DYLIB files
12191       lt_prog_compiler_pic_D='-fno-common'
12192       ;;
12193
12194     haiku*)
12195       # PIC is the default for Haiku.
12196       # The "-static" flag exists, but is broken.
12197       lt_prog_compiler_static_D=
12198       ;;
12199
12200     hpux*)
12201       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12202       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12203       # sets the default TLS model and affects inlining.
12204       case $host_cpu in
12205       hppa*64*)
12206         # +Z the default
12207         ;;
12208       *)
12209         lt_prog_compiler_pic_D='-fPIC'
12210         ;;
12211       esac
12212       ;;
12213
12214     interix[3-9]*)
12215       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12216       # Instead, we relocate shared libraries at runtime.
12217       ;;
12218
12219     msdosdjgpp*)
12220       # Just because we use GCC doesn't mean we suddenly get shared libraries
12221       # on systems that don't support them.
12222       lt_prog_compiler_can_build_shared_D=no
12223       enable_shared=no
12224       ;;
12225
12226     *nto* | *qnx*)
12227       # QNX uses GNU C++, but need to define -shared option too, otherwise
12228       # it will coredump.
12229       lt_prog_compiler_pic_D='-fPIC -shared'
12230       ;;
12231
12232     sysv4*MP*)
12233       if test -d /usr/nec; then
12234         lt_prog_compiler_pic_D=-Kconform_pic
12235       fi
12236       ;;
12237
12238     *)
12239       lt_prog_compiler_pic_D='-fPIC'
12240       ;;
12241     esac
12242
12243     case $cc_basename in
12244     nvcc*) # Cuda Compiler Driver 2.2
12245       lt_prog_compiler_wl_D='-Xlinker '
12246       lt_prog_compiler_pic_D='-Xcompiler -fPIC'
12247       ;;
12248     esac
12249   else
12250     # PORTME Check for flag to pass linker flags through the system compiler.
12251     case $host_os in
12252     aix*)
12253       lt_prog_compiler_wl_D='-Wl,'
12254       if test "$host_cpu" = ia64; then
12255         # AIX 5 now supports IA64 processor
12256         lt_prog_compiler_static_D='-Bstatic'
12257       else
12258         lt_prog_compiler_static_D='-bnso -bI:/lib/syscalls.exp'
12259       fi
12260       ;;
12261
12262     mingw* | cygwin* | pw32* | os2* | cegcc*)
12263       # This hack is so that the source file can tell whether it is being
12264       # built for inclusion in a dll (and should export symbols for example).
12265       lt_prog_compiler_pic_D='-DDLL_EXPORT'
12266       ;;
12267
12268     hpux9* | hpux10* | hpux11*)
12269       lt_prog_compiler_wl_D='-Wl,'
12270       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12271       # not for PA HP-UX.
12272       case $host_cpu in
12273       hppa*64*|ia64*)
12274         # +Z the default
12275         ;;
12276       *)
12277         lt_prog_compiler_pic_D='+Z'
12278         ;;
12279       esac
12280       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12281       lt_prog_compiler_static_D='${wl}-a ${wl}archive'
12282       ;;
12283
12284     irix5* | irix6* | nonstopux*)
12285       lt_prog_compiler_wl_D='-Wl,'
12286       # PIC (with -KPIC) is the default.
12287       lt_prog_compiler_static_D='-non_shared'
12288       ;;
12289
12290     linux* | k*bsd*-gnu | kopensolaris*-gnu)
12291       case $cc_basename in
12292       # old Intel for x86_64 which still supported -KPIC.
12293       ecc*)
12294         lt_prog_compiler_wl_D='-Wl,'
12295         lt_prog_compiler_pic_D='-KPIC'
12296         lt_prog_compiler_static_D='-static'
12297         ;;
12298       # icc used to be incompatible with GCC.
12299       # ICC 10 doesn't accept -KPIC any more.
12300       icc* | ifort*)
12301         lt_prog_compiler_wl_D='-Wl,'
12302         lt_prog_compiler_pic_D='-fPIC'
12303         lt_prog_compiler_static_D='-static'
12304         ;;
12305       # Lahey Fortran 8.1.
12306       lf95*)
12307         lt_prog_compiler_wl_D='-Wl,'
12308         lt_prog_compiler_pic_D='--shared'
12309         lt_prog_compiler_static_D='--static'
12310         ;;
12311       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12312         # Portland Group compilers (*not* the Pentium gcc compiler,
12313         # which looks to be a dead project)
12314         lt_prog_compiler_wl_D='-Wl,'
12315         lt_prog_compiler_pic_D='-fpic'
12316         lt_prog_compiler_static_D='-Bstatic'
12317         ;;
12318       ccc*)
12319         lt_prog_compiler_wl_D='-Wl,'
12320         # All Alpha code is PIC.
12321         lt_prog_compiler_static_D='-non_shared'
12322         ;;
12323       xl* | bgxl* | bgf* | mpixl*)
12324         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12325         lt_prog_compiler_wl_D='-Wl,'
12326         lt_prog_compiler_pic_D='-qpic'
12327         lt_prog_compiler_static_D='-qstaticlink'
12328         ;;
12329       *)
12330         case `$CC -V 2>&1 | sed 5q` in
12331         *Sun\ F* | *Sun*Fortran*)
12332           # Sun Fortran 8.3 passes all unrecognized flags to the linker
12333           lt_prog_compiler_pic_D='-KPIC'
12334           lt_prog_compiler_static_D='-Bstatic'
12335           lt_prog_compiler_wl_D=''
12336           ;;
12337         *Sun\ C*)
12338           # Sun C 5.9
12339           lt_prog_compiler_pic_D='-KPIC'
12340           lt_prog_compiler_static_D='-Bstatic'
12341           lt_prog_compiler_wl_D='-Wl,'
12342           ;;
12343         esac
12344         ;;
12345       esac
12346       ;;
12347
12348     newsos6)
12349       lt_prog_compiler_pic_D='-KPIC'
12350       lt_prog_compiler_static_D='-Bstatic'
12351       ;;
12352
12353     *nto* | *qnx*)
12354       # QNX uses GNU C++, but need to define -shared option too, otherwise
12355       # it will coredump.
12356       lt_prog_compiler_pic_D='-fPIC -shared'
12357       ;;
12358
12359     osf3* | osf4* | osf5*)
12360       lt_prog_compiler_wl_D='-Wl,'
12361       # All OSF/1 code is PIC.
12362       lt_prog_compiler_static_D='-non_shared'
12363       ;;
12364
12365     rdos*)
12366       lt_prog_compiler_static_D='-non_shared'
12367       ;;
12368
12369     solaris*)
12370       lt_prog_compiler_pic_D='-KPIC'
12371       lt_prog_compiler_static_D='-Bstatic'
12372       case $cc_basename in
12373       f77* | f90* | f95*)
12374         lt_prog_compiler_wl_D='-Qoption ld ';;
12375       *)
12376         lt_prog_compiler_wl_D='-Wl,';;
12377       esac
12378       ;;
12379
12380     sunos4*)
12381       lt_prog_compiler_wl_D='-Qoption ld '
12382       lt_prog_compiler_pic_D='-PIC'
12383       lt_prog_compiler_static_D='-Bstatic'
12384       ;;
12385
12386     sysv4 | sysv4.2uw2* | sysv4.3*)
12387       lt_prog_compiler_wl_D='-Wl,'
12388       lt_prog_compiler_pic_D='-KPIC'
12389       lt_prog_compiler_static_D='-Bstatic'
12390       ;;
12391
12392     sysv4*MP*)
12393       if test -d /usr/nec ;then
12394         lt_prog_compiler_pic_D='-Kconform_pic'
12395         lt_prog_compiler_static_D='-Bstatic'
12396       fi
12397       ;;
12398
12399     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12400       lt_prog_compiler_wl_D='-Wl,'
12401       lt_prog_compiler_pic_D='-KPIC'
12402       lt_prog_compiler_static_D='-Bstatic'
12403       ;;
12404
12405     unicos*)
12406       lt_prog_compiler_wl_D='-Wl,'
12407       lt_prog_compiler_can_build_shared_D=no
12408       ;;
12409
12410     uts4*)
12411       lt_prog_compiler_pic_D='-pic'
12412       lt_prog_compiler_static_D='-Bstatic'
12413       ;;
12414
12415     *)
12416       lt_prog_compiler_can_build_shared_D=no
12417       ;;
12418     esac
12419   fi
12420
12421 case $host_os in
12422   # For platforms which do not support PIC, -DPIC is meaningless:
12423   *djgpp*)
12424     lt_prog_compiler_pic_D=
12425     ;;
12426   *)
12427     lt_prog_compiler_pic_D="$lt_prog_compiler_pic_D"
12428     ;;
12429 esac
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_D" >&5
12431 $as_echo "$lt_prog_compiler_pic_D" >&6; }
12432
12433
12434
12435 #
12436 # Check to make sure the PIC flag actually works.
12437 #
12438 if test -n "$lt_prog_compiler_pic_D"; then
12439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_D works" >&5
12440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_D works... " >&6; }
12441 if ${lt_cv_prog_compiler_pic_works_D+:} false; then :
12442   $as_echo_n "(cached) " >&6
12443 else
12444   lt_cv_prog_compiler_pic_works_D=no
12445    ac_outfile=conftest.$ac_objext
12446    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12447    lt_compiler_flag="$lt_prog_compiler_pic_D"
12448    # Insert the option either (1) after the last *FLAGS variable, or
12449    # (2) before a word containing "conftest.", or (3) at the end.
12450    # Note that $ac_compile itself does not contain backslashes and begins
12451    # with a dollar sign (not a hyphen), so the echo should work correctly.
12452    # The option is referenced via a variable to avoid confusing sed.
12453    lt_compile=`echo "$ac_compile" | $SED \
12454    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12455    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12456    -e 's:$: $lt_compiler_flag:'`
12457    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12458    (eval "$lt_compile" 2>conftest.err)
12459    ac_status=$?
12460    cat conftest.err >&5
12461    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462    if (exit $ac_status) && test -s "$ac_outfile"; then
12463      # The compiler can only warn and ignore the option if not recognized
12464      # So say no if there are warnings other than the usual output.
12465      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12466      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12467      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12468        lt_cv_prog_compiler_pic_works_D=yes
12469      fi
12470    fi
12471    $RM conftest*
12472
12473 fi
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_D" >&5
12475 $as_echo "$lt_cv_prog_compiler_pic_works_D" >&6; }
12476
12477 if test x"$lt_cv_prog_compiler_pic_works_D" = xyes; then
12478     case $lt_prog_compiler_pic_D in
12479      "" | " "*) ;;
12480      *) lt_prog_compiler_pic_D=" $lt_prog_compiler_pic_D" ;;
12481      esac
12482 else
12483     lt_prog_compiler_pic_D=
12484      lt_prog_compiler_can_build_shared_D=no
12485 fi
12486
12487 fi
12488
12489
12490
12491 #
12492 # Check to make sure the static flag actually works.
12493 #
12494 wl=$lt_prog_compiler_wl_D eval lt_tmp_static_flag=\"$lt_prog_compiler_static_D\"
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12497 if ${lt_cv_prog_compiler_static_works_D+:} false; then :
12498   $as_echo_n "(cached) " >&6
12499 else
12500   lt_cv_prog_compiler_static_works_D=no
12501    save_LDFLAGS="$LDFLAGS"
12502    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12503    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12504    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12505      # The linker can only warn and ignore the option if not recognized
12506      # So say no if there are warnings
12507      if test -s conftest.err; then
12508        # Append any errors to the config.log.
12509        cat conftest.err 1>&5
12510        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12511        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12512        if diff conftest.exp conftest.er2 >/dev/null; then
12513          lt_cv_prog_compiler_static_works_D=yes
12514        fi
12515      else
12516        lt_cv_prog_compiler_static_works_D=yes
12517      fi
12518    fi
12519    $RM -r conftest*
12520    LDFLAGS="$save_LDFLAGS"
12521
12522 fi
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_D" >&5
12524 $as_echo "$lt_cv_prog_compiler_static_works_D" >&6; }
12525
12526 if test x"$lt_cv_prog_compiler_static_works_D" = xyes; then
12527     :
12528 else
12529     lt_prog_compiler_static_D=
12530 fi
12531
12532
12533
12534
12535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12537 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12538   $as_echo_n "(cached) " >&6
12539 else
12540   lt_cv_prog_compiler_c_o_D=no
12541    $RM -r conftest 2>/dev/null
12542    mkdir conftest
12543    cd conftest
12544    mkdir out
12545    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12546
12547    lt_compiler_flag="-o out/conftest2.$ac_objext"
12548    # Insert the option either (1) after the last *FLAGS variable, or
12549    # (2) before a word containing "conftest.", or (3) at the end.
12550    # Note that $ac_compile itself does not contain backslashes and begins
12551    # with a dollar sign (not a hyphen), so the echo should work correctly.
12552    lt_compile=`echo "$ac_compile" | $SED \
12553    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12554    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12555    -e 's:$: $lt_compiler_flag:'`
12556    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12557    (eval "$lt_compile" 2>out/conftest.err)
12558    ac_status=$?
12559    cat out/conftest.err >&5
12560    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12562    then
12563      # The compiler can only warn and ignore the option if not recognized
12564      # So say no if there are warnings
12565      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12566      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12567      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12568        lt_cv_prog_compiler_c_o_D=yes
12569      fi
12570    fi
12571    chmod u+w . 2>&5
12572    $RM conftest*
12573    # SGI C++ compiler will create directory out/ii_files/ for
12574    # template instantiation
12575    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12576    $RM out/* && rmdir out
12577    cd ..
12578    $RM -r conftest
12579    $RM conftest*
12580
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12583 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12584
12585
12586
12587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12589 if ${lt_cv_prog_compiler_c_o_D+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   lt_cv_prog_compiler_c_o_D=no
12593    $RM -r conftest 2>/dev/null
12594    mkdir conftest
12595    cd conftest
12596    mkdir out
12597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12598
12599    lt_compiler_flag="-o out/conftest2.$ac_objext"
12600    # Insert the option either (1) after the last *FLAGS variable, or
12601    # (2) before a word containing "conftest.", or (3) at the end.
12602    # Note that $ac_compile itself does not contain backslashes and begins
12603    # with a dollar sign (not a hyphen), so the echo should work correctly.
12604    lt_compile=`echo "$ac_compile" | $SED \
12605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12607    -e 's:$: $lt_compiler_flag:'`
12608    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12609    (eval "$lt_compile" 2>out/conftest.err)
12610    ac_status=$?
12611    cat out/conftest.err >&5
12612    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12614    then
12615      # The compiler can only warn and ignore the option if not recognized
12616      # So say no if there are warnings
12617      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12618      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12619      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12620        lt_cv_prog_compiler_c_o_D=yes
12621      fi
12622    fi
12623    chmod u+w . 2>&5
12624    $RM conftest*
12625    # SGI C++ compiler will create directory out/ii_files/ for
12626    # template instantiation
12627    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12628    $RM out/* && rmdir out
12629    cd ..
12630    $RM -r conftest
12631    $RM conftest*
12632
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_D" >&5
12635 $as_echo "$lt_cv_prog_compiler_c_o_D" >&6; }
12636
12637
12638
12639
12640 hard_links="nottested"
12641 if test "$lt_cv_prog_compiler_c_o_D" = no && test "$need_locks" != no; then
12642   # do not overwrite the value of need_locks provided by the user
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12644 $as_echo_n "checking if we can lock with hard links... " >&6; }
12645   hard_links=yes
12646   $RM conftest*
12647   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12648   touch conftest.a
12649   ln conftest.a conftest.b 2>&5 || hard_links=no
12650   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12652 $as_echo "$hard_links" >&6; }
12653   if test "$hard_links" = no; then
12654     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12655 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12656     need_locks=warn
12657   fi
12658 else
12659   need_locks=no
12660 fi
12661
12662
12663
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12665 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12666
12667   runpath_var=
12668   allow_undefined_flag_D=
12669   always_export_symbols_D=no
12670   archive_cmds_D=
12671   archive_expsym_cmds_D=
12672   compiler_needs_object_D=no
12673   enable_shared_with_static_runtimes_D=no
12674   export_dynamic_flag_spec_D=
12675   export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12676   hardcode_automatic_D=no
12677   hardcode_direct_D=no
12678   hardcode_direct_absolute_D=no
12679   hardcode_libdir_flag_spec_D=
12680   hardcode_libdir_flag_spec_ld_D=
12681   hardcode_libdir_separator_D=
12682   hardcode_minus_L_D=no
12683   hardcode_shlibpath_var_D=unsupported
12684   inherit_rpath_D=no
12685   link_all_deplibs_D=unknown
12686   module_cmds_D=
12687   module_expsym_cmds_D=
12688   old_archive_from_new_cmds_D=
12689   old_archive_from_expsyms_cmds_D=
12690   thread_safe_flag_spec_D=
12691   whole_archive_flag_spec_D=
12692   # include_expsyms should be a list of space-separated symbols to be *always*
12693   # included in the symbol list
12694   include_expsyms_D=
12695   # exclude_expsyms can be an extended regexp of symbols to exclude
12696   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12697   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12698   # as well as any symbol that contains `d'.
12699   exclude_expsyms_D='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12700   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12701   # platforms (ab)use it in PIC code, but their linkers get confused if
12702   # the symbol is explicitly referenced.  Since portable code cannot
12703   # rely on this symbol name, it's probably fine to never include it in
12704   # preloaded symbol tables.
12705   # Exclude shared library initialization/finalization symbols.
12706   extract_expsyms_cmds=
12707
12708   case $host_os in
12709   cygwin* | mingw* | pw32* | cegcc*)
12710     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12711     # When not using gcc, we currently assume that we are using
12712     # Microsoft Visual C++.
12713     if test "$GCC" != yes; then
12714       with_gnu_ld=no
12715     fi
12716     ;;
12717   interix*)
12718     # we just hope/assume this is gcc and not c89 (= MSVC++)
12719     with_gnu_ld=yes
12720     ;;
12721   openbsd*)
12722     with_gnu_ld=no
12723     ;;
12724   esac
12725
12726   ld_shlibs_D=yes
12727
12728   # On some targets, GNU ld is compatible enough with the native linker
12729   # that we're better off using the native interface for both.
12730   lt_use_gnu_ld_interface=no
12731   if test "$with_gnu_ld" = yes; then
12732     case $host_os in
12733       aix*)
12734         # The AIX port of GNU ld has always aspired to compatibility
12735         # with the native linker.  However, as the warning in the GNU ld
12736         # block says, versions before 2.19.5* couldn't really create working
12737         # shared libraries, regardless of the interface used.
12738         case `$LD -v 2>&1` in
12739           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12740           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12741           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12742           *)
12743             lt_use_gnu_ld_interface=yes
12744             ;;
12745         esac
12746         ;;
12747       *)
12748         lt_use_gnu_ld_interface=yes
12749         ;;
12750     esac
12751   fi
12752
12753   if test "$lt_use_gnu_ld_interface" = yes; then
12754     # If archive_cmds runs LD, not CC, wlarc should be empty
12755     wlarc='${wl}'
12756
12757     # Set some defaults for GNU ld with shared library support. These
12758     # are reset later if shared libraries are not supported. Putting them
12759     # here allows them to be overridden if necessary.
12760     runpath_var=LD_RUN_PATH
12761     hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12762     export_dynamic_flag_spec_D='${wl}--export-dynamic'
12763     # ancient GNU ld didn't support --whole-archive et. al.
12764     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12765       whole_archive_flag_spec_D="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12766     else
12767       whole_archive_flag_spec_D=
12768     fi
12769     supports_anon_versioning=no
12770     case `$LD -v 2>&1` in
12771       *GNU\ gold*) supports_anon_versioning=yes ;;
12772       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12773       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12774       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12775       *\ 2.11.*) ;; # other 2.11 versions
12776       *) supports_anon_versioning=yes ;;
12777     esac
12778
12779     # See if GNU ld supports shared libraries.
12780     case $host_os in
12781     aix[3-9]*)
12782       # On AIX/PPC, the GNU linker is very broken
12783       if test "$host_cpu" != ia64; then
12784         ld_shlibs_D=no
12785         cat <<_LT_EOF 1>&2
12786
12787 *** Warning: the GNU linker, at least up to release 2.19, is reported
12788 *** to be unable to reliably create shared libraries on AIX.
12789 *** Therefore, libtool is disabling shared libraries support.  If you
12790 *** really care for shared libraries, you may want to install binutils
12791 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12792 *** You will then need to restart the configuration process.
12793
12794 _LT_EOF
12795       fi
12796       ;;
12797
12798     amigaos*)
12799       case $host_cpu in
12800       powerpc)
12801             # see comment about AmigaOS4 .so support
12802             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12803             archive_expsym_cmds_D=''
12804         ;;
12805       m68k)
12806             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)'
12807             hardcode_libdir_flag_spec_D='-L$libdir'
12808             hardcode_minus_L_D=yes
12809         ;;
12810       esac
12811       ;;
12812
12813     beos*)
12814       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12815         allow_undefined_flag_D=unsupported
12816         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12817         # support --undefined.  This deserves some investigation.  FIXME
12818         archive_cmds_D='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12819       else
12820         ld_shlibs_D=no
12821       fi
12822       ;;
12823
12824     cygwin* | mingw* | pw32* | cegcc*)
12825       # _LT_TAGVAR(hardcode_libdir_flag_spec, D) is actually meaningless,
12826       # as there is no search path for DLLs.
12827       hardcode_libdir_flag_spec_D='-L$libdir'
12828       export_dynamic_flag_spec_D='${wl}--export-all-symbols'
12829       allow_undefined_flag_D=unsupported
12830       always_export_symbols_D=no
12831       enable_shared_with_static_runtimes_D=yes
12832       export_symbols_cmds_D='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12833
12834       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12835         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12836         # If the export-symbols file already is a .def file (1st line
12837         # is EXPORTS), use it as is; otherwise, prepend...
12838         archive_expsym_cmds_D='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12839           cp $export_symbols $output_objdir/$soname.def;
12840         else
12841           echo EXPORTS > $output_objdir/$soname.def;
12842           cat $export_symbols >> $output_objdir/$soname.def;
12843         fi~
12844         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12845       else
12846         ld_shlibs_D=no
12847       fi
12848       ;;
12849
12850     haiku*)
12851       archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12852       link_all_deplibs_D=yes
12853       ;;
12854
12855     interix[3-9]*)
12856       hardcode_direct_D=no
12857       hardcode_shlibpath_var_D=no
12858       hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
12859       export_dynamic_flag_spec_D='${wl}-E'
12860       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12861       # Instead, shared libraries are loaded at an image base (0x10000000 by
12862       # default) and relocated if they conflict, which is a slow very memory
12863       # consuming and fragmenting process.  To avoid this, we pick a random,
12864       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12865       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12866       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'
12867       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'
12868       ;;
12869
12870     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12871       tmp_diet=no
12872       if test "$host_os" = linux-dietlibc; then
12873         case $cc_basename in
12874           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12875         esac
12876       fi
12877       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12878          && test "$tmp_diet" = no
12879       then
12880         tmp_addflag=' $pic_flag'
12881         tmp_sharedflag='-shared'
12882         case $cc_basename,$host_cpu in
12883         pgcc*)                          # Portland Group C compiler
12884           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'
12885           tmp_addflag=' $pic_flag'
12886           ;;
12887         pgf77* | pgf90* | pgf95* | pgfortran*)
12888                                         # Portland Group f77 and f90 compilers
12889           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'
12890           tmp_addflag=' $pic_flag -Mnomain' ;;
12891         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12892           tmp_addflag=' -i_dynamic' ;;
12893         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12894           tmp_addflag=' -i_dynamic -nofor_main' ;;
12895         ifc* | ifort*)                  # Intel Fortran compiler
12896           tmp_addflag=' -nofor_main' ;;
12897         lf95*)                          # Lahey Fortran 8.1
12898           whole_archive_flag_spec_D=
12899           tmp_sharedflag='--shared' ;;
12900         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12901           tmp_sharedflag='-qmkshrobj'
12902           tmp_addflag= ;;
12903         nvcc*)  # Cuda Compiler Driver 2.2
12904           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'
12905           compiler_needs_object_D=yes
12906           ;;
12907         esac
12908         case `$CC -V 2>&1 | sed 5q` in
12909         *Sun\ C*)                       # Sun C 5.9
12910           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'
12911           compiler_needs_object_D=yes
12912           tmp_sharedflag='-G' ;;
12913         *Sun\ F*)                       # Sun Fortran 8.3
12914           tmp_sharedflag='-G' ;;
12915         esac
12916         archive_cmds_D='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12917
12918         if test "x$supports_anon_versioning" = xyes; then
12919           archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12920             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12921             echo "local: *; };" >> $output_objdir/$libname.ver~
12922             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12923         fi
12924
12925         case $cc_basename in
12926         xlf* | bgf* | bgxlf* | mpixlf*)
12927           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12928           whole_archive_flag_spec_D='--whole-archive$convenience --no-whole-archive'
12929           hardcode_libdir_flag_spec_D=
12930           hardcode_libdir_flag_spec_ld_D='-rpath $libdir'
12931           archive_cmds_D='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12932           if test "x$supports_anon_versioning" = xyes; then
12933             archive_expsym_cmds_D='echo "{ global:" > $output_objdir/$libname.ver~
12934               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12935               echo "local: *; };" >> $output_objdir/$libname.ver~
12936               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12937           fi
12938           ;;
12939         esac
12940       else
12941         ld_shlibs_D=no
12942       fi
12943       ;;
12944
12945     netbsd*)
12946       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12947         archive_cmds_D='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12948         wlarc=
12949       else
12950         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12951         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12952       fi
12953       ;;
12954
12955     solaris*)
12956       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12957         ld_shlibs_D=no
12958         cat <<_LT_EOF 1>&2
12959
12960 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12961 *** create shared libraries on Solaris systems.  Therefore, libtool
12962 *** is disabling shared libraries support.  We urge you to upgrade GNU
12963 *** binutils to release 2.9.1 or newer.  Another option is to modify
12964 *** your PATH or compiler configuration so that the native linker is
12965 *** used, and then restart.
12966
12967 _LT_EOF
12968       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12969         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12971       else
12972         ld_shlibs_D=no
12973       fi
12974       ;;
12975
12976     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12977       case `$LD -v 2>&1` in
12978         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12979         ld_shlibs_D=no
12980         cat <<_LT_EOF 1>&2
12981
12982 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12983 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12984 *** is disabling shared libraries support.  We urge you to upgrade GNU
12985 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12986 *** your PATH or compiler configuration so that the native linker is
12987 *** used, and then restart.
12988
12989 _LT_EOF
12990         ;;
12991         *)
12992           # For security reasons, it is highly recommended that you always
12993           # use absolute paths for naming shared libraries, and exclude the
12994           # DT_RUNPATH tag from executables and libraries.  But doing so
12995           # requires that you compile everything twice, which is a pain.
12996           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12997             hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
12998             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12999             archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13000           else
13001             ld_shlibs_D=no
13002           fi
13003         ;;
13004       esac
13005       ;;
13006
13007     sunos4*)
13008       archive_cmds_D='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13009       wlarc=
13010       hardcode_direct_D=yes
13011       hardcode_shlibpath_var_D=no
13012       ;;
13013
13014     *)
13015       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13016         archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13017         archive_expsym_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13018       else
13019         ld_shlibs_D=no
13020       fi
13021       ;;
13022     esac
13023
13024     if test "$ld_shlibs_D" = no; then
13025       runpath_var=
13026       hardcode_libdir_flag_spec_D=
13027       export_dynamic_flag_spec_D=
13028       whole_archive_flag_spec_D=
13029     fi
13030   else
13031     # PORTME fill in a description of your system's linker (not GNU ld)
13032     case $host_os in
13033     aix3*)
13034       allow_undefined_flag_D=unsupported
13035       always_export_symbols_D=yes
13036       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'
13037       # Note: this linker hardcodes the directories in LIBPATH if there
13038       # are no directories specified by -L.
13039       hardcode_minus_L_D=yes
13040       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13041         # Neither direct hardcoding nor static linking is supported with a
13042         # broken collect2.
13043         hardcode_direct_D=unsupported
13044       fi
13045       ;;
13046
13047     aix[4-9]*)
13048       if test "$host_cpu" = ia64; then
13049         # On IA64, the linker does run time linking by default, so we don't
13050         # have to do anything special.
13051         aix_use_runtimelinking=no
13052         exp_sym_flag='-Bexport'
13053         no_entry_flag=""
13054       else
13055         # If we're using GNU nm, then we don't want the "-C" option.
13056         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13057         # Also, AIX nm treats weak defined symbols like other global
13058         # defined symbols, whereas GNU nm marks them as "W".
13059         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13060           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'
13061         else
13062           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'
13063         fi
13064         aix_use_runtimelinking=no
13065
13066         # Test if we are trying to use run time linking or normal
13067         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13068         # need to do runtime linking.
13069         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13070           for ld_flag in $LDFLAGS; do
13071           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13072             aix_use_runtimelinking=yes
13073             break
13074           fi
13075           done
13076           ;;
13077         esac
13078
13079         exp_sym_flag='-bexport'
13080         no_entry_flag='-bnoentry'
13081       fi
13082
13083       # When large executables or shared objects are built, AIX ld can
13084       # have problems creating the table of contents.  If linking a library
13085       # or program results in "error TOC overflow" add -mminimal-toc to
13086       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13087       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13088
13089       archive_cmds_D=''
13090       hardcode_direct_D=yes
13091       hardcode_direct_absolute_D=yes
13092       hardcode_libdir_separator_D=':'
13093       link_all_deplibs_D=yes
13094       file_list_spec_D='${wl}-f,'
13095
13096       if test "$GCC" = yes; then
13097         case $host_os in aix4.[012]|aix4.[012].*)
13098         # We only want to do this on AIX 4.2 and lower, the check
13099         # below for broken collect2 doesn't work under 4.3+
13100           collect2name=`${CC} -print-prog-name=collect2`
13101           if test -f "$collect2name" &&
13102            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13103           then
13104           # We have reworked collect2
13105           :
13106           else
13107           # We have old collect2
13108           hardcode_direct_D=unsupported
13109           # It fails to find uninstalled libraries when the uninstalled
13110           # path is not listed in the libpath.  Setting hardcode_minus_L
13111           # to unsupported forces relinking
13112           hardcode_minus_L_D=yes
13113           hardcode_libdir_flag_spec_D='-L$libdir'
13114           hardcode_libdir_separator_D=
13115           fi
13116           ;;
13117         esac
13118         shared_flag='-shared'
13119         if test "$aix_use_runtimelinking" = yes; then
13120           shared_flag="$shared_flag "'${wl}-G'
13121         fi
13122       else
13123         # not using gcc
13124         if test "$host_cpu" = ia64; then
13125         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13126         # chokes on -Wl,-G. The following line is correct:
13127           shared_flag='-G'
13128         else
13129           if test "$aix_use_runtimelinking" = yes; then
13130             shared_flag='${wl}-G'
13131           else
13132             shared_flag='${wl}-bM:SRE'
13133           fi
13134         fi
13135       fi
13136
13137       export_dynamic_flag_spec_D='${wl}-bexpall'
13138       # It seems that -bexpall does not export symbols beginning with
13139       # underscore (_), so it is better to generate a list of symbols to export.
13140       always_export_symbols_D=yes
13141       if test "$aix_use_runtimelinking" = yes; then
13142         # Warning - without using the other runtime loading flags (-brtl),
13143         # -berok will link without error, but may produce a broken library.
13144         allow_undefined_flag_D='-berok'
13145         # Determine the default libpath from the value encoded in an
13146         # empty executable.
13147         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13148 /* end confdefs.h.  */
13149
13150 int
13151 main ()
13152 {
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 if ac_fn_c_try_link "$LINENO"; then :
13159
13160 lt_aix_libpath_sed='
13161     /Import File Strings/,/^$/ {
13162         /^0/ {
13163             s/^0  *\(.*\)$/\1/
13164             p
13165         }
13166     }'
13167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13168 # Check for a 64-bit object if we didn't find anything.
13169 if test -z "$aix_libpath"; then
13170   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13171 fi
13172 fi
13173 rm -f core conftest.err conftest.$ac_objext \
13174     conftest$ac_exeext conftest.$ac_ext
13175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13176
13177         hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13178         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"
13179       else
13180         if test "$host_cpu" = ia64; then
13181           hardcode_libdir_flag_spec_D='${wl}-R $libdir:/usr/lib:/lib'
13182           allow_undefined_flag_D="-z nodefs"
13183           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"
13184         else
13185          # Determine the default libpath from the value encoded in an
13186          # empty executable.
13187          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h.  */
13189
13190 int
13191 main ()
13192 {
13193
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_link "$LINENO"; then :
13199
13200 lt_aix_libpath_sed='
13201     /Import File Strings/,/^$/ {
13202         /^0/ {
13203             s/^0  *\(.*\)$/\1/
13204             p
13205         }
13206     }'
13207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 # Check for a 64-bit object if we didn't find anything.
13209 if test -z "$aix_libpath"; then
13210   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13211 fi
13212 fi
13213 rm -f core conftest.err conftest.$ac_objext \
13214     conftest$ac_exeext conftest.$ac_ext
13215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13216
13217          hardcode_libdir_flag_spec_D='${wl}-blibpath:$libdir:'"$aix_libpath"
13218           # Warning - without using the other run time loading flags,
13219           # -berok will link without error, but may produce a broken library.
13220           no_undefined_flag_D=' ${wl}-bernotok'
13221           allow_undefined_flag_D=' ${wl}-berok'
13222           if test "$with_gnu_ld" = yes; then
13223             # We only use this code for GNU lds that support --whole-archive.
13224             whole_archive_flag_spec_D='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13225           else
13226             # Exported symbols can be pulled into shared objects from archives
13227             whole_archive_flag_spec_D='$convenience'
13228           fi
13229           archive_cmds_need_lc_D=yes
13230           # This is similar to how AIX traditionally builds its shared libraries.
13231           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'
13232         fi
13233       fi
13234       ;;
13235
13236     amigaos*)
13237       case $host_cpu in
13238       powerpc)
13239             # see comment about AmigaOS4 .so support
13240             archive_cmds_D='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241             archive_expsym_cmds_D=''
13242         ;;
13243       m68k)
13244             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)'
13245             hardcode_libdir_flag_spec_D='-L$libdir'
13246             hardcode_minus_L_D=yes
13247         ;;
13248       esac
13249       ;;
13250
13251     bsdi[45]*)
13252       export_dynamic_flag_spec_D=-rdynamic
13253       ;;
13254
13255     cygwin* | mingw* | pw32* | cegcc*)
13256       # When not using gcc, we currently assume that we are using
13257       # Microsoft Visual C++.
13258       # hardcode_libdir_flag_spec is actually meaningless, as there is
13259       # no search path for DLLs.
13260       hardcode_libdir_flag_spec_D=' '
13261       allow_undefined_flag_D=unsupported
13262       # Tell ltmain to make .lib files, not .a files.
13263       libext=lib
13264       # Tell ltmain to make .dll files, not .so files.
13265       shrext_cmds=".dll"
13266       # FIXME: Setting linknames here is a bad hack.
13267       archive_cmds_D='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13268       # The linker will automatically build a .lib file if we build a DLL.
13269       old_archive_from_new_cmds_D='true'
13270       # FIXME: Should let the user specify the lib program.
13271       old_archive_cmds_D='lib -OUT:$oldlib$oldobjs$old_deplibs'
13272       fix_srcfile_path_D='`cygpath -w "$srcfile"`'
13273       enable_shared_with_static_runtimes_D=yes
13274       ;;
13275
13276     darwin* | rhapsody*)
13277
13278
13279   archive_cmds_need_lc_D=no
13280   hardcode_direct_D=no
13281   hardcode_automatic_D=yes
13282   hardcode_shlibpath_var_D=unsupported
13283   if test "$lt_cv_ld_force_load" = "yes"; then
13284     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\"`'
13285   else
13286     whole_archive_flag_spec_D=''
13287   fi
13288   link_all_deplibs_D=yes
13289   allow_undefined_flag_D="$_lt_dar_allow_undefined"
13290   case $cc_basename in
13291      ifort*) _lt_dar_can_shared=yes ;;
13292      *) _lt_dar_can_shared=$GCC ;;
13293   esac
13294   if test "$_lt_dar_can_shared" = "yes"; then
13295     output_verbose_link_cmd=func_echo_all
13296     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}"
13297     module_cmds_D="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13298     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}"
13299     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}"
13300
13301   else
13302   ld_shlibs_D=no
13303   fi
13304
13305       ;;
13306
13307     dgux*)
13308       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13309       hardcode_libdir_flag_spec_D='-L$libdir'
13310       hardcode_shlibpath_var_D=no
13311       ;;
13312
13313     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13314     # support.  Future versions do this automatically, but an explicit c++rt0.o
13315     # does not break anything, and helps significantly (at the cost of a little
13316     # extra space).
13317     freebsd2.2*)
13318       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13319       hardcode_libdir_flag_spec_D='-R$libdir'
13320       hardcode_direct_D=yes
13321       hardcode_shlibpath_var_D=no
13322       ;;
13323
13324     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13325     freebsd2.*)
13326       archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13327       hardcode_direct_D=yes
13328       hardcode_minus_L_D=yes
13329       hardcode_shlibpath_var_D=no
13330       ;;
13331
13332     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13333     freebsd* | dragonfly*)
13334       archive_cmds_D='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13335       hardcode_libdir_flag_spec_D='-R$libdir'
13336       hardcode_direct_D=yes
13337       hardcode_shlibpath_var_D=no
13338       ;;
13339
13340     hpux9*)
13341       if test "$GCC" = yes; then
13342         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'
13343       else
13344         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'
13345       fi
13346       hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13347       hardcode_libdir_separator_D=:
13348       hardcode_direct_D=yes
13349
13350       # hardcode_minus_L: Not really in the search PATH,
13351       # but as the default location of the library.
13352       hardcode_minus_L_D=yes
13353       export_dynamic_flag_spec_D='${wl}-E'
13354       ;;
13355
13356     hpux10*)
13357       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13358         archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13359       else
13360         archive_cmds_D='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13361       fi
13362       if test "$with_gnu_ld" = no; then
13363         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13364         hardcode_libdir_flag_spec_ld_D='+b $libdir'
13365         hardcode_libdir_separator_D=:
13366         hardcode_direct_D=yes
13367         hardcode_direct_absolute_D=yes
13368         export_dynamic_flag_spec_D='${wl}-E'
13369         # hardcode_minus_L: Not really in the search PATH,
13370         # but as the default location of the library.
13371         hardcode_minus_L_D=yes
13372       fi
13373       ;;
13374
13375     hpux11*)
13376       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13377         case $host_cpu in
13378         hppa*64*)
13379           archive_cmds_D='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13380           ;;
13381         ia64*)
13382           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13383           ;;
13384         *)
13385           archive_cmds_D='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13386           ;;
13387         esac
13388       else
13389         case $host_cpu in
13390         hppa*64*)
13391           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13392           ;;
13393         ia64*)
13394           archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13395           ;;
13396         *)
13397         archive_cmds_D='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13398           ;;
13399         esac
13400       fi
13401       if test "$with_gnu_ld" = no; then
13402         hardcode_libdir_flag_spec_D='${wl}+b ${wl}$libdir'
13403         hardcode_libdir_separator_D=:
13404
13405         case $host_cpu in
13406         hppa*64*|ia64*)
13407           hardcode_direct_D=no
13408           hardcode_shlibpath_var_D=no
13409           ;;
13410         *)
13411           hardcode_direct_D=yes
13412           hardcode_direct_absolute_D=yes
13413           export_dynamic_flag_spec_D='${wl}-E'
13414
13415           # hardcode_minus_L: Not really in the search PATH,
13416           # but as the default location of the library.
13417           hardcode_minus_L_D=yes
13418           ;;
13419         esac
13420       fi
13421       ;;
13422
13423     irix5* | irix6* | nonstopux*)
13424       if test "$GCC" = yes; then
13425         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'
13426         # Try to use the -exported_symbol ld option, if it does not
13427         # work, assume that -exports_file does not work either and
13428         # implicitly export all symbols.
13429         save_LDFLAGS="$LDFLAGS"
13430         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13431         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h.  */
13433 int foo(void) {}
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436   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'
13437
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext \
13440     conftest$ac_exeext conftest.$ac_ext
13441         LDFLAGS="$save_LDFLAGS"
13442       else
13443         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'
13444         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'
13445       fi
13446       archive_cmds_need_lc_D='no'
13447       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13448       hardcode_libdir_separator_D=:
13449       inherit_rpath_D=yes
13450       link_all_deplibs_D=yes
13451       ;;
13452
13453     netbsd*)
13454       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13455         archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13456       else
13457         archive_cmds_D='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13458       fi
13459       hardcode_libdir_flag_spec_D='-R$libdir'
13460       hardcode_direct_D=yes
13461       hardcode_shlibpath_var_D=no
13462       ;;
13463
13464     newsos6)
13465       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466       hardcode_direct_D=yes
13467       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13468       hardcode_libdir_separator_D=:
13469       hardcode_shlibpath_var_D=no
13470       ;;
13471
13472     *nto* | *qnx*)
13473       ;;
13474
13475     openbsd*)
13476       if test -f /usr/libexec/ld.so; then
13477         hardcode_direct_D=yes
13478         hardcode_shlibpath_var_D=no
13479         hardcode_direct_absolute_D=yes
13480         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13481           archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13482           archive_expsym_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13483           hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13484           export_dynamic_flag_spec_D='${wl}-E'
13485         else
13486           case $host_os in
13487            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13488              archive_cmds_D='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13489              hardcode_libdir_flag_spec_D='-R$libdir'
13490              ;;
13491            *)
13492              archive_cmds_D='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13493              hardcode_libdir_flag_spec_D='${wl}-rpath,$libdir'
13494              ;;
13495           esac
13496         fi
13497       else
13498         ld_shlibs_D=no
13499       fi
13500       ;;
13501
13502     os2*)
13503       hardcode_libdir_flag_spec_D='-L$libdir'
13504       hardcode_minus_L_D=yes
13505       allow_undefined_flag_D=unsupported
13506       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'
13507       old_archive_from_new_cmds_D='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13508       ;;
13509
13510     osf3*)
13511       if test "$GCC" = yes; then
13512         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13513         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'
13514       else
13515         allow_undefined_flag_D=' -expect_unresolved \*'
13516         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'
13517       fi
13518       archive_cmds_need_lc_D='no'
13519       hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13520       hardcode_libdir_separator_D=:
13521       ;;
13522
13523     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13524       if test "$GCC" = yes; then
13525         allow_undefined_flag_D=' ${wl}-expect_unresolved ${wl}\*'
13526         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'
13527         hardcode_libdir_flag_spec_D='${wl}-rpath ${wl}$libdir'
13528       else
13529         allow_undefined_flag_D=' -expect_unresolved \*'
13530         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'
13531         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~
13532         $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'
13533
13534         # Both c and cxx compiler support -rpath directly
13535         hardcode_libdir_flag_spec_D='-rpath $libdir'
13536       fi
13537       archive_cmds_need_lc_D='no'
13538       hardcode_libdir_separator_D=:
13539       ;;
13540
13541     solaris*)
13542       no_undefined_flag_D=' -z defs'
13543       if test "$GCC" = yes; then
13544         wlarc='${wl}'
13545         archive_cmds_D='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13546         archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13547           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13548       else
13549         case `$CC -V 2>&1` in
13550         *"Compilers 5.0"*)
13551           wlarc=''
13552           archive_cmds_D='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13554           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13555           ;;
13556         *)
13557           wlarc='${wl}'
13558           archive_cmds_D='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13559           archive_expsym_cmds_D='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13560           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13561           ;;
13562         esac
13563       fi
13564       hardcode_libdir_flag_spec_D='-R$libdir'
13565       hardcode_shlibpath_var_D=no
13566       case $host_os in
13567       solaris2.[0-5] | solaris2.[0-5].*) ;;
13568       *)
13569         # The compiler driver will combine and reorder linker options,
13570         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13571         # but is careful enough not to reorder.
13572         # Supported since Solaris 2.6 (maybe 2.5.1?)
13573         if test "$GCC" = yes; then
13574           whole_archive_flag_spec_D='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13575         else
13576           whole_archive_flag_spec_D='-z allextract$convenience -z defaultextract'
13577         fi
13578         ;;
13579       esac
13580       link_all_deplibs_D=yes
13581       ;;
13582
13583     sunos4*)
13584       if test "x$host_vendor" = xsequent; then
13585         # Use $CC to link under sequent, because it throws in some extra .o
13586         # files that make .init and .fini sections work.
13587         archive_cmds_D='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13588       else
13589         archive_cmds_D='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13590       fi
13591       hardcode_libdir_flag_spec_D='-L$libdir'
13592       hardcode_direct_D=yes
13593       hardcode_minus_L_D=yes
13594       hardcode_shlibpath_var_D=no
13595       ;;
13596
13597     sysv4)
13598       case $host_vendor in
13599         sni)
13600           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601           hardcode_direct_D=yes # is this really true???
13602         ;;
13603         siemens)
13604           ## LD is ld it makes a PLAMLIB
13605           ## CC just makes a GrossModule.
13606           archive_cmds_D='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13607           reload_cmds_D='$CC -r -o $output$reload_objs'
13608           hardcode_direct_D=no
13609         ;;
13610         motorola)
13611           archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13612           hardcode_direct_D=no #Motorola manual says yes, but my tests say they lie
13613         ;;
13614       esac
13615       runpath_var='LD_RUN_PATH'
13616       hardcode_shlibpath_var_D=no
13617       ;;
13618
13619     sysv4.3*)
13620       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13621       hardcode_shlibpath_var_D=no
13622       export_dynamic_flag_spec_D='-Bexport'
13623       ;;
13624
13625     sysv4*MP*)
13626       if test -d /usr/nec; then
13627         archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13628         hardcode_shlibpath_var_D=no
13629         runpath_var=LD_RUN_PATH
13630         hardcode_runpath_var=yes
13631         ld_shlibs_D=yes
13632       fi
13633       ;;
13634
13635     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13636       no_undefined_flag_D='${wl}-z,text'
13637       archive_cmds_need_lc_D=no
13638       hardcode_shlibpath_var_D=no
13639       runpath_var='LD_RUN_PATH'
13640
13641       if test "$GCC" = yes; then
13642         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644       else
13645         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13646         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647       fi
13648       ;;
13649
13650     sysv5* | sco3.2v5* | sco5v6*)
13651       # Note: We can NOT use -z defs as we might desire, because we do not
13652       # link with -lc, and that would cause any symbols used from libc to
13653       # always be unresolved, which means just about no library would
13654       # ever link correctly.  If we're not using GNU ld we use -z text
13655       # though, which does catch some bad symbols but isn't as heavy-handed
13656       # as -z defs.
13657       no_undefined_flag_D='${wl}-z,text'
13658       allow_undefined_flag_D='${wl}-z,nodefs'
13659       archive_cmds_need_lc_D=no
13660       hardcode_shlibpath_var_D=no
13661       hardcode_libdir_flag_spec_D='${wl}-R,$libdir'
13662       hardcode_libdir_separator_D=':'
13663       link_all_deplibs_D=yes
13664       export_dynamic_flag_spec_D='${wl}-Bexport'
13665       runpath_var='LD_RUN_PATH'
13666
13667       if test "$GCC" = yes; then
13668         archive_cmds_D='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669         archive_expsym_cmds_D='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670       else
13671         archive_cmds_D='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672         archive_expsym_cmds_D='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673       fi
13674       ;;
13675
13676     uts4*)
13677       archive_cmds_D='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13678       hardcode_libdir_flag_spec_D='-L$libdir'
13679       hardcode_shlibpath_var_D=no
13680       ;;
13681
13682     *)
13683       ld_shlibs_D=no
13684       ;;
13685     esac
13686
13687     if test x$host_vendor = xsni; then
13688       case $host in
13689       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13690         export_dynamic_flag_spec_D='${wl}-Blargedynsym'
13691         ;;
13692       esac
13693     fi
13694   fi
13695
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_D" >&5
13697 $as_echo "$ld_shlibs_D" >&6; }
13698 test "$ld_shlibs_D" = no && can_build_shared=no
13699
13700 with_gnu_ld_D=$with_gnu_ld
13701
13702
13703
13704
13705
13706
13707 #
13708 # Do we need to explicitly link libc?
13709 #
13710 case "x$archive_cmds_need_lc_D" in
13711 x|xyes)
13712   # Assume -lc should be added
13713   archive_cmds_need_lc_D=yes
13714
13715   if test "$enable_shared" = yes && test "$GCC" = yes; then
13716     case $archive_cmds_D in
13717     *'~'*)
13718       # FIXME: we may have to deal with multi-command sequences.
13719       ;;
13720     '$CC '*)
13721       # Test whether the compiler implicitly links with -lc since on some
13722       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13723       # to ld, don't add -lc before -lgcc.
13724       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13725 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13726 if ${lt_cv_archive_cmds_need_lc_D+:} false; then :
13727   $as_echo_n "(cached) " >&6
13728 else
13729   $RM conftest*
13730         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13731
13732         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13733   (eval $ac_compile) 2>&5
13734   ac_status=$?
13735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736   test $ac_status = 0; } 2>conftest.err; then
13737           soname=conftest
13738           lib=conftest
13739           libobjs=conftest.$ac_objext
13740           deplibs=
13741           wl=$lt_prog_compiler_wl_D
13742           pic_flag=$lt_prog_compiler_pic_D
13743           compiler_flags=-v
13744           linker_flags=-v
13745           verstring=
13746           output_objdir=.
13747           libname=conftest
13748           lt_save_allow_undefined_flag=$allow_undefined_flag_D
13749           allow_undefined_flag_D=
13750           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13751   (eval $archive_cmds_D 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13752   ac_status=$?
13753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13754   test $ac_status = 0; }
13755           then
13756             lt_cv_archive_cmds_need_lc_D=no
13757           else
13758             lt_cv_archive_cmds_need_lc_D=yes
13759           fi
13760           allow_undefined_flag_D=$lt_save_allow_undefined_flag
13761         else
13762           cat conftest.err 1>&5
13763         fi
13764         $RM conftest*
13765
13766 fi
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_D" >&5
13768 $as_echo "$lt_cv_archive_cmds_need_lc_D" >&6; }
13769       archive_cmds_need_lc_D=$lt_cv_archive_cmds_need_lc_D
13770       ;;
13771     esac
13772   fi
13773   ;;
13774 esac
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13840 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13841 hardcode_action_D=
13842 if test -n "$hardcode_libdir_flag_spec_D" ||
13843    test -n "$runpath_var_D" ||
13844    test "X$hardcode_automatic_D" = "Xyes" ; then
13845
13846   # We can hardcode non-existent directories.
13847   if test "$hardcode_direct_D" != no &&
13848      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13849      # have to relink, otherwise we might link with an installed library
13850      # when we should be linking with a yet-to-be-installed one
13851      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, D)" != no &&
13852      test "$hardcode_minus_L_D" != no; then
13853     # Linking always hardcodes the temporary library directory.
13854     hardcode_action_D=relink
13855   else
13856     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13857     hardcode_action_D=immediate
13858   fi
13859 else
13860   # We cannot hardcode anything, or else we can only hardcode existing
13861   # directories.
13862   hardcode_action_D=unsupported
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_D" >&5
13865 $as_echo "$hardcode_action_D" >&6; }
13866
13867 if test "$hardcode_action_D" = relink ||
13868    test "$inherit_rpath_D" = yes; then
13869   # Fast installation is not supported
13870   enable_fast_install=no
13871 elif test "$shlibpath_overrides_runpath" = yes ||
13872      test "$enable_shared" = no; then
13873   # Fast installation is not necessary
13874   enable_fast_install=needless
13875 fi
13876
13877
13878
13879
13880
13881
13882
13883 fi
13884
13885 ac_ext=c
13886 ac_cpp='$CPP $CPPFLAGS'
13887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13890
13891
13892 GCC=$lt_save_GCC
13893 CC=$lt_save_CC
13894 CFLAGS=$lt_save_CFLAGS
13895
13896   GDCFLAGS=$gdc_save_DFLAGS
13897
13898
13899 # libtool variables for Phobos shared and position-independent compiles.
13900 #
13901 # Use phobos_compiler_shared_flag to designate the compile-time flags for
13902 # creating shared objects. Default: -fversion=Shared.
13903 #
13904 # Use phobos_compiler_pic_flag to designate the compile-time flags for
13905 # creating position-independent objects. This varies with the target
13906 # hardware and operating system, but is often: -fPIC.
13907 #
13908 # The distinction between pic and shared compilation flags is not present in
13909 # libtool, and so we make it here.  How it is handled is that in shared
13910 # compilations the `lt_prog_compiler_pic_D' variable is used to instead
13911 # ensure that conditional compilation of shared runtime code is compiled in.
13912 # The original PIC flags are then used in the compilation of every object.
13913 #
13914 # Why are objects destined for libgphobos.a compiled with -fPIC?
13915 # Because -fPIC is not harmful to use for objects destined for static
13916 # libraries. In addition, using -fPIC will allow the use of static
13917 # libgphobos.a in the creation of other D shared libraries.
13918 if test "$enable_shared" = yes; then
13919   phobos_compiler_pic_flag="$lt_prog_compiler_pic_D"
13920   phobos_compiler_shared_flag="-fversion=Shared"
13921 else
13922   phobos_compiler_pic_flag=
13923   phobos_compiler_shared_flag=
13924 fi
13925
13926
13927
13928 # Override the libtool's pic_flag and pic_mode.
13929 # Do this step after AM_PROG_LIBTOOL, but before AC_OUTPUT.
13930 # NB: this impacts --with-pic and --without-pic.
13931 lt_prog_compiler_pic_D="$phobos_compiler_shared_flag"
13932 pic_mode='default'
13933
13934 # Determine what GCC version number to use in filesystem paths.
13935
13936   get_gcc_base_ver="cat"
13937
13938 # Check whether --with-gcc-major-version-only was given.
13939 if test "${with_gcc_major_version_only+set}" = set; then :
13940   withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
13941         get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
13942       fi
13943
13944 fi
13945
13946
13947
13948
13949 # libphobos/libdruntime specific options and feature detection
13950
13951   # These need to be absolute paths, yet at the same time need to
13952   # canonicalize only relative paths, because then amd will not unmount
13953   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
13954   libphobos_builddir=`${PWDCMD-pwd}`
13955   case $srcdir in
13956     \\/$* | ?:\\/*) libphobos_srcdir=${srcdir} ;;
13957     *) libphobos_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
13958   esac
13959
13960
13961
13962
13963   if test ${multilib} = yes; then
13964     multilib_arg="--enable-multilib"
13965   else
13966     multilib_arg=
13967   fi
13968
13969
13970   # Check whether --enable-werror was given.
13971 if test "${enable_werror+set}" = set; then :
13972   enableval=$enable_werror;
13973 fi
13974
13975   WERROR_FLAG=""
13976   if test "x$enable_werror" = "xyes"; then
13977       WERROR_FLAG="-Werror"
13978   fi
13979
13980 DRUNTIME_GC
13981
13982   druntime_target_cpu_parsed=""
13983   case "$target_cpu" in
13984       aarch64*)
13985                druntime_target_cpu_parsed="aarch64"
13986                ;;
13987       arm*)    druntime_target_cpu_parsed="arm"
13988                ;;
13989       mips*)   druntime_target_cpu_parsed="mips"
13990                ;;
13991       powerpc) druntime_target_cpu_parsed="powerpc"
13992                ;;
13993       powerpc64)
13994                druntime_target_cpu_parsed="powerpc64"
13995                ;;
13996       i[34567]86|x86_64)
13997                druntime_target_cpu_parsed="x86"
13998                ;;
13999       s390x)
14000                druntime_target_cpu_parsed="s390x"
14001                ;;
14002       s390)
14003                druntime_target_cpu_parsed="s390"
14004                ;;
14005   esac
14006    if test "$druntime_target_cpu_parsed" = "aarch64"; then
14007   DRUNTIME_CPU_AARCH64_TRUE=
14008   DRUNTIME_CPU_AARCH64_FALSE='#'
14009 else
14010   DRUNTIME_CPU_AARCH64_TRUE='#'
14011   DRUNTIME_CPU_AARCH64_FALSE=
14012 fi
14013
14014    if test "$druntime_target_cpu_parsed" = "arm"; then
14015   DRUNTIME_CPU_ARM_TRUE=
14016   DRUNTIME_CPU_ARM_FALSE='#'
14017 else
14018   DRUNTIME_CPU_ARM_TRUE='#'
14019   DRUNTIME_CPU_ARM_FALSE=
14020 fi
14021
14022    if test "$druntime_target_cpu_parsed" = "mips"; then
14023   DRUNTIME_CPU_MIPS_TRUE=
14024   DRUNTIME_CPU_MIPS_FALSE='#'
14025 else
14026   DRUNTIME_CPU_MIPS_TRUE='#'
14027   DRUNTIME_CPU_MIPS_FALSE=
14028 fi
14029
14030    if test "$druntime_target_cpu_parsed" = "powerpc"; then
14031   DRUNTIME_CPU_POWERPC_TRUE=
14032   DRUNTIME_CPU_POWERPC_FALSE='#'
14033 else
14034   DRUNTIME_CPU_POWERPC_TRUE='#'
14035   DRUNTIME_CPU_POWERPC_FALSE=
14036 fi
14037
14038    if test "$druntime_target_cpu_parsed" = "powerpc64"; then
14039   DRUNTIME_CPU_POWERPC64_TRUE=
14040   DRUNTIME_CPU_POWERPC64_FALSE='#'
14041 else
14042   DRUNTIME_CPU_POWERPC64_TRUE='#'
14043   DRUNTIME_CPU_POWERPC64_FALSE=
14044 fi
14045
14046    if test "$druntime_target_cpu_parsed" = "x86"; then
14047   DRUNTIME_CPU_X86_TRUE=
14048   DRUNTIME_CPU_X86_FALSE='#'
14049 else
14050   DRUNTIME_CPU_X86_TRUE='#'
14051   DRUNTIME_CPU_X86_FALSE=
14052 fi
14053
14054    if test "$druntime_target_cpu_parsed" = "s390x"; then
14055   DRUNTIME_CPU_SYSTEMZ_TRUE=
14056   DRUNTIME_CPU_SYSTEMZ_FALSE='#'
14057 else
14058   DRUNTIME_CPU_SYSTEMZ_TRUE='#'
14059   DRUNTIME_CPU_SYSTEMZ_FALSE=
14060 fi
14061
14062    if test "$druntime_target_cpu_parsed" = "s390"; then
14063   DRUNTIME_CPU_S390_TRUE=
14064   DRUNTIME_CPU_S390_FALSE='#'
14065 else
14066   DRUNTIME_CPU_S390_TRUE='#'
14067   DRUNTIME_CPU_S390_FALSE=
14068 fi
14069
14070
14071
14072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target OS" >&5
14073 $as_echo_n "checking for target OS... " >&6; }
14074 if ${druntime_cv_target_os+:} false; then :
14075   $as_echo_n "(cached) " >&6
14076 else
14077   druntime_cv_target_os=`echo $target_os | sed 's/^\([A-Za-z_]+\)/\1/'`
14078 fi
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_target_os" >&5
14080 $as_echo "$druntime_cv_target_os" >&6; }
14081     if test -z "$druntime_cv_target_os"; then :
14082   as_fn_error $? "can't detect target OS" "$LINENO" 5
14083 fi
14084
14085
14086
14087
14088   druntime_target_os_parsed=""
14089   case "$druntime_cv_target_os" in
14090       aix*)    druntime_target_os_parsed="aix"
14091                ;;
14092       *android*)
14093                druntime_target_os_parsed="android"
14094                ;;
14095       darwin*) druntime_target_os_parsed="darwin"
14096                ;;
14097       dragonfly*)
14098                druntime_target_os_parsed="dragonflybsd"
14099                ;;
14100       freebsd*|k*bsd*-gnu)
14101                druntime_target_os_parsed="freebsd"
14102                ;;
14103       openbsd*)
14104                druntime_target_os_parsed="openbsd"
14105                ;;
14106       netbsd*)
14107                druntime_target_os_parsed="netbsd"
14108                ;;
14109       linux*)  druntime_target_os_parsed="linux"
14110                ;;
14111       mingw*)  druntime_target_os_parsed="mingw"
14112              ;;
14113       *solaris*) druntime_target_os_parsed="solaris"
14114   esac
14115    if test "$druntime_target_os_parsed" = "aix"; then
14116   DRUNTIME_OS_AIX_TRUE=
14117   DRUNTIME_OS_AIX_FALSE='#'
14118 else
14119   DRUNTIME_OS_AIX_TRUE='#'
14120   DRUNTIME_OS_AIX_FALSE=
14121 fi
14122
14123    if test "$druntime_target_os_parsed" = "android"; then
14124   DRUNTIME_OS_ANDROID_TRUE=
14125   DRUNTIME_OS_ANDROID_FALSE='#'
14126 else
14127   DRUNTIME_OS_ANDROID_TRUE='#'
14128   DRUNTIME_OS_ANDROID_FALSE=
14129 fi
14130
14131    if test "$druntime_target_os_parsed" = "darwin"; then
14132   DRUNTIME_OS_DARWIN_TRUE=
14133   DRUNTIME_OS_DARWIN_FALSE='#'
14134 else
14135   DRUNTIME_OS_DARWIN_TRUE='#'
14136   DRUNTIME_OS_DARWIN_FALSE=
14137 fi
14138
14139    if test "$druntime_target_os_parsed" = "dragonflybsd"; then
14140   DRUNTIME_OS_DRAGONFLYBSD_TRUE=
14141   DRUNTIME_OS_DRAGONFLYBSD_FALSE='#'
14142 else
14143   DRUNTIME_OS_DRAGONFLYBSD_TRUE='#'
14144   DRUNTIME_OS_DRAGONFLYBSD_FALSE=
14145 fi
14146
14147    if test "$druntime_target_os_parsed" = "freebsd"; then
14148   DRUNTIME_OS_FREEBSD_TRUE=
14149   DRUNTIME_OS_FREEBSD_FALSE='#'
14150 else
14151   DRUNTIME_OS_FREEBSD_TRUE='#'
14152   DRUNTIME_OS_FREEBSD_FALSE=
14153 fi
14154
14155    if test "$druntime_target_os_parsed" = "netbsd"; then
14156   DRUNTIME_OS_NETBSD_TRUE=
14157   DRUNTIME_OS_NETBSD_FALSE='#'
14158 else
14159   DRUNTIME_OS_NETBSD_TRUE='#'
14160   DRUNTIME_OS_NETBSD_FALSE=
14161 fi
14162
14163    if test "$druntime_target_os_parsed" = "openbsd"; then
14164   DRUNTIME_OS_OPENBSD_TRUE=
14165   DRUNTIME_OS_OPENBSD_FALSE='#'
14166 else
14167   DRUNTIME_OS_OPENBSD_TRUE='#'
14168   DRUNTIME_OS_OPENBSD_FALSE=
14169 fi
14170
14171    if test "$druntime_target_os_parsed" = "linux"; then
14172   DRUNTIME_OS_LINUX_TRUE=
14173   DRUNTIME_OS_LINUX_FALSE='#'
14174 else
14175   DRUNTIME_OS_LINUX_TRUE='#'
14176   DRUNTIME_OS_LINUX_FALSE=
14177 fi
14178
14179    if test "$druntime_target_os_parsed" = "mingw"; then
14180   DRUNTIME_OS_MINGW_TRUE=
14181   DRUNTIME_OS_MINGW_FALSE='#'
14182 else
14183   DRUNTIME_OS_MINGW_TRUE='#'
14184   DRUNTIME_OS_MINGW_FALSE=
14185 fi
14186
14187    if test "$druntime_target_os_parsed" = "solaris"; then
14188   DRUNTIME_OS_SOLARIS_TRUE=
14189   DRUNTIME_OS_SOLARIS_FALSE='#'
14190 else
14191   DRUNTIME_OS_SOLARIS_TRUE='#'
14192   DRUNTIME_OS_SOLARIS_FALSE=
14193 fi
14194
14195
14196   druntime_target_posix="no"
14197   case "$druntime_cv_target_os" in
14198     aix*|*bsd*|cygwin*|darwin*|gnu*|linux*|skyos*|*solaris*|sysv*)
14199       druntime_target_posix="yes"
14200       ;;
14201   esac
14202    if test "$druntime_target_posix" = "yes"; then
14203   DRUNTIME_OS_POSIX_TRUE=
14204   DRUNTIME_OS_POSIX_FALSE='#'
14205 else
14206   DRUNTIME_OS_POSIX_TRUE='#'
14207   DRUNTIME_OS_POSIX_FALSE=
14208 fi
14209
14210
14211
14212
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GDC" >&5
14214 $as_echo_n "checking for thread model used by GDC... " >&6; }
14215   d_thread_model=`$GDC -v 2>&1 | sed -n 's/^Thread model: //p'`
14216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d_thread_model" >&5
14217 $as_echo "$d_thread_model" >&6; }
14218
14219   # Map from thread model to thread interface.
14220
14221 case $d_thread_model in
14222     aix)    DCFG_THREAD_MODEL="Posix" ;;
14223     lynx)   DCFG_THREAD_MODEL="Posix" ;;
14224     posix)  DCFG_THREAD_MODEL="Posix" ;;
14225     single) DCFG_THREAD_MODEL="Single" ;;
14226     win32)  DCFG_THREAD_MODEL="Win32" ;;
14227     # TODO: These targets need porting.
14228     dce|mipssde|rtems|tpf|vxworks)
14229             DCFG_THREAD_MODEL="Single" ;;
14230     *)      as_fn_error "Thread implementation '$d_thread_model' not recognised" "$LINENO" 5 ;;
14231 esac
14232
14233
14234
14235
14236   ac_ext=c
14237 ac_cpp='$CPP $CPPFLAGS'
14238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14241
14242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ARM unwinder" >&5
14243 $as_echo_n "checking for ARM unwinder... " >&6; }
14244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h.  */
14246 #include <unwind.h>
14247 int
14248 main ()
14249 {
14250
14251   #if __ARM_EABI_UNWINDER__
14252   #error Yes, it is.
14253   #endif
14254
14255   ;
14256   return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"; then :
14260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14261 $as_echo "no" >&6; }
14262      DCFG_ARM_EABI_UNWINDER=false
14263 else
14264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14265 $as_echo "yes" >&6; }
14266      DCFG_ARM_EABI_UNWINDER=true
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269
14270    if test "$DCFG_ARM_EABI_UNWINDER" = "true"; then
14271   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE=
14272   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE='#'
14273 else
14274   DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE='#'
14275   DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE=
14276 fi
14277
14278   ac_ext=c
14279 ac_cpp='$CPP $CPPFLAGS'
14280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14283
14284
14285
14286   ac_ext=c
14287 ac_cpp='$CPP $CPPFLAGS'
14288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14291
14292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minfo section bracketing" >&5
14293 $as_echo_n "checking for minfo section bracketing... " >&6; }
14294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h.  */
14296
14297     void* module_info_ptr __attribute__((section ("minfo")));
14298     extern void* __start_minfo __attribute__((visibility ("hidden")));
14299     extern void* __stop_minfo __attribute__((visibility ("hidden")));
14300
14301     int main()
14302     {
14303         // Never run, just to prevent compiler from optimizing access
14304         return &__start_minfo == &__stop_minfo;
14305     }
14306
14307 _ACEOF
14308 if ac_fn_c_try_link "$LINENO"; then :
14309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14310 $as_echo "yes" >&6; }
14311      DCFG_MINFO_BRACKETING=true
14312 else
14313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14314 $as_echo "no" >&6; }
14315      DCFG_MINFO_BRACKETING=false
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext \
14318     conftest$ac_exeext conftest.$ac_ext
14319
14320    if test "$DCFG_MINFO_BRACKETING" = "true"; then
14321   DRUNTIME_OS_MINFO_BRACKETING_TRUE=
14322   DRUNTIME_OS_MINFO_BRACKETING_FALSE='#'
14323 else
14324   DRUNTIME_OS_MINFO_BRACKETING_TRUE='#'
14325   DRUNTIME_OS_MINFO_BRACKETING_FALSE=
14326 fi
14327
14328   ac_ext=c
14329 ac_cpp='$CPP $CPPFLAGS'
14330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14333
14334
14335
14336   ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14341
14342   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>
14343 "
14344 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_tls_modid" = xyes; then :
14345   DCFG_DLPI_TLS_MODID=true
14346 else
14347   DCFG_DLPI_TLS_MODID=false
14348 fi
14349
14350
14351   ac_ext=c
14352 ac_cpp='$CPP $CPPFLAGS'
14353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14356
14357
14358
14359   case $target in
14360     i?86-*-solaris2.* | x86_64-*-solaris2.*)
14361       # 64-bit Solaris/x86 ld breaks calls to __tls_get_addr with non-TLS
14362       # relocs.  Work around by disabling TLS transitions.  Not necessary
14363       # on 32-bit x86, but cannot be distinguished reliably in specs.
14364       druntime_ld_prog=`$CC -print-prog-name=ld`
14365       druntime_ld_gld=no
14366       druntime_ld_relax_transtls=no
14367       if test -n "$druntime_ld_prog" \
14368          && $druntime_ld_prog -v 2>&1 | grep GNU > /dev/null 2>&1; then
14369         druntime_ld_gld=yes
14370       else
14371         echo 'int main (void) { return 0; }' > conftest.c
14372         save_LDFLAGS="$LDFLAGS"
14373         LDFLAGS="$LDFLAGS -Wl,-z,relax=transtls"
14374         if $CC $CFLAGS $LDFLAGS -o conftest conftest.c > /dev/null 2>&1; then
14375           druntime_ld_relax_transtls=yes
14376         fi
14377         LDFLAGS="$save_LDFLAGS"
14378         rm -f conftest.c conftest
14379       fi
14380       if test "$druntime_ld_relax_transtls" = "yes"; then
14381         OS_LINK_SPEC='-z relax=transtls'
14382       fi
14383       ;;
14384   esac
14385
14386
14387
14388   ac_ext=c
14389 ac_cpp='$CPP $CPPFLAGS'
14390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393
14394   DCFG_HAVE_QSORT_R=false
14395   ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
14396 if test "x$ac_cv_func_qsort_r" = xyes; then :
14397   DCFG_HAVE_QSORT_R=true
14398 fi
14399
14400
14401   ac_ext=c
14402 ac_cpp='$CPP $CPPFLAGS'
14403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14406
14407
14408
14409
14410
14411   gdc_save_DFLAGS=$GDCFLAGS
14412   GDCFLAGS="-fno-moduleinfo -nostdinc -I $phobos_cv_abs_srcdir/libdruntime -nophoboslib $GDCFLAGS"
14413
14414   ac_ext=d
14415 ac_compile='$GDC -c $GDCFLAGS conftest.$ac_ext >&5'
14416 ac_link='$GDC -o conftest$ac_exeext $GDCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14417 ac_compiler_gnu=yes
14418
14419   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing malloc" >&5
14420 $as_echo_n "checking for library containing malloc... " >&6; }
14421 if ${ac_cv_search_malloc+:} false; then :
14422   $as_echo_n "(cached) " >&6
14423 else
14424   ac_func_search_save_LIBS=$LIBS
14425 cat > conftest.$ac_ext <<_ACEOF
14426 module mod;
14427  extern(C) int malloc();
14428
14429 extern(C) int main() {
14430   malloc(); return 0;
14431 }
14432 _ACEOF
14433 for ac_lib in '' c; do
14434   if test -z "$ac_lib"; then
14435     ac_res="none required"
14436   else
14437     ac_res=-l$ac_lib
14438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14439   fi
14440   if ac_fn_d_try_link "$LINENO"; then :
14441   ac_cv_search_malloc=$ac_res
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext \
14444     conftest$ac_exeext
14445   if ${ac_cv_search_malloc+:} false; then :
14446   break
14447 fi
14448 done
14449 if ${ac_cv_search_malloc+:} false; then :
14450
14451 else
14452   ac_cv_search_malloc=no
14453 fi
14454 rm conftest.$ac_ext
14455 LIBS=$ac_func_search_save_LIBS
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_malloc" >&5
14458 $as_echo "$ac_cv_search_malloc" >&6; }
14459 ac_res=$ac_cv_search_malloc
14460 if test "$ac_res" != no; then :
14461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14462
14463 fi
14464
14465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
14466 $as_echo_n "checking for library containing pthread_create... " >&6; }
14467 if ${ac_cv_search_pthread_create+:} false; then :
14468   $as_echo_n "(cached) " >&6
14469 else
14470   ac_func_search_save_LIBS=$LIBS
14471 cat > conftest.$ac_ext <<_ACEOF
14472 module mod;
14473  extern(C) int pthread_create();
14474
14475 extern(C) int main() {
14476   pthread_create(); return 0;
14477 }
14478 _ACEOF
14479 for ac_lib in '' pthread; do
14480   if test -z "$ac_lib"; then
14481     ac_res="none required"
14482   else
14483     ac_res=-l$ac_lib
14484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14485   fi
14486   if ac_fn_d_try_link "$LINENO"; then :
14487   ac_cv_search_pthread_create=$ac_res
14488 fi
14489 rm -f core conftest.err conftest.$ac_objext \
14490     conftest$ac_exeext
14491   if ${ac_cv_search_pthread_create+:} false; then :
14492   break
14493 fi
14494 done
14495 if ${ac_cv_search_pthread_create+:} false; then :
14496
14497 else
14498   ac_cv_search_pthread_create=no
14499 fi
14500 rm conftest.$ac_ext
14501 LIBS=$ac_func_search_save_LIBS
14502 fi
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
14504 $as_echo "$ac_cv_search_pthread_create" >&6; }
14505 ac_res=$ac_cv_search_pthread_create
14506 if test "$ac_res" != no; then :
14507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14508
14509 fi
14510
14511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cosf" >&5
14512 $as_echo_n "checking for library containing cosf... " >&6; }
14513 if ${ac_cv_search_cosf+:} false; then :
14514   $as_echo_n "(cached) " >&6
14515 else
14516   ac_func_search_save_LIBS=$LIBS
14517 cat > conftest.$ac_ext <<_ACEOF
14518 module mod;
14519  extern(C) int cosf();
14520
14521 extern(C) int main() {
14522   cosf(); return 0;
14523 }
14524 _ACEOF
14525 for ac_lib in '' m; do
14526   if test -z "$ac_lib"; then
14527     ac_res="none required"
14528   else
14529     ac_res=-l$ac_lib
14530     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14531   fi
14532   if ac_fn_d_try_link "$LINENO"; then :
14533   ac_cv_search_cosf=$ac_res
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext \
14536     conftest$ac_exeext
14537   if ${ac_cv_search_cosf+:} false; then :
14538   break
14539 fi
14540 done
14541 if ${ac_cv_search_cosf+:} false; then :
14542
14543 else
14544   ac_cv_search_cosf=no
14545 fi
14546 rm conftest.$ac_ext
14547 LIBS=$ac_func_search_save_LIBS
14548 fi
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cosf" >&5
14550 $as_echo "$ac_cv_search_cosf" >&6; }
14551 ac_res=$ac_cv_search_cosf
14552 if test "$ac_res" != no; then :
14553   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14554
14555 fi
14556
14557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14558 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14559 if ${ac_cv_search_clock_gettime+:} false; then :
14560   $as_echo_n "(cached) " >&6
14561 else
14562   ac_func_search_save_LIBS=$LIBS
14563 cat > conftest.$ac_ext <<_ACEOF
14564 module mod;
14565  extern(C) int clock_gettime();
14566
14567 extern(C) int main() {
14568   clock_gettime(); return 0;
14569 }
14570 _ACEOF
14571 for ac_lib in '' rt; do
14572   if test -z "$ac_lib"; then
14573     ac_res="none required"
14574   else
14575     ac_res=-l$ac_lib
14576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14577   fi
14578   if ac_fn_d_try_link "$LINENO"; then :
14579   ac_cv_search_clock_gettime=$ac_res
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582     conftest$ac_exeext
14583   if ${ac_cv_search_clock_gettime+:} false; then :
14584   break
14585 fi
14586 done
14587 if ${ac_cv_search_clock_gettime+:} false; then :
14588
14589 else
14590   ac_cv_search_clock_gettime=no
14591 fi
14592 rm conftest.$ac_ext
14593 LIBS=$ac_func_search_save_LIBS
14594 fi
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14596 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14597 ac_res=$ac_cv_search_clock_gettime
14598 if test "$ac_res" != no; then :
14599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14600
14601 fi
14602
14603
14604   # This checks to see if the host supports the compiler-generated builtins
14605   # for atomic operations for various integral sizes. Note, this is intended
14606   # to be an all-or-nothing switch, so all the atomic operations that are
14607   # used should be checked.
14608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for byte" >&5
14609 $as_echo_n "checking for atomic builtins for byte... " >&6; }
14610   if ${druntime_cv_atomic_byte+:} false; then :
14611   $as_echo_n "(cached) " >&6
14612 else
14613
14614     cat > conftest.$ac_ext <<_ACEOF
14615 module mod;
14616 import gcc.builtins;
14617
14618 extern(C) int main() {
14619
14620       shared(byte) c1;
14621        byte c2, c3;
14622        __atomic_compare_exchange_1(&c1, &c2, c3, false, 5, 5);
14623        __atomic_load_1(&c1, 5);
14624        __atomic_store_1(&c1, c2, 5);
14625        return 0;
14626
14627 }
14628 _ACEOF
14629 if ac_fn_d_try_link "$LINENO"; then :
14630   druntime_cv_atomic_byte=yes
14631 else
14632   druntime_cv_atomic_byte=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext \
14635     conftest$ac_exeext conftest.$ac_ext
14636
14637 fi
14638
14639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_byte" >&5
14640 $as_echo "$druntime_cv_atomic_byte" >&6; }
14641
14642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for short" >&5
14643 $as_echo_n "checking for atomic builtins for short... " >&6; }
14644   if ${druntime_cv_atomic_short+:} false; then :
14645   $as_echo_n "(cached) " >&6
14646 else
14647
14648     cat > conftest.$ac_ext <<_ACEOF
14649 module mod;
14650 import gcc.builtins;
14651
14652 extern(C) int main() {
14653
14654       shared(short) c1;
14655        short c2, c3;
14656        __atomic_compare_exchange_2(&c1, &c2, c3, false, 5, 5);
14657        __atomic_load_2(&c1, 5);
14658        __atomic_store_2(&c1, c2, 5);
14659        return 0;
14660
14661 }
14662 _ACEOF
14663 if ac_fn_d_try_link "$LINENO"; then :
14664   druntime_cv_atomic_short=yes
14665 else
14666   druntime_cv_atomic_short=no
14667 fi
14668 rm -f core conftest.err conftest.$ac_objext \
14669     conftest$ac_exeext conftest.$ac_ext
14670
14671 fi
14672
14673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_short" >&5
14674 $as_echo "$druntime_cv_atomic_short" >&6; }
14675
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for int" >&5
14677 $as_echo_n "checking for atomic builtins for int... " >&6; }
14678   if ${druntime_cv_atomic_int+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681
14682     cat > conftest.$ac_ext <<_ACEOF
14683 module mod;
14684 import gcc.builtins;
14685
14686 extern(C) int main() {
14687
14688       shared(int) c1;
14689        int c2, c3;
14690        __atomic_compare_exchange_4(&c1, &c2, c3, false, 5, 5);
14691        __atomic_load_4(&c1, 5);
14692        __atomic_store_4(&c1, c2, 5);
14693        return 0;
14694
14695 }
14696 _ACEOF
14697 if ac_fn_d_try_link "$LINENO"; then :
14698   druntime_cv_atomic_int=yes
14699 else
14700   druntime_cv_atomic_int=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext \
14703     conftest$ac_exeext conftest.$ac_ext
14704
14705 fi
14706
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_int" >&5
14708 $as_echo "$druntime_cv_atomic_int" >&6; }
14709
14710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atomic builtins for long" >&5
14711 $as_echo_n "checking for atomic builtins for long... " >&6; }
14712   if ${druntime_cv_atomic_long+:} false; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715
14716     cat > conftest.$ac_ext <<_ACEOF
14717 module mod;
14718 import gcc.builtins;
14719
14720 extern(C) int main() {
14721
14722        shared(long) c1;
14723        long c2, c3;
14724        __atomic_compare_exchange_8(&c1, &c2, c3, false, 5, 5);
14725        __atomic_load_8(&c1, 5);
14726        __atomic_store_8(&c1, c2, 5);
14727        return 0;
14728
14729 }
14730 _ACEOF
14731 if ac_fn_d_try_link "$LINENO"; then :
14732   druntime_cv_atomic_long=yes
14733 else
14734   druntime_cv_atomic_long=no
14735 fi
14736 rm -f core conftest.err conftest.$ac_objext \
14737     conftest$ac_exeext conftest.$ac_ext
14738
14739 fi
14740
14741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_atomic_long" >&5
14742 $as_echo "$druntime_cv_atomic_long" >&6; }
14743
14744   # Have atomic builtin support if all but the long test above passes.
14745   DCFG_HAVE_ATOMIC_BUILTINS=false
14746   if test "$druntime_cv_atomic_byte" = yes \
14747      && test "$druntime_cv_atomic_short" = yes \
14748      && test "$druntime_cv_atomic_int" = yes; then \
14749     DCFG_HAVE_ATOMIC_BUILTINS=true
14750   fi
14751
14752   # Have 64-bit atomic support if the long test above passes.
14753   DCFG_HAVE_64BIT_ATOMICS=false
14754   if test "$druntime_cv_atomic_long" = yes; then
14755     DCFG_HAVE_64BIT_ATOMICS=true
14756   fi
14757
14758
14759
14760
14761   ac_ext=c
14762 ac_cpp='$CPP $CPPFLAGS'
14763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14766
14767
14768   GDCFLAGS=$gdc_save_DFLAGS
14769
14770
14771
14772
14773 # Check whether --with-libatomic was given.
14774 if test "${with_libatomic+set}" = set; then :
14775   withval=$with_libatomic;
14776 fi
14777
14778
14779   DCFG_HAVE_LIBATOMIC=false
14780   LIBATOMIC=
14781   if test "x$with_libatomic" != "xno"; then :
14782
14783     DCFG_HAVE_LIBATOMIC=true
14784     LIBATOMIC=../../libatomic/libatomic_convenience.la
14785
14786 else
14787
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic" >&5
14789 $as_echo_n "checking for libatomic... " >&6; }
14790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14791 $as_echo "disabled" >&6; }
14792
14793 fi
14794
14795
14796
14797
14798
14799   ac_ext=c
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14804
14805   BACKTRACE_SUPPORTED=false
14806   BACKTRACE_USES_MALLOC=false
14807   BACKTRACE_SUPPORTS_THREADS=false
14808   LIBBACKTRACE=""
14809
14810
14811 # Check whether --with-libbacktrace was given.
14812 if test "${with_libbacktrace+set}" = set; then :
14813   withval=$with_libbacktrace;
14814 fi
14815
14816
14817   if test "x$with_libbacktrace" != "xno"; then :
14818
14819     LIBBACKTRACE=../../libbacktrace/libbacktrace.la
14820
14821     gdc_save_CPPFLAGS=$CPPFLAGS
14822     CPPFLAGS="$CPPFLAGS -I../libbacktrace "
14823
14824     ac_fn_c_check_header_mongrel "$LINENO" "backtrace-supported.h" "ac_cv_header_backtrace_supported_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_backtrace_supported_h" = xyes; then :
14826   have_libbacktrace_h=true
14827 else
14828   have_libbacktrace_h=false
14829 fi
14830
14831
14832
14833     if $have_libbacktrace_h; then
14834       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTED" >&5
14835 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTED... " >&6; }
14836       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14837 /* end confdefs.h.  */
14838
14839       #include <backtrace-supported.h>
14840       #if BACKTRACE_SUPPORTED
14841         FOUND_LIBBACKTRACE_RESULT_GDC
14842       #endif
14843
14844 _ACEOF
14845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14846   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14847   BACKTRACE_SUPPORTED=true
14848 else
14849   BACKTRACE_SUPPORTED=false
14850 fi
14851 rm -f conftest*
14852
14853       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTED" >&5
14854 $as_echo "$BACKTRACE_SUPPORTED" >&6; }
14855
14856       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_USES_MALLOC" >&5
14857 $as_echo_n "checking libbacktrace: BACKTRACE_USES_MALLOC... " >&6; }
14858       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h.  */
14860
14861       #include <backtrace-supported.h>
14862       #if BACKTRACE_USES_MALLOC
14863         FOUND_LIBBACKTRACE_RESULT_GDC
14864       #endif
14865
14866 _ACEOF
14867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14868   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14869   BACKTRACE_USES_MALLOC=true
14870 else
14871   BACKTRACE_USES_MALLOC=false
14872 fi
14873 rm -f conftest*
14874
14875       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_USES_MALLOC" >&5
14876 $as_echo "$BACKTRACE_USES_MALLOC" >&6; }
14877
14878       { $as_echo "$as_me:${as_lineno-$LINENO}: checking libbacktrace: BACKTRACE_SUPPORTS_THREADS" >&5
14879 $as_echo_n "checking libbacktrace: BACKTRACE_SUPPORTS_THREADS... " >&6; }
14880       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h.  */
14882
14883       #include <backtrace-supported.h>
14884       #if BACKTRACE_SUPPORTS_THREADS
14885         FOUND_LIBBACKTRACE_RESULT_GDC
14886       #endif
14887
14888 _ACEOF
14889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14890   $EGREP "FOUND_LIBBACKTRACE_RESULT_GDC" >/dev/null 2>&1; then :
14891   BACKTRACE_SUPPORTS_THREADS=true
14892 else
14893   BACKTRACE_SUPPORTS_THREADS=false
14894 fi
14895 rm -f conftest*
14896
14897       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKTRACE_SUPPORTS_THREADS" >&5
14898 $as_echo "$BACKTRACE_SUPPORTS_THREADS" >&6; }
14899     fi
14900     CPPFLAGS=$gdc_save_CPPFLAGS
14901
14902 else
14903
14904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbacktrace" >&5
14905 $as_echo_n "checking for libbacktrace... " >&6; }
14906     { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14907 $as_echo "disabled" >&6; }
14908
14909 fi
14910
14911
14912
14913
14914
14915   ac_ext=c
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921
14922
14923   # Libtool has already checked this, so re-use the inferred dlopen lib.
14924   if test "x$enable_dlopen" = "xyes" && test -n "$lt_cv_dlopen_libs"; then :
14925
14926     LIBS="$LIBS $lt_cv_dlopen_libs"
14927
14928 fi
14929
14930
14931     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14932 $as_echo_n "checking for socket libraries... " >&6; }
14933 if ${druntime_cv_lib_sockets+:} false; then :
14934   $as_echo_n "(cached) " >&6
14935 else
14936   druntime_cv_lib_sockets=
14937      druntime_check_both=no
14938      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14939 if test "x$ac_cv_func_connect" = xyes; then :
14940   druntime_check_socket=no
14941 else
14942   druntime_check_socket=yes
14943 fi
14944
14945      if test "$druntime_check_socket" = "yes"; then
14946        unset ac_cv_func_connect
14947        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14948 $as_echo_n "checking for main in -lsocket... " >&6; }
14949 if ${ac_cv_lib_socket_main+:} false; then :
14950   $as_echo_n "(cached) " >&6
14951 else
14952   ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lsocket  $LIBS"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h.  */
14956
14957
14958 int
14959 main ()
14960 {
14961 return main ();
14962   ;
14963   return 0;
14964 }
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"; then :
14967   ac_cv_lib_socket_main=yes
14968 else
14969   ac_cv_lib_socket_main=no
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext \
14972     conftest$ac_exeext conftest.$ac_ext
14973 LIBS=$ac_check_lib_save_LIBS
14974 fi
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14976 $as_echo "$ac_cv_lib_socket_main" >&6; }
14977 if test "x$ac_cv_lib_socket_main" = xyes; then :
14978   druntime_cv_lib_sockets="-lsocket"
14979 else
14980   druntime_check_both=yes
14981 fi
14982
14983      fi
14984      if test "$druntime_check_both" = "yes"; then
14985        druntime_old_libs=$LIBS
14986        LIBS="$LIBS -lsocket -lnsl"
14987        unset ac_cv_func_accept
14988        ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14989 if test "x$ac_cv_func_accept" = xyes; then :
14990   druntime_check_nsl=no
14991                       druntime_cv_lib_sockets="-lsocket -lnsl"
14992 fi
14993
14994        unset ac_cv_func_accept
14995        LIBS=$druntime_old_libs
14996      fi
14997      unset ac_cv_func_gethostbyname
14998      druntime_old_libs="$LIBS"
14999      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
15000 if test "x$ac_cv_func_gethostbyname" = xyes; then :
15001
15002 else
15003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
15004 $as_echo_n "checking for main in -lnsl... " >&6; }
15005 if ${ac_cv_lib_nsl_main+:} false; then :
15006   $as_echo_n "(cached) " >&6
15007 else
15008   ac_check_lib_save_LIBS=$LIBS
15009 LIBS="-lnsl  $LIBS"
15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15011 /* end confdefs.h.  */
15012
15013
15014 int
15015 main ()
15016 {
15017 return main ();
15018   ;
15019   return 0;
15020 }
15021 _ACEOF
15022 if ac_fn_c_try_link "$LINENO"; then :
15023   ac_cv_lib_nsl_main=yes
15024 else
15025   ac_cv_lib_nsl_main=no
15026 fi
15027 rm -f core conftest.err conftest.$ac_objext \
15028     conftest$ac_exeext conftest.$ac_ext
15029 LIBS=$ac_check_lib_save_LIBS
15030 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
15032 $as_echo "$ac_cv_lib_nsl_main" >&6; }
15033 if test "x$ac_cv_lib_nsl_main" = xyes; then :
15034   druntime_cv_lib_sockets="$druntime_cv_lib_sockets -lnsl"
15035 fi
15036
15037 fi
15038
15039
15040 fi
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $druntime_cv_lib_sockets" >&5
15042 $as_echo "$druntime_cv_lib_sockets" >&6; }
15043   LIBS="$LIBS $druntime_cv_lib_sockets"
15044
15045
15046   ac_ext=c
15047 ac_cpp='$CPP $CPPFLAGS'
15048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15051
15052   LIBZ=""
15053
15054
15055 # Check whether --with-target-system-zlib was given.
15056 if test "${with_target_system_zlib+set}" = set; then :
15057   withval=$with_target_system_zlib;
15058 else
15059   with_target_system_zlib=no
15060 fi
15061
15062
15063   case "$with_target_system_zlib" in
15064     yes|no|auto) ;;
15065     *) as_fn_error $? "Invalid argument for --with-target-system-zlib" "$LINENO" 5 ;;
15066   esac
15067
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib" >&5
15069 $as_echo_n "checking for system zlib... " >&6; }
15070   save_LIBS=$LIBS
15071   LIBS="$LIBS -lz"
15072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h.  */
15074 #include <zlib.h>
15075 int
15076 main ()
15077 {
15078 gzopen("none", "rb")
15079   ;
15080   return 0;
15081 }
15082 _ACEOF
15083 if ac_fn_c_try_link "$LINENO"; then :
15084
15085       if test "$cross_compiling" = yes; then :
15086           system_zlib_found=no
15087
15088 else
15089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h.  */
15091
15092         #include <zlib.h>
15093         int main() {
15094           gzFile file = gzopen("none", "rb");
15095           return 0;
15096         }
15097
15098 _ACEOF
15099 if ac_fn_c_try_run "$LINENO"; then :
15100   system_zlib_found=yes
15101 else
15102   system_zlib_found=no
15103 fi
15104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15105   conftest.$ac_objext conftest.beam conftest.$ac_ext
15106 fi
15107
15108
15109 else
15110   system_zlib_found=no
15111 fi
15112 rm -f core conftest.err conftest.$ac_objext \
15113     conftest$ac_exeext conftest.$ac_ext
15114   LIBS=$save_LIBS
15115
15116   if test x$system_zlib_found = xyes && test x$with_target_system_zlib != xno; then
15117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15118 $as_echo "found" >&6; }
15119     LIBS="$LIBS -lz"
15120   elif test x$system_zlib_found = xno && test x$with_target_system_zlib = xyes; then
15121     as_fn_error $? "system zlib required but not found" "$LINENO" 5
15122   else
15123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15124 $as_echo "just compiled" >&6; }
15125     LIBZ=../../zlib/libz_convenience.la
15126   fi
15127
15128
15129   ac_ext=c
15130 ac_cpp='$CPP $CPPFLAGS'
15131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15134
15135
15136
15137
15138
15139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking D GCC version" >&5
15140 $as_echo_n "checking D GCC version... " >&6; }
15141   gcc_version=`eval $get_gcc_base_ver $srcdir/../gcc/BASE-VER`
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_version" >&5
15143 $as_echo "$gcc_version" >&6; }
15144
15145
15146
15147 # Check whether --with-cross-host was given.
15148 if test "${with_cross_host+set}" = set; then :
15149   withval=$with_cross_host;
15150 fi
15151
15152
15153   libphobos_toolexecdir=no
15154   libphobos_toolexeclibdir=no
15155
15156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
15157 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
15158   # Check whether --enable-version-specific-runtime-libs was given.
15159 if test "${enable_version_specific_runtime_libs+set}" = set; then :
15160   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
15161       yes) version_specific_libs=yes ;;
15162       no)  version_specific_libs=no ;;
15163       *)   as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
15164      esac
15165 else
15166   version_specific_libs=no
15167 fi
15168
15169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
15170 $as_echo "$version_specific_libs" >&6; }
15171
15172
15173 # Check whether --with-toolexeclibdir was given.
15174 if test "${with_toolexeclibdir+set}" = set; then :
15175   withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
15176   /)
15177     ;;
15178   */)
15179     with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
15180     ;;
15181 esac
15182 else
15183   with_toolexeclibdir=no
15184 fi
15185
15186
15187
15188   # Version-specific runtime libs processing.
15189   if test $version_specific_libs = yes; then
15190     libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15191     libphobos_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
15192   else
15193     # Calculate libphobos_toolexecdir, libphobos_toolexeclibdir
15194     # Install a library built with a cross compiler in tooldir, not libdir.
15195     if test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
15196       libphobos_toolexecdir='${exec_prefix}/${host_alias}'
15197       case ${with_toolexeclibdir} in
15198         no)
15199           libphobos_toolexeclibdir='${toolexecdir}/lib'
15200           ;;
15201         *)
15202           libphobos_toolexeclibdir=${with_toolexeclibdir}
15203           ;;
15204       esac
15205     else
15206       libphobos_toolexecdir='${libdir}/gcc/${host_alias}'
15207       libphobos_toolexeclibdir='${libdir}'
15208     fi
15209     multi_os_directory=`$GDC -print-multi-os-directory`
15210     case $multi_os_directory in
15211       .) ;; # Avoid trailing /.
15212       *) libphobos_toolexeclibdir=${libphobos_toolexeclibdir}/${multi_os_directory} ;;
15213     esac
15214   fi
15215
15216
15217
15218   # Default case for install directory for D sources files.
15219   gdc_include_dir='$(libdir)/gcc/${target_alias}/${gcc_version}/include/d'
15220
15221
15222
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-libphobos" >&5
15224 $as_echo_n "checking for --enable-libphobos... " >&6; }
15225 # Check whether --enable-libphobos was given.
15226 if test "${enable_libphobos+set}" = set; then :
15227   enableval=$enable_libphobos;
15228 fi
15229
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libphobos" >&5
15231 $as_echo "$enable_libphobos" >&6; }
15232
15233 # See if supported.
15234 unset LIBPHOBOS_SUPPORTED
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host support for libphobos" >&5
15236 $as_echo_n "checking for host support for libphobos... " >&6; }
15237 . ${srcdir}/configure.tgt
15238 case ${host} in
15239   x86_64-*-solaris2.* | i?86-*-solaris2.*)
15240     # libphobos doesn't compile with the Solaris/x86 assembler due to a
15241     # relatively low linelength limit.
15242     as_prog=`$CC -print-prog-name=as`
15243     if test -n "$as_prog" && $as_prog -v /dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
15244       druntime_cv_use_gas=yes;
15245     else
15246       druntime_cv_use_gas=no;
15247     fi
15248     rm -f a.out
15249     if test x$druntime_cv_use_gas = xno; then
15250       LIBPHOBOS_SUPPORTED=no
15251     fi
15252     # 64-bit D execution fails with Solaris ld without -z relax=transtls support.
15253     if test "$druntime_ld_gld" = "no" && test "$druntime_ld_relax_transtls" = "no"; then
15254       LIBPHOBOS_SUPPORTED=no
15255     fi
15256     ;;
15257 esac
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPHOBOS_SUPPORTED" >&5
15259 $as_echo "$LIBPHOBOS_SUPPORTED" >&6; }
15260
15261 # Decide if it's usable.
15262 case $LIBPHOBOS_SUPPORTED:$enable_libphobos in
15263 *:no)  use_libphobos=no  ;;
15264 *:yes) use_libphobos=yes ;;
15265 yes:*) use_libphobos=yes ;;
15266 *:*)   use_libphobos=no  ;;
15267 esac
15268  if test x$use_libphobos = xyes; then
15269   ENABLE_LIBPHOBOS_TRUE=
15270   ENABLE_LIBPHOBOS_FALSE='#'
15271 else
15272   ENABLE_LIBPHOBOS_TRUE='#'
15273   ENABLE_LIBPHOBOS_FALSE=
15274 fi
15275
15276
15277 # Enable expensive internal checks
15278 # Check whether --enable-libphobos-checking was given.
15279 if test "${enable_libphobos_checking+set}" = set; then :
15280   enableval=$enable_libphobos_checking; ac_checking_flags="${enableval}"
15281 else
15282   ac_checking_flags=release
15283 fi
15284
15285 IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$IFS,"
15286 for check in release $ac_checking_flags
15287 do
15288         case $check in
15289         # These set all the flags to specific states
15290         yes|all) RELEASE_FLAG="-fno-release" ; ASSERT_FLAG= ;;
15291         no|none|release) RELEASE_FLAG="-frelease" ; ASSERT_FLAG= ;;
15292         # These enable particular checks
15293         assert) ASSERT_FLAG="-fassert" ;;
15294         # Accept
15295         *) ;;
15296         esac
15297 done
15298 IFS="$ac_save_IFS"
15299 CHECKING_DFLAGS="$RELEASE_FLAG $ASSERT_FLAG"
15300
15301
15302 # Add drtbegin.o/drtend.o to startfile/endfile specs in libgphobos.spec
15303 if test "$DCFG_MINFO_BRACKETING" = "false"; then
15304     DRTSTUFF_SPEC=$srcdir/src/drtstuff.spec
15305 else
15306     DRTSTUFF_SPEC=/dev/null
15307 fi
15308
15309
15310 # Add dependencies for libgphobos.spec file
15311 SPEC_PHOBOS_DEPS="$LIBS"
15312
15313
15314 # Libdruntime / phobos soname version
15315 libtool_VERSION=1:0:0
15316
15317
15318 # Set default flags (after DRUNTIME_WERROR!)
15319 if test -z "$GDCFLAGS"; then
15320     GDCFLAGS="-g -O2"
15321 fi
15322
15323
15324 if test -z "$GDCFLAGSX"; then
15325     GDCFLAGSX="-g"
15326 fi
15327
15328
15329 WARN_DFLAGS="-Wall $WERROR_FLAG"
15330
15331
15332 # Sanity check for the cross-compilation case:
15333 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
15334 if test "x$ac_cv_header_stdio_h" = xyes; then :
15335   :
15336 else
15337   as_fn_error $? "cannot find stdio.h." "$LINENO" 5
15338 fi
15339
15340
15341
15342 ac_config_files="$ac_config_files Makefile"
15343
15344
15345 ac_config_files="$ac_config_files libdruntime/gcc/config.d libdruntime/gcc/libbacktrace.d"
15346
15347 ac_config_files="$ac_config_files src/libgphobos.spec"
15348
15349 ac_config_files="$ac_config_files testsuite/testsuite_flags"
15350
15351
15352 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15353 # that multilib installs will end up installed in the correct place.
15354 # The testsuite needs it for multilib-aware ABI baseline files.
15355 # To work around this not being passed down from config-ml.in ->
15356 # srcdir/Makefile.am -> srcdir/{src,libdruntime,...}/Makefile.am, manually
15357 # append it here.  Only modify Makefiles that have just been created.
15358 #
15359 # Also, get rid of this simulated-VPATH thing that automake does.
15360 ac_config_files="$ac_config_files libdruntime/Makefile src/Makefile testsuite/Makefile"
15361
15362
15363 cat >confcache <<\_ACEOF
15364 # This file is a shell script that caches the results of configure
15365 # tests run on this system so they can be shared between configure
15366 # scripts and configure runs, see configure's option --config-cache.
15367 # It is not useful on other systems.  If it contains results you don't
15368 # want to keep, you may remove or edit it.
15369 #
15370 # config.status only pays attention to the cache file if you give it
15371 # the --recheck option to rerun configure.
15372 #
15373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15375 # following values.
15376
15377 _ACEOF
15378
15379 # The following way of writing the cache mishandles newlines in values,
15380 # but we know of no workaround that is simple, portable, and efficient.
15381 # So, we kill variables containing newlines.
15382 # Ultrix sh set writes to stderr and can't be redirected directly,
15383 # and sets the high bit in the cache file unless we assign to the vars.
15384 (
15385   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15386     eval ac_val=\$$ac_var
15387     case $ac_val in #(
15388     *${as_nl}*)
15389       case $ac_var in #(
15390       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15392       esac
15393       case $ac_var in #(
15394       _ | IFS | as_nl) ;; #(
15395       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15396       *) { eval $ac_var=; unset $ac_var;} ;;
15397       esac ;;
15398     esac
15399   done
15400
15401   (set) 2>&1 |
15402     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15403     *${as_nl}ac_space=\ *)
15404       # `set' does not quote correctly, so add quotes: double-quote
15405       # substitution turns \\\\ into \\, and sed turns \\ into \.
15406       sed -n \
15407         "s/'/'\\\\''/g;
15408           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15409       ;; #(
15410     *)
15411       # `set' quotes correctly as required by POSIX, so do not add quotes.
15412       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15413       ;;
15414     esac |
15415     sort
15416 ) |
15417   sed '
15418      /^ac_cv_env_/b end
15419      t clear
15420      :clear
15421      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15422      t end
15423      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15424      :end' >>confcache
15425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15426   if test -w "$cache_file"; then
15427     if test "x$cache_file" != "x/dev/null"; then
15428       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15429 $as_echo "$as_me: updating cache $cache_file" >&6;}
15430       if test ! -f "$cache_file" || test -h "$cache_file"; then
15431         cat confcache >"$cache_file"
15432       else
15433         case $cache_file in #(
15434         */* | ?:*)
15435           mv -f confcache "$cache_file"$$ &&
15436           mv -f "$cache_file"$$ "$cache_file" ;; #(
15437         *)
15438           mv -f confcache "$cache_file" ;;
15439         esac
15440       fi
15441     fi
15442   else
15443     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15445   fi
15446 fi
15447 rm -f confcache
15448
15449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15450 # Let make expand exec_prefix.
15451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15452
15453 DEFS=-DHAVE_CONFIG_H
15454
15455 ac_libobjs=
15456 ac_ltlibobjs=
15457 U=
15458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15459   # 1. Remove the extension, and $U if already installed.
15460   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15461   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15462   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15463   #    will be set to the directory where LIBOBJS objects are built.
15464   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15465   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15466 done
15467 LIBOBJS=$ac_libobjs
15468
15469 LTLIBOBJS=$ac_ltlibobjs
15470
15471
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15473 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15474    if test -n "$am_sleep_pid"; then
15475      # Hide warnings about reused PIDs.
15476      wait $am_sleep_pid 2>/dev/null
15477    fi
15478    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15479 $as_echo "done" >&6; }
15480  if test -n "$EXEEXT"; then
15481   am__EXEEXT_TRUE=
15482   am__EXEEXT_FALSE='#'
15483 else
15484   am__EXEEXT_TRUE='#'
15485   am__EXEEXT_FALSE=
15486 fi
15487
15488 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15489   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15491 fi
15492 if test -z "${DRUNTIME_CPU_AARCH64_TRUE}" && test -z "${DRUNTIME_CPU_AARCH64_FALSE}"; then
15493   as_fn_error $? "conditional \"DRUNTIME_CPU_AARCH64\" was never defined.
15494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15495 fi
15496 if test -z "${DRUNTIME_CPU_ARM_TRUE}" && test -z "${DRUNTIME_CPU_ARM_FALSE}"; then
15497   as_fn_error $? "conditional \"DRUNTIME_CPU_ARM\" was never defined.
15498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15499 fi
15500 if test -z "${DRUNTIME_CPU_MIPS_TRUE}" && test -z "${DRUNTIME_CPU_MIPS_FALSE}"; then
15501   as_fn_error $? "conditional \"DRUNTIME_CPU_MIPS\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503 fi
15504 if test -z "${DRUNTIME_CPU_POWERPC_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC_FALSE}"; then
15505   as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507 fi
15508 if test -z "${DRUNTIME_CPU_POWERPC64_TRUE}" && test -z "${DRUNTIME_CPU_POWERPC64_FALSE}"; then
15509   as_fn_error $? "conditional \"DRUNTIME_CPU_POWERPC64\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511 fi
15512 if test -z "${DRUNTIME_CPU_X86_TRUE}" && test -z "${DRUNTIME_CPU_X86_FALSE}"; then
15513   as_fn_error $? "conditional \"DRUNTIME_CPU_X86\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515 fi
15516 if test -z "${DRUNTIME_CPU_SYSTEMZ_TRUE}" && test -z "${DRUNTIME_CPU_SYSTEMZ_FALSE}"; then
15517   as_fn_error $? "conditional \"DRUNTIME_CPU_SYSTEMZ\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519 fi
15520 if test -z "${DRUNTIME_CPU_S390_TRUE}" && test -z "${DRUNTIME_CPU_S390_FALSE}"; then
15521   as_fn_error $? "conditional \"DRUNTIME_CPU_S390\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523 fi
15524 if test -z "${DRUNTIME_OS_AIX_TRUE}" && test -z "${DRUNTIME_OS_AIX_FALSE}"; then
15525   as_fn_error $? "conditional \"DRUNTIME_OS_AIX\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527 fi
15528 if test -z "${DRUNTIME_OS_ANDROID_TRUE}" && test -z "${DRUNTIME_OS_ANDROID_FALSE}"; then
15529   as_fn_error $? "conditional \"DRUNTIME_OS_ANDROID\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531 fi
15532 if test -z "${DRUNTIME_OS_DARWIN_TRUE}" && test -z "${DRUNTIME_OS_DARWIN_FALSE}"; then
15533   as_fn_error $? "conditional \"DRUNTIME_OS_DARWIN\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535 fi
15536 if test -z "${DRUNTIME_OS_DRAGONFLYBSD_TRUE}" && test -z "${DRUNTIME_OS_DRAGONFLYBSD_FALSE}"; then
15537   as_fn_error $? "conditional \"DRUNTIME_OS_DRAGONFLYBSD\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 fi
15540 if test -z "${DRUNTIME_OS_FREEBSD_TRUE}" && test -z "${DRUNTIME_OS_FREEBSD_FALSE}"; then
15541   as_fn_error $? "conditional \"DRUNTIME_OS_FREEBSD\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 fi
15544 if test -z "${DRUNTIME_OS_NETBSD_TRUE}" && test -z "${DRUNTIME_OS_NETBSD_FALSE}"; then
15545   as_fn_error $? "conditional \"DRUNTIME_OS_NETBSD\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 fi
15548 if test -z "${DRUNTIME_OS_OPENBSD_TRUE}" && test -z "${DRUNTIME_OS_OPENBSD_FALSE}"; then
15549   as_fn_error $? "conditional \"DRUNTIME_OS_OPENBSD\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${DRUNTIME_OS_LINUX_TRUE}" && test -z "${DRUNTIME_OS_LINUX_FALSE}"; then
15553   as_fn_error $? "conditional \"DRUNTIME_OS_LINUX\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${DRUNTIME_OS_MINGW_TRUE}" && test -z "${DRUNTIME_OS_MINGW_FALSE}"; then
15557   as_fn_error $? "conditional \"DRUNTIME_OS_MINGW\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${DRUNTIME_OS_SOLARIS_TRUE}" && test -z "${DRUNTIME_OS_SOLARIS_FALSE}"; then
15561   as_fn_error $? "conditional \"DRUNTIME_OS_SOLARIS\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${DRUNTIME_OS_POSIX_TRUE}" && test -z "${DRUNTIME_OS_POSIX_FALSE}"; then
15565   as_fn_error $? "conditional \"DRUNTIME_OS_POSIX\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_TRUE}" && test -z "${DRUNTIME_OS_ARM_EABI_UNWINDER_FALSE}"; then
15569   as_fn_error $? "conditional \"DRUNTIME_OS_ARM_EABI_UNWINDER\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${DRUNTIME_OS_MINFO_BRACKETING_TRUE}" && test -z "${DRUNTIME_OS_MINFO_BRACKETING_FALSE}"; then
15573   as_fn_error $? "conditional \"DRUNTIME_OS_MINFO_BRACKETING\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576 if test -z "${ENABLE_LIBPHOBOS_TRUE}" && test -z "${ENABLE_LIBPHOBOS_FALSE}"; then
15577   as_fn_error $? "conditional \"ENABLE_LIBPHOBOS\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 fi
15580
15581 : "${CONFIG_STATUS=./config.status}"
15582 ac_write_fail=0
15583 ac_clean_files_save=$ac_clean_files
15584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15587 as_write_fail=0
15588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15589 #! $SHELL
15590 # Generated by $as_me.
15591 # Run this file to recreate the current configuration.
15592 # Compiler output produced by configure, useful for debugging
15593 # configure, is in config.log if it exists.
15594
15595 debug=false
15596 ac_cs_recheck=false
15597 ac_cs_silent=false
15598
15599 SHELL=\${CONFIG_SHELL-$SHELL}
15600 export SHELL
15601 _ASEOF
15602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15603 ## -------------------- ##
15604 ## M4sh Initialization. ##
15605 ## -------------------- ##
15606
15607 # Be more Bourne compatible
15608 DUALCASE=1; export DUALCASE # for MKS sh
15609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15610   emulate sh
15611   NULLCMD=:
15612   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15613   # is contrary to our usage.  Disable this feature.
15614   alias -g '${1+"$@"}'='"$@"'
15615   setopt NO_GLOB_SUBST
15616 else
15617   case `(set -o) 2>/dev/null` in #(
15618   *posix*) :
15619     set -o posix ;; #(
15620   *) :
15621      ;;
15622 esac
15623 fi
15624
15625
15626 as_nl='
15627 '
15628 export as_nl
15629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15631 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15633 # Prefer a ksh shell builtin over an external printf program on Solaris,
15634 # but without wasting forks for bash or zsh.
15635 if test -z "$BASH_VERSION$ZSH_VERSION" \
15636     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15637   as_echo='print -r --'
15638   as_echo_n='print -rn --'
15639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15640   as_echo='printf %s\n'
15641   as_echo_n='printf %s'
15642 else
15643   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15644     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15645     as_echo_n='/usr/ucb/echo -n'
15646   else
15647     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15648     as_echo_n_body='eval
15649       arg=$1;
15650       case $arg in #(
15651       *"$as_nl"*)
15652         expr "X$arg" : "X\\(.*\\)$as_nl";
15653         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15654       esac;
15655       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15656     '
15657     export as_echo_n_body
15658     as_echo_n='sh -c $as_echo_n_body as_echo'
15659   fi
15660   export as_echo_body
15661   as_echo='sh -c $as_echo_body as_echo'
15662 fi
15663
15664 # The user is always right.
15665 if test "${PATH_SEPARATOR+set}" != set; then
15666   PATH_SEPARATOR=:
15667   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15668     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15669       PATH_SEPARATOR=';'
15670   }
15671 fi
15672
15673
15674 # IFS
15675 # We need space, tab and new line, in precisely that order.  Quoting is
15676 # there to prevent editors from complaining about space-tab.
15677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15678 # splitting by setting IFS to empty value.)
15679 IFS=" ""        $as_nl"
15680
15681 # Find who we are.  Look in the path if we contain no directory separator.
15682 as_myself=
15683 case $0 in #((
15684   *[\\/]* ) as_myself=$0 ;;
15685   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15687 do
15688   IFS=$as_save_IFS
15689   test -z "$as_dir" && as_dir=.
15690     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15691   done
15692 IFS=$as_save_IFS
15693
15694      ;;
15695 esac
15696 # We did not find ourselves, most probably we were run as `sh COMMAND'
15697 # in which case we are not to be found in the path.
15698 if test "x$as_myself" = x; then
15699   as_myself=$0
15700 fi
15701 if test ! -f "$as_myself"; then
15702   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15703   exit 1
15704 fi
15705
15706 # Unset variables that we do not need and which cause bugs (e.g. in
15707 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15708 # suppresses any "Segmentation fault" message there.  '((' could
15709 # trigger a bug in pdksh 5.2.14.
15710 for as_var in BASH_ENV ENV MAIL MAILPATH
15711 do eval test x\${$as_var+set} = xset \
15712   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15713 done
15714 PS1='$ '
15715 PS2='> '
15716 PS4='+ '
15717
15718 # NLS nuisances.
15719 LC_ALL=C
15720 export LC_ALL
15721 LANGUAGE=C
15722 export LANGUAGE
15723
15724 # CDPATH.
15725 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15726
15727
15728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15729 # ----------------------------------------
15730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15732 # script with STATUS, using 1 if that was 0.
15733 as_fn_error ()
15734 {
15735   as_status=$1; test $as_status -eq 0 && as_status=1
15736   if test "$4"; then
15737     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15738     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15739   fi
15740   $as_echo "$as_me: error: $2" >&2
15741   as_fn_exit $as_status
15742 } # as_fn_error
15743
15744
15745 # as_fn_set_status STATUS
15746 # -----------------------
15747 # Set $? to STATUS, without forking.
15748 as_fn_set_status ()
15749 {
15750   return $1
15751 } # as_fn_set_status
15752
15753 # as_fn_exit STATUS
15754 # -----------------
15755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15756 as_fn_exit ()
15757 {
15758   set +e
15759   as_fn_set_status $1
15760   exit $1
15761 } # as_fn_exit
15762
15763 # as_fn_unset VAR
15764 # ---------------
15765 # Portably unset VAR.
15766 as_fn_unset ()
15767 {
15768   { eval $1=; unset $1;}
15769 }
15770 as_unset=as_fn_unset
15771 # as_fn_append VAR VALUE
15772 # ----------------------
15773 # Append the text in VALUE to the end of the definition contained in VAR. Take
15774 # advantage of any shell optimizations that allow amortized linear growth over
15775 # repeated appends, instead of the typical quadratic growth present in naive
15776 # implementations.
15777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15778   eval 'as_fn_append ()
15779   {
15780     eval $1+=\$2
15781   }'
15782 else
15783   as_fn_append ()
15784   {
15785     eval $1=\$$1\$2
15786   }
15787 fi # as_fn_append
15788
15789 # as_fn_arith ARG...
15790 # ------------------
15791 # Perform arithmetic evaluation on the ARGs, and store the result in the
15792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15793 # must be portable across $(()) and expr.
15794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15795   eval 'as_fn_arith ()
15796   {
15797     as_val=$(( $* ))
15798   }'
15799 else
15800   as_fn_arith ()
15801   {
15802     as_val=`expr "$@" || test $? -eq 1`
15803   }
15804 fi # as_fn_arith
15805
15806
15807 if expr a : '\(a\)' >/dev/null 2>&1 &&
15808    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15809   as_expr=expr
15810 else
15811   as_expr=false
15812 fi
15813
15814 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15815   as_basename=basename
15816 else
15817   as_basename=false
15818 fi
15819
15820 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15821   as_dirname=dirname
15822 else
15823   as_dirname=false
15824 fi
15825
15826 as_me=`$as_basename -- "$0" ||
15827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15828          X"$0" : 'X\(//\)$' \| \
15829          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15830 $as_echo X/"$0" |
15831     sed '/^.*\/\([^/][^/]*\)\/*$/{
15832             s//\1/
15833             q
15834           }
15835           /^X\/\(\/\/\)$/{
15836             s//\1/
15837             q
15838           }
15839           /^X\/\(\/\).*/{
15840             s//\1/
15841             q
15842           }
15843           s/.*/./; q'`
15844
15845 # Avoid depending upon Character Ranges.
15846 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15847 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15848 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15849 as_cr_digits='0123456789'
15850 as_cr_alnum=$as_cr_Letters$as_cr_digits
15851
15852 ECHO_C= ECHO_N= ECHO_T=
15853 case `echo -n x` in #(((((
15854 -n*)
15855   case `echo 'xy\c'` in
15856   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15857   xy)  ECHO_C='\c';;
15858   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15859        ECHO_T=' ';;
15860   esac;;
15861 *)
15862   ECHO_N='-n';;
15863 esac
15864
15865 rm -f conf$$ conf$$.exe conf$$.file
15866 if test -d conf$$.dir; then
15867   rm -f conf$$.dir/conf$$.file
15868 else
15869   rm -f conf$$.dir
15870   mkdir conf$$.dir 2>/dev/null
15871 fi
15872 if (echo >conf$$.file) 2>/dev/null; then
15873   if ln -s conf$$.file conf$$ 2>/dev/null; then
15874     as_ln_s='ln -s'
15875     # ... but there are two gotchas:
15876     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15877     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15878     # In both cases, we have to default to `cp -pR'.
15879     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15880       as_ln_s='cp -pR'
15881   elif ln conf$$.file conf$$ 2>/dev/null; then
15882     as_ln_s=ln
15883   else
15884     as_ln_s='cp -pR'
15885   fi
15886 else
15887   as_ln_s='cp -pR'
15888 fi
15889 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15890 rmdir conf$$.dir 2>/dev/null
15891
15892
15893 # as_fn_mkdir_p
15894 # -------------
15895 # Create "$as_dir" as a directory, including parents if necessary.
15896 as_fn_mkdir_p ()
15897 {
15898
15899   case $as_dir in #(
15900   -*) as_dir=./$as_dir;;
15901   esac
15902   test -d "$as_dir" || eval $as_mkdir_p || {
15903     as_dirs=
15904     while :; do
15905       case $as_dir in #(
15906       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15907       *) as_qdir=$as_dir;;
15908       esac
15909       as_dirs="'$as_qdir' $as_dirs"
15910       as_dir=`$as_dirname -- "$as_dir" ||
15911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15912          X"$as_dir" : 'X\(//\)[^/]' \| \
15913          X"$as_dir" : 'X\(//\)$' \| \
15914          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15915 $as_echo X"$as_dir" |
15916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15917             s//\1/
15918             q
15919           }
15920           /^X\(\/\/\)[^/].*/{
15921             s//\1/
15922             q
15923           }
15924           /^X\(\/\/\)$/{
15925             s//\1/
15926             q
15927           }
15928           /^X\(\/\).*/{
15929             s//\1/
15930             q
15931           }
15932           s/.*/./; q'`
15933       test -d "$as_dir" && break
15934     done
15935     test -z "$as_dirs" || eval "mkdir $as_dirs"
15936   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15937
15938
15939 } # as_fn_mkdir_p
15940 if mkdir -p . 2>/dev/null; then
15941   as_mkdir_p='mkdir -p "$as_dir"'
15942 else
15943   test -d ./-p && rmdir ./-p
15944   as_mkdir_p=false
15945 fi
15946
15947
15948 # as_fn_executable_p FILE
15949 # -----------------------
15950 # Test if FILE is an executable regular file.
15951 as_fn_executable_p ()
15952 {
15953   test -f "$1" && test -x "$1"
15954 } # as_fn_executable_p
15955 as_test_x='test -x'
15956 as_executable_p=as_fn_executable_p
15957
15958 # Sed expression to map a string onto a valid CPP name.
15959 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15960
15961 # Sed expression to map a string onto a valid variable name.
15962 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15963
15964
15965 exec 6>&1
15966 ## ----------------------------------- ##
15967 ## Main body of $CONFIG_STATUS script. ##
15968 ## ----------------------------------- ##
15969 _ASEOF
15970 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15971
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 # Save the log message, to keep $0 and so on meaningful, and to
15974 # report actual input values of CONFIG_FILES etc. instead of their
15975 # values after options handling.
15976 ac_log="
15977 This file was extended by package-unused $as_me version-unused, which was
15978 generated by GNU Autoconf 2.69.  Invocation command line was
15979
15980   CONFIG_FILES    = $CONFIG_FILES
15981   CONFIG_HEADERS  = $CONFIG_HEADERS
15982   CONFIG_LINKS    = $CONFIG_LINKS
15983   CONFIG_COMMANDS = $CONFIG_COMMANDS
15984   $ $0 $@
15985
15986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15987 "
15988
15989 _ACEOF
15990
15991 case $ac_config_files in *"
15992 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15993 esac
15994
15995 case $ac_config_headers in *"
15996 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15997 esac
15998
15999
16000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16001 # Files that config.status was made for.
16002 config_files="$ac_config_files"
16003 config_headers="$ac_config_headers"
16004 config_commands="$ac_config_commands"
16005
16006 _ACEOF
16007
16008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16009 ac_cs_usage="\
16010 \`$as_me' instantiates files and other configuration actions
16011 from templates according to the current configuration.  Unless the files
16012 and actions are specified as TAGs, all are instantiated by default.
16013
16014 Usage: $0 [OPTION]... [TAG]...
16015
16016   -h, --help       print this help, then exit
16017   -V, --version    print version number and configuration settings, then exit
16018       --config     print configuration, then exit
16019   -q, --quiet, --silent
16020                    do not print progress messages
16021   -d, --debug      don't remove temporary files
16022       --recheck    update $as_me by reconfiguring in the same conditions
16023       --file=FILE[:TEMPLATE]
16024                    instantiate the configuration file FILE
16025       --header=FILE[:TEMPLATE]
16026                    instantiate the configuration header FILE
16027
16028 Configuration files:
16029 $config_files
16030
16031 Configuration headers:
16032 $config_headers
16033
16034 Configuration commands:
16035 $config_commands
16036
16037 Report bugs to the package provider."
16038
16039 _ACEOF
16040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16041 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16042 ac_cs_version="\\
16043 package-unused config.status version-unused
16044 configured by $0, generated by GNU Autoconf 2.69,
16045   with options \\"\$ac_cs_config\\"
16046
16047 Copyright (C) 2012 Free Software Foundation, Inc.
16048 This config.status script is free software; the Free Software Foundation
16049 gives unlimited permission to copy, distribute and modify it."
16050
16051 ac_pwd='$ac_pwd'
16052 srcdir='$srcdir'
16053 INSTALL='$INSTALL'
16054 MKDIR_P='$MKDIR_P'
16055 AWK='$AWK'
16056 test -n "\$AWK" || AWK=awk
16057 _ACEOF
16058
16059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16060 # The default lists apply if the user does not specify any file.
16061 ac_need_defaults=:
16062 while test $# != 0
16063 do
16064   case $1 in
16065   --*=?*)
16066     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16067     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16068     ac_shift=:
16069     ;;
16070   --*=)
16071     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16072     ac_optarg=
16073     ac_shift=:
16074     ;;
16075   *)
16076     ac_option=$1
16077     ac_optarg=$2
16078     ac_shift=shift
16079     ;;
16080   esac
16081
16082   case $ac_option in
16083   # Handling of the options.
16084   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16085     ac_cs_recheck=: ;;
16086   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16087     $as_echo "$ac_cs_version"; exit ;;
16088   --config | --confi | --conf | --con | --co | --c )
16089     $as_echo "$ac_cs_config"; exit ;;
16090   --debug | --debu | --deb | --de | --d | -d )
16091     debug=: ;;
16092   --file | --fil | --fi | --f )
16093     $ac_shift
16094     case $ac_optarg in
16095     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16096     '') as_fn_error $? "missing file argument" ;;
16097     esac
16098     as_fn_append CONFIG_FILES " '$ac_optarg'"
16099     ac_need_defaults=false;;
16100   --header | --heade | --head | --hea )
16101     $ac_shift
16102     case $ac_optarg in
16103     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16104     esac
16105     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16106     ac_need_defaults=false;;
16107   --he | --h)
16108     # Conflict between --help and --header
16109     as_fn_error $? "ambiguous option: \`$1'
16110 Try \`$0 --help' for more information.";;
16111   --help | --hel | -h )
16112     $as_echo "$ac_cs_usage"; exit ;;
16113   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16114   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16115     ac_cs_silent=: ;;
16116
16117   # This is an error.
16118   -*) as_fn_error $? "unrecognized option: \`$1'
16119 Try \`$0 --help' for more information." ;;
16120
16121   *) as_fn_append ac_config_targets " $1"
16122      ac_need_defaults=false ;;
16123
16124   esac
16125   shift
16126 done
16127
16128 ac_configure_extra_args=
16129
16130 if $ac_cs_silent; then
16131   exec 6>/dev/null
16132   ac_configure_extra_args="$ac_configure_extra_args --silent"
16133 fi
16134
16135 _ACEOF
16136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16137 if \$ac_cs_recheck; then
16138   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16139   shift
16140   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16141   CONFIG_SHELL='$SHELL'
16142   export CONFIG_SHELL
16143   exec "\$@"
16144 fi
16145
16146 _ACEOF
16147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16148 exec 5>>config.log
16149 {
16150   echo
16151   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16152 ## Running $as_me. ##
16153 _ASBOX
16154   $as_echo "$ac_log"
16155 } >&5
16156
16157 _ACEOF
16158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16159 #
16160 # INIT-COMMANDS
16161 #
16162
16163 srcdir="$srcdir"
16164 host="$host"
16165 target="$target"
16166 with_multisubdir="$with_multisubdir"
16167 with_multisrctop="$with_multisrctop"
16168 with_target_subdir="$with_target_subdir"
16169 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16170 multi_basedir="$multi_basedir"
16171 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16172 CC="$CC"
16173 CXX="$CXX"
16174 GFORTRAN="$GFORTRAN"
16175 GDC="$GDC"
16176
16177
16178 # The HP-UX ksh and POSIX shell print the target directory to stdout
16179 # if CDPATH is set.
16180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16181
16182 sed_quote_subst='$sed_quote_subst'
16183 double_quote_subst='$double_quote_subst'
16184 delay_variable_subst='$delay_variable_subst'
16185 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16186 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16187 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16188 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16189 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16190 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16191 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16192 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16193 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16194 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16195 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16196 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16197 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16198 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16199 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16200 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16201 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16202 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16203 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16204 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16205 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16206 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16207 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16208 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16209 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16210 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16211 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16212 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16213 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16214 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16215 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16216 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16217 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16218 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16219 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16220 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16221 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16222 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16223 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16224 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16225 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16226 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16227 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16228 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16229 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16230 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16231 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16232 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16233 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"`'
16234 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16235 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16236 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16237 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16238 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16239 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16240 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16241 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16242 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16243 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16244 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16245 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16246 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16247 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16248 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16249 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16250 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16251 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16252 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16253 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16254 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16255 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16256 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16257 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16258 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16259 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16260 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16261 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16262 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16263 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16264 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16265 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16266 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16267 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16268 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16269 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16270 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16271 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16272 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16273 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16274 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16275 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16276 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16277 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16278 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16279 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16280 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16281 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16282 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16283 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16284 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16285 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16286 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16287 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16288 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16289 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16290 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16291 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16292 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16293 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16294 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16295 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16296 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16297 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16298 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16305 LD_D='`$ECHO "$LD_D" | $SED "$delay_single_quote_subst"`'
16306 reload_flag_D='`$ECHO "$reload_flag_D" | $SED "$delay_single_quote_subst"`'
16307 reload_cmds_D='`$ECHO "$reload_cmds_D" | $SED "$delay_single_quote_subst"`'
16308 old_archive_cmds_D='`$ECHO "$old_archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16309 compiler_D='`$ECHO "$compiler_D" | $SED "$delay_single_quote_subst"`'
16310 GCC_D='`$ECHO "$GCC_D" | $SED "$delay_single_quote_subst"`'
16311 lt_prog_compiler_no_builtin_flag_D='`$ECHO "$lt_prog_compiler_no_builtin_flag_D" | $SED "$delay_single_quote_subst"`'
16312 lt_prog_compiler_wl_D='`$ECHO "$lt_prog_compiler_wl_D" | $SED "$delay_single_quote_subst"`'
16313 lt_prog_compiler_pic_D='`$ECHO "$lt_prog_compiler_pic_D" | $SED "$delay_single_quote_subst"`'
16314 lt_prog_compiler_static_D='`$ECHO "$lt_prog_compiler_static_D" | $SED "$delay_single_quote_subst"`'
16315 lt_cv_prog_compiler_c_o_D='`$ECHO "$lt_cv_prog_compiler_c_o_D" | $SED "$delay_single_quote_subst"`'
16316 archive_cmds_need_lc_D='`$ECHO "$archive_cmds_need_lc_D" | $SED "$delay_single_quote_subst"`'
16317 enable_shared_with_static_runtimes_D='`$ECHO "$enable_shared_with_static_runtimes_D" | $SED "$delay_single_quote_subst"`'
16318 export_dynamic_flag_spec_D='`$ECHO "$export_dynamic_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16319 whole_archive_flag_spec_D='`$ECHO "$whole_archive_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16320 compiler_needs_object_D='`$ECHO "$compiler_needs_object_D" | $SED "$delay_single_quote_subst"`'
16321 old_archive_from_new_cmds_D='`$ECHO "$old_archive_from_new_cmds_D" | $SED "$delay_single_quote_subst"`'
16322 old_archive_from_expsyms_cmds_D='`$ECHO "$old_archive_from_expsyms_cmds_D" | $SED "$delay_single_quote_subst"`'
16323 archive_cmds_D='`$ECHO "$archive_cmds_D" | $SED "$delay_single_quote_subst"`'
16324 archive_expsym_cmds_D='`$ECHO "$archive_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16325 module_cmds_D='`$ECHO "$module_cmds_D" | $SED "$delay_single_quote_subst"`'
16326 module_expsym_cmds_D='`$ECHO "$module_expsym_cmds_D" | $SED "$delay_single_quote_subst"`'
16327 with_gnu_ld_D='`$ECHO "$with_gnu_ld_D" | $SED "$delay_single_quote_subst"`'
16328 allow_undefined_flag_D='`$ECHO "$allow_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16329 no_undefined_flag_D='`$ECHO "$no_undefined_flag_D" | $SED "$delay_single_quote_subst"`'
16330 hardcode_libdir_flag_spec_D='`$ECHO "$hardcode_libdir_flag_spec_D" | $SED "$delay_single_quote_subst"`'
16331 hardcode_libdir_flag_spec_ld_D='`$ECHO "$hardcode_libdir_flag_spec_ld_D" | $SED "$delay_single_quote_subst"`'
16332 hardcode_libdir_separator_D='`$ECHO "$hardcode_libdir_separator_D" | $SED "$delay_single_quote_subst"`'
16333 hardcode_direct_D='`$ECHO "$hardcode_direct_D" | $SED "$delay_single_quote_subst"`'
16334 hardcode_direct_absolute_D='`$ECHO "$hardcode_direct_absolute_D" | $SED "$delay_single_quote_subst"`'
16335 hardcode_minus_L_D='`$ECHO "$hardcode_minus_L_D" | $SED "$delay_single_quote_subst"`'
16336 hardcode_shlibpath_var_D='`$ECHO "$hardcode_shlibpath_var_D" | $SED "$delay_single_quote_subst"`'
16337 hardcode_automatic_D='`$ECHO "$hardcode_automatic_D" | $SED "$delay_single_quote_subst"`'
16338 inherit_rpath_D='`$ECHO "$inherit_rpath_D" | $SED "$delay_single_quote_subst"`'
16339 link_all_deplibs_D='`$ECHO "$link_all_deplibs_D" | $SED "$delay_single_quote_subst"`'
16340 fix_srcfile_path_D='`$ECHO "$fix_srcfile_path_D" | $SED "$delay_single_quote_subst"`'
16341 always_export_symbols_D='`$ECHO "$always_export_symbols_D" | $SED "$delay_single_quote_subst"`'
16342 export_symbols_cmds_D='`$ECHO "$export_symbols_cmds_D" | $SED "$delay_single_quote_subst"`'
16343 exclude_expsyms_D='`$ECHO "$exclude_expsyms_D" | $SED "$delay_single_quote_subst"`'
16344 include_expsyms_D='`$ECHO "$include_expsyms_D" | $SED "$delay_single_quote_subst"`'
16345 prelink_cmds_D='`$ECHO "$prelink_cmds_D" | $SED "$delay_single_quote_subst"`'
16346 file_list_spec_D='`$ECHO "$file_list_spec_D" | $SED "$delay_single_quote_subst"`'
16347 hardcode_action_D='`$ECHO "$hardcode_action_D" | $SED "$delay_single_quote_subst"`'
16348
16349 LTCC='$LTCC'
16350 LTCFLAGS='$LTCFLAGS'
16351 compiler='$compiler_DEFAULT'
16352
16353 # A function that is used when there is no print builtin or printf.
16354 func_fallback_echo ()
16355 {
16356   eval 'cat <<_LTECHO_EOF
16357 \$1
16358 _LTECHO_EOF'
16359 }
16360
16361 # Quote evaled strings.
16362 for var in SHELL \
16363 ECHO \
16364 SED \
16365 GREP \
16366 EGREP \
16367 FGREP \
16368 LD \
16369 NM \
16370 LN_S \
16371 lt_SP2NL \
16372 lt_NL2SP \
16373 reload_flag \
16374 OBJDUMP \
16375 deplibs_check_method \
16376 file_magic_cmd \
16377 AR \
16378 AR_FLAGS \
16379 STRIP \
16380 RANLIB \
16381 CC \
16382 CFLAGS \
16383 compiler \
16384 lt_cv_sys_global_symbol_pipe \
16385 lt_cv_sys_global_symbol_to_cdecl \
16386 lt_cv_sys_global_symbol_to_c_name_address \
16387 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16388 lt_prog_compiler_no_builtin_flag \
16389 lt_prog_compiler_wl \
16390 lt_prog_compiler_pic \
16391 lt_prog_compiler_static \
16392 lt_cv_prog_compiler_c_o \
16393 need_locks \
16394 DSYMUTIL \
16395 NMEDIT \
16396 LIPO \
16397 OTOOL \
16398 OTOOL64 \
16399 shrext_cmds \
16400 export_dynamic_flag_spec \
16401 whole_archive_flag_spec \
16402 compiler_needs_object \
16403 with_gnu_ld \
16404 allow_undefined_flag \
16405 no_undefined_flag \
16406 hardcode_libdir_flag_spec \
16407 hardcode_libdir_flag_spec_ld \
16408 hardcode_libdir_separator \
16409 fix_srcfile_path \
16410 exclude_expsyms \
16411 include_expsyms \
16412 file_list_spec \
16413 variables_saved_for_relink \
16414 libname_spec \
16415 library_names_spec \
16416 soname_spec \
16417 install_override_mode \
16418 finish_eval \
16419 old_striplib \
16420 striplib \
16421 LD_D \
16422 reload_flag_D \
16423 compiler_D \
16424 lt_prog_compiler_no_builtin_flag_D \
16425 lt_prog_compiler_wl_D \
16426 lt_prog_compiler_pic_D \
16427 lt_prog_compiler_static_D \
16428 lt_cv_prog_compiler_c_o_D \
16429 export_dynamic_flag_spec_D \
16430 whole_archive_flag_spec_D \
16431 compiler_needs_object_D \
16432 with_gnu_ld_D \
16433 allow_undefined_flag_D \
16434 no_undefined_flag_D \
16435 hardcode_libdir_flag_spec_D \
16436 hardcode_libdir_flag_spec_ld_D \
16437 hardcode_libdir_separator_D \
16438 fix_srcfile_path_D \
16439 exclude_expsyms_D \
16440 include_expsyms_D \
16441 file_list_spec_D; do
16442     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16443     *[\\\\\\\`\\"\\\$]*)
16444       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16445       ;;
16446     *)
16447       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16448       ;;
16449     esac
16450 done
16451
16452 # Double-quote double-evaled strings.
16453 for var in reload_cmds \
16454 old_postinstall_cmds \
16455 old_postuninstall_cmds \
16456 old_archive_cmds \
16457 extract_expsyms_cmds \
16458 old_archive_from_new_cmds \
16459 old_archive_from_expsyms_cmds \
16460 archive_cmds \
16461 archive_expsym_cmds \
16462 module_cmds \
16463 module_expsym_cmds \
16464 export_symbols_cmds \
16465 prelink_cmds \
16466 postinstall_cmds \
16467 postuninstall_cmds \
16468 finish_cmds \
16469 sys_lib_search_path_spec \
16470 sys_lib_dlsearch_path_spec \
16471 reload_cmds_D \
16472 old_archive_cmds_D \
16473 old_archive_from_new_cmds_D \
16474 old_archive_from_expsyms_cmds_D \
16475 archive_cmds_D \
16476 archive_expsym_cmds_D \
16477 module_cmds_D \
16478 module_expsym_cmds_D \
16479 export_symbols_cmds_D \
16480 prelink_cmds_D; do
16481     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16482     *[\\\\\\\`\\"\\\$]*)
16483       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16484       ;;
16485     *)
16486       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16487       ;;
16488     esac
16489 done
16490
16491 ac_aux_dir='$ac_aux_dir'
16492 xsi_shell='$xsi_shell'
16493 lt_shell_append='$lt_shell_append'
16494
16495 # See if we are running on zsh, and set the options which allow our
16496 # commands through without removal of \ escapes INIT.
16497 if test -n "\${ZSH_VERSION+set}" ; then
16498    setopt NO_GLOB_SUBST
16499 fi
16500
16501
16502     PACKAGE='$PACKAGE'
16503     VERSION='$VERSION'
16504     TIMESTAMP='$TIMESTAMP'
16505     RM='$RM'
16506     ofile='$ofile'
16507
16508
16509
16510
16511
16512
16513 _ACEOF
16514
16515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16516
16517 # Handling of arguments.
16518 for ac_config_target in $ac_config_targets
16519 do
16520   case $ac_config_target in
16521     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16522     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16523     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16524     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16525     "libdruntime/gcc/config.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/config.d" ;;
16526     "libdruntime/gcc/libbacktrace.d") CONFIG_FILES="$CONFIG_FILES libdruntime/gcc/libbacktrace.d" ;;
16527     "src/libgphobos.spec") CONFIG_FILES="$CONFIG_FILES src/libgphobos.spec" ;;
16528     "testsuite/testsuite_flags") CONFIG_FILES="$CONFIG_FILES testsuite/testsuite_flags" ;;
16529     "libdruntime/Makefile") CONFIG_FILES="$CONFIG_FILES libdruntime/Makefile" ;;
16530     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16531     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16532
16533   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16534   esac
16535 done
16536
16537
16538 # If the user did not use the arguments to specify the items to instantiate,
16539 # then the envvar interface is used.  Set only those that are not.
16540 # We use the long form for the default assignment because of an extremely
16541 # bizarre bug on SunOS 4.1.3.
16542 if $ac_need_defaults; then
16543   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16544   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16545   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16546 fi
16547
16548 # Have a temporary directory for convenience.  Make it in the build tree
16549 # simply because there is no reason against having it here, and in addition,
16550 # creating and moving files from /tmp can sometimes cause problems.
16551 # Hook for its removal unless debugging.
16552 # Note that there is a small window in which the directory will not be cleaned:
16553 # after its creation but before its name has been assigned to `$tmp'.
16554 $debug ||
16555 {
16556   tmp= ac_tmp=
16557   trap 'exit_status=$?
16558   : "${ac_tmp:=$tmp}"
16559   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16560 ' 0
16561   trap 'as_fn_exit 1' 1 2 13 15
16562 }
16563 # Create a (secure) tmp directory for tmp files.
16564
16565 {
16566   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16567   test -d "$tmp"
16568 }  ||
16569 {
16570   tmp=./conf$$-$RANDOM
16571   (umask 077 && mkdir "$tmp")
16572 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16573 ac_tmp=$tmp
16574
16575 # Set up the scripts for CONFIG_FILES section.
16576 # No need to generate them if there are no CONFIG_FILES.
16577 # This happens for instance with `./config.status config.h'.
16578 if test -n "$CONFIG_FILES"; then
16579
16580 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16581   ac_cs_awk_getline=:
16582   ac_cs_awk_pipe_init=
16583   ac_cs_awk_read_file='
16584       while ((getline aline < (F[key])) > 0)
16585         print(aline)
16586       close(F[key])'
16587   ac_cs_awk_pipe_fini=
16588 else
16589   ac_cs_awk_getline=false
16590   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16591   ac_cs_awk_read_file='
16592       print "|#_!!_#|"
16593       print "cat " F[key] " &&"
16594       '$ac_cs_awk_pipe_init
16595   # The final `:' finishes the AND list.
16596   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16597 fi
16598 ac_cr=`echo X | tr X '\015'`
16599 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16600 # But we know of no other shell where ac_cr would be empty at this
16601 # point, so we can use a bashism as a fallback.
16602 if test "x$ac_cr" = x; then
16603   eval ac_cr=\$\'\\r\'
16604 fi
16605 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16606 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16607   ac_cs_awk_cr='\\r'
16608 else
16609   ac_cs_awk_cr=$ac_cr
16610 fi
16611
16612 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16613 _ACEOF
16614
16615 # Create commands to substitute file output variables.
16616 {
16617   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16618   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16619   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16620   echo "_ACAWK" &&
16621   echo "_ACEOF"
16622 } >conf$$files.sh &&
16623 . ./conf$$files.sh ||
16624   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16625 rm -f conf$$files.sh
16626
16627 {
16628   echo "cat >conf$$subs.awk <<_ACEOF" &&
16629   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16630   echo "_ACEOF"
16631 } >conf$$subs.sh ||
16632   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16633 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16634 ac_delim='%!_!# '
16635 for ac_last_try in false false false false false :; do
16636   . ./conf$$subs.sh ||
16637     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16638
16639   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16640   if test $ac_delim_n = $ac_delim_num; then
16641     break
16642   elif $ac_last_try; then
16643     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16644   else
16645     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16646   fi
16647 done
16648 rm -f conf$$subs.sh
16649
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16652 _ACEOF
16653 sed -n '
16654 h
16655 s/^/S["/; s/!.*/"]=/
16656 p
16657 g
16658 s/^[^!]*!//
16659 :repl
16660 t repl
16661 s/'"$ac_delim"'$//
16662 t delim
16663 :nl
16664 h
16665 s/\(.\{148\}\)..*/\1/
16666 t more1
16667 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16668 p
16669 n
16670 b repl
16671 :more1
16672 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16673 p
16674 g
16675 s/.\{148\}//
16676 t nl
16677 :delim
16678 h
16679 s/\(.\{148\}\)..*/\1/
16680 t more2
16681 s/["\\]/\\&/g; s/^/"/; s/$/"/
16682 p
16683 b
16684 :more2
16685 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16686 p
16687 g
16688 s/.\{148\}//
16689 t delim
16690 ' <conf$$subs.awk | sed '
16691 /^[^""]/{
16692   N
16693   s/\n//
16694 }
16695 ' >>$CONFIG_STATUS || ac_write_fail=1
16696 rm -f conf$$subs.awk
16697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16698 _ACAWK
16699 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16700   for (key in S) S_is_set[key] = 1
16701   FS = "\a"
16702   \$ac_cs_awk_pipe_init
16703 }
16704 {
16705   line = $ 0
16706   nfields = split(line, field, "@")
16707   substed = 0
16708   len = length(field[1])
16709   for (i = 2; i < nfields; i++) {
16710     key = field[i]
16711     keylen = length(key)
16712     if (S_is_set[key]) {
16713       value = S[key]
16714       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16715       len += length(value) + length(field[++i])
16716       substed = 1
16717     } else
16718       len += 1 + keylen
16719   }
16720   if (nfields == 3 && !substed) {
16721     key = field[2]
16722     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16723       \$ac_cs_awk_read_file
16724       next
16725     }
16726   }
16727   print line
16728 }
16729 \$ac_cs_awk_pipe_fini
16730 _ACAWK
16731 _ACEOF
16732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16733 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16734   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16735 else
16736   cat
16737 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16738   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16739 _ACEOF
16740
16741 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16742 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16743 # trailing colons and then remove the whole line if VPATH becomes empty
16744 # (actually we leave an empty line to preserve line numbers).
16745 if test "x$srcdir" = x.; then
16746   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16747 h
16748 s///
16749 s/^/:/
16750 s/[      ]*$/:/
16751 s/:\$(srcdir):/:/g
16752 s/:\${srcdir}:/:/g
16753 s/:@srcdir@:/:/g
16754 s/^:*//
16755 s/:*$//
16756 x
16757 s/\(=[   ]*\).*/\1/
16758 G
16759 s/\n//
16760 s/^[^=]*=[       ]*$//
16761 }'
16762 fi
16763
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16765 fi # test -n "$CONFIG_FILES"
16766
16767 # Set up the scripts for CONFIG_HEADERS section.
16768 # No need to generate them if there are no CONFIG_HEADERS.
16769 # This happens for instance with `./config.status Makefile'.
16770 if test -n "$CONFIG_HEADERS"; then
16771 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16772 BEGIN {
16773 _ACEOF
16774
16775 # Transform confdefs.h into an awk script `defines.awk', embedded as
16776 # here-document in config.status, that substitutes the proper values into
16777 # config.h.in to produce config.h.
16778
16779 # Create a delimiter string that does not exist in confdefs.h, to ease
16780 # handling of long lines.
16781 ac_delim='%!_!# '
16782 for ac_last_try in false false :; do
16783   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16784   if test -z "$ac_tt"; then
16785     break
16786   elif $ac_last_try; then
16787     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16788   else
16789     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16790   fi
16791 done
16792
16793 # For the awk script, D is an array of macro values keyed by name,
16794 # likewise P contains macro parameters if any.  Preserve backslash
16795 # newline sequences.
16796
16797 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16798 sed -n '
16799 s/.\{148\}/&'"$ac_delim"'/g
16800 t rset
16801 :rset
16802 s/^[     ]*#[    ]*define[       ][      ]*/ /
16803 t def
16804 d
16805 :def
16806 s/\\$//
16807 t bsnl
16808 s/["\\]/\\&/g
16809 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16810 D["\1"]=" \3"/p
16811 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16812 d
16813 :bsnl
16814 s/["\\]/\\&/g
16815 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16816 D["\1"]=" \3\\\\\\n"\\/p
16817 t cont
16818 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16819 t cont
16820 d
16821 :cont
16822 n
16823 s/.\{148\}/&'"$ac_delim"'/g
16824 t clear
16825 :clear
16826 s/\\$//
16827 t bsnlc
16828 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16829 d
16830 :bsnlc
16831 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16832 b cont
16833 ' <confdefs.h | sed '
16834 s/'"$ac_delim"'/"\\\
16835 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16836
16837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16838   for (key in D) D_is_set[key] = 1
16839   FS = "\a"
16840 }
16841 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16842   line = \$ 0
16843   split(line, arg, " ")
16844   if (arg[1] == "#") {
16845     defundef = arg[2]
16846     mac1 = arg[3]
16847   } else {
16848     defundef = substr(arg[1], 2)
16849     mac1 = arg[2]
16850   }
16851   split(mac1, mac2, "(") #)
16852   macro = mac2[1]
16853   prefix = substr(line, 1, index(line, defundef) - 1)
16854   if (D_is_set[macro]) {
16855     # Preserve the white space surrounding the "#".
16856     print prefix "define", macro P[macro] D[macro]
16857     next
16858   } else {
16859     # Replace #undef with comments.  This is necessary, for example,
16860     # in the case of _POSIX_SOURCE, which is predefined and required
16861     # on some systems where configure will not decide to define it.
16862     if (defundef == "undef") {
16863       print "/*", prefix defundef, macro, "*/"
16864       next
16865     }
16866   }
16867 }
16868 { print }
16869 _ACAWK
16870 _ACEOF
16871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16872   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16873 fi # test -n "$CONFIG_HEADERS"
16874
16875
16876 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16877 shift
16878 for ac_tag
16879 do
16880   case $ac_tag in
16881   :[FHLC]) ac_mode=$ac_tag; continue;;
16882   esac
16883   case $ac_mode$ac_tag in
16884   :[FHL]*:*);;
16885   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16886   :[FH]-) ac_tag=-:-;;
16887   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16888   esac
16889   ac_save_IFS=$IFS
16890   IFS=:
16891   set x $ac_tag
16892   IFS=$ac_save_IFS
16893   shift
16894   ac_file=$1
16895   shift
16896
16897   case $ac_mode in
16898   :L) ac_source=$1;;
16899   :[FH])
16900     ac_file_inputs=
16901     for ac_f
16902     do
16903       case $ac_f in
16904       -) ac_f="$ac_tmp/stdin";;
16905       *) # Look for the file first in the build tree, then in the source tree
16906          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16907          # because $ac_f cannot contain `:'.
16908          test -f "$ac_f" ||
16909            case $ac_f in
16910            [\\/$]*) false;;
16911            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16912            esac ||
16913            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16914       esac
16915       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16916       as_fn_append ac_file_inputs " '$ac_f'"
16917     done
16918
16919     # Let's still pretend it is `configure' which instantiates (i.e., don't
16920     # use $as_me), people would be surprised to read:
16921     #    /* config.h.  Generated by config.status.  */
16922     configure_input='Generated from '`
16923           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16924         `' by configure.'
16925     if test x"$ac_file" != x-; then
16926       configure_input="$ac_file.  $configure_input"
16927       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16928 $as_echo "$as_me: creating $ac_file" >&6;}
16929     fi
16930     # Neutralize special characters interpreted by sed in replacement strings.
16931     case $configure_input in #(
16932     *\&* | *\|* | *\\* )
16933        ac_sed_conf_input=`$as_echo "$configure_input" |
16934        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16935     *) ac_sed_conf_input=$configure_input;;
16936     esac
16937
16938     case $ac_tag in
16939     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16940       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16941     esac
16942     ;;
16943   esac
16944
16945   ac_dir=`$as_dirname -- "$ac_file" ||
16946 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16947          X"$ac_file" : 'X\(//\)[^/]' \| \
16948          X"$ac_file" : 'X\(//\)$' \| \
16949          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16950 $as_echo X"$ac_file" |
16951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16952             s//\1/
16953             q
16954           }
16955           /^X\(\/\/\)[^/].*/{
16956             s//\1/
16957             q
16958           }
16959           /^X\(\/\/\)$/{
16960             s//\1/
16961             q
16962           }
16963           /^X\(\/\).*/{
16964             s//\1/
16965             q
16966           }
16967           s/.*/./; q'`
16968   as_dir="$ac_dir"; as_fn_mkdir_p
16969   ac_builddir=.
16970
16971 case "$ac_dir" in
16972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16973 *)
16974   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16975   # A ".." for each directory in $ac_dir_suffix.
16976   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16977   case $ac_top_builddir_sub in
16978   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16979   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16980   esac ;;
16981 esac
16982 ac_abs_top_builddir=$ac_pwd
16983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16984 # for backward compatibility:
16985 ac_top_builddir=$ac_top_build_prefix
16986
16987 case $srcdir in
16988   .)  # We are building in place.
16989     ac_srcdir=.
16990     ac_top_srcdir=$ac_top_builddir_sub
16991     ac_abs_top_srcdir=$ac_pwd ;;
16992   [\\/]* | ?:[\\/]* )  # Absolute name.
16993     ac_srcdir=$srcdir$ac_dir_suffix;
16994     ac_top_srcdir=$srcdir
16995     ac_abs_top_srcdir=$srcdir ;;
16996   *) # Relative name.
16997     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16998     ac_top_srcdir=$ac_top_build_prefix$srcdir
16999     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17000 esac
17001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17002
17003
17004   case $ac_mode in
17005   :F)
17006   #
17007   # CONFIG_FILE
17008   #
17009
17010   case $INSTALL in
17011   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17012   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17013   esac
17014   ac_MKDIR_P=$MKDIR_P
17015   case $MKDIR_P in
17016   [\\/$]* | ?:[\\/]* ) ;;
17017   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17018   esac
17019 _ACEOF
17020
17021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17022 # If the template does not know about datarootdir, expand it.
17023 # FIXME: This hack should be removed a few years after 2.60.
17024 ac_datarootdir_hack=; ac_datarootdir_seen=
17025 ac_sed_dataroot='
17026 /datarootdir/ {
17027   p
17028   q
17029 }
17030 /@datadir@/p
17031 /@docdir@/p
17032 /@infodir@/p
17033 /@localedir@/p
17034 /@mandir@/p'
17035 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17036 *datarootdir*) ac_datarootdir_seen=yes;;
17037 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17039 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17040 _ACEOF
17041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17042   ac_datarootdir_hack='
17043   s&@datadir@&$datadir&g
17044   s&@docdir@&$docdir&g
17045   s&@infodir@&$infodir&g
17046   s&@localedir@&$localedir&g
17047   s&@mandir@&$mandir&g
17048   s&\\\${datarootdir}&$datarootdir&g' ;;
17049 esac
17050 _ACEOF
17051
17052 # Neutralize VPATH when `$srcdir' = `.'.
17053 # Shell code in configure.ac might set extrasub.
17054 # FIXME: do we really want to maintain this feature?
17055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17056 ac_sed_extra="$ac_vpsub
17057 $extrasub
17058 _ACEOF
17059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17060 :t
17061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17062 s|@configure_input@|$ac_sed_conf_input|;t t
17063 s&@top_builddir@&$ac_top_builddir_sub&;t t
17064 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17065 s&@srcdir@&$ac_srcdir&;t t
17066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17067 s&@top_srcdir@&$ac_top_srcdir&;t t
17068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17069 s&@builddir@&$ac_builddir&;t t
17070 s&@abs_builddir@&$ac_abs_builddir&;t t
17071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17072 s&@INSTALL@&$ac_INSTALL&;t t
17073 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17074 $ac_datarootdir_hack
17075 "
17076 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17077 if $ac_cs_awk_getline; then
17078   $AWK -f "$ac_tmp/subs.awk"
17079 else
17080   $AWK -f "$ac_tmp/subs.awk" | $SHELL
17081 fi \
17082   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17083
17084 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17085   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17086   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17087       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17088   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17089 which seems to be undefined.  Please make sure it is defined" >&5
17090 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17091 which seems to be undefined.  Please make sure it is defined" >&2;}
17092
17093   rm -f "$ac_tmp/stdin"
17094   case $ac_file in
17095   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17096   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17097   esac \
17098   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17099  ;;
17100   :H)
17101   #
17102   # CONFIG_HEADER
17103   #
17104   if test x"$ac_file" != x-; then
17105     {
17106       $as_echo "/* $configure_input  */" \
17107       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17108     } >"$ac_tmp/config.h" \
17109       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17110     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17111       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17112 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17113     else
17114       rm -f "$ac_file"
17115       mv "$ac_tmp/config.h" "$ac_file" \
17116         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17117     fi
17118   else
17119     $as_echo "/* $configure_input  */" \
17120       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17121       || as_fn_error $? "could not create -" "$LINENO" 5
17122   fi
17123 # Compute "$ac_file"'s index in $config_headers.
17124 _am_arg="$ac_file"
17125 _am_stamp_count=1
17126 for _am_header in $config_headers :; do
17127   case $_am_header in
17128     $_am_arg | $_am_arg:* )
17129       break ;;
17130     * )
17131       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17132   esac
17133 done
17134 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17135 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17136          X"$_am_arg" : 'X\(//\)[^/]' \| \
17137          X"$_am_arg" : 'X\(//\)$' \| \
17138          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17139 $as_echo X"$_am_arg" |
17140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17141             s//\1/
17142             q
17143           }
17144           /^X\(\/\/\)[^/].*/{
17145             s//\1/
17146             q
17147           }
17148           /^X\(\/\/\)$/{
17149             s//\1/
17150             q
17151           }
17152           /^X\(\/\).*/{
17153             s//\1/
17154             q
17155           }
17156           s/.*/./; q'`/stamp-h$_am_stamp_count
17157  ;;
17158
17159   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17160 $as_echo "$as_me: executing $ac_file commands" >&6;}
17161  ;;
17162   esac
17163
17164
17165   case $ac_file$ac_mode in
17166     "default-1":C)
17167 # Only add multilib support code if we just rebuilt the top-level
17168 # Makefile.
17169 case " $CONFIG_FILES " in
17170  *" Makefile "*)
17171    ac_file=Makefile . ${multi_basedir}/config-ml.in
17172    ;;
17173 esac ;;
17174     "libtool":C)
17175
17176     # See if we are running on zsh, and set the options which allow our
17177     # commands through without removal of \ escapes.
17178     if test -n "${ZSH_VERSION+set}" ; then
17179       setopt NO_GLOB_SUBST
17180     fi
17181
17182     cfgfile="${ofile}T"
17183     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17184     $RM "$cfgfile"
17185
17186     cat <<_LT_EOF >> "$cfgfile"
17187 #! $SHELL
17188
17189 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17190 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17192 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17193 #
17194 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17195 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17196 #   Written by Gordon Matzigkeit, 1996
17197 #
17198 #   This file is part of GNU Libtool.
17199 #
17200 # GNU Libtool is free software; you can redistribute it and/or
17201 # modify it under the terms of the GNU General Public License as
17202 # published by the Free Software Foundation; either version 2 of
17203 # the License, or (at your option) any later version.
17204 #
17205 # As a special exception to the GNU General Public License,
17206 # if you distribute this file as part of a program or library that
17207 # is built using GNU Libtool, you may include this file under the
17208 # same distribution terms that you use for the rest of that program.
17209 #
17210 # GNU Libtool is distributed in the hope that it will be useful,
17211 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17213 # GNU General Public License for more details.
17214 #
17215 # You should have received a copy of the GNU General Public License
17216 # along with GNU Libtool; see the file COPYING.  If not, a copy
17217 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17218 # obtained by writing to the Free Software Foundation, Inc.,
17219 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17220
17221
17222 # The names of the tagged configurations supported by this script.
17223 available_tags="D "
17224
17225 # ### BEGIN LIBTOOL CONFIG
17226
17227 # Which release of libtool.m4 was used?
17228 macro_version=$macro_version
17229 macro_revision=$macro_revision
17230
17231 # Whether or not to build shared libraries.
17232 build_libtool_libs=$enable_shared
17233
17234 # Whether or not to build static libraries.
17235 build_old_libs=$enable_static
17236
17237 # What type of objects to build.
17238 pic_mode=$pic_mode
17239
17240 # Whether or not to optimize for fast installation.
17241 fast_install=$enable_fast_install
17242
17243 # Shell to use when invoking shell scripts.
17244 SHELL=$lt_SHELL
17245
17246 # An echo program that protects backslashes.
17247 ECHO=$lt_ECHO
17248
17249 # The host system.
17250 host_alias=$host_alias
17251 host=$host
17252 host_os=$host_os
17253
17254 # The build system.
17255 build_alias=$build_alias
17256 build=$build
17257 build_os=$build_os
17258
17259 # A sed program that does not truncate output.
17260 SED=$lt_SED
17261
17262 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17263 Xsed="\$SED -e 1s/^X//"
17264
17265 # A grep program that handles long lines.
17266 GREP=$lt_GREP
17267
17268 # An ERE matcher.
17269 EGREP=$lt_EGREP
17270
17271 # A literal string matcher.
17272 FGREP=$lt_FGREP
17273
17274 # A BSD- or MS-compatible name lister.
17275 NM=$lt_NM
17276
17277 # Whether we need soft or hard links.
17278 LN_S=$lt_LN_S
17279
17280 # What is the maximum length of a command?
17281 max_cmd_len=$max_cmd_len
17282
17283 # Object file suffix (normally "o").
17284 objext=$ac_objext
17285
17286 # Executable file suffix (normally "").
17287 exeext=$exeext
17288
17289 # whether the shell understands "unset".
17290 lt_unset=$lt_unset
17291
17292 # turn spaces into newlines.
17293 SP2NL=$lt_lt_SP2NL
17294
17295 # turn newlines into spaces.
17296 NL2SP=$lt_lt_NL2SP
17297
17298 # An object symbol dumper.
17299 OBJDUMP=$lt_OBJDUMP
17300
17301 # Method to check whether dependent libraries are shared objects.
17302 deplibs_check_method=$lt_deplibs_check_method
17303
17304 # Command to use when deplibs_check_method == "file_magic".
17305 file_magic_cmd=$lt_file_magic_cmd
17306
17307 # The archiver.
17308 AR=$lt_AR
17309 AR_FLAGS=$lt_AR_FLAGS
17310
17311 # A symbol stripping program.
17312 STRIP=$lt_STRIP
17313
17314 # Commands used to install an old-style archive.
17315 RANLIB=$lt_RANLIB
17316 old_postinstall_cmds=$lt_old_postinstall_cmds
17317 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17318
17319 # Whether to use a lock for old archive extraction.
17320 lock_old_archive_extraction=$lock_old_archive_extraction
17321
17322 # A C compiler.
17323 LTCC=$lt_CC
17324
17325 # LTCC compiler flags.
17326 LTCFLAGS=$lt_CFLAGS
17327
17328 # Take the output of nm and produce a listing of raw symbols and C names.
17329 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17330
17331 # Transform the output of nm in a proper C declaration.
17332 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17333
17334 # Transform the output of nm in a C name address pair.
17335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17336
17337 # Transform the output of nm in a C name address pair when lib prefix is needed.
17338 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17339
17340 # The name of the directory that contains temporary libtool files.
17341 objdir=$objdir
17342
17343 # Used to examine libraries when file_magic_cmd begins with "file".
17344 MAGIC_CMD=$MAGIC_CMD
17345
17346 # Must we lock files when doing compilation?
17347 need_locks=$lt_need_locks
17348
17349 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17350 DSYMUTIL=$lt_DSYMUTIL
17351
17352 # Tool to change global to local symbols on Mac OS X.
17353 NMEDIT=$lt_NMEDIT
17354
17355 # Tool to manipulate fat objects and archives on Mac OS X.
17356 LIPO=$lt_LIPO
17357
17358 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17359 OTOOL=$lt_OTOOL
17360
17361 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17362 OTOOL64=$lt_OTOOL64
17363
17364 # Old archive suffix (normally "a").
17365 libext=$libext
17366
17367 # Shared library suffix (normally ".so").
17368 shrext_cmds=$lt_shrext_cmds
17369
17370 # The commands to extract the exported symbol list from a shared archive.
17371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17372
17373 # Variables whose values should be saved in libtool wrapper scripts and
17374 # restored at link time.
17375 variables_saved_for_relink=$lt_variables_saved_for_relink
17376
17377 # Do we need the "lib" prefix for modules?
17378 need_lib_prefix=$need_lib_prefix
17379
17380 # Do we need a version for libraries?
17381 need_version=$need_version
17382
17383 # Library versioning type.
17384 version_type=$version_type
17385
17386 # Shared library runtime path variable.
17387 runpath_var=$runpath_var
17388
17389 # Shared library path variable.
17390 shlibpath_var=$shlibpath_var
17391
17392 # Is shlibpath searched before the hard-coded library search path?
17393 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17394
17395 # Format of library name prefix.
17396 libname_spec=$lt_libname_spec
17397
17398 # List of archive names.  First name is the real one, the rest are links.
17399 # The last name is the one that the linker finds with -lNAME
17400 library_names_spec=$lt_library_names_spec
17401
17402 # The coded name of the library, if different from the real name.
17403 soname_spec=$lt_soname_spec
17404
17405 # Permission mode override for installation of shared libraries.
17406 install_override_mode=$lt_install_override_mode
17407
17408 # Command to use after installation of a shared archive.
17409 postinstall_cmds=$lt_postinstall_cmds
17410
17411 # Command to use after uninstallation of a shared archive.
17412 postuninstall_cmds=$lt_postuninstall_cmds
17413
17414 # Commands used to finish a libtool library installation in a directory.
17415 finish_cmds=$lt_finish_cmds
17416
17417 # As "finish_cmds", except a single script fragment to be evaled but
17418 # not shown.
17419 finish_eval=$lt_finish_eval
17420
17421 # Whether we should hardcode library paths into libraries.
17422 hardcode_into_libs=$hardcode_into_libs
17423
17424 # Compile-time system search path for libraries.
17425 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17426
17427 # Run-time system search path for libraries.
17428 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17429
17430 # Whether dlopen is supported.
17431 dlopen_support=$enable_dlopen
17432
17433 # Whether dlopen of programs is supported.
17434 dlopen_self=$enable_dlopen_self
17435
17436 # Whether dlopen of statically linked programs is supported.
17437 dlopen_self_static=$enable_dlopen_self_static
17438
17439 # Commands to strip libraries.
17440 old_striplib=$lt_old_striplib
17441 striplib=$lt_striplib
17442
17443
17444 # The linker used to build libraries.
17445 LD=$lt_LD
17446
17447 # How to create reloadable object files.
17448 reload_flag=$lt_reload_flag
17449 reload_cmds=$lt_reload_cmds
17450
17451 # Commands used to build an old-style archive.
17452 old_archive_cmds=$lt_old_archive_cmds
17453
17454 # A language specific compiler.
17455 CC=$lt_compiler
17456
17457 # Is the compiler the GNU compiler?
17458 with_gcc=$GCC
17459
17460 # Compiler flag to turn off builtin functions.
17461 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17462
17463 # How to pass a linker flag through the compiler.
17464 wl=$lt_lt_prog_compiler_wl
17465
17466 # Additional compiler flags for building library objects.
17467 pic_flag=$lt_lt_prog_compiler_pic
17468
17469 # Compiler flag to prevent dynamic linking.
17470 link_static_flag=$lt_lt_prog_compiler_static
17471
17472 # Does compiler simultaneously support -c and -o options?
17473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17474
17475 # Whether or not to add -lc for building shared libraries.
17476 build_libtool_need_lc=$archive_cmds_need_lc
17477
17478 # Whether or not to disallow shared libs when runtime libs are static.
17479 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17480
17481 # Compiler flag to allow reflexive dlopens.
17482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17483
17484 # Compiler flag to generate shared objects directly from archives.
17485 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17486
17487 # Whether the compiler copes with passing no objects directly.
17488 compiler_needs_object=$lt_compiler_needs_object
17489
17490 # Create an old-style archive from a shared archive.
17491 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17492
17493 # Create a temporary old-style archive to link instead of a shared archive.
17494 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17495
17496 # Commands used to build a shared archive.
17497 archive_cmds=$lt_archive_cmds
17498 archive_expsym_cmds=$lt_archive_expsym_cmds
17499
17500 # Commands used to build a loadable module if different from building
17501 # a shared archive.
17502 module_cmds=$lt_module_cmds
17503 module_expsym_cmds=$lt_module_expsym_cmds
17504
17505 # Whether we are building with GNU ld or not.
17506 with_gnu_ld=$lt_with_gnu_ld
17507
17508 # Flag that allows shared libraries with undefined symbols to be built.
17509 allow_undefined_flag=$lt_allow_undefined_flag
17510
17511 # Flag that enforces no undefined symbols.
17512 no_undefined_flag=$lt_no_undefined_flag
17513
17514 # Flag to hardcode \$libdir into a binary during linking.
17515 # This must work even if \$libdir does not exist
17516 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17517
17518 # If ld is used when linking, flag to hardcode \$libdir into a binary
17519 # during linking.  This must work even if \$libdir does not exist.
17520 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17521
17522 # Whether we need a single "-rpath" flag with a separated argument.
17523 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17524
17525 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17526 # DIR into the resulting binary.
17527 hardcode_direct=$hardcode_direct
17528
17529 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17530 # DIR into the resulting binary and the resulting library dependency is
17531 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17532 # library is relocated.
17533 hardcode_direct_absolute=$hardcode_direct_absolute
17534
17535 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17536 # into the resulting binary.
17537 hardcode_minus_L=$hardcode_minus_L
17538
17539 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17540 # into the resulting binary.
17541 hardcode_shlibpath_var=$hardcode_shlibpath_var
17542
17543 # Set to "yes" if building a shared library automatically hardcodes DIR
17544 # into the library and all subsequent libraries and executables linked
17545 # against it.
17546 hardcode_automatic=$hardcode_automatic
17547
17548 # Set to yes if linker adds runtime paths of dependent libraries
17549 # to runtime path list.
17550 inherit_rpath=$inherit_rpath
17551
17552 # Whether libtool must link a program against all its dependency libraries.
17553 link_all_deplibs=$link_all_deplibs
17554
17555 # Fix the shell variable \$srcfile for the compiler.
17556 fix_srcfile_path=$lt_fix_srcfile_path
17557
17558 # Set to "yes" if exported symbols are required.
17559 always_export_symbols=$always_export_symbols
17560
17561 # The commands to list exported symbols.
17562 export_symbols_cmds=$lt_export_symbols_cmds
17563
17564 # Symbols that should not be listed in the preloaded symbols.
17565 exclude_expsyms=$lt_exclude_expsyms
17566
17567 # Symbols that must always be exported.
17568 include_expsyms=$lt_include_expsyms
17569
17570 # Commands necessary for linking programs (against libraries) with templates.
17571 prelink_cmds=$lt_prelink_cmds
17572
17573 # Specify filename containing input files.
17574 file_list_spec=$lt_file_list_spec
17575
17576 # How to hardcode a shared library path into an executable.
17577 hardcode_action=$hardcode_action
17578
17579 # ### END LIBTOOL CONFIG
17580
17581 _LT_EOF
17582
17583   case $host_os in
17584   aix3*)
17585     cat <<\_LT_EOF >> "$cfgfile"
17586 # AIX sometimes has problems with the GCC collect2 program.  For some
17587 # reason, if we set the COLLECT_NAMES environment variable, the problems
17588 # vanish in a puff of smoke.
17589 if test "X${COLLECT_NAMES+set}" != Xset; then
17590   COLLECT_NAMES=
17591   export COLLECT_NAMES
17592 fi
17593 _LT_EOF
17594     ;;
17595   esac
17596
17597
17598 ltmain="$ac_aux_dir/ltmain.sh"
17599
17600
17601   # We use sed instead of cat because bash on DJGPP gets confused if
17602   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17603   # text mode, it properly converts lines to CR/LF.  This bash problem
17604   # is reportedly fixed, but why not run on old versions too?
17605   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17606     || (rm -f "$cfgfile"; exit 1)
17607
17608   case $xsi_shell in
17609   yes)
17610     cat << \_LT_EOF >> "$cfgfile"
17611
17612 # func_dirname file append nondir_replacement
17613 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17614 # otherwise set result to NONDIR_REPLACEMENT.
17615 func_dirname ()
17616 {
17617   case ${1} in
17618     */*) func_dirname_result="${1%/*}${2}" ;;
17619     *  ) func_dirname_result="${3}" ;;
17620   esac
17621 }
17622
17623 # func_basename file
17624 func_basename ()
17625 {
17626   func_basename_result="${1##*/}"
17627 }
17628
17629 # func_dirname_and_basename file append nondir_replacement
17630 # perform func_basename and func_dirname in a single function
17631 # call:
17632 #   dirname:  Compute the dirname of FILE.  If nonempty,
17633 #             add APPEND to the result, otherwise set result
17634 #             to NONDIR_REPLACEMENT.
17635 #             value returned in "$func_dirname_result"
17636 #   basename: Compute filename of FILE.
17637 #             value retuned in "$func_basename_result"
17638 # Implementation must be kept synchronized with func_dirname
17639 # and func_basename. For efficiency, we do not delegate to
17640 # those functions but instead duplicate the functionality here.
17641 func_dirname_and_basename ()
17642 {
17643   case ${1} in
17644     */*) func_dirname_result="${1%/*}${2}" ;;
17645     *  ) func_dirname_result="${3}" ;;
17646   esac
17647   func_basename_result="${1##*/}"
17648 }
17649
17650 # func_stripname prefix suffix name
17651 # strip PREFIX and SUFFIX off of NAME.
17652 # PREFIX and SUFFIX must not contain globbing or regex special
17653 # characters, hashes, percent signs, but SUFFIX may contain a leading
17654 # dot (in which case that matches only a dot).
17655 func_stripname ()
17656 {
17657   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17658   # positional parameters, so assign one to ordinary parameter first.
17659   func_stripname_result=${3}
17660   func_stripname_result=${func_stripname_result#"${1}"}
17661   func_stripname_result=${func_stripname_result%"${2}"}
17662 }
17663
17664 # func_opt_split
17665 func_opt_split ()
17666 {
17667   func_opt_split_opt=${1%%=*}
17668   func_opt_split_arg=${1#*=}
17669 }
17670
17671 # func_lo2o object
17672 func_lo2o ()
17673 {
17674   case ${1} in
17675     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17676     *)    func_lo2o_result=${1} ;;
17677   esac
17678 }
17679
17680 # func_xform libobj-or-source
17681 func_xform ()
17682 {
17683   func_xform_result=${1%.*}.lo
17684 }
17685
17686 # func_arith arithmetic-term...
17687 func_arith ()
17688 {
17689   func_arith_result=$(( $* ))
17690 }
17691
17692 # func_len string
17693 # STRING may not start with a hyphen.
17694 func_len ()
17695 {
17696   func_len_result=${#1}
17697 }
17698
17699 _LT_EOF
17700     ;;
17701   *) # Bourne compatible functions.
17702     cat << \_LT_EOF >> "$cfgfile"
17703
17704 # func_dirname file append nondir_replacement
17705 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17706 # otherwise set result to NONDIR_REPLACEMENT.
17707 func_dirname ()
17708 {
17709   # Extract subdirectory from the argument.
17710   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17711   if test "X$func_dirname_result" = "X${1}"; then
17712     func_dirname_result="${3}"
17713   else
17714     func_dirname_result="$func_dirname_result${2}"
17715   fi
17716 }
17717
17718 # func_basename file
17719 func_basename ()
17720 {
17721   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17722 }
17723
17724
17725 # func_stripname prefix suffix name
17726 # strip PREFIX and SUFFIX off of NAME.
17727 # PREFIX and SUFFIX must not contain globbing or regex special
17728 # characters, hashes, percent signs, but SUFFIX may contain a leading
17729 # dot (in which case that matches only a dot).
17730 # func_strip_suffix prefix name
17731 func_stripname ()
17732 {
17733   case ${2} in
17734     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17735     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17736   esac
17737 }
17738
17739 # sed scripts:
17740 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17741 my_sed_long_arg='1s/^-[^=]*=//'
17742
17743 # func_opt_split
17744 func_opt_split ()
17745 {
17746   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17747   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17748 }
17749
17750 # func_lo2o object
17751 func_lo2o ()
17752 {
17753   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17754 }
17755
17756 # func_xform libobj-or-source
17757 func_xform ()
17758 {
17759   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17760 }
17761
17762 # func_arith arithmetic-term...
17763 func_arith ()
17764 {
17765   func_arith_result=`expr "$@"`
17766 }
17767
17768 # func_len string
17769 # STRING may not start with a hyphen.
17770 func_len ()
17771 {
17772   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17773 }
17774
17775 _LT_EOF
17776 esac
17777
17778 case $lt_shell_append in
17779   yes)
17780     cat << \_LT_EOF >> "$cfgfile"
17781
17782 # func_append var value
17783 # Append VALUE to the end of shell variable VAR.
17784 func_append ()
17785 {
17786   eval "$1+=\$2"
17787 }
17788 _LT_EOF
17789     ;;
17790   *)
17791     cat << \_LT_EOF >> "$cfgfile"
17792
17793 # func_append var value
17794 # Append VALUE to the end of shell variable VAR.
17795 func_append ()
17796 {
17797   eval "$1=\$$1\$2"
17798 }
17799
17800 _LT_EOF
17801     ;;
17802   esac
17803
17804
17805   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17806     || (rm -f "$cfgfile"; exit 1)
17807
17808   mv -f "$cfgfile" "$ofile" ||
17809     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17810   chmod +x "$ofile"
17811
17812
17813     cat <<_LT_EOF >> "$ofile"
17814
17815 # ### BEGIN LIBTOOL TAG CONFIG: D
17816
17817 # The linker used to build libraries.
17818 LD=$lt_LD_D
17819
17820 # How to create reloadable object files.
17821 reload_flag=$lt_reload_flag_D
17822 reload_cmds=$lt_reload_cmds_D
17823
17824 # Commands used to build an old-style archive.
17825 old_archive_cmds=$lt_old_archive_cmds_D
17826
17827 # A language specific compiler.
17828 CC=$lt_compiler_D
17829
17830 # Is the compiler the GNU compiler?
17831 with_gcc=$GCC_D
17832
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_D
17835
17836 # How to pass a linker flag through the compiler.
17837 wl=$lt_lt_prog_compiler_wl_D
17838
17839 # Additional compiler flags for building library objects.
17840 pic_flag=$lt_lt_prog_compiler_pic_D
17841
17842 # Compiler flag to prevent dynamic linking.
17843 link_static_flag=$lt_lt_prog_compiler_static_D
17844
17845 # Does compiler simultaneously support -c and -o options?
17846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_D
17847
17848 # Whether or not to add -lc for building shared libraries.
17849 build_libtool_need_lc=$archive_cmds_need_lc_D
17850
17851 # Whether or not to disallow shared libs when runtime libs are static.
17852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_D
17853
17854 # Compiler flag to allow reflexive dlopens.
17855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_D
17856
17857 # Compiler flag to generate shared objects directly from archives.
17858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_D
17859
17860 # Whether the compiler copes with passing no objects directly.
17861 compiler_needs_object=$lt_compiler_needs_object_D
17862
17863 # Create an old-style archive from a shared archive.
17864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_D
17865
17866 # Create a temporary old-style archive to link instead of a shared archive.
17867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_D
17868
17869 # Commands used to build a shared archive.
17870 archive_cmds=$lt_archive_cmds_D
17871 archive_expsym_cmds=$lt_archive_expsym_cmds_D
17872
17873 # Commands used to build a loadable module if different from building
17874 # a shared archive.
17875 module_cmds=$lt_module_cmds_D
17876 module_expsym_cmds=$lt_module_expsym_cmds_D
17877
17878 # Whether we are building with GNU ld or not.
17879 with_gnu_ld=$lt_with_gnu_ld_D
17880
17881 # Flag that allows shared libraries with undefined symbols to be built.
17882 allow_undefined_flag=$lt_allow_undefined_flag_D
17883
17884 # Flag that enforces no undefined symbols.
17885 no_undefined_flag=$lt_no_undefined_flag_D
17886
17887 # Flag to hardcode \$libdir into a binary during linking.
17888 # This must work even if \$libdir does not exist
17889 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_D
17890
17891 # If ld is used when linking, flag to hardcode \$libdir into a binary
17892 # during linking.  This must work even if \$libdir does not exist.
17893 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_D
17894
17895 # Whether we need a single "-rpath" flag with a separated argument.
17896 hardcode_libdir_separator=$lt_hardcode_libdir_separator_D
17897
17898 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17899 # DIR into the resulting binary.
17900 hardcode_direct=$hardcode_direct_D
17901
17902 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17903 # DIR into the resulting binary and the resulting library dependency is
17904 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17905 # library is relocated.
17906 hardcode_direct_absolute=$hardcode_direct_absolute_D
17907
17908 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17909 # into the resulting binary.
17910 hardcode_minus_L=$hardcode_minus_L_D
17911
17912 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17913 # into the resulting binary.
17914 hardcode_shlibpath_var=$hardcode_shlibpath_var_D
17915
17916 # Set to "yes" if building a shared library automatically hardcodes DIR
17917 # into the library and all subsequent libraries and executables linked
17918 # against it.
17919 hardcode_automatic=$hardcode_automatic_D
17920
17921 # Set to yes if linker adds runtime paths of dependent libraries
17922 # to runtime path list.
17923 inherit_rpath=$inherit_rpath_D
17924
17925 # Whether libtool must link a program against all its dependency libraries.
17926 link_all_deplibs=$link_all_deplibs_D
17927
17928 # Fix the shell variable \$srcfile for the compiler.
17929 fix_srcfile_path=$lt_fix_srcfile_path_D
17930
17931 # Set to "yes" if exported symbols are required.
17932 always_export_symbols=$always_export_symbols_D
17933
17934 # The commands to list exported symbols.
17935 export_symbols_cmds=$lt_export_symbols_cmds_D
17936
17937 # Symbols that should not be listed in the preloaded symbols.
17938 exclude_expsyms=$lt_exclude_expsyms_D
17939
17940 # Symbols that must always be exported.
17941 include_expsyms=$lt_include_expsyms_D
17942
17943 # Commands necessary for linking programs (against libraries) with templates.
17944 prelink_cmds=$lt_prelink_cmds_D
17945
17946 # Specify filename containing input files.
17947 file_list_spec=$lt_file_list_spec_D
17948
17949 # How to hardcode a shared library path into an executable.
17950 hardcode_action=$hardcode_action_D
17951
17952 # ### END LIBTOOL TAG CONFIG: D
17953 _LT_EOF
17954
17955  ;;
17956     "testsuite/testsuite_flags":F) chmod +x testsuite/testsuite_flags ;;
17957     "libdruntime/Makefile":F) cat > vpsed$$ << \_EOF
17958 s!`test -f '$<' || echo '$(srcdir)/'`!!
17959 _EOF
17960    sed -f vpsed$$ $ac_file > tmp$$
17961    mv tmp$$ $ac_file
17962    rm vpsed$$
17963    echo 'MULTISUBDIR =' >> $ac_file
17964    ml_norecursion=yes
17965    . ${multi_basedir}/config-ml.in
17966    { ml_norecursion=; unset ml_norecursion;}
17967  ;;
17968     "src/Makefile":F) cat > vpsed$$ << \_EOF
17969 s!`test -f '$<' || echo '$(srcdir)/'`!!
17970 _EOF
17971    sed -f vpsed$$ $ac_file > tmp$$
17972    mv tmp$$ $ac_file
17973    rm vpsed$$
17974    echo 'MULTISUBDIR =' >> $ac_file
17975    ml_norecursion=yes
17976    . ${multi_basedir}/config-ml.in
17977    { ml_norecursion=; unset ml_norecursion;}
17978  ;;
17979     "testsuite/Makefile":F) cat > vpsed$$ << \_EOF
17980 s!`test -f '$<' || echo '$(srcdir)/'`!!
17981 _EOF
17982    sed -f vpsed$$ $ac_file > tmp$$
17983    mv tmp$$ $ac_file
17984    rm vpsed$$
17985    echo 'MULTISUBDIR =' >> $ac_file
17986    ml_norecursion=yes
17987    . ${multi_basedir}/config-ml.in
17988    { ml_norecursion=; unset ml_norecursion;}
17989  ;;
17990
17991   esac
17992 done # for ac_tag
17993
17994
17995 as_fn_exit 0
17996 _ACEOF
17997 ac_clean_files=$ac_clean_files_save
17998
17999 test $ac_write_fail = 0 ||
18000   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18001
18002
18003 # configure is writing to config.log, and then calls config.status.
18004 # config.status does its own redirection, appending to config.log.
18005 # Unfortunately, on DOS this fails, as config.log is still kept open
18006 # by configure, so config.status won't be able to write to it; its
18007 # output is simply discarded.  So we exec the FD to /dev/null,
18008 # effectively closing config.log, so it can be properly (re)opened and
18009 # appended to by config.status.  When coming back to configure, we
18010 # need to make the FD available again.
18011 if test "$no_create" != yes; then
18012   ac_cs_success=:
18013   ac_config_status_args=
18014   test "$silent" = yes &&
18015     ac_config_status_args="$ac_config_status_args --quiet"
18016   exec 5>/dev/null
18017   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18018   exec 5>>config.log
18019   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18020   # would make configure fail if this is the last instruction.
18021   $ac_cs_success || as_fn_exit 1
18022 fi
18023 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18024   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18025 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18026 fi
18027