ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/configure
Revision: 6098
Committed: Thu Jun 11 12:26:18 2015 UTC (11 years, 1 month ago) by michael
File size: 446497 byte(s)
Log Message:
- Further cleanups to the build system; moved various things we need to separate autoconf macros

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2 michael 6098 # From configure.ac Id: configure.ac 6059 2015-06-06 17:00:18Z michael .
3 michael 5052 # Guess values for system-dependent variables and create Makefiles.
4 michael 6059 # Generated by GNU Autoconf 2.69 for hopm 1.0.7.
5 michael 5052 #
6 michael 5267 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 5059 #
8 michael 5267 #
9 michael 5059 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10     #
11     #
12 michael 5052 # This configure script is free software; the Free Software Foundation
13     # gives unlimited permission to copy, distribute and modify it.
14 michael 5059 ## -------------------- ##
15     ## M4sh Initialization. ##
16     ## -------------------- ##
17 michael 5052
18 michael 5059 # Be more Bourne compatible
19     DUALCASE=1; export DUALCASE # for MKS sh
20     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 michael 5052 emulate sh
22     NULLCMD=:
23 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 michael 5052 # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27     else
28 michael 5059 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33     esac
34 michael 5052 fi
35    
36    
37 michael 5059 as_nl='
38     '
39     export as_nl
40     # Printing a long string crashes Solaris 7 /usr/bin/printf.
41     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44     # Prefer a ksh shell builtin over an external printf program on Solaris,
45     # but without wasting forks for bash or zsh.
46     if test -z "$BASH_VERSION$ZSH_VERSION" \
47     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='print -r --'
49     as_echo_n='print -rn --'
50     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51     as_echo='printf %s\n'
52     as_echo_n='printf %s'
53     else
54     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57 michael 5052 else
58 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60     arg=$1;
61     case $arg in #(
62     *"$as_nl"*)
63     expr "X$arg" : "X\\(.*\\)$as_nl";
64     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65     esac;
66     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70 michael 5052 fi
71 michael 5059 export as_echo_body
72     as_echo='sh -c $as_echo_body as_echo'
73 michael 5052 fi
74    
75 michael 5059 # The user is always right.
76     if test "${PATH_SEPARATOR+set}" != set; then
77     PATH_SEPARATOR=:
78     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80     PATH_SEPARATOR=';'
81     }
82 michael 5052 fi
83    
84    
85     # IFS
86     # We need space, tab and new line, in precisely that order. Quoting is
87     # there to prevent editors from complaining about space-tab.
88     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89     # splitting by setting IFS to empty value.)
90     IFS=" "" $as_nl"
91    
92     # Find who we are. Look in the path if we contain no directory separator.
93 michael 5059 as_myself=
94     case $0 in #((
95 michael 5052 *[\\/]* ) as_myself=$0 ;;
96     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97     for as_dir in $PATH
98     do
99     IFS=$as_save_IFS
100     test -z "$as_dir" && as_dir=.
101 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102     done
103 michael 5052 IFS=$as_save_IFS
104    
105     ;;
106     esac
107     # We did not find ourselves, most probably we were run as `sh COMMAND'
108     # in which case we are not to be found in the path.
109     if test "x$as_myself" = x; then
110     as_myself=$0
111     fi
112     if test ! -f "$as_myself"; then
113 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114     exit 1
115 michael 5052 fi
116    
117 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
118     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119     # suppresses any "Segmentation fault" message there. '((' could
120     # trigger a bug in pdksh 5.2.14.
121     for as_var in BASH_ENV ENV MAIL MAILPATH
122     do eval test x\${$as_var+set} = xset \
123     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 michael 5052 done
125     PS1='$ '
126     PS2='> '
127     PS4='+ '
128    
129     # NLS nuisances.
130 michael 5059 LC_ALL=C
131     export LC_ALL
132     LANGUAGE=C
133     export LANGUAGE
134 michael 5052
135     # CDPATH.
136 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 michael 5052
138 michael 5059 # Use a proper internal environment variable to ensure we don't fall
139     # into an infinite loop, continuously re-executing ourselves.
140     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141     _as_can_reexec=no; export _as_can_reexec;
142     # We cannot yet assume a decent shell, so we have to provide a
143     # neutralization value for shells without unset; and this also
144     # works around shells that cannot unset nonexistent variables.
145     # Preserve -v and -x to the replacement shell.
146     BASH_ENV=/dev/null
147     ENV=/dev/null
148     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149     case $- in # ((((
150     *v*x* | *x*v* ) as_opts=-vx ;;
151     *v* ) as_opts=-v ;;
152     *x* ) as_opts=-x ;;
153     * ) as_opts= ;;
154     esac
155     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156     # Admittedly, this is quite paranoid, since all the known shells bail
157     # out after a failed `exec'.
158     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159     as_fn_exit 255
160     fi
161     # We don't want this to propagate to other subprocesses.
162     { _as_can_reexec=; unset _as_can_reexec;}
163 michael 5052 if test "x$CONFIG_SHELL" = x; then
164 michael 5059 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165     emulate sh
166     NULLCMD=:
167     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168     # is contrary to our usage. Disable this feature.
169     alias -g '\${1+\"\$@\"}'='\"\$@\"'
170     setopt NO_GLOB_SUBST
171 michael 5052 else
172 michael 5059 case \`(set -o) 2>/dev/null\` in #(
173     *posix*) :
174     set -o posix ;; #(
175     *) :
176     ;;
177     esac
178 michael 5052 fi
179 michael 5059 "
180     as_required="as_fn_return () { (exit \$1); }
181     as_fn_success () { as_fn_return 0; }
182     as_fn_failure () { as_fn_return 1; }
183     as_fn_ret_success () { return 0; }
184     as_fn_ret_failure () { return 1; }
185 michael 5052
186     exitcode=0
187 michael 5059 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 michael 5052
193     else
194 michael 5059 exitcode=1; echo positional parameters were not saved.
195 michael 5052 fi
196 michael 5059 test x\$exitcode = x0 || exit 1
197     test -x / || exit 1"
198     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 michael 5052
203 michael 5059 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210     test \$(( 1 + 1 )) = 2 || exit 1"
211     if (eval "$as_required") 2>/dev/null; then :
212     as_have_required=yes
213 michael 5052 else
214 michael 5059 as_have_required=no
215 michael 5052 fi
216 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 michael 5052
218     else
219 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220     as_found=false
221     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 michael 5052 do
223     IFS=$as_save_IFS
224     test -z "$as_dir" && as_dir=.
225 michael 5059 as_found=:
226     case $as_dir in #(
227 michael 5052 /*)
228     for as_base in sh bash ksh sh5; do
229 michael 5059 # Try only shells that exist, to save several forks.
230     as_shell=$as_dir/$as_base
231     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233     CONFIG_SHELL=$as_shell as_have_required=yes
234     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235     break 2
236     fi
237     fi
238 michael 5052 done;;
239     esac
240 michael 5059 as_found=false
241 michael 5052 done
242 michael 5059 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244     CONFIG_SHELL=$SHELL as_have_required=yes
245     fi; }
246 michael 5052 IFS=$as_save_IFS
247    
248    
249 michael 5059 if test "x$CONFIG_SHELL" != x; then :
250     export CONFIG_SHELL
251     # We cannot yet assume a decent shell, so we have to provide a
252     # neutralization value for shells without unset; and this also
253     # works around shells that cannot unset nonexistent variables.
254     # Preserve -v and -x to the replacement shell.
255     BASH_ENV=/dev/null
256     ENV=/dev/null
257     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258     case $- in # ((((
259     *v*x* | *x*v* ) as_opts=-vx ;;
260     *v* ) as_opts=-v ;;
261     *x* ) as_opts=-x ;;
262     * ) as_opts= ;;
263     esac
264     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265     # Admittedly, this is quite paranoid, since all the known shells bail
266     # out after a failed `exec'.
267     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268     exit 255
269 michael 5052 fi
270    
271 michael 5059 if test x$as_have_required = xno; then :
272     $as_echo "$0: This script requires a shell more modern than all"
273     $as_echo "$0: the shells that I found on your system."
274     if test x${ZSH_VERSION+set} = xset ; then
275     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277     else
278 michael 5267 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279     $0: bugs@ircd-hybrid.org about your system, including any
280     $0: error possibly output before this message. Then install
281     $0: a modern shell, or manually run the script under such a
282     $0: shell if you do have one."
283 michael 5059 fi
284     exit 1
285 michael 5052 fi
286     fi
287     fi
288 michael 5059 SHELL=${CONFIG_SHELL-/bin/sh}
289     export SHELL
290     # Unset more variables known to interfere with behavior of common tools.
291     CLICOLOR_FORCE= GREP_OPTIONS=
292     unset CLICOLOR_FORCE GREP_OPTIONS
293 michael 5052
294 michael 5059 ## --------------------- ##
295     ## M4sh Shell Functions. ##
296     ## --------------------- ##
297     # as_fn_unset VAR
298     # ---------------
299     # Portably unset VAR.
300     as_fn_unset ()
301     {
302     { eval $1=; unset $1;}
303     }
304     as_unset=as_fn_unset
305 michael 5052
306 michael 5059 # as_fn_set_status STATUS
307     # -----------------------
308     # Set $? to STATUS, without forking.
309     as_fn_set_status ()
310     {
311     return $1
312     } # as_fn_set_status
313 michael 5052
314 michael 5059 # as_fn_exit STATUS
315     # -----------------
316     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317     as_fn_exit ()
318     {
319     set +e
320     as_fn_set_status $1
321     exit $1
322     } # as_fn_exit
323 michael 5052
324 michael 5059 # as_fn_mkdir_p
325     # -------------
326     # Create "$as_dir" as a directory, including parents if necessary.
327     as_fn_mkdir_p ()
328     {
329 michael 5052
330 michael 5059 case $as_dir in #(
331     -*) as_dir=./$as_dir;;
332     esac
333     test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336     case $as_dir in #(
337     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338     *) as_qdir=$as_dir;;
339     esac
340     as_dirs="'$as_qdir' $as_dirs"
341     as_dir=`$as_dirname -- "$as_dir" ||
342     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343     X"$as_dir" : 'X\(//\)[^/]' \| \
344     X"$as_dir" : 'X\(//\)$' \| \
345     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346     $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)[^/].*/{
352     s//\1/
353     q
354     }
355     /^X\(\/\/\)$/{
356     s//\1/
357     q
358     }
359     /^X\(\/\).*/{
360     s//\1/
361     q
362     }
363     s/.*/./; q'`
364     test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 michael 5052
369    
370 michael 5059 } # as_fn_mkdir_p
371 michael 5052
372 michael 5059 # as_fn_executable_p FILE
373     # -----------------------
374     # Test if FILE is an executable regular file.
375     as_fn_executable_p ()
376     {
377     test -f "$1" && test -x "$1"
378     } # as_fn_executable_p
379     # as_fn_append VAR VALUE
380     # ----------------------
381     # Append the text in VALUE to the end of the definition contained in VAR. Take
382     # advantage of any shell optimizations that allow amortized linear growth over
383     # repeated appends, instead of the typical quadratic growth present in naive
384     # implementations.
385     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386     eval 'as_fn_append ()
387     {
388     eval $1+=\$2
389     }'
390     else
391     as_fn_append ()
392     {
393     eval $1=\$$1\$2
394     }
395     fi # as_fn_append
396 michael 5052
397 michael 5059 # as_fn_arith ARG...
398     # ------------------
399     # Perform arithmetic evaluation on the ARGs, and store the result in the
400     # global $as_val. Take advantage of shells that can avoid forks. The arguments
401     # must be portable across $(()) and expr.
402     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403     eval 'as_fn_arith ()
404     {
405     as_val=$(( $* ))
406     }'
407     else
408     as_fn_arith ()
409     {
410     as_val=`expr "$@" || test $? -eq 1`
411     }
412     fi # as_fn_arith
413 michael 5052
414    
415 michael 5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416     # ----------------------------------------
417     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419     # script with STATUS, using 1 if that was 0.
420     as_fn_error ()
421     {
422     as_status=$1; test $as_status -eq 0 && as_status=1
423     if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426     fi
427     $as_echo "$as_me: error: $2" >&2
428     as_fn_exit $as_status
429     } # as_fn_error
430 michael 5052
431 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
432     test "X`expr 00001 : '.*\(...\)'`" = X001; then
433     as_expr=expr
434 michael 5052 else
435 michael 5059 as_expr=false
436 michael 5052 fi
437    
438 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439     as_basename=basename
440 michael 5052 else
441 michael 5059 as_basename=false
442 michael 5052 fi
443    
444 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445     as_dirname=dirname
446 michael 5052 else
447 michael 5059 as_dirname=false
448 michael 5052 fi
449    
450 michael 5059 as_me=`$as_basename -- "$0" ||
451     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452     X"$0" : 'X\(//\)$' \| \
453     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454     $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456     s//\1/
457     q
458     }
459     /^X\/\(\/\/\)$/{
460     s//\1/
461     q
462     }
463     /^X\/\(\/\).*/{
464     s//\1/
465     q
466     }
467     s/.*/./; q'`
468 michael 5052
469 michael 5059 # Avoid depending upon Character Ranges.
470     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473     as_cr_digits='0123456789'
474     as_cr_alnum=$as_cr_Letters$as_cr_digits
475 michael 5052
476    
477 michael 5059 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478     as_lineno_2=$LINENO as_lineno_2a=$LINENO
479     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 michael 5052 sed -n '
483     p
484     /[$]LINENO/=
485     ' <$as_myself |
486     sed '
487     s/[$]LINENO.*/&-/
488     t lineno
489     b
490     :lineno
491     N
492     :loop
493     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494     t loop
495     s/-\n.*//
496     ' >$as_me.lineno &&
497     chmod +x "$as_me.lineno" ||
498 michael 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 michael 5052
500 michael 5059 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501     # already done that, so ensure we don't try to do so again and fall
502     # in an infinite loop. This has already happened in practice.
503     _as_can_reexec=no; export _as_can_reexec
504 michael 5052 # Don't try to exec as it changes $[0], causing all sort of problems
505     # (the dirname of $[0] is not the place where we might find the
506     # original and so on. Autoconf is especially sensitive to this).
507     . "./$as_me.lineno"
508     # Exit status is that of the last command.
509     exit
510     }
511    
512     ECHO_C= ECHO_N= ECHO_T=
513 michael 5059 case `echo -n x` in #(((((
514 michael 5052 -n*)
515 michael 5059 case `echo 'xy\c'` in
516 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 michael 5059 xy) ECHO_C='\c';;
518     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519     ECHO_T=' ';;
520 michael 5052 esac;;
521     *)
522     ECHO_N='-n';;
523     esac
524    
525     rm -f conf$$ conf$$.exe conf$$.file
526     if test -d conf$$.dir; then
527     rm -f conf$$.dir/conf$$.file
528     else
529     rm -f conf$$.dir
530 michael 5059 mkdir conf$$.dir 2>/dev/null
531 michael 5052 fi
532 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
533     if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540     as_ln_s='cp -pR'
541     elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543     else
544     as_ln_s='cp -pR'
545     fi
546 michael 5052 else
547 michael 5059 as_ln_s='cp -pR'
548 michael 5052 fi
549     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550     rmdir conf$$.dir 2>/dev/null
551    
552     if mkdir -p . 2>/dev/null; then
553 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
554 michael 5052 else
555     test -d ./-p && rmdir ./-p
556     as_mkdir_p=false
557     fi
558    
559 michael 5059 as_test_x='test -x'
560     as_executable_p=as_fn_executable_p
561 michael 5052
562     # Sed expression to map a string onto a valid CPP name.
563     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564    
565     # Sed expression to map a string onto a valid variable name.
566     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567    
568     SHELL=${CONFIG_SHELL-/bin/sh}
569    
570    
571 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
572     exec 6>&1
573 michael 5052
574     # Name of the host.
575 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 michael 5052 # so uname gets run too.
577     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578    
579     #
580     # Initializations.
581     #
582     ac_default_prefix=/usr/local
583     ac_clean_files=
584     ac_config_libobj_dir=.
585     LIBOBJS=
586     cross_compiling=no
587     subdirs=
588     MFLAGS=
589     MAKEFLAGS=
590    
591     # Identity of this package.
592 michael 5061 PACKAGE_NAME='hopm'
593     PACKAGE_TARNAME='hopm'
594 michael 6059 PACKAGE_VERSION='1.0.7'
595     PACKAGE_STRING='hopm 1.0.7'
596 michael 5267 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
597 michael 5059 PACKAGE_URL=''
598 michael 5052
599     ac_unique_file="src/opercmd.h"
600 michael 5061 ac_default_prefix=\${HOME}/hopm
601 michael 5052 # Factoring default headers for most tests.
602     ac_includes_default="\
603     #include <stdio.h>
604 michael 5059 #ifdef HAVE_SYS_TYPES_H
605 michael 5052 # include <sys/types.h>
606     #endif
607 michael 5059 #ifdef HAVE_SYS_STAT_H
608 michael 5052 # include <sys/stat.h>
609     #endif
610 michael 5059 #ifdef STDC_HEADERS
611 michael 5052 # include <stdlib.h>
612     # include <stddef.h>
613     #else
614 michael 5059 # ifdef HAVE_STDLIB_H
615 michael 5052 # include <stdlib.h>
616     # endif
617     #endif
618 michael 5059 #ifdef HAVE_STRING_H
619     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 michael 5052 # include <memory.h>
621     # endif
622     # include <string.h>
623     #endif
624 michael 5059 #ifdef HAVE_STRINGS_H
625 michael 5052 # include <strings.h>
626     #endif
627 michael 5059 #ifdef HAVE_INTTYPES_H
628 michael 5052 # include <inttypes.h>
629     #endif
630 michael 5059 #ifdef HAVE_STDINT_H
631 michael 5052 # include <stdint.h>
632     #endif
633 michael 5059 #ifdef HAVE_UNISTD_H
634 michael 5052 # include <unistd.h>
635     #endif"
636    
637 michael 5059 ac_subst_vars='am__EXEEXT_FALSE
638     am__EXEEXT_TRUE
639     LTLIBOBJS
640 michael 5052 LIBOBJS
641     LEXLIB
642     LEX_OUTPUT_ROOT
643 michael 5059 LEX
644     YFLAGS
645     YACC
646     CPP
647 michael 5430 LT_SYS_LIBRARY_PATH
648 michael 5059 OTOOL64
649     OTOOL
650     LIPO
651     NMEDIT
652     DSYMUTIL
653     MANIFEST_TOOL
654     RANLIB
655     ac_ct_AR
656     AR
657     DLLTOOL
658     OBJDUMP
659     LN_S
660     NM
661     ac_ct_DUMPBIN
662     DUMPBIN
663     LD
664     FGREP
665     EGREP
666     GREP
667     SED
668     host_os
669     host_vendor
670     host_cpu
671     host
672     build_os
673     build_vendor
674     build_cpu
675     build
676     LIBTOOL
677     am__fastdepCC_FALSE
678     am__fastdepCC_TRUE
679     CCDEPMODE
680     am__nodep
681     AMDEPBACKSLASH
682     AMDEP_FALSE
683     AMDEP_TRUE
684     am__quote
685     am__include
686     DEPDIR
687     OBJEXT
688     EXEEXT
689     ac_ct_CC
690     CPPFLAGS
691     LDFLAGS
692     CFLAGS
693     CC
694     MAINT
695     MAINTAINER_MODE_FALSE
696     MAINTAINER_MODE_TRUE
697     AM_BACKSLASH
698     AM_DEFAULT_VERBOSITY
699     AM_DEFAULT_V
700     AM_V
701     am__untar
702     am__tar
703     AMTAR
704     am__leading_dot
705     SET_MAKE
706     AWK
707     mkdir_p
708     MKDIR_P
709     INSTALL_STRIP_PROGRAM
710     STRIP
711     install_sh
712     MAKEINFO
713     AUTOHEADER
714     AUTOMAKE
715     AUTOCONF
716     ACLOCAL
717     VERSION
718     PACKAGE
719     CYGPATH_W
720     am__isrc
721     INSTALL_DATA
722     INSTALL_SCRIPT
723     INSTALL_PROGRAM
724     target_alias
725     host_alias
726     build_alias
727     LIBS
728     ECHO_T
729     ECHO_N
730     ECHO_C
731     DEFS
732     mandir
733     localedir
734     libdir
735     psdir
736     pdfdir
737     dvidir
738     htmldir
739     infodir
740     docdir
741     oldincludedir
742     includedir
743     localstatedir
744     sharedstatedir
745     sysconfdir
746     datadir
747     datarootdir
748     libexecdir
749     sbindir
750     bindir
751     program_transform_name
752     prefix
753     exec_prefix
754     PACKAGE_URL
755     PACKAGE_BUGREPORT
756     PACKAGE_STRING
757     PACKAGE_VERSION
758     PACKAGE_TARNAME
759     PACKAGE_NAME
760     PATH_SEPARATOR
761     SHELL'
762 michael 5052 ac_subst_files=''
763 michael 5059 ac_user_opts='
764     enable_option_checking
765     enable_silent_rules
766     enable_maintainer_mode
767     enable_dependency_tracking
768     enable_shared
769     enable_static
770     with_pic
771     enable_fast_install
772     with_aix_soname
773     with_gnu_ld
774     with_sysroot
775     enable_libtool_lock
776     '
777 michael 5052 ac_precious_vars='build_alias
778     host_alias
779     target_alias
780     CC
781     CFLAGS
782     LDFLAGS
783 michael 5059 LIBS
784 michael 5052 CPPFLAGS
785 michael 5430 LT_SYS_LIBRARY_PATH
786 michael 5052 CPP
787     YACC
788     YFLAGS'
789    
790 michael 5261
791 michael 5052 # Initialize some variables set by options.
792     ac_init_help=
793     ac_init_version=false
794 michael 5059 ac_unrecognized_opts=
795     ac_unrecognized_sep=
796 michael 5052 # The variables have the same names as the options, with
797     # dashes changed to underlines.
798     cache_file=/dev/null
799     exec_prefix=NONE
800     no_create=
801     no_recursion=
802     prefix=NONE
803     program_prefix=NONE
804     program_suffix=NONE
805     program_transform_name=s,x,x,
806     silent=
807     site=
808     srcdir=
809     verbose=
810     x_includes=NONE
811     x_libraries=NONE
812    
813     # Installation directory options.
814     # These are left unexpanded so users can "make install exec_prefix=/foo"
815     # and all the variables that are supposed to be based on exec_prefix
816     # by default will actually change.
817     # Use braces instead of parens because sh, perl, etc. also accept them.
818     # (The list follows the same order as the GNU Coding Standards.)
819     bindir='${exec_prefix}/bin'
820     sbindir='${exec_prefix}/sbin'
821     libexecdir='${exec_prefix}/libexec'
822     datarootdir='${prefix}/share'
823     datadir='${datarootdir}'
824     sysconfdir='${prefix}/etc'
825     sharedstatedir='${prefix}/com'
826     localstatedir='${prefix}/var'
827     includedir='${prefix}/include'
828     oldincludedir='/usr/include'
829     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830     infodir='${datarootdir}/info'
831     htmldir='${docdir}'
832     dvidir='${docdir}'
833     pdfdir='${docdir}'
834     psdir='${docdir}'
835     libdir='${exec_prefix}/lib'
836     localedir='${datarootdir}/locale'
837     mandir='${datarootdir}/man'
838    
839     ac_prev=
840     ac_dashdash=
841     for ac_option
842     do
843     # If the previous option needs an argument, assign it.
844     if test -n "$ac_prev"; then
845     eval $ac_prev=\$ac_option
846     ac_prev=
847     continue
848     fi
849    
850     case $ac_option in
851 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852     *=) ac_optarg= ;;
853     *) ac_optarg=yes ;;
854 michael 5052 esac
855    
856     # Accept the important Cygnus configure options, so we can diagnose typos.
857    
858     case $ac_dashdash$ac_option in
859     --)
860     ac_dashdash=yes ;;
861    
862     -bindir | --bindir | --bindi | --bind | --bin | --bi)
863     ac_prev=bindir ;;
864     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865     bindir=$ac_optarg ;;
866    
867     -build | --build | --buil | --bui | --bu)
868     ac_prev=build_alias ;;
869     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870     build_alias=$ac_optarg ;;
871    
872     -cache-file | --cache-file | --cache-fil | --cache-fi \
873     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874     ac_prev=cache_file ;;
875     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877     cache_file=$ac_optarg ;;
878    
879     --config-cache | -C)
880     cache_file=config.cache ;;
881    
882     -datadir | --datadir | --datadi | --datad)
883     ac_prev=datadir ;;
884     -datadir=* | --datadir=* | --datadi=* | --datad=*)
885     datadir=$ac_optarg ;;
886    
887     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888     | --dataroo | --dataro | --datar)
889     ac_prev=datarootdir ;;
890     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892     datarootdir=$ac_optarg ;;
893    
894     -disable-* | --disable-*)
895 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 michael 5052 # Reject names that are not valid shell variable names.
897 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898     as_fn_error $? "invalid feature name: $ac_useropt"
899     ac_useropt_orig=$ac_useropt
900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901     case $ac_user_opts in
902     *"
903     "enable_$ac_useropt"
904     "*) ;;
905     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906     ac_unrecognized_sep=', ';;
907     esac
908     eval enable_$ac_useropt=no ;;
909 michael 5052
910     -docdir | --docdir | --docdi | --doc | --do)
911     ac_prev=docdir ;;
912     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913     docdir=$ac_optarg ;;
914    
915     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916     ac_prev=dvidir ;;
917     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918     dvidir=$ac_optarg ;;
919    
920     -enable-* | --enable-*)
921 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 michael 5052 # Reject names that are not valid shell variable names.
923 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924     as_fn_error $? "invalid feature name: $ac_useropt"
925     ac_useropt_orig=$ac_useropt
926     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927     case $ac_user_opts in
928     *"
929     "enable_$ac_useropt"
930     "*) ;;
931     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932     ac_unrecognized_sep=', ';;
933     esac
934     eval enable_$ac_useropt=\$ac_optarg ;;
935 michael 5052
936     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938     | --exec | --exe | --ex)
939     ac_prev=exec_prefix ;;
940     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942     | --exec=* | --exe=* | --ex=*)
943     exec_prefix=$ac_optarg ;;
944    
945     -gas | --gas | --ga | --g)
946     # Obsolete; use --with-gas.
947     with_gas=yes ;;
948    
949     -help | --help | --hel | --he | -h)
950     ac_init_help=long ;;
951     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952     ac_init_help=recursive ;;
953     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954     ac_init_help=short ;;
955    
956     -host | --host | --hos | --ho)
957     ac_prev=host_alias ;;
958     -host=* | --host=* | --hos=* | --ho=*)
959     host_alias=$ac_optarg ;;
960    
961     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962     ac_prev=htmldir ;;
963     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964     | --ht=*)
965     htmldir=$ac_optarg ;;
966    
967     -includedir | --includedir | --includedi | --included | --include \
968     | --includ | --inclu | --incl | --inc)
969     ac_prev=includedir ;;
970     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971     | --includ=* | --inclu=* | --incl=* | --inc=*)
972     includedir=$ac_optarg ;;
973    
974     -infodir | --infodir | --infodi | --infod | --info | --inf)
975     ac_prev=infodir ;;
976     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977     infodir=$ac_optarg ;;
978    
979     -libdir | --libdir | --libdi | --libd)
980     ac_prev=libdir ;;
981     -libdir=* | --libdir=* | --libdi=* | --libd=*)
982     libdir=$ac_optarg ;;
983    
984     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985     | --libexe | --libex | --libe)
986     ac_prev=libexecdir ;;
987     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988     | --libexe=* | --libex=* | --libe=*)
989     libexecdir=$ac_optarg ;;
990    
991     -localedir | --localedir | --localedi | --localed | --locale)
992     ac_prev=localedir ;;
993     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994     localedir=$ac_optarg ;;
995    
996     -localstatedir | --localstatedir | --localstatedi | --localstated \
997     | --localstate | --localstat | --localsta | --localst | --locals)
998     ac_prev=localstatedir ;;
999     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001     localstatedir=$ac_optarg ;;
1002    
1003     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004     ac_prev=mandir ;;
1005     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006     mandir=$ac_optarg ;;
1007    
1008     -nfp | --nfp | --nf)
1009     # Obsolete; use --without-fp.
1010     with_fp=no ;;
1011    
1012     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013     | --no-cr | --no-c | -n)
1014     no_create=yes ;;
1015    
1016     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018     no_recursion=yes ;;
1019    
1020     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022     | --oldin | --oldi | --old | --ol | --o)
1023     ac_prev=oldincludedir ;;
1024     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027     oldincludedir=$ac_optarg ;;
1028    
1029     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030     ac_prev=prefix ;;
1031     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032     prefix=$ac_optarg ;;
1033    
1034     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035     | --program-pre | --program-pr | --program-p)
1036     ac_prev=program_prefix ;;
1037     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039     program_prefix=$ac_optarg ;;
1040    
1041     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042     | --program-suf | --program-su | --program-s)
1043     ac_prev=program_suffix ;;
1044     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046     program_suffix=$ac_optarg ;;
1047    
1048     -program-transform-name | --program-transform-name \
1049     | --program-transform-nam | --program-transform-na \
1050     | --program-transform-n | --program-transform- \
1051     | --program-transform | --program-transfor \
1052     | --program-transfo | --program-transf \
1053     | --program-trans | --program-tran \
1054     | --progr-tra | --program-tr | --program-t)
1055     ac_prev=program_transform_name ;;
1056     -program-transform-name=* | --program-transform-name=* \
1057     | --program-transform-nam=* | --program-transform-na=* \
1058     | --program-transform-n=* | --program-transform-=* \
1059     | --program-transform=* | --program-transfor=* \
1060     | --program-transfo=* | --program-transf=* \
1061     | --program-trans=* | --program-tran=* \
1062     | --progr-tra=* | --program-tr=* | --program-t=*)
1063     program_transform_name=$ac_optarg ;;
1064    
1065     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066     ac_prev=pdfdir ;;
1067     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068     pdfdir=$ac_optarg ;;
1069    
1070     -psdir | --psdir | --psdi | --psd | --ps)
1071     ac_prev=psdir ;;
1072     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073     psdir=$ac_optarg ;;
1074    
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077     silent=yes ;;
1078    
1079     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080     ac_prev=sbindir ;;
1081     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082     | --sbi=* | --sb=*)
1083     sbindir=$ac_optarg ;;
1084    
1085     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087     | --sharedst | --shareds | --shared | --share | --shar \
1088     | --sha | --sh)
1089     ac_prev=sharedstatedir ;;
1090     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093     | --sha=* | --sh=*)
1094     sharedstatedir=$ac_optarg ;;
1095    
1096     -site | --site | --sit)
1097     ac_prev=site ;;
1098     -site=* | --site=* | --sit=*)
1099     site=$ac_optarg ;;
1100    
1101     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102     ac_prev=srcdir ;;
1103     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104     srcdir=$ac_optarg ;;
1105    
1106     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107     | --syscon | --sysco | --sysc | --sys | --sy)
1108     ac_prev=sysconfdir ;;
1109     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111     sysconfdir=$ac_optarg ;;
1112    
1113     -target | --target | --targe | --targ | --tar | --ta | --t)
1114     ac_prev=target_alias ;;
1115     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116     target_alias=$ac_optarg ;;
1117    
1118     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119     verbose=yes ;;
1120    
1121     -version | --version | --versio | --versi | --vers | -V)
1122     ac_init_version=: ;;
1123    
1124     -with-* | --with-*)
1125 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 michael 5052 # Reject names that are not valid shell variable names.
1127 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128     as_fn_error $? "invalid package name: $ac_useropt"
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132     *"
1133     "with_$ac_useropt"
1134     "*) ;;
1135     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136     ac_unrecognized_sep=', ';;
1137     esac
1138     eval with_$ac_useropt=\$ac_optarg ;;
1139 michael 5052
1140     -without-* | --without-*)
1141 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 michael 5052 # Reject names that are not valid shell variable names.
1143 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144     as_fn_error $? "invalid package name: $ac_useropt"
1145     ac_useropt_orig=$ac_useropt
1146     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147     case $ac_user_opts in
1148     *"
1149     "with_$ac_useropt"
1150     "*) ;;
1151     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152     ac_unrecognized_sep=', ';;
1153     esac
1154     eval with_$ac_useropt=no ;;
1155 michael 5052
1156     --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159    
1160     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161     | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166    
1167     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173    
1174 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1175     Try \`$0 --help' for more information"
1176 michael 5052 ;;
1177    
1178     *=*)
1179     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180     # Reject names that are not valid shell variable names.
1181 michael 5059 case $ac_envvar in #(
1182     '' | [0-9]* | *[!_$as_cr_alnum]* )
1183     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1184     esac
1185 michael 5052 eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187    
1188     *)
1189     # FIXME: should be removed in autoconf 3.0.
1190 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 michael 5052 ;;
1195    
1196     esac
1197     done
1198    
1199     if test -n "$ac_prev"; then
1200     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 michael 5059 as_fn_error $? "missing argument to $ac_option"
1202 michael 5052 fi
1203    
1204 michael 5059 if test -n "$ac_unrecognized_opts"; then
1205     case $enable_option_checking in
1206     no) ;;
1207     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209     esac
1210     fi
1211    
1212     # Check all directory arguments for consistency.
1213 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214     datadir sysconfdir sharedstatedir localstatedir includedir \
1215     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216     libdir localedir mandir
1217     do
1218     eval ac_val=\$$ac_var
1219 michael 5059 # Remove trailing slashes.
1220 michael 5052 case $ac_val in
1221 michael 5059 */ )
1222     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223     eval $ac_var=\$ac_val;;
1224     esac
1225     # Be sure to have absolute directory names.
1226     case $ac_val in
1227 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229     esac
1230 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1231 michael 5052 done
1232    
1233     # There might be people who depend on the old broken behavior: `$host'
1234     # used to hold the argument of --host etc.
1235     # FIXME: To remove some day.
1236     build=$build_alias
1237     host=$host_alias
1238     target=$target_alias
1239    
1240     # FIXME: To remove some day.
1241     if test "x$host_alias" != x; then
1242     if test "x$build_alias" = x; then
1243     cross_compiling=maybe
1244     elif test "x$build_alias" != "x$host_alias"; then
1245     cross_compiling=yes
1246     fi
1247     fi
1248    
1249     ac_tool_prefix=
1250     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251    
1252     test "$silent" = yes && exec 6>/dev/null
1253    
1254    
1255     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256     ac_ls_di=`ls -di .` &&
1257     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 michael 5059 as_fn_error $? "working directory cannot be determined"
1259 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1261 michael 5052
1262    
1263     # Find the source files, if location was not specified.
1264     if test -z "$srcdir"; then
1265     ac_srcdir_defaulted=yes
1266     # Try the directory containing this script, then the parent directory.
1267 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1268     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269     X"$as_myself" : 'X\(//\)[^/]' \| \
1270     X"$as_myself" : 'X\(//\)$' \| \
1271     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272     $as_echo X"$as_myself" |
1273 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274     s//\1/
1275     q
1276     }
1277     /^X\(\/\/\)[^/].*/{
1278     s//\1/
1279     q
1280     }
1281     /^X\(\/\/\)$/{
1282     s//\1/
1283     q
1284     }
1285     /^X\(\/\).*/{
1286     s//\1/
1287     q
1288     }
1289     s/.*/./; q'`
1290     srcdir=$ac_confdir
1291     if test ! -r "$srcdir/$ac_unique_file"; then
1292     srcdir=..
1293     fi
1294     else
1295     ac_srcdir_defaulted=no
1296     fi
1297     if test ! -r "$srcdir/$ac_unique_file"; then
1298     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1300 michael 5052 fi
1301     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302     ac_abs_confdir=`(
1303 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1304 michael 5052 pwd)`
1305     # When building in place, set srcdir=.
1306     if test "$ac_abs_confdir" = "$ac_pwd"; then
1307     srcdir=.
1308     fi
1309     # Remove unnecessary trailing slashes from srcdir.
1310     # Double slashes in file names in object file debugging info
1311     # mess up M-x gdb in Emacs.
1312     case $srcdir in
1313     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314     esac
1315     for ac_var in $ac_precious_vars; do
1316     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317     eval ac_env_${ac_var}_value=\$${ac_var}
1318     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320     done
1321    
1322     #
1323     # Report the --help message.
1324     #
1325     if test "$ac_init_help" = "long"; then
1326     # Omit some internal or obsolete options to make the list less imposing.
1327     # This message is too long to be a string in the A/UX 3.1 sh.
1328     cat <<_ACEOF
1329 michael 6059 \`configure' configures hopm 1.0.7 to adapt to many kinds of systems.
1330 michael 5052
1331     Usage: $0 [OPTION]... [VAR=VALUE]...
1332    
1333     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334     VAR=VALUE. See below for descriptions of some of the useful variables.
1335    
1336     Defaults for the options are specified in brackets.
1337    
1338     Configuration:
1339     -h, --help display this help and exit
1340     --help=short display options specific to this package
1341     --help=recursive display the short help of all the included packages
1342     -V, --version display version information and exit
1343 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1344 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1345     -C, --config-cache alias for \`--cache-file=config.cache'
1346     -n, --no-create do not create output files
1347     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348    
1349     Installation directories:
1350     --prefix=PREFIX install architecture-independent files in PREFIX
1351 michael 5059 [$ac_default_prefix]
1352 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1353 michael 5059 [PREFIX]
1354 michael 5052
1355     By default, \`make install' will install all the files in
1356     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358     for instance \`--prefix=\$HOME'.
1359    
1360     For better control, use the options below.
1361    
1362     Fine tuning of the installation directories:
1363 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1364     --sbindir=DIR system admin executables [EPREFIX/sbin]
1365     --libexecdir=DIR program executables [EPREFIX/libexec]
1366     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369     --libdir=DIR object code libraries [EPREFIX/lib]
1370     --includedir=DIR C header files [PREFIX/include]
1371     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1372     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374     --infodir=DIR info documentation [DATAROOTDIR/info]
1375     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376     --mandir=DIR man documentation [DATAROOTDIR/man]
1377 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1378 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1379     --dvidir=DIR dvi documentation [DOCDIR]
1380     --pdfdir=DIR pdf documentation [DOCDIR]
1381     --psdir=DIR ps documentation [DOCDIR]
1382 michael 5052 _ACEOF
1383    
1384     cat <<\_ACEOF
1385    
1386     Program names:
1387     --program-prefix=PREFIX prepend PREFIX to installed program names
1388     --program-suffix=SUFFIX append SUFFIX to installed program names
1389     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1390    
1391     System types:
1392     --build=BUILD configure for building on BUILD [guessed]
1393     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394     _ACEOF
1395     fi
1396    
1397     if test -n "$ac_init_help"; then
1398     case $ac_init_help in
1399 michael 6059 short | recursive ) echo "Configuration of hopm 1.0.7:";;
1400 michael 5052 esac
1401     cat <<\_ACEOF
1402    
1403     Optional Features:
1404 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1405 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1408     --disable-silent-rules verbose build output (undo: "make V=0")
1409     --enable-maintainer-mode
1410     enable make rules and dependencies not useful (and
1411     sometimes confusing) to the casual installer
1412     --enable-dependency-tracking
1413     do not reject slow dependency extractors
1414     --disable-dependency-tracking
1415     speeds up one-time build
1416 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1417     --enable-static[=PKGS] build static libraries [default=yes]
1418     --enable-fast-install[=PKGS]
1419     optimize for fast installation [default=yes]
1420     --disable-libtool-lock avoid locking (might break parallel builds)
1421    
1422     Optional Packages:
1423     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1426     both]
1427     --with-aix-soname=aix|svr4|both
1428     shared library versioning (aka "SONAME") variant to
1429     provide on AIX, [default=aix].
1430 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1431 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1432     compiler's sysroot if not specified).
1433 michael 5052
1434     Some influential environment variables:
1435     CC C compiler command
1436     CFLAGS C compiler flags
1437     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438     nonstandard directory <lib dir>
1439 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1440     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441 michael 5052 you have headers in a nonstandard directory <include dir>
1442 michael 5430 LT_SYS_LIBRARY_PATH
1443     User-defined run-time library search path.
1444 michael 5052 CPP C preprocessor
1445 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1446     Defaults to the first program found out of: `bison -y', `byacc',
1447     `yacc'.
1448 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1449     This script will default YFLAGS to the empty string to avoid a
1450     default value of `-d' given by some make applications.
1451    
1452     Use these variables to override the choices made by `configure' or to help
1453     it to find libraries and programs with nonstandard names/locations.
1454    
1455 michael 5267 Report bugs to <bugs@ircd-hybrid.org>.
1456 michael 5052 _ACEOF
1457     ac_status=$?
1458     fi
1459    
1460     if test "$ac_init_help" = "recursive"; then
1461     # If there are subdirs, report their specific --help.
1462     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 michael 5059 test -d "$ac_dir" ||
1464     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465     continue
1466 michael 5052 ac_builddir=.
1467    
1468     case "$ac_dir" in
1469     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470     *)
1471 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1473 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 michael 5052 case $ac_top_builddir_sub in
1475     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477     esac ;;
1478     esac
1479     ac_abs_top_builddir=$ac_pwd
1480     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481     # for backward compatibility:
1482     ac_top_builddir=$ac_top_build_prefix
1483    
1484     case $srcdir in
1485     .) # We are building in place.
1486     ac_srcdir=.
1487     ac_top_srcdir=$ac_top_builddir_sub
1488     ac_abs_top_srcdir=$ac_pwd ;;
1489     [\\/]* | ?:[\\/]* ) # Absolute name.
1490     ac_srcdir=$srcdir$ac_dir_suffix;
1491     ac_top_srcdir=$srcdir
1492     ac_abs_top_srcdir=$srcdir ;;
1493     *) # Relative name.
1494     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495     ac_top_srcdir=$ac_top_build_prefix$srcdir
1496     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497     esac
1498     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499    
1500     cd "$ac_dir" || { ac_status=$?; continue; }
1501     # Check for guested configure.
1502     if test -f "$ac_srcdir/configure.gnu"; then
1503     echo &&
1504     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505     elif test -f "$ac_srcdir/configure"; then
1506     echo &&
1507     $SHELL "$ac_srcdir/configure" --help=recursive
1508     else
1509 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 michael 5052 fi || ac_status=$?
1511     cd "$ac_pwd" || { ac_status=$?; break; }
1512     done
1513     fi
1514    
1515     test -n "$ac_init_help" && exit $ac_status
1516     if $ac_init_version; then
1517     cat <<\_ACEOF
1518 michael 6059 hopm configure 1.0.7
1519 michael 5059 generated by GNU Autoconf 2.69
1520 michael 5052
1521 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1522 michael 5052 This configure script is free software; the Free Software Foundation
1523     gives unlimited permission to copy, distribute and modify it.
1524     _ACEOF
1525     exit
1526     fi
1527 michael 5059
1528     ## ------------------------ ##
1529     ## Autoconf initialization. ##
1530     ## ------------------------ ##
1531    
1532     # ac_fn_c_try_compile LINENO
1533     # --------------------------
1534     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535     ac_fn_c_try_compile ()
1536     {
1537     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538     rm -f conftest.$ac_objext
1539     if { { ac_try="$ac_compile"
1540     case "(($ac_try" in
1541     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542     *) ac_try_echo=$ac_try;;
1543     esac
1544     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545     $as_echo "$ac_try_echo"; } >&5
1546     (eval "$ac_compile") 2>conftest.err
1547     ac_status=$?
1548     if test -s conftest.err; then
1549     grep -v '^ *+' conftest.err >conftest.er1
1550     cat conftest.er1 >&5
1551     mv -f conftest.er1 conftest.err
1552     fi
1553     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554     test $ac_status = 0; } && {
1555     test -z "$ac_c_werror_flag" ||
1556     test ! -s conftest.err
1557     } && test -s conftest.$ac_objext; then :
1558     ac_retval=0
1559     else
1560     $as_echo "$as_me: failed program was:" >&5
1561     sed 's/^/| /' conftest.$ac_ext >&5
1562    
1563     ac_retval=1
1564     fi
1565     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566     as_fn_set_status $ac_retval
1567    
1568     } # ac_fn_c_try_compile
1569    
1570     # ac_fn_c_try_link LINENO
1571     # -----------------------
1572     # Try to link conftest.$ac_ext, and return whether this succeeded.
1573     ac_fn_c_try_link ()
1574     {
1575     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576     rm -f conftest.$ac_objext conftest$ac_exeext
1577     if { { ac_try="$ac_link"
1578     case "(($ac_try" in
1579     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580     *) ac_try_echo=$ac_try;;
1581     esac
1582     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583     $as_echo "$ac_try_echo"; } >&5
1584     (eval "$ac_link") 2>conftest.err
1585     ac_status=$?
1586     if test -s conftest.err; then
1587     grep -v '^ *+' conftest.err >conftest.er1
1588     cat conftest.er1 >&5
1589     mv -f conftest.er1 conftest.err
1590     fi
1591     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592     test $ac_status = 0; } && {
1593     test -z "$ac_c_werror_flag" ||
1594     test ! -s conftest.err
1595     } && test -s conftest$ac_exeext && {
1596     test "$cross_compiling" = yes ||
1597     test -x conftest$ac_exeext
1598     }; then :
1599     ac_retval=0
1600     else
1601     $as_echo "$as_me: failed program was:" >&5
1602     sed 's/^/| /' conftest.$ac_ext >&5
1603    
1604     ac_retval=1
1605     fi
1606     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608     # interfere with the next link command; also delete a directory that is
1609     # left behind by Apple's compiler. We do this before executing the actions.
1610     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612     as_fn_set_status $ac_retval
1613    
1614     } # ac_fn_c_try_link
1615    
1616     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617     # -------------------------------------------------------
1618     # Tests whether HEADER exists and can be compiled using the include files in
1619     # INCLUDES, setting the cache variable VAR accordingly.
1620     ac_fn_c_check_header_compile ()
1621     {
1622     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624     $as_echo_n "checking for $2... " >&6; }
1625     if eval \${$3+:} false; then :
1626     $as_echo_n "(cached) " >&6
1627     else
1628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629     /* end confdefs.h. */
1630     $4
1631     #include <$2>
1632     _ACEOF
1633     if ac_fn_c_try_compile "$LINENO"; then :
1634     eval "$3=yes"
1635     else
1636     eval "$3=no"
1637     fi
1638     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639     fi
1640     eval ac_res=\$$3
1641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642     $as_echo "$ac_res" >&6; }
1643     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644    
1645     } # ac_fn_c_check_header_compile
1646    
1647     # ac_fn_c_try_cpp LINENO
1648     # ----------------------
1649     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650     ac_fn_c_try_cpp ()
1651     {
1652     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653     if { { ac_try="$ac_cpp conftest.$ac_ext"
1654     case "(($ac_try" in
1655     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656     *) ac_try_echo=$ac_try;;
1657     esac
1658     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659     $as_echo "$ac_try_echo"; } >&5
1660     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661     ac_status=$?
1662     if test -s conftest.err; then
1663     grep -v '^ *+' conftest.err >conftest.er1
1664     cat conftest.er1 >&5
1665     mv -f conftest.er1 conftest.err
1666     fi
1667     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668     test $ac_status = 0; } > conftest.i && {
1669     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670     test ! -s conftest.err
1671     }; then :
1672     ac_retval=0
1673     else
1674     $as_echo "$as_me: failed program was:" >&5
1675     sed 's/^/| /' conftest.$ac_ext >&5
1676    
1677     ac_retval=1
1678     fi
1679     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680     as_fn_set_status $ac_retval
1681    
1682     } # ac_fn_c_try_cpp
1683    
1684     # ac_fn_c_try_run LINENO
1685     # ----------------------
1686     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687     # that executables *can* be run.
1688     ac_fn_c_try_run ()
1689     {
1690     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691     if { { ac_try="$ac_link"
1692     case "(($ac_try" in
1693     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694     *) ac_try_echo=$ac_try;;
1695     esac
1696     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697     $as_echo "$ac_try_echo"; } >&5
1698     (eval "$ac_link") 2>&5
1699     ac_status=$?
1700     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702     { { case "(($ac_try" in
1703     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704     *) ac_try_echo=$ac_try;;
1705     esac
1706     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707     $as_echo "$ac_try_echo"; } >&5
1708     (eval "$ac_try") 2>&5
1709     ac_status=$?
1710     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711     test $ac_status = 0; }; }; then :
1712     ac_retval=0
1713     else
1714     $as_echo "$as_me: program exited with status $ac_status" >&5
1715     $as_echo "$as_me: failed program was:" >&5
1716     sed 's/^/| /' conftest.$ac_ext >&5
1717    
1718     ac_retval=$ac_status
1719     fi
1720     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722     as_fn_set_status $ac_retval
1723    
1724     } # ac_fn_c_try_run
1725    
1726     # ac_fn_c_check_func LINENO FUNC VAR
1727     # ----------------------------------
1728     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729     ac_fn_c_check_func ()
1730     {
1731     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733     $as_echo_n "checking for $2... " >&6; }
1734     if eval \${$3+:} false; then :
1735     $as_echo_n "(cached) " >&6
1736     else
1737     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738     /* end confdefs.h. */
1739     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1740     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1741     #define $2 innocuous_$2
1742    
1743     /* System header to define __stub macros and hopefully few prototypes,
1744     which can conflict with char $2 (); below.
1745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1746     <limits.h> exists even on freestanding compilers. */
1747    
1748     #ifdef __STDC__
1749     # include <limits.h>
1750     #else
1751     # include <assert.h>
1752     #endif
1753    
1754     #undef $2
1755    
1756     /* Override any GCC internal prototype to avoid an error.
1757     Use char because int might match the return type of a GCC
1758     builtin and then its argument prototype would still apply. */
1759     #ifdef __cplusplus
1760     extern "C"
1761     #endif
1762     char $2 ();
1763     /* The GNU C library defines this for functions which it implements
1764     to always fail with ENOSYS. Some functions are actually named
1765     something starting with __ and the normal name is an alias. */
1766     #if defined __stub_$2 || defined __stub___$2
1767     choke me
1768     #endif
1769    
1770     int
1771     main ()
1772     {
1773     return $2 ();
1774     ;
1775     return 0;
1776     }
1777     _ACEOF
1778     if ac_fn_c_try_link "$LINENO"; then :
1779     eval "$3=yes"
1780     else
1781     eval "$3=no"
1782     fi
1783     rm -f core conftest.err conftest.$ac_objext \
1784     conftest$ac_exeext conftest.$ac_ext
1785     fi
1786     eval ac_res=\$$3
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788     $as_echo "$ac_res" >&6; }
1789     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790    
1791     } # ac_fn_c_check_func
1792 michael 5052 cat >config.log <<_ACEOF
1793     This file contains any messages produced by compilers while
1794     running configure, to aid debugging if configure makes a mistake.
1795    
1796 michael 6059 It was created by hopm $as_me 1.0.7, which was
1797 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1798 michael 5052
1799     $ $0 $@
1800    
1801     _ACEOF
1802     exec 5>>config.log
1803     {
1804     cat <<_ASUNAME
1805     ## --------- ##
1806     ## Platform. ##
1807     ## --------- ##
1808    
1809     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1810     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1811     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1812     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1813     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814    
1815     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1816     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817    
1818     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1819     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1820     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1821     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1822     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1823     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1824     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825    
1826     _ASUNAME
1827    
1828     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829     for as_dir in $PATH
1830     do
1831     IFS=$as_save_IFS
1832     test -z "$as_dir" && as_dir=.
1833 michael 5059 $as_echo "PATH: $as_dir"
1834     done
1835 michael 5052 IFS=$as_save_IFS
1836    
1837     } >&5
1838    
1839     cat >&5 <<_ACEOF
1840    
1841    
1842     ## ----------- ##
1843     ## Core tests. ##
1844     ## ----------- ##
1845    
1846     _ACEOF
1847    
1848    
1849     # Keep a trace of the command line.
1850     # Strip out --no-create and --no-recursion so they do not pile up.
1851     # Strip out --silent because we don't want to record it for future runs.
1852     # Also quote any args containing shell meta-characters.
1853     # Make two passes to allow for proper duplicate-argument suppression.
1854     ac_configure_args=
1855     ac_configure_args0=
1856     ac_configure_args1=
1857     ac_must_keep_next=false
1858     for ac_pass in 1 2
1859     do
1860     for ac_arg
1861     do
1862     case $ac_arg in
1863     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1864     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1865     | -silent | --silent | --silen | --sile | --sil)
1866     continue ;;
1867     *\'*)
1868 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 michael 5052 esac
1870     case $ac_pass in
1871 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 michael 5052 2)
1873 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1874 michael 5052 if test $ac_must_keep_next = true; then
1875     ac_must_keep_next=false # Got value, back to normal.
1876     else
1877     case $ac_arg in
1878     *=* | --config-cache | -C | -disable-* | --disable-* \
1879     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1880     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1881     | -with-* | --with-* | -without-* | --without-* | --x)
1882     case "$ac_configure_args0 " in
1883     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884     esac
1885     ;;
1886     -* ) ac_must_keep_next=true ;;
1887     esac
1888     fi
1889 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1890 michael 5052 ;;
1891     esac
1892     done
1893     done
1894 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1895     { ac_configure_args1=; unset ac_configure_args1;}
1896 michael 5052
1897     # When interrupted or exit'd, cleanup temporary files, and complete
1898     # config.log. We remove comments because anyway the quotes in there
1899     # would cause problems or look ugly.
1900     # WARNING: Use '\'' to represent an apostrophe within the trap.
1901     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1902     trap 'exit_status=$?
1903     # Save into config.log some information that might help in debugging.
1904     {
1905     echo
1906    
1907 michael 5059 $as_echo "## ---------------- ##
1908 michael 5052 ## Cache variables. ##
1909 michael 5059 ## ---------------- ##"
1910 michael 5052 echo
1911     # The following way of writing the cache mishandles newlines in values,
1912     (
1913     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914     eval ac_val=\$$ac_var
1915     case $ac_val in #(
1916     *${as_nl}*)
1917     case $ac_var in #(
1918 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1920 michael 5052 esac
1921     case $ac_var in #(
1922     _ | IFS | as_nl) ;; #(
1923 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924     *) { eval $ac_var=; unset $ac_var;} ;;
1925 michael 5052 esac ;;
1926     esac
1927     done
1928     (set) 2>&1 |
1929     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930     *${as_nl}ac_space=\ *)
1931     sed -n \
1932     "s/'\''/'\''\\\\'\'''\''/g;
1933     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1934     ;; #(
1935     *)
1936     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937     ;;
1938     esac |
1939     sort
1940     )
1941     echo
1942    
1943 michael 5059 $as_echo "## ----------------- ##
1944 michael 5052 ## Output variables. ##
1945 michael 5059 ## ----------------- ##"
1946 michael 5052 echo
1947     for ac_var in $ac_subst_vars
1948     do
1949     eval ac_val=\$$ac_var
1950     case $ac_val in
1951 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 michael 5052 esac
1953 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1954 michael 5052 done | sort
1955     echo
1956    
1957     if test -n "$ac_subst_files"; then
1958 michael 5059 $as_echo "## ------------------- ##
1959 michael 5052 ## File substitutions. ##
1960 michael 5059 ## ------------------- ##"
1961 michael 5052 echo
1962     for ac_var in $ac_subst_files
1963     do
1964     eval ac_val=\$$ac_var
1965     case $ac_val in
1966 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 michael 5052 esac
1968 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
1969 michael 5052 done | sort
1970     echo
1971     fi
1972    
1973     if test -s confdefs.h; then
1974 michael 5059 $as_echo "## ----------- ##
1975 michael 5052 ## confdefs.h. ##
1976 michael 5059 ## ----------- ##"
1977 michael 5052 echo
1978     cat confdefs.h
1979     echo
1980     fi
1981     test "$ac_signal" != 0 &&
1982 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
1983     $as_echo "$as_me: exit $exit_status"
1984 michael 5052 } >&5
1985     rm -f core *.core core.conftest.* &&
1986     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987     exit $exit_status
1988     ' 0
1989     for ac_signal in 1 2 13 15; do
1990 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1991 michael 5052 done
1992     ac_signal=0
1993    
1994     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1995     rm -f -r conftest* confdefs.h
1996    
1997 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
1998    
1999 michael 5052 # Predefined preprocessor variables.
2000    
2001     cat >>confdefs.h <<_ACEOF
2002     #define PACKAGE_NAME "$PACKAGE_NAME"
2003     _ACEOF
2004    
2005     cat >>confdefs.h <<_ACEOF
2006     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007     _ACEOF
2008    
2009     cat >>confdefs.h <<_ACEOF
2010     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2011     _ACEOF
2012    
2013     cat >>confdefs.h <<_ACEOF
2014     #define PACKAGE_STRING "$PACKAGE_STRING"
2015     _ACEOF
2016    
2017     cat >>confdefs.h <<_ACEOF
2018     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019     _ACEOF
2020    
2021 michael 5059 cat >>confdefs.h <<_ACEOF
2022     #define PACKAGE_URL "$PACKAGE_URL"
2023     _ACEOF
2024 michael 5052
2025 michael 5059
2026 michael 5052 # Let the site file select an alternate cache file if it wants to.
2027 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2028     ac_site_file1=NONE
2029     ac_site_file2=NONE
2030 michael 5052 if test -n "$CONFIG_SITE"; then
2031 michael 5059 # We do not want a PATH search for config.site.
2032     case $CONFIG_SITE in #((
2033     -*) ac_site_file1=./$CONFIG_SITE;;
2034     */*) ac_site_file1=$CONFIG_SITE;;
2035     *) ac_site_file1=./$CONFIG_SITE;;
2036     esac
2037 michael 5052 elif test "x$prefix" != xNONE; then
2038 michael 5059 ac_site_file1=$prefix/share/config.site
2039     ac_site_file2=$prefix/etc/config.site
2040 michael 5052 else
2041 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2042     ac_site_file2=$ac_default_prefix/etc/config.site
2043 michael 5052 fi
2044 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 michael 5052 do
2046 michael 5059 test "x$ac_site_file" = xNONE && continue
2047     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2049     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2050 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2051 michael 5059 . "$ac_site_file" \
2052     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2053     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2054     as_fn_error $? "failed to load site script $ac_site_file
2055     See \`config.log' for more details" "$LINENO" 5; }
2056 michael 5052 fi
2057     done
2058    
2059     if test -r "$cache_file"; then
2060 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2061     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2062     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2063     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2064     $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 michael 5052 case $cache_file in
2066     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2067     *) . "./$cache_file";;
2068     esac
2069     fi
2070     else
2071 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2072     $as_echo "$as_me: creating cache $cache_file" >&6;}
2073 michael 5052 >$cache_file
2074     fi
2075    
2076     # Check that the precious variables saved in the cache have kept the same
2077     # value.
2078     ac_cache_corrupted=false
2079     for ac_var in $ac_precious_vars; do
2080     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2081     eval ac_new_set=\$ac_env_${ac_var}_set
2082     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2083     eval ac_new_val=\$ac_env_${ac_var}_value
2084     case $ac_old_set,$ac_new_set in
2085     set,)
2086 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2087     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2088 michael 5052 ac_cache_corrupted=: ;;
2089     ,set)
2090 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2091     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2092 michael 5052 ac_cache_corrupted=: ;;
2093     ,);;
2094     *)
2095     if test "x$ac_old_val" != "x$ac_new_val"; then
2096 michael 5059 # differences in whitespace do not lead to failure.
2097     ac_old_val_w=`echo x $ac_old_val`
2098     ac_new_val_w=`echo x $ac_new_val`
2099     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2100     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2101     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2102     ac_cache_corrupted=:
2103     else
2104     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2105     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2106     eval $ac_var=\$ac_old_val
2107     fi
2108     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2109     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2110     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2111     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2112 michael 5052 fi;;
2113     esac
2114     # Pass precious variables to config.status.
2115     if test "$ac_new_set" = set; then
2116     case $ac_new_val in
2117 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2118 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2119     esac
2120     case " $ac_configure_args " in
2121     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2122 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2123 michael 5052 esac
2124     fi
2125     done
2126     if $ac_cache_corrupted; then
2127 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2130     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2131     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 michael 5052 fi
2133 michael 5059 ## -------------------- ##
2134     ## Main body of script. ##
2135     ## -------------------- ##
2136 michael 5052
2137     ac_ext=c
2138     ac_cpp='$CPP $CPPFLAGS'
2139     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142    
2143    
2144 michael 5353 am__api_version='1.15'
2145 michael 5059
2146 michael 5052 ac_aux_dir=
2147     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148     if test -f "$ac_dir/install-sh"; then
2149     ac_aux_dir=$ac_dir
2150     ac_install_sh="$ac_aux_dir/install-sh -c"
2151     break
2152     elif test -f "$ac_dir/install.sh"; then
2153     ac_aux_dir=$ac_dir
2154     ac_install_sh="$ac_aux_dir/install.sh -c"
2155     break
2156     elif test -f "$ac_dir/shtool"; then
2157     ac_aux_dir=$ac_dir
2158     ac_install_sh="$ac_aux_dir/shtool install -c"
2159     break
2160     fi
2161     done
2162     if test -z "$ac_aux_dir"; then
2163 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2164 michael 5052 fi
2165    
2166     # These three variables are undocumented and unsupported,
2167     # and are intended to be withdrawn in a future Autoconf release.
2168     # They can cause serious problems if a builder's source tree is in a directory
2169     # whose full name contains unusual characters.
2170     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2171     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2172     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2173    
2174    
2175     # Find a good install program. We prefer a C program (faster),
2176     # so one script is as good as another. But avoid the broken or
2177     # incompatible versions:
2178     # SysV /etc/install, /usr/sbin/install
2179     # SunOS /usr/etc/install
2180     # IRIX /sbin/install
2181     # AIX /bin/install
2182     # AmigaOS /C/install, which installs bootblocks on floppy discs
2183     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2184     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2185     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2186     # OS/2's system install, which has a completely different semantic
2187     # ./install, which can be erroneously created by make from ./install.sh.
2188 michael 5059 # Reject install programs that cannot install multiple files.
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2190     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2191 michael 5052 if test -z "$INSTALL"; then
2192 michael 5059 if ${ac_cv_path_install+:} false; then :
2193     $as_echo_n "(cached) " >&6
2194 michael 5052 else
2195     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196     for as_dir in $PATH
2197     do
2198     IFS=$as_save_IFS
2199     test -z "$as_dir" && as_dir=.
2200 michael 5059 # Account for people who put trailing slashes in PATH elements.
2201     case $as_dir/ in #((
2202     ./ | .// | /[cC]/* | \
2203 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2204 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2205 michael 5052 /usr/ucb/* ) ;;
2206     *)
2207     # OSF1 and SCO ODT 3.0 have their own names for install.
2208     # Don't use installbsd from OSF since it installs stuff as root
2209     # by default.
2210     for ac_prog in ginstall scoinst install; do
2211     for ac_exec_ext in '' $ac_executable_extensions; do
2212 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2213 michael 5052 if test $ac_prog = install &&
2214     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2215     # AIX install. It has an incompatible calling convention.
2216     :
2217     elif test $ac_prog = install &&
2218     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219     # program-specific install script used by HP pwplus--don't use.
2220     :
2221     else
2222 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2223     echo one > conftest.one
2224     echo two > conftest.two
2225     mkdir conftest.dir
2226     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2227     test -s conftest.one && test -s conftest.two &&
2228     test -s conftest.dir/conftest.one &&
2229     test -s conftest.dir/conftest.two
2230     then
2231     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2232     break 3
2233     fi
2234 michael 5052 fi
2235     fi
2236     done
2237     done
2238     ;;
2239     esac
2240 michael 5059
2241     done
2242 michael 5052 IFS=$as_save_IFS
2243    
2244 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2245 michael 5052
2246     fi
2247     if test "${ac_cv_path_install+set}" = set; then
2248     INSTALL=$ac_cv_path_install
2249     else
2250     # As a last resort, use the slow shell script. Don't cache a
2251     # value for INSTALL within a source directory, because that will
2252     # break other packages using the cache if that directory is
2253     # removed, or if the value is a relative name.
2254     INSTALL=$ac_install_sh
2255     fi
2256     fi
2257 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2258     $as_echo "$INSTALL" >&6; }
2259 michael 5052
2260     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2261     # It thinks the first close brace ends the variable substitution.
2262     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2263    
2264     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2265    
2266     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2267    
2268 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2269     $as_echo_n "checking whether build environment is sane... " >&6; }
2270     # Reject unsafe characters in $srcdir or the absolute working directory
2271     # name. Accept space and tab only in the latter.
2272     am_lf='
2273     '
2274     case `pwd` in
2275     *[\\\"\#\$\&\'\`$am_lf]*)
2276     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2277     esac
2278     case $srcdir in
2279     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2280     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2281     esac
2282    
2283     # Do 'set' in a subshell so we don't clobber the current shell's
2284 michael 5052 # arguments. Must try -L first in case configure is actually a
2285     # symlink; some systems play weird games with the mod time of symlinks
2286     # (eg FreeBSD returns the mod time of the symlink's containing
2287     # directory).
2288     if (
2289 michael 5059 am_has_slept=no
2290     for am_try in 1 2; do
2291     echo "timestamp, slept: $am_has_slept" > conftest.file
2292     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2293     if test "$*" = "X"; then
2294     # -L didn't work.
2295     set X `ls -t "$srcdir/configure" conftest.file`
2296     fi
2297     if test "$*" != "X $srcdir/configure conftest.file" \
2298     && test "$*" != "X conftest.file $srcdir/configure"; then
2299 michael 5052
2300 michael 5059 # If neither matched, then we have a broken ls. This can happen
2301     # if, for instance, CONFIG_SHELL is bash and it inherits a
2302     # broken ls alias from the environment. This has actually
2303     # happened. Such a system could not be considered "sane".
2304     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2305     alias in your environment" "$LINENO" 5
2306     fi
2307     if test "$2" = conftest.file || test $am_try -eq 2; then
2308     break
2309     fi
2310     # Just in case.
2311     sleep 1
2312     am_has_slept=yes
2313     done
2314 michael 5052 test "$2" = conftest.file
2315     )
2316     then
2317     # Ok.
2318     :
2319     else
2320 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2321     Check your system clock" "$LINENO" 5
2322 michael 5052 fi
2323 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2324     $as_echo "yes" >&6; }
2325     # If we didn't sleep, we still need to ensure time stamps of config.status and
2326     # generated files are strictly newer.
2327     am_sleep_pid=
2328     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2329     ( sleep 1 ) &
2330     am_sleep_pid=$!
2331     fi
2332    
2333     rm -f conftest.file
2334    
2335 michael 5052 test "$program_prefix" != NONE &&
2336     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2337     # Use a double $ so make ignores it.
2338     test "$program_suffix" != NONE &&
2339     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2340 michael 5059 # Double any \ or $.
2341 michael 5052 # By default was `s,x,x', remove it if useless.
2342 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2343     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2344 michael 5052
2345 michael 5353 # Expand $ac_aux_dir to an absolute path.
2346     am_aux_dir=`cd "$ac_aux_dir" && pwd`
2347 michael 5052
2348 michael 5059 if test x"${MISSING+set}" != xset; then
2349     case $am_aux_dir in
2350     *\ * | *\ *)
2351     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2352     *)
2353     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2354     esac
2355     fi
2356 michael 5052 # Use eval to expand $SHELL
2357 michael 5059 if eval "$MISSING --is-lightweight"; then
2358     am_missing_run="$MISSING "
2359 michael 5052 else
2360     am_missing_run=
2361 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2362     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2363 michael 5052 fi
2364    
2365 michael 5353 if test x"${install_sh+set}" != xset; then
2366 michael 5059 case $am_aux_dir in
2367     *\ * | *\ *)
2368     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2369     *)
2370     install_sh="\${SHELL} $am_aux_dir/install-sh"
2371     esac
2372     fi
2373    
2374     # Installed binaries are usually stripped using 'strip' when the user
2375     # run "make install-strip". However 'strip' might not be the right
2376     # tool to use in cross-compilation environments, therefore Automake
2377     # will honor the 'STRIP' environment variable to overrule this program.
2378     if test "$cross_compiling" != no; then
2379     if test -n "$ac_tool_prefix"; then
2380     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2381     set dummy ${ac_tool_prefix}strip; ac_word=$2
2382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383     $as_echo_n "checking for $ac_word... " >&6; }
2384     if ${ac_cv_prog_STRIP+:} false; then :
2385     $as_echo_n "(cached) " >&6
2386 michael 5052 else
2387 michael 5059 if test -n "$STRIP"; then
2388     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2389     else
2390     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391     for as_dir in $PATH
2392     do
2393     IFS=$as_save_IFS
2394     test -z "$as_dir" && as_dir=.
2395     for ac_exec_ext in '' $ac_executable_extensions; do
2396     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2399     break 2
2400     fi
2401     done
2402 michael 5052 done
2403 michael 5059 IFS=$as_save_IFS
2404    
2405     fi
2406     fi
2407     STRIP=$ac_cv_prog_STRIP
2408     if test -n "$STRIP"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2410     $as_echo "$STRIP" >&6; }
2411     else
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413     $as_echo "no" >&6; }
2414     fi
2415    
2416    
2417     fi
2418     if test -z "$ac_cv_prog_STRIP"; then
2419     ac_ct_STRIP=$STRIP
2420     # Extract the first word of "strip", so it can be a program name with args.
2421     set dummy strip; ac_word=$2
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423     $as_echo_n "checking for $ac_word... " >&6; }
2424     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2425     $as_echo_n "(cached) " >&6
2426     else
2427     if test -n "$ac_ct_STRIP"; then
2428     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2429     else
2430     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431     for as_dir in $PATH
2432     do
2433     IFS=$as_save_IFS
2434     test -z "$as_dir" && as_dir=.
2435     for ac_exec_ext in '' $ac_executable_extensions; do
2436     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437     ac_cv_prog_ac_ct_STRIP="strip"
2438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439     break 2
2440     fi
2441     done
2442     done
2443     IFS=$as_save_IFS
2444    
2445     fi
2446     fi
2447     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2448     if test -n "$ac_ct_STRIP"; then
2449     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2450     $as_echo "$ac_ct_STRIP" >&6; }
2451     else
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453     $as_echo "no" >&6; }
2454     fi
2455    
2456     if test "x$ac_ct_STRIP" = x; then
2457     STRIP=":"
2458 michael 5052 else
2459 michael 5059 case $cross_compiling:$ac_tool_warned in
2460     yes:)
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2462     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2463     ac_tool_warned=yes ;;
2464     esac
2465     STRIP=$ac_ct_STRIP
2466 michael 5052 fi
2467 michael 5059 else
2468     STRIP="$ac_cv_prog_STRIP"
2469 michael 5052 fi
2470    
2471 michael 5059 fi
2472     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2473    
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2475     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2476     if test -z "$MKDIR_P"; then
2477     if ${ac_cv_path_mkdir+:} false; then :
2478     $as_echo_n "(cached) " >&6
2479     else
2480     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2482     do
2483     IFS=$as_save_IFS
2484     test -z "$as_dir" && as_dir=.
2485     for ac_prog in mkdir gmkdir; do
2486     for ac_exec_ext in '' $ac_executable_extensions; do
2487     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2488     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2489     'mkdir (GNU coreutils) '* | \
2490     'mkdir (coreutils) '* | \
2491     'mkdir (fileutils) '4.1*)
2492     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2493     break 3;;
2494     esac
2495     done
2496     done
2497     done
2498     IFS=$as_save_IFS
2499    
2500     fi
2501    
2502     test -d ./--version && rmdir ./--version
2503     if test "${ac_cv_path_mkdir+set}" = set; then
2504     MKDIR_P="$ac_cv_path_mkdir -p"
2505     else
2506     # As a last resort, use the slow shell script. Don't cache a
2507     # value for MKDIR_P within a source directory, because that will
2508     # break other packages using the cache if that directory is
2509     # removed, or if the value is a relative name.
2510     MKDIR_P="$ac_install_sh -d"
2511     fi
2512     fi
2513     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2514     $as_echo "$MKDIR_P" >&6; }
2515    
2516 michael 5052 for ac_prog in gawk mawk nawk awk
2517     do
2518     # Extract the first word of "$ac_prog", so it can be a program name with args.
2519     set dummy $ac_prog; ac_word=$2
2520 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2521     $as_echo_n "checking for $ac_word... " >&6; }
2522     if ${ac_cv_prog_AWK+:} false; then :
2523     $as_echo_n "(cached) " >&6
2524 michael 5052 else
2525     if test -n "$AWK"; then
2526     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2527     else
2528     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529     for as_dir in $PATH
2530     do
2531     IFS=$as_save_IFS
2532     test -z "$as_dir" && as_dir=.
2533 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2534     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2535 michael 5052 ac_cv_prog_AWK="$ac_prog"
2536 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2537 michael 5052 break 2
2538     fi
2539     done
2540 michael 5059 done
2541 michael 5052 IFS=$as_save_IFS
2542    
2543     fi
2544     fi
2545     AWK=$ac_cv_prog_AWK
2546     if test -n "$AWK"; then
2547 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2548     $as_echo "$AWK" >&6; }
2549 michael 5052 else
2550 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2551     $as_echo "no" >&6; }
2552 michael 5052 fi
2553    
2554    
2555     test -n "$AWK" && break
2556     done
2557    
2558 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2559     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2560     set x ${MAKE-make}
2561     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2562     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2563     $as_echo_n "(cached) " >&6
2564 michael 5052 else
2565     cat >conftest.make <<\_ACEOF
2566     SHELL = /bin/sh
2567     all:
2568     @echo '@@@%%%=$(MAKE)=@@@%%%'
2569     _ACEOF
2570 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2571 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2572     *@@@%%%=?*=@@@%%%*)
2573     eval ac_cv_prog_make_${ac_make}_set=yes;;
2574     *)
2575     eval ac_cv_prog_make_${ac_make}_set=no;;
2576     esac
2577     rm -f conftest.make
2578     fi
2579     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2580 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2581     $as_echo "yes" >&6; }
2582 michael 5052 SET_MAKE=
2583     else
2584 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585     $as_echo "no" >&6; }
2586 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2587     fi
2588    
2589     rm -rf .tst 2>/dev/null
2590     mkdir .tst 2>/dev/null
2591     if test -d .tst; then
2592     am__leading_dot=.
2593     else
2594     am__leading_dot=_
2595     fi
2596     rmdir .tst 2>/dev/null
2597    
2598 michael 5059 # Check whether --enable-silent-rules was given.
2599     if test "${enable_silent_rules+set}" = set; then :
2600     enableval=$enable_silent_rules;
2601 michael 5052 fi
2602    
2603 michael 5059 case $enable_silent_rules in # (((
2604     yes) AM_DEFAULT_VERBOSITY=0;;
2605     no) AM_DEFAULT_VERBOSITY=1;;
2606     *) AM_DEFAULT_VERBOSITY=1;;
2607     esac
2608     am_make=${MAKE-make}
2609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2610     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2611     if ${am_cv_make_support_nested_variables+:} false; then :
2612     $as_echo_n "(cached) " >&6
2613     else
2614     if $as_echo 'TRUE=$(BAR$(V))
2615     BAR0=false
2616     BAR1=true
2617     V=1
2618     am__doit:
2619     @$(TRUE)
2620     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2621     am_cv_make_support_nested_variables=yes
2622     else
2623     am_cv_make_support_nested_variables=no
2624     fi
2625     fi
2626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2627     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2628     if test $am_cv_make_support_nested_variables = yes; then
2629     AM_V='$(V)'
2630     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2631     else
2632     AM_V=$AM_DEFAULT_VERBOSITY
2633     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2634     fi
2635     AM_BACKSLASH='\'
2636    
2637     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2638     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2639     # is not polluted with repeated "-I."
2640     am__isrc=' -I$(srcdir)'
2641     # test to see if srcdir already configured
2642     if test -f $srcdir/config.status; then
2643     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2644     fi
2645     fi
2646    
2647 michael 5052 # test whether we have cygpath
2648     if test -z "$CYGPATH_W"; then
2649     if (cygpath --version) >/dev/null 2>/dev/null; then
2650     CYGPATH_W='cygpath -w'
2651     else
2652     CYGPATH_W=echo
2653     fi
2654     fi
2655    
2656    
2657     # Define the identity of the package.
2658 michael 5061 PACKAGE='hopm'
2659 michael 6059 VERSION='1.0.7'
2660 michael 5052
2661    
2662     cat >>confdefs.h <<_ACEOF
2663     #define PACKAGE "$PACKAGE"
2664     _ACEOF
2665    
2666    
2667     cat >>confdefs.h <<_ACEOF
2668     #define VERSION "$VERSION"
2669     _ACEOF
2670    
2671     # Some tools Automake needs.
2672    
2673     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674    
2675    
2676     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677    
2678    
2679     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680    
2681    
2682     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683    
2684    
2685     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2686    
2687 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2688     # dies out for good. For more background, see:
2689     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2690     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2691     mkdir_p='$(MKDIR_P)'
2692 michael 5052
2693 michael 5353 # We need awk for the "check" target (and possibly the TAP driver). The
2694     # system "awk" is bad on some platforms.
2695 michael 5059 # Always define AMTAR for backward compatibility. Yes, it's still used
2696     # in the wild :-( We should find a proper way to deprecate it ...
2697     AMTAR='$${TAR-tar}'
2698 michael 5052
2699    
2700 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2701     _am_tools='gnutar pax cpio none'
2702 michael 5052
2703 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2704 michael 5052
2705    
2706    
2707    
2708    
2709    
2710 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2711     # is OK; and we want to be able to make that assumption in our Makefile
2712     # recipes. So use an aggressive probe to check that the usage we want is
2713     # actually supported "in the wild" to an acceptable degree.
2714     # See automake bug#10828.
2715     # To make any issue more visible, cause the running configure to be aborted
2716     # by default if the 'rm' program in use doesn't match our expectations; the
2717     # user can still override this though.
2718     if rm -f && rm -fr && rm -rf; then : OK; else
2719     cat >&2 <<'END'
2720     Oops!
2721 michael 5052
2722 michael 5059 Your 'rm' program seems unable to run without file operands specified
2723     on the command line, even when the '-f' option is present. This is contrary
2724     to the behaviour of most rm programs out there, and not conforming with
2725     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2726 michael 5052
2727 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2728     of your $PATH and any error possibly output before this message. This
2729     can help us improve future automake versions.
2730 michael 5052
2731 michael 5059 END
2732     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2733     echo 'Configuration will proceed anyway, since you have set the' >&2
2734     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2735     echo >&2
2736     else
2737     cat >&2 <<'END'
2738     Aborting the configuration process, to ensure you take notice of the issue.
2739 michael 5052
2740 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2741     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2742 michael 5052
2743 michael 5059 If you want to complete the configuration process using your problematic
2744     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2745     to "yes", and re-run configure.
2746 michael 5052
2747 michael 5059 END
2748     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2749     fi
2750     fi
2751    
2752 michael 5353
2753 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2754     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2755 michael 5052 # Check whether --enable-maintainer-mode was given.
2756 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2757 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2758     else
2759     USE_MAINTAINER_MODE=no
2760     fi
2761    
2762 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2763     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2764     if test $USE_MAINTAINER_MODE = yes; then
2765 michael 5052 MAINTAINER_MODE_TRUE=
2766     MAINTAINER_MODE_FALSE='#'
2767     else
2768     MAINTAINER_MODE_TRUE='#'
2769     MAINTAINER_MODE_FALSE=
2770     fi
2771    
2772     MAINT=$MAINTAINER_MODE_TRUE
2773    
2774    
2775    
2776 michael 5313 ac_config_headers="$ac_config_headers src/setup.h"
2777    
2778    
2779    
2780 michael 6098
2781 michael 5059 DEPDIR="${am__leading_dot}deps"
2782    
2783     ac_config_commands="$ac_config_commands depfiles"
2784    
2785    
2786     am_make=${MAKE-make}
2787     cat > confinc << 'END'
2788     am__doit:
2789     @echo this is the am__doit target
2790     .PHONY: am__doit
2791     END
2792     # If we don't find an include directive, just comment out the code.
2793     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2794     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2795     am__include="#"
2796     am__quote=
2797     _am_result=none
2798     # First try GNU make style include.
2799     echo "include confinc" > confmf
2800     # Ignore all kinds of additional output from 'make'.
2801     case `$am_make -s -f confmf 2> /dev/null` in #(
2802     *the\ am__doit\ target*)
2803     am__include=include
2804     am__quote=
2805     _am_result=GNU
2806     ;;
2807     esac
2808     # Now try BSD make style include.
2809     if test "$am__include" = "#"; then
2810     echo '.include "confinc"' > confmf
2811     case `$am_make -s -f confmf 2> /dev/null` in #(
2812     *the\ am__doit\ target*)
2813     am__include=.include
2814     am__quote="\""
2815     _am_result=BSD
2816     ;;
2817     esac
2818     fi
2819    
2820    
2821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2822     $as_echo "$_am_result" >&6; }
2823     rm -f confinc confmf
2824    
2825     # Check whether --enable-dependency-tracking was given.
2826     if test "${enable_dependency_tracking+set}" = set; then :
2827     enableval=$enable_dependency_tracking;
2828     fi
2829    
2830     if test "x$enable_dependency_tracking" != xno; then
2831     am_depcomp="$ac_aux_dir/depcomp"
2832     AMDEPBACKSLASH='\'
2833     am__nodep='_no'
2834     fi
2835     if test "x$enable_dependency_tracking" != xno; then
2836     AMDEP_TRUE=
2837     AMDEP_FALSE='#'
2838     else
2839     AMDEP_TRUE='#'
2840     AMDEP_FALSE=
2841     fi
2842    
2843    
2844 michael 5052 ac_ext=c
2845     ac_cpp='$CPP $CPPFLAGS'
2846     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2847     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2848     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849     if test -n "$ac_tool_prefix"; then
2850     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2851     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2852 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853     $as_echo_n "checking for $ac_word... " >&6; }
2854     if ${ac_cv_prog_CC+:} false; then :
2855     $as_echo_n "(cached) " >&6
2856 michael 5052 else
2857     if test -n "$CC"; then
2858     ac_cv_prog_CC="$CC" # Let the user override the test.
2859     else
2860     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861     for as_dir in $PATH
2862     do
2863     IFS=$as_save_IFS
2864     test -z "$as_dir" && as_dir=.
2865 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2866     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2868 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 michael 5052 break 2
2870     fi
2871     done
2872 michael 5059 done
2873 michael 5052 IFS=$as_save_IFS
2874    
2875     fi
2876     fi
2877     CC=$ac_cv_prog_CC
2878     if test -n "$CC"; then
2879 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2880     $as_echo "$CC" >&6; }
2881 michael 5052 else
2882 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883     $as_echo "no" >&6; }
2884 michael 5052 fi
2885    
2886    
2887     fi
2888     if test -z "$ac_cv_prog_CC"; then
2889     ac_ct_CC=$CC
2890     # Extract the first word of "gcc", so it can be a program name with args.
2891     set dummy gcc; ac_word=$2
2892 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893     $as_echo_n "checking for $ac_word... " >&6; }
2894     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2895     $as_echo_n "(cached) " >&6
2896 michael 5052 else
2897     if test -n "$ac_ct_CC"; then
2898     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2899     else
2900     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901     for as_dir in $PATH
2902     do
2903     IFS=$as_save_IFS
2904     test -z "$as_dir" && as_dir=.
2905 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2906     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2908 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909 michael 5052 break 2
2910     fi
2911     done
2912 michael 5059 done
2913 michael 5052 IFS=$as_save_IFS
2914    
2915     fi
2916     fi
2917     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2918     if test -n "$ac_ct_CC"; then
2919 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2920     $as_echo "$ac_ct_CC" >&6; }
2921 michael 5052 else
2922 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923     $as_echo "no" >&6; }
2924 michael 5052 fi
2925    
2926     if test "x$ac_ct_CC" = x; then
2927     CC=""
2928     else
2929     case $cross_compiling:$ac_tool_warned in
2930     yes:)
2931 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933 michael 5052 ac_tool_warned=yes ;;
2934     esac
2935     CC=$ac_ct_CC
2936     fi
2937     else
2938     CC="$ac_cv_prog_CC"
2939     fi
2940    
2941     if test -z "$CC"; then
2942     if test -n "$ac_tool_prefix"; then
2943     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2944     set dummy ${ac_tool_prefix}cc; ac_word=$2
2945 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946     $as_echo_n "checking for $ac_word... " >&6; }
2947     if ${ac_cv_prog_CC+:} false; then :
2948     $as_echo_n "(cached) " >&6
2949 michael 5052 else
2950     if test -n "$CC"; then
2951     ac_cv_prog_CC="$CC" # Let the user override the test.
2952     else
2953     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954     for as_dir in $PATH
2955     do
2956     IFS=$as_save_IFS
2957     test -z "$as_dir" && as_dir=.
2958 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2959     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2960 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
2961 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 michael 5052 break 2
2963     fi
2964     done
2965 michael 5059 done
2966 michael 5052 IFS=$as_save_IFS
2967    
2968     fi
2969     fi
2970     CC=$ac_cv_prog_CC
2971     if test -n "$CC"; then
2972 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2973     $as_echo "$CC" >&6; }
2974 michael 5052 else
2975 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976     $as_echo "no" >&6; }
2977 michael 5052 fi
2978    
2979    
2980     fi
2981     fi
2982     if test -z "$CC"; then
2983     # Extract the first word of "cc", so it can be a program name with args.
2984     set dummy cc; ac_word=$2
2985 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986     $as_echo_n "checking for $ac_word... " >&6; }
2987     if ${ac_cv_prog_CC+:} false; then :
2988     $as_echo_n "(cached) " >&6
2989 michael 5052 else
2990     if test -n "$CC"; then
2991     ac_cv_prog_CC="$CC" # Let the user override the test.
2992     else
2993     ac_prog_rejected=no
2994     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995     for as_dir in $PATH
2996     do
2997     IFS=$as_save_IFS
2998     test -z "$as_dir" && as_dir=.
2999 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3000     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3002     ac_prog_rejected=yes
3003     continue
3004     fi
3005     ac_cv_prog_CC="cc"
3006 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 michael 5052 break 2
3008     fi
3009     done
3010 michael 5059 done
3011 michael 5052 IFS=$as_save_IFS
3012    
3013     if test $ac_prog_rejected = yes; then
3014     # We found a bogon in the path, so make sure we never use it.
3015     set dummy $ac_cv_prog_CC
3016     shift
3017     if test $# != 0; then
3018     # We chose a different compiler from the bogus one.
3019     # However, it has the same basename, so the bogon will be chosen
3020     # first if we set CC to just the basename; use the full file name.
3021     shift
3022     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3023     fi
3024     fi
3025     fi
3026     fi
3027     CC=$ac_cv_prog_CC
3028     if test -n "$CC"; then
3029 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030     $as_echo "$CC" >&6; }
3031 michael 5052 else
3032 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033     $as_echo "no" >&6; }
3034 michael 5052 fi
3035    
3036    
3037     fi
3038     if test -z "$CC"; then
3039     if test -n "$ac_tool_prefix"; then
3040     for ac_prog in cl.exe
3041     do
3042     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3043     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3044 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045     $as_echo_n "checking for $ac_word... " >&6; }
3046     if ${ac_cv_prog_CC+:} false; then :
3047     $as_echo_n "(cached) " >&6
3048 michael 5052 else
3049     if test -n "$CC"; then
3050     ac_cv_prog_CC="$CC" # Let the user override the test.
3051     else
3052     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053     for as_dir in $PATH
3054     do
3055     IFS=$as_save_IFS
3056     test -z "$as_dir" && as_dir=.
3057 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3058     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3060 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 michael 5052 break 2
3062     fi
3063     done
3064 michael 5059 done
3065 michael 5052 IFS=$as_save_IFS
3066    
3067     fi
3068     fi
3069     CC=$ac_cv_prog_CC
3070     if test -n "$CC"; then
3071 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072     $as_echo "$CC" >&6; }
3073 michael 5052 else
3074 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075     $as_echo "no" >&6; }
3076 michael 5052 fi
3077    
3078    
3079     test -n "$CC" && break
3080     done
3081     fi
3082     if test -z "$CC"; then
3083     ac_ct_CC=$CC
3084     for ac_prog in cl.exe
3085     do
3086     # Extract the first word of "$ac_prog", so it can be a program name with args.
3087     set dummy $ac_prog; ac_word=$2
3088 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089     $as_echo_n "checking for $ac_word... " >&6; }
3090     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3091     $as_echo_n "(cached) " >&6
3092 michael 5052 else
3093     if test -n "$ac_ct_CC"; then
3094     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3095     else
3096     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097     for as_dir in $PATH
3098     do
3099     IFS=$as_save_IFS
3100     test -z "$as_dir" && as_dir=.
3101 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3102     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3104 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 michael 5052 break 2
3106     fi
3107     done
3108 michael 5059 done
3109 michael 5052 IFS=$as_save_IFS
3110    
3111     fi
3112     fi
3113     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3114     if test -n "$ac_ct_CC"; then
3115 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116     $as_echo "$ac_ct_CC" >&6; }
3117 michael 5052 else
3118 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119     $as_echo "no" >&6; }
3120 michael 5052 fi
3121    
3122    
3123     test -n "$ac_ct_CC" && break
3124     done
3125    
3126     if test "x$ac_ct_CC" = x; then
3127     CC=""
3128     else
3129     case $cross_compiling:$ac_tool_warned in
3130     yes:)
3131 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3132     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3133 michael 5052 ac_tool_warned=yes ;;
3134     esac
3135     CC=$ac_ct_CC
3136     fi
3137     fi
3138    
3139     fi
3140    
3141    
3142 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144     as_fn_error $? "no acceptable C compiler found in \$PATH
3145     See \`config.log' for more details" "$LINENO" 5; }
3146 michael 5052
3147     # Provide some information about the compiler.
3148 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3149     set X $ac_compile
3150     ac_compiler=$2
3151     for ac_option in --version -v -V -qversion; do
3152     { { ac_try="$ac_compiler $ac_option >&5"
3153 michael 5052 case "(($ac_try" in
3154     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155     *) ac_try_echo=$ac_try;;
3156     esac
3157 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158     $as_echo "$ac_try_echo"; } >&5
3159     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3160 michael 5052 ac_status=$?
3161 michael 5059 if test -s conftest.err; then
3162     sed '10a\
3163     ... rest of stderr output deleted ...
3164     10q' conftest.err >conftest.er1
3165     cat conftest.er1 >&5
3166     fi
3167     rm -f conftest.er1 conftest.err
3168     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169     test $ac_status = 0; }
3170     done
3171 michael 5052
3172 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 michael 5052 /* end confdefs.h. */
3174    
3175     int
3176     main ()
3177     {
3178    
3179     ;
3180     return 0;
3181     }
3182     _ACEOF
3183     ac_clean_files_save=$ac_clean_files
3184 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3185 michael 5052 # Try to create an executable without -o first, disregard a.out.
3186     # It will help us diagnose broken compilers, and finding out an intuition
3187     # of exeext.
3188 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3189     $as_echo_n "checking whether the C compiler works... " >&6; }
3190     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3191    
3192     # The possible output files:
3193     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3194    
3195 michael 5052 ac_rmfiles=
3196     for ac_file in $ac_files
3197     do
3198     case $ac_file in
3199 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3200 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201     esac
3202     done
3203     rm -f $ac_rmfiles
3204    
3205 michael 5059 if { { ac_try="$ac_link_default"
3206 michael 5052 case "(($ac_try" in
3207     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208     *) ac_try_echo=$ac_try;;
3209     esac
3210 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211     $as_echo "$ac_try_echo"; } >&5
3212 michael 5052 (eval "$ac_link_default") 2>&5
3213     ac_status=$?
3214 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215     test $ac_status = 0; }; then :
3216 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3217     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3218     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3219     # so that the user can short-circuit this test for compilers unknown to
3220     # Autoconf.
3221 michael 5059 for ac_file in $ac_files ''
3222 michael 5052 do
3223     test -f "$ac_file" || continue
3224     case $ac_file in
3225 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3226 michael 5052 ;;
3227     [ab].out )
3228     # We found the default executable, but exeext='' is most
3229     # certainly right.
3230     break;;
3231     *.* )
3232 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3233 michael 5052 then :; else
3234     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3235     fi
3236     # We set ac_cv_exeext here because the later test for it is not
3237     # safe: cross compilers may not add the suffix if given an `-o'
3238     # argument, so we may need to know it at that point already.
3239     # Even if this section looks crufty: it has the advantage of
3240     # actually working.
3241     break;;
3242     * )
3243     break;;
3244     esac
3245     done
3246     test "$ac_cv_exeext" = no && ac_cv_exeext=
3247    
3248     else
3249 michael 5059 ac_file=''
3250     fi
3251     if test -z "$ac_file"; then :
3252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253     $as_echo "no" >&6; }
3254     $as_echo "$as_me: failed program was:" >&5
3255 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3256    
3257 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3258     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3259     as_fn_error 77 "C compiler cannot create executables
3260     See \`config.log' for more details" "$LINENO" 5; }
3261     else
3262     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3263     $as_echo "yes" >&6; }
3264 michael 5052 fi
3265 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3266     $as_echo_n "checking for C compiler default output file name... " >&6; }
3267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3268     $as_echo "$ac_file" >&6; }
3269 michael 5052 ac_exeext=$ac_cv_exeext
3270    
3271 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3272 michael 5052 ac_clean_files=$ac_clean_files_save
3273 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3274     $as_echo_n "checking for suffix of executables... " >&6; }
3275     if { { ac_try="$ac_link"
3276 michael 5052 case "(($ac_try" in
3277     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278     *) ac_try_echo=$ac_try;;
3279     esac
3280 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281     $as_echo "$ac_try_echo"; } >&5
3282 michael 5052 (eval "$ac_link") 2>&5
3283     ac_status=$?
3284 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285     test $ac_status = 0; }; then :
3286 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3287     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3288     # work properly (i.e., refer to `conftest.exe'), while it won't with
3289     # `rm'.
3290     for ac_file in conftest.exe conftest conftest.*; do
3291     test -f "$ac_file" || continue
3292     case $ac_file in
3293 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3294 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295     break;;
3296     * ) break;;
3297     esac
3298     done
3299     else
3300 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3303     See \`config.log' for more details" "$LINENO" 5; }
3304 michael 5052 fi
3305 michael 5059 rm -f conftest conftest$ac_cv_exeext
3306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3307     $as_echo "$ac_cv_exeext" >&6; }
3308 michael 5052
3309     rm -f conftest.$ac_ext
3310     EXEEXT=$ac_cv_exeext
3311     ac_exeext=$EXEEXT
3312 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313     /* end confdefs.h. */
3314     #include <stdio.h>
3315     int
3316     main ()
3317     {
3318     FILE *f = fopen ("conftest.out", "w");
3319     return ferror (f) || fclose (f) != 0;
3320    
3321     ;
3322     return 0;
3323     }
3324     _ACEOF
3325     ac_clean_files="$ac_clean_files conftest.out"
3326     # Check that the compiler produces executables we can run. If not, either
3327     # the compiler is broken, or we cross compile.
3328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3329     $as_echo_n "checking whether we are cross compiling... " >&6; }
3330     if test "$cross_compiling" != yes; then
3331     { { ac_try="$ac_link"
3332     case "(($ac_try" in
3333     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334     *) ac_try_echo=$ac_try;;
3335     esac
3336     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337     $as_echo "$ac_try_echo"; } >&5
3338     (eval "$ac_link") 2>&5
3339     ac_status=$?
3340     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341     test $ac_status = 0; }
3342     if { ac_try='./conftest$ac_cv_exeext'
3343     { { case "(($ac_try" in
3344     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345     *) ac_try_echo=$ac_try;;
3346     esac
3347     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348     $as_echo "$ac_try_echo"; } >&5
3349     (eval "$ac_try") 2>&5
3350     ac_status=$?
3351     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352     test $ac_status = 0; }; }; then
3353     cross_compiling=no
3354     else
3355     if test "$cross_compiling" = maybe; then
3356     cross_compiling=yes
3357     else
3358     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360     as_fn_error $? "cannot run C compiled programs.
3361     If you meant to cross compile, use \`--host'.
3362     See \`config.log' for more details" "$LINENO" 5; }
3363     fi
3364     fi
3365     fi
3366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3367     $as_echo "$cross_compiling" >&6; }
3368    
3369     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3370     ac_clean_files=$ac_clean_files_save
3371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372     $as_echo_n "checking for suffix of object files... " >&6; }
3373     if ${ac_cv_objext+:} false; then :
3374     $as_echo_n "(cached) " >&6
3375 michael 5052 else
3376 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 michael 5052 /* end confdefs.h. */
3378    
3379     int
3380     main ()
3381     {
3382    
3383     ;
3384     return 0;
3385     }
3386     _ACEOF
3387     rm -f conftest.o conftest.obj
3388 michael 5059 if { { ac_try="$ac_compile"
3389 michael 5052 case "(($ac_try" in
3390     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391     *) ac_try_echo=$ac_try;;
3392     esac
3393 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394     $as_echo "$ac_try_echo"; } >&5
3395 michael 5052 (eval "$ac_compile") 2>&5
3396     ac_status=$?
3397 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398     test $ac_status = 0; }; then :
3399 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3400     test -f "$ac_file" || continue;
3401     case $ac_file in
3402 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404     break;;
3405     esac
3406     done
3407     else
3408 michael 5059 $as_echo "$as_me: failed program was:" >&5
3409 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3410    
3411 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413     as_fn_error $? "cannot compute suffix of object files: cannot compile
3414     See \`config.log' for more details" "$LINENO" 5; }
3415 michael 5052 fi
3416     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417     fi
3418 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419     $as_echo "$ac_cv_objext" >&6; }
3420 michael 5052 OBJEXT=$ac_cv_objext
3421     ac_objext=$OBJEXT
3422 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3423     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3424     if ${ac_cv_c_compiler_gnu+:} false; then :
3425     $as_echo_n "(cached) " >&6
3426 michael 5052 else
3427 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 michael 5052 /* end confdefs.h. */
3429    
3430     int
3431     main ()
3432     {
3433     #ifndef __GNUC__
3434     choke me
3435     #endif
3436    
3437     ;
3438     return 0;
3439     }
3440     _ACEOF
3441 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3442 michael 5052 ac_compiler_gnu=yes
3443     else
3444 michael 5059 ac_compiler_gnu=no
3445 michael 5052 fi
3446     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3448    
3449     fi
3450 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3451     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3452     if test $ac_compiler_gnu = yes; then
3453     GCC=yes
3454     else
3455     GCC=
3456     fi
3457 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3458     ac_save_CFLAGS=$CFLAGS
3459 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3461     if ${ac_cv_prog_cc_g+:} false; then :
3462     $as_echo_n "(cached) " >&6
3463 michael 5052 else
3464     ac_save_c_werror_flag=$ac_c_werror_flag
3465     ac_c_werror_flag=yes
3466     ac_cv_prog_cc_g=no
3467     CFLAGS="-g"
3468 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 michael 5052 /* end confdefs.h. */
3470    
3471     int
3472     main ()
3473     {
3474    
3475     ;
3476     return 0;
3477     }
3478     _ACEOF
3479 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3480 michael 5052 ac_cv_prog_cc_g=yes
3481     else
3482 michael 5059 CFLAGS=""
3483     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 michael 5052 /* end confdefs.h. */
3485    
3486     int
3487     main ()
3488     {
3489    
3490     ;
3491     return 0;
3492     }
3493     _ACEOF
3494 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3495    
3496 michael 5052 else
3497 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3498 michael 5052 CFLAGS="-g"
3499 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 michael 5052 /* end confdefs.h. */
3501    
3502     int
3503     main ()
3504     {
3505    
3506     ;
3507     return 0;
3508     }
3509     _ACEOF
3510 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3511 michael 5052 ac_cv_prog_cc_g=yes
3512     fi
3513     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514     fi
3515     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516     fi
3517     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518     ac_c_werror_flag=$ac_save_c_werror_flag
3519     fi
3520 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3521     $as_echo "$ac_cv_prog_cc_g" >&6; }
3522 michael 5052 if test "$ac_test_CFLAGS" = set; then
3523     CFLAGS=$ac_save_CFLAGS
3524     elif test $ac_cv_prog_cc_g = yes; then
3525     if test "$GCC" = yes; then
3526     CFLAGS="-g -O2"
3527     else
3528     CFLAGS="-g"
3529     fi
3530     else
3531     if test "$GCC" = yes; then
3532     CFLAGS="-O2"
3533     else
3534     CFLAGS=
3535     fi
3536     fi
3537 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3538     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3539     if ${ac_cv_prog_cc_c89+:} false; then :
3540     $as_echo_n "(cached) " >&6
3541 michael 5052 else
3542     ac_cv_prog_cc_c89=no
3543     ac_save_CC=$CC
3544 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 michael 5052 /* end confdefs.h. */
3546     #include <stdarg.h>
3547     #include <stdio.h>
3548 michael 5059 struct stat;
3549 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550     struct buf { int x; };
3551     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552     static char *e (p, i)
3553     char **p;
3554     int i;
3555     {
3556     return p[i];
3557     }
3558     static char *f (char * (*g) (char **, int), char **p, ...)
3559     {
3560     char *s;
3561     va_list v;
3562     va_start (v,p);
3563     s = g (p, va_arg (v,int));
3564     va_end (v);
3565     return s;
3566     }
3567    
3568     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569     function prototypes and stuff, but not '\xHH' hex character constants.
3570     These don't provoke an error unfortunately, instead are silently treated
3571     as 'x'. The following induces an error, until -std is added to get
3572     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573     array size at least. It's necessary to write '\x00'==0 to get something
3574     that's true only with -std. */
3575     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576    
3577     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578     inside strings and character constants. */
3579     #define FOO(x) 'x'
3580     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581    
3582     int test (int i, double x);
3583     struct s1 {int (*f) (int a);};
3584     struct s2 {int (*f) (double a);};
3585     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586     int argc;
3587     char **argv;
3588     int
3589     main ()
3590     {
3591     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3592     ;
3593     return 0;
3594     }
3595     _ACEOF
3596     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598     do
3599     CC="$ac_save_CC $ac_arg"
3600 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3601 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3602     fi
3603     rm -f core conftest.err conftest.$ac_objext
3604     test "x$ac_cv_prog_cc_c89" != "xno" && break
3605     done
3606     rm -f conftest.$ac_ext
3607     CC=$ac_save_CC
3608    
3609     fi
3610     # AC_CACHE_VAL
3611     case "x$ac_cv_prog_cc_c89" in
3612     x)
3613 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614     $as_echo "none needed" >&6; } ;;
3615 michael 5052 xno)
3616 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617     $as_echo "unsupported" >&6; } ;;
3618 michael 5052 *)
3619     CC="$CC $ac_cv_prog_cc_c89"
3620 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 michael 5052 esac
3623 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3624 michael 5052
3625 michael 5059 fi
3626 michael 5052
3627     ac_ext=c
3628     ac_cpp='$CPP $CPPFLAGS'
3629     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632    
3633 michael 5059 ac_ext=c
3634     ac_cpp='$CPP $CPPFLAGS'
3635     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3639     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3640     if ${am_cv_prog_cc_c_o+:} false; then :
3641     $as_echo_n "(cached) " >&6
3642     else
3643     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644     /* end confdefs.h. */
3645 michael 5052
3646 michael 5059 int
3647     main ()
3648     {
3649 michael 5052
3650 michael 5059 ;
3651     return 0;
3652     }
3653     _ACEOF
3654     # Make sure it works both with $CC and with simple cc.
3655     # Following AC_PROG_CC_C_O, we do the test twice because some
3656     # compilers refuse to overwrite an existing .o file with -o,
3657     # though they will create one.
3658     am_cv_prog_cc_c_o=yes
3659     for am_i in 1 2; do
3660     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3661     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3662     ac_status=$?
3663     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664     (exit $ac_status); } \
3665     && test -f conftest2.$ac_objext; then
3666     : OK
3667     else
3668     am_cv_prog_cc_c_o=no
3669     break
3670     fi
3671     done
3672     rm -f core conftest*
3673     unset am_i
3674 michael 5052 fi
3675 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3676     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3677     if test "$am_cv_prog_cc_c_o" != yes; then
3678     # Losing compiler, so override with the script.
3679     # FIXME: It is wrong to rewrite CC.
3680     # But if we don't then we get into trouble of one sort or another.
3681     # A longer-term fix would be to have automake use am__CC in this case,
3682     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3683     CC="$am_aux_dir/compile $CC"
3684 michael 5052 fi
3685 michael 5059 ac_ext=c
3686     ac_cpp='$CPP $CPPFLAGS'
3687     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 michael 5052
3691    
3692     depcc="$CC" am_compiler_list=
3693    
3694 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3695     $as_echo_n "checking dependency style of $depcc... " >&6; }
3696     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3697     $as_echo_n "(cached) " >&6
3698 michael 5052 else
3699     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3700     # We make a subdir and do the tests there. Otherwise we can end up
3701     # making bogus files that we don't know about and never remove. For
3702     # instance it was reported that on HP-UX the gcc test will end up
3703 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3704     # in D".
3705     rm -rf conftest.dir
3706 michael 5052 mkdir conftest.dir
3707     # Copy depcomp to subdir because otherwise we won't find it if we're
3708     # using a relative directory.
3709     cp "$am_depcomp" conftest.dir
3710     cd conftest.dir
3711     # We will build objects and dependencies in a subdirectory because
3712     # it helps to detect inapplicable dependency modes. For instance
3713     # both Tru64's cc and ICC support -MD to output dependencies as a
3714     # side effect of compilation, but ICC will put the dependencies in
3715     # the current directory while Tru64 will put them in the object
3716     # directory.
3717     mkdir sub
3718    
3719     am_cv_CC_dependencies_compiler_type=none
3720     if test "$am_compiler_list" = ""; then
3721     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3722     fi
3723 michael 5059 am__universal=false
3724     case " $depcc " in #(
3725     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3726     esac
3727    
3728 michael 5052 for depmode in $am_compiler_list; do
3729     # Setup a source with many dependencies, because some compilers
3730     # like to wrap large dependency lists on column 80 (with \), and
3731     # we should not choose a depcomp mode which is confused by this.
3732     #
3733     # We need to recreate these files for each test, as the compiler may
3734     # overwrite some of them when testing with obscure command lines.
3735     # This happens at least with the AIX C compiler.
3736     : > sub/conftest.c
3737     for i in 1 2 3 4 5 6; do
3738     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3739 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3740     # Solaris 10 /bin/sh.
3741     echo '/* dummy */' > sub/conftst$i.h
3742 michael 5052 done
3743     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3744    
3745 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3746     # mode. It turns out that the SunPro C++ compiler does not properly
3747     # handle '-M -o', and we need to detect this. Also, some Intel
3748     # versions had trouble with output in subdirs.
3749     am__obj=sub/conftest.${OBJEXT-o}
3750     am__minus_obj="-o $am__obj"
3751 michael 5052 case $depmode in
3752 michael 5059 gcc)
3753     # This depmode causes a compiler race in universal mode.
3754     test "$am__universal" = false || continue
3755     ;;
3756 michael 5052 nosideeffect)
3757 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3758     # only be used when explicitly requested.
3759 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3760     continue
3761     else
3762     break
3763     fi
3764     ;;
3765 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3766     # This compiler won't grok '-c -o', but also, the minuso test has
3767     # not run yet. These depmodes are late enough in the game, and
3768     # so weak that their functioning should not be impacted.
3769     am__obj=conftest.${OBJEXT-o}
3770     am__minus_obj=
3771     ;;
3772 michael 5052 none) break ;;
3773     esac
3774     if depmode=$depmode \
3775 michael 5059 source=sub/conftest.c object=$am__obj \
3776 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3777 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3778 michael 5052 >/dev/null 2>conftest.err &&
3779 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3780 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3781 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3782 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3783     # icc doesn't choke on unknown options, it will just issue warnings
3784     # or remarks (even with -Werror). So we grep stderr for any message
3785     # that says an option was ignored or not supported.
3786     # When given -MP, icc 7.0 and 7.1 complain thusly:
3787     # icc: Command line warning: ignoring option '-M'; no argument required
3788     # The diagnosis changed in icc 8.0:
3789     # icc: Command line remark: option '-MP' not supported
3790     if (grep 'ignoring option' conftest.err ||
3791     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3792     am_cv_CC_dependencies_compiler_type=$depmode
3793     break
3794     fi
3795     fi
3796     done
3797    
3798     cd ..
3799     rm -rf conftest.dir
3800     else
3801     am_cv_CC_dependencies_compiler_type=none
3802     fi
3803    
3804     fi
3805 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3806     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3807 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3808    
3809 michael 5059 if
3810 michael 5052 test "x$enable_dependency_tracking" != xno \
3811     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3812     am__fastdepCC_TRUE=
3813     am__fastdepCC_FALSE='#'
3814     else
3815     am__fastdepCC_TRUE='#'
3816     am__fastdepCC_FALSE=
3817     fi
3818    
3819    
3820 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3821     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3822     if ${ac_cv_prog_cc_c99+:} false; then :
3823     $as_echo_n "(cached) " >&6
3824 michael 5052 else
3825 michael 5059 ac_cv_prog_cc_c99=no
3826     ac_save_CC=$CC
3827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828     /* end confdefs.h. */
3829     #include <stdarg.h>
3830     #include <stdbool.h>
3831     #include <stdlib.h>
3832     #include <wchar.h>
3833     #include <stdio.h>
3834    
3835     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3836     #define debug(...) fprintf (stderr, __VA_ARGS__)
3837     #define showlist(...) puts (#__VA_ARGS__)
3838     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3839     static void
3840     test_varargs_macros (void)
3841     {
3842     int x = 1234;
3843     int y = 5678;
3844     debug ("Flag");
3845     debug ("X = %d\n", x);
3846     showlist (The first, second, and third items.);
3847     report (x>y, "x is %d but y is %d", x, y);
3848     }
3849    
3850     // Check long long types.
3851     #define BIG64 18446744073709551615ull
3852     #define BIG32 4294967295ul
3853     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3854     #if !BIG_OK
3855     your preprocessor is broken;
3856     #endif
3857     #if BIG_OK
3858     #else
3859     your preprocessor is broken;
3860     #endif
3861     static long long int bignum = -9223372036854775807LL;
3862     static unsigned long long int ubignum = BIG64;
3863    
3864     struct incomplete_array
3865     {
3866     int datasize;
3867     double data[];
3868     };
3869    
3870     struct named_init {
3871     int number;
3872     const wchar_t *name;
3873     double average;
3874     };
3875    
3876     typedef const char *ccp;
3877    
3878     static inline int
3879     test_restrict (ccp restrict text)
3880     {
3881     // See if C++-style comments work.
3882     // Iterate through items via the restricted pointer.
3883     // Also check for declarations in for loops.
3884     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3885     continue;
3886     return 0;
3887     }
3888    
3889     // Check varargs and va_copy.
3890     static void
3891     test_varargs (const char *format, ...)
3892     {
3893     va_list args;
3894     va_start (args, format);
3895     va_list args_copy;
3896     va_copy (args_copy, args);
3897    
3898     const char *str;
3899     int number;
3900     float fnumber;
3901    
3902     while (*format)
3903     {
3904     switch (*format++)
3905     {
3906     case 's': // string
3907     str = va_arg (args_copy, const char *);
3908     break;
3909     case 'd': // int
3910     number = va_arg (args_copy, int);
3911     break;
3912     case 'f': // float
3913     fnumber = va_arg (args_copy, double);
3914     break;
3915     default:
3916     break;
3917     }
3918     }
3919     va_end (args_copy);
3920     va_end (args);
3921     }
3922    
3923     int
3924     main ()
3925     {
3926    
3927     // Check bool.
3928     _Bool success = false;
3929    
3930     // Check restrict.
3931     if (test_restrict ("String literal") == 0)
3932     success = true;
3933     char *restrict newvar = "Another string";
3934    
3935     // Check varargs.
3936     test_varargs ("s, d' f .", "string", 65, 34.234);
3937     test_varargs_macros ();
3938    
3939     // Check flexible array members.
3940     struct incomplete_array *ia =
3941     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3942     ia->datasize = 10;
3943     for (int i = 0; i < ia->datasize; ++i)
3944     ia->data[i] = i * 1.234;
3945    
3946     // Check named initializers.
3947     struct named_init ni = {
3948     .number = 34,
3949     .name = L"Test wide string",
3950     .average = 543.34343,
3951     };
3952    
3953     ni.number = 58;
3954    
3955     int dynamic_array[ni.number];
3956     dynamic_array[ni.number - 1] = 543;
3957    
3958     // work around unused variable warnings
3959     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3960     || dynamic_array[ni.number - 1] != 543);
3961    
3962     ;
3963     return 0;
3964     }
3965     _ACEOF
3966     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3967     do
3968     CC="$ac_save_CC $ac_arg"
3969     if ac_fn_c_try_compile "$LINENO"; then :
3970     ac_cv_prog_cc_c99=$ac_arg
3971 michael 5052 fi
3972 michael 5059 rm -f core conftest.err conftest.$ac_objext
3973     test "x$ac_cv_prog_cc_c99" != "xno" && break
3974     done
3975     rm -f conftest.$ac_ext
3976     CC=$ac_save_CC
3977 michael 5052
3978 michael 5059 fi
3979     # AC_CACHE_VAL
3980     case "x$ac_cv_prog_cc_c99" in
3981     x)
3982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3983     $as_echo "none needed" >&6; } ;;
3984     xno)
3985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3986     $as_echo "unsupported" >&6; } ;;
3987     *)
3988     CC="$CC $ac_cv_prog_cc_c99"
3989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3990     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3991     esac
3992     if test "x$ac_cv_prog_cc_c99" != xno; then :
3993 michael 5052
3994     fi
3995    
3996    
3997 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
3998     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
3999 michael 5052 fi
4000 michael 5059 case `pwd` in
4001     *\ * | *\ *)
4002     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4003     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4004     esac
4005 michael 5052
4006    
4007 michael 5059
4008 michael 5715 macro_version='2.4.6'
4009     macro_revision='2.4.6'
4010 michael 5059
4011    
4012    
4013    
4014    
4015    
4016    
4017    
4018    
4019    
4020    
4021    
4022    
4023     ltmain=$ac_aux_dir/ltmain.sh
4024    
4025 michael 5052 # Make sure we can run config.sub.
4026     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4027 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4028 michael 5052
4029 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4030     $as_echo_n "checking build system type... " >&6; }
4031     if ${ac_cv_build+:} false; then :
4032     $as_echo_n "(cached) " >&6
4033 michael 5052 else
4034     ac_build_alias=$build_alias
4035     test "x$ac_build_alias" = x &&
4036     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4037     test "x$ac_build_alias" = x &&
4038 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4039 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4040 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4041 michael 5052
4042     fi
4043 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4044     $as_echo "$ac_cv_build" >&6; }
4045 michael 5052 case $ac_cv_build in
4046     *-*-*) ;;
4047 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4048 michael 5052 esac
4049     build=$ac_cv_build
4050     ac_save_IFS=$IFS; IFS='-'
4051     set x $ac_cv_build
4052     shift
4053     build_cpu=$1
4054     build_vendor=$2
4055     shift; shift
4056     # Remember, the first character of IFS is used to create $*,
4057     # except with old shells:
4058     build_os=$*
4059     IFS=$ac_save_IFS
4060     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4061    
4062    
4063 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4064     $as_echo_n "checking host system type... " >&6; }
4065     if ${ac_cv_host+:} false; then :
4066     $as_echo_n "(cached) " >&6
4067 michael 5052 else
4068     if test "x$host_alias" = x; then
4069     ac_cv_host=$ac_cv_build
4070     else
4071     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4072 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4073 michael 5052 fi
4074    
4075     fi
4076 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4077     $as_echo "$ac_cv_host" >&6; }
4078 michael 5052 case $ac_cv_host in
4079     *-*-*) ;;
4080 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4081 michael 5052 esac
4082     host=$ac_cv_host
4083     ac_save_IFS=$IFS; IFS='-'
4084     set x $ac_cv_host
4085     shift
4086     host_cpu=$1
4087     host_vendor=$2
4088     shift; shift
4089     # Remember, the first character of IFS is used to create $*,
4090     # except with old shells:
4091     host_os=$*
4092     IFS=$ac_save_IFS
4093     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4094    
4095    
4096 michael 5059 # Backslashify metacharacters that are still active within
4097     # double-quoted strings.
4098     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4099    
4100     # Same as above, but do not quote variable references.
4101     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4102    
4103     # Sed substitution to delay expansion of an escaped shell variable in a
4104     # double_quote_subst'ed string.
4105     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4106    
4107     # Sed substitution to delay expansion of an escaped single quote.
4108     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4109    
4110     # Sed substitution to avoid accidental globbing in evaled expressions
4111     no_glob_subst='s/\*/\\\*/g'
4112    
4113     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4114     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4115     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4116    
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4118     $as_echo_n "checking how to print strings... " >&6; }
4119     # Test print first, because it will be a builtin if present.
4120     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4121     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4122     ECHO='print -r --'
4123     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4124     ECHO='printf %s\n'
4125 michael 5052 else
4126 michael 5059 # Use this function as a fallback that always works.
4127     func_fallback_echo ()
4128     {
4129     eval 'cat <<_LTECHO_EOF
4130     $1
4131     _LTECHO_EOF'
4132     }
4133     ECHO='func_fallback_echo'
4134     fi
4135    
4136     # func_echo_all arg...
4137     # Invoke $ECHO with all args, space-separated.
4138     func_echo_all ()
4139     {
4140     $ECHO ""
4141     }
4142    
4143     case $ECHO in
4144     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4145     $as_echo "printf" >&6; } ;;
4146     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4147     $as_echo "print -r" >&6; } ;;
4148     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4149     $as_echo "cat" >&6; } ;;
4150     esac
4151    
4152    
4153    
4154    
4155    
4156    
4157    
4158    
4159    
4160    
4161    
4162    
4163    
4164    
4165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4166     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4167     if ${ac_cv_path_SED+:} false; then :
4168     $as_echo_n "(cached) " >&6
4169     else
4170     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4171     for ac_i in 1 2 3 4 5 6 7; do
4172     ac_script="$ac_script$as_nl$ac_script"
4173     done
4174     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4175     { ac_script=; unset ac_script;}
4176     if test -z "$SED"; then
4177     ac_path_SED_found=false
4178     # Loop through the user's path and test for each of PROGNAME-LIST
4179     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 michael 5052 for as_dir in $PATH
4181     do
4182     IFS=$as_save_IFS
4183     test -z "$as_dir" && as_dir=.
4184 michael 5059 for ac_prog in sed gsed; do
4185 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4186 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4187     as_fn_executable_p "$ac_path_SED" || continue
4188     # Check for GNU ac_path_SED and select it if it is found.
4189     # Check for GNU $ac_path_SED
4190     case `"$ac_path_SED" --version 2>&1` in
4191     *GNU*)
4192     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4193     *)
4194     ac_count=0
4195     $as_echo_n 0123456789 >"conftest.in"
4196     while :
4197     do
4198     cat "conftest.in" "conftest.in" >"conftest.tmp"
4199     mv "conftest.tmp" "conftest.in"
4200     cp "conftest.in" "conftest.nl"
4201     $as_echo '' >> "conftest.nl"
4202     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4203     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4204     as_fn_arith $ac_count + 1 && ac_count=$as_val
4205     if test $ac_count -gt ${ac_path_SED_max-0}; then
4206     # Best one so far, save it but keep looking for a better one
4207     ac_cv_path_SED="$ac_path_SED"
4208     ac_path_SED_max=$ac_count
4209     fi
4210     # 10*(2^10) chars as input seems more than enough
4211     test $ac_count -gt 10 && break
4212     done
4213     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214     esac
4215    
4216     $ac_path_SED_found && break 3
4217 michael 5052 done
4218     done
4219 michael 5059 done
4220     IFS=$as_save_IFS
4221     if test -z "$ac_cv_path_SED"; then
4222     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4223 michael 5052 fi
4224 michael 5059 else
4225     ac_cv_path_SED=$SED
4226     fi
4227 michael 5052
4228     fi
4229 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4230     $as_echo "$ac_cv_path_SED" >&6; }
4231     SED="$ac_cv_path_SED"
4232     rm -f conftest.sed
4233 michael 5052
4234 michael 5059 test -z "$SED" && SED=sed
4235     Xsed="$SED -e 1s/^X//"
4236 michael 5052
4237 michael 5059
4238    
4239    
4240    
4241    
4242    
4243    
4244    
4245    
4246    
4247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4248     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4249     if ${ac_cv_path_GREP+:} false; then :
4250     $as_echo_n "(cached) " >&6
4251 michael 5052 else
4252 michael 5059 if test -z "$GREP"; then
4253 michael 5052 ac_path_GREP_found=false
4254 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4255     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4257     do
4258     IFS=$as_save_IFS
4259     test -z "$as_dir" && as_dir=.
4260 michael 5059 for ac_prog in grep ggrep; do
4261     for ac_exec_ext in '' $ac_executable_extensions; do
4262     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4263     as_fn_executable_p "$ac_path_GREP" || continue
4264     # Check for GNU ac_path_GREP and select it if it is found.
4265 michael 5052 # Check for GNU $ac_path_GREP
4266     case `"$ac_path_GREP" --version 2>&1` in
4267     *GNU*)
4268     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4269     *)
4270     ac_count=0
4271 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4272 michael 5052 while :
4273     do
4274     cat "conftest.in" "conftest.in" >"conftest.tmp"
4275     mv "conftest.tmp" "conftest.in"
4276     cp "conftest.in" "conftest.nl"
4277 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4278 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4279     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4280 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4281 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4282     # Best one so far, save it but keep looking for a better one
4283     ac_cv_path_GREP="$ac_path_GREP"
4284     ac_path_GREP_max=$ac_count
4285     fi
4286     # 10*(2^10) chars as input seems more than enough
4287     test $ac_count -gt 10 && break
4288     done
4289     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4290     esac
4291    
4292 michael 5059 $ac_path_GREP_found && break 3
4293     done
4294 michael 5052 done
4295 michael 5059 done
4296 michael 5052 IFS=$as_save_IFS
4297 michael 5059 if test -z "$ac_cv_path_GREP"; then
4298     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4299     fi
4300 michael 5052 else
4301     ac_cv_path_GREP=$GREP
4302     fi
4303    
4304     fi
4305 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4306     $as_echo "$ac_cv_path_GREP" >&6; }
4307 michael 5052 GREP="$ac_cv_path_GREP"
4308    
4309    
4310 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4311     $as_echo_n "checking for egrep... " >&6; }
4312     if ${ac_cv_path_EGREP+:} false; then :
4313     $as_echo_n "(cached) " >&6
4314 michael 5052 else
4315     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4316     then ac_cv_path_EGREP="$GREP -E"
4317     else
4318 michael 5059 if test -z "$EGREP"; then
4319 michael 5052 ac_path_EGREP_found=false
4320 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4321     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323     do
4324     IFS=$as_save_IFS
4325     test -z "$as_dir" && as_dir=.
4326 michael 5059 for ac_prog in egrep; do
4327     for ac_exec_ext in '' $ac_executable_extensions; do
4328     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4329     as_fn_executable_p "$ac_path_EGREP" || continue
4330     # Check for GNU ac_path_EGREP and select it if it is found.
4331 michael 5052 # Check for GNU $ac_path_EGREP
4332     case `"$ac_path_EGREP" --version 2>&1` in
4333     *GNU*)
4334     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4335     *)
4336     ac_count=0
4337 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4338 michael 5052 while :
4339     do
4340     cat "conftest.in" "conftest.in" >"conftest.tmp"
4341     mv "conftest.tmp" "conftest.in"
4342     cp "conftest.in" "conftest.nl"
4343 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4344 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4348     # Best one so far, save it but keep looking for a better one
4349     ac_cv_path_EGREP="$ac_path_EGREP"
4350     ac_path_EGREP_max=$ac_count
4351     fi
4352     # 10*(2^10) chars as input seems more than enough
4353     test $ac_count -gt 10 && break
4354     done
4355     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356     esac
4357    
4358 michael 5059 $ac_path_EGREP_found && break 3
4359     done
4360 michael 5052 done
4361 michael 5059 done
4362 michael 5052 IFS=$as_save_IFS
4363 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4364     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365     fi
4366     else
4367     ac_cv_path_EGREP=$EGREP
4368 michael 5052 fi
4369    
4370 michael 5059 fi
4371 michael 5052 fi
4372 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4373     $as_echo "$ac_cv_path_EGREP" >&6; }
4374     EGREP="$ac_cv_path_EGREP"
4375 michael 5052
4376 michael 5059
4377     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4378     $as_echo_n "checking for fgrep... " >&6; }
4379     if ${ac_cv_path_FGREP+:} false; then :
4380     $as_echo_n "(cached) " >&6
4381 michael 5052 else
4382 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4383     then ac_cv_path_FGREP="$GREP -F"
4384     else
4385     if test -z "$FGREP"; then
4386     ac_path_FGREP_found=false
4387     # Loop through the user's path and test for each of PROGNAME-LIST
4388     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4390     do
4391     IFS=$as_save_IFS
4392     test -z "$as_dir" && as_dir=.
4393     for ac_prog in fgrep; do
4394     for ac_exec_ext in '' $ac_executable_extensions; do
4395     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4396     as_fn_executable_p "$ac_path_FGREP" || continue
4397     # Check for GNU ac_path_FGREP and select it if it is found.
4398     # Check for GNU $ac_path_FGREP
4399     case `"$ac_path_FGREP" --version 2>&1` in
4400     *GNU*)
4401     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4402     *)
4403     ac_count=0
4404     $as_echo_n 0123456789 >"conftest.in"
4405     while :
4406     do
4407     cat "conftest.in" "conftest.in" >"conftest.tmp"
4408     mv "conftest.tmp" "conftest.in"
4409     cp "conftest.in" "conftest.nl"
4410     $as_echo 'FGREP' >> "conftest.nl"
4411     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4413     as_fn_arith $ac_count + 1 && ac_count=$as_val
4414     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4415     # Best one so far, save it but keep looking for a better one
4416     ac_cv_path_FGREP="$ac_path_FGREP"
4417     ac_path_FGREP_max=$ac_count
4418     fi
4419     # 10*(2^10) chars as input seems more than enough
4420     test $ac_count -gt 10 && break
4421     done
4422     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4423     esac
4424    
4425     $ac_path_FGREP_found && break 3
4426     done
4427     done
4428     done
4429     IFS=$as_save_IFS
4430     if test -z "$ac_cv_path_FGREP"; then
4431     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4432     fi
4433     else
4434     ac_cv_path_FGREP=$FGREP
4435 michael 5052 fi
4436    
4437     fi
4438     fi
4439 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4440     $as_echo "$ac_cv_path_FGREP" >&6; }
4441     FGREP="$ac_cv_path_FGREP"
4442 michael 5052
4443    
4444 michael 5059 test -z "$GREP" && GREP=grep
4445 michael 5052
4446 michael 5059
4447    
4448    
4449    
4450    
4451    
4452    
4453    
4454    
4455    
4456    
4457    
4458    
4459    
4460    
4461    
4462    
4463    
4464 michael 5052 # Check whether --with-gnu-ld was given.
4465 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4466     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4467 michael 5052 else
4468     with_gnu_ld=no
4469     fi
4470    
4471     ac_prog=ld
4472 michael 5059 if test yes = "$GCC"; then
4473 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4474 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4475     $as_echo_n "checking for ld used by $CC... " >&6; }
4476 michael 5052 case $host in
4477     *-*-mingw*)
4478 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4479 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4480     *)
4481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482     esac
4483     case $ac_prog in
4484     # Accept absolute paths.
4485     [\\/]* | ?:[\\/]*)
4486     re_direlt='/[^/][^/]*/\.\./'
4487     # Canonicalize the pathname of ld
4488 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4489     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4490     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4491 michael 5052 done
4492 michael 5059 test -z "$LD" && LD=$ac_prog
4493 michael 5052 ;;
4494     "")
4495     # If it fails, then pretend we aren't using GCC.
4496     ac_prog=ld
4497     ;;
4498     *)
4499     # If it is relative, then search for the first ld in PATH.
4500     with_gnu_ld=unknown
4501     ;;
4502     esac
4503 michael 5059 elif test yes = "$with_gnu_ld"; then
4504     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4505     $as_echo_n "checking for GNU ld... " >&6; }
4506 michael 5052 else
4507 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4508     $as_echo_n "checking for non-GNU ld... " >&6; }
4509 michael 5052 fi
4510 michael 5059 if ${lt_cv_path_LD+:} false; then :
4511     $as_echo_n "(cached) " >&6
4512 michael 5052 else
4513     if test -z "$LD"; then
4514 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4515 michael 5052 for ac_dir in $PATH; do
4516 michael 5059 IFS=$lt_save_ifs
4517 michael 5052 test -z "$ac_dir" && ac_dir=.
4518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4519 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4520 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4521     # but apparently some variants of GNU ld only accept -v.
4522     # Break only if it was the GNU/non-GNU ld that we prefer.
4523     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4524     *GNU* | *'with BFD'*)
4525 michael 5059 test no != "$with_gnu_ld" && break
4526 michael 5052 ;;
4527     *)
4528 michael 5059 test yes != "$with_gnu_ld" && break
4529 michael 5052 ;;
4530     esac
4531     fi
4532     done
4533 michael 5059 IFS=$lt_save_ifs
4534 michael 5052 else
4535 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4536 michael 5052 fi
4537     fi
4538    
4539 michael 5059 LD=$lt_cv_path_LD
4540 michael 5052 if test -n "$LD"; then
4541 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4542     $as_echo "$LD" >&6; }
4543 michael 5052 else
4544 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545     $as_echo "no" >&6; }
4546 michael 5052 fi
4547 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4549     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4550     if ${lt_cv_prog_gnu_ld+:} false; then :
4551     $as_echo_n "(cached) " >&6
4552 michael 5052 else
4553     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4554     case `$LD -v 2>&1 </dev/null` in
4555     *GNU* | *'with BFD'*)
4556     lt_cv_prog_gnu_ld=yes
4557     ;;
4558     *)
4559     lt_cv_prog_gnu_ld=no
4560     ;;
4561     esac
4562     fi
4563 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4564     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4565 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4566    
4567    
4568    
4569 michael 5059
4570    
4571    
4572    
4573    
4574    
4575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4576     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4577     if ${lt_cv_path_NM+:} false; then :
4578     $as_echo_n "(cached) " >&6
4579 michael 5052 else
4580     if test -n "$NM"; then
4581     # Let the user override the test.
4582 michael 5059 lt_cv_path_NM=$NM
4583 michael 5052 else
4584 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4585 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4586     lt_nm_to_check="$lt_nm_to_check nm"
4587     fi
4588     for lt_tmp_nm in $lt_nm_to_check; do
4589 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4590 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4591 michael 5059 IFS=$lt_save_ifs
4592 michael 5052 test -z "$ac_dir" && ac_dir=.
4593 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4594     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4595 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4596 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4597 michael 5052 # nm: unknown option "B" ignored
4598     # Tru64's nm complains that /dev/null is an invalid object file
4599 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4600     case $build_os in
4601     mingw*) lt_bad_file=conftest.nm/nofile ;;
4602     *) lt_bad_file=/dev/null ;;
4603     esac
4604     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4605     *$lt_bad_file* | *'Invalid file or object type'*)
4606 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4607 michael 5059 break 2
4608 michael 5052 ;;
4609     *)
4610     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4611     */dev/null*)
4612     lt_cv_path_NM="$tmp_nm -p"
4613 michael 5059 break 2
4614 michael 5052 ;;
4615     *)
4616     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4617     continue # so that we can try to find one that supports BSD flags
4618     ;;
4619     esac
4620     ;;
4621     esac
4622     fi
4623     done
4624 michael 5059 IFS=$lt_save_ifs
4625 michael 5052 done
4626 michael 5059 : ${lt_cv_path_NM=no}
4627 michael 5052 fi
4628     fi
4629 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4630     $as_echo "$lt_cv_path_NM" >&6; }
4631     if test no != "$lt_cv_path_NM"; then
4632     NM=$lt_cv_path_NM
4633     else
4634     # Didn't find any BSD compatible name lister, look for dumpbin.
4635     if test -n "$DUMPBIN"; then :
4636     # Let the user override the test.
4637     else
4638     if test -n "$ac_tool_prefix"; then
4639     for ac_prog in dumpbin "link -dump"
4640     do
4641     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4642     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644     $as_echo_n "checking for $ac_word... " >&6; }
4645     if ${ac_cv_prog_DUMPBIN+:} false; then :
4646     $as_echo_n "(cached) " >&6
4647     else
4648     if test -n "$DUMPBIN"; then
4649     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4650     else
4651     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652     for as_dir in $PATH
4653     do
4654     IFS=$as_save_IFS
4655     test -z "$as_dir" && as_dir=.
4656     for ac_exec_ext in '' $ac_executable_extensions; do
4657     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661     fi
4662     done
4663     done
4664     IFS=$as_save_IFS
4665 michael 5052
4666 michael 5059 fi
4667     fi
4668     DUMPBIN=$ac_cv_prog_DUMPBIN
4669     if test -n "$DUMPBIN"; then
4670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4671     $as_echo "$DUMPBIN" >&6; }
4672     else
4673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674     $as_echo "no" >&6; }
4675     fi
4676    
4677    
4678     test -n "$DUMPBIN" && break
4679     done
4680     fi
4681     if test -z "$DUMPBIN"; then
4682     ac_ct_DUMPBIN=$DUMPBIN
4683     for ac_prog in dumpbin "link -dump"
4684     do
4685     # Extract the first word of "$ac_prog", so it can be a program name with args.
4686     set dummy $ac_prog; ac_word=$2
4687     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688     $as_echo_n "checking for $ac_word... " >&6; }
4689     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4690     $as_echo_n "(cached) " >&6
4691     else
4692     if test -n "$ac_ct_DUMPBIN"; then
4693     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4694     else
4695     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696     for as_dir in $PATH
4697     do
4698     IFS=$as_save_IFS
4699     test -z "$as_dir" && as_dir=.
4700     for ac_exec_ext in '' $ac_executable_extensions; do
4701     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4702     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4704     break 2
4705     fi
4706     done
4707     done
4708     IFS=$as_save_IFS
4709    
4710     fi
4711     fi
4712     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4713     if test -n "$ac_ct_DUMPBIN"; then
4714     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4715     $as_echo "$ac_ct_DUMPBIN" >&6; }
4716     else
4717     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718     $as_echo "no" >&6; }
4719     fi
4720    
4721    
4722     test -n "$ac_ct_DUMPBIN" && break
4723     done
4724    
4725     if test "x$ac_ct_DUMPBIN" = x; then
4726     DUMPBIN=":"
4727     else
4728     case $cross_compiling:$ac_tool_warned in
4729     yes:)
4730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732     ac_tool_warned=yes ;;
4733     esac
4734     DUMPBIN=$ac_ct_DUMPBIN
4735     fi
4736     fi
4737    
4738     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4739     *COFF*)
4740     DUMPBIN="$DUMPBIN -symbols -headers"
4741     ;;
4742     *)
4743     DUMPBIN=:
4744     ;;
4745     esac
4746     fi
4747    
4748     if test : != "$DUMPBIN"; then
4749     NM=$DUMPBIN
4750     fi
4751     fi
4752     test -z "$NM" && NM=nm
4753    
4754    
4755    
4756    
4757    
4758    
4759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4760     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4761     if ${lt_cv_nm_interface+:} false; then :
4762     $as_echo_n "(cached) " >&6
4763     else
4764     lt_cv_nm_interface="BSD nm"
4765     echo "int some_variable = 0;" > conftest.$ac_ext
4766     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4767     (eval "$ac_compile" 2>conftest.err)
4768     cat conftest.err >&5
4769     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4770     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4771     cat conftest.err >&5
4772     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4773     cat conftest.out >&5
4774     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4775     lt_cv_nm_interface="MS dumpbin"
4776     fi
4777     rm -f conftest*
4778     fi
4779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4780     $as_echo "$lt_cv_nm_interface" >&6; }
4781    
4782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4783     $as_echo_n "checking whether ln -s works... " >&6; }
4784 michael 5052 LN_S=$as_ln_s
4785     if test "$LN_S" = "ln -s"; then
4786 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4787     $as_echo "yes" >&6; }
4788 michael 5052 else
4789 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4790     $as_echo "no, using $LN_S" >&6; }
4791 michael 5052 fi
4792    
4793 michael 5059 # find the maximum length of command line arguments
4794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4795     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4796     if ${lt_cv_sys_max_cmd_len+:} false; then :
4797     $as_echo_n "(cached) " >&6
4798 michael 5052 else
4799 michael 5059 i=0
4800     teststring=ABCD
4801    
4802     case $build_os in
4803     msdosdjgpp*)
4804     # On DJGPP, this test can blow up pretty badly due to problems in libc
4805     # (any single argument exceeding 2000 bytes causes a buffer overrun
4806     # during glob expansion). Even if it were fixed, the result of this
4807     # check would be larger than it should be.
4808     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4809     ;;
4810    
4811     gnu*)
4812     # Under GNU Hurd, this test is not required because there is
4813     # no limit to the length of command line arguments.
4814     # Libtool will interpret -1 as no limit whatsoever
4815     lt_cv_sys_max_cmd_len=-1;
4816     ;;
4817    
4818     cygwin* | mingw* | cegcc*)
4819     # On Win9x/ME, this test blows up -- it succeeds, but takes
4820     # about 5 minutes as the teststring grows exponentially.
4821     # Worse, since 9x/ME are not pre-emptively multitasking,
4822     # you end up with a "frozen" computer, even though with patience
4823     # the test eventually succeeds (with a max line length of 256k).
4824     # Instead, let's just punt: use the minimum linelength reported by
4825     # all of the supported platforms: 8192 (on NT/2K/XP).
4826     lt_cv_sys_max_cmd_len=8192;
4827     ;;
4828    
4829     mint*)
4830     # On MiNT this can take a long time and run out of memory.
4831     lt_cv_sys_max_cmd_len=8192;
4832     ;;
4833    
4834     amigaos*)
4835     # On AmigaOS with pdksh, this test takes hours, literally.
4836     # So we just punt and use a minimum line length of 8192.
4837     lt_cv_sys_max_cmd_len=8192;
4838     ;;
4839    
4840     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4841     # This has been around since 386BSD, at least. Likely further.
4842     if test -x /sbin/sysctl; then
4843     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4844     elif test -x /usr/sbin/sysctl; then
4845     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4846     else
4847     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4848     fi
4849     # And add a safety zone
4850     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4851     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4852     ;;
4853    
4854     interix*)
4855     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4856     lt_cv_sys_max_cmd_len=196608
4857     ;;
4858    
4859     os2*)
4860     # The test takes a long time on OS/2.
4861     lt_cv_sys_max_cmd_len=8192
4862     ;;
4863    
4864     osf*)
4865     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4866     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4867     # nice to cause kernel panics so lets avoid the loop below.
4868     # First set a reasonable default.
4869     lt_cv_sys_max_cmd_len=16384
4870     #
4871     if test -x /sbin/sysconfig; then
4872     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4873     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4874     esac
4875     fi
4876     ;;
4877     sco3.2v5*)
4878     lt_cv_sys_max_cmd_len=102400
4879     ;;
4880     sysv5* | sco5v6* | sysv4.2uw2*)
4881     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4882     if test -n "$kargmax"; then
4883     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4884     else
4885     lt_cv_sys_max_cmd_len=32768
4886     fi
4887     ;;
4888     *)
4889     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4890     if test -n "$lt_cv_sys_max_cmd_len" && \
4891     test undefined != "$lt_cv_sys_max_cmd_len"; then
4892     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4893     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4894     else
4895     # Make teststring a little bigger before we do anything with it.
4896     # a 1K string should be a reasonable start.
4897     for i in 1 2 3 4 5 6 7 8; do
4898     teststring=$teststring$teststring
4899     done
4900     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4901     # If test is not a shell built-in, we'll probably end up computing a
4902     # maximum length that is only half of the actual maximum length, but
4903     # we can't tell.
4904     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4905     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4906     test 17 != "$i" # 1/2 MB should be enough
4907     do
4908     i=`expr $i + 1`
4909     teststring=$teststring$teststring
4910     done
4911     # Only check the string length outside the loop.
4912     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4913     teststring=
4914     # Add a significant safety factor because C++ compilers can tack on
4915     # massive amounts of additional arguments before passing them to the
4916     # linker. It appears as though 1/2 is a usable value.
4917     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4918     fi
4919     ;;
4920     esac
4921    
4922     fi
4923    
4924     if test -n "$lt_cv_sys_max_cmd_len"; then
4925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4926     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4927     else
4928     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4929     $as_echo "none" >&6; }
4930     fi
4931     max_cmd_len=$lt_cv_sys_max_cmd_len
4932    
4933    
4934    
4935    
4936    
4937    
4938     : ${CP="cp -f"}
4939     : ${MV="mv -f"}
4940     : ${RM="rm -f"}
4941    
4942     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4943     lt_unset=unset
4944     else
4945     lt_unset=false
4946     fi
4947    
4948    
4949    
4950    
4951    
4952     # test EBCDIC or ASCII
4953     case `echo X|tr X '\101'` in
4954     A) # ASCII based system
4955     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4956     lt_SP2NL='tr \040 \012'
4957     lt_NL2SP='tr \015\012 \040\040'
4958     ;;
4959     *) # EBCDIC based system
4960     lt_SP2NL='tr \100 \n'
4961     lt_NL2SP='tr \r\n \100\100'
4962     ;;
4963     esac
4964    
4965    
4966    
4967    
4968    
4969    
4970    
4971    
4972    
4973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4974     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4975     if ${lt_cv_to_host_file_cmd+:} false; then :
4976     $as_echo_n "(cached) " >&6
4977     else
4978     case $host in
4979     *-*-mingw* )
4980     case $build in
4981     *-*-mingw* ) # actually msys
4982     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4983     ;;
4984     *-*-cygwin* )
4985     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4986     ;;
4987     * ) # otherwise, assume *nix
4988     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4989     ;;
4990     esac
4991     ;;
4992     *-*-cygwin* )
4993     case $build in
4994     *-*-mingw* ) # actually msys
4995     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4996     ;;
4997     *-*-cygwin* )
4998     lt_cv_to_host_file_cmd=func_convert_file_noop
4999     ;;
5000     * ) # otherwise, assume *nix
5001     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5002     ;;
5003     esac
5004     ;;
5005     * ) # unhandled hosts (and "normal" native builds)
5006     lt_cv_to_host_file_cmd=func_convert_file_noop
5007     ;;
5008     esac
5009    
5010     fi
5011    
5012     to_host_file_cmd=$lt_cv_to_host_file_cmd
5013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5014     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5015    
5016    
5017    
5018    
5019    
5020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5021     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5022     if ${lt_cv_to_tool_file_cmd+:} false; then :
5023     $as_echo_n "(cached) " >&6
5024     else
5025     #assume ordinary cross tools, or native build.
5026     lt_cv_to_tool_file_cmd=func_convert_file_noop
5027     case $host in
5028     *-*-mingw* )
5029     case $build in
5030     *-*-mingw* ) # actually msys
5031     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5032     ;;
5033     esac
5034     ;;
5035     esac
5036    
5037     fi
5038    
5039     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5040     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5041     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5042    
5043    
5044    
5045    
5046    
5047     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5048     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5049     if ${lt_cv_ld_reload_flag+:} false; then :
5050     $as_echo_n "(cached) " >&6
5051     else
5052     lt_cv_ld_reload_flag='-r'
5053     fi
5054     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5055     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5056     reload_flag=$lt_cv_ld_reload_flag
5057     case $reload_flag in
5058     "" | " "*) ;;
5059     *) reload_flag=" $reload_flag" ;;
5060     esac
5061     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5062     case $host_os in
5063     cygwin* | mingw* | pw32* | cegcc*)
5064     if test yes != "$GCC"; then
5065     reload_cmds=false
5066     fi
5067     ;;
5068     darwin*)
5069     if test yes = "$GCC"; then
5070     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5071     else
5072     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5073     fi
5074     ;;
5075     esac
5076    
5077    
5078    
5079    
5080    
5081    
5082    
5083    
5084    
5085     if test -n "$ac_tool_prefix"; then
5086     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5087     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089     $as_echo_n "checking for $ac_word... " >&6; }
5090     if ${ac_cv_prog_OBJDUMP+:} false; then :
5091     $as_echo_n "(cached) " >&6
5092     else
5093     if test -n "$OBJDUMP"; then
5094     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5095     else
5096     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097     for as_dir in $PATH
5098     do
5099     IFS=$as_save_IFS
5100     test -z "$as_dir" && as_dir=.
5101     for ac_exec_ext in '' $ac_executable_extensions; do
5102     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5103     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105     break 2
5106     fi
5107     done
5108     done
5109     IFS=$as_save_IFS
5110    
5111     fi
5112     fi
5113     OBJDUMP=$ac_cv_prog_OBJDUMP
5114     if test -n "$OBJDUMP"; then
5115     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5116     $as_echo "$OBJDUMP" >&6; }
5117     else
5118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119     $as_echo "no" >&6; }
5120     fi
5121    
5122    
5123     fi
5124     if test -z "$ac_cv_prog_OBJDUMP"; then
5125     ac_ct_OBJDUMP=$OBJDUMP
5126     # Extract the first word of "objdump", so it can be a program name with args.
5127     set dummy objdump; ac_word=$2
5128     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129     $as_echo_n "checking for $ac_word... " >&6; }
5130     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5131     $as_echo_n "(cached) " >&6
5132     else
5133     if test -n "$ac_ct_OBJDUMP"; then
5134     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5135     else
5136     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137     for as_dir in $PATH
5138     do
5139     IFS=$as_save_IFS
5140     test -z "$as_dir" && as_dir=.
5141     for ac_exec_ext in '' $ac_executable_extensions; do
5142     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146     fi
5147     done
5148     done
5149     IFS=$as_save_IFS
5150    
5151     fi
5152     fi
5153     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5154     if test -n "$ac_ct_OBJDUMP"; then
5155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5156     $as_echo "$ac_ct_OBJDUMP" >&6; }
5157     else
5158     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159     $as_echo "no" >&6; }
5160     fi
5161    
5162     if test "x$ac_ct_OBJDUMP" = x; then
5163     OBJDUMP="false"
5164     else
5165     case $cross_compiling:$ac_tool_warned in
5166     yes:)
5167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169     ac_tool_warned=yes ;;
5170     esac
5171     OBJDUMP=$ac_ct_OBJDUMP
5172     fi
5173     else
5174     OBJDUMP="$ac_cv_prog_OBJDUMP"
5175     fi
5176    
5177     test -z "$OBJDUMP" && OBJDUMP=objdump
5178    
5179    
5180    
5181    
5182    
5183    
5184    
5185    
5186    
5187     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5188     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5189     if ${lt_cv_deplibs_check_method+:} false; then :
5190     $as_echo_n "(cached) " >&6
5191     else
5192 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5193     lt_cv_file_magic_test_file=
5194     lt_cv_deplibs_check_method='unknown'
5195     # Need to set the preceding variable on all platforms that support
5196     # interlibrary dependencies.
5197     # 'none' -- dependencies not supported.
5198 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5199 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5200     # 'test_compile' -- check by making test program.
5201     # 'file_magic [[regex]]' -- check by looking for files in library path
5202 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5203     # If you have 'file' or equivalent on your system and you're not sure
5204     # whether 'pass_all' will *always* work, you probably want this one.
5205 michael 5052
5206     case $host_os in
5207 michael 5059 aix[4-9]*)
5208 michael 5052 lt_cv_deplibs_check_method=pass_all
5209     ;;
5210    
5211     beos*)
5212     lt_cv_deplibs_check_method=pass_all
5213     ;;
5214    
5215     bsdi[45]*)
5216     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5217     lt_cv_file_magic_cmd='/usr/bin/file -L'
5218     lt_cv_file_magic_test_file=/shlib/libc.so
5219     ;;
5220    
5221     cygwin*)
5222     # func_win32_libid is a shell function defined in ltmain.sh
5223     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224     lt_cv_file_magic_cmd='func_win32_libid'
5225     ;;
5226    
5227     mingw* | pw32*)
5228     # Base MSYS/MinGW do not provide the 'file' command needed by
5229 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5230     # unless we find 'file', for example because we are cross-compiling.
5231     if ( file / ) >/dev/null 2>&1; then
5232     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5233     lt_cv_file_magic_cmd='func_win32_libid'
5234     else
5235     # Keep this pattern in sync with the one in func_win32_libid.
5236     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5237     lt_cv_file_magic_cmd='$OBJDUMP -f'
5238     fi
5239     ;;
5240    
5241     cegcc*)
5242     # use the weaker test based on 'objdump'. See mingw*.
5243     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5244 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5245     ;;
5246    
5247     darwin* | rhapsody*)
5248     lt_cv_deplibs_check_method=pass_all
5249     ;;
5250    
5251     freebsd* | dragonfly*)
5252 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5253 michael 5052 case $host_cpu in
5254     i*86 )
5255     # Not sure whether the presence of OpenBSD here was a mistake.
5256     # Let's accept both of them until this is cleared up.
5257     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5258     lt_cv_file_magic_cmd=/usr/bin/file
5259     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5260     ;;
5261     esac
5262     else
5263     lt_cv_deplibs_check_method=pass_all
5264     fi
5265     ;;
5266    
5267 michael 5059 haiku*)
5268 michael 5052 lt_cv_deplibs_check_method=pass_all
5269     ;;
5270    
5271     hpux10.20* | hpux11*)
5272     lt_cv_file_magic_cmd=/usr/bin/file
5273     case $host_cpu in
5274     ia64*)
5275     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5276     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5277     ;;
5278     hppa*64*)
5279 michael 5059 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]'
5280 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5281     ;;
5282     *)
5283 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5284 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5285     ;;
5286     esac
5287     ;;
5288    
5289 michael 5059 interix[3-9]*)
5290 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5291     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5292     ;;
5293    
5294     irix5* | irix6* | nonstopux*)
5295     case $LD in
5296     *-32|*"-32 ") libmagic=32-bit;;
5297     *-n32|*"-n32 ") libmagic=N32;;
5298     *-64|*"-64 ") libmagic=64-bit;;
5299     *) libmagic=never-match;;
5300     esac
5301     lt_cv_deplibs_check_method=pass_all
5302     ;;
5303    
5304 michael 5059 # This must be glibc/ELF.
5305     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5306 michael 5052 lt_cv_deplibs_check_method=pass_all
5307     ;;
5308    
5309 michael 5059 netbsd*)
5310     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5311 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5312     else
5313     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5314     fi
5315     ;;
5316    
5317     newos6*)
5318     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5319     lt_cv_file_magic_cmd=/usr/bin/file
5320     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5321     ;;
5322    
5323 michael 5059 *nto* | *qnx*)
5324     lt_cv_deplibs_check_method=pass_all
5325 michael 5052 ;;
5326    
5327 michael 5059 openbsd* | bitrig*)
5328     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5329 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5330     else
5331     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5332     fi
5333     ;;
5334    
5335     osf3* | osf4* | osf5*)
5336     lt_cv_deplibs_check_method=pass_all
5337     ;;
5338    
5339 michael 5059 rdos*)
5340     lt_cv_deplibs_check_method=pass_all
5341     ;;
5342    
5343 michael 5052 solaris*)
5344     lt_cv_deplibs_check_method=pass_all
5345     ;;
5346    
5347 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5348     lt_cv_deplibs_check_method=pass_all
5349     ;;
5350    
5351 michael 5052 sysv4 | sysv4.3*)
5352     case $host_vendor in
5353     motorola)
5354     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]'
5355     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5356     ;;
5357     ncr)
5358     lt_cv_deplibs_check_method=pass_all
5359     ;;
5360     sequent)
5361     lt_cv_file_magic_cmd='/bin/file'
5362     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5363     ;;
5364     sni)
5365     lt_cv_file_magic_cmd='/bin/file'
5366     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5367     lt_cv_file_magic_test_file=/lib/libc.so
5368     ;;
5369     siemens)
5370     lt_cv_deplibs_check_method=pass_all
5371     ;;
5372     pc)
5373     lt_cv_deplibs_check_method=pass_all
5374     ;;
5375     esac
5376     ;;
5377    
5378 michael 5059 tpf*)
5379 michael 5052 lt_cv_deplibs_check_method=pass_all
5380     ;;
5381 michael 5059 os2*)
5382     lt_cv_deplibs_check_method=pass_all
5383     ;;
5384 michael 5052 esac
5385    
5386     fi
5387 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5388     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5389    
5390     file_magic_glob=
5391     want_nocaseglob=no
5392     if test "$build" = "$host"; then
5393     case $host_os in
5394     mingw* | pw32*)
5395     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5396     want_nocaseglob=yes
5397     else
5398     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5399     fi
5400     ;;
5401     esac
5402     fi
5403    
5404 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5405     deplibs_check_method=$lt_cv_deplibs_check_method
5406     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5407    
5408    
5409    
5410    
5411    
5412    
5413    
5414    
5415    
5416    
5417    
5418    
5419    
5420    
5421    
5422    
5423    
5424    
5425    
5426    
5427    
5428    
5429 michael 5059 if test -n "$ac_tool_prefix"; then
5430     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5431     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433     $as_echo_n "checking for $ac_word... " >&6; }
5434     if ${ac_cv_prog_DLLTOOL+:} false; then :
5435     $as_echo_n "(cached) " >&6
5436 michael 5052 else
5437 michael 5059 if test -n "$DLLTOOL"; then
5438     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5439     else
5440     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441     for as_dir in $PATH
5442 michael 5052 do
5443 michael 5059 IFS=$as_save_IFS
5444     test -z "$as_dir" && as_dir=.
5445     for ac_exec_ext in '' $ac_executable_extensions; do
5446     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449     break 2
5450 michael 5052 fi
5451 michael 5059 done
5452     done
5453     IFS=$as_save_IFS
5454 michael 5052
5455     fi
5456     fi
5457 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5458     if test -n "$DLLTOOL"; then
5459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5460     $as_echo "$DLLTOOL" >&6; }
5461 michael 5052 else
5462 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463     $as_echo "no" >&6; }
5464 michael 5052 fi
5465    
5466    
5467     fi
5468 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5469     ac_ct_DLLTOOL=$DLLTOOL
5470     # Extract the first word of "dlltool", so it can be a program name with args.
5471     set dummy dlltool; ac_word=$2
5472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473     $as_echo_n "checking for $ac_word... " >&6; }
5474     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5475     $as_echo_n "(cached) " >&6
5476 michael 5052 else
5477 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5478     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5479     else
5480     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481     for as_dir in $PATH
5482 michael 5052 do
5483 michael 5059 IFS=$as_save_IFS
5484     test -z "$as_dir" && as_dir=.
5485     for ac_exec_ext in '' $ac_executable_extensions; do
5486     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5489     break 2
5490 michael 5052 fi
5491     done
5492 michael 5059 done
5493     IFS=$as_save_IFS
5494 michael 5052
5495     fi
5496     fi
5497 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5498     if test -n "$ac_ct_DLLTOOL"; then
5499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5500     $as_echo "$ac_ct_DLLTOOL" >&6; }
5501 michael 5052 else
5502 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503     $as_echo "no" >&6; }
5504 michael 5052 fi
5505    
5506 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5507     DLLTOOL="false"
5508     else
5509     case $cross_compiling:$ac_tool_warned in
5510     yes:)
5511     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513     ac_tool_warned=yes ;;
5514 michael 5052 esac
5515 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5516     fi
5517 michael 5052 else
5518 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5519 michael 5052 fi
5520    
5521 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5522 michael 5052
5523    
5524    
5525    
5526    
5527    
5528    
5529    
5530    
5531    
5532 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5533     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5534     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5535     $as_echo_n "(cached) " >&6
5536 michael 5052 else
5537 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5538 michael 5052
5539 michael 5059 case $host_os in
5540     cygwin* | mingw* | pw32* | cegcc*)
5541     # two different shell functions defined in ltmain.sh;
5542     # decide which one to use based on capabilities of $DLLTOOL
5543     case `$DLLTOOL --help 2>&1` in
5544     *--identify-strict*)
5545     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5546     ;;
5547     *)
5548     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5549     ;;
5550     esac
5551     ;;
5552     *)
5553     # fallback: assume linklib IS sharedlib
5554     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5555     ;;
5556 michael 5052 esac
5557    
5558     fi
5559 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5560     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5561     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5562     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5563 michael 5052
5564    
5565    
5566    
5567    
5568    
5569    
5570    
5571 michael 5059 if test -n "$ac_tool_prefix"; then
5572     for ac_prog in ar
5573 michael 5052 do
5574     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5575     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5576 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577     $as_echo_n "checking for $ac_word... " >&6; }
5578     if ${ac_cv_prog_AR+:} false; then :
5579     $as_echo_n "(cached) " >&6
5580 michael 5052 else
5581 michael 5059 if test -n "$AR"; then
5582     ac_cv_prog_AR="$AR" # Let the user override the test.
5583 michael 5052 else
5584     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585     for as_dir in $PATH
5586     do
5587     IFS=$as_save_IFS
5588     test -z "$as_dir" && as_dir=.
5589 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5590     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 michael 5052 break 2
5594     fi
5595     done
5596 michael 5059 done
5597 michael 5052 IFS=$as_save_IFS
5598    
5599     fi
5600     fi
5601 michael 5059 AR=$ac_cv_prog_AR
5602     if test -n "$AR"; then
5603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5604     $as_echo "$AR" >&6; }
5605 michael 5052 else
5606 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607     $as_echo "no" >&6; }
5608 michael 5052 fi
5609    
5610    
5611 michael 5059 test -n "$AR" && break
5612 michael 5052 done
5613     fi
5614 michael 5059 if test -z "$AR"; then
5615     ac_ct_AR=$AR
5616     for ac_prog in ar
5617 michael 5052 do
5618     # Extract the first word of "$ac_prog", so it can be a program name with args.
5619     set dummy $ac_prog; ac_word=$2
5620 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621     $as_echo_n "checking for $ac_word... " >&6; }
5622     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5623     $as_echo_n "(cached) " >&6
5624 michael 5052 else
5625 michael 5059 if test -n "$ac_ct_AR"; then
5626     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627 michael 5052 else
5628     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629     for as_dir in $PATH
5630     do
5631     IFS=$as_save_IFS
5632     test -z "$as_dir" && as_dir=.
5633 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5634     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635     ac_cv_prog_ac_ct_AR="$ac_prog"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 michael 5052 break 2
5638     fi
5639     done
5640 michael 5059 done
5641 michael 5052 IFS=$as_save_IFS
5642    
5643     fi
5644     fi
5645 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646     if test -n "$ac_ct_AR"; then
5647     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648     $as_echo "$ac_ct_AR" >&6; }
5649 michael 5052 else
5650 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651     $as_echo "no" >&6; }
5652 michael 5052 fi
5653    
5654    
5655 michael 5059 test -n "$ac_ct_AR" && break
5656 michael 5052 done
5657    
5658 michael 5059 if test "x$ac_ct_AR" = x; then
5659     AR="false"
5660 michael 5052 else
5661     case $cross_compiling:$ac_tool_warned in
5662     yes:)
5663 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5665 michael 5052 ac_tool_warned=yes ;;
5666     esac
5667 michael 5059 AR=$ac_ct_AR
5668 michael 5052 fi
5669     fi
5670    
5671 michael 5059 : ${AR=ar}
5672     : ${AR_FLAGS=cru}
5673 michael 5052
5674    
5675    
5676    
5677    
5678    
5679    
5680    
5681    
5682    
5683    
5684 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5685     $as_echo_n "checking for archiver @FILE support... " >&6; }
5686     if ${lt_cv_ar_at_file+:} false; then :
5687     $as_echo_n "(cached) " >&6
5688 michael 5052 else
5689 michael 5059 lt_cv_ar_at_file=no
5690     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 michael 5052 /* end confdefs.h. */
5692    
5693     int
5694     main ()
5695     {
5696    
5697     ;
5698     return 0;
5699     }
5700     _ACEOF
5701 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5702     echo conftest.$ac_objext > conftest.lst
5703     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5704     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5705     (eval $lt_ar_try) 2>&5
5706 michael 5052 ac_status=$?
5707 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708     test $ac_status = 0; }
5709     if test 0 -eq "$ac_status"; then
5710     # Ensure the archiver fails upon bogus file names.
5711     rm -f conftest.$ac_objext libconftest.a
5712     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5713     (eval $lt_ar_try) 2>&5
5714 michael 5052 ac_status=$?
5715 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5716     test $ac_status = 0; }
5717     if test 0 -ne "$ac_status"; then
5718     lt_cv_ar_at_file=@
5719     fi
5720     fi
5721     rm -f conftest.* libconftest.a
5722 michael 5052
5723     fi
5724     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725    
5726     fi
5727 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5728     $as_echo "$lt_cv_ar_at_file" >&6; }
5729 michael 5052
5730 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5731     archiver_list_spec=
5732 michael 5052 else
5733 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5734 michael 5052 fi
5735    
5736    
5737    
5738    
5739    
5740    
5741    
5742 michael 5059 if test -n "$ac_tool_prefix"; then
5743     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5744     set dummy ${ac_tool_prefix}strip; ac_word=$2
5745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746     $as_echo_n "checking for $ac_word... " >&6; }
5747     if ${ac_cv_prog_STRIP+:} false; then :
5748     $as_echo_n "(cached) " >&6
5749 michael 5052 else
5750 michael 5059 if test -n "$STRIP"; then
5751     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5752 michael 5052 else
5753 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754     for as_dir in $PATH
5755 michael 5052 do
5756 michael 5059 IFS=$as_save_IFS
5757     test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763 michael 5052 fi
5764 michael 5059 done
5765     done
5766     IFS=$as_save_IFS
5767 michael 5052
5768     fi
5769     fi
5770 michael 5059 STRIP=$ac_cv_prog_STRIP
5771     if test -n "$STRIP"; then
5772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5773     $as_echo "$STRIP" >&6; }
5774 michael 5052 else
5775 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776     $as_echo "no" >&6; }
5777 michael 5052 fi
5778    
5779    
5780     fi
5781 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5782     ac_ct_STRIP=$STRIP
5783     # Extract the first word of "strip", so it can be a program name with args.
5784     set dummy strip; ac_word=$2
5785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786     $as_echo_n "checking for $ac_word... " >&6; }
5787     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5788     $as_echo_n "(cached) " >&6
5789 michael 5052 else
5790 michael 5059 if test -n "$ac_ct_STRIP"; then
5791     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5792     else
5793     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794     for as_dir in $PATH
5795 michael 5052 do
5796 michael 5059 IFS=$as_save_IFS
5797     test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_prog_ac_ct_STRIP="strip"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803 michael 5052 fi
5804 michael 5059 done
5805     done
5806     IFS=$as_save_IFS
5807    
5808 michael 5052 fi
5809 michael 5059 fi
5810     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5811     if test -n "$ac_ct_STRIP"; then
5812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5813     $as_echo "$ac_ct_STRIP" >&6; }
5814 michael 5052 else
5815 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816     $as_echo "no" >&6; }
5817 michael 5052 fi
5818    
5819 michael 5059 if test "x$ac_ct_STRIP" = x; then
5820     STRIP=":"
5821     else
5822     case $cross_compiling:$ac_tool_warned in
5823     yes:)
5824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5825     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5826     ac_tool_warned=yes ;;
5827 michael 5052 esac
5828 michael 5059 STRIP=$ac_ct_STRIP
5829 michael 5052 fi
5830     else
5831 michael 5059 STRIP="$ac_cv_prog_STRIP"
5832 michael 5052 fi
5833    
5834 michael 5059 test -z "$STRIP" && STRIP=:
5835 michael 5052
5836    
5837    
5838    
5839    
5840    
5841     if test -n "$ac_tool_prefix"; then
5842 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5843     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845     $as_echo_n "checking for $ac_word... " >&6; }
5846     if ${ac_cv_prog_RANLIB+:} false; then :
5847     $as_echo_n "(cached) " >&6
5848 michael 5052 else
5849 michael 5059 if test -n "$RANLIB"; then
5850     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5851 michael 5052 else
5852     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853     for as_dir in $PATH
5854     do
5855     IFS=$as_save_IFS
5856     test -z "$as_dir" && as_dir=.
5857 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5858     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 michael 5052 break 2
5862     fi
5863     done
5864 michael 5059 done
5865 michael 5052 IFS=$as_save_IFS
5866    
5867     fi
5868     fi
5869 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5870     if test -n "$RANLIB"; then
5871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5872     $as_echo "$RANLIB" >&6; }
5873 michael 5052 else
5874 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875     $as_echo "no" >&6; }
5876 michael 5052 fi
5877    
5878    
5879     fi
5880 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5881     ac_ct_RANLIB=$RANLIB
5882     # Extract the first word of "ranlib", so it can be a program name with args.
5883     set dummy ranlib; ac_word=$2
5884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5885     $as_echo_n "checking for $ac_word... " >&6; }
5886     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5887     $as_echo_n "(cached) " >&6
5888 michael 5052 else
5889 michael 5059 if test -n "$ac_ct_RANLIB"; then
5890     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 michael 5052 else
5892     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893     for as_dir in $PATH
5894     do
5895     IFS=$as_save_IFS
5896     test -z "$as_dir" && as_dir=.
5897 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5898     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899     ac_cv_prog_ac_ct_RANLIB="ranlib"
5900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 michael 5052 break 2
5902     fi
5903     done
5904 michael 5059 done
5905 michael 5052 IFS=$as_save_IFS
5906    
5907     fi
5908     fi
5909 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910     if test -n "$ac_ct_RANLIB"; then
5911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5912     $as_echo "$ac_ct_RANLIB" >&6; }
5913 michael 5052 else
5914 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5915     $as_echo "no" >&6; }
5916 michael 5052 fi
5917    
5918 michael 5059 if test "x$ac_ct_RANLIB" = x; then
5919     RANLIB=":"
5920 michael 5052 else
5921     case $cross_compiling:$ac_tool_warned in
5922     yes:)
5923 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5924     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5925 michael 5052 ac_tool_warned=yes ;;
5926     esac
5927 michael 5059 RANLIB=$ac_ct_RANLIB
5928 michael 5052 fi
5929 michael 5059 else
5930     RANLIB="$ac_cv_prog_RANLIB"
5931 michael 5052 fi
5932    
5933 michael 5059 test -z "$RANLIB" && RANLIB=:
5934 michael 5052
5935    
5936    
5937    
5938    
5939    
5940 michael 5059 # Determine commands to create old-style static archives.
5941     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5942     old_postinstall_cmds='chmod 644 $oldlib'
5943     old_postuninstall_cmds=
5944    
5945     if test -n "$RANLIB"; then
5946     case $host_os in
5947     bitrig* | openbsd*)
5948     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5949     ;;
5950     *)
5951     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5952     ;;
5953     esac
5954     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5955 michael 5052 fi
5956    
5957 michael 5059 case $host_os in
5958     darwin*)
5959     lock_old_archive_extraction=yes ;;
5960     *)
5961     lock_old_archive_extraction=no ;;
5962 michael 5052 esac
5963    
5964    
5965    
5966    
5967    
5968    
5969    
5970    
5971    
5972    
5973    
5974    
5975    
5976    
5977    
5978    
5979    
5980    
5981    
5982    
5983    
5984 michael 5059
5985    
5986    
5987    
5988    
5989    
5990    
5991    
5992    
5993    
5994    
5995    
5996    
5997    
5998    
5999    
6000    
6001    
6002     # If no C compiler was specified, use CC.
6003     LTCC=${LTCC-"$CC"}
6004    
6005     # If no C compiler flags were specified, use CFLAGS.
6006     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6007    
6008     # Allow CC to be a program name with arguments.
6009     compiler=$CC
6010    
6011    
6012 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6013 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6014     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6015     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6016     $as_echo_n "(cached) " >&6
6017 michael 5052 else
6018    
6019     # These are sane defaults that work on at least a few old systems.
6020     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6021    
6022     # Character class describing NM global symbol codes.
6023     symcode='[BCDEGRST]'
6024    
6025     # Regexp to match symbols that can be accessed directly from C.
6026     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6027    
6028     # Define system-specific variables.
6029     case $host_os in
6030     aix*)
6031     symcode='[BCDT]'
6032     ;;
6033 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6034 michael 5052 symcode='[ABCDGISTW]'
6035     ;;
6036 michael 5059 hpux*)
6037     if test ia64 = "$host_cpu"; then
6038 michael 5052 symcode='[ABCDEGRST]'
6039     fi
6040     ;;
6041     irix* | nonstopux*)
6042     symcode='[BCDEGRST]'
6043     ;;
6044     osf*)
6045     symcode='[BCDEGQRST]'
6046     ;;
6047     solaris*)
6048     symcode='[BDRT]'
6049     ;;
6050     sco3.2v5*)
6051     symcode='[DT]'
6052     ;;
6053     sysv4.2uw2*)
6054     symcode='[DT]'
6055     ;;
6056     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6057     symcode='[ABDT]'
6058     ;;
6059     sysv4)
6060     symcode='[DFNSTU]'
6061     ;;
6062     esac
6063    
6064 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6065     case `$NM -V 2>&1` in
6066     *GNU* | *'with BFD'*)
6067     symcode='[ABCDGIRSTW]' ;;
6068     esac
6069    
6070     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6071     # Gets list of data symbols to import.
6072     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6073     # Adjust the below global symbol transforms to fixup imported variables.
6074     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6075     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6076     lt_c_name_lib_hook="\
6077     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6078     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6079     else
6080     # Disable hooks by default.
6081     lt_cv_sys_global_symbol_to_import=
6082     lt_cdecl_hook=
6083     lt_c_name_hook=
6084     lt_c_name_lib_hook=
6085     fi
6086    
6087     # Transform an extracted symbol line into a proper C declaration.
6088     # Some systems (esp. on ia64) link data and code symbols differently,
6089     # so use this general approach.
6090     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6091     $lt_cdecl_hook\
6092     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6093     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6094    
6095     # Transform an extracted symbol line into symbol name and symbol address
6096     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6097     $lt_c_name_hook\
6098     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6099     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6100    
6101     # Transform an extracted symbol line into symbol name with lib prefix and
6102     # symbol address.
6103     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6104     $lt_c_name_lib_hook\
6105     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6106     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6107     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6108    
6109 michael 5052 # Handle CRLF in mingw tool chain
6110     opt_cr=
6111     case $build_os in
6112     mingw*)
6113 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6114 michael 5052 ;;
6115     esac
6116    
6117 michael 5059 # Try without a prefix underscore, then with it.
6118 michael 5052 for ac_symprfx in "" "_"; do
6119    
6120     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6121     symxfrm="\\1 $ac_symprfx\\2 \\2"
6122    
6123     # Write the raw and C identifiers.
6124 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6125     # Fake it for dumpbin and say T for any non-static function,
6126     # D for any global variable and I for any imported variable.
6127     # Also find C++ and __fastcall symbols from MSVC++,
6128     # which start with @ or ?.
6129     lt_cv_sys_global_symbol_pipe="$AWK '"\
6130     " {last_section=section; section=\$ 3};"\
6131     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6132     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6133     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6134     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6135     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6136     " \$ 0!~/External *\|/{next};"\
6137     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6138     " {if(hide[section]) next};"\
6139     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6140     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6141     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6142     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6143     " ' prfx=^$ac_symprfx"
6144     else
6145     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6146     fi
6147     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6148 michael 5052
6149     # Check to see that the pipe works correctly.
6150     pipe_works=no
6151    
6152     rm -f conftest*
6153 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6154 michael 5052 #ifdef __cplusplus
6155     extern "C" {
6156     #endif
6157     char nm_test_var;
6158 michael 5059 void nm_test_func(void);
6159     void nm_test_func(void){}
6160 michael 5052 #ifdef __cplusplus
6161     }
6162     #endif
6163     int main(){nm_test_var='a';nm_test_func();return(0);}
6164 michael 5059 _LT_EOF
6165 michael 5052
6166 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6167 michael 5052 (eval $ac_compile) 2>&5
6168     ac_status=$?
6169 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6170     test $ac_status = 0; }; then
6171 michael 5052 # Now try to grab the symbols.
6172     nlist=conftest.nm
6173 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6174     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6175 michael 5052 ac_status=$?
6176 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177     test $ac_status = 0; } && test -s "$nlist"; then
6178 michael 5052 # Try sorting and uniquifying the output.
6179     if sort "$nlist" | uniq > "$nlist"T; then
6180     mv -f "$nlist"T "$nlist"
6181     else
6182     rm -f "$nlist"T
6183     fi
6184    
6185     # Make sure that we snagged all the symbols we need.
6186 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6187     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6188     cat <<_LT_EOF > conftest.$ac_ext
6189     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6190     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6191     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6192     relocations are performed -- see ld's documentation on pseudo-relocs. */
6193     # define LT_DLSYM_CONST
6194     #elif defined __osf__
6195     /* This system does not cope well with relocations in const data. */
6196     # define LT_DLSYM_CONST
6197     #else
6198     # define LT_DLSYM_CONST const
6199     #endif
6200    
6201 michael 5052 #ifdef __cplusplus
6202     extern "C" {
6203     #endif
6204    
6205 michael 5059 _LT_EOF
6206 michael 5052 # Now generate the symbol file.
6207 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6208 michael 5052
6209 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6210 michael 5052
6211 michael 5059 /* The mapping between symbol names and symbols. */
6212     LT_DLSYM_CONST struct {
6213 michael 5052 const char *name;
6214 michael 5059 void *address;
6215 michael 5052 }
6216 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6217 michael 5052 {
6218 michael 5059 { "@PROGRAM@", (void *) 0 },
6219     _LT_EOF
6220     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6221     cat <<\_LT_EOF >> conftest.$ac_ext
6222     {0, (void *) 0}
6223 michael 5052 };
6224    
6225 michael 5059 /* This works around a problem in FreeBSD linker */
6226     #ifdef FREEBSD_WORKAROUND
6227     static const void *lt_preloaded_setup() {
6228     return lt__PROGRAM__LTX_preloaded_symbols;
6229     }
6230     #endif
6231    
6232 michael 5052 #ifdef __cplusplus
6233     }
6234     #endif
6235 michael 5059 _LT_EOF
6236 michael 5052 # Now try linking the two files.
6237     mv conftest.$ac_objext conftstm.$ac_objext
6238 michael 5059 lt_globsym_save_LIBS=$LIBS
6239     lt_globsym_save_CFLAGS=$CFLAGS
6240     LIBS=conftstm.$ac_objext
6241 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6242 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6243 michael 5052 (eval $ac_link) 2>&5
6244     ac_status=$?
6245 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6246     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6247 michael 5052 pipe_works=yes
6248     fi
6249 michael 5059 LIBS=$lt_globsym_save_LIBS
6250     CFLAGS=$lt_globsym_save_CFLAGS
6251 michael 5052 else
6252     echo "cannot find nm_test_func in $nlist" >&5
6253     fi
6254     else
6255     echo "cannot find nm_test_var in $nlist" >&5
6256     fi
6257     else
6258     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6259     fi
6260     else
6261     echo "$progname: failed program was:" >&5
6262     cat conftest.$ac_ext >&5
6263     fi
6264 michael 5059 rm -rf conftest* conftst*
6265 michael 5052
6266     # Do not use the global_symbol_pipe unless it works.
6267 michael 5059 if test yes = "$pipe_works"; then
6268 michael 5052 break
6269     else
6270     lt_cv_sys_global_symbol_pipe=
6271     fi
6272     done
6273    
6274     fi
6275    
6276     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6277     lt_cv_sys_global_symbol_to_cdecl=
6278     fi
6279     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6280 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6281     $as_echo "failed" >&6; }
6282 michael 5052 else
6283 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6284     $as_echo "ok" >&6; }
6285 michael 5052 fi
6286    
6287 michael 5059 # Response file support.
6288     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6289     nm_file_list_spec='@'
6290     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6291     nm_file_list_spec='@'
6292     fi
6293    
6294    
6295    
6296    
6297    
6298    
6299    
6300    
6301    
6302    
6303    
6304    
6305    
6306    
6307    
6308    
6309    
6310    
6311    
6312    
6313    
6314    
6315    
6316    
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324    
6325    
6326    
6327    
6328    
6329    
6330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6331     $as_echo_n "checking for sysroot... " >&6; }
6332    
6333     # Check whether --with-sysroot was given.
6334     if test "${with_sysroot+set}" = set; then :
6335     withval=$with_sysroot;
6336 michael 5052 else
6337 michael 5059 with_sysroot=no
6338     fi
6339    
6340    
6341     lt_sysroot=
6342     case $with_sysroot in #(
6343     yes)
6344     if test yes = "$GCC"; then
6345     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6346     fi
6347     ;; #(
6348     /*)
6349     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6350     ;; #(
6351     no|'')
6352     ;; #(
6353     *)
6354     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6355     $as_echo "$with_sysroot" >&6; }
6356     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6357     ;;
6358     esac
6359    
6360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6361     $as_echo "${lt_sysroot:-no}" >&6; }
6362    
6363    
6364    
6365    
6366    
6367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6368     $as_echo_n "checking for a working dd... " >&6; }
6369     if ${ac_cv_path_lt_DD+:} false; then :
6370     $as_echo_n "(cached) " >&6
6371 michael 5052 else
6372 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6373     cat conftest.i conftest.i >conftest2.i
6374     : ${lt_DD:=$DD}
6375     if test -z "$lt_DD"; then
6376     ac_path_lt_DD_found=false
6377     # Loop through the user's path and test for each of PROGNAME-LIST
6378     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379     for as_dir in $PATH
6380     do
6381     IFS=$as_save_IFS
6382     test -z "$as_dir" && as_dir=.
6383     for ac_prog in dd; do
6384     for ac_exec_ext in '' $ac_executable_extensions; do
6385     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6386     as_fn_executable_p "$ac_path_lt_DD" || continue
6387     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6388     cmp -s conftest.i conftest.out \
6389     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6390 michael 5052 fi
6391 michael 5059 $ac_path_lt_DD_found && break 3
6392     done
6393     done
6394     done
6395     IFS=$as_save_IFS
6396     if test -z "$ac_cv_path_lt_DD"; then
6397     :
6398     fi
6399     else
6400     ac_cv_path_lt_DD=$lt_DD
6401 michael 5052 fi
6402    
6403 michael 5059 rm -f conftest.i conftest2.i conftest.out
6404     fi
6405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6406     $as_echo "$ac_cv_path_lt_DD" >&6; }
6407 michael 5052
6408    
6409 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6410     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6411     if ${lt_cv_truncate_bin+:} false; then :
6412     $as_echo_n "(cached) " >&6
6413     else
6414     printf 0123456789abcdef0123456789abcdef >conftest.i
6415     cat conftest.i conftest.i >conftest2.i
6416     lt_cv_truncate_bin=
6417     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6418     cmp -s conftest.i conftest.out \
6419     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6420     fi
6421     rm -f conftest.i conftest2.i conftest.out
6422     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6423     fi
6424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6425     $as_echo "$lt_cv_truncate_bin" >&6; }
6426 michael 5052
6427    
6428 michael 5059
6429    
6430    
6431    
6432 michael 5430
6433     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6434     func_cc_basename ()
6435     {
6436     for cc_temp in $*""; do
6437     case $cc_temp in
6438     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6439     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6440     \-*) ;;
6441     *) break;;
6442     esac
6443     done
6444     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6445     }
6446    
6447 michael 5059 # Check whether --enable-libtool-lock was given.
6448     if test "${enable_libtool_lock+set}" = set; then :
6449     enableval=$enable_libtool_lock;
6450     fi
6451    
6452     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6453    
6454     # Some flags need to be propagated to the compiler or linker for good
6455     # libtool support.
6456     case $host in
6457     ia64-*-hpux*)
6458     # Find out what ABI is being produced by ac_compile, and set mode
6459     # options accordingly.
6460     echo 'int i;' > conftest.$ac_ext
6461     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462     (eval $ac_compile) 2>&5
6463     ac_status=$?
6464     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465     test $ac_status = 0; }; then
6466     case `/usr/bin/file conftest.$ac_objext` in
6467     *ELF-32*)
6468     HPUX_IA64_MODE=32
6469     ;;
6470     *ELF-64*)
6471     HPUX_IA64_MODE=64
6472     ;;
6473     esac
6474 michael 5052 fi
6475 michael 5059 rm -rf conftest*
6476 michael 5052 ;;
6477 michael 5059 *-*-irix6*)
6478     # Find out what ABI is being produced by ac_compile, and set linker
6479     # options accordingly.
6480     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6481     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6482     (eval $ac_compile) 2>&5
6483     ac_status=$?
6484     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6485     test $ac_status = 0; }; then
6486     if test yes = "$lt_cv_prog_gnu_ld"; then
6487     case `/usr/bin/file conftest.$ac_objext` in
6488     *32-bit*)
6489     LD="${LD-ld} -melf32bsmip"
6490     ;;
6491     *N32*)
6492     LD="${LD-ld} -melf32bmipn32"
6493     ;;
6494     *64-bit*)
6495     LD="${LD-ld} -melf64bmip"
6496     ;;
6497     esac
6498     else
6499     case `/usr/bin/file conftest.$ac_objext` in
6500     *32-bit*)
6501     LD="${LD-ld} -32"
6502     ;;
6503     *N32*)
6504     LD="${LD-ld} -n32"
6505     ;;
6506     *64-bit*)
6507     LD="${LD-ld} -64"
6508     ;;
6509     esac
6510     fi
6511     fi
6512     rm -rf conftest*
6513     ;;
6514 michael 5052
6515 michael 5059 mips64*-*linux*)
6516     # Find out what ABI is being produced by ac_compile, and set linker
6517     # options accordingly.
6518     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6519     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6520     (eval $ac_compile) 2>&5
6521     ac_status=$?
6522     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523     test $ac_status = 0; }; then
6524     emul=elf
6525     case `/usr/bin/file conftest.$ac_objext` in
6526     *32-bit*)
6527     emul="${emul}32"
6528     ;;
6529     *64-bit*)
6530     emul="${emul}64"
6531     ;;
6532     esac
6533     case `/usr/bin/file conftest.$ac_objext` in
6534     *MSB*)
6535     emul="${emul}btsmip"
6536     ;;
6537     *LSB*)
6538     emul="${emul}ltsmip"
6539     ;;
6540     esac
6541     case `/usr/bin/file conftest.$ac_objext` in
6542     *N32*)
6543     emul="${emul}n32"
6544     ;;
6545     esac
6546     LD="${LD-ld} -m $emul"
6547     fi
6548     rm -rf conftest*
6549     ;;
6550 michael 5052
6551 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6552     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6553     # Find out what ABI is being produced by ac_compile, and set linker
6554     # options accordingly. Note that the listed cases only cover the
6555     # situations where additional linker options are needed (such as when
6556     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6557     # vice versa); the common cases where no linker options are needed do
6558     # not appear in the list.
6559     echo 'int i;' > conftest.$ac_ext
6560     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6561     (eval $ac_compile) 2>&5
6562     ac_status=$?
6563     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6564     test $ac_status = 0; }; then
6565     case `/usr/bin/file conftest.o` in
6566     *32-bit*)
6567     case $host in
6568     x86_64-*kfreebsd*-gnu)
6569     LD="${LD-ld} -m elf_i386_fbsd"
6570     ;;
6571     x86_64-*linux*)
6572     case `/usr/bin/file conftest.o` in
6573     *x86-64*)
6574     LD="${LD-ld} -m elf32_x86_64"
6575     ;;
6576     *)
6577     LD="${LD-ld} -m elf_i386"
6578     ;;
6579     esac
6580     ;;
6581     powerpc64le-*linux*)
6582     LD="${LD-ld} -m elf32lppclinux"
6583     ;;
6584     powerpc64-*linux*)
6585     LD="${LD-ld} -m elf32ppclinux"
6586     ;;
6587     s390x-*linux*)
6588     LD="${LD-ld} -m elf_s390"
6589     ;;
6590     sparc64-*linux*)
6591     LD="${LD-ld} -m elf32_sparc"
6592     ;;
6593     esac
6594     ;;
6595     *64-bit*)
6596     case $host in
6597     x86_64-*kfreebsd*-gnu)
6598     LD="${LD-ld} -m elf_x86_64_fbsd"
6599     ;;
6600     x86_64-*linux*)
6601     LD="${LD-ld} -m elf_x86_64"
6602     ;;
6603     powerpcle-*linux*)
6604     LD="${LD-ld} -m elf64lppc"
6605     ;;
6606     powerpc-*linux*)
6607     LD="${LD-ld} -m elf64ppc"
6608     ;;
6609     s390*-*linux*|s390*-*tpf*)
6610     LD="${LD-ld} -m elf64_s390"
6611     ;;
6612     sparc*-*linux*)
6613     LD="${LD-ld} -m elf64_sparc"
6614     ;;
6615     esac
6616     ;;
6617     esac
6618     fi
6619     rm -rf conftest*
6620     ;;
6621 michael 5052
6622 michael 5059 *-*-sco3.2v5*)
6623     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6624     SAVE_CFLAGS=$CFLAGS
6625     CFLAGS="$CFLAGS -belf"
6626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6627     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6628     if ${lt_cv_cc_needs_belf+:} false; then :
6629     $as_echo_n "(cached) " >&6
6630     else
6631     ac_ext=c
6632     ac_cpp='$CPP $CPPFLAGS'
6633     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6634     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6635     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6636 michael 5052
6637 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638     /* end confdefs.h. */
6639 michael 5052
6640 michael 5059 int
6641     main ()
6642     {
6643 michael 5052
6644 michael 5059 ;
6645     return 0;
6646     }
6647     _ACEOF
6648     if ac_fn_c_try_link "$LINENO"; then :
6649     lt_cv_cc_needs_belf=yes
6650     else
6651     lt_cv_cc_needs_belf=no
6652     fi
6653     rm -f core conftest.err conftest.$ac_objext \
6654     conftest$ac_exeext conftest.$ac_ext
6655     ac_ext=c
6656     ac_cpp='$CPP $CPPFLAGS'
6657     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660 michael 5052
6661 michael 5059 fi
6662     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6663     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6664     if test yes != "$lt_cv_cc_needs_belf"; then
6665     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6666     CFLAGS=$SAVE_CFLAGS
6667     fi
6668     ;;
6669     *-*solaris*)
6670     # Find out what ABI is being produced by ac_compile, and set linker
6671     # options accordingly.
6672     echo 'int i;' > conftest.$ac_ext
6673     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6674     (eval $ac_compile) 2>&5
6675     ac_status=$?
6676     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6677     test $ac_status = 0; }; then
6678     case `/usr/bin/file conftest.o` in
6679     *64-bit*)
6680     case $lt_cv_prog_gnu_ld in
6681     yes*)
6682     case $host in
6683     i?86-*-solaris*|x86_64-*-solaris*)
6684     LD="${LD-ld} -m elf_x86_64"
6685     ;;
6686     sparc*-*-solaris*)
6687     LD="${LD-ld} -m elf64_sparc"
6688     ;;
6689     esac
6690     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6691     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6692     LD=${LD-ld}_sol2
6693     fi
6694     ;;
6695     *)
6696     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6697     LD="${LD-ld} -64"
6698     fi
6699     ;;
6700     esac
6701     ;;
6702     esac
6703     fi
6704     rm -rf conftest*
6705     ;;
6706     esac
6707 michael 5052
6708 michael 5059 need_locks=$enable_libtool_lock
6709    
6710 michael 5052 if test -n "$ac_tool_prefix"; then
6711 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6712     set dummy ${ac_tool_prefix}mt; ac_word=$2
6713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714     $as_echo_n "checking for $ac_word... " >&6; }
6715     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6716     $as_echo_n "(cached) " >&6
6717 michael 5052 else
6718 michael 5059 if test -n "$MANIFEST_TOOL"; then
6719     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6720 michael 5052 else
6721     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722     for as_dir in $PATH
6723     do
6724     IFS=$as_save_IFS
6725     test -z "$as_dir" && as_dir=.
6726 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6727     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 michael 5052 break 2
6731     fi
6732     done
6733 michael 5059 done
6734     IFS=$as_save_IFS
6735    
6736     fi
6737     fi
6738     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6739     if test -n "$MANIFEST_TOOL"; then
6740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6741     $as_echo "$MANIFEST_TOOL" >&6; }
6742     else
6743     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744     $as_echo "no" >&6; }
6745     fi
6746    
6747    
6748     fi
6749     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6750     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6751     # Extract the first word of "mt", so it can be a program name with args.
6752     set dummy mt; ac_word=$2
6753     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754     $as_echo_n "checking for $ac_word... " >&6; }
6755     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6756     $as_echo_n "(cached) " >&6
6757     else
6758     if test -n "$ac_ct_MANIFEST_TOOL"; then
6759     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6760     else
6761     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762     for as_dir in $PATH
6763     do
6764     IFS=$as_save_IFS
6765     test -z "$as_dir" && as_dir=.
6766     for ac_exec_ext in '' $ac_executable_extensions; do
6767     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6768     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6770     break 2
6771     fi
6772 michael 5052 done
6773 michael 5059 done
6774 michael 5052 IFS=$as_save_IFS
6775    
6776     fi
6777     fi
6778 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6779     if test -n "$ac_ct_MANIFEST_TOOL"; then
6780     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6781     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6782 michael 5052 else
6783 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784     $as_echo "no" >&6; }
6785 michael 5052 fi
6786    
6787 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6788     MANIFEST_TOOL=":"
6789     else
6790     case $cross_compiling:$ac_tool_warned in
6791     yes:)
6792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6793     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6794     ac_tool_warned=yes ;;
6795     esac
6796     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6797     fi
6798     else
6799     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6800     fi
6801 michael 5052
6802 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6804     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6805     if ${lt_cv_path_mainfest_tool+:} false; then :
6806     $as_echo_n "(cached) " >&6
6807     else
6808     lt_cv_path_mainfest_tool=no
6809     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6810     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6811     cat conftest.err >&5
6812     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6813     lt_cv_path_mainfest_tool=yes
6814     fi
6815     rm -f conftest*
6816 michael 5052 fi
6817 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6818     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6819     if test yes != "$lt_cv_path_mainfest_tool"; then
6820     MANIFEST_TOOL=:
6821     fi
6822    
6823    
6824    
6825    
6826    
6827    
6828     case $host_os in
6829     rhapsody* | darwin*)
6830     if test -n "$ac_tool_prefix"; then
6831     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6832     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6833     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834     $as_echo_n "checking for $ac_word... " >&6; }
6835     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6836     $as_echo_n "(cached) " >&6
6837 michael 5052 else
6838 michael 5059 if test -n "$DSYMUTIL"; then
6839     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6840 michael 5052 else
6841     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842     for as_dir in $PATH
6843     do
6844     IFS=$as_save_IFS
6845     test -z "$as_dir" && as_dir=.
6846 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6847     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 michael 5052 break 2
6851     fi
6852     done
6853 michael 5059 done
6854     IFS=$as_save_IFS
6855    
6856     fi
6857     fi
6858     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6859     if test -n "$DSYMUTIL"; then
6860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6861     $as_echo "$DSYMUTIL" >&6; }
6862     else
6863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864     $as_echo "no" >&6; }
6865     fi
6866    
6867    
6868     fi
6869     if test -z "$ac_cv_prog_DSYMUTIL"; then
6870     ac_ct_DSYMUTIL=$DSYMUTIL
6871     # Extract the first word of "dsymutil", so it can be a program name with args.
6872     set dummy dsymutil; ac_word=$2
6873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874     $as_echo_n "checking for $ac_word... " >&6; }
6875     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6876     $as_echo_n "(cached) " >&6
6877     else
6878     if test -n "$ac_ct_DSYMUTIL"; then
6879     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6880     else
6881     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882     for as_dir in $PATH
6883     do
6884     IFS=$as_save_IFS
6885     test -z "$as_dir" && as_dir=.
6886     for ac_exec_ext in '' $ac_executable_extensions; do
6887     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6888     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891     fi
6892 michael 5052 done
6893 michael 5059 done
6894 michael 5052 IFS=$as_save_IFS
6895    
6896     fi
6897     fi
6898 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6899     if test -n "$ac_ct_DSYMUTIL"; then
6900     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6901     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6902 michael 5052 else
6903 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904     $as_echo "no" >&6; }
6905 michael 5052 fi
6906    
6907 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6908     DSYMUTIL=":"
6909 michael 5052 else
6910     case $cross_compiling:$ac_tool_warned in
6911     yes:)
6912 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 michael 5052 ac_tool_warned=yes ;;
6915     esac
6916 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6917 michael 5052 fi
6918     else
6919 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6920 michael 5052 fi
6921    
6922 michael 5059 if test -n "$ac_tool_prefix"; then
6923     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6924     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926     $as_echo_n "checking for $ac_word... " >&6; }
6927     if ${ac_cv_prog_NMEDIT+:} false; then :
6928     $as_echo_n "(cached) " >&6
6929 michael 5052 else
6930 michael 5059 if test -n "$NMEDIT"; then
6931     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6932 michael 5052 else
6933     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934     for as_dir in $PATH
6935     do
6936     IFS=$as_save_IFS
6937     test -z "$as_dir" && as_dir=.
6938 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6939     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 michael 5052 break 2
6943     fi
6944     done
6945 michael 5059 done
6946 michael 5052 IFS=$as_save_IFS
6947    
6948     fi
6949     fi
6950 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
6951     if test -n "$NMEDIT"; then
6952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6953     $as_echo "$NMEDIT" >&6; }
6954 michael 5052 else
6955 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956     $as_echo "no" >&6; }
6957 michael 5052 fi
6958    
6959    
6960     fi
6961 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
6962     ac_ct_NMEDIT=$NMEDIT
6963     # Extract the first word of "nmedit", so it can be a program name with args.
6964     set dummy nmedit; ac_word=$2
6965     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966     $as_echo_n "checking for $ac_word... " >&6; }
6967     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6968     $as_echo_n "(cached) " >&6
6969 michael 5052 else
6970 michael 5059 if test -n "$ac_ct_NMEDIT"; then
6971     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6972 michael 5052 else
6973     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974     for as_dir in $PATH
6975     do
6976     IFS=$as_save_IFS
6977     test -z "$as_dir" && as_dir=.
6978 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6979     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6980     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 michael 5052 break 2
6983     fi
6984     done
6985 michael 5059 done
6986 michael 5052 IFS=$as_save_IFS
6987    
6988     fi
6989     fi
6990 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6991     if test -n "$ac_ct_NMEDIT"; then
6992     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6993     $as_echo "$ac_ct_NMEDIT" >&6; }
6994 michael 5052 else
6995 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996     $as_echo "no" >&6; }
6997 michael 5052 fi
6998    
6999 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7000     NMEDIT=":"
7001 michael 5052 else
7002     case $cross_compiling:$ac_tool_warned in
7003     yes:)
7004 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 michael 5052 ac_tool_warned=yes ;;
7007     esac
7008 michael 5059 NMEDIT=$ac_ct_NMEDIT
7009 michael 5052 fi
7010     else
7011 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7012 michael 5052 fi
7013    
7014 michael 5059 if test -n "$ac_tool_prefix"; then
7015     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7016     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7017     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018     $as_echo_n "checking for $ac_word... " >&6; }
7019     if ${ac_cv_prog_LIPO+:} false; then :
7020     $as_echo_n "(cached) " >&6
7021 michael 5052 else
7022 michael 5059 if test -n "$LIPO"; then
7023     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7024 michael 5052 else
7025     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026     for as_dir in $PATH
7027     do
7028     IFS=$as_save_IFS
7029     test -z "$as_dir" && as_dir=.
7030 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7031     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 michael 5052 break 2
7035     fi
7036     done
7037 michael 5059 done
7038     IFS=$as_save_IFS
7039    
7040     fi
7041     fi
7042     LIPO=$ac_cv_prog_LIPO
7043     if test -n "$LIPO"; then
7044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7045     $as_echo "$LIPO" >&6; }
7046     else
7047     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048     $as_echo "no" >&6; }
7049     fi
7050    
7051    
7052     fi
7053     if test -z "$ac_cv_prog_LIPO"; then
7054     ac_ct_LIPO=$LIPO
7055     # Extract the first word of "lipo", so it can be a program name with args.
7056     set dummy lipo; ac_word=$2
7057     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058     $as_echo_n "checking for $ac_word... " >&6; }
7059     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7060     $as_echo_n "(cached) " >&6
7061     else
7062     if test -n "$ac_ct_LIPO"; then
7063     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7064     else
7065     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066     for as_dir in $PATH
7067     do
7068     IFS=$as_save_IFS
7069     test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_prog_ac_ct_LIPO="lipo"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075     fi
7076 michael 5052 done
7077 michael 5059 done
7078 michael 5052 IFS=$as_save_IFS
7079    
7080     fi
7081     fi
7082 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7083     if test -n "$ac_ct_LIPO"; then
7084     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7085     $as_echo "$ac_ct_LIPO" >&6; }
7086 michael 5052 else
7087 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088     $as_echo "no" >&6; }
7089 michael 5052 fi
7090    
7091 michael 5059 if test "x$ac_ct_LIPO" = x; then
7092     LIPO=":"
7093     else
7094     case $cross_compiling:$ac_tool_warned in
7095     yes:)
7096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098     ac_tool_warned=yes ;;
7099     esac
7100     LIPO=$ac_ct_LIPO
7101     fi
7102     else
7103     LIPO="$ac_cv_prog_LIPO"
7104     fi
7105 michael 5052
7106 michael 5059 if test -n "$ac_tool_prefix"; then
7107     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7108     set dummy ${ac_tool_prefix}otool; ac_word=$2
7109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110     $as_echo_n "checking for $ac_word... " >&6; }
7111     if ${ac_cv_prog_OTOOL+:} false; then :
7112     $as_echo_n "(cached) " >&6
7113     else
7114     if test -n "$OTOOL"; then
7115     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7116     else
7117     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118     for as_dir in $PATH
7119     do
7120     IFS=$as_save_IFS
7121     test -z "$as_dir" && as_dir=.
7122     for ac_exec_ext in '' $ac_executable_extensions; do
7123     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127     fi
7128     done
7129     done
7130     IFS=$as_save_IFS
7131    
7132 michael 5052 fi
7133 michael 5059 fi
7134     OTOOL=$ac_cv_prog_OTOOL
7135     if test -n "$OTOOL"; then
7136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7137     $as_echo "$OTOOL" >&6; }
7138 michael 5052 else
7139 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140     $as_echo "no" >&6; }
7141     fi
7142    
7143    
7144     fi
7145     if test -z "$ac_cv_prog_OTOOL"; then
7146     ac_ct_OTOOL=$OTOOL
7147     # Extract the first word of "otool", so it can be a program name with args.
7148     set dummy otool; ac_word=$2
7149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150     $as_echo_n "checking for $ac_word... " >&6; }
7151     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7152     $as_echo_n "(cached) " >&6
7153 michael 5052 else
7154 michael 5059 if test -n "$ac_ct_OTOOL"; then
7155     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7156     else
7157 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158     for as_dir in $PATH
7159     do
7160     IFS=$as_save_IFS
7161     test -z "$as_dir" && as_dir=.
7162 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7163     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_prog_ac_ct_OTOOL="otool"
7165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 michael 5052 break 2
7167     fi
7168     done
7169 michael 5059 done
7170     IFS=$as_save_IFS
7171    
7172     fi
7173     fi
7174     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7175     if test -n "$ac_ct_OTOOL"; then
7176     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7177     $as_echo "$ac_ct_OTOOL" >&6; }
7178     else
7179     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180     $as_echo "no" >&6; }
7181     fi
7182    
7183     if test "x$ac_ct_OTOOL" = x; then
7184     OTOOL=":"
7185     else
7186     case $cross_compiling:$ac_tool_warned in
7187     yes:)
7188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190     ac_tool_warned=yes ;;
7191     esac
7192     OTOOL=$ac_ct_OTOOL
7193     fi
7194     else
7195     OTOOL="$ac_cv_prog_OTOOL"
7196     fi
7197    
7198     if test -n "$ac_tool_prefix"; then
7199     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7200     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202     $as_echo_n "checking for $ac_word... " >&6; }
7203     if ${ac_cv_prog_OTOOL64+:} false; then :
7204     $as_echo_n "(cached) " >&6
7205     else
7206     if test -n "$OTOOL64"; then
7207     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7208     else
7209     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210     for as_dir in $PATH
7211     do
7212     IFS=$as_save_IFS
7213     test -z "$as_dir" && as_dir=.
7214     for ac_exec_ext in '' $ac_executable_extensions; do
7215     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219     fi
7220 michael 5052 done
7221 michael 5059 done
7222 michael 5052 IFS=$as_save_IFS
7223    
7224     fi
7225     fi
7226 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7227     if test -n "$OTOOL64"; then
7228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7229     $as_echo "$OTOOL64" >&6; }
7230 michael 5052 else
7231 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232     $as_echo "no" >&6; }
7233 michael 5052 fi
7234    
7235 michael 5059
7236     fi
7237     if test -z "$ac_cv_prog_OTOOL64"; then
7238     ac_ct_OTOOL64=$OTOOL64
7239     # Extract the first word of "otool64", so it can be a program name with args.
7240     set dummy otool64; ac_word=$2
7241     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242     $as_echo_n "checking for $ac_word... " >&6; }
7243     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7244     $as_echo_n "(cached) " >&6
7245     else
7246     if test -n "$ac_ct_OTOOL64"; then
7247     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7248     else
7249     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250     for as_dir in $PATH
7251     do
7252     IFS=$as_save_IFS
7253     test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7256     ac_cv_prog_ac_ct_OTOOL64="otool64"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259     fi
7260     done
7261     done
7262     IFS=$as_save_IFS
7263    
7264     fi
7265     fi
7266     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7267     if test -n "$ac_ct_OTOOL64"; then
7268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7269     $as_echo "$ac_ct_OTOOL64" >&6; }
7270     else
7271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272     $as_echo "no" >&6; }
7273     fi
7274    
7275     if test "x$ac_ct_OTOOL64" = x; then
7276     OTOOL64=":"
7277 michael 5052 else
7278     case $cross_compiling:$ac_tool_warned in
7279     yes:)
7280 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7281     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7282 michael 5052 ac_tool_warned=yes ;;
7283     esac
7284 michael 5059 OTOOL64=$ac_ct_OTOOL64
7285 michael 5052 fi
7286     else
7287 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7288 michael 5052 fi
7289    
7290    
7291    
7292 michael 5059
7293    
7294    
7295    
7296    
7297    
7298    
7299    
7300    
7301    
7302    
7303    
7304    
7305    
7306    
7307    
7308    
7309    
7310    
7311    
7312    
7313    
7314    
7315    
7316     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7317     $as_echo_n "checking for -single_module linker flag... " >&6; }
7318     if ${lt_cv_apple_cc_single_mod+:} false; then :
7319     $as_echo_n "(cached) " >&6
7320     else
7321     lt_cv_apple_cc_single_mod=no
7322     if test -z "$LT_MULTI_MODULE"; then
7323     # By default we will add the -single_module flag. You can override
7324     # by either setting the environment variable LT_MULTI_MODULE
7325     # non-empty at configure time, or by adding -multi_module to the
7326     # link flags.
7327     rm -rf libconftest.dylib*
7328     echo "int foo(void){return 1;}" > conftest.c
7329     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7330     -dynamiclib -Wl,-single_module conftest.c" >&5
7331     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7332     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7333     _lt_result=$?
7334     # If there is a non-empty error log, and "single_module"
7335     # appears in it, assume the flag caused a linker warning
7336     if test -s conftest.err && $GREP single_module conftest.err; then
7337     cat conftest.err >&5
7338     # Otherwise, if the output was created with a 0 exit code from
7339     # the compiler, it worked.
7340     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7341     lt_cv_apple_cc_single_mod=yes
7342     else
7343     cat conftest.err >&5
7344     fi
7345     rm -rf libconftest.dylib*
7346     rm -f conftest.*
7347     fi
7348     fi
7349     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7350     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7351    
7352     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7353     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7354     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7355     $as_echo_n "(cached) " >&6
7356     else
7357     lt_cv_ld_exported_symbols_list=no
7358     save_LDFLAGS=$LDFLAGS
7359     echo "_main" > conftest.sym
7360     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362     /* end confdefs.h. */
7363    
7364     int
7365     main ()
7366     {
7367    
7368     ;
7369     return 0;
7370     }
7371     _ACEOF
7372     if ac_fn_c_try_link "$LINENO"; then :
7373     lt_cv_ld_exported_symbols_list=yes
7374     else
7375     lt_cv_ld_exported_symbols_list=no
7376     fi
7377     rm -f core conftest.err conftest.$ac_objext \
7378     conftest$ac_exeext conftest.$ac_ext
7379     LDFLAGS=$save_LDFLAGS
7380    
7381     fi
7382     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7383     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7384    
7385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7386     $as_echo_n "checking for -force_load linker flag... " >&6; }
7387     if ${lt_cv_ld_force_load+:} false; then :
7388     $as_echo_n "(cached) " >&6
7389     else
7390     lt_cv_ld_force_load=no
7391     cat > conftest.c << _LT_EOF
7392     int forced_loaded() { return 2;}
7393     _LT_EOF
7394     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7395     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7396     echo "$AR cru libconftest.a conftest.o" >&5
7397     $AR cru libconftest.a conftest.o 2>&5
7398     echo "$RANLIB libconftest.a" >&5
7399     $RANLIB libconftest.a 2>&5
7400     cat > conftest.c << _LT_EOF
7401     int main() { return 0;}
7402     _LT_EOF
7403     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7404     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7405     _lt_result=$?
7406     if test -s conftest.err && $GREP force_load conftest.err; then
7407     cat conftest.err >&5
7408     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7409     lt_cv_ld_force_load=yes
7410     else
7411     cat conftest.err >&5
7412     fi
7413     rm -f conftest.err libconftest.a conftest conftest.c
7414     rm -rf conftest.dSYM
7415    
7416     fi
7417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7418     $as_echo "$lt_cv_ld_force_load" >&6; }
7419     case $host_os in
7420     rhapsody* | darwin1.[012])
7421     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7422     darwin1.*)
7423     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7424     darwin*) # darwin 5.x on
7425     # if running on 10.5 or later, the deployment target defaults
7426     # to the OS version, if on x86, and 10.4, the deployment
7427     # target defaults to 10.4. Don't you love it?
7428     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7429     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7430     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7431     10.[012][,.]*)
7432     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7433     10.*)
7434     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7435     esac
7436     ;;
7437     esac
7438     if test yes = "$lt_cv_apple_cc_single_mod"; then
7439     _lt_dar_single_mod='$single_module'
7440     fi
7441     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7442     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7443     else
7444     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7445     fi
7446     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7447     _lt_dsymutil='~$DSYMUTIL $lib || :'
7448     else
7449     _lt_dsymutil=
7450     fi
7451     ;;
7452     esac
7453    
7454 michael 5430 # func_munge_path_list VARIABLE PATH
7455     # -----------------------------------
7456     # VARIABLE is name of variable containing _space_ separated list of
7457     # directories to be munged by the contents of PATH, which is string
7458     # having a format:
7459     # "DIR[:DIR]:"
7460     # string "DIR[ DIR]" will be prepended to VARIABLE
7461     # ":DIR[:DIR]"
7462     # string "DIR[ DIR]" will be appended to VARIABLE
7463     # "DIRP[:DIRP]::[DIRA:]DIRA"
7464     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7465     # "DIRA[ DIRA]" will be appended to VARIABLE
7466     # "DIR[:DIR]"
7467     # VARIABLE will be replaced by "DIR[ DIR]"
7468     func_munge_path_list ()
7469     {
7470     case x$2 in
7471     x)
7472     ;;
7473     *:)
7474 michael 5715 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7475 michael 5430 ;;
7476     x:*)
7477     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7478     ;;
7479     *::*)
7480     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7481     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7482     ;;
7483     *)
7484     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7485     ;;
7486     esac
7487     }
7488    
7489 michael 5059 ac_ext=c
7490     ac_cpp='$CPP $CPPFLAGS'
7491     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7495     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7496     # On Suns, sometimes $CPP names a directory.
7497     if test -n "$CPP" && test -d "$CPP"; then
7498     CPP=
7499     fi
7500     if test -z "$CPP"; then
7501     if ${ac_cv_prog_CPP+:} false; then :
7502     $as_echo_n "(cached) " >&6
7503     else
7504     # Double quotes because CPP needs to be expanded
7505     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7506     do
7507     ac_preproc_ok=false
7508     for ac_c_preproc_warn_flag in '' yes
7509     do
7510     # Use a header file that comes with gcc, so configuring glibc
7511     # with a fresh cross-compiler works.
7512     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513     # <limits.h> exists even on freestanding compilers.
7514     # On the NeXT, cc -E runs the code through the compiler's parser,
7515     # not just through cpp. "Syntax error" is here to catch this case.
7516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517     /* end confdefs.h. */
7518     #ifdef __STDC__
7519     # include <limits.h>
7520     #else
7521     # include <assert.h>
7522     #endif
7523     Syntax error
7524     _ACEOF
7525     if ac_fn_c_try_cpp "$LINENO"; then :
7526    
7527     else
7528     # Broken: fails on valid input.
7529     continue
7530     fi
7531     rm -f conftest.err conftest.i conftest.$ac_ext
7532    
7533     # OK, works on sane cases. Now check whether nonexistent headers
7534     # can be detected and how.
7535     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536     /* end confdefs.h. */
7537     #include <ac_nonexistent.h>
7538     _ACEOF
7539     if ac_fn_c_try_cpp "$LINENO"; then :
7540     # Broken: success on invalid input.
7541     continue
7542     else
7543     # Passes both tests.
7544     ac_preproc_ok=:
7545     break
7546     fi
7547     rm -f conftest.err conftest.i conftest.$ac_ext
7548    
7549     done
7550     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7551     rm -f conftest.i conftest.err conftest.$ac_ext
7552     if $ac_preproc_ok; then :
7553     break
7554     fi
7555    
7556     done
7557     ac_cv_prog_CPP=$CPP
7558    
7559     fi
7560     CPP=$ac_cv_prog_CPP
7561     else
7562     ac_cv_prog_CPP=$CPP
7563     fi
7564     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7565     $as_echo "$CPP" >&6; }
7566     ac_preproc_ok=false
7567     for ac_c_preproc_warn_flag in '' yes
7568     do
7569     # Use a header file that comes with gcc, so configuring glibc
7570     # with a fresh cross-compiler works.
7571     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572     # <limits.h> exists even on freestanding compilers.
7573     # On the NeXT, cc -E runs the code through the compiler's parser,
7574     # not just through cpp. "Syntax error" is here to catch this case.
7575     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576     /* end confdefs.h. */
7577     #ifdef __STDC__
7578     # include <limits.h>
7579     #else
7580     # include <assert.h>
7581     #endif
7582     Syntax error
7583     _ACEOF
7584     if ac_fn_c_try_cpp "$LINENO"; then :
7585    
7586     else
7587     # Broken: fails on valid input.
7588     continue
7589     fi
7590     rm -f conftest.err conftest.i conftest.$ac_ext
7591    
7592     # OK, works on sane cases. Now check whether nonexistent headers
7593     # can be detected and how.
7594     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595     /* end confdefs.h. */
7596     #include <ac_nonexistent.h>
7597     _ACEOF
7598     if ac_fn_c_try_cpp "$LINENO"; then :
7599     # Broken: success on invalid input.
7600     continue
7601     else
7602     # Passes both tests.
7603     ac_preproc_ok=:
7604     break
7605     fi
7606     rm -f conftest.err conftest.i conftest.$ac_ext
7607    
7608     done
7609     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7610     rm -f conftest.i conftest.err conftest.$ac_ext
7611     if $ac_preproc_ok; then :
7612    
7613     else
7614     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7615     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7616     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7617     See \`config.log' for more details" "$LINENO" 5; }
7618     fi
7619    
7620     ac_ext=c
7621     ac_cpp='$CPP $CPPFLAGS'
7622     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7625    
7626    
7627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7628     $as_echo_n "checking for ANSI C header files... " >&6; }
7629     if ${ac_cv_header_stdc+:} false; then :
7630     $as_echo_n "(cached) " >&6
7631     else
7632     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633     /* end confdefs.h. */
7634     #include <stdlib.h>
7635     #include <stdarg.h>
7636     #include <string.h>
7637     #include <float.h>
7638    
7639     int
7640     main ()
7641     {
7642    
7643     ;
7644     return 0;
7645     }
7646     _ACEOF
7647     if ac_fn_c_try_compile "$LINENO"; then :
7648     ac_cv_header_stdc=yes
7649     else
7650     ac_cv_header_stdc=no
7651     fi
7652     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653    
7654     if test $ac_cv_header_stdc = yes; then
7655     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7656     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657     /* end confdefs.h. */
7658     #include <string.h>
7659    
7660     _ACEOF
7661     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662     $EGREP "memchr" >/dev/null 2>&1; then :
7663    
7664     else
7665     ac_cv_header_stdc=no
7666     fi
7667     rm -f conftest*
7668    
7669     fi
7670    
7671     if test $ac_cv_header_stdc = yes; then
7672     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674     /* end confdefs.h. */
7675     #include <stdlib.h>
7676    
7677     _ACEOF
7678     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7679     $EGREP "free" >/dev/null 2>&1; then :
7680    
7681     else
7682     ac_cv_header_stdc=no
7683     fi
7684     rm -f conftest*
7685    
7686     fi
7687    
7688     if test $ac_cv_header_stdc = yes; then
7689     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7690     if test "$cross_compiling" = yes; then :
7691     :
7692     else
7693     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694     /* end confdefs.h. */
7695     #include <ctype.h>
7696     #include <stdlib.h>
7697     #if ((' ' & 0x0FF) == 0x020)
7698     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7699     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7700     #else
7701     # define ISLOWER(c) \
7702     (('a' <= (c) && (c) <= 'i') \
7703     || ('j' <= (c) && (c) <= 'r') \
7704     || ('s' <= (c) && (c) <= 'z'))
7705     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7706     #endif
7707    
7708     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7709     int
7710     main ()
7711     {
7712     int i;
7713     for (i = 0; i < 256; i++)
7714     if (XOR (islower (i), ISLOWER (i))
7715     || toupper (i) != TOUPPER (i))
7716     return 2;
7717     return 0;
7718     }
7719     _ACEOF
7720     if ac_fn_c_try_run "$LINENO"; then :
7721    
7722     else
7723     ac_cv_header_stdc=no
7724     fi
7725     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7726     conftest.$ac_objext conftest.beam conftest.$ac_ext
7727     fi
7728    
7729     fi
7730     fi
7731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7732     $as_echo "$ac_cv_header_stdc" >&6; }
7733     if test $ac_cv_header_stdc = yes; then
7734    
7735     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7736    
7737     fi
7738    
7739     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7740     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7741     inttypes.h stdint.h unistd.h
7742     do :
7743     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7745     "
7746     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7747     cat >>confdefs.h <<_ACEOF
7748     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7749     _ACEOF
7750    
7751     fi
7752    
7753     done
7754    
7755    
7756     for ac_header in dlfcn.h
7757     do :
7758     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7759     "
7760     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7761     cat >>confdefs.h <<_ACEOF
7762     #define HAVE_DLFCN_H 1
7763     _ACEOF
7764    
7765     fi
7766    
7767     done
7768    
7769    
7770    
7771    
7772    
7773     # Set options
7774    
7775    
7776    
7777     enable_dlopen=no
7778    
7779    
7780     enable_win32_dll=no
7781    
7782    
7783     # Check whether --enable-shared was given.
7784     if test "${enable_shared+set}" = set; then :
7785     enableval=$enable_shared; p=${PACKAGE-default}
7786     case $enableval in
7787     yes) enable_shared=yes ;;
7788     no) enable_shared=no ;;
7789     *)
7790     enable_shared=no
7791     # Look at the argument we got. We use all the common list separators.
7792     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7793     for pkg in $enableval; do
7794     IFS=$lt_save_ifs
7795     if test "X$pkg" = "X$p"; then
7796     enable_shared=yes
7797     fi
7798     done
7799     IFS=$lt_save_ifs
7800     ;;
7801     esac
7802     else
7803     enable_shared=yes
7804     fi
7805    
7806    
7807    
7808    
7809    
7810    
7811    
7812    
7813    
7814     # Check whether --enable-static was given.
7815     if test "${enable_static+set}" = set; then :
7816     enableval=$enable_static; p=${PACKAGE-default}
7817     case $enableval in
7818     yes) enable_static=yes ;;
7819     no) enable_static=no ;;
7820     *)
7821     enable_static=no
7822     # Look at the argument we got. We use all the common list separators.
7823     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7824     for pkg in $enableval; do
7825     IFS=$lt_save_ifs
7826     if test "X$pkg" = "X$p"; then
7827     enable_static=yes
7828     fi
7829     done
7830     IFS=$lt_save_ifs
7831     ;;
7832     esac
7833     else
7834     enable_static=yes
7835     fi
7836    
7837    
7838    
7839    
7840    
7841    
7842    
7843    
7844    
7845    
7846     # Check whether --with-pic was given.
7847     if test "${with_pic+set}" = set; then :
7848     withval=$with_pic; lt_p=${PACKAGE-default}
7849     case $withval in
7850     yes|no) pic_mode=$withval ;;
7851     *)
7852     pic_mode=default
7853     # Look at the argument we got. We use all the common list separators.
7854     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7855     for lt_pkg in $withval; do
7856     IFS=$lt_save_ifs
7857     if test "X$lt_pkg" = "X$lt_p"; then
7858     pic_mode=yes
7859     fi
7860     done
7861     IFS=$lt_save_ifs
7862     ;;
7863     esac
7864     else
7865     pic_mode=default
7866     fi
7867    
7868    
7869    
7870    
7871    
7872    
7873    
7874    
7875     # Check whether --enable-fast-install was given.
7876     if test "${enable_fast_install+set}" = set; then :
7877     enableval=$enable_fast_install; p=${PACKAGE-default}
7878     case $enableval in
7879     yes) enable_fast_install=yes ;;
7880     no) enable_fast_install=no ;;
7881     *)
7882     enable_fast_install=no
7883     # Look at the argument we got. We use all the common list separators.
7884     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7885     for pkg in $enableval; do
7886     IFS=$lt_save_ifs
7887     if test "X$pkg" = "X$p"; then
7888     enable_fast_install=yes
7889     fi
7890     done
7891     IFS=$lt_save_ifs
7892     ;;
7893     esac
7894     else
7895     enable_fast_install=yes
7896     fi
7897    
7898    
7899    
7900    
7901    
7902    
7903    
7904    
7905     shared_archive_member_spec=
7906     case $host,$enable_shared in
7907     power*-*-aix[5-9]*,yes)
7908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7909     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7910    
7911     # Check whether --with-aix-soname was given.
7912     if test "${with_aix_soname+set}" = set; then :
7913     withval=$with_aix_soname; case $withval in
7914     aix|svr4|both)
7915     ;;
7916     *)
7917     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7918     ;;
7919     esac
7920     lt_cv_with_aix_soname=$with_aix_soname
7921     else
7922     if ${lt_cv_with_aix_soname+:} false; then :
7923     $as_echo_n "(cached) " >&6
7924     else
7925     lt_cv_with_aix_soname=aix
7926     fi
7927    
7928     with_aix_soname=$lt_cv_with_aix_soname
7929     fi
7930    
7931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7932     $as_echo "$with_aix_soname" >&6; }
7933     if test aix != "$with_aix_soname"; then
7934     # For the AIX way of multilib, we name the shared archive member
7935     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7936     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7937     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7938     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7939     if test 64 = "${OBJECT_MODE-32}"; then
7940     shared_archive_member_spec=shr_64
7941     else
7942     shared_archive_member_spec=shr
7943     fi
7944     fi
7945     ;;
7946     *)
7947     with_aix_soname=aix
7948     ;;
7949     esac
7950    
7951    
7952    
7953    
7954    
7955    
7956    
7957    
7958    
7959    
7960     # This can be used to rebuild libtool when needed
7961     LIBTOOL_DEPS=$ltmain
7962    
7963     # Always use our own libtool.
7964     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7965    
7966    
7967    
7968    
7969    
7970    
7971    
7972    
7973    
7974    
7975    
7976    
7977    
7978    
7979    
7980    
7981    
7982    
7983    
7984    
7985    
7986    
7987    
7988    
7989    
7990    
7991    
7992    
7993    
7994    
7995     test -z "$LN_S" && LN_S="ln -s"
7996    
7997    
7998    
7999    
8000    
8001    
8002    
8003    
8004    
8005    
8006    
8007    
8008    
8009    
8010     if test -n "${ZSH_VERSION+set}"; then
8011     setopt NO_GLOB_SUBST
8012     fi
8013    
8014     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8015     $as_echo_n "checking for objdir... " >&6; }
8016     if ${lt_cv_objdir+:} false; then :
8017     $as_echo_n "(cached) " >&6
8018     else
8019     rm -f .libs 2>/dev/null
8020     mkdir .libs 2>/dev/null
8021     if test -d .libs; then
8022     lt_cv_objdir=.libs
8023     else
8024     # MS-DOS does not allow filenames that begin with a dot.
8025     lt_cv_objdir=_libs
8026     fi
8027     rmdir .libs 2>/dev/null
8028     fi
8029     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8030     $as_echo "$lt_cv_objdir" >&6; }
8031     objdir=$lt_cv_objdir
8032    
8033    
8034    
8035    
8036    
8037     cat >>confdefs.h <<_ACEOF
8038     #define LT_OBJDIR "$lt_cv_objdir/"
8039     _ACEOF
8040    
8041    
8042    
8043    
8044     case $host_os in
8045     aix3*)
8046     # AIX sometimes has problems with the GCC collect2 program. For some
8047     # reason, if we set the COLLECT_NAMES environment variable, the problems
8048     # vanish in a puff of smoke.
8049     if test set != "${COLLECT_NAMES+set}"; then
8050     COLLECT_NAMES=
8051     export COLLECT_NAMES
8052     fi
8053     ;;
8054     esac
8055    
8056     # Global variables:
8057     ofile=libtool
8058     can_build_shared=yes
8059    
8060     # All known linkers require a '.a' archive for static linking (except MSVC,
8061     # which needs '.lib').
8062     libext=a
8063    
8064     with_gnu_ld=$lt_cv_prog_gnu_ld
8065    
8066     old_CC=$CC
8067     old_CFLAGS=$CFLAGS
8068    
8069 michael 5052 # Set sane defaults for various variables
8070     test -z "$CC" && CC=cc
8071     test -z "$LTCC" && LTCC=$CC
8072     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8073     test -z "$LD" && LD=ld
8074     test -z "$ac_objext" && ac_objext=o
8075    
8076 michael 5430 func_cc_basename $compiler
8077     cc_basename=$func_cc_basename_result
8078 michael 5052
8079    
8080     # Only perform the check for file, if the check method requires it
8081 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8082 michael 5052 case $deplibs_check_method in
8083     file_magic*)
8084     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8085 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8086     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8087     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8088     $as_echo_n "(cached) " >&6
8089 michael 5052 else
8090     case $MAGIC_CMD in
8091     [\\/*] | ?:[\\/]*)
8092 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8093 michael 5052 ;;
8094     *)
8095 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8096     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8097 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098     for ac_dir in $ac_dummy; do
8099 michael 5059 IFS=$lt_save_ifs
8100 michael 5052 test -z "$ac_dir" && ac_dir=.
8101 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8102     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8103 michael 5052 if test -n "$file_magic_test_file"; then
8104     case $deplibs_check_method in
8105     "file_magic "*)
8106     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8108 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109     $EGREP "$file_magic_regex" > /dev/null; then
8110     :
8111     else
8112 michael 5059 cat <<_LT_EOF 1>&2
8113 michael 5052
8114     *** Warning: the command libtool uses to detect shared libraries,
8115     *** $file_magic_cmd, produces output that libtool cannot recognize.
8116     *** The result is that libtool may fail to recognize shared libraries
8117     *** as such. This will affect the creation of libtool libraries that
8118     *** depend on shared libraries, but programs linked with such libtool
8119     *** libraries will work regardless of this problem. Nevertheless, you
8120     *** may want to report the problem to your system manager and/or to
8121     *** bug-libtool@gnu.org
8122    
8123 michael 5059 _LT_EOF
8124 michael 5052 fi ;;
8125     esac
8126     fi
8127     break
8128     fi
8129     done
8130 michael 5059 IFS=$lt_save_ifs
8131     MAGIC_CMD=$lt_save_MAGIC_CMD
8132 michael 5052 ;;
8133     esac
8134     fi
8135    
8136 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8137 michael 5052 if test -n "$MAGIC_CMD"; then
8138 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8139     $as_echo "$MAGIC_CMD" >&6; }
8140 michael 5052 else
8141 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142     $as_echo "no" >&6; }
8143 michael 5052 fi
8144    
8145 michael 5059
8146    
8147    
8148    
8149 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8150     if test -n "$ac_tool_prefix"; then
8151 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8152     $as_echo_n "checking for file... " >&6; }
8153     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8154     $as_echo_n "(cached) " >&6
8155 michael 5052 else
8156     case $MAGIC_CMD in
8157     [\\/*] | ?:[\\/]*)
8158 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8159 michael 5052 ;;
8160     *)
8161 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8162     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8163 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8164     for ac_dir in $ac_dummy; do
8165 michael 5059 IFS=$lt_save_ifs
8166 michael 5052 test -z "$ac_dir" && ac_dir=.
8167 michael 5059 if test -f "$ac_dir/file"; then
8168     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8169 michael 5052 if test -n "$file_magic_test_file"; then
8170     case $deplibs_check_method in
8171     "file_magic "*)
8172     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8173 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8174 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8175     $EGREP "$file_magic_regex" > /dev/null; then
8176     :
8177     else
8178 michael 5059 cat <<_LT_EOF 1>&2
8179 michael 5052
8180     *** Warning: the command libtool uses to detect shared libraries,
8181     *** $file_magic_cmd, produces output that libtool cannot recognize.
8182     *** The result is that libtool may fail to recognize shared libraries
8183     *** as such. This will affect the creation of libtool libraries that
8184     *** depend on shared libraries, but programs linked with such libtool
8185     *** libraries will work regardless of this problem. Nevertheless, you
8186     *** may want to report the problem to your system manager and/or to
8187     *** bug-libtool@gnu.org
8188    
8189 michael 5059 _LT_EOF
8190 michael 5052 fi ;;
8191     esac
8192     fi
8193     break
8194     fi
8195     done
8196 michael 5059 IFS=$lt_save_ifs
8197     MAGIC_CMD=$lt_save_MAGIC_CMD
8198 michael 5052 ;;
8199     esac
8200     fi
8201    
8202 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8203 michael 5052 if test -n "$MAGIC_CMD"; then
8204 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8205     $as_echo "$MAGIC_CMD" >&6; }
8206 michael 5052 else
8207 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208     $as_echo "no" >&6; }
8209 michael 5052 fi
8210    
8211 michael 5059
8212 michael 5052 else
8213     MAGIC_CMD=:
8214     fi
8215     fi
8216    
8217     fi
8218     ;;
8219     esac
8220    
8221 michael 5059 # Use C for the default configuration in the libtool script
8222 michael 5052
8223 michael 5059 lt_save_CC=$CC
8224 michael 5052 ac_ext=c
8225     ac_cpp='$CPP $CPPFLAGS'
8226     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229    
8230    
8231     # Source file extension for C test sources.
8232     ac_ext=c
8233    
8234     # Object file extension for compiled C test sources.
8235     objext=o
8236     objext=$objext
8237    
8238     # Code to be used in simple compile tests
8239 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8240 michael 5052
8241     # Code to be used in simple link tests
8242 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8243 michael 5052
8244    
8245 michael 5059
8246    
8247    
8248    
8249    
8250 michael 5052 # If no C compiler was specified, use CC.
8251     LTCC=${LTCC-"$CC"}
8252    
8253     # If no C compiler flags were specified, use CFLAGS.
8254     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8255    
8256     # Allow CC to be a program name with arguments.
8257     compiler=$CC
8258    
8259 michael 5059 # Save the default compiler, since it gets overwritten when the other
8260     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8261     compiler_DEFAULT=$CC
8262 michael 5052
8263     # save warnings/boilerplate of simple test code
8264     ac_outfile=conftest.$ac_objext
8265 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8266 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8267     _lt_compiler_boilerplate=`cat conftest.err`
8268 michael 5059 $RM conftest*
8269 michael 5052
8270     ac_outfile=conftest.$ac_objext
8271 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8272 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8273     _lt_linker_boilerplate=`cat conftest.err`
8274 michael 5059 $RM -r conftest*
8275 michael 5052
8276    
8277 michael 6098 ## CAVEAT EMPTOR:
8278     ## There is no encapsulation within the following macros, do not change
8279     ## the running order or otherwise move them around unless you know exactly
8280     ## what you are doing...
8281 michael 5059 if test -n "$compiler"; then
8282 michael 5052
8283     lt_prog_compiler_no_builtin_flag=
8284    
8285 michael 5059 if test yes = "$GCC"; then
8286     case $cc_basename in
8287     nvcc*)
8288     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8289     *)
8290     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8291     esac
8292 michael 5052
8293 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8294     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8295     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8296     $as_echo_n "(cached) " >&6
8297 michael 5052 else
8298     lt_cv_prog_compiler_rtti_exceptions=no
8299 michael 5059 ac_outfile=conftest.$ac_objext
8300     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8301     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8302 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8303     # (2) before a word containing "conftest.", or (3) at the end.
8304     # Note that $ac_compile itself does not contain backslashes and begins
8305     # with a dollar sign (not a hyphen), so the echo should work correctly.
8306     # The option is referenced via a variable to avoid confusing sed.
8307     lt_compile=`echo "$ac_compile" | $SED \
8308     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8309     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8310     -e 's:$: $lt_compiler_flag:'`
8311 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8312 michael 5052 (eval "$lt_compile" 2>conftest.err)
8313     ac_status=$?
8314     cat conftest.err >&5
8315 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8317     # The compiler can only warn and ignore the option if not recognized
8318     # So say no if there are warnings other than the usual output.
8319 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8320 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8321     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8322     lt_cv_prog_compiler_rtti_exceptions=yes
8323     fi
8324     fi
8325 michael 5059 $RM conftest*
8326 michael 5052
8327     fi
8328 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8329     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8330 michael 5052
8331 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8332 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8333     else
8334     :
8335     fi
8336    
8337     fi
8338    
8339 michael 5059
8340    
8341    
8342    
8343    
8344     lt_prog_compiler_wl=
8345 michael 5052 lt_prog_compiler_pic=
8346     lt_prog_compiler_static=
8347    
8348    
8349 michael 5059 if test yes = "$GCC"; then
8350 michael 5052 lt_prog_compiler_wl='-Wl,'
8351     lt_prog_compiler_static='-static'
8352    
8353     case $host_os in
8354     aix*)
8355     # All AIX code is PIC.
8356 michael 5059 if test ia64 = "$host_cpu"; then
8357 michael 5052 # AIX 5 now supports IA64 processor
8358     lt_prog_compiler_static='-Bstatic'
8359     fi
8360 michael 5059 lt_prog_compiler_pic='-fPIC'
8361 michael 5052 ;;
8362    
8363     amigaos*)
8364 michael 5059 case $host_cpu in
8365     powerpc)
8366     # see comment about AmigaOS4 .so support
8367     lt_prog_compiler_pic='-fPIC'
8368     ;;
8369     m68k)
8370     # FIXME: we need at least 68020 code to build shared libraries, but
8371     # adding the '-m68020' flag to GCC prevents building anything better,
8372     # like '-m68040'.
8373     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8374     ;;
8375     esac
8376 michael 5052 ;;
8377    
8378 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8379 michael 5052 # PIC is the default for these OSes.
8380     ;;
8381    
8382 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8383 michael 5052 # This hack is so that the source file can tell whether it is being
8384     # built for inclusion in a dll (and should export symbols for example).
8385 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8386     # (--disable-auto-import) libraries
8387 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8388 michael 5059 case $host_os in
8389     os2*)
8390     lt_prog_compiler_static='$wl-static'
8391     ;;
8392     esac
8393 michael 5052 ;;
8394    
8395     darwin* | rhapsody*)
8396     # PIC is the default on this platform
8397     # Common symbols not allowed in MH_DYLIB files
8398     lt_prog_compiler_pic='-fno-common'
8399     ;;
8400    
8401 michael 5059 haiku*)
8402     # PIC is the default for Haiku.
8403     # The "-static" flag exists, but is broken.
8404     lt_prog_compiler_static=
8405     ;;
8406    
8407     hpux*)
8408     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8409     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8410     # sets the default TLS model and affects inlining.
8411     case $host_cpu in
8412     hppa*64*)
8413     # +Z the default
8414     ;;
8415     *)
8416     lt_prog_compiler_pic='-fPIC'
8417     ;;
8418     esac
8419     ;;
8420    
8421     interix[3-9]*)
8422 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8423     # Instead, we relocate shared libraries at runtime.
8424     ;;
8425    
8426     msdosdjgpp*)
8427     # Just because we use GCC doesn't mean we suddenly get shared libraries
8428     # on systems that don't support them.
8429     lt_prog_compiler_can_build_shared=no
8430     enable_shared=no
8431     ;;
8432    
8433 michael 5059 *nto* | *qnx*)
8434     # QNX uses GNU C++, but need to define -shared option too, otherwise
8435     # it will coredump.
8436     lt_prog_compiler_pic='-fPIC -shared'
8437     ;;
8438    
8439 michael 5052 sysv4*MP*)
8440     if test -d /usr/nec; then
8441     lt_prog_compiler_pic=-Kconform_pic
8442     fi
8443     ;;
8444    
8445     *)
8446     lt_prog_compiler_pic='-fPIC'
8447     ;;
8448     esac
8449 michael 5059
8450     case $cc_basename in
8451     nvcc*) # Cuda Compiler Driver 2.2
8452     lt_prog_compiler_wl='-Xlinker '
8453     if test -n "$lt_prog_compiler_pic"; then
8454     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8455     fi
8456     ;;
8457     esac
8458 michael 5052 else
8459     # PORTME Check for flag to pass linker flags through the system compiler.
8460     case $host_os in
8461     aix*)
8462     lt_prog_compiler_wl='-Wl,'
8463 michael 5059 if test ia64 = "$host_cpu"; then
8464 michael 5052 # AIX 5 now supports IA64 processor
8465     lt_prog_compiler_static='-Bstatic'
8466     else
8467     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8468     fi
8469     ;;
8470    
8471 michael 5059 darwin* | rhapsody*)
8472     # PIC is the default on this platform
8473     # Common symbols not allowed in MH_DYLIB files
8474     lt_prog_compiler_pic='-fno-common'
8475     case $cc_basename in
8476     nagfor*)
8477     # NAG Fortran compiler
8478     lt_prog_compiler_wl='-Wl,-Wl,,'
8479     lt_prog_compiler_pic='-PIC'
8480     lt_prog_compiler_static='-Bstatic'
8481     ;;
8482     esac
8483     ;;
8484    
8485     mingw* | cygwin* | pw32* | os2* | cegcc*)
8486 michael 5052 # This hack is so that the source file can tell whether it is being
8487     # built for inclusion in a dll (and should export symbols for example).
8488     lt_prog_compiler_pic='-DDLL_EXPORT'
8489 michael 5059 case $host_os in
8490     os2*)
8491     lt_prog_compiler_static='$wl-static'
8492     ;;
8493     esac
8494 michael 5052 ;;
8495    
8496     hpux9* | hpux10* | hpux11*)
8497     lt_prog_compiler_wl='-Wl,'
8498     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8499     # not for PA HP-UX.
8500     case $host_cpu in
8501     hppa*64*|ia64*)
8502     # +Z the default
8503     ;;
8504     *)
8505     lt_prog_compiler_pic='+Z'
8506     ;;
8507     esac
8508     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8509 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8510 michael 5052 ;;
8511    
8512     irix5* | irix6* | nonstopux*)
8513     lt_prog_compiler_wl='-Wl,'
8514     # PIC (with -KPIC) is the default.
8515     lt_prog_compiler_static='-non_shared'
8516     ;;
8517    
8518 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8519 michael 5052 case $cc_basename in
8520 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8521     ecc*)
8522 michael 5052 lt_prog_compiler_wl='-Wl,'
8523     lt_prog_compiler_pic='-KPIC'
8524     lt_prog_compiler_static='-static'
8525     ;;
8526 michael 5059 # icc used to be incompatible with GCC.
8527     # ICC 10 doesn't accept -KPIC any more.
8528     icc* | ifort*)
8529     lt_prog_compiler_wl='-Wl,'
8530     lt_prog_compiler_pic='-fPIC'
8531     lt_prog_compiler_static='-static'
8532     ;;
8533     # Lahey Fortran 8.1.
8534     lf95*)
8535     lt_prog_compiler_wl='-Wl,'
8536     lt_prog_compiler_pic='--shared'
8537     lt_prog_compiler_static='--static'
8538     ;;
8539     nagfor*)
8540     # NAG Fortran compiler
8541     lt_prog_compiler_wl='-Wl,-Wl,,'
8542     lt_prog_compiler_pic='-PIC'
8543     lt_prog_compiler_static='-Bstatic'
8544     ;;
8545     tcc*)
8546     # Fabrice Bellard et al's Tiny C Compiler
8547     lt_prog_compiler_wl='-Wl,'
8548     lt_prog_compiler_pic='-fPIC'
8549     lt_prog_compiler_static='-static'
8550     ;;
8551     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8552 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8553     # which looks to be a dead project)
8554     lt_prog_compiler_wl='-Wl,'
8555     lt_prog_compiler_pic='-fpic'
8556     lt_prog_compiler_static='-Bstatic'
8557     ;;
8558     ccc*)
8559     lt_prog_compiler_wl='-Wl,'
8560     # All Alpha code is PIC.
8561     lt_prog_compiler_static='-non_shared'
8562     ;;
8563 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8564     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8565     lt_prog_compiler_wl='-Wl,'
8566     lt_prog_compiler_pic='-qpic'
8567     lt_prog_compiler_static='-qstaticlink'
8568     ;;
8569     *)
8570     case `$CC -V 2>&1 | sed 5q` in
8571     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8572     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8573     lt_prog_compiler_pic='-KPIC'
8574     lt_prog_compiler_static='-Bstatic'
8575     lt_prog_compiler_wl=''
8576     ;;
8577     *Sun\ F* | *Sun*Fortran*)
8578     lt_prog_compiler_pic='-KPIC'
8579     lt_prog_compiler_static='-Bstatic'
8580     lt_prog_compiler_wl='-Qoption ld '
8581     ;;
8582     *Sun\ C*)
8583     # Sun C 5.9
8584     lt_prog_compiler_pic='-KPIC'
8585     lt_prog_compiler_static='-Bstatic'
8586     lt_prog_compiler_wl='-Wl,'
8587     ;;
8588     *Intel*\ [CF]*Compiler*)
8589     lt_prog_compiler_wl='-Wl,'
8590     lt_prog_compiler_pic='-fPIC'
8591     lt_prog_compiler_static='-static'
8592     ;;
8593     *Portland\ Group*)
8594     lt_prog_compiler_wl='-Wl,'
8595     lt_prog_compiler_pic='-fpic'
8596     lt_prog_compiler_static='-Bstatic'
8597     ;;
8598     esac
8599     ;;
8600 michael 5052 esac
8601     ;;
8602    
8603 michael 5059 newsos6)
8604     lt_prog_compiler_pic='-KPIC'
8605     lt_prog_compiler_static='-Bstatic'
8606     ;;
8607    
8608     *nto* | *qnx*)
8609     # QNX uses GNU C++, but need to define -shared option too, otherwise
8610     # it will coredump.
8611     lt_prog_compiler_pic='-fPIC -shared'
8612     ;;
8613    
8614 michael 5052 osf3* | osf4* | osf5*)
8615     lt_prog_compiler_wl='-Wl,'
8616     # All OSF/1 code is PIC.
8617     lt_prog_compiler_static='-non_shared'
8618     ;;
8619    
8620 michael 5059 rdos*)
8621     lt_prog_compiler_static='-non_shared'
8622     ;;
8623    
8624 michael 5052 solaris*)
8625     lt_prog_compiler_pic='-KPIC'
8626     lt_prog_compiler_static='-Bstatic'
8627     case $cc_basename in
8628 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8629 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8630     *)
8631     lt_prog_compiler_wl='-Wl,';;
8632     esac
8633     ;;
8634    
8635     sunos4*)
8636     lt_prog_compiler_wl='-Qoption ld '
8637     lt_prog_compiler_pic='-PIC'
8638     lt_prog_compiler_static='-Bstatic'
8639     ;;
8640    
8641     sysv4 | sysv4.2uw2* | sysv4.3*)
8642     lt_prog_compiler_wl='-Wl,'
8643     lt_prog_compiler_pic='-KPIC'
8644     lt_prog_compiler_static='-Bstatic'
8645     ;;
8646    
8647     sysv4*MP*)
8648 michael 5059 if test -d /usr/nec; then
8649 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8650     lt_prog_compiler_static='-Bstatic'
8651     fi
8652     ;;
8653    
8654     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8655     lt_prog_compiler_wl='-Wl,'
8656     lt_prog_compiler_pic='-KPIC'
8657     lt_prog_compiler_static='-Bstatic'
8658     ;;
8659    
8660     unicos*)
8661     lt_prog_compiler_wl='-Wl,'
8662     lt_prog_compiler_can_build_shared=no
8663     ;;
8664    
8665     uts4*)
8666     lt_prog_compiler_pic='-pic'
8667     lt_prog_compiler_static='-Bstatic'
8668     ;;
8669    
8670     *)
8671     lt_prog_compiler_can_build_shared=no
8672     ;;
8673     esac
8674     fi
8675    
8676 michael 5059 case $host_os in
8677     # For platforms that do not support PIC, -DPIC is meaningless:
8678     *djgpp*)
8679     lt_prog_compiler_pic=
8680     ;;
8681     *)
8682     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8683     ;;
8684     esac
8685 michael 5052
8686 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8687     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8688     if ${lt_cv_prog_compiler_pic+:} false; then :
8689     $as_echo_n "(cached) " >&6
8690     else
8691     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8692     fi
8693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8694     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8695     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8696    
8697 michael 5052 #
8698     # Check to make sure the PIC flag actually works.
8699     #
8700     if test -n "$lt_prog_compiler_pic"; then
8701 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8702     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8703     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8704     $as_echo_n "(cached) " >&6
8705 michael 5052 else
8706 michael 5059 lt_cv_prog_compiler_pic_works=no
8707     ac_outfile=conftest.$ac_objext
8708     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8709     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8710 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8711     # (2) before a word containing "conftest.", or (3) at the end.
8712     # Note that $ac_compile itself does not contain backslashes and begins
8713     # with a dollar sign (not a hyphen), so the echo should work correctly.
8714     # The option is referenced via a variable to avoid confusing sed.
8715     lt_compile=`echo "$ac_compile" | $SED \
8716     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8717     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8718     -e 's:$: $lt_compiler_flag:'`
8719 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8720 michael 5052 (eval "$lt_compile" 2>conftest.err)
8721     ac_status=$?
8722     cat conftest.err >&5
8723 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8725     # The compiler can only warn and ignore the option if not recognized
8726     # So say no if there are warnings other than the usual output.
8727 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8728 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8729     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8730 michael 5059 lt_cv_prog_compiler_pic_works=yes
8731 michael 5052 fi
8732     fi
8733 michael 5059 $RM conftest*
8734 michael 5052
8735     fi
8736 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8737     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8738 michael 5052
8739 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8740 michael 5052 case $lt_prog_compiler_pic in
8741     "" | " "*) ;;
8742     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8743     esac
8744     else
8745     lt_prog_compiler_pic=
8746     lt_prog_compiler_can_build_shared=no
8747     fi
8748    
8749     fi
8750    
8751 michael 5059
8752    
8753    
8754    
8755    
8756    
8757    
8758    
8759    
8760    
8761 michael 5052 #
8762     # Check to make sure the static flag actually works.
8763     #
8764     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8765 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8766     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8767     if ${lt_cv_prog_compiler_static_works+:} false; then :
8768     $as_echo_n "(cached) " >&6
8769 michael 5052 else
8770 michael 5059 lt_cv_prog_compiler_static_works=no
8771     save_LDFLAGS=$LDFLAGS
8772 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8773 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8774 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8775     # The linker can only warn and ignore the option if not recognized
8776     # So say no if there are warnings
8777     if test -s conftest.err; then
8778     # Append any errors to the config.log.
8779     cat conftest.err 1>&5
8780 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8781 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8782     if diff conftest.exp conftest.er2 >/dev/null; then
8783 michael 5059 lt_cv_prog_compiler_static_works=yes
8784 michael 5052 fi
8785     else
8786 michael 5059 lt_cv_prog_compiler_static_works=yes
8787 michael 5052 fi
8788     fi
8789 michael 5059 $RM -r conftest*
8790     LDFLAGS=$save_LDFLAGS
8791 michael 5052
8792     fi
8793 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8794     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8795 michael 5052
8796 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8797 michael 5052 :
8798     else
8799     lt_prog_compiler_static=
8800     fi
8801    
8802    
8803 michael 5059
8804    
8805    
8806    
8807    
8808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8809     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8810     if ${lt_cv_prog_compiler_c_o+:} false; then :
8811     $as_echo_n "(cached) " >&6
8812 michael 5052 else
8813     lt_cv_prog_compiler_c_o=no
8814 michael 5059 $RM -r conftest 2>/dev/null
8815 michael 5052 mkdir conftest
8816     cd conftest
8817     mkdir out
8818 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8819 michael 5052
8820     lt_compiler_flag="-o out/conftest2.$ac_objext"
8821     # Insert the option either (1) after the last *FLAGS variable, or
8822     # (2) before a word containing "conftest.", or (3) at the end.
8823     # Note that $ac_compile itself does not contain backslashes and begins
8824     # with a dollar sign (not a hyphen), so the echo should work correctly.
8825     lt_compile=`echo "$ac_compile" | $SED \
8826     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8827     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8828     -e 's:$: $lt_compiler_flag:'`
8829 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8830 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8831     ac_status=$?
8832     cat out/conftest.err >&5
8833 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8835     then
8836     # The compiler can only warn and ignore the option if not recognized
8837     # So say no if there are warnings
8838 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8839 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8840     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8841     lt_cv_prog_compiler_c_o=yes
8842     fi
8843     fi
8844     chmod u+w . 2>&5
8845 michael 5059 $RM conftest*
8846 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8847     # template instantiation
8848 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8849     $RM out/* && rmdir out
8850 michael 5052 cd ..
8851 michael 5059 $RM -r conftest
8852     $RM conftest*
8853 michael 5052
8854     fi
8855 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8856     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8857 michael 5052
8858    
8859 michael 5059
8860    
8861    
8862    
8863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8864     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8865     if ${lt_cv_prog_compiler_c_o+:} false; then :
8866     $as_echo_n "(cached) " >&6
8867     else
8868     lt_cv_prog_compiler_c_o=no
8869     $RM -r conftest 2>/dev/null
8870     mkdir conftest
8871     cd conftest
8872     mkdir out
8873     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874    
8875     lt_compiler_flag="-o out/conftest2.$ac_objext"
8876     # Insert the option either (1) after the last *FLAGS variable, or
8877     # (2) before a word containing "conftest.", or (3) at the end.
8878     # Note that $ac_compile itself does not contain backslashes and begins
8879     # with a dollar sign (not a hyphen), so the echo should work correctly.
8880     lt_compile=`echo "$ac_compile" | $SED \
8881     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883     -e 's:$: $lt_compiler_flag:'`
8884     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8885     (eval "$lt_compile" 2>out/conftest.err)
8886     ac_status=$?
8887     cat out/conftest.err >&5
8888     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8890     then
8891     # The compiler can only warn and ignore the option if not recognized
8892     # So say no if there are warnings
8893     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8894     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8895     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8896     lt_cv_prog_compiler_c_o=yes
8897     fi
8898     fi
8899     chmod u+w . 2>&5
8900     $RM conftest*
8901     # SGI C++ compiler will create directory out/ii_files/ for
8902     # template instantiation
8903     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8904     $RM out/* && rmdir out
8905     cd ..
8906     $RM -r conftest
8907     $RM conftest*
8908    
8909     fi
8910     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8911     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8912    
8913    
8914    
8915    
8916     hard_links=nottested
8917     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8918 michael 5052 # do not overwrite the value of need_locks provided by the user
8919 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8920     $as_echo_n "checking if we can lock with hard links... " >&6; }
8921 michael 5052 hard_links=yes
8922 michael 5059 $RM conftest*
8923 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8924     touch conftest.a
8925     ln conftest.a conftest.b 2>&5 || hard_links=no
8926     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8927 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8928     $as_echo "$hard_links" >&6; }
8929     if test no = "$hard_links"; then
8930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8931     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8932 michael 5052 need_locks=warn
8933     fi
8934     else
8935     need_locks=no
8936     fi
8937    
8938    
8939 michael 5059
8940    
8941    
8942    
8943     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8944     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8945    
8946 michael 5052 runpath_var=
8947     allow_undefined_flag=
8948 michael 5059 always_export_symbols=no
8949 michael 5052 archive_cmds=
8950     archive_expsym_cmds=
8951 michael 5059 compiler_needs_object=no
8952     enable_shared_with_static_runtimes=no
8953 michael 5052 export_dynamic_flag_spec=
8954 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8955     hardcode_automatic=no
8956     hardcode_direct=no
8957     hardcode_direct_absolute=no
8958 michael 5052 hardcode_libdir_flag_spec=
8959     hardcode_libdir_separator=
8960     hardcode_minus_L=no
8961     hardcode_shlibpath_var=unsupported
8962 michael 5059 inherit_rpath=no
8963 michael 5052 link_all_deplibs=unknown
8964     module_cmds=
8965     module_expsym_cmds=
8966 michael 5059 old_archive_from_new_cmds=
8967     old_archive_from_expsyms_cmds=
8968     thread_safe_flag_spec=
8969     whole_archive_flag_spec=
8970 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
8971     # included in the symbol list
8972     include_expsyms=
8973     # exclude_expsyms can be an extended regexp of symbols to exclude
8974 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8975     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8976     # as well as any symbol that contains 'd'.
8977     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8978 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8979     # platforms (ab)use it in PIC code, but their linkers get confused if
8980     # the symbol is explicitly referenced. Since portable code cannot
8981     # rely on this symbol name, it's probably fine to never include it in
8982     # preloaded symbol tables.
8983 michael 5059 # Exclude shared library initialization/finalization symbols.
8984 michael 5052 extract_expsyms_cmds=
8985    
8986     case $host_os in
8987 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
8988 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8989     # When not using gcc, we currently assume that we are using
8990     # Microsoft Visual C++.
8991 michael 5059 if test yes != "$GCC"; then
8992 michael 5052 with_gnu_ld=no
8993     fi
8994     ;;
8995     interix*)
8996     # we just hope/assume this is gcc and not c89 (= MSVC++)
8997     with_gnu_ld=yes
8998     ;;
8999 michael 5059 openbsd* | bitrig*)
9000 michael 5052 with_gnu_ld=no
9001     ;;
9002     esac
9003    
9004     ld_shlibs=yes
9005 michael 5059
9006     # On some targets, GNU ld is compatible enough with the native linker
9007     # that we're better off using the native interface for both.
9008     lt_use_gnu_ld_interface=no
9009     if test yes = "$with_gnu_ld"; then
9010     case $host_os in
9011     aix*)
9012     # The AIX port of GNU ld has always aspired to compatibility
9013     # with the native linker. However, as the warning in the GNU ld
9014     # block says, versions before 2.19.5* couldn't really create working
9015     # shared libraries, regardless of the interface used.
9016     case `$LD -v 2>&1` in
9017     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9018     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9019     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9020     *)
9021     lt_use_gnu_ld_interface=yes
9022     ;;
9023     esac
9024     ;;
9025     *)
9026     lt_use_gnu_ld_interface=yes
9027     ;;
9028     esac
9029     fi
9030    
9031     if test yes = "$lt_use_gnu_ld_interface"; then
9032 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9033 michael 5059 wlarc='$wl'
9034 michael 5052
9035     # Set some defaults for GNU ld with shared library support. These
9036     # are reset later if shared libraries are not supported. Putting them
9037     # here allows them to be overridden if necessary.
9038     runpath_var=LD_RUN_PATH
9039 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9040     export_dynamic_flag_spec='$wl--export-dynamic'
9041 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9042 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9043     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9044     else
9045     whole_archive_flag_spec=
9046 michael 5052 fi
9047     supports_anon_versioning=no
9048 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9049     *GNU\ gold*) supports_anon_versioning=yes ;;
9050 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9051     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9052     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9053     *\ 2.11.*) ;; # other 2.11 versions
9054     *) supports_anon_versioning=yes ;;
9055     esac
9056    
9057     # See if GNU ld supports shared libraries.
9058     case $host_os in
9059 michael 5059 aix[3-9]*)
9060 michael 5052 # On AIX/PPC, the GNU linker is very broken
9061 michael 5059 if test ia64 != "$host_cpu"; then
9062 michael 5052 ld_shlibs=no
9063 michael 5059 cat <<_LT_EOF 1>&2
9064 michael 5052
9065 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9066 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9067     *** Therefore, libtool is disabling shared libraries support. If you
9068 michael 5059 *** really care for shared libraries, you may want to install binutils
9069     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9070     *** You will then need to restart the configuration process.
9071 michael 5052
9072 michael 5059 _LT_EOF
9073 michael 5052 fi
9074     ;;
9075    
9076     amigaos*)
9077 michael 5059 case $host_cpu in
9078     powerpc)
9079     # see comment about AmigaOS4 .so support
9080     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081     archive_expsym_cmds=''
9082     ;;
9083     m68k)
9084     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)'
9085     hardcode_libdir_flag_spec='-L$libdir'
9086     hardcode_minus_L=yes
9087     ;;
9088     esac
9089 michael 5052 ;;
9090    
9091     beos*)
9092 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9093 michael 5052 allow_undefined_flag=unsupported
9094     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9095     # support --undefined. This deserves some investigation. FIXME
9096 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9097 michael 5052 else
9098     ld_shlibs=no
9099     fi
9100     ;;
9101    
9102 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9103     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9104 michael 5052 # as there is no search path for DLLs.
9105     hardcode_libdir_flag_spec='-L$libdir'
9106 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9107 michael 5052 allow_undefined_flag=unsupported
9108     always_export_symbols=no
9109     enable_shared_with_static_runtimes=yes
9110 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9111     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9112 michael 5052
9113 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9114     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9115     # If the export-symbols file already is a .def file, use it as
9116     # is; otherwise, prepend EXPORTS...
9117     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9118     cp $export_symbols $output_objdir/$soname.def;
9119     else
9120     echo EXPORTS > $output_objdir/$soname.def;
9121     cat $export_symbols >> $output_objdir/$soname.def;
9122     fi~
9123     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9124 michael 5052 else
9125     ld_shlibs=no
9126     fi
9127     ;;
9128    
9129 michael 5059 haiku*)
9130     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9131     link_all_deplibs=yes
9132     ;;
9133    
9134     os2*)
9135     hardcode_libdir_flag_spec='-L$libdir'
9136     hardcode_minus_L=yes
9137     allow_undefined_flag=unsupported
9138     shrext_cmds=.dll
9139     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9140     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9141     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9142     $ECHO EXPORTS >> $output_objdir/$libname.def~
9143     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9144     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9145     emximp -o $lib $output_objdir/$libname.def'
9146     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9147     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9148     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9149     $ECHO EXPORTS >> $output_objdir/$libname.def~
9150     prefix_cmds="$SED"~
9151     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9152     prefix_cmds="$prefix_cmds -e 1d";
9153     fi~
9154     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9155     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9156     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9157     emximp -o $lib $output_objdir/$libname.def'
9158     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9159     enable_shared_with_static_runtimes=yes
9160     ;;
9161    
9162     interix[3-9]*)
9163 michael 5052 hardcode_direct=no
9164     hardcode_shlibpath_var=no
9165 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9166     export_dynamic_flag_spec='$wl-E'
9167 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9168     # Instead, shared libraries are loaded at an image base (0x10000000 by
9169     # default) and relocated if they conflict, which is a slow very memory
9170     # consuming and fragmenting process. To avoid this, we pick a random,
9171     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9172     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9173 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9174     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'
9175 michael 5052 ;;
9176    
9177 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9178     tmp_diet=no
9179     if test linux-dietlibc = "$host_os"; then
9180     case $cc_basename in
9181     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9182     esac
9183     fi
9184     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9185     && test no = "$tmp_diet"
9186     then
9187     tmp_addflag=' $pic_flag'
9188     tmp_sharedflag='-shared'
9189 michael 5052 case $cc_basename,$host_cpu in
9190 michael 5059 pgcc*) # Portland Group C compiler
9191     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'
9192 michael 5052 tmp_addflag=' $pic_flag'
9193     ;;
9194 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9195     # Portland Group f77 and f90 compilers
9196     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'
9197 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9198 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9199 michael 5052 tmp_addflag=' -i_dynamic' ;;
9200     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9201     tmp_addflag=' -i_dynamic -nofor_main' ;;
9202     ifc* | ifort*) # Intel Fortran compiler
9203     tmp_addflag=' -nofor_main' ;;
9204 michael 5059 lf95*) # Lahey Fortran 8.1
9205     whole_archive_flag_spec=
9206     tmp_sharedflag='--shared' ;;
9207     nagfor*) # NAGFOR 5.3
9208     tmp_sharedflag='-Wl,-shared' ;;
9209     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9210     tmp_sharedflag='-qmkshrobj'
9211     tmp_addflag= ;;
9212     nvcc*) # Cuda Compiler Driver 2.2
9213     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'
9214     compiler_needs_object=yes
9215     ;;
9216 michael 5052 esac
9217 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9218     *Sun\ C*) # Sun C 5.9
9219     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'
9220     compiler_needs_object=yes
9221     tmp_sharedflag='-G' ;;
9222     *Sun\ F*) # Sun Fortran 8.3
9223     tmp_sharedflag='-G' ;;
9224     esac
9225     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9226 michael 5052
9227 michael 5059 if test yes = "$supports_anon_versioning"; then
9228     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230     echo "local: *; };" >> $output_objdir/$libname.ver~
9231     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9232     fi
9233    
9234     case $cc_basename in
9235     tcc*)
9236     export_dynamic_flag_spec='-rdynamic'
9237     ;;
9238     xlf* | bgf* | bgxlf* | mpixlf*)
9239     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9240     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9241     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9242     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9243     if test yes = "$supports_anon_versioning"; then
9244     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9245     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9246     echo "local: *; };" >> $output_objdir/$libname.ver~
9247     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9248     fi
9249     ;;
9250     esac
9251 michael 5052 else
9252 michael 5059 ld_shlibs=no
9253 michael 5052 fi
9254     ;;
9255    
9256 michael 5059 netbsd*)
9257     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9258 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9259     wlarc=
9260     else
9261 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9262     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9263 michael 5052 fi
9264     ;;
9265    
9266     solaris*)
9267 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9268 michael 5052 ld_shlibs=no
9269 michael 5059 cat <<_LT_EOF 1>&2
9270 michael 5052
9271     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9272     *** create shared libraries on Solaris systems. Therefore, libtool
9273     *** is disabling shared libraries support. We urge you to upgrade GNU
9274     *** binutils to release 2.9.1 or newer. Another option is to modify
9275     *** your PATH or compiler configuration so that the native linker is
9276     *** used, and then restart.
9277    
9278 michael 5059 _LT_EOF
9279     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9281     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9282 michael 5052 else
9283     ld_shlibs=no
9284     fi
9285     ;;
9286    
9287     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9288     case `$LD -v 2>&1` in
9289     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9290     ld_shlibs=no
9291     cat <<_LT_EOF 1>&2
9292    
9293 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9294 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9295     *** is disabling shared libraries support. We urge you to upgrade GNU
9296     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9297     *** your PATH or compiler configuration so that the native linker is
9298     *** used, and then restart.
9299    
9300     _LT_EOF
9301     ;;
9302     *)
9303 michael 5059 # For security reasons, it is highly recommended that you always
9304     # use absolute paths for naming shared libraries, and exclude the
9305     # DT_RUNPATH tag from executables and libraries. But doing so
9306     # requires that you compile everything twice, which is a pain.
9307     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9309     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9310     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9311 michael 5052 else
9312     ld_shlibs=no
9313     fi
9314     ;;
9315     esac
9316     ;;
9317    
9318     sunos4*)
9319     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320     wlarc=
9321     hardcode_direct=yes
9322     hardcode_shlibpath_var=no
9323     ;;
9324    
9325     *)
9326 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9327     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9328     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9329 michael 5052 else
9330     ld_shlibs=no
9331     fi
9332     ;;
9333     esac
9334    
9335 michael 5059 if test no = "$ld_shlibs"; then
9336 michael 5052 runpath_var=
9337     hardcode_libdir_flag_spec=
9338     export_dynamic_flag_spec=
9339     whole_archive_flag_spec=
9340     fi
9341     else
9342     # PORTME fill in a description of your system's linker (not GNU ld)
9343     case $host_os in
9344     aix3*)
9345     allow_undefined_flag=unsupported
9346     always_export_symbols=yes
9347     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'
9348     # Note: this linker hardcodes the directories in LIBPATH if there
9349     # are no directories specified by -L.
9350     hardcode_minus_L=yes
9351 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9352 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9353     # broken collect2.
9354     hardcode_direct=unsupported
9355     fi
9356     ;;
9357    
9358 michael 5059 aix[4-9]*)
9359     if test ia64 = "$host_cpu"; then
9360 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9361     # have to do anything special.
9362     aix_use_runtimelinking=no
9363     exp_sym_flag='-Bexport'
9364 michael 5059 no_entry_flag=
9365 michael 5052 else
9366     # If we're using GNU nm, then we don't want the "-C" option.
9367 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9368     # Without the "-l" option, or with the "-B" option, AIX nm treats
9369     # weak defined symbols like other global defined symbols, whereas
9370     # GNU nm marks them as "W".
9371     # While the 'weak' keyword is ignored in the Export File, we need
9372     # it in the Import File for the 'aix-soname' feature, so we have
9373     # to replace the "-B" option with "-P" for AIX nm.
9374     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9375     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9376 michael 5052 else
9377 michael 5059 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9378 michael 5052 fi
9379     aix_use_runtimelinking=no
9380    
9381     # Test if we are trying to use run time linking or normal
9382     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9383 michael 5059 # have runtime linking enabled, and use it for executables.
9384     # For shared libraries, we enable/disable runtime linking
9385     # depending on the kind of the shared library created -
9386     # when "with_aix_soname,aix_use_runtimelinking" is:
9387     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9388     # "aix,yes" lib.so shared, rtl:yes, for executables
9389     # lib.a static archive
9390     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9391     # lib.a(lib.so.V) shared, rtl:no, for executables
9392     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9393     # lib.a(lib.so.V) shared, rtl:no
9394     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9395     # lib.a static archive
9396     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9397 michael 5052 for ld_flag in $LDFLAGS; do
9398 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9399     aix_use_runtimelinking=yes
9400     break
9401     fi
9402 michael 5052 done
9403 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9404     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9405     # so we don't have lib.a shared libs to link our executables.
9406     # We have to force runtime linking in this case.
9407     aix_use_runtimelinking=yes
9408     LDFLAGS="$LDFLAGS -Wl,-brtl"
9409     fi
9410 michael 5052 ;;
9411     esac
9412    
9413     exp_sym_flag='-bexport'
9414     no_entry_flag='-bnoentry'
9415     fi
9416    
9417     # When large executables or shared objects are built, AIX ld can
9418     # have problems creating the table of contents. If linking a library
9419     # or program results in "error TOC overflow" add -mminimal-toc to
9420     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9421     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9422    
9423     archive_cmds=''
9424     hardcode_direct=yes
9425 michael 5059 hardcode_direct_absolute=yes
9426 michael 5052 hardcode_libdir_separator=':'
9427     link_all_deplibs=yes
9428 michael 5059 file_list_spec='$wl-f,'
9429     case $with_aix_soname,$aix_use_runtimelinking in
9430     aix,*) ;; # traditional, no import file
9431     svr4,* | *,yes) # use import file
9432     # The Import File defines what to hardcode.
9433     hardcode_direct=no
9434     hardcode_direct_absolute=no
9435     ;;
9436     esac
9437 michael 5052
9438 michael 5059 if test yes = "$GCC"; then
9439 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9440     # We only want to do this on AIX 4.2 and lower, the check
9441     # below for broken collect2 doesn't work under 4.3+
9442 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9443     if test -f "$collect2name" &&
9444     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9445 michael 5052 then
9446 michael 5059 # We have reworked collect2
9447     :
9448 michael 5052 else
9449 michael 5059 # We have old collect2
9450     hardcode_direct=unsupported
9451     # It fails to find uninstalled libraries when the uninstalled
9452     # path is not listed in the libpath. Setting hardcode_minus_L
9453     # to unsupported forces relinking
9454     hardcode_minus_L=yes
9455     hardcode_libdir_flag_spec='-L$libdir'
9456     hardcode_libdir_separator=
9457 michael 5052 fi
9458     ;;
9459     esac
9460     shared_flag='-shared'
9461 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9462     shared_flag="$shared_flag "'$wl-G'
9463 michael 5052 fi
9464 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9465     # shared library, or the linker may eventually find shared libraries
9466     # /with/ Import File - we do not want to mix them.
9467     shared_flag_aix='-shared'
9468     shared_flag_svr4='-shared $wl-G'
9469 michael 5052 else
9470     # not using gcc
9471 michael 5059 if test ia64 = "$host_cpu"; then
9472     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9473     # chokes on -Wl,-G. The following line is correct:
9474 michael 5052 shared_flag='-G'
9475     else
9476 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9477     shared_flag='$wl-G'
9478 michael 5052 else
9479 michael 5059 shared_flag='$wl-bM:SRE'
9480 michael 5052 fi
9481 michael 5059 shared_flag_aix='$wl-bM:SRE'
9482     shared_flag_svr4='$wl-G'
9483 michael 5052 fi
9484     fi
9485    
9486 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9487 michael 5052 # It seems that -bexpall does not export symbols beginning with
9488     # underscore (_), so it is better to generate a list of symbols to export.
9489     always_export_symbols=yes
9490 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9491 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9492     # -berok will link without error, but may produce a broken library.
9493     allow_undefined_flag='-berok'
9494 michael 5059 # Determine the default libpath from the value encoded in an
9495     # empty executable.
9496     if test set = "${lt_cv_aix_libpath+set}"; then
9497     aix_libpath=$lt_cv_aix_libpath
9498     else
9499     if ${lt_cv_aix_libpath_+:} false; then :
9500     $as_echo_n "(cached) " >&6
9501     else
9502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503 michael 5052 /* end confdefs.h. */
9504    
9505     int
9506     main ()
9507     {
9508    
9509     ;
9510     return 0;
9511     }
9512     _ACEOF
9513 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9514 michael 5052
9515 michael 5059 lt_aix_libpath_sed='
9516     /Import File Strings/,/^$/ {
9517     /^0/ {
9518     s/^0 *\([^ ]*\) *$/\1/
9519     p
9520     }
9521     }'
9522     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523     # Check for a 64-bit object if we didn't find anything.
9524     if test -z "$lt_cv_aix_libpath_"; then
9525     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526     fi
9527     fi
9528     rm -f core conftest.err conftest.$ac_objext \
9529     conftest$ac_exeext conftest.$ac_ext
9530     if test -z "$lt_cv_aix_libpath_"; then
9531     lt_cv_aix_libpath_=/usr/lib:/lib
9532     fi
9533 michael 5052
9534 michael 5059 fi
9535 michael 5052
9536 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9537 michael 5052 fi
9538    
9539 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9540     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9541     else
9542     if test ia64 = "$host_cpu"; then
9543     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9544 michael 5052 allow_undefined_flag="-z nodefs"
9545 michael 5059 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"
9546 michael 5052 else
9547 michael 5059 # Determine the default libpath from the value encoded in an
9548     # empty executable.
9549     if test set = "${lt_cv_aix_libpath+set}"; then
9550     aix_libpath=$lt_cv_aix_libpath
9551     else
9552     if ${lt_cv_aix_libpath_+:} false; then :
9553     $as_echo_n "(cached) " >&6
9554     else
9555     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 michael 5052 /* end confdefs.h. */
9557    
9558     int
9559     main ()
9560     {
9561    
9562     ;
9563     return 0;
9564     }
9565     _ACEOF
9566 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9567 michael 5052
9568 michael 5059 lt_aix_libpath_sed='
9569     /Import File Strings/,/^$/ {
9570     /^0/ {
9571     s/^0 *\([^ ]*\) *$/\1/
9572     p
9573     }
9574     }'
9575     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576     # Check for a 64-bit object if we didn't find anything.
9577     if test -z "$lt_cv_aix_libpath_"; then
9578     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9579     fi
9580     fi
9581     rm -f core conftest.err conftest.$ac_objext \
9582     conftest$ac_exeext conftest.$ac_ext
9583     if test -z "$lt_cv_aix_libpath_"; then
9584     lt_cv_aix_libpath_=/usr/lib:/lib
9585     fi
9586 michael 5052
9587 michael 5059 fi
9588 michael 5052
9589 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9590 michael 5052 fi
9591    
9592 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9593 michael 5052 # Warning - without using the other run time loading flags,
9594     # -berok will link without error, but may produce a broken library.
9595 michael 5059 no_undefined_flag=' $wl-bernotok'
9596     allow_undefined_flag=' $wl-berok'
9597     if test yes = "$with_gnu_ld"; then
9598     # We only use this code for GNU lds that support --whole-archive.
9599     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9600     else
9601     # Exported symbols can be pulled into shared objects from archives
9602     whole_archive_flag_spec='$convenience'
9603     fi
9604 michael 5052 archive_cmds_need_lc=yes
9605 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9606     # -brtl affects multiple linker settings, -berok does not and is overridden later
9607     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9608     if test svr4 != "$with_aix_soname"; then
9609     # This is similar to how AIX traditionally builds its shared libraries.
9610     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9611     fi
9612     if test aix != "$with_aix_soname"; then
9613     archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9614     else
9615     # used by -dlpreopen to get the symbols
9616     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9617     fi
9618     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9619 michael 5052 fi
9620     fi
9621     ;;
9622    
9623     amigaos*)
9624 michael 5059 case $host_cpu in
9625     powerpc)
9626     # see comment about AmigaOS4 .so support
9627     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9628     archive_expsym_cmds=''
9629     ;;
9630     m68k)
9631     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)'
9632     hardcode_libdir_flag_spec='-L$libdir'
9633     hardcode_minus_L=yes
9634     ;;
9635     esac
9636 michael 5052 ;;
9637    
9638     bsdi[45]*)
9639     export_dynamic_flag_spec=-rdynamic
9640     ;;
9641    
9642 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9643 michael 5052 # When not using gcc, we currently assume that we are using
9644     # Microsoft Visual C++.
9645     # hardcode_libdir_flag_spec is actually meaningless, as there is
9646     # no search path for DLLs.
9647 michael 5059 case $cc_basename in
9648     cl*)
9649     # Native MSVC
9650     hardcode_libdir_flag_spec=' '
9651     allow_undefined_flag=unsupported
9652     always_export_symbols=yes
9653     file_list_spec='@'
9654     # Tell ltmain to make .lib files, not .a files.
9655     libext=lib
9656     # Tell ltmain to make .dll files, not .so files.
9657     shrext_cmds=.dll
9658     # FIXME: Setting linknames here is a bad hack.
9659     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9660     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9661     cp "$export_symbols" "$output_objdir/$soname.def";
9662     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9663     else
9664     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9665     fi~
9666     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9667     linknames='
9668     # The linker will not automatically build a static lib if we build a DLL.
9669     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9670     enable_shared_with_static_runtimes=yes
9671     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9672     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9673     # Don't use ranlib
9674     old_postinstall_cmds='chmod 644 $oldlib'
9675     postlink_cmds='lt_outputfile="@OUTPUT@"~
9676     lt_tool_outputfile="@TOOL_OUTPUT@"~
9677     case $lt_outputfile in
9678     *.exe|*.EXE) ;;
9679     *)
9680     lt_outputfile=$lt_outputfile.exe
9681     lt_tool_outputfile=$lt_tool_outputfile.exe
9682     ;;
9683     esac~
9684     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9685     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9686     $RM "$lt_outputfile.manifest";
9687     fi'
9688     ;;
9689     *)
9690     # Assume MSVC wrapper
9691     hardcode_libdir_flag_spec=' '
9692     allow_undefined_flag=unsupported
9693     # Tell ltmain to make .lib files, not .a files.
9694     libext=lib
9695     # Tell ltmain to make .dll files, not .so files.
9696     shrext_cmds=.dll
9697     # FIXME: Setting linknames here is a bad hack.
9698     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9699     # The linker will automatically build a .lib file if we build a DLL.
9700     old_archive_from_new_cmds='true'
9701     # FIXME: Should let the user specify the lib program.
9702     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9703     enable_shared_with_static_runtimes=yes
9704     ;;
9705     esac
9706 michael 5052 ;;
9707    
9708     darwin* | rhapsody*)
9709 michael 5059
9710    
9711     archive_cmds_need_lc=no
9712     hardcode_direct=no
9713     hardcode_automatic=yes
9714     hardcode_shlibpath_var=unsupported
9715     if test yes = "$lt_cv_ld_force_load"; then
9716     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\"`'
9717    
9718     else
9719     whole_archive_flag_spec=''
9720     fi
9721     link_all_deplibs=yes
9722     allow_undefined_flag=$_lt_dar_allow_undefined
9723     case $cc_basename in
9724     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9725     *) _lt_dar_can_shared=$GCC ;;
9726     esac
9727     if test yes = "$_lt_dar_can_shared"; then
9728     output_verbose_link_cmd=func_echo_all
9729     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9730     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9731     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"
9732     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"
9733    
9734     else
9735     ld_shlibs=no
9736     fi
9737    
9738 michael 5052 ;;
9739    
9740     dgux*)
9741     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742     hardcode_libdir_flag_spec='-L$libdir'
9743     hardcode_shlibpath_var=no
9744     ;;
9745    
9746     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9747     # support. Future versions do this automatically, but an explicit c++rt0.o
9748     # does not break anything, and helps significantly (at the cost of a little
9749     # extra space).
9750     freebsd2.2*)
9751     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9752     hardcode_libdir_flag_spec='-R$libdir'
9753     hardcode_direct=yes
9754     hardcode_shlibpath_var=no
9755     ;;
9756    
9757     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9758 michael 5059 freebsd2.*)
9759 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9760     hardcode_direct=yes
9761     hardcode_minus_L=yes
9762     hardcode_shlibpath_var=no
9763     ;;
9764    
9765     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9766     freebsd* | dragonfly*)
9767 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9769     hardcode_direct=yes
9770     hardcode_shlibpath_var=no
9771     ;;
9772    
9773     hpux9*)
9774 michael 5059 if test yes = "$GCC"; then
9775     archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9776 michael 5052 else
9777 michael 5059 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9778 michael 5052 fi
9779 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9780 michael 5052 hardcode_libdir_separator=:
9781     hardcode_direct=yes
9782    
9783     # hardcode_minus_L: Not really in the search PATH,
9784     # but as the default location of the library.
9785     hardcode_minus_L=yes
9786 michael 5059 export_dynamic_flag_spec='$wl-E'
9787 michael 5052 ;;
9788    
9789     hpux10*)
9790 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9791     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792 michael 5052 else
9793     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9794     fi
9795 michael 5059 if test no = "$with_gnu_ld"; then
9796     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9797 michael 5052 hardcode_libdir_separator=:
9798     hardcode_direct=yes
9799 michael 5059 hardcode_direct_absolute=yes
9800     export_dynamic_flag_spec='$wl-E'
9801 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9802     # but as the default location of the library.
9803     hardcode_minus_L=yes
9804     fi
9805     ;;
9806    
9807     hpux11*)
9808 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9809 michael 5052 case $host_cpu in
9810     hppa*64*)
9811 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9812 michael 5052 ;;
9813     ia64*)
9814 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9815 michael 5052 ;;
9816     *)
9817 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818 michael 5052 ;;
9819     esac
9820     else
9821     case $host_cpu in
9822     hppa*64*)
9823 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 michael 5052 ;;
9825     ia64*)
9826 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827 michael 5052 ;;
9828     *)
9829 michael 5059
9830     # Older versions of the 11.00 compiler do not understand -b yet
9831     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9832     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9833     $as_echo_n "checking if $CC understands -b... " >&6; }
9834     if ${lt_cv_prog_compiler__b+:} false; then :
9835     $as_echo_n "(cached) " >&6
9836     else
9837     lt_cv_prog_compiler__b=no
9838     save_LDFLAGS=$LDFLAGS
9839     LDFLAGS="$LDFLAGS -b"
9840     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9841     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9842     # The linker can only warn and ignore the option if not recognized
9843     # So say no if there are warnings
9844     if test -s conftest.err; then
9845     # Append any errors to the config.log.
9846     cat conftest.err 1>&5
9847     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9848     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9849     if diff conftest.exp conftest.er2 >/dev/null; then
9850     lt_cv_prog_compiler__b=yes
9851     fi
9852     else
9853     lt_cv_prog_compiler__b=yes
9854     fi
9855     fi
9856     $RM -r conftest*
9857     LDFLAGS=$save_LDFLAGS
9858    
9859     fi
9860     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9861     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9862    
9863     if test yes = "$lt_cv_prog_compiler__b"; then
9864     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9865     else
9866     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9867     fi
9868    
9869 michael 5052 ;;
9870     esac
9871     fi
9872 michael 5059 if test no = "$with_gnu_ld"; then
9873     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9874 michael 5052 hardcode_libdir_separator=:
9875    
9876     case $host_cpu in
9877     hppa*64*|ia64*)
9878     hardcode_direct=no
9879     hardcode_shlibpath_var=no
9880     ;;
9881     *)
9882     hardcode_direct=yes
9883 michael 5059 hardcode_direct_absolute=yes
9884     export_dynamic_flag_spec='$wl-E'
9885 michael 5052
9886     # hardcode_minus_L: Not really in the search PATH,
9887     # but as the default location of the library.
9888     hardcode_minus_L=yes
9889     ;;
9890     esac
9891     fi
9892     ;;
9893    
9894     irix5* | irix6* | nonstopux*)
9895 michael 5059 if test yes = "$GCC"; then
9896     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9897     # Try to use the -exported_symbol ld option, if it does not
9898     # work, assume that -exports_file does not work either and
9899     # implicitly export all symbols.
9900     # This should be the same for all languages, so no per-tag cache variable.
9901     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9902     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9903     if ${lt_cv_irix_exported_symbol+:} false; then :
9904     $as_echo_n "(cached) " >&6
9905     else
9906     save_LDFLAGS=$LDFLAGS
9907     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909     /* end confdefs.h. */
9910     int foo (void) { return 0; }
9911     _ACEOF
9912     if ac_fn_c_try_link "$LINENO"; then :
9913     lt_cv_irix_exported_symbol=yes
9914     else
9915     lt_cv_irix_exported_symbol=no
9916     fi
9917     rm -f core conftest.err conftest.$ac_objext \
9918     conftest$ac_exeext conftest.$ac_ext
9919     LDFLAGS=$save_LDFLAGS
9920     fi
9921     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9922     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9923     if test yes = "$lt_cv_irix_exported_symbol"; then
9924     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9925     fi
9926 michael 5052 else
9927 michael 5059 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'
9928     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'
9929 michael 5052 fi
9930 michael 5059 archive_cmds_need_lc='no'
9931     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9932 michael 5052 hardcode_libdir_separator=:
9933 michael 5059 inherit_rpath=yes
9934 michael 5052 link_all_deplibs=yes
9935     ;;
9936    
9937 michael 5059 linux*)
9938     case $cc_basename in
9939     tcc*)
9940     # Fabrice Bellard et al's Tiny C Compiler
9941     ld_shlibs=yes
9942     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9943     ;;
9944     esac
9945     ;;
9946    
9947     netbsd*)
9948     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9949 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9950     else
9951     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9952     fi
9953     hardcode_libdir_flag_spec='-R$libdir'
9954     hardcode_direct=yes
9955     hardcode_shlibpath_var=no
9956     ;;
9957    
9958     newsos6)
9959     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960     hardcode_direct=yes
9961 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9962 michael 5052 hardcode_libdir_separator=:
9963     hardcode_shlibpath_var=no
9964     ;;
9965    
9966 michael 5059 *nto* | *qnx*)
9967     ;;
9968    
9969     openbsd* | bitrig*)
9970     if test -f /usr/libexec/ld.so; then
9971     hardcode_direct=yes
9972     hardcode_shlibpath_var=no
9973     hardcode_direct_absolute=yes
9974     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9975     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9977     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9978     export_dynamic_flag_spec='$wl-E'
9979     else
9980     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9981     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9982     fi
9983 michael 5052 else
9984 michael 5059 ld_shlibs=no
9985 michael 5052 fi
9986     ;;
9987    
9988     os2*)
9989     hardcode_libdir_flag_spec='-L$libdir'
9990     hardcode_minus_L=yes
9991     allow_undefined_flag=unsupported
9992 michael 5059 shrext_cmds=.dll
9993     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9994     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9995     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9996     $ECHO EXPORTS >> $output_objdir/$libname.def~
9997     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9998     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9999     emximp -o $lib $output_objdir/$libname.def'
10000     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10001     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10002     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10003     $ECHO EXPORTS >> $output_objdir/$libname.def~
10004     prefix_cmds="$SED"~
10005     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10006     prefix_cmds="$prefix_cmds -e 1d";
10007     fi~
10008     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10009     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10010     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10011     emximp -o $lib $output_objdir/$libname.def'
10012     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10013     enable_shared_with_static_runtimes=yes
10014 michael 5052 ;;
10015    
10016     osf3*)
10017 michael 5059 if test yes = "$GCC"; then
10018     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10019     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'
10020 michael 5052 else
10021     allow_undefined_flag=' -expect_unresolved \*'
10022 michael 5059 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'
10023 michael 5052 fi
10024 michael 5059 archive_cmds_need_lc='no'
10025     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10026 michael 5052 hardcode_libdir_separator=:
10027     ;;
10028    
10029     osf4* | osf5*) # as osf3* with the addition of -msym flag
10030 michael 5059 if test yes = "$GCC"; then
10031     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10032     archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10033     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10034 michael 5052 else
10035     allow_undefined_flag=' -expect_unresolved \*'
10036 michael 5059 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'
10037     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~
10038     $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'
10039 michael 5052
10040     # Both c and cxx compiler support -rpath directly
10041     hardcode_libdir_flag_spec='-rpath $libdir'
10042     fi
10043 michael 5059 archive_cmds_need_lc='no'
10044 michael 5052 hardcode_libdir_separator=:
10045     ;;
10046    
10047     solaris*)
10048 michael 5059 no_undefined_flag=' -z defs'
10049     if test yes = "$GCC"; then
10050     wlarc='$wl'
10051     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10052     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053     $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054 michael 5052 else
10055 michael 5059 case `$CC -V 2>&1` in
10056     *"Compilers 5.0"*)
10057     wlarc=''
10058     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061     ;;
10062     *)
10063     wlarc='$wl'
10064     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067     ;;
10068     esac
10069 michael 5052 fi
10070     hardcode_libdir_flag_spec='-R$libdir'
10071     hardcode_shlibpath_var=no
10072     case $host_os in
10073     solaris2.[0-5] | solaris2.[0-5].*) ;;
10074     *)
10075 michael 5059 # The compiler driver will combine and reorder linker options,
10076     # but understands '-z linker_flag'. GCC discards it without '$wl',
10077     # but is careful enough not to reorder.
10078     # Supported since Solaris 2.6 (maybe 2.5.1?)
10079     if test yes = "$GCC"; then
10080     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10081     else
10082     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083     fi
10084     ;;
10085 michael 5052 esac
10086     link_all_deplibs=yes
10087     ;;
10088    
10089     sunos4*)
10090 michael 5059 if test sequent = "$host_vendor"; then
10091 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10092     # files that make .init and .fini sections work.
10093 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 michael 5052 else
10095     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10096     fi
10097     hardcode_libdir_flag_spec='-L$libdir'
10098     hardcode_direct=yes
10099     hardcode_minus_L=yes
10100     hardcode_shlibpath_var=no
10101     ;;
10102    
10103     sysv4)
10104     case $host_vendor in
10105     sni)
10106     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107     hardcode_direct=yes # is this really true???
10108     ;;
10109     siemens)
10110     ## LD is ld it makes a PLAMLIB
10111     ## CC just makes a GrossModule.
10112     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113     reload_cmds='$CC -r -o $output$reload_objs'
10114     hardcode_direct=no
10115     ;;
10116     motorola)
10117     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10119     ;;
10120     esac
10121     runpath_var='LD_RUN_PATH'
10122     hardcode_shlibpath_var=no
10123     ;;
10124    
10125     sysv4.3*)
10126     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127     hardcode_shlibpath_var=no
10128     export_dynamic_flag_spec='-Bexport'
10129     ;;
10130    
10131     sysv4*MP*)
10132     if test -d /usr/nec; then
10133     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134     hardcode_shlibpath_var=no
10135     runpath_var=LD_RUN_PATH
10136     hardcode_runpath_var=yes
10137     ld_shlibs=yes
10138     fi
10139     ;;
10140    
10141 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142     no_undefined_flag='$wl-z,text'
10143 michael 5052 archive_cmds_need_lc=no
10144     hardcode_shlibpath_var=no
10145     runpath_var='LD_RUN_PATH'
10146    
10147 michael 5059 if test yes = "$GCC"; then
10148     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 michael 5052 else
10151 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 michael 5052 fi
10154     ;;
10155    
10156     sysv5* | sco3.2v5* | sco5v6*)
10157 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10158 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10159     # always be unresolved, which means just about no library would
10160     # ever link correctly. If we're not using GNU ld we use -z text
10161     # though, which does catch some bad symbols but isn't as heavy-handed
10162     # as -z defs.
10163 michael 5059 no_undefined_flag='$wl-z,text'
10164     allow_undefined_flag='$wl-z,nodefs'
10165 michael 5052 archive_cmds_need_lc=no
10166     hardcode_shlibpath_var=no
10167 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10168 michael 5052 hardcode_libdir_separator=':'
10169     link_all_deplibs=yes
10170 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10171 michael 5052 runpath_var='LD_RUN_PATH'
10172    
10173 michael 5059 if test yes = "$GCC"; then
10174     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 michael 5052 else
10177 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 michael 5052 fi
10180     ;;
10181    
10182     uts4*)
10183     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184     hardcode_libdir_flag_spec='-L$libdir'
10185     hardcode_shlibpath_var=no
10186     ;;
10187    
10188     *)
10189     ld_shlibs=no
10190     ;;
10191     esac
10192 michael 5059
10193     if test sni = "$host_vendor"; then
10194     case $host in
10195     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196     export_dynamic_flag_spec='$wl-Blargedynsym'
10197     ;;
10198     esac
10199     fi
10200 michael 5052 fi
10201    
10202 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203     $as_echo "$ld_shlibs" >&6; }
10204     test no = "$ld_shlibs" && can_build_shared=no
10205 michael 5052
10206 michael 5059 with_gnu_ld=$with_gnu_ld
10207    
10208    
10209    
10210    
10211    
10212    
10213    
10214    
10215    
10216    
10217    
10218    
10219    
10220    
10221    
10222 michael 5052 #
10223     # Do we need to explicitly link libc?
10224     #
10225     case "x$archive_cmds_need_lc" in
10226     x|xyes)
10227     # Assume -lc should be added
10228     archive_cmds_need_lc=yes
10229    
10230 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10231 michael 5052 case $archive_cmds in
10232     *'~'*)
10233     # FIXME: we may have to deal with multi-command sequences.
10234     ;;
10235     '$CC '*)
10236     # Test whether the compiler implicitly links with -lc since on some
10237     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238     # to ld, don't add -lc before -lgcc.
10239 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10242     $as_echo_n "(cached) " >&6
10243     else
10244     $RM conftest*
10245     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10246 michael 5052
10247 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10248 michael 5052 (eval $ac_compile) 2>&5
10249     ac_status=$?
10250 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10251     test $ac_status = 0; } 2>conftest.err; then
10252     soname=conftest
10253     lib=conftest
10254     libobjs=conftest.$ac_objext
10255     deplibs=
10256     wl=$lt_prog_compiler_wl
10257     pic_flag=$lt_prog_compiler_pic
10258     compiler_flags=-v
10259     linker_flags=-v
10260     verstring=
10261     output_objdir=.
10262     libname=conftest
10263     lt_save_allow_undefined_flag=$allow_undefined_flag
10264     allow_undefined_flag=
10265     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10266     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10267 michael 5052 ac_status=$?
10268 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269     test $ac_status = 0; }
10270     then
10271     lt_cv_archive_cmds_need_lc=no
10272     else
10273     lt_cv_archive_cmds_need_lc=yes
10274     fi
10275     allow_undefined_flag=$lt_save_allow_undefined_flag
10276     else
10277     cat conftest.err 1>&5
10278     fi
10279     $RM conftest*
10280    
10281     fi
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10283     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10284     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10285 michael 5052 ;;
10286     esac
10287     fi
10288     ;;
10289     esac
10290    
10291 michael 5059
10292    
10293    
10294    
10295    
10296    
10297    
10298    
10299    
10300    
10301    
10302    
10303    
10304    
10305    
10306    
10307    
10308    
10309    
10310    
10311    
10312    
10313    
10314    
10315    
10316    
10317    
10318    
10319    
10320    
10321    
10322    
10323    
10324    
10325    
10326    
10327    
10328    
10329    
10330    
10331    
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10443     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10444    
10445     if test yes = "$GCC"; then
10446     case $host_os in
10447     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10448     *) lt_awk_arg='/^libraries:/' ;;
10449     esac
10450     case $host_os in
10451     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10452     *) lt_sed_strip_eq='s|=/|/|g' ;;
10453     esac
10454     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10455     case $lt_search_path_spec in
10456     *\;*)
10457     # if the path contains ";" then we assume it to be the separator
10458     # otherwise default to the standard path separator (i.e. ":") - it is
10459     # assumed that no part of a normal pathname contains ";" but that should
10460     # okay in the real world where ";" in dirpaths is itself problematic.
10461     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10462     ;;
10463     *)
10464     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10465     ;;
10466     esac
10467     # Ok, now we have the path, separated by spaces, we can step through it
10468     # and add multilib dir if necessary...
10469     lt_tmp_lt_search_path_spec=
10470     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10471     # ...but if some path component already ends with the multilib dir we assume
10472     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10473     case "$lt_multi_os_dir; $lt_search_path_spec " in
10474     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10475     lt_multi_os_dir=
10476     ;;
10477     esac
10478     for lt_sys_path in $lt_search_path_spec; do
10479     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10480     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10481     elif test -n "$lt_multi_os_dir"; then
10482     test -d "$lt_sys_path" && \
10483     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10484     fi
10485     done
10486     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10487     BEGIN {RS = " "; FS = "/|\n";} {
10488     lt_foo = "";
10489     lt_count = 0;
10490     for (lt_i = NF; lt_i > 0; lt_i--) {
10491     if ($lt_i != "" && $lt_i != ".") {
10492     if ($lt_i == "..") {
10493     lt_count++;
10494     } else {
10495     if (lt_count == 0) {
10496     lt_foo = "/" $lt_i lt_foo;
10497     } else {
10498     lt_count--;
10499     }
10500     }
10501     }
10502     }
10503     if (lt_foo != "") { lt_freq[lt_foo]++; }
10504     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10505     }'`
10506     # AWK program above erroneously prepends '/' to C:/dos/paths
10507     # for these hosts.
10508     case $host_os in
10509     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10510     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10511     esac
10512     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10513     else
10514     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10515     fi
10516 michael 5052 library_names_spec=
10517     libname_spec='lib$name'
10518     soname_spec=
10519 michael 5059 shrext_cmds=.so
10520 michael 5052 postinstall_cmds=
10521     postuninstall_cmds=
10522     finish_cmds=
10523     finish_eval=
10524     shlibpath_var=
10525     shlibpath_overrides_runpath=unknown
10526     version_type=none
10527     dynamic_linker="$host_os ld.so"
10528     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10529     need_lib_prefix=unknown
10530     hardcode_into_libs=no
10531    
10532     # when you set need_version to no, make sure it does not cause -set_version
10533     # flags to be left without arguments
10534     need_version=unknown
10535    
10536 michael 5430
10537    
10538 michael 5052 case $host_os in
10539     aix3*)
10540 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10541     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10542 michael 5052 shlibpath_var=LIBPATH
10543    
10544     # AIX 3 has no versioning support, so we append a major version to the name.
10545 michael 5059 soname_spec='$libname$release$shared_ext$major'
10546 michael 5052 ;;
10547    
10548 michael 5059 aix[4-9]*)
10549     version_type=linux # correct to gnu/linux during the next big refactor
10550 michael 5052 need_lib_prefix=no
10551     need_version=no
10552     hardcode_into_libs=yes
10553 michael 5059 if test ia64 = "$host_cpu"; then
10554 michael 5052 # AIX 5 supports IA64
10555 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10556 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10557     else
10558     # With GCC up to 2.95.x, collect2 would create an import file
10559     # for dependence libraries. The import file would start with
10560 michael 5059 # the line '#! .'. This would cause the generated library to
10561     # depend on '.', always an invalid library. This was fixed in
10562 michael 5052 # development snapshots of GCC prior to 3.0.
10563     case $host_os in
10564     aix4 | aix4.[01] | aix4.[01].*)
10565     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10566     echo ' yes '
10567 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10568 michael 5052 :
10569     else
10570     can_build_shared=no
10571     fi
10572     ;;
10573     esac
10574 michael 5059 # Using Import Files as archive members, it is possible to support
10575     # filename-based versioning of shared library archives on AIX. While
10576     # this would work for both with and without runtime linking, it will
10577     # prevent static linking of such archives. So we do filename-based
10578     # shared library versioning with .so extension only, which is used
10579     # when both runtime linking and shared linking is enabled.
10580     # Unfortunately, runtime linking may impact performance, so we do
10581     # not want this to be the default eventually. Also, we use the
10582     # versioned .so libs for executables only if there is the -brtl
10583     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10584     # To allow for filename-based versioning support, we need to create
10585     # libNAME.so.V as an archive file, containing:
10586     # *) an Import File, referring to the versioned filename of the
10587     # archive as well as the shared archive member, telling the
10588     # bitwidth (32 or 64) of that shared object, and providing the
10589     # list of exported symbols of that shared object, eventually
10590     # decorated with the 'weak' keyword
10591     # *) the shared object with the F_LOADONLY flag set, to really avoid
10592     # it being seen by the linker.
10593     # At run time we better use the real file rather than another symlink,
10594     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10595    
10596     case $with_aix_soname,$aix_use_runtimelinking in
10597     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10598 michael 5052 # soname into executable. Probably we can add versioning support to
10599     # collect2, so additional links can be useful in future.
10600 michael 5059 aix,yes) # traditional libtool
10601     dynamic_linker='AIX unversionable lib.so'
10602 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10603     # instead of lib<name>.a to let people know that these are not
10604     # typical AIX shared libraries.
10605 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10606     ;;
10607     aix,no) # traditional AIX only
10608     dynamic_linker='AIX lib.a(lib.so.V)'
10609 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10610     # and later when we are not doing run time linking.
10611 michael 5059 library_names_spec='$libname$release.a $libname.a'
10612     soname_spec='$libname$release$shared_ext$major'
10613     ;;
10614     svr4,*) # full svr4 only
10615     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10616     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10617     # We do not specify a path in Import Files, so LIBPATH fires.
10618     shlibpath_overrides_runpath=yes
10619     ;;
10620     *,yes) # both, prefer svr4
10621     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10622     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10623     # unpreferred sharedlib libNAME.a needs extra handling
10624     postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10625     postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10626     # We do not specify a path in Import Files, so LIBPATH fires.
10627     shlibpath_overrides_runpath=yes
10628     ;;
10629     *,no) # both, prefer aix
10630     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10631     library_names_spec='$libname$release.a $libname.a'
10632     soname_spec='$libname$release$shared_ext$major'
10633     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10634     postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10635     postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10636     ;;
10637     esac
10638 michael 5052 shlibpath_var=LIBPATH
10639     fi
10640     ;;
10641    
10642     amigaos*)
10643 michael 5059 case $host_cpu in
10644     powerpc)
10645     # Since July 2007 AmigaOS4 officially supports .so libraries.
10646     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10647     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10648     ;;
10649     m68k)
10650     library_names_spec='$libname.ixlibrary $libname.a'
10651     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10652     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10653     ;;
10654     esac
10655 michael 5052 ;;
10656    
10657     beos*)
10658 michael 5059 library_names_spec='$libname$shared_ext'
10659 michael 5052 dynamic_linker="$host_os ld.so"
10660     shlibpath_var=LIBRARY_PATH
10661     ;;
10662    
10663     bsdi[45]*)
10664 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10665 michael 5052 need_version=no
10666 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10667     soname_spec='$libname$release$shared_ext$major'
10668 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10669     shlibpath_var=LD_LIBRARY_PATH
10670     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10671     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10672     # the default ld.so.conf also contains /usr/contrib/lib and
10673     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10674     # libtool to hard-code these into programs
10675     ;;
10676    
10677 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10678 michael 5052 version_type=windows
10679 michael 5059 shrext_cmds=.dll
10680 michael 5052 need_version=no
10681     need_lib_prefix=no
10682    
10683 michael 5059 case $GCC,$cc_basename in
10684     yes,*)
10685     # gcc
10686 michael 5052 library_names_spec='$libname.dll.a'
10687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10688 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10689     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10690 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10691     test -d \$dldir || mkdir -p \$dldir~
10692     $install_prog $dir/$dlname \$dldir/$dlname~
10693 michael 5059 chmod a+x \$dldir/$dlname~
10694     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10695     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10696     fi'
10697 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10698     dlpath=$dir/\$dldll~
10699 michael 5059 $RM \$dlpath'
10700 michael 5052 shlibpath_overrides_runpath=yes
10701    
10702     case $host_os in
10703     cygwin*)
10704     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10705 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10706    
10707     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10708 michael 5052 ;;
10709 michael 5059 mingw* | cegcc*)
10710 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10711 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10712 michael 5052 ;;
10713     pw32*)
10714     # pw32 DLLs use 'pw' prefix rather than 'lib'
10715 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10716 michael 5052 ;;
10717     esac
10718 michael 5059 dynamic_linker='Win32 ld.exe'
10719 michael 5052 ;;
10720    
10721 michael 5059 *,cl*)
10722     # Native MSVC
10723     libname_spec='$name'
10724     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10725     library_names_spec='$libname.dll.lib'
10726    
10727     case $build_os in
10728     mingw*)
10729     sys_lib_search_path_spec=
10730     lt_save_ifs=$IFS
10731     IFS=';'
10732     for lt_path in $LIB
10733     do
10734     IFS=$lt_save_ifs
10735     # Let DOS variable expansion print the short 8.3 style file name.
10736     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10737     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10738     done
10739     IFS=$lt_save_ifs
10740     # Convert to MSYS style.
10741     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10742     ;;
10743     cygwin*)
10744     # Convert to unix form, then to dos form, then back to unix form
10745     # but this time dos style (no spaces!) so that the unix form looks
10746     # like /cygdrive/c/PROGRA~1:/cygdr...
10747     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10748     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10749     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10750     ;;
10751     *)
10752     sys_lib_search_path_spec=$LIB
10753     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10754     # It is most probably a Windows format PATH.
10755     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10756     else
10757     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10758     fi
10759     # FIXME: find the short name or the path components, as spaces are
10760     # common. (e.g. "Program Files" -> "PROGRA~1")
10761     ;;
10762     esac
10763    
10764     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10765     postinstall_cmds='base_file=`basename \$file`~
10766     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10767     dldir=$destdir/`dirname \$dlpath`~
10768     test -d \$dldir || mkdir -p \$dldir~
10769     $install_prog $dir/$dlname \$dldir/$dlname'
10770     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10771     dlpath=$dir/\$dldll~
10772     $RM \$dlpath'
10773     shlibpath_overrides_runpath=yes
10774     dynamic_linker='Win32 link.exe'
10775     ;;
10776    
10777 michael 5052 *)
10778 michael 5059 # Assume MSVC wrapper
10779     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10780     dynamic_linker='Win32 ld.exe'
10781 michael 5052 ;;
10782     esac
10783     # FIXME: first we should search . and the directory the executable is in
10784     shlibpath_var=PATH
10785     ;;
10786    
10787     darwin* | rhapsody*)
10788     dynamic_linker="$host_os dyld"
10789     version_type=darwin
10790     need_lib_prefix=no
10791     need_version=no
10792 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10793     soname_spec='$libname$release$major$shared_ext'
10794 michael 5052 shlibpath_overrides_runpath=yes
10795     shlibpath_var=DYLD_LIBRARY_PATH
10796     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10797 michael 5059
10798     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10799 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10800     ;;
10801    
10802     dgux*)
10803 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10804 michael 5052 need_lib_prefix=no
10805     need_version=no
10806 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10807     soname_spec='$libname$release$shared_ext$major'
10808 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10809     ;;
10810    
10811     freebsd* | dragonfly*)
10812     # DragonFly does not have aout. When/if they implement a new
10813     # versioning mechanism, adjust this.
10814     if test -x /usr/bin/objformat; then
10815     objformat=`/usr/bin/objformat`
10816     else
10817     case $host_os in
10818 michael 5059 freebsd[23].*) objformat=aout ;;
10819 michael 5052 *) objformat=elf ;;
10820     esac
10821     fi
10822     version_type=freebsd-$objformat
10823     case $version_type in
10824     freebsd-elf*)
10825 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10826 michael 5430 soname_spec='$libname$release$shared_ext$major'
10827 michael 5052 need_version=no
10828     need_lib_prefix=no
10829     ;;
10830     freebsd-*)
10831 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10832 michael 5052 need_version=yes
10833     ;;
10834     esac
10835     shlibpath_var=LD_LIBRARY_PATH
10836     case $host_os in
10837 michael 5059 freebsd2.*)
10838 michael 5052 shlibpath_overrides_runpath=yes
10839     ;;
10840     freebsd3.[01]* | freebsdelf3.[01]*)
10841     shlibpath_overrides_runpath=yes
10842     hardcode_into_libs=yes
10843     ;;
10844     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10845     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10846     shlibpath_overrides_runpath=no
10847     hardcode_into_libs=yes
10848     ;;
10849 michael 5059 *) # from 4.6 on, and DragonFly
10850 michael 5052 shlibpath_overrides_runpath=yes
10851     hardcode_into_libs=yes
10852     ;;
10853     esac
10854     ;;
10855    
10856 michael 5059 haiku*)
10857     version_type=linux # correct to gnu/linux during the next big refactor
10858 michael 5052 need_lib_prefix=no
10859     need_version=no
10860 michael 5059 dynamic_linker="$host_os runtime_loader"
10861     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10862     soname_spec='$libname$release$shared_ext$major'
10863     shlibpath_var=LIBRARY_PATH
10864     shlibpath_overrides_runpath=no
10865     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10866 michael 5052 hardcode_into_libs=yes
10867     ;;
10868    
10869     hpux9* | hpux10* | hpux11*)
10870     # Give a soname corresponding to the major version so that dld.sl refuses to
10871     # link against other versions.
10872     version_type=sunos
10873     need_lib_prefix=no
10874     need_version=no
10875     case $host_cpu in
10876     ia64*)
10877     shrext_cmds='.so'
10878     hardcode_into_libs=yes
10879     dynamic_linker="$host_os dld.so"
10880     shlibpath_var=LD_LIBRARY_PATH
10881     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10882 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10883     soname_spec='$libname$release$shared_ext$major'
10884     if test 32 = "$HPUX_IA64_MODE"; then
10885 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10886 michael 5430 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10887 michael 5052 else
10888     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10889 michael 5430 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10890 michael 5052 fi
10891     ;;
10892 michael 5059 hppa*64*)
10893 michael 5052 shrext_cmds='.sl'
10894 michael 5059 hardcode_into_libs=yes
10895 michael 5052 dynamic_linker="$host_os dld.sl"
10896 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10898     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10899     soname_spec='$libname$release$shared_ext$major'
10900     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10902     ;;
10903     *)
10904     shrext_cmds='.sl'
10905     dynamic_linker="$host_os dld.sl"
10906 michael 5052 shlibpath_var=SHLIB_PATH
10907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10908 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10909     soname_spec='$libname$release$shared_ext$major'
10910 michael 5052 ;;
10911     esac
10912 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10913 michael 5052 postinstall_cmds='chmod 555 $lib'
10914 michael 5059 # or fails outright, so override atomically:
10915     install_override_mode=555
10916 michael 5052 ;;
10917    
10918 michael 5059 interix[3-9]*)
10919     version_type=linux # correct to gnu/linux during the next big refactor
10920 michael 5052 need_lib_prefix=no
10921     need_version=no
10922 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10923     soname_spec='$libname$release$shared_ext$major'
10924 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10925     shlibpath_var=LD_LIBRARY_PATH
10926     shlibpath_overrides_runpath=no
10927     hardcode_into_libs=yes
10928     ;;
10929    
10930     irix5* | irix6* | nonstopux*)
10931     case $host_os in
10932     nonstopux*) version_type=nonstopux ;;
10933     *)
10934 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10935     version_type=linux # correct to gnu/linux during the next big refactor
10936 michael 5052 else
10937     version_type=irix
10938     fi ;;
10939     esac
10940     need_lib_prefix=no
10941     need_version=no
10942 michael 5059 soname_spec='$libname$release$shared_ext$major'
10943     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10944 michael 5052 case $host_os in
10945     irix5* | nonstopux*)
10946     libsuff= shlibsuff=
10947     ;;
10948     *)
10949     case $LD in # libtool.m4 will add one of these switches to LD
10950     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10951     libsuff= shlibsuff= libmagic=32-bit;;
10952     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10953     libsuff=32 shlibsuff=N32 libmagic=N32;;
10954     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10955     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10956     *) libsuff= shlibsuff= libmagic=never-match;;
10957     esac
10958     ;;
10959     esac
10960     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10961     shlibpath_overrides_runpath=no
10962 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10963     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10964 michael 5052 hardcode_into_libs=yes
10965     ;;
10966    
10967     # No shared lib support for Linux oldld, aout, or coff.
10968     linux*oldld* | linux*aout* | linux*coff*)
10969     dynamic_linker=no
10970     ;;
10971    
10972 michael 5059 linux*android*)
10973     version_type=none # Android doesn't support versioned libraries.
10974 michael 5052 need_lib_prefix=no
10975     need_version=no
10976 michael 5059 library_names_spec='$libname$release$shared_ext'
10977     soname_spec='$libname$release$shared_ext'
10978     finish_cmds=
10979     shlibpath_var=LD_LIBRARY_PATH
10980     shlibpath_overrides_runpath=yes
10981    
10982     # This implies no fast_install, which is unacceptable.
10983     # Some rework will be needed to allow for fast_install
10984     # before this can be enabled.
10985     hardcode_into_libs=yes
10986    
10987     dynamic_linker='Android linker'
10988     # Don't embed -rpath directories since the linker doesn't support them.
10989     hardcode_libdir_flag_spec='-L$libdir'
10990     ;;
10991    
10992     # This must be glibc/ELF.
10993     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10994     version_type=linux # correct to gnu/linux during the next big refactor
10995     need_lib_prefix=no
10996     need_version=no
10997     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10998     soname_spec='$libname$release$shared_ext$major'
10999 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11000     shlibpath_var=LD_LIBRARY_PATH
11001     shlibpath_overrides_runpath=no
11002 michael 5059
11003     # Some binutils ld are patched to set DT_RUNPATH
11004     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11005     $as_echo_n "(cached) " >&6
11006     else
11007     lt_cv_shlibpath_overrides_runpath=no
11008     save_LDFLAGS=$LDFLAGS
11009     save_libdir=$libdir
11010     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11011     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013     /* end confdefs.h. */
11014    
11015     int
11016     main ()
11017     {
11018    
11019     ;
11020     return 0;
11021     }
11022     _ACEOF
11023     if ac_fn_c_try_link "$LINENO"; then :
11024     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11025     lt_cv_shlibpath_overrides_runpath=yes
11026     fi
11027     fi
11028     rm -f core conftest.err conftest.$ac_objext \
11029     conftest$ac_exeext conftest.$ac_ext
11030     LDFLAGS=$save_LDFLAGS
11031     libdir=$save_libdir
11032    
11033     fi
11034    
11035     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11036    
11037 michael 5052 # This implies no fast_install, which is unacceptable.
11038     # Some rework will be needed to allow for fast_install
11039     # before this can be enabled.
11040     hardcode_into_libs=yes
11041    
11042 michael 5430 # Ideally, we could use ldconfig to report *all* directores which are
11043     # searched for libraries, however this is still not possible. Aside from not
11044     # being certain /sbin/ldconfig is available, command
11045     # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11046     # even though it is searched at run-time. Try to do the best guess by
11047     # appending ld.so.conf contents (and includes) to the search path.
11048 michael 5052 if test -f /etc/ld.so.conf; then
11049 michael 5059 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' ' '`
11050 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11051     fi
11052    
11053     # We used to test for /lib/ld.so.1 and disable shared libraries on
11054     # powerpc, because MkLinux only supported shared libraries with the
11055     # GNU dynamic linker. Since this was broken with cross compilers,
11056     # most powerpc-linux boxes support dynamic linking these days and
11057     # people can always --disable-shared, the test was removed, and we
11058     # assume the GNU/Linux dynamic linker is in use.
11059     dynamic_linker='GNU/Linux ld.so'
11060     ;;
11061    
11062     netbsd*)
11063     version_type=sunos
11064     need_lib_prefix=no
11065     need_version=no
11066 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11067     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11068 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11069     dynamic_linker='NetBSD (a.out) ld.so'
11070     else
11071 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11072     soname_spec='$libname$release$shared_ext$major'
11073 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11074     fi
11075     shlibpath_var=LD_LIBRARY_PATH
11076     shlibpath_overrides_runpath=yes
11077     hardcode_into_libs=yes
11078     ;;
11079    
11080     newsos6)
11081 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11082     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11084     shlibpath_overrides_runpath=yes
11085     ;;
11086    
11087 michael 5059 *nto* | *qnx*)
11088     version_type=qnx
11089 michael 5052 need_lib_prefix=no
11090     need_version=no
11091 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092     soname_spec='$libname$release$shared_ext$major'
11093 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11094 michael 5059 shlibpath_overrides_runpath=no
11095     hardcode_into_libs=yes
11096     dynamic_linker='ldqnx.so'
11097 michael 5052 ;;
11098    
11099 michael 5059 openbsd* | bitrig*)
11100 michael 5052 version_type=sunos
11101 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11102 michael 5052 need_lib_prefix=no
11103 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11104     need_version=no
11105     else
11106     need_version=yes
11107     fi
11108     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11109 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110     shlibpath_var=LD_LIBRARY_PATH
11111 michael 5059 shlibpath_overrides_runpath=yes
11112 michael 5052 ;;
11113    
11114     os2*)
11115     libname_spec='$name'
11116 michael 5059 version_type=windows
11117     shrext_cmds=.dll
11118     need_version=no
11119 michael 5052 need_lib_prefix=no
11120 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11121     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11122     v=$($ECHO $release$versuffix | tr -d .-);
11123     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11124     $ECHO $n$v`$shared_ext'
11125     library_names_spec='${libname}_dll.$libext'
11126 michael 5052 dynamic_linker='OS/2 ld.exe'
11127 michael 5059 shlibpath_var=BEGINLIBPATH
11128     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11129     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11130     postinstall_cmds='base_file=`basename \$file`~
11131     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11132     dldir=$destdir/`dirname \$dlpath`~
11133     test -d \$dldir || mkdir -p \$dldir~
11134     $install_prog $dir/$dlname \$dldir/$dlname~
11135     chmod a+x \$dldir/$dlname~
11136     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11137     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11138     fi'
11139     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11140     dlpath=$dir/\$dldll~
11141     $RM \$dlpath'
11142 michael 5052 ;;
11143    
11144     osf3* | osf4* | osf5*)
11145     version_type=osf
11146     need_lib_prefix=no
11147     need_version=no
11148 michael 5059 soname_spec='$libname$release$shared_ext$major'
11149     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11150 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11151     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11152 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11153 michael 5052 ;;
11154    
11155 michael 5059 rdos*)
11156     dynamic_linker=no
11157     ;;
11158    
11159 michael 5052 solaris*)
11160 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11161 michael 5052 need_lib_prefix=no
11162     need_version=no
11163 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11164     soname_spec='$libname$release$shared_ext$major'
11165 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11166     shlibpath_overrides_runpath=yes
11167     hardcode_into_libs=yes
11168     # ldd complains unless libraries are executable
11169     postinstall_cmds='chmod +x $lib'
11170     ;;
11171    
11172     sunos4*)
11173     version_type=sunos
11174 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11175 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11176     shlibpath_var=LD_LIBRARY_PATH
11177     shlibpath_overrides_runpath=yes
11178 michael 5059 if test yes = "$with_gnu_ld"; then
11179 michael 5052 need_lib_prefix=no
11180     fi
11181     need_version=yes
11182     ;;
11183    
11184     sysv4 | sysv4.3*)
11185 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11186     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11187     soname_spec='$libname$release$shared_ext$major'
11188 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11189     case $host_vendor in
11190     sni)
11191     shlibpath_overrides_runpath=no
11192     need_lib_prefix=no
11193     runpath_var=LD_RUN_PATH
11194     ;;
11195     siemens)
11196     need_lib_prefix=no
11197     ;;
11198     motorola)
11199     need_lib_prefix=no
11200     need_version=no
11201     shlibpath_overrides_runpath=no
11202     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11203     ;;
11204     esac
11205     ;;
11206    
11207     sysv4*MP*)
11208 michael 5059 if test -d /usr/nec; then
11209     version_type=linux # correct to gnu/linux during the next big refactor
11210     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11211     soname_spec='$libname$shared_ext.$major'
11212 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11213     fi
11214     ;;
11215    
11216     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11217 michael 5059 version_type=sco
11218 michael 5052 need_lib_prefix=no
11219     need_version=no
11220 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11221     soname_spec='$libname$release$shared_ext$major'
11222 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11223 michael 5059 shlibpath_overrides_runpath=yes
11224 michael 5052 hardcode_into_libs=yes
11225 michael 5059 if test yes = "$with_gnu_ld"; then
11226 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11227     else
11228     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11229     case $host_os in
11230     sco3.2v5*)
11231     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11232     ;;
11233     esac
11234     fi
11235     sys_lib_dlsearch_path_spec='/usr/lib'
11236     ;;
11237    
11238 michael 5059 tpf*)
11239     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11240     version_type=linux # correct to gnu/linux during the next big refactor
11241     need_lib_prefix=no
11242     need_version=no
11243     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11244     shlibpath_var=LD_LIBRARY_PATH
11245     shlibpath_overrides_runpath=no
11246     hardcode_into_libs=yes
11247     ;;
11248    
11249 michael 5052 uts4*)
11250 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11251     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11252     soname_spec='$libname$release$shared_ext$major'
11253 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11254     ;;
11255    
11256     *)
11257     dynamic_linker=no
11258     ;;
11259     esac
11260 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11261     $as_echo "$dynamic_linker" >&6; }
11262     test no = "$dynamic_linker" && can_build_shared=no
11263 michael 5052
11264     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11265 michael 5059 if test yes = "$GCC"; then
11266 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11267     fi
11268    
11269 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11270     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11271     fi
11272 michael 5430
11273 michael 5059 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11274     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11275     fi
11276    
11277 michael 5715 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11278     configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11279 michael 5059
11280 michael 5715 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11281 michael 5430 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11282 michael 5059
11283 michael 5715 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11284     configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11285 michael 5059
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    
11319    
11320    
11321    
11322    
11323    
11324    
11325    
11326    
11327    
11328    
11329    
11330    
11331    
11332    
11333    
11334    
11335    
11336    
11337    
11338    
11339    
11340    
11341    
11342    
11343    
11344    
11345    
11346    
11347    
11348    
11349    
11350    
11351    
11352    
11353    
11354    
11355    
11356    
11357    
11358    
11359    
11360    
11361    
11362    
11363    
11364    
11365    
11366    
11367    
11368    
11369    
11370    
11371    
11372    
11373    
11374 michael 5430
11375    
11376 michael 5715
11377    
11378    
11379    
11380    
11381    
11382 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11383     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11384 michael 5052 hardcode_action=
11385 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11386     test -n "$runpath_var" ||
11387     test yes = "$hardcode_automatic"; then
11388 michael 5052
11389 michael 5059 # We can hardcode non-existent directories.
11390     if test no != "$hardcode_direct" &&
11391 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11392     # have to relink, otherwise we might link with an installed library
11393     # when we should be linking with a yet-to-be-installed one
11394 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11395     test no != "$hardcode_minus_L"; then
11396 michael 5052 # Linking always hardcodes the temporary library directory.
11397     hardcode_action=relink
11398     else
11399     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11400     hardcode_action=immediate
11401     fi
11402     else
11403     # We cannot hardcode anything, or else we can only hardcode existing
11404     # directories.
11405     hardcode_action=unsupported
11406     fi
11407 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11408     $as_echo "$hardcode_action" >&6; }
11409 michael 5052
11410 michael 5059 if test relink = "$hardcode_action" ||
11411     test yes = "$inherit_rpath"; then
11412 michael 5052 # Fast installation is not supported
11413     enable_fast_install=no
11414 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11415     test no = "$enable_shared"; then
11416 michael 5052 # Fast installation is not necessary
11417     enable_fast_install=needless
11418     fi
11419    
11420    
11421 michael 5059
11422    
11423    
11424    
11425     if test yes != "$enable_dlopen"; then
11426 michael 5052 enable_dlopen=unknown
11427     enable_dlopen_self=unknown
11428     enable_dlopen_self_static=unknown
11429     else
11430     lt_cv_dlopen=no
11431     lt_cv_dlopen_libs=
11432    
11433     case $host_os in
11434     beos*)
11435 michael 5059 lt_cv_dlopen=load_add_on
11436 michael 5052 lt_cv_dlopen_libs=
11437     lt_cv_dlopen_self=yes
11438     ;;
11439    
11440 michael 5059 mingw* | pw32* | cegcc*)
11441     lt_cv_dlopen=LoadLibrary
11442 michael 5052 lt_cv_dlopen_libs=
11443 michael 5059 ;;
11444 michael 5052
11445     cygwin*)
11446 michael 5059 lt_cv_dlopen=dlopen
11447 michael 5052 lt_cv_dlopen_libs=
11448 michael 5059 ;;
11449 michael 5052
11450     darwin*)
11451 michael 5059 # if libdl is installed we need to link against it
11452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11453     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11454     if ${ac_cv_lib_dl_dlopen+:} false; then :
11455     $as_echo_n "(cached) " >&6
11456 michael 5052 else
11457     ac_check_lib_save_LIBS=$LIBS
11458     LIBS="-ldl $LIBS"
11459 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 michael 5052 /* end confdefs.h. */
11461    
11462     /* Override any GCC internal prototype to avoid an error.
11463     Use char because int might match the return type of a GCC
11464     builtin and then its argument prototype would still apply. */
11465     #ifdef __cplusplus
11466     extern "C"
11467     #endif
11468     char dlopen ();
11469     int
11470     main ()
11471     {
11472     return dlopen ();
11473     ;
11474     return 0;
11475     }
11476     _ACEOF
11477 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11478 michael 5052 ac_cv_lib_dl_dlopen=yes
11479     else
11480 michael 5059 ac_cv_lib_dl_dlopen=no
11481 michael 5052 fi
11482     rm -f core conftest.err conftest.$ac_objext \
11483 michael 5059 conftest$ac_exeext conftest.$ac_ext
11484 michael 5052 LIBS=$ac_check_lib_save_LIBS
11485     fi
11486 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11487     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11488     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11489     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11490 michael 5052 else
11491    
11492 michael 5059 lt_cv_dlopen=dyld
11493 michael 5052 lt_cv_dlopen_libs=
11494     lt_cv_dlopen_self=yes
11495    
11496     fi
11497    
11498 michael 5059 ;;
11499 michael 5052
11500 michael 5059 tpf*)
11501     # Don't try to run any link tests for TPF. We know it's impossible
11502     # because TPF is a cross-compiler, and we know how we open DSOs.
11503     lt_cv_dlopen=dlopen
11504     lt_cv_dlopen_libs=
11505     lt_cv_dlopen_self=no
11506     ;;
11507    
11508 michael 5052 *)
11509 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11510     if test "x$ac_cv_func_shl_load" = xyes; then :
11511     lt_cv_dlopen=shl_load
11512 michael 5052 else
11513 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11514     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11515     if ${ac_cv_lib_dld_shl_load+:} false; then :
11516     $as_echo_n "(cached) " >&6
11517 michael 5052 else
11518     ac_check_lib_save_LIBS=$LIBS
11519     LIBS="-ldld $LIBS"
11520 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 michael 5052 /* end confdefs.h. */
11522    
11523     /* Override any GCC internal prototype to avoid an error.
11524     Use char because int might match the return type of a GCC
11525     builtin and then its argument prototype would still apply. */
11526     #ifdef __cplusplus
11527     extern "C"
11528     #endif
11529     char shl_load ();
11530     int
11531     main ()
11532     {
11533     return shl_load ();
11534     ;
11535     return 0;
11536     }
11537     _ACEOF
11538 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11539 michael 5052 ac_cv_lib_dld_shl_load=yes
11540     else
11541 michael 5059 ac_cv_lib_dld_shl_load=no
11542 michael 5052 fi
11543     rm -f core conftest.err conftest.$ac_objext \
11544 michael 5059 conftest$ac_exeext conftest.$ac_ext
11545 michael 5052 LIBS=$ac_check_lib_save_LIBS
11546     fi
11547 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11548     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11549     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11550     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11551 michael 5052 else
11552 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11553     if test "x$ac_cv_func_dlopen" = xyes; then :
11554     lt_cv_dlopen=dlopen
11555 michael 5052 else
11556 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11557     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11558     if ${ac_cv_lib_dl_dlopen+:} false; then :
11559     $as_echo_n "(cached) " >&6
11560 michael 5052 else
11561     ac_check_lib_save_LIBS=$LIBS
11562     LIBS="-ldl $LIBS"
11563 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 michael 5052 /* end confdefs.h. */
11565    
11566     /* Override any GCC internal prototype to avoid an error.
11567     Use char because int might match the return type of a GCC
11568     builtin and then its argument prototype would still apply. */
11569     #ifdef __cplusplus
11570     extern "C"
11571     #endif
11572     char dlopen ();
11573     int
11574     main ()
11575     {
11576     return dlopen ();
11577     ;
11578     return 0;
11579     }
11580     _ACEOF
11581 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11582 michael 5052 ac_cv_lib_dl_dlopen=yes
11583     else
11584 michael 5059 ac_cv_lib_dl_dlopen=no
11585 michael 5052 fi
11586     rm -f core conftest.err conftest.$ac_objext \
11587 michael 5059 conftest$ac_exeext conftest.$ac_ext
11588 michael 5052 LIBS=$ac_check_lib_save_LIBS
11589     fi
11590 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11591     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11592     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11593     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11594 michael 5052 else
11595 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11596     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11597     if ${ac_cv_lib_svld_dlopen+:} false; then :
11598     $as_echo_n "(cached) " >&6
11599 michael 5052 else
11600     ac_check_lib_save_LIBS=$LIBS
11601     LIBS="-lsvld $LIBS"
11602 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 michael 5052 /* end confdefs.h. */
11604    
11605     /* Override any GCC internal prototype to avoid an error.
11606     Use char because int might match the return type of a GCC
11607     builtin and then its argument prototype would still apply. */
11608     #ifdef __cplusplus
11609     extern "C"
11610     #endif
11611     char dlopen ();
11612     int
11613     main ()
11614     {
11615     return dlopen ();
11616     ;
11617     return 0;
11618     }
11619     _ACEOF
11620 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11621 michael 5052 ac_cv_lib_svld_dlopen=yes
11622     else
11623 michael 5059 ac_cv_lib_svld_dlopen=no
11624 michael 5052 fi
11625     rm -f core conftest.err conftest.$ac_objext \
11626 michael 5059 conftest$ac_exeext conftest.$ac_ext
11627 michael 5052 LIBS=$ac_check_lib_save_LIBS
11628     fi
11629 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11630     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11631     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11632     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11633 michael 5052 else
11634 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11635     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11636     if ${ac_cv_lib_dld_dld_link+:} false; then :
11637     $as_echo_n "(cached) " >&6
11638 michael 5052 else
11639     ac_check_lib_save_LIBS=$LIBS
11640     LIBS="-ldld $LIBS"
11641 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11642 michael 5052 /* end confdefs.h. */
11643    
11644     /* Override any GCC internal prototype to avoid an error.
11645     Use char because int might match the return type of a GCC
11646     builtin and then its argument prototype would still apply. */
11647     #ifdef __cplusplus
11648     extern "C"
11649     #endif
11650     char dld_link ();
11651     int
11652     main ()
11653     {
11654     return dld_link ();
11655     ;
11656     return 0;
11657     }
11658     _ACEOF
11659 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11660 michael 5052 ac_cv_lib_dld_dld_link=yes
11661     else
11662 michael 5059 ac_cv_lib_dld_dld_link=no
11663 michael 5052 fi
11664     rm -f core conftest.err conftest.$ac_objext \
11665 michael 5059 conftest$ac_exeext conftest.$ac_ext
11666 michael 5052 LIBS=$ac_check_lib_save_LIBS
11667     fi
11668 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11669     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11670     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11671     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11672 michael 5052 fi
11673    
11674    
11675     fi
11676    
11677    
11678     fi
11679    
11680    
11681     fi
11682    
11683    
11684     fi
11685    
11686    
11687     fi
11688    
11689     ;;
11690     esac
11691    
11692 michael 5059 if test no = "$lt_cv_dlopen"; then
11693     enable_dlopen=no
11694     else
11695 michael 5052 enable_dlopen=yes
11696     fi
11697    
11698     case $lt_cv_dlopen in
11699     dlopen)
11700 michael 5059 save_CPPFLAGS=$CPPFLAGS
11701     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11702 michael 5052
11703 michael 5059 save_LDFLAGS=$LDFLAGS
11704 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11705    
11706 michael 5059 save_LIBS=$LIBS
11707 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11708    
11709 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11710     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11711     if ${lt_cv_dlopen_self+:} false; then :
11712     $as_echo_n "(cached) " >&6
11713 michael 5052 else
11714 michael 5059 if test yes = "$cross_compiling"; then :
11715 michael 5052 lt_cv_dlopen_self=cross
11716     else
11717     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718     lt_status=$lt_dlunknown
11719 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11720     #line $LINENO "configure"
11721 michael 5052 #include "confdefs.h"
11722    
11723     #if HAVE_DLFCN_H
11724     #include <dlfcn.h>
11725     #endif
11726    
11727     #include <stdio.h>
11728    
11729     #ifdef RTLD_GLOBAL
11730     # define LT_DLGLOBAL RTLD_GLOBAL
11731     #else
11732     # ifdef DL_GLOBAL
11733     # define LT_DLGLOBAL DL_GLOBAL
11734     # else
11735     # define LT_DLGLOBAL 0
11736     # endif
11737     #endif
11738    
11739     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740     find out it does not work in some platform. */
11741     #ifndef LT_DLLAZY_OR_NOW
11742     # ifdef RTLD_LAZY
11743     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11744     # else
11745     # ifdef DL_LAZY
11746     # define LT_DLLAZY_OR_NOW DL_LAZY
11747     # else
11748     # ifdef RTLD_NOW
11749     # define LT_DLLAZY_OR_NOW RTLD_NOW
11750     # else
11751     # ifdef DL_NOW
11752     # define LT_DLLAZY_OR_NOW DL_NOW
11753     # else
11754     # define LT_DLLAZY_OR_NOW 0
11755     # endif
11756     # endif
11757     # endif
11758     # endif
11759     #endif
11760    
11761 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11762     correspondingly for the symbols needed. */
11763     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764     int fnord () __attribute__((visibility("default")));
11765 michael 5052 #endif
11766    
11767 michael 5059 int fnord () { return 42; }
11768 michael 5052 int main ()
11769     {
11770     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771     int status = $lt_dlunknown;
11772    
11773     if (self)
11774     {
11775     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11776 michael 5059 else
11777     {
11778     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11779     else puts (dlerror ());
11780     }
11781 michael 5052 /* dlclose (self); */
11782     }
11783     else
11784     puts (dlerror ());
11785    
11786 michael 5059 return status;
11787 michael 5052 }
11788 michael 5059 _LT_EOF
11789     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790 michael 5052 (eval $ac_link) 2>&5
11791     ac_status=$?
11792 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11794 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11795     lt_status=$?
11796     case x$lt_status in
11797     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11798     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11799     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11800     esac
11801     else :
11802     # compilation failed
11803     lt_cv_dlopen_self=no
11804     fi
11805     fi
11806     rm -fr conftest*
11807    
11808    
11809     fi
11810 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11811     $as_echo "$lt_cv_dlopen_self" >&6; }
11812 michael 5052
11813 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11814 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11815 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11816     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11817     if ${lt_cv_dlopen_self_static+:} false; then :
11818     $as_echo_n "(cached) " >&6
11819 michael 5052 else
11820 michael 5059 if test yes = "$cross_compiling"; then :
11821 michael 5052 lt_cv_dlopen_self_static=cross
11822     else
11823     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11824     lt_status=$lt_dlunknown
11825 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11826     #line $LINENO "configure"
11827 michael 5052 #include "confdefs.h"
11828    
11829     #if HAVE_DLFCN_H
11830     #include <dlfcn.h>
11831     #endif
11832    
11833     #include <stdio.h>
11834    
11835     #ifdef RTLD_GLOBAL
11836     # define LT_DLGLOBAL RTLD_GLOBAL
11837     #else
11838     # ifdef DL_GLOBAL
11839     # define LT_DLGLOBAL DL_GLOBAL
11840     # else
11841     # define LT_DLGLOBAL 0
11842     # endif
11843     #endif
11844    
11845     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11846     find out it does not work in some platform. */
11847     #ifndef LT_DLLAZY_OR_NOW
11848     # ifdef RTLD_LAZY
11849     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11850     # else
11851     # ifdef DL_LAZY
11852     # define LT_DLLAZY_OR_NOW DL_LAZY
11853     # else
11854     # ifdef RTLD_NOW
11855     # define LT_DLLAZY_OR_NOW RTLD_NOW
11856     # else
11857     # ifdef DL_NOW
11858     # define LT_DLLAZY_OR_NOW DL_NOW
11859     # else
11860     # define LT_DLLAZY_OR_NOW 0
11861     # endif
11862     # endif
11863     # endif
11864     # endif
11865     #endif
11866    
11867 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11868     correspondingly for the symbols needed. */
11869     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11870     int fnord () __attribute__((visibility("default")));
11871 michael 5052 #endif
11872    
11873 michael 5059 int fnord () { return 42; }
11874 michael 5052 int main ()
11875     {
11876     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11877     int status = $lt_dlunknown;
11878    
11879     if (self)
11880     {
11881     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11882 michael 5059 else
11883     {
11884     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11885     else puts (dlerror ());
11886     }
11887 michael 5052 /* dlclose (self); */
11888     }
11889     else
11890     puts (dlerror ());
11891    
11892 michael 5059 return status;
11893 michael 5052 }
11894 michael 5059 _LT_EOF
11895     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11896 michael 5052 (eval $ac_link) 2>&5
11897     ac_status=$?
11898 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11899     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11900 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11901     lt_status=$?
11902     case x$lt_status in
11903     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11904     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11905     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11906     esac
11907     else :
11908     # compilation failed
11909     lt_cv_dlopen_self_static=no
11910     fi
11911     fi
11912     rm -fr conftest*
11913    
11914    
11915     fi
11916 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11917     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11918 michael 5052 fi
11919    
11920 michael 5059 CPPFLAGS=$save_CPPFLAGS
11921     LDFLAGS=$save_LDFLAGS
11922     LIBS=$save_LIBS
11923 michael 5052 ;;
11924     esac
11925    
11926     case $lt_cv_dlopen_self in
11927     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11928     *) enable_dlopen_self=unknown ;;
11929     esac
11930    
11931     case $lt_cv_dlopen_self_static in
11932     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11933     *) enable_dlopen_self_static=unknown ;;
11934     esac
11935     fi
11936    
11937    
11938    
11939    
11940    
11941    
11942    
11943    
11944    
11945    
11946    
11947    
11948    
11949    
11950    
11951    
11952    
11953 michael 5059 striplib=
11954     old_striplib=
11955     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11956     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11957     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11958     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11959     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11960     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11961     $as_echo "yes" >&6; }
11962 michael 5052 else
11963 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11964 michael 5052 case $host_os in
11965 michael 5059 darwin*)
11966     if test -n "$STRIP"; then
11967     striplib="$STRIP -x"
11968     old_striplib="$STRIP -S"
11969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970     $as_echo "yes" >&6; }
11971 michael 5052 else
11972 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973     $as_echo "no" >&6; }
11974 michael 5052 fi
11975     ;;
11976     *)
11977 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978     $as_echo "no" >&6; }
11979 michael 5052 ;;
11980     esac
11981     fi
11982    
11983    
11984    
11985    
11986    
11987    
11988    
11989    
11990    
11991    
11992    
11993    
11994 michael 5059 # Report what library types will actually be built
11995     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11996     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11997     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11998     $as_echo "$can_build_shared" >&6; }
11999 michael 5052
12000 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12001     $as_echo_n "checking whether to build shared libraries... " >&6; }
12002     test no = "$can_build_shared" && enable_shared=no
12003 michael 5052
12004 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12005     # are all built from PIC.
12006 michael 5052 case $host_os in
12007 michael 5059 aix3*)
12008     test yes = "$enable_shared" && enable_static=no
12009     if test -n "$RANLIB"; then
12010     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12011     postinstall_cmds='$RANLIB $lib'
12012 michael 5052 fi
12013     ;;
12014    
12015 michael 5059 aix[4-9]*)
12016     if test ia64 != "$host_cpu"; then
12017     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12018     yes,aix,yes) ;; # shared object as lib.so file only
12019     yes,svr4,*) ;; # shared object as lib.so archive member only
12020     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12021 michael 5052 esac
12022     fi
12023     ;;
12024     esac
12025 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12026     $as_echo "$enable_shared" >&6; }
12027 michael 5052
12028 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12029     $as_echo_n "checking whether to build static libraries... " >&6; }
12030     # Make sure either enable_shared or enable_static is yes.
12031     test yes = "$enable_shared" || enable_static=yes
12032     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12033     $as_echo "$enable_static" >&6; }
12034 michael 5052
12035    
12036    
12037    
12038     fi
12039     ac_ext=c
12040     ac_cpp='$CPP $CPPFLAGS'
12041     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12042     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12043     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12044    
12045 michael 5059 CC=$lt_save_CC
12046 michael 5052
12047    
12048    
12049    
12050    
12051    
12052    
12053    
12054    
12055    
12056    
12057    
12058    
12059    
12060    
12061 michael 5059 ac_config_commands="$ac_config_commands libtool"
12062 michael 5052
12063    
12064    
12065    
12066 michael 5059 # Only expand once:
12067 michael 5052
12068    
12069    
12070    
12071     for ac_prog in 'bison -y' byacc
12072     do
12073     # Extract the first word of "$ac_prog", so it can be a program name with args.
12074     set dummy $ac_prog; ac_word=$2
12075 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12076     $as_echo_n "checking for $ac_word... " >&6; }
12077     if ${ac_cv_prog_YACC+:} false; then :
12078     $as_echo_n "(cached) " >&6
12079 michael 5052 else
12080     if test -n "$YACC"; then
12081     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12082     else
12083     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084     for as_dir in $PATH
12085     do
12086     IFS=$as_save_IFS
12087     test -z "$as_dir" && as_dir=.
12088 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12089     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 michael 5052 ac_cv_prog_YACC="$ac_prog"
12091 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 michael 5052 break 2
12093     fi
12094     done
12095 michael 5059 done
12096 michael 5052 IFS=$as_save_IFS
12097    
12098     fi
12099     fi
12100     YACC=$ac_cv_prog_YACC
12101     if test -n "$YACC"; then
12102 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12103     $as_echo "$YACC" >&6; }
12104 michael 5052 else
12105 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106     $as_echo "no" >&6; }
12107 michael 5052 fi
12108    
12109    
12110     test -n "$YACC" && break
12111     done
12112     test -n "$YACC" || YACC="yacc"
12113    
12114    
12115     for ac_prog in flex lex
12116     do
12117     # Extract the first word of "$ac_prog", so it can be a program name with args.
12118     set dummy $ac_prog; ac_word=$2
12119 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120     $as_echo_n "checking for $ac_word... " >&6; }
12121     if ${ac_cv_prog_LEX+:} false; then :
12122     $as_echo_n "(cached) " >&6
12123 michael 5052 else
12124     if test -n "$LEX"; then
12125     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12126     else
12127     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128     for as_dir in $PATH
12129     do
12130     IFS=$as_save_IFS
12131     test -z "$as_dir" && as_dir=.
12132 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12133     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 michael 5052 ac_cv_prog_LEX="$ac_prog"
12135 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 michael 5052 break 2
12137     fi
12138     done
12139 michael 5059 done
12140 michael 5052 IFS=$as_save_IFS
12141    
12142     fi
12143     fi
12144     LEX=$ac_cv_prog_LEX
12145     if test -n "$LEX"; then
12146 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12147     $as_echo "$LEX" >&6; }
12148 michael 5052 else
12149 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150     $as_echo "no" >&6; }
12151 michael 5052 fi
12152    
12153    
12154     test -n "$LEX" && break
12155     done
12156     test -n "$LEX" || LEX=":"
12157    
12158 michael 5059 if test "x$LEX" != "x:"; then
12159     cat >conftest.l <<_ACEOF
12160     %%
12161     a { ECHO; }
12162     b { REJECT; }
12163     c { yymore (); }
12164     d { yyless (1); }
12165     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12166     yyless ((input () != 0)); }
12167     f { unput (yytext[0]); }
12168     . { BEGIN INITIAL; }
12169     %%
12170     #ifdef YYTEXT_POINTER
12171     extern char *yytext;
12172 michael 5052 #endif
12173     int
12174 michael 5059 main (void)
12175 michael 5052 {
12176 michael 5059 return ! yylex () + ! yywrap ();
12177 michael 5052 }
12178     _ACEOF
12179 michael 5059 { { ac_try="$LEX conftest.l"
12180 michael 5052 case "(($ac_try" in
12181     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182     *) ac_try_echo=$ac_try;;
12183     esac
12184 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12185     $as_echo "$ac_try_echo"; } >&5
12186     (eval "$LEX conftest.l") 2>&5
12187 michael 5052 ac_status=$?
12188 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12189     test $ac_status = 0; }
12190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12191     $as_echo_n "checking lex output file root... " >&6; }
12192     if ${ac_cv_prog_lex_root+:} false; then :
12193     $as_echo_n "(cached) " >&6
12194 michael 5052 else
12195    
12196 michael 5059 if test -f lex.yy.c; then
12197     ac_cv_prog_lex_root=lex.yy
12198     elif test -f lexyy.c; then
12199     ac_cv_prog_lex_root=lexyy
12200     else
12201     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12202 michael 5052 fi
12203 michael 5059 fi
12204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12205     $as_echo "$ac_cv_prog_lex_root" >&6; }
12206     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12207 michael 5052
12208 michael 5059 if test -z "${LEXLIB+set}"; then
12209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12210     $as_echo_n "checking lex library... " >&6; }
12211     if ${ac_cv_lib_lex+:} false; then :
12212     $as_echo_n "(cached) " >&6
12213 michael 5052 else
12214 michael 5059
12215     ac_save_LIBS=$LIBS
12216     ac_cv_lib_lex='none needed'
12217     for ac_lib in '' -lfl -ll; do
12218     LIBS="$ac_lib $ac_save_LIBS"
12219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220 michael 5052 /* end confdefs.h. */
12221 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12222 michael 5052 _ACEOF
12223 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12224     ac_cv_lib_lex=$ac_lib
12225 michael 5052 fi
12226     rm -f core conftest.err conftest.$ac_objext \
12227 michael 5059 conftest$ac_exeext conftest.$ac_ext
12228     test "$ac_cv_lib_lex" != 'none needed' && break
12229     done
12230     LIBS=$ac_save_LIBS
12231 michael 5052
12232     fi
12233 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12234     $as_echo "$ac_cv_lib_lex" >&6; }
12235     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12236 michael 5052 fi
12237    
12238    
12239 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12240     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12241     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12242     $as_echo_n "(cached) " >&6
12243 michael 5052 else
12244     # POSIX says lex can declare yytext either as a pointer or an array; the
12245 michael 5059 # default is implementation-dependent. Figure out which it is, since
12246 michael 5052 # not all implementations provide the %pointer and %array declarations.
12247     ac_cv_prog_lex_yytext_pointer=no
12248     ac_save_LIBS=$LIBS
12249 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251     /* end confdefs.h. */
12252    
12253     #define YYTEXT_POINTER 1
12254 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12255     _ACEOF
12256 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12257 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12258     fi
12259     rm -f core conftest.err conftest.$ac_objext \
12260 michael 5059 conftest$ac_exeext conftest.$ac_ext
12261 michael 5052 LIBS=$ac_save_LIBS
12262    
12263     fi
12264 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12265     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12266 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12267    
12268 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12269 michael 5052
12270     fi
12271 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12272 michael 5052
12273     fi
12274     if test "$LEX" = :; then
12275     LEX=${am_missing_run}flex
12276     fi
12277    
12278 michael 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12279     $as_echo_n "checking for library containing socket... " >&6; }
12280     if ${ac_cv_search_socket+:} false; then :
12281     $as_echo_n "(cached) " >&6
12282     else
12283     ac_func_search_save_LIBS=$LIBS
12284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285     /* end confdefs.h. */
12286 michael 5052
12287 michael 5062 /* Override any GCC internal prototype to avoid an error.
12288     Use char because int might match the return type of a GCC
12289     builtin and then its argument prototype would still apply. */
12290     #ifdef __cplusplus
12291     extern "C"
12292     #endif
12293     char socket ();
12294     int
12295     main ()
12296     {
12297     return socket ();
12298     ;
12299     return 0;
12300     }
12301     _ACEOF
12302     for ac_lib in '' socket; do
12303     if test -z "$ac_lib"; then
12304     ac_res="none required"
12305     else
12306     ac_res=-l$ac_lib
12307     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12308     fi
12309     if ac_fn_c_try_link "$LINENO"; then :
12310     ac_cv_search_socket=$ac_res
12311     fi
12312     rm -f core conftest.err conftest.$ac_objext \
12313     conftest$ac_exeext
12314     if ${ac_cv_search_socket+:} false; then :
12315     break
12316     fi
12317     done
12318     if ${ac_cv_search_socket+:} false; then :
12319    
12320     else
12321     ac_cv_search_socket=no
12322     fi
12323     rm conftest.$ac_ext
12324     LIBS=$ac_func_search_save_LIBS
12325     fi
12326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12327     $as_echo "$ac_cv_search_socket" >&6; }
12328     ac_res=$ac_cv_search_socket
12329     if test "$ac_res" != no; then :
12330     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12331    
12332     else
12333     as_fn_error $? "socket library not found" "$LINENO" 5
12334     fi
12335    
12336     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12337     if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12338    
12339     else
12340     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12341     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12342     if ${ac_cv_search_getaddrinfo+:} false; then :
12343     $as_echo_n "(cached) " >&6
12344     else
12345     ac_func_search_save_LIBS=$LIBS
12346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347     /* end confdefs.h. */
12348    
12349     /* Override any GCC internal prototype to avoid an error.
12350     Use char because int might match the return type of a GCC
12351     builtin and then its argument prototype would still apply. */
12352     #ifdef __cplusplus
12353     extern "C"
12354     #endif
12355     char getaddrinfo ();
12356     int
12357     main ()
12358     {
12359     return getaddrinfo ();
12360     ;
12361     return 0;
12362     }
12363     _ACEOF
12364     for ac_lib in '' nsl; do
12365     if test -z "$ac_lib"; then
12366     ac_res="none required"
12367     else
12368     ac_res=-l$ac_lib
12369     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12370     fi
12371     if ac_fn_c_try_link "$LINENO"; then :
12372     ac_cv_search_getaddrinfo=$ac_res
12373     fi
12374     rm -f core conftest.err conftest.$ac_objext \
12375     conftest$ac_exeext
12376     if ${ac_cv_search_getaddrinfo+:} false; then :
12377     break
12378     fi
12379     done
12380     if ${ac_cv_search_getaddrinfo+:} false; then :
12381    
12382     else
12383     ac_cv_search_getaddrinfo=no
12384     fi
12385     rm conftest.$ac_ext
12386     LIBS=$ac_func_search_save_LIBS
12387     fi
12388     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12389     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12390     ac_res=$ac_cv_search_getaddrinfo
12391     if test "$ac_res" != no; then :
12392     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12393    
12394     fi
12395    
12396     fi
12397    
12398     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12399     if test "x$ac_cv_func_getnameinfo" = xyes; then :
12400    
12401     else
12402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12403     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12404     if ${ac_cv_search_getnameinfo+:} false; then :
12405     $as_echo_n "(cached) " >&6
12406     else
12407     ac_func_search_save_LIBS=$LIBS
12408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409     /* end confdefs.h. */
12410    
12411     /* Override any GCC internal prototype to avoid an error.
12412     Use char because int might match the return type of a GCC
12413     builtin and then its argument prototype would still apply. */
12414     #ifdef __cplusplus
12415     extern "C"
12416     #endif
12417     char getnameinfo ();
12418     int
12419     main ()
12420     {
12421     return getnameinfo ();
12422     ;
12423     return 0;
12424     }
12425     _ACEOF
12426     for ac_lib in '' nsl; do
12427     if test -z "$ac_lib"; then
12428     ac_res="none required"
12429     else
12430     ac_res=-l$ac_lib
12431     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12432     fi
12433     if ac_fn_c_try_link "$LINENO"; then :
12434     ac_cv_search_getnameinfo=$ac_res
12435     fi
12436     rm -f core conftest.err conftest.$ac_objext \
12437     conftest$ac_exeext
12438     if ${ac_cv_search_getnameinfo+:} false; then :
12439     break
12440     fi
12441     done
12442     if ${ac_cv_search_getnameinfo+:} false; then :
12443    
12444     else
12445     ac_cv_search_getnameinfo=no
12446     fi
12447     rm conftest.$ac_ext
12448     LIBS=$ac_func_search_save_LIBS
12449     fi
12450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12451     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12452     ac_res=$ac_cv_search_getnameinfo
12453     if test "$ac_res" != no; then :
12454     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12455    
12456     fi
12457    
12458     fi
12459    
12460    
12461 michael 5265 for ac_func in strlcpy strlcat
12462 michael 5059 do :
12463     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12464     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12465     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12466     cat >>confdefs.h <<_ACEOF
12467     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12468 michael 5052 _ACEOF
12469    
12470     fi
12471 michael 5059 done
12472 michael 5052
12473    
12474 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12475     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12476     if ${ac_cv_c_bigendian+:} false; then :
12477     $as_echo_n "(cached) " >&6
12478 michael 5052 else
12479 michael 5059 ac_cv_c_bigendian=unknown
12480     # See if we're dealing with a universal compiler.
12481     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 michael 5052 /* end confdefs.h. */
12483 michael 5059 #ifndef __APPLE_CC__
12484     not a universal capable compiler
12485     #endif
12486     typedef int dummy;
12487 michael 5052
12488     _ACEOF
12489 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12490 michael 5052
12491 michael 5059 # Check for potential -arch flags. It is not universal unless
12492     # there are at least two -arch flags with different values.
12493     ac_arch=
12494     ac_prev=
12495     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12496     if test -n "$ac_prev"; then
12497     case $ac_word in
12498     i?86 | x86_64 | ppc | ppc64)
12499     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12500     ac_arch=$ac_word
12501     else
12502     ac_cv_c_bigendian=universal
12503     break
12504     fi
12505     ;;
12506     esac
12507     ac_prev=
12508     elif test "x$ac_word" = "x-arch"; then
12509     ac_prev=arch
12510     fi
12511     done
12512 michael 5052 fi
12513 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514     if test $ac_cv_c_bigendian = unknown; then
12515     # See if sys/param.h defines the BYTE_ORDER macro.
12516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 michael 5052 /* end confdefs.h. */
12518     #include <sys/types.h>
12519 michael 5059 #include <sys/param.h>
12520 michael 5052
12521     int
12522     main ()
12523     {
12524 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12525     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12526     && LITTLE_ENDIAN)
12527     bogus endian macros
12528     #endif
12529 michael 5052
12530     ;
12531     return 0;
12532     }
12533     _ACEOF
12534 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12535 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12536 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12537 michael 5052 /* end confdefs.h. */
12538     #include <sys/types.h>
12539 michael 5059 #include <sys/param.h>
12540 michael 5052
12541     int
12542     main ()
12543     {
12544     #if BYTE_ORDER != BIG_ENDIAN
12545 michael 5059 not big endian
12546     #endif
12547 michael 5052
12548     ;
12549     return 0;
12550     }
12551     _ACEOF
12552 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12553 michael 5052 ac_cv_c_bigendian=yes
12554     else
12555     ac_cv_c_bigendian=no
12556     fi
12557     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12558     fi
12559     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 michael 5059 fi
12561     if test $ac_cv_c_bigendian = unknown; then
12562     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 michael 5052 /* end confdefs.h. */
12565 michael 5059 #include <limits.h>
12566 michael 5052
12567     int
12568     main ()
12569     {
12570 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12571     bogus endian macros
12572     #endif
12573 michael 5052
12574     ;
12575     return 0;
12576     }
12577     _ACEOF
12578 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12579     # It does; now see whether it defined to _BIG_ENDIAN or not.
12580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12581 michael 5052 /* end confdefs.h. */
12582 michael 5059 #include <limits.h>
12583 michael 5052
12584     int
12585     main ()
12586     {
12587 michael 5059 #ifndef _BIG_ENDIAN
12588     not big endian
12589     #endif
12590 michael 5052
12591     ;
12592     return 0;
12593     }
12594     _ACEOF
12595 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12596     ac_cv_c_bigendian=yes
12597 michael 5052 else
12598 michael 5059 ac_cv_c_bigendian=no
12599 michael 5052 fi
12600     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12601     fi
12602     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12603 michael 5059 fi
12604     if test $ac_cv_c_bigendian = unknown; then
12605     # Compile a test program.
12606     if test "$cross_compiling" = yes; then :
12607     # Try to guess by grepping values from an object file.
12608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609     /* end confdefs.h. */
12610     short int ascii_mm[] =
12611     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12612     short int ascii_ii[] =
12613     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12614     int use_ascii (int i) {
12615     return ascii_mm[i] + ascii_ii[i];
12616     }
12617     short int ebcdic_ii[] =
12618     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12619     short int ebcdic_mm[] =
12620     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12621     int use_ebcdic (int i) {
12622     return ebcdic_mm[i] + ebcdic_ii[i];
12623     }
12624     extern int foo;
12625 michael 5052
12626     int
12627     main ()
12628     {
12629 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12630 michael 5052 ;
12631     return 0;
12632     }
12633     _ACEOF
12634 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12635     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12636     ac_cv_c_bigendian=yes
12637     fi
12638     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12639     if test "$ac_cv_c_bigendian" = unknown; then
12640     ac_cv_c_bigendian=no
12641     else
12642     # finding both strings is unlikely to happen, but who knows?
12643     ac_cv_c_bigendian=unknown
12644     fi
12645     fi
12646 michael 5052 fi
12647     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648     else
12649 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 michael 5052 /* end confdefs.h. */
12651     $ac_includes_default
12652     int
12653     main ()
12654     {
12655    
12656 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12657     union
12658     {
12659     long int l;
12660     char c[sizeof (long int)];
12661     } u;
12662     u.l = 1;
12663     return u.c[sizeof (long int) - 1] == 1;
12664 michael 5052
12665     ;
12666     return 0;
12667     }
12668     _ACEOF
12669 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12670     ac_cv_c_bigendian=no
12671 michael 5052 else
12672 michael 5059 ac_cv_c_bigendian=yes
12673 michael 5052 fi
12674 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12675     conftest.$ac_objext conftest.beam conftest.$ac_ext
12676 michael 5052 fi
12677 michael 5059
12678     fi
12679 michael 5052 fi
12680 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12681     $as_echo "$ac_cv_c_bigendian" >&6; }
12682     case $ac_cv_c_bigendian in #(
12683     yes)
12684     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12685     ;; #(
12686     no)
12687     ;; #(
12688     universal)
12689 michael 5052
12690 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12691 michael 5052
12692 michael 5059 ;; #(
12693     *)
12694     as_fn_error $? "unknown endianness
12695     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12696     esac
12697 michael 5052
12698    
12699 michael 5261 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libopm/Makefile src/libopm/src/Makefile"
12700 michael 5052
12701     cat >confcache <<\_ACEOF
12702     # This file is a shell script that caches the results of configure
12703     # tests run on this system so they can be shared between configure
12704     # scripts and configure runs, see configure's option --config-cache.
12705     # It is not useful on other systems. If it contains results you don't
12706     # want to keep, you may remove or edit it.
12707     #
12708     # config.status only pays attention to the cache file if you give it
12709     # the --recheck option to rerun configure.
12710     #
12711     # `ac_cv_env_foo' variables (set or unset) will be overridden when
12712     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12713     # following values.
12714    
12715     _ACEOF
12716    
12717     # The following way of writing the cache mishandles newlines in values,
12718     # but we know of no workaround that is simple, portable, and efficient.
12719     # So, we kill variables containing newlines.
12720     # Ultrix sh set writes to stderr and can't be redirected directly,
12721     # and sets the high bit in the cache file unless we assign to the vars.
12722     (
12723     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12724     eval ac_val=\$$ac_var
12725     case $ac_val in #(
12726     *${as_nl}*)
12727     case $ac_var in #(
12728 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12729     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12730 michael 5052 esac
12731     case $ac_var in #(
12732     _ | IFS | as_nl) ;; #(
12733 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12734     *) { eval $ac_var=; unset $ac_var;} ;;
12735 michael 5052 esac ;;
12736     esac
12737     done
12738    
12739     (set) 2>&1 |
12740     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12741     *${as_nl}ac_space=\ *)
12742 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
12743     # substitution turns \\\\ into \\, and sed turns \\ into \.
12744 michael 5052 sed -n \
12745     "s/'/'\\\\''/g;
12746     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12747     ;; #(
12748     *)
12749     # `set' quotes correctly as required by POSIX, so do not add quotes.
12750     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12751     ;;
12752     esac |
12753     sort
12754     ) |
12755     sed '
12756     /^ac_cv_env_/b end
12757     t clear
12758     :clear
12759     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12760     t end
12761     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12762     :end' >>confcache
12763     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12764     if test -w "$cache_file"; then
12765 michael 5059 if test "x$cache_file" != "x/dev/null"; then
12766     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12767     $as_echo "$as_me: updating cache $cache_file" >&6;}
12768     if test ! -f "$cache_file" || test -h "$cache_file"; then
12769     cat confcache >"$cache_file"
12770     else
12771     case $cache_file in #(
12772     */* | ?:*)
12773     mv -f confcache "$cache_file"$$ &&
12774     mv -f "$cache_file"$$ "$cache_file" ;; #(
12775     *)
12776     mv -f confcache "$cache_file" ;;
12777     esac
12778     fi
12779     fi
12780 michael 5052 else
12781 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12782     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12783 michael 5052 fi
12784     fi
12785     rm -f confcache
12786    
12787     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12788     # Let make expand exec_prefix.
12789     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12790    
12791     DEFS=-DHAVE_CONFIG_H
12792    
12793     ac_libobjs=
12794     ac_ltlibobjs=
12795 michael 5144 U=
12796 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12797     # 1. Remove the extension, and $U if already installed.
12798     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12799 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12800 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12801     # will be set to the directory where LIBOBJS objects are built.
12802 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12803     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12804 michael 5052 done
12805     LIBOBJS=$ac_libobjs
12806    
12807     LTLIBOBJS=$ac_ltlibobjs
12808    
12809    
12810 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12811     $as_echo_n "checking that generated files are newer than configure... " >&6; }
12812     if test -n "$am_sleep_pid"; then
12813     # Hide warnings about reused PIDs.
12814     wait $am_sleep_pid 2>/dev/null
12815     fi
12816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12817     $as_echo "done" >&6; }
12818     if test -n "$EXEEXT"; then
12819     am__EXEEXT_TRUE=
12820     am__EXEEXT_FALSE='#'
12821     else
12822     am__EXEEXT_TRUE='#'
12823     am__EXEEXT_FALSE=
12824     fi
12825    
12826 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12827 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12828     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12829 michael 5052 fi
12830     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12831 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
12832     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12833 michael 5052 fi
12834     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12835 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12836     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12837 michael 5052 fi
12838    
12839 michael 5059
12840     : "${CONFIG_STATUS=./config.status}"
12841     ac_write_fail=0
12842 michael 5052 ac_clean_files_save=$ac_clean_files
12843     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12844 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12845     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12846     as_write_fail=0
12847     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12848 michael 5052 #! $SHELL
12849     # Generated by $as_me.
12850     # Run this file to recreate the current configuration.
12851     # Compiler output produced by configure, useful for debugging
12852     # configure, is in config.log if it exists.
12853    
12854     debug=false
12855     ac_cs_recheck=false
12856     ac_cs_silent=false
12857 michael 5059
12858 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
12859 michael 5059 export SHELL
12860     _ASEOF
12861     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12862     ## -------------------- ##
12863     ## M4sh Initialization. ##
12864     ## -------------------- ##
12865 michael 5052
12866 michael 5059 # Be more Bourne compatible
12867     DUALCASE=1; export DUALCASE # for MKS sh
12868     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12869 michael 5052 emulate sh
12870     NULLCMD=:
12871 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12872 michael 5052 # is contrary to our usage. Disable this feature.
12873     alias -g '${1+"$@"}'='"$@"'
12874     setopt NO_GLOB_SUBST
12875     else
12876 michael 5059 case `(set -o) 2>/dev/null` in #(
12877     *posix*) :
12878     set -o posix ;; #(
12879     *) :
12880     ;;
12881     esac
12882 michael 5052 fi
12883    
12884    
12885 michael 5059 as_nl='
12886     '
12887     export as_nl
12888     # Printing a long string crashes Solaris 7 /usr/bin/printf.
12889     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12890     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12891     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12892     # Prefer a ksh shell builtin over an external printf program on Solaris,
12893     # but without wasting forks for bash or zsh.
12894     if test -z "$BASH_VERSION$ZSH_VERSION" \
12895     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12896     as_echo='print -r --'
12897     as_echo_n='print -rn --'
12898     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12899     as_echo='printf %s\n'
12900     as_echo_n='printf %s'
12901     else
12902     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12903     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12904     as_echo_n='/usr/ucb/echo -n'
12905 michael 5052 else
12906 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12907     as_echo_n_body='eval
12908     arg=$1;
12909     case $arg in #(
12910     *"$as_nl"*)
12911     expr "X$arg" : "X\\(.*\\)$as_nl";
12912     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12913     esac;
12914     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12915     '
12916     export as_echo_n_body
12917     as_echo_n='sh -c $as_echo_n_body as_echo'
12918 michael 5052 fi
12919 michael 5059 export as_echo_body
12920     as_echo='sh -c $as_echo_body as_echo'
12921 michael 5052 fi
12922    
12923 michael 5059 # The user is always right.
12924     if test "${PATH_SEPARATOR+set}" != set; then
12925     PATH_SEPARATOR=:
12926     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12927     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12928     PATH_SEPARATOR=';'
12929     }
12930 michael 5052 fi
12931    
12932    
12933     # IFS
12934     # We need space, tab and new line, in precisely that order. Quoting is
12935     # there to prevent editors from complaining about space-tab.
12936     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12937     # splitting by setting IFS to empty value.)
12938     IFS=" "" $as_nl"
12939    
12940     # Find who we are. Look in the path if we contain no directory separator.
12941 michael 5059 as_myself=
12942     case $0 in #((
12943 michael 5052 *[\\/]* ) as_myself=$0 ;;
12944     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945     for as_dir in $PATH
12946     do
12947     IFS=$as_save_IFS
12948     test -z "$as_dir" && as_dir=.
12949 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12950     done
12951 michael 5052 IFS=$as_save_IFS
12952    
12953     ;;
12954     esac
12955     # We did not find ourselves, most probably we were run as `sh COMMAND'
12956     # in which case we are not to be found in the path.
12957     if test "x$as_myself" = x; then
12958     as_myself=$0
12959     fi
12960     if test ! -f "$as_myself"; then
12961 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12962     exit 1
12963 michael 5052 fi
12964    
12965 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
12966     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12967     # suppresses any "Segmentation fault" message there. '((' could
12968     # trigger a bug in pdksh 5.2.14.
12969     for as_var in BASH_ENV ENV MAIL MAILPATH
12970     do eval test x\${$as_var+set} = xset \
12971     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12972 michael 5052 done
12973     PS1='$ '
12974     PS2='> '
12975     PS4='+ '
12976    
12977     # NLS nuisances.
12978 michael 5059 LC_ALL=C
12979     export LC_ALL
12980     LANGUAGE=C
12981     export LANGUAGE
12982    
12983     # CDPATH.
12984     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12985    
12986    
12987     # as_fn_error STATUS ERROR [LINENO LOG_FD]
12988     # ----------------------------------------
12989     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12990     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12991     # script with STATUS, using 1 if that was 0.
12992     as_fn_error ()
12993     {
12994     as_status=$1; test $as_status -eq 0 && as_status=1
12995     if test "$4"; then
12996     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12997     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12998 michael 5052 fi
12999 michael 5059 $as_echo "$as_me: error: $2" >&2
13000     as_fn_exit $as_status
13001     } # as_fn_error
13002 michael 5052
13003 michael 5059
13004     # as_fn_set_status STATUS
13005     # -----------------------
13006     # Set $? to STATUS, without forking.
13007     as_fn_set_status ()
13008     {
13009     return $1
13010     } # as_fn_set_status
13011    
13012     # as_fn_exit STATUS
13013     # -----------------
13014     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13015     as_fn_exit ()
13016     {
13017     set +e
13018     as_fn_set_status $1
13019     exit $1
13020     } # as_fn_exit
13021    
13022     # as_fn_unset VAR
13023     # ---------------
13024     # Portably unset VAR.
13025     as_fn_unset ()
13026     {
13027     { eval $1=; unset $1;}
13028     }
13029     as_unset=as_fn_unset
13030     # as_fn_append VAR VALUE
13031     # ----------------------
13032     # Append the text in VALUE to the end of the definition contained in VAR. Take
13033     # advantage of any shell optimizations that allow amortized linear growth over
13034     # repeated appends, instead of the typical quadratic growth present in naive
13035     # implementations.
13036     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13037     eval 'as_fn_append ()
13038     {
13039     eval $1+=\$2
13040     }'
13041     else
13042     as_fn_append ()
13043     {
13044     eval $1=\$$1\$2
13045     }
13046     fi # as_fn_append
13047    
13048     # as_fn_arith ARG...
13049     # ------------------
13050     # Perform arithmetic evaluation on the ARGs, and store the result in the
13051     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13052     # must be portable across $(()) and expr.
13053     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13054     eval 'as_fn_arith ()
13055     {
13056     as_val=$(( $* ))
13057     }'
13058     else
13059     as_fn_arith ()
13060     {
13061     as_val=`expr "$@" || test $? -eq 1`
13062     }
13063     fi # as_fn_arith
13064    
13065    
13066 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13067     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13068     as_expr=expr
13069     else
13070     as_expr=false
13071     fi
13072    
13073     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13074     as_basename=basename
13075     else
13076     as_basename=false
13077     fi
13078    
13079 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13080     as_dirname=dirname
13081     else
13082     as_dirname=false
13083     fi
13084 michael 5052
13085     as_me=`$as_basename -- "$0" ||
13086     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13087     X"$0" : 'X\(//\)$' \| \
13088     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13089 michael 5059 $as_echo X/"$0" |
13090 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13091     s//\1/
13092     q
13093     }
13094     /^X\/\(\/\/\)$/{
13095     s//\1/
13096     q
13097     }
13098     /^X\/\(\/\).*/{
13099     s//\1/
13100     q
13101     }
13102     s/.*/./; q'`
13103    
13104 michael 5059 # Avoid depending upon Character Ranges.
13105     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13106     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13107     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13108     as_cr_digits='0123456789'
13109     as_cr_alnum=$as_cr_Letters$as_cr_digits
13110 michael 5052
13111     ECHO_C= ECHO_N= ECHO_T=
13112 michael 5059 case `echo -n x` in #(((((
13113 michael 5052 -n*)
13114 michael 5059 case `echo 'xy\c'` in
13115 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13116 michael 5059 xy) ECHO_C='\c';;
13117     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13118     ECHO_T=' ';;
13119 michael 5052 esac;;
13120     *)
13121     ECHO_N='-n';;
13122     esac
13123    
13124     rm -f conf$$ conf$$.exe conf$$.file
13125     if test -d conf$$.dir; then
13126     rm -f conf$$.dir/conf$$.file
13127     else
13128     rm -f conf$$.dir
13129 michael 5059 mkdir conf$$.dir 2>/dev/null
13130 michael 5052 fi
13131 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13132     if ln -s conf$$.file conf$$ 2>/dev/null; then
13133     as_ln_s='ln -s'
13134     # ... but there are two gotchas:
13135     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13136     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13137     # In both cases, we have to default to `cp -pR'.
13138     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13139     as_ln_s='cp -pR'
13140     elif ln conf$$.file conf$$ 2>/dev/null; then
13141     as_ln_s=ln
13142     else
13143     as_ln_s='cp -pR'
13144     fi
13145 michael 5052 else
13146 michael 5059 as_ln_s='cp -pR'
13147 michael 5052 fi
13148     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13149     rmdir conf$$.dir 2>/dev/null
13150    
13151 michael 5059
13152     # as_fn_mkdir_p
13153     # -------------
13154     # Create "$as_dir" as a directory, including parents if necessary.
13155     as_fn_mkdir_p ()
13156     {
13157    
13158     case $as_dir in #(
13159     -*) as_dir=./$as_dir;;
13160     esac
13161     test -d "$as_dir" || eval $as_mkdir_p || {
13162     as_dirs=
13163     while :; do
13164     case $as_dir in #(
13165     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13166     *) as_qdir=$as_dir;;
13167     esac
13168     as_dirs="'$as_qdir' $as_dirs"
13169     as_dir=`$as_dirname -- "$as_dir" ||
13170     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13171     X"$as_dir" : 'X\(//\)[^/]' \| \
13172     X"$as_dir" : 'X\(//\)$' \| \
13173     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13174     $as_echo X"$as_dir" |
13175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13176     s//\1/
13177     q
13178     }
13179     /^X\(\/\/\)[^/].*/{
13180     s//\1/
13181     q
13182     }
13183     /^X\(\/\/\)$/{
13184     s//\1/
13185     q
13186     }
13187     /^X\(\/\).*/{
13188     s//\1/
13189     q
13190     }
13191     s/.*/./; q'`
13192     test -d "$as_dir" && break
13193     done
13194     test -z "$as_dirs" || eval "mkdir $as_dirs"
13195     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13196    
13197    
13198     } # as_fn_mkdir_p
13199 michael 5052 if mkdir -p . 2>/dev/null; then
13200 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13201 michael 5052 else
13202     test -d ./-p && rmdir ./-p
13203     as_mkdir_p=false
13204     fi
13205    
13206    
13207 michael 5059 # as_fn_executable_p FILE
13208     # -----------------------
13209     # Test if FILE is an executable regular file.
13210     as_fn_executable_p ()
13211     {
13212     test -f "$1" && test -x "$1"
13213     } # as_fn_executable_p
13214     as_test_x='test -x'
13215     as_executable_p=as_fn_executable_p
13216    
13217 michael 5052 # Sed expression to map a string onto a valid CPP name.
13218     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13219    
13220     # Sed expression to map a string onto a valid variable name.
13221     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13222    
13223    
13224     exec 6>&1
13225 michael 5059 ## ----------------------------------- ##
13226     ## Main body of $CONFIG_STATUS script. ##
13227     ## ----------------------------------- ##
13228     _ASEOF
13229     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13230 michael 5052
13231 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232     # Save the log message, to keep $0 and so on meaningful, and to
13233 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13234     # values after options handling.
13235     ac_log="
13236 michael 6059 This file was extended by hopm $as_me 1.0.7, which was
13237 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13238 michael 5052
13239     CONFIG_FILES = $CONFIG_FILES
13240     CONFIG_HEADERS = $CONFIG_HEADERS
13241     CONFIG_LINKS = $CONFIG_LINKS
13242     CONFIG_COMMANDS = $CONFIG_COMMANDS
13243     $ $0 $@
13244    
13245     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13246     "
13247    
13248     _ACEOF
13249    
13250 michael 5059 case $ac_config_files in *"
13251     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13252     esac
13253    
13254     case $ac_config_headers in *"
13255     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13256     esac
13257    
13258    
13259     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13260 michael 5052 # Files that config.status was made for.
13261     config_files="$ac_config_files"
13262     config_headers="$ac_config_headers"
13263     config_commands="$ac_config_commands"
13264    
13265     _ACEOF
13266    
13267 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13268 michael 5052 ac_cs_usage="\
13269 michael 5059 \`$as_me' instantiates files and other configuration actions
13270     from templates according to the current configuration. Unless the files
13271     and actions are specified as TAGs, all are instantiated by default.
13272 michael 5052
13273 michael 5059 Usage: $0 [OPTION]... [TAG]...
13274 michael 5052
13275     -h, --help print this help, then exit
13276 michael 5059 -V, --version print version number and configuration settings, then exit
13277     --config print configuration, then exit
13278     -q, --quiet, --silent
13279     do not print progress messages
13280 michael 5052 -d, --debug don't remove temporary files
13281     --recheck update $as_me by reconfiguring in the same conditions
13282 michael 5059 --file=FILE[:TEMPLATE]
13283     instantiate the configuration file FILE
13284     --header=FILE[:TEMPLATE]
13285     instantiate the configuration header FILE
13286 michael 5052
13287     Configuration files:
13288     $config_files
13289    
13290     Configuration headers:
13291     $config_headers
13292    
13293     Configuration commands:
13294     $config_commands
13295    
13296 michael 5267 Report bugs to <bugs@ircd-hybrid.org>."
13297 michael 5052
13298     _ACEOF
13299 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13300     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13301 michael 5052 ac_cs_version="\\
13302 michael 6059 hopm config.status 1.0.7
13303 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13304     with options \\"\$ac_cs_config\\"
13305 michael 5052
13306 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13307 michael 5052 This config.status script is free software; the Free Software Foundation
13308     gives unlimited permission to copy, distribute and modify it."
13309    
13310     ac_pwd='$ac_pwd'
13311     srcdir='$srcdir'
13312     INSTALL='$INSTALL'
13313 michael 5059 MKDIR_P='$MKDIR_P'
13314     AWK='$AWK'
13315     test -n "\$AWK" || AWK=awk
13316 michael 5052 _ACEOF
13317    
13318 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13319     # The default lists apply if the user does not specify any file.
13320 michael 5052 ac_need_defaults=:
13321     while test $# != 0
13322     do
13323     case $1 in
13324 michael 5059 --*=?*)
13325 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13326     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13327     ac_shift=:
13328     ;;
13329 michael 5059 --*=)
13330     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13331     ac_optarg=
13332     ac_shift=:
13333     ;;
13334 michael 5052 *)
13335     ac_option=$1
13336     ac_optarg=$2
13337     ac_shift=shift
13338     ;;
13339     esac
13340    
13341     case $ac_option in
13342     # Handling of the options.
13343     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13344     ac_cs_recheck=: ;;
13345     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13346 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13347     --config | --confi | --conf | --con | --co | --c )
13348     $as_echo "$ac_cs_config"; exit ;;
13349 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13350     debug=: ;;
13351     --file | --fil | --fi | --f )
13352     $ac_shift
13353 michael 5059 case $ac_optarg in
13354     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13355     '') as_fn_error $? "missing file argument" ;;
13356     esac
13357     as_fn_append CONFIG_FILES " '$ac_optarg'"
13358 michael 5052 ac_need_defaults=false;;
13359     --header | --heade | --head | --hea )
13360     $ac_shift
13361 michael 5059 case $ac_optarg in
13362     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13363     esac
13364     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13365 michael 5052 ac_need_defaults=false;;
13366     --he | --h)
13367     # Conflict between --help and --header
13368 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13369     Try \`$0 --help' for more information.";;
13370 michael 5052 --help | --hel | -h )
13371 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13372 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13373     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13374     ac_cs_silent=: ;;
13375    
13376     # This is an error.
13377 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13378     Try \`$0 --help' for more information." ;;
13379 michael 5052
13380 michael 5059 *) as_fn_append ac_config_targets " $1"
13381 michael 5052 ac_need_defaults=false ;;
13382    
13383     esac
13384     shift
13385     done
13386    
13387     ac_configure_extra_args=
13388    
13389     if $ac_cs_silent; then
13390     exec 6>/dev/null
13391     ac_configure_extra_args="$ac_configure_extra_args --silent"
13392     fi
13393    
13394     _ACEOF
13395 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13396 michael 5052 if \$ac_cs_recheck; then
13397 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13398     shift
13399     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13400     CONFIG_SHELL='$SHELL'
13401 michael 5052 export CONFIG_SHELL
13402 michael 5059 exec "\$@"
13403 michael 5052 fi
13404    
13405     _ACEOF
13406 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13407 michael 5052 exec 5>>config.log
13408     {
13409     echo
13410     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13411     ## Running $as_me. ##
13412     _ASBOX
13413 michael 5059 $as_echo "$ac_log"
13414 michael 5052 } >&5
13415    
13416     _ACEOF
13417 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13418 michael 5052 #
13419     # INIT-COMMANDS
13420     #
13421     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13422    
13423 michael 5059
13424     # The HP-UX ksh and POSIX shell print the target directory to stdout
13425     # if CDPATH is set.
13426     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13427    
13428     sed_quote_subst='$sed_quote_subst'
13429     double_quote_subst='$double_quote_subst'
13430     delay_variable_subst='$delay_variable_subst'
13431     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13432     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13433     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13434     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13435     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13436     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13437     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13438     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13439     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13440     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13441     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13442     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13443     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13444     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13445     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13446     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13447     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13448     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13449     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13450     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13451     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13452     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13453     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13454     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13455     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13456     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13457     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13458     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13459     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13460     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13461     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13462     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13463     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13464     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13465     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13466     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13467     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13468     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13469     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13470     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13471     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13472     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13473     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13474     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13475     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13476     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13477     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13478     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13479     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13480     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13481     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13482     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13483     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13484     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13485     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13486     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13487     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13488     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13489     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"`'
13490     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13491     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13492     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13493     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13494     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13495     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13496     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13497     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13498     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13499     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13500     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13501     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13502     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13503     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13504     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13505     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13506     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13507     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13508     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13509     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13510     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13511     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13512     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13513     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13514     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13515     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13516     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13517     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13518     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13519     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13520     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13521     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13522     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13523     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13524     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13525     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13526     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13527     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13528     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13529     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13530     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13531     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13532     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13533     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13534     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13535     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13536     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13537     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13538     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13539     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13540     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13541     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13542     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13543     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13544     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13545     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13546     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13547     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13548     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13549     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13550     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13551     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13552     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13553     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13554     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13555     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13556     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13557     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13558 michael 5715 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13559     configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13560 michael 5059 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13561     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13562     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13563     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13564     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13565     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13566    
13567     LTCC='$LTCC'
13568     LTCFLAGS='$LTCFLAGS'
13569     compiler='$compiler_DEFAULT'
13570    
13571     # A function that is used when there is no print builtin or printf.
13572     func_fallback_echo ()
13573     {
13574     eval 'cat <<_LTECHO_EOF
13575     \$1
13576     _LTECHO_EOF'
13577     }
13578    
13579     # Quote evaled strings.
13580     for var in SHELL \
13581     ECHO \
13582     PATH_SEPARATOR \
13583     SED \
13584     GREP \
13585     EGREP \
13586     FGREP \
13587     LD \
13588     NM \
13589     LN_S \
13590     lt_SP2NL \
13591     lt_NL2SP \
13592     reload_flag \
13593     OBJDUMP \
13594     deplibs_check_method \
13595     file_magic_cmd \
13596     file_magic_glob \
13597     want_nocaseglob \
13598     DLLTOOL \
13599     sharedlib_from_linklib_cmd \
13600     AR \
13601     AR_FLAGS \
13602     archiver_list_spec \
13603     STRIP \
13604     RANLIB \
13605     CC \
13606     CFLAGS \
13607     compiler \
13608     lt_cv_sys_global_symbol_pipe \
13609     lt_cv_sys_global_symbol_to_cdecl \
13610     lt_cv_sys_global_symbol_to_import \
13611     lt_cv_sys_global_symbol_to_c_name_address \
13612     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13613     lt_cv_nm_interface \
13614     nm_file_list_spec \
13615     lt_cv_truncate_bin \
13616     lt_prog_compiler_no_builtin_flag \
13617     lt_prog_compiler_pic \
13618     lt_prog_compiler_wl \
13619     lt_prog_compiler_static \
13620     lt_cv_prog_compiler_c_o \
13621     need_locks \
13622     MANIFEST_TOOL \
13623     DSYMUTIL \
13624     NMEDIT \
13625     LIPO \
13626     OTOOL \
13627     OTOOL64 \
13628     shrext_cmds \
13629     export_dynamic_flag_spec \
13630     whole_archive_flag_spec \
13631     compiler_needs_object \
13632     with_gnu_ld \
13633     allow_undefined_flag \
13634     no_undefined_flag \
13635     hardcode_libdir_flag_spec \
13636     hardcode_libdir_separator \
13637     exclude_expsyms \
13638     include_expsyms \
13639     file_list_spec \
13640     variables_saved_for_relink \
13641     libname_spec \
13642     library_names_spec \
13643     soname_spec \
13644     install_override_mode \
13645     finish_eval \
13646     old_striplib \
13647     striplib; do
13648     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13649     *[\\\\\\\`\\"\\\$]*)
13650     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13651     ;;
13652     *)
13653     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13654     ;;
13655     esac
13656     done
13657    
13658     # Double-quote double-evaled strings.
13659     for var in reload_cmds \
13660     old_postinstall_cmds \
13661     old_postuninstall_cmds \
13662     old_archive_cmds \
13663     extract_expsyms_cmds \
13664     old_archive_from_new_cmds \
13665     old_archive_from_expsyms_cmds \
13666     archive_cmds \
13667     archive_expsym_cmds \
13668     module_cmds \
13669     module_expsym_cmds \
13670     export_symbols_cmds \
13671     prelink_cmds \
13672     postlink_cmds \
13673     postinstall_cmds \
13674     postuninstall_cmds \
13675     finish_cmds \
13676     sys_lib_search_path_spec \
13677 michael 5715 configure_time_dlsearch_path \
13678     configure_time_lt_sys_library_path; do
13679 michael 5059 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13680     *[\\\\\\\`\\"\\\$]*)
13681     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13682     ;;
13683     *)
13684     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13685     ;;
13686     esac
13687     done
13688    
13689     ac_aux_dir='$ac_aux_dir'
13690    
13691     # See if we are running on zsh, and set the options that allow our
13692     # commands through without removal of \ escapes INIT.
13693     if test -n "\${ZSH_VERSION+set}"; then
13694     setopt NO_GLOB_SUBST
13695     fi
13696    
13697    
13698     PACKAGE='$PACKAGE'
13699     VERSION='$VERSION'
13700     RM='$RM'
13701     ofile='$ofile'
13702    
13703    
13704    
13705    
13706 michael 5052 _ACEOF
13707    
13708 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13709 michael 5052
13710     # Handling of arguments.
13711     for ac_config_target in $ac_config_targets
13712     do
13713     case $ac_config_target in
13714     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13715     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13716 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13717 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13718 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13719 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13720 michael 5261 "src/libopm/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/Makefile" ;;
13721     "src/libopm/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/libopm/src/Makefile" ;;
13722 michael 5052
13723 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13724 michael 5052 esac
13725     done
13726    
13727    
13728     # If the user did not use the arguments to specify the items to instantiate,
13729     # then the envvar interface is used. Set only those that are not.
13730     # We use the long form for the default assignment because of an extremely
13731     # bizarre bug on SunOS 4.1.3.
13732     if $ac_need_defaults; then
13733     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13734     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13735     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13736     fi
13737    
13738     # Have a temporary directory for convenience. Make it in the build tree
13739     # simply because there is no reason against having it here, and in addition,
13740     # creating and moving files from /tmp can sometimes cause problems.
13741     # Hook for its removal unless debugging.
13742     # Note that there is a small window in which the directory will not be cleaned:
13743     # after its creation but before its name has been assigned to `$tmp'.
13744     $debug ||
13745     {
13746 michael 5059 tmp= ac_tmp=
13747 michael 5052 trap 'exit_status=$?
13748 michael 5059 : "${ac_tmp:=$tmp}"
13749     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13750 michael 5052 ' 0
13751 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
13752 michael 5052 }
13753     # Create a (secure) tmp directory for tmp files.
13754    
13755     {
13756     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13757 michael 5059 test -d "$tmp"
13758 michael 5052 } ||
13759     {
13760     tmp=./conf$$-$RANDOM
13761     (umask 077 && mkdir "$tmp")
13762 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13763     ac_tmp=$tmp
13764 michael 5052
13765 michael 5059 # Set up the scripts for CONFIG_FILES section.
13766     # No need to generate them if there are no CONFIG_FILES.
13767     # This happens for instance with `./config.status config.h'.
13768 michael 5052 if test -n "$CONFIG_FILES"; then
13769    
13770 michael 5059
13771     ac_cr=`echo X | tr X '\015'`
13772     # On cygwin, bash can eat \r inside `` if the user requested igncr.
13773     # But we know of no other shell where ac_cr would be empty at this
13774     # point, so we can use a bashism as a fallback.
13775     if test "x$ac_cr" = x; then
13776     eval ac_cr=\$\'\\r\'
13777     fi
13778     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13779     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13780     ac_cs_awk_cr='\\r'
13781     else
13782     ac_cs_awk_cr=$ac_cr
13783     fi
13784    
13785     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13786 michael 5052 _ACEOF
13787    
13788    
13789 michael 5059 {
13790     echo "cat >conf$$subs.awk <<_ACEOF" &&
13791     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13792     echo "_ACEOF"
13793     } >conf$$subs.sh ||
13794     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13795     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13796 michael 5052 ac_delim='%!_!# '
13797     for ac_last_try in false false false false false :; do
13798 michael 5059 . ./conf$$subs.sh ||
13799     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13800 michael 5052
13801 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13802     if test $ac_delim_n = $ac_delim_num; then
13803 michael 5052 break
13804     elif $ac_last_try; then
13805 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13806 michael 5052 else
13807     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13808     fi
13809     done
13810 michael 5059 rm -f conf$$subs.sh
13811 michael 5052
13812 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13813     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13814     _ACEOF
13815     sed -n '
13816     h
13817     s/^/S["/; s/!.*/"]=/
13818     p
13819     g
13820     s/^[^!]*!//
13821     :repl
13822     t repl
13823     s/'"$ac_delim"'$//
13824     t delim
13825     :nl
13826     h
13827     s/\(.\{148\}\)..*/\1/
13828     t more1
13829     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13830     p
13831     n
13832     b repl
13833     :more1
13834     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13835     p
13836     g
13837     s/.\{148\}//
13838     t nl
13839     :delim
13840     h
13841     s/\(.\{148\}\)..*/\1/
13842     t more2
13843     s/["\\]/\\&/g; s/^/"/; s/$/"/
13844     p
13845     b
13846     :more2
13847     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13848     p
13849     g
13850     s/.\{148\}//
13851     t delim
13852     ' <conf$$subs.awk | sed '
13853     /^[^""]/{
13854     N
13855     s/\n//
13856     }
13857     ' >>$CONFIG_STATUS || ac_write_fail=1
13858     rm -f conf$$subs.awk
13859     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13860     _ACAWK
13861     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13862     for (key in S) S_is_set[key] = 1
13863     FS = ""
13864 michael 5052
13865 michael 5059 }
13866     {
13867     line = $ 0
13868     nfields = split(line, field, "@")
13869     substed = 0
13870     len = length(field[1])
13871     for (i = 2; i < nfields; i++) {
13872     key = field[i]
13873     keylen = length(key)
13874     if (S_is_set[key]) {
13875     value = S[key]
13876     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13877     len += length(value) + length(field[++i])
13878     substed = 1
13879     } else
13880     len += 1 + keylen
13881     }
13882    
13883     print line
13884     }
13885    
13886     _ACAWK
13887 michael 5052 _ACEOF
13888 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13889     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13890     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13891     else
13892     cat
13893     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13894     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13895 michael 5052 _ACEOF
13896    
13897 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13898     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13899     # trailing colons and then remove the whole line if VPATH becomes empty
13900     # (actually we leave an empty line to preserve line numbers).
13901     if test "x$srcdir" = x.; then
13902     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13903     h
13904     s///
13905     s/^/:/
13906     s/[ ]*$/:/
13907     s/:\$(srcdir):/:/g
13908     s/:\${srcdir}:/:/g
13909     s/:@srcdir@:/:/g
13910     s/^:*//
13911     s/:*$//
13912     x
13913     s/\(=[ ]*\).*/\1/
13914     G
13915     s/\n//
13916     s/^[^=]*=[ ]*$//
13917     }'
13918     fi
13919 michael 5052
13920 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921     fi # test -n "$CONFIG_FILES"
13922    
13923     # Set up the scripts for CONFIG_HEADERS section.
13924     # No need to generate them if there are no CONFIG_HEADERS.
13925     # This happens for instance with `./config.status Makefile'.
13926     if test -n "$CONFIG_HEADERS"; then
13927     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13928     BEGIN {
13929 michael 5052 _ACEOF
13930    
13931 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
13932     # here-document in config.status, that substitutes the proper values into
13933     # config.h.in to produce config.h.
13934    
13935     # Create a delimiter string that does not exist in confdefs.h, to ease
13936     # handling of long lines.
13937     ac_delim='%!_!# '
13938     for ac_last_try in false false :; do
13939     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13940     if test -z "$ac_tt"; then
13941 michael 5052 break
13942     elif $ac_last_try; then
13943 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13944 michael 5052 else
13945     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13946     fi
13947     done
13948    
13949 michael 5059 # For the awk script, D is an array of macro values keyed by name,
13950     # likewise P contains macro parameters if any. Preserve backslash
13951     # newline sequences.
13952 michael 5052
13953 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13954     sed -n '
13955     s/.\{148\}/&'"$ac_delim"'/g
13956     t rset
13957     :rset
13958     s/^[ ]*#[ ]*define[ ][ ]*/ /
13959     t def
13960     d
13961     :def
13962     s/\\$//
13963     t bsnl
13964     s/["\\]/\\&/g
13965     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13966     D["\1"]=" \3"/p
13967     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13968     d
13969     :bsnl
13970     s/["\\]/\\&/g
13971     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13972     D["\1"]=" \3\\\\\\n"\\/p
13973     t cont
13974     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13975     t cont
13976     d
13977     :cont
13978     n
13979     s/.\{148\}/&'"$ac_delim"'/g
13980     t clear
13981     :clear
13982     s/\\$//
13983     t bsnlc
13984     s/["\\]/\\&/g; s/^/"/; s/$/"/p
13985     d
13986     :bsnlc
13987     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13988     b cont
13989     ' <confdefs.h | sed '
13990     s/'"$ac_delim"'/"\\\
13991     "/g' >>$CONFIG_STATUS || ac_write_fail=1
13992    
13993     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13994     for (key in D) D_is_set[key] = 1
13995     FS = ""
13996     }
13997     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13998     line = \$ 0
13999     split(line, arg, " ")
14000     if (arg[1] == "#") {
14001     defundef = arg[2]
14002     mac1 = arg[3]
14003     } else {
14004     defundef = substr(arg[1], 2)
14005     mac1 = arg[2]
14006     }
14007     split(mac1, mac2, "(") #)
14008     macro = mac2[1]
14009     prefix = substr(line, 1, index(line, defundef) - 1)
14010     if (D_is_set[macro]) {
14011     # Preserve the white space surrounding the "#".
14012     print prefix "define", macro P[macro] D[macro]
14013     next
14014     } else {
14015     # Replace #undef with comments. This is necessary, for example,
14016     # in the case of _POSIX_SOURCE, which is predefined and required
14017     # on some systems where configure will not decide to define it.
14018     if (defundef == "undef") {
14019     print "/*", prefix defundef, macro, "*/"
14020     next
14021     }
14022     }
14023     }
14024     { print }
14025     _ACAWK
14026 michael 5052 _ACEOF
14027 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14028     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14029     fi # test -n "$CONFIG_HEADERS"
14030 michael 5052
14031    
14032 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14033     shift
14034     for ac_tag
14035 michael 5052 do
14036     case $ac_tag in
14037     :[FHLC]) ac_mode=$ac_tag; continue;;
14038     esac
14039     case $ac_mode$ac_tag in
14040     :[FHL]*:*);;
14041 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14042 michael 5052 :[FH]-) ac_tag=-:-;;
14043     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14044     esac
14045     ac_save_IFS=$IFS
14046     IFS=:
14047     set x $ac_tag
14048     IFS=$ac_save_IFS
14049     shift
14050     ac_file=$1
14051     shift
14052    
14053     case $ac_mode in
14054     :L) ac_source=$1;;
14055     :[FH])
14056     ac_file_inputs=
14057     for ac_f
14058     do
14059     case $ac_f in
14060 michael 5059 -) ac_f="$ac_tmp/stdin";;
14061 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14062     # (if the path is not absolute). The absolute path cannot be DOS-style,
14063     # because $ac_f cannot contain `:'.
14064     test -f "$ac_f" ||
14065     case $ac_f in
14066     [\\/$]*) false;;
14067     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14068     esac ||
14069 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14070 michael 5052 esac
14071 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14072     as_fn_append ac_file_inputs " '$ac_f'"
14073 michael 5052 done
14074    
14075     # Let's still pretend it is `configure' which instantiates (i.e., don't
14076     # use $as_me), people would be surprised to read:
14077     # /* config.h. Generated by config.status. */
14078 michael 5059 configure_input='Generated from '`
14079     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14080     `' by configure.'
14081 michael 5052 if test x"$ac_file" != x-; then
14082     configure_input="$ac_file. $configure_input"
14083 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14084     $as_echo "$as_me: creating $ac_file" >&6;}
14085 michael 5052 fi
14086 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14087     case $configure_input in #(
14088     *\&* | *\|* | *\\* )
14089     ac_sed_conf_input=`$as_echo "$configure_input" |
14090     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14091     *) ac_sed_conf_input=$configure_input;;
14092     esac
14093 michael 5052
14094     case $ac_tag in
14095 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14096     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14097 michael 5052 esac
14098     ;;
14099     esac
14100    
14101     ac_dir=`$as_dirname -- "$ac_file" ||
14102     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14103     X"$ac_file" : 'X\(//\)[^/]' \| \
14104     X"$ac_file" : 'X\(//\)$' \| \
14105     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14106 michael 5059 $as_echo X"$ac_file" |
14107 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14108     s//\1/
14109     q
14110     }
14111     /^X\(\/\/\)[^/].*/{
14112     s//\1/
14113     q
14114     }
14115     /^X\(\/\/\)$/{
14116     s//\1/
14117     q
14118     }
14119     /^X\(\/\).*/{
14120     s//\1/
14121     q
14122     }
14123     s/.*/./; q'`
14124 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14125 michael 5052 ac_builddir=.
14126    
14127     case "$ac_dir" in
14128     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14129     *)
14130 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14131 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14132 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14133 michael 5052 case $ac_top_builddir_sub in
14134     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14135     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14136     esac ;;
14137     esac
14138     ac_abs_top_builddir=$ac_pwd
14139     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14140     # for backward compatibility:
14141     ac_top_builddir=$ac_top_build_prefix
14142    
14143     case $srcdir in
14144     .) # We are building in place.
14145     ac_srcdir=.
14146     ac_top_srcdir=$ac_top_builddir_sub
14147     ac_abs_top_srcdir=$ac_pwd ;;
14148     [\\/]* | ?:[\\/]* ) # Absolute name.
14149     ac_srcdir=$srcdir$ac_dir_suffix;
14150     ac_top_srcdir=$srcdir
14151     ac_abs_top_srcdir=$srcdir ;;
14152     *) # Relative name.
14153     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14154     ac_top_srcdir=$ac_top_build_prefix$srcdir
14155     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14156     esac
14157     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14158    
14159    
14160     case $ac_mode in
14161     :F)
14162     #
14163     # CONFIG_FILE
14164     #
14165    
14166     case $INSTALL in
14167     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14168     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14169     esac
14170 michael 5059 ac_MKDIR_P=$MKDIR_P
14171     case $MKDIR_P in
14172     [\\/$]* | ?:[\\/]* ) ;;
14173     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14174     esac
14175 michael 5052 _ACEOF
14176    
14177 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 michael 5052 # If the template does not know about datarootdir, expand it.
14179     # FIXME: This hack should be removed a few years after 2.60.
14180     ac_datarootdir_hack=; ac_datarootdir_seen=
14181 michael 5059 ac_sed_dataroot='
14182     /datarootdir/ {
14183 michael 5052 p
14184     q
14185     }
14186     /@datadir@/p
14187     /@docdir@/p
14188     /@infodir@/p
14189     /@localedir@/p
14190 michael 5059 /@mandir@/p'
14191     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14192 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14193     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14194 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14195     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14196 michael 5052 _ACEOF
14197 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14198 michael 5052 ac_datarootdir_hack='
14199     s&@datadir@&$datadir&g
14200     s&@docdir@&$docdir&g
14201     s&@infodir@&$infodir&g
14202     s&@localedir@&$localedir&g
14203     s&@mandir@&$mandir&g
14204 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14205 michael 5052 esac
14206     _ACEOF
14207    
14208     # Neutralize VPATH when `$srcdir' = `.'.
14209     # Shell code in configure.ac might set extrasub.
14210     # FIXME: do we really want to maintain this feature?
14211 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14212     ac_sed_extra="$ac_vpsub
14213 michael 5052 $extrasub
14214     _ACEOF
14215 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216 michael 5052 :t
14217     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14218 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14219 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14220 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14221 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14222     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14223     s&@top_srcdir@&$ac_top_srcdir&;t t
14224     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14225     s&@builddir@&$ac_builddir&;t t
14226     s&@abs_builddir@&$ac_abs_builddir&;t t
14227     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14228     s&@INSTALL@&$ac_INSTALL&;t t
14229 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14230 michael 5052 $ac_datarootdir_hack
14231 michael 5059 "
14232     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14233     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14234 michael 5052
14235     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14236 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14237     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14238     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14239     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14240     which seems to be undefined. Please make sure it is defined" >&5
14241     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14242     which seems to be undefined. Please make sure it is defined" >&2;}
14243 michael 5052
14244 michael 5059 rm -f "$ac_tmp/stdin"
14245 michael 5052 case $ac_file in
14246 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14247     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14248     esac \
14249     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14250 michael 5052 ;;
14251     :H)
14252     #
14253     # CONFIG_HEADER
14254     #
14255     if test x"$ac_file" != x-; then
14256 michael 5059 {
14257     $as_echo "/* $configure_input */" \
14258     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14259     } >"$ac_tmp/config.h" \
14260     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14261     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14262     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14263     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14264 michael 5052 else
14265 michael 5059 rm -f "$ac_file"
14266     mv "$ac_tmp/config.h" "$ac_file" \
14267     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14268 michael 5052 fi
14269     else
14270 michael 5059 $as_echo "/* $configure_input */" \
14271     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14272     || as_fn_error $? "could not create -" "$LINENO" 5
14273 michael 5052 fi
14274 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14275     _am_arg="$ac_file"
14276 michael 5052 _am_stamp_count=1
14277     for _am_header in $config_headers :; do
14278     case $_am_header in
14279 michael 5059 $_am_arg | $_am_arg:* )
14280 michael 5052 break ;;
14281     * )
14282     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14283     esac
14284     done
14285 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14286     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14287     X"$_am_arg" : 'X\(//\)[^/]' \| \
14288     X"$_am_arg" : 'X\(//\)$' \| \
14289     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14290     $as_echo X"$_am_arg" |
14291 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14292     s//\1/
14293     q
14294     }
14295     /^X\(\/\/\)[^/].*/{
14296     s//\1/
14297     q
14298     }
14299     /^X\(\/\/\)$/{
14300     s//\1/
14301     q
14302     }
14303     /^X\(\/\).*/{
14304     s//\1/
14305     q
14306     }
14307     s/.*/./; q'`/stamp-h$_am_stamp_count
14308     ;;
14309    
14310 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14311     $as_echo "$as_me: executing $ac_file commands" >&6;}
14312 michael 5052 ;;
14313     esac
14314    
14315    
14316     case $ac_file$ac_mode in
14317 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14318     # Older Autoconf quotes --file arguments for eval, but not when files
14319     # are listed without --file. Let's play safe and only enable the eval
14320     # if we detect the quoting.
14321     case $CONFIG_FILES in
14322     *\'*) eval set x "$CONFIG_FILES" ;;
14323     *) set x $CONFIG_FILES ;;
14324     esac
14325     shift
14326     for mf
14327     do
14328     # Strip MF so we end up with the name of the file.
14329     mf=`echo "$mf" | sed -e 's/:.*$//'`
14330     # Check whether this is an Automake generated Makefile or not.
14331     # We used to match only the files named 'Makefile.in', but
14332     # some people rename them; so instead we look at the file content.
14333     # Grep'ing the first line is not enough: some people post-process
14334     # each Makefile.in and add a new line on top of each file to say so.
14335     # Grep'ing the whole file is not good either: AIX grep has a line
14336     # limit of 2048, but all sed's we know have understand at least 4000.
14337     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14338     dirpart=`$as_dirname -- "$mf" ||
14339 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14340     X"$mf" : 'X\(//\)[^/]' \| \
14341     X"$mf" : 'X\(//\)$' \| \
14342     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14343 michael 5059 $as_echo X"$mf" |
14344 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14345     s//\1/
14346     q
14347     }
14348     /^X\(\/\/\)[^/].*/{
14349     s//\1/
14350     q
14351     }
14352     /^X\(\/\/\)$/{
14353     s//\1/
14354     q
14355     }
14356     /^X\(\/\).*/{
14357     s//\1/
14358     q
14359     }
14360     s/.*/./; q'`
14361 michael 5059 else
14362     continue
14363     fi
14364     # Extract the definition of DEPDIR, am__include, and am__quote
14365     # from the Makefile without running 'make'.
14366     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14367     test -z "$DEPDIR" && continue
14368     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14369     test -z "$am__include" && continue
14370     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14371     # Find all dependency output files, they are included files with
14372     # $(DEPDIR) in their names. We invoke sed twice because it is the
14373     # simplest approach to changing $(DEPDIR) to its actual value in the
14374     # expansion.
14375     for file in `sed -n "
14376     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14377     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14378     # Make sure the directory exists.
14379     test -f "$dirpart/$file" && continue
14380     fdir=`$as_dirname -- "$file" ||
14381 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382     X"$file" : 'X\(//\)[^/]' \| \
14383     X"$file" : 'X\(//\)$' \| \
14384     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14385 michael 5059 $as_echo X"$file" |
14386 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14387     s//\1/
14388     q
14389     }
14390     /^X\(\/\/\)[^/].*/{
14391     s//\1/
14392     q
14393     }
14394     /^X\(\/\/\)$/{
14395     s//\1/
14396     q
14397     }
14398     /^X\(\/\).*/{
14399     s//\1/
14400     q
14401     }
14402     s/.*/./; q'`
14403 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14404     # echo "creating $dirpart/$file"
14405     echo '# dummy' > "$dirpart/$file"
14406 michael 5052 done
14407     done
14408 michael 5059 }
14409 michael 5052 ;;
14410 michael 5059 "libtool":C)
14411 michael 5052
14412 michael 5059 # See if we are running on zsh, and set the options that allow our
14413     # commands through without removal of \ escapes.
14414     if test -n "${ZSH_VERSION+set}"; then
14415     setopt NO_GLOB_SUBST
14416     fi
14417    
14418     cfgfile=${ofile}T
14419     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14420     $RM "$cfgfile"
14421    
14422     cat <<_LT_EOF >> "$cfgfile"
14423     #! $SHELL
14424     # Generated automatically by $as_me ($PACKAGE) $VERSION
14425     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14426     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14427    
14428     # Provide generalized library-building support services.
14429     # Written by Gordon Matzigkeit, 1996
14430    
14431     # Copyright (C) 2014 Free Software Foundation, Inc.
14432     # This is free software; see the source for copying conditions. There is NO
14433     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14434    
14435     # GNU Libtool is free software; you can redistribute it and/or modify
14436     # it under the terms of the GNU General Public License as published by
14437     # the Free Software Foundation; either version 2 of of the License, or
14438     # (at your option) any later version.
14439     #
14440     # As a special exception to the GNU General Public License, if you
14441     # distribute this file as part of a program or library that is built
14442     # using GNU Libtool, you may include this file under the same
14443     # distribution terms that you use for the rest of that program.
14444     #
14445     # GNU Libtool is distributed in the hope that it will be useful, but
14446     # WITHOUT ANY WARRANTY; without even the implied warranty of
14447     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14448     # GNU General Public License for more details.
14449     #
14450     # You should have received a copy of the GNU General Public License
14451     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14452    
14453    
14454     # The names of the tagged configurations supported by this script.
14455     available_tags=''
14456    
14457 michael 5430 # Configured defaults for sys_lib_dlsearch_path munging.
14458 michael 5715 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14459 michael 5430
14460 michael 5059 # ### BEGIN LIBTOOL CONFIG
14461    
14462     # Which release of libtool.m4 was used?
14463     macro_version=$macro_version
14464     macro_revision=$macro_revision
14465    
14466     # Whether or not to build shared libraries.
14467     build_libtool_libs=$enable_shared
14468    
14469     # Whether or not to build static libraries.
14470     build_old_libs=$enable_static
14471    
14472     # What type of objects to build.
14473     pic_mode=$pic_mode
14474    
14475     # Whether or not to optimize for fast installation.
14476     fast_install=$enable_fast_install
14477    
14478     # Shared archive member basename,for filename based shared library versioning on AIX.
14479     shared_archive_member_spec=$shared_archive_member_spec
14480    
14481     # Shell to use when invoking shell scripts.
14482     SHELL=$lt_SHELL
14483    
14484     # An echo program that protects backslashes.
14485     ECHO=$lt_ECHO
14486    
14487     # The PATH separator for the build system.
14488     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14489    
14490     # The host system.
14491     host_alias=$host_alias
14492     host=$host
14493     host_os=$host_os
14494    
14495     # The build system.
14496     build_alias=$build_alias
14497     build=$build
14498     build_os=$build_os
14499    
14500     # A sed program that does not truncate output.
14501     SED=$lt_SED
14502    
14503     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14504     Xsed="\$SED -e 1s/^X//"
14505    
14506     # A grep program that handles long lines.
14507     GREP=$lt_GREP
14508    
14509     # An ERE matcher.
14510     EGREP=$lt_EGREP
14511    
14512     # A literal string matcher.
14513     FGREP=$lt_FGREP
14514    
14515     # A BSD- or MS-compatible name lister.
14516     NM=$lt_NM
14517    
14518     # Whether we need soft or hard links.
14519     LN_S=$lt_LN_S
14520    
14521     # What is the maximum length of a command?
14522     max_cmd_len=$max_cmd_len
14523    
14524     # Object file suffix (normally "o").
14525     objext=$ac_objext
14526    
14527     # Executable file suffix (normally "").
14528     exeext=$exeext
14529    
14530     # whether the shell understands "unset".
14531     lt_unset=$lt_unset
14532    
14533     # turn spaces into newlines.
14534     SP2NL=$lt_lt_SP2NL
14535    
14536     # turn newlines into spaces.
14537     NL2SP=$lt_lt_NL2SP
14538    
14539     # convert \$build file names to \$host format.
14540     to_host_file_cmd=$lt_cv_to_host_file_cmd
14541    
14542     # convert \$build files to toolchain format.
14543     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14544    
14545     # An object symbol dumper.
14546     OBJDUMP=$lt_OBJDUMP
14547    
14548     # Method to check whether dependent libraries are shared objects.
14549     deplibs_check_method=$lt_deplibs_check_method
14550    
14551     # Command to use when deplibs_check_method = "file_magic".
14552     file_magic_cmd=$lt_file_magic_cmd
14553    
14554     # How to find potential files when deplibs_check_method = "file_magic".
14555     file_magic_glob=$lt_file_magic_glob
14556    
14557     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14558     want_nocaseglob=$lt_want_nocaseglob
14559    
14560     # DLL creation program.
14561     DLLTOOL=$lt_DLLTOOL
14562    
14563     # Command to associate shared and link libraries.
14564     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14565    
14566     # The archiver.
14567     AR=$lt_AR
14568    
14569     # Flags to create an archive.
14570     AR_FLAGS=$lt_AR_FLAGS
14571    
14572     # How to feed a file listing to the archiver.
14573     archiver_list_spec=$lt_archiver_list_spec
14574    
14575     # A symbol stripping program.
14576     STRIP=$lt_STRIP
14577    
14578     # Commands used to install an old-style archive.
14579     RANLIB=$lt_RANLIB
14580     old_postinstall_cmds=$lt_old_postinstall_cmds
14581     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14582    
14583     # Whether to use a lock for old archive extraction.
14584     lock_old_archive_extraction=$lock_old_archive_extraction
14585    
14586     # A C compiler.
14587     LTCC=$lt_CC
14588    
14589     # LTCC compiler flags.
14590     LTCFLAGS=$lt_CFLAGS
14591    
14592     # Take the output of nm and produce a listing of raw symbols and C names.
14593     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14594    
14595     # Transform the output of nm in a proper C declaration.
14596     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14597    
14598     # Transform the output of nm into a list of symbols to manually relocate.
14599     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14600    
14601     # Transform the output of nm in a C name address pair.
14602     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14603    
14604     # Transform the output of nm in a C name address pair when lib prefix is needed.
14605     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14606    
14607     # The name lister interface.
14608     nm_interface=$lt_lt_cv_nm_interface
14609    
14610     # Specify filename containing input files for \$NM.
14611     nm_file_list_spec=$lt_nm_file_list_spec
14612    
14613     # The root where to search for dependent libraries,and where our libraries should be installed.
14614     lt_sysroot=$lt_sysroot
14615    
14616     # Command to truncate a binary pipe.
14617     lt_truncate_bin=$lt_lt_cv_truncate_bin
14618    
14619     # The name of the directory that contains temporary libtool files.
14620     objdir=$objdir
14621    
14622     # Used to examine libraries when file_magic_cmd begins with "file".
14623     MAGIC_CMD=$MAGIC_CMD
14624    
14625     # Must we lock files when doing compilation?
14626     need_locks=$lt_need_locks
14627    
14628     # Manifest tool.
14629     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14630    
14631     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14632     DSYMUTIL=$lt_DSYMUTIL
14633    
14634     # Tool to change global to local symbols on Mac OS X.
14635     NMEDIT=$lt_NMEDIT
14636    
14637     # Tool to manipulate fat objects and archives on Mac OS X.
14638     LIPO=$lt_LIPO
14639    
14640     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14641     OTOOL=$lt_OTOOL
14642    
14643     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14644     OTOOL64=$lt_OTOOL64
14645    
14646     # Old archive suffix (normally "a").
14647     libext=$libext
14648    
14649     # Shared library suffix (normally ".so").
14650     shrext_cmds=$lt_shrext_cmds
14651    
14652     # The commands to extract the exported symbol list from a shared archive.
14653     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14654    
14655     # Variables whose values should be saved in libtool wrapper scripts and
14656     # restored at link time.
14657     variables_saved_for_relink=$lt_variables_saved_for_relink
14658    
14659     # Do we need the "lib" prefix for modules?
14660     need_lib_prefix=$need_lib_prefix
14661    
14662     # Do we need a version for libraries?
14663     need_version=$need_version
14664    
14665     # Library versioning type.
14666     version_type=$version_type
14667    
14668     # Shared library runtime path variable.
14669     runpath_var=$runpath_var
14670    
14671     # Shared library path variable.
14672     shlibpath_var=$shlibpath_var
14673    
14674     # Is shlibpath searched before the hard-coded library search path?
14675     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14676    
14677     # Format of library name prefix.
14678     libname_spec=$lt_libname_spec
14679    
14680     # List of archive names. First name is the real one, the rest are links.
14681     # The last name is the one that the linker finds with -lNAME
14682     library_names_spec=$lt_library_names_spec
14683    
14684     # The coded name of the library, if different from the real name.
14685     soname_spec=$lt_soname_spec
14686    
14687     # Permission mode override for installation of shared libraries.
14688     install_override_mode=$lt_install_override_mode
14689    
14690     # Command to use after installation of a shared archive.
14691     postinstall_cmds=$lt_postinstall_cmds
14692    
14693     # Command to use after uninstallation of a shared archive.
14694     postuninstall_cmds=$lt_postuninstall_cmds
14695    
14696     # Commands used to finish a libtool library installation in a directory.
14697     finish_cmds=$lt_finish_cmds
14698    
14699     # As "finish_cmds", except a single script fragment to be evaled but
14700     # not shown.
14701     finish_eval=$lt_finish_eval
14702    
14703     # Whether we should hardcode library paths into libraries.
14704     hardcode_into_libs=$hardcode_into_libs
14705    
14706     # Compile-time system search path for libraries.
14707     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14708    
14709 michael 5715 # Detected run-time system search path for libraries.
14710     sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14711 michael 5059
14712 michael 5715 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14713     configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14714    
14715 michael 5059 # Whether dlopen is supported.
14716     dlopen_support=$enable_dlopen
14717    
14718     # Whether dlopen of programs is supported.
14719     dlopen_self=$enable_dlopen_self
14720    
14721     # Whether dlopen of statically linked programs is supported.
14722     dlopen_self_static=$enable_dlopen_self_static
14723    
14724     # Commands to strip libraries.
14725     old_striplib=$lt_old_striplib
14726     striplib=$lt_striplib
14727    
14728    
14729     # The linker used to build libraries.
14730     LD=$lt_LD
14731    
14732     # How to create reloadable object files.
14733     reload_flag=$lt_reload_flag
14734     reload_cmds=$lt_reload_cmds
14735    
14736     # Commands used to build an old-style archive.
14737     old_archive_cmds=$lt_old_archive_cmds
14738    
14739     # A language specific compiler.
14740     CC=$lt_compiler
14741    
14742     # Is the compiler the GNU compiler?
14743     with_gcc=$GCC
14744    
14745     # Compiler flag to turn off builtin functions.
14746     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14747    
14748     # Additional compiler flags for building library objects.
14749     pic_flag=$lt_lt_prog_compiler_pic
14750    
14751     # How to pass a linker flag through the compiler.
14752     wl=$lt_lt_prog_compiler_wl
14753    
14754     # Compiler flag to prevent dynamic linking.
14755     link_static_flag=$lt_lt_prog_compiler_static
14756    
14757     # Does compiler simultaneously support -c and -o options?
14758     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14759    
14760     # Whether or not to add -lc for building shared libraries.
14761     build_libtool_need_lc=$archive_cmds_need_lc
14762    
14763     # Whether or not to disallow shared libs when runtime libs are static.
14764     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14765    
14766     # Compiler flag to allow reflexive dlopens.
14767     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14768    
14769     # Compiler flag to generate shared objects directly from archives.
14770     whole_archive_flag_spec=$lt_whole_archive_flag_spec
14771    
14772     # Whether the compiler copes with passing no objects directly.
14773     compiler_needs_object=$lt_compiler_needs_object
14774    
14775     # Create an old-style archive from a shared archive.
14776     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14777    
14778     # Create a temporary old-style archive to link instead of a shared archive.
14779     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14780    
14781     # Commands used to build a shared archive.
14782     archive_cmds=$lt_archive_cmds
14783     archive_expsym_cmds=$lt_archive_expsym_cmds
14784    
14785     # Commands used to build a loadable module if different from building
14786     # a shared archive.
14787     module_cmds=$lt_module_cmds
14788     module_expsym_cmds=$lt_module_expsym_cmds
14789    
14790     # Whether we are building with GNU ld or not.
14791     with_gnu_ld=$lt_with_gnu_ld
14792    
14793     # Flag that allows shared libraries with undefined symbols to be built.
14794     allow_undefined_flag=$lt_allow_undefined_flag
14795    
14796     # Flag that enforces no undefined symbols.
14797     no_undefined_flag=$lt_no_undefined_flag
14798    
14799     # Flag to hardcode \$libdir into a binary during linking.
14800     # This must work even if \$libdir does not exist
14801     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14802    
14803     # Whether we need a single "-rpath" flag with a separated argument.
14804     hardcode_libdir_separator=$lt_hardcode_libdir_separator
14805    
14806     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14807     # DIR into the resulting binary.
14808     hardcode_direct=$hardcode_direct
14809    
14810     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14811     # DIR into the resulting binary and the resulting library dependency is
14812     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14813     # library is relocated.
14814     hardcode_direct_absolute=$hardcode_direct_absolute
14815    
14816     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14817     # into the resulting binary.
14818     hardcode_minus_L=$hardcode_minus_L
14819    
14820     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14821     # into the resulting binary.
14822     hardcode_shlibpath_var=$hardcode_shlibpath_var
14823    
14824     # Set to "yes" if building a shared library automatically hardcodes DIR
14825     # into the library and all subsequent libraries and executables linked
14826     # against it.
14827     hardcode_automatic=$hardcode_automatic
14828    
14829     # Set to yes if linker adds runtime paths of dependent libraries
14830     # to runtime path list.
14831     inherit_rpath=$inherit_rpath
14832    
14833     # Whether libtool must link a program against all its dependency libraries.
14834     link_all_deplibs=$link_all_deplibs
14835    
14836     # Set to "yes" if exported symbols are required.
14837     always_export_symbols=$always_export_symbols
14838    
14839     # The commands to list exported symbols.
14840     export_symbols_cmds=$lt_export_symbols_cmds
14841    
14842     # Symbols that should not be listed in the preloaded symbols.
14843     exclude_expsyms=$lt_exclude_expsyms
14844    
14845     # Symbols that must always be exported.
14846     include_expsyms=$lt_include_expsyms
14847    
14848     # Commands necessary for linking programs (against libraries) with templates.
14849     prelink_cmds=$lt_prelink_cmds
14850    
14851     # Commands necessary for finishing linking programs.
14852     postlink_cmds=$lt_postlink_cmds
14853    
14854     # Specify filename containing input files.
14855     file_list_spec=$lt_file_list_spec
14856    
14857     # How to hardcode a shared library path into an executable.
14858     hardcode_action=$hardcode_action
14859    
14860     # ### END LIBTOOL CONFIG
14861    
14862     _LT_EOF
14863    
14864 michael 5430 cat <<'_LT_EOF' >> "$cfgfile"
14865    
14866 michael 5715 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14867    
14868 michael 5430 # func_munge_path_list VARIABLE PATH
14869     # -----------------------------------
14870     # VARIABLE is name of variable containing _space_ separated list of
14871     # directories to be munged by the contents of PATH, which is string
14872     # having a format:
14873     # "DIR[:DIR]:"
14874     # string "DIR[ DIR]" will be prepended to VARIABLE
14875     # ":DIR[:DIR]"
14876     # string "DIR[ DIR]" will be appended to VARIABLE
14877     # "DIRP[:DIRP]::[DIRA:]DIRA"
14878     # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14879     # "DIRA[ DIRA]" will be appended to VARIABLE
14880     # "DIR[:DIR]"
14881     # VARIABLE will be replaced by "DIR[ DIR]"
14882     func_munge_path_list ()
14883     {
14884     case x$2 in
14885     x)
14886     ;;
14887     *:)
14888 michael 5715 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14889 michael 5430 ;;
14890     x:*)
14891     eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14892     ;;
14893     *::*)
14894     eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14895     eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14896     ;;
14897     *)
14898     eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14899     ;;
14900     esac
14901     }
14902    
14903    
14904     # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14905     func_cc_basename ()
14906     {
14907     for cc_temp in $*""; do
14908     case $cc_temp in
14909     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14910     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14911     \-*) ;;
14912     *) break;;
14913     esac
14914     done
14915     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14916     }
14917    
14918    
14919 michael 5715 # ### END FUNCTIONS SHARED WITH CONFIGURE
14920    
14921 michael 5430 _LT_EOF
14922    
14923 michael 5059 case $host_os in
14924     aix3*)
14925     cat <<\_LT_EOF >> "$cfgfile"
14926     # AIX sometimes has problems with the GCC collect2 program. For some
14927     # reason, if we set the COLLECT_NAMES environment variable, the problems
14928     # vanish in a puff of smoke.
14929     if test set != "${COLLECT_NAMES+set}"; then
14930     COLLECT_NAMES=
14931     export COLLECT_NAMES
14932     fi
14933     _LT_EOF
14934     ;;
14935 michael 5052 esac
14936 michael 5059
14937    
14938     ltmain=$ac_aux_dir/ltmain.sh
14939    
14940    
14941     # We use sed instead of cat because bash on DJGPP gets confused if
14942     # if finds mixed CR/LF and LF-only lines. Since sed operates in
14943     # text mode, it properly converts lines to CR/LF. This bash problem
14944     # is reportedly fixed, but why not run on old versions too?
14945     sed '$q' "$ltmain" >> "$cfgfile" \
14946     || (rm -f "$cfgfile"; exit 1)
14947    
14948     mv -f "$cfgfile" "$ofile" ||
14949     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14950     chmod +x "$ofile"
14951    
14952     ;;
14953    
14954     esac
14955 michael 5052 done # for ac_tag
14956    
14957    
14958 michael 5059 as_fn_exit 0
14959 michael 5052 _ACEOF
14960     ac_clean_files=$ac_clean_files_save
14961    
14962 michael 5059 test $ac_write_fail = 0 ||
14963     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14964 michael 5052
14965 michael 5059
14966 michael 5052 # configure is writing to config.log, and then calls config.status.
14967     # config.status does its own redirection, appending to config.log.
14968     # Unfortunately, on DOS this fails, as config.log is still kept open
14969     # by configure, so config.status won't be able to write to it; its
14970     # output is simply discarded. So we exec the FD to /dev/null,
14971     # effectively closing config.log, so it can be properly (re)opened and
14972     # appended to by config.status. When coming back to configure, we
14973     # need to make the FD available again.
14974     if test "$no_create" != yes; then
14975     ac_cs_success=:
14976     ac_config_status_args=
14977     test "$silent" = yes &&
14978     ac_config_status_args="$ac_config_status_args --quiet"
14979     exec 5>/dev/null
14980     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14981     exec 5>>config.log
14982     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14983     # would make configure fail if this is the last instruction.
14984 michael 5059 $ac_cs_success || as_fn_exit 1
14985 michael 5052 fi
14986 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14988     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14989     fi
14990 michael 5052
14991    
14992    
14993 michael 5110 echo "###############################################################################"
14994     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
14995 michael 5052 echo
14996 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
14997 michael 5052 echo " ./configure --prefix=DIRECTORY"
14998 michael 5110 echo "###############################################################################"

Properties

Name Value
svn:eol-style native
svn:executable
svn:keywords Id