ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/configure
Revision: 5212
Committed: Mon Dec 29 20:06:00 2014 UTC (10 years, 7 months ago) by michael
File size: 452943 byte(s)
Log Message:
- Removed configure test for gethostbyname()

File Contents

# User Rev Content
1 michael 5052 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 michael 5061 # Generated by GNU Autoconf 2.69 for hopm 1.0.0beta1.
4 michael 5052 #
5 michael 5059 #
6     # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7     #
8     #
9 michael 5052 # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 michael 5059 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14 michael 5052
15 michael 5059 # Be more Bourne compatible
16     DUALCASE=1; export DUALCASE # for MKS sh
17     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 michael 5052 emulate sh
19     NULLCMD=:
20 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 michael 5052 # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25 michael 5059 case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30     esac
31 michael 5052 fi
32    
33    
34 michael 5059 as_nl='
35     '
36     export as_nl
37     # Printing a long string crashes Solaris 7 /usr/bin/printf.
38     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41     # Prefer a ksh shell builtin over an external printf program on Solaris,
42     # but without wasting forks for bash or zsh.
43     if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45     as_echo='print -r --'
46     as_echo_n='print -rn --'
47     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='printf %s\n'
49     as_echo_n='printf %s'
50     else
51     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54 michael 5052 else
55 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57     arg=$1;
58     case $arg in #(
59     *"$as_nl"*)
60     expr "X$arg" : "X\\(.*\\)$as_nl";
61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62     esac;
63     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67 michael 5052 fi
68 michael 5059 export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70 michael 5052 fi
71    
72 michael 5059 # The user is always right.
73     if test "${PATH_SEPARATOR+set}" != set; then
74     PATH_SEPARATOR=:
75     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77     PATH_SEPARATOR=';'
78     }
79 michael 5052 fi
80    
81    
82     # IFS
83     # We need space, tab and new line, in precisely that order. Quoting is
84     # there to prevent editors from complaining about space-tab.
85     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86     # splitting by setting IFS to empty value.)
87     IFS=" "" $as_nl"
88    
89     # Find who we are. Look in the path if we contain no directory separator.
90 michael 5059 as_myself=
91     case $0 in #((
92 michael 5052 *[\\/]* ) as_myself=$0 ;;
93     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94     for as_dir in $PATH
95     do
96     IFS=$as_save_IFS
97     test -z "$as_dir" && as_dir=.
98 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 michael 5052 IFS=$as_save_IFS
101    
102     ;;
103     esac
104     # We did not find ourselves, most probably we were run as `sh COMMAND'
105     # in which case we are not to be found in the path.
106     if test "x$as_myself" = x; then
107     as_myself=$0
108     fi
109     if test ! -f "$as_myself"; then
110 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111     exit 1
112 michael 5052 fi
113    
114 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
115     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116     # suppresses any "Segmentation fault" message there. '((' could
117     # trigger a bug in pdksh 5.2.14.
118     for as_var in BASH_ENV ENV MAIL MAILPATH
119     do eval test x\${$as_var+set} = xset \
120     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 michael 5052 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 michael 5059 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 michael 5052
132     # CDPATH.
133 michael 5059 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 michael 5052
135 michael 5059 # Use a proper internal environment variable to ensure we don't fall
136     # into an infinite loop, continuously re-executing ourselves.
137     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140     # neutralization value for shells without unset; and this also
141     # works around shells that cannot unset nonexistent variables.
142     # Preserve -v and -x to the replacement shell.
143     BASH_ENV=/dev/null
144     ENV=/dev/null
145     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146     case $- in # ((((
147     *v*x* | *x*v* ) as_opts=-vx ;;
148     *v* ) as_opts=-v ;;
149     *x* ) as_opts=-x ;;
150     * ) as_opts= ;;
151     esac
152     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153     # Admittedly, this is quite paranoid, since all the known shells bail
154     # out after a failed `exec'.
155     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156     as_fn_exit 255
157     fi
158     # We don't want this to propagate to other subprocesses.
159     { _as_can_reexec=; unset _as_can_reexec;}
160 michael 5052 if test "x$CONFIG_SHELL" = x; then
161 michael 5059 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162     emulate sh
163     NULLCMD=:
164     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165     # is contrary to our usage. Disable this feature.
166     alias -g '\${1+\"\$@\"}'='\"\$@\"'
167     setopt NO_GLOB_SUBST
168 michael 5052 else
169 michael 5059 case \`(set -o) 2>/dev/null\` in #(
170     *posix*) :
171     set -o posix ;; #(
172     *) :
173     ;;
174     esac
175 michael 5052 fi
176 michael 5059 "
177     as_required="as_fn_return () { (exit \$1); }
178     as_fn_success () { as_fn_return 0; }
179     as_fn_failure () { as_fn_return 1; }
180     as_fn_ret_success () { return 0; }
181     as_fn_ret_failure () { return 1; }
182 michael 5052
183     exitcode=0
184 michael 5059 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189 michael 5052
190     else
191 michael 5059 exitcode=1; echo positional parameters were not saved.
192 michael 5052 fi
193 michael 5059 test x\$exitcode = x0 || exit 1
194     test -x / || exit 1"
195     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 michael 5052
200 michael 5059 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206     || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207     test \$(( 1 + 1 )) = 2 || exit 1"
208     if (eval "$as_required") 2>/dev/null; then :
209     as_have_required=yes
210 michael 5052 else
211 michael 5059 as_have_required=no
212 michael 5052 fi
213 michael 5059 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214 michael 5052
215     else
216 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217     as_found=false
218     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 michael 5052 do
220     IFS=$as_save_IFS
221     test -z "$as_dir" && as_dir=.
222 michael 5059 as_found=:
223     case $as_dir in #(
224 michael 5052 /*)
225     for as_base in sh bash ksh sh5; do
226 michael 5059 # Try only shells that exist, to save several forks.
227     as_shell=$as_dir/$as_base
228     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230     CONFIG_SHELL=$as_shell as_have_required=yes
231     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232     break 2
233     fi
234     fi
235 michael 5052 done;;
236     esac
237 michael 5059 as_found=false
238 michael 5052 done
239 michael 5059 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241     CONFIG_SHELL=$SHELL as_have_required=yes
242     fi; }
243 michael 5052 IFS=$as_save_IFS
244    
245    
246 michael 5059 if test "x$CONFIG_SHELL" != x; then :
247     export CONFIG_SHELL
248     # We cannot yet assume a decent shell, so we have to provide a
249     # neutralization value for shells without unset; and this also
250     # works around shells that cannot unset nonexistent variables.
251     # Preserve -v and -x to the replacement shell.
252     BASH_ENV=/dev/null
253     ENV=/dev/null
254     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255     case $- in # ((((
256     *v*x* | *x*v* ) as_opts=-vx ;;
257     *v* ) as_opts=-v ;;
258     *x* ) as_opts=-x ;;
259     * ) as_opts= ;;
260     esac
261     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262     # Admittedly, this is quite paranoid, since all the known shells bail
263     # out after a failed `exec'.
264     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265     exit 255
266 michael 5052 fi
267    
268 michael 5059 if test x$as_have_required = xno; then :
269     $as_echo "$0: This script requires a shell more modern than all"
270     $as_echo "$0: the shells that I found on your system."
271     if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274     else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276     $0: including any error possibly output before this
277     $0: message. Then install a modern shell, or manually run
278     $0: the script under such a shell if you do have one."
279     fi
280     exit 1
281 michael 5052 fi
282     fi
283     fi
284 michael 5059 SHELL=${CONFIG_SHELL-/bin/sh}
285     export SHELL
286     # Unset more variables known to interfere with behavior of common tools.
287     CLICOLOR_FORCE= GREP_OPTIONS=
288     unset CLICOLOR_FORCE GREP_OPTIONS
289 michael 5052
290 michael 5059 ## --------------------- ##
291     ## M4sh Shell Functions. ##
292     ## --------------------- ##
293     # as_fn_unset VAR
294     # ---------------
295     # Portably unset VAR.
296     as_fn_unset ()
297     {
298     { eval $1=; unset $1;}
299     }
300     as_unset=as_fn_unset
301 michael 5052
302 michael 5059 # as_fn_set_status STATUS
303     # -----------------------
304     # Set $? to STATUS, without forking.
305     as_fn_set_status ()
306     {
307     return $1
308     } # as_fn_set_status
309 michael 5052
310 michael 5059 # as_fn_exit STATUS
311     # -----------------
312     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313     as_fn_exit ()
314     {
315     set +e
316     as_fn_set_status $1
317     exit $1
318     } # as_fn_exit
319 michael 5052
320 michael 5059 # as_fn_mkdir_p
321     # -------------
322     # Create "$as_dir" as a directory, including parents if necessary.
323     as_fn_mkdir_p ()
324     {
325 michael 5052
326 michael 5059 case $as_dir in #(
327     -*) as_dir=./$as_dir;;
328     esac
329     test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332     case $as_dir in #(
333     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334     *) as_qdir=$as_dir;;
335     esac
336     as_dirs="'$as_qdir' $as_dirs"
337     as_dir=`$as_dirname -- "$as_dir" ||
338     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339     X"$as_dir" : 'X\(//\)[^/]' \| \
340     X"$as_dir" : 'X\(//\)$' \| \
341     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342     $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344     s//\1/
345     q
346     }
347     /^X\(\/\/\)[^/].*/{
348     s//\1/
349     q
350     }
351     /^X\(\/\/\)$/{
352     s//\1/
353     q
354     }
355     /^X\(\/\).*/{
356     s//\1/
357     q
358     }
359     s/.*/./; q'`
360     test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364 michael 5052
365    
366 michael 5059 } # as_fn_mkdir_p
367 michael 5052
368 michael 5059 # as_fn_executable_p FILE
369     # -----------------------
370     # Test if FILE is an executable regular file.
371     as_fn_executable_p ()
372     {
373     test -f "$1" && test -x "$1"
374     } # as_fn_executable_p
375     # as_fn_append VAR VALUE
376     # ----------------------
377     # Append the text in VALUE to the end of the definition contained in VAR. Take
378     # advantage of any shell optimizations that allow amortized linear growth over
379     # repeated appends, instead of the typical quadratic growth present in naive
380     # implementations.
381     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382     eval 'as_fn_append ()
383     {
384     eval $1+=\$2
385     }'
386     else
387     as_fn_append ()
388     {
389     eval $1=\$$1\$2
390     }
391     fi # as_fn_append
392 michael 5052
393 michael 5059 # as_fn_arith ARG...
394     # ------------------
395     # Perform arithmetic evaluation on the ARGs, and store the result in the
396     # global $as_val. Take advantage of shells that can avoid forks. The arguments
397     # must be portable across $(()) and expr.
398     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399     eval 'as_fn_arith ()
400     {
401     as_val=$(( $* ))
402     }'
403     else
404     as_fn_arith ()
405     {
406     as_val=`expr "$@" || test $? -eq 1`
407     }
408     fi # as_fn_arith
409 michael 5052
410    
411 michael 5059 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412     # ----------------------------------------
413     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415     # script with STATUS, using 1 if that was 0.
416     as_fn_error ()
417     {
418     as_status=$1; test $as_status -eq 0 && as_status=1
419     if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422     fi
423     $as_echo "$as_me: error: $2" >&2
424     as_fn_exit $as_status
425     } # as_fn_error
426 michael 5052
427 michael 5059 if expr a : '\(a\)' >/dev/null 2>&1 &&
428     test "X`expr 00001 : '.*\(...\)'`" = X001; then
429     as_expr=expr
430 michael 5052 else
431 michael 5059 as_expr=false
432 michael 5052 fi
433    
434 michael 5059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435     as_basename=basename
436 michael 5052 else
437 michael 5059 as_basename=false
438 michael 5052 fi
439    
440 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441     as_dirname=dirname
442 michael 5052 else
443 michael 5059 as_dirname=false
444 michael 5052 fi
445    
446 michael 5059 as_me=`$as_basename -- "$0" ||
447     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448     X"$0" : 'X\(//\)$' \| \
449     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450     $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452     s//\1/
453     q
454     }
455     /^X\/\(\/\/\)$/{
456     s//\1/
457     q
458     }
459     /^X\/\(\/\).*/{
460     s//\1/
461     q
462     }
463     s/.*/./; q'`
464 michael 5052
465 michael 5059 # Avoid depending upon Character Ranges.
466     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469     as_cr_digits='0123456789'
470     as_cr_alnum=$as_cr_Letters$as_cr_digits
471 michael 5052
472    
473 michael 5059 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474     as_lineno_2=$LINENO as_lineno_2a=$LINENO
475     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 michael 5052 sed -n '
479     p
480     /[$]LINENO/=
481     ' <$as_myself |
482     sed '
483     s/[$]LINENO.*/&-/
484     t lineno
485     b
486     :lineno
487     N
488     :loop
489     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490     t loop
491     s/-\n.*//
492     ' >$as_me.lineno &&
493     chmod +x "$as_me.lineno" ||
494 michael 5059 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495 michael 5052
496 michael 5059 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497     # already done that, so ensure we don't try to do so again and fall
498     # in an infinite loop. This has already happened in practice.
499     _as_can_reexec=no; export _as_can_reexec
500 michael 5052 # Don't try to exec as it changes $[0], causing all sort of problems
501     # (the dirname of $[0] is not the place where we might find the
502     # original and so on. Autoconf is especially sensitive to this).
503     . "./$as_me.lineno"
504     # Exit status is that of the last command.
505     exit
506     }
507    
508     ECHO_C= ECHO_N= ECHO_T=
509 michael 5059 case `echo -n x` in #(((((
510 michael 5052 -n*)
511 michael 5059 case `echo 'xy\c'` in
512 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 michael 5059 xy) ECHO_C='\c';;
514     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515     ECHO_T=' ';;
516 michael 5052 esac;;
517     *)
518     ECHO_N='-n';;
519     esac
520    
521     rm -f conf$$ conf$$.exe conf$$.file
522     if test -d conf$$.dir; then
523     rm -f conf$$.dir/conf$$.file
524     else
525     rm -f conf$$.dir
526 michael 5059 mkdir conf$$.dir 2>/dev/null
527 michael 5052 fi
528 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
529     if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536     as_ln_s='cp -pR'
537     elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539     else
540     as_ln_s='cp -pR'
541     fi
542 michael 5052 else
543 michael 5059 as_ln_s='cp -pR'
544 michael 5052 fi
545     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546     rmdir conf$$.dir 2>/dev/null
547    
548     if mkdir -p . 2>/dev/null; then
549 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
550 michael 5052 else
551     test -d ./-p && rmdir ./-p
552     as_mkdir_p=false
553     fi
554    
555 michael 5059 as_test_x='test -x'
556     as_executable_p=as_fn_executable_p
557 michael 5052
558     # Sed expression to map a string onto a valid CPP name.
559     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560    
561     # Sed expression to map a string onto a valid variable name.
562     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563    
564     SHELL=${CONFIG_SHELL-/bin/sh}
565    
566    
567 michael 5059 test -n "$DJDIR" || exec 7<&0 </dev/null
568     exec 6>&1
569 michael 5052
570     # Name of the host.
571 michael 5059 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 michael 5052 # so uname gets run too.
573     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574    
575     #
576     # Initializations.
577     #
578     ac_default_prefix=/usr/local
579     ac_clean_files=
580     ac_config_libobj_dir=.
581     LIBOBJS=
582     cross_compiling=no
583     subdirs=
584     MFLAGS=
585     MAKEFLAGS=
586    
587     # Identity of this package.
588 michael 5061 PACKAGE_NAME='hopm'
589     PACKAGE_TARNAME='hopm'
590     PACKAGE_VERSION='1.0.0beta1'
591     PACKAGE_STRING='hopm 1.0.0beta1'
592 michael 5052 PACKAGE_BUGREPORT=''
593 michael 5059 PACKAGE_URL=''
594 michael 5052
595     ac_unique_file="src/opercmd.h"
596 michael 5061 ac_default_prefix=\${HOME}/hopm
597 michael 5052 # Factoring default headers for most tests.
598     ac_includes_default="\
599     #include <stdio.h>
600 michael 5059 #ifdef HAVE_SYS_TYPES_H
601 michael 5052 # include <sys/types.h>
602     #endif
603 michael 5059 #ifdef HAVE_SYS_STAT_H
604 michael 5052 # include <sys/stat.h>
605     #endif
606 michael 5059 #ifdef STDC_HEADERS
607 michael 5052 # include <stdlib.h>
608     # include <stddef.h>
609     #else
610 michael 5059 # ifdef HAVE_STDLIB_H
611 michael 5052 # include <stdlib.h>
612     # endif
613     #endif
614 michael 5059 #ifdef HAVE_STRING_H
615     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 michael 5052 # include <memory.h>
617     # endif
618     # include <string.h>
619     #endif
620 michael 5059 #ifdef HAVE_STRINGS_H
621 michael 5052 # include <strings.h>
622     #endif
623 michael 5059 #ifdef HAVE_INTTYPES_H
624 michael 5052 # include <inttypes.h>
625     #endif
626 michael 5059 #ifdef HAVE_STDINT_H
627 michael 5052 # include <stdint.h>
628     #endif
629 michael 5059 #ifdef HAVE_UNISTD_H
630 michael 5052 # include <unistd.h>
631     #endif"
632    
633 michael 5059 enable_option_checking=no
634     ac_subst_vars='am__EXEEXT_FALSE
635     am__EXEEXT_TRUE
636     LTLIBOBJS
637 michael 5052 LIBOBJS
638 michael 5059 subdirs
639 michael 5052 LEXLIB
640     LEX_OUTPUT_ROOT
641 michael 5059 LEX
642     YFLAGS
643     YACC
644     CPP
645     OTOOL64
646     OTOOL
647     LIPO
648     NMEDIT
649     DSYMUTIL
650     MANIFEST_TOOL
651     RANLIB
652     ac_ct_AR
653     AR
654     DLLTOOL
655     OBJDUMP
656     LN_S
657     NM
658     ac_ct_DUMPBIN
659     DUMPBIN
660     LD
661     FGREP
662     EGREP
663     GREP
664     SED
665     host_os
666     host_vendor
667     host_cpu
668     host
669     build_os
670     build_vendor
671     build_cpu
672     build
673     LIBTOOL
674     am__fastdepCC_FALSE
675     am__fastdepCC_TRUE
676     CCDEPMODE
677     am__nodep
678     AMDEPBACKSLASH
679     AMDEP_FALSE
680     AMDEP_TRUE
681     am__quote
682     am__include
683     DEPDIR
684     OBJEXT
685     EXEEXT
686     ac_ct_CC
687     CPPFLAGS
688     LDFLAGS
689     CFLAGS
690     CC
691     MAINT
692     MAINTAINER_MODE_FALSE
693     MAINTAINER_MODE_TRUE
694     AM_BACKSLASH
695     AM_DEFAULT_VERBOSITY
696     AM_DEFAULT_V
697     AM_V
698     am__untar
699     am__tar
700     AMTAR
701     am__leading_dot
702     SET_MAKE
703     AWK
704     mkdir_p
705     MKDIR_P
706     INSTALL_STRIP_PROGRAM
707     STRIP
708     install_sh
709     MAKEINFO
710     AUTOHEADER
711     AUTOMAKE
712     AUTOCONF
713     ACLOCAL
714     VERSION
715     PACKAGE
716     CYGPATH_W
717     am__isrc
718     INSTALL_DATA
719     INSTALL_SCRIPT
720     INSTALL_PROGRAM
721     target_alias
722     host_alias
723     build_alias
724     LIBS
725     ECHO_T
726     ECHO_N
727     ECHO_C
728     DEFS
729     mandir
730     localedir
731     libdir
732     psdir
733     pdfdir
734     dvidir
735     htmldir
736     infodir
737     docdir
738     oldincludedir
739     includedir
740     localstatedir
741     sharedstatedir
742     sysconfdir
743     datadir
744     datarootdir
745     libexecdir
746     sbindir
747     bindir
748     program_transform_name
749     prefix
750     exec_prefix
751     PACKAGE_URL
752     PACKAGE_BUGREPORT
753     PACKAGE_STRING
754     PACKAGE_VERSION
755     PACKAGE_TARNAME
756     PACKAGE_NAME
757     PATH_SEPARATOR
758     SHELL'
759 michael 5052 ac_subst_files=''
760 michael 5059 ac_user_opts='
761     enable_option_checking
762     enable_silent_rules
763     enable_maintainer_mode
764     with_extra_fascism
765     enable_dependency_tracking
766     enable_shared
767     enable_static
768     with_pic
769     enable_fast_install
770     with_aix_soname
771     with_gnu_ld
772     with_sysroot
773     enable_libtool_lock
774     '
775 michael 5052 ac_precious_vars='build_alias
776     host_alias
777     target_alias
778     CC
779     CFLAGS
780     LDFLAGS
781 michael 5059 LIBS
782 michael 5052 CPPFLAGS
783     CPP
784     YACC
785     YFLAGS'
786     ac_subdirs_all='src/libopm'
787    
788     # Initialize some variables set by options.
789     ac_init_help=
790     ac_init_version=false
791 michael 5059 ac_unrecognized_opts=
792     ac_unrecognized_sep=
793 michael 5052 # The variables have the same names as the options, with
794     # dashes changed to underlines.
795     cache_file=/dev/null
796     exec_prefix=NONE
797     no_create=
798     no_recursion=
799     prefix=NONE
800     program_prefix=NONE
801     program_suffix=NONE
802     program_transform_name=s,x,x,
803     silent=
804     site=
805     srcdir=
806     verbose=
807     x_includes=NONE
808     x_libraries=NONE
809    
810     # Installation directory options.
811     # These are left unexpanded so users can "make install exec_prefix=/foo"
812     # and all the variables that are supposed to be based on exec_prefix
813     # by default will actually change.
814     # Use braces instead of parens because sh, perl, etc. also accept them.
815     # (The list follows the same order as the GNU Coding Standards.)
816     bindir='${exec_prefix}/bin'
817     sbindir='${exec_prefix}/sbin'
818     libexecdir='${exec_prefix}/libexec'
819     datarootdir='${prefix}/share'
820     datadir='${datarootdir}'
821     sysconfdir='${prefix}/etc'
822     sharedstatedir='${prefix}/com'
823     localstatedir='${prefix}/var'
824     includedir='${prefix}/include'
825     oldincludedir='/usr/include'
826     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827     infodir='${datarootdir}/info'
828     htmldir='${docdir}'
829     dvidir='${docdir}'
830     pdfdir='${docdir}'
831     psdir='${docdir}'
832     libdir='${exec_prefix}/lib'
833     localedir='${datarootdir}/locale'
834     mandir='${datarootdir}/man'
835    
836     ac_prev=
837     ac_dashdash=
838     for ac_option
839     do
840     # If the previous option needs an argument, assign it.
841     if test -n "$ac_prev"; then
842     eval $ac_prev=\$ac_option
843     ac_prev=
844     continue
845     fi
846    
847     case $ac_option in
848 michael 5059 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849     *=) ac_optarg= ;;
850     *) ac_optarg=yes ;;
851 michael 5052 esac
852    
853     # Accept the important Cygnus configure options, so we can diagnose typos.
854    
855     case $ac_dashdash$ac_option in
856     --)
857     ac_dashdash=yes ;;
858    
859     -bindir | --bindir | --bindi | --bind | --bin | --bi)
860     ac_prev=bindir ;;
861     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862     bindir=$ac_optarg ;;
863    
864     -build | --build | --buil | --bui | --bu)
865     ac_prev=build_alias ;;
866     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867     build_alias=$ac_optarg ;;
868    
869     -cache-file | --cache-file | --cache-fil | --cache-fi \
870     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871     ac_prev=cache_file ;;
872     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874     cache_file=$ac_optarg ;;
875    
876     --config-cache | -C)
877     cache_file=config.cache ;;
878    
879     -datadir | --datadir | --datadi | --datad)
880     ac_prev=datadir ;;
881     -datadir=* | --datadir=* | --datadi=* | --datad=*)
882     datadir=$ac_optarg ;;
883    
884     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885     | --dataroo | --dataro | --datar)
886     ac_prev=datarootdir ;;
887     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889     datarootdir=$ac_optarg ;;
890    
891     -disable-* | --disable-*)
892 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 michael 5052 # Reject names that are not valid shell variable names.
894 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895     as_fn_error $? "invalid feature name: $ac_useropt"
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899     *"
900     "enable_$ac_useropt"
901     "*) ;;
902     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903     ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=no ;;
906 michael 5052
907     -docdir | --docdir | --docdi | --doc | --do)
908     ac_prev=docdir ;;
909     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910     docdir=$ac_optarg ;;
911    
912     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913     ac_prev=dvidir ;;
914     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915     dvidir=$ac_optarg ;;
916    
917     -enable-* | --enable-*)
918 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 michael 5052 # Reject names that are not valid shell variable names.
920 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921     as_fn_error $? "invalid feature name: $ac_useropt"
922     ac_useropt_orig=$ac_useropt
923     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924     case $ac_user_opts in
925     *"
926     "enable_$ac_useropt"
927     "*) ;;
928     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929     ac_unrecognized_sep=', ';;
930     esac
931     eval enable_$ac_useropt=\$ac_optarg ;;
932 michael 5052
933     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935     | --exec | --exe | --ex)
936     ac_prev=exec_prefix ;;
937     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939     | --exec=* | --exe=* | --ex=*)
940     exec_prefix=$ac_optarg ;;
941    
942     -gas | --gas | --ga | --g)
943     # Obsolete; use --with-gas.
944     with_gas=yes ;;
945    
946     -help | --help | --hel | --he | -h)
947     ac_init_help=long ;;
948     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949     ac_init_help=recursive ;;
950     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951     ac_init_help=short ;;
952    
953     -host | --host | --hos | --ho)
954     ac_prev=host_alias ;;
955     -host=* | --host=* | --hos=* | --ho=*)
956     host_alias=$ac_optarg ;;
957    
958     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959     ac_prev=htmldir ;;
960     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961     | --ht=*)
962     htmldir=$ac_optarg ;;
963    
964     -includedir | --includedir | --includedi | --included | --include \
965     | --includ | --inclu | --incl | --inc)
966     ac_prev=includedir ;;
967     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968     | --includ=* | --inclu=* | --incl=* | --inc=*)
969     includedir=$ac_optarg ;;
970    
971     -infodir | --infodir | --infodi | --infod | --info | --inf)
972     ac_prev=infodir ;;
973     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974     infodir=$ac_optarg ;;
975    
976     -libdir | --libdir | --libdi | --libd)
977     ac_prev=libdir ;;
978     -libdir=* | --libdir=* | --libdi=* | --libd=*)
979     libdir=$ac_optarg ;;
980    
981     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982     | --libexe | --libex | --libe)
983     ac_prev=libexecdir ;;
984     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985     | --libexe=* | --libex=* | --libe=*)
986     libexecdir=$ac_optarg ;;
987    
988     -localedir | --localedir | --localedi | --localed | --locale)
989     ac_prev=localedir ;;
990     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991     localedir=$ac_optarg ;;
992    
993     -localstatedir | --localstatedir | --localstatedi | --localstated \
994     | --localstate | --localstat | --localsta | --localst | --locals)
995     ac_prev=localstatedir ;;
996     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998     localstatedir=$ac_optarg ;;
999    
1000     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001     ac_prev=mandir ;;
1002     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003     mandir=$ac_optarg ;;
1004    
1005     -nfp | --nfp | --nf)
1006     # Obsolete; use --without-fp.
1007     with_fp=no ;;
1008    
1009     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010     | --no-cr | --no-c | -n)
1011     no_create=yes ;;
1012    
1013     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015     no_recursion=yes ;;
1016    
1017     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019     | --oldin | --oldi | --old | --ol | --o)
1020     ac_prev=oldincludedir ;;
1021     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024     oldincludedir=$ac_optarg ;;
1025    
1026     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027     ac_prev=prefix ;;
1028     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029     prefix=$ac_optarg ;;
1030    
1031     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032     | --program-pre | --program-pr | --program-p)
1033     ac_prev=program_prefix ;;
1034     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036     program_prefix=$ac_optarg ;;
1037    
1038     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039     | --program-suf | --program-su | --program-s)
1040     ac_prev=program_suffix ;;
1041     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043     program_suffix=$ac_optarg ;;
1044    
1045     -program-transform-name | --program-transform-name \
1046     | --program-transform-nam | --program-transform-na \
1047     | --program-transform-n | --program-transform- \
1048     | --program-transform | --program-transfor \
1049     | --program-transfo | --program-transf \
1050     | --program-trans | --program-tran \
1051     | --progr-tra | --program-tr | --program-t)
1052     ac_prev=program_transform_name ;;
1053     -program-transform-name=* | --program-transform-name=* \
1054     | --program-transform-nam=* | --program-transform-na=* \
1055     | --program-transform-n=* | --program-transform-=* \
1056     | --program-transform=* | --program-transfor=* \
1057     | --program-transfo=* | --program-transf=* \
1058     | --program-trans=* | --program-tran=* \
1059     | --progr-tra=* | --program-tr=* | --program-t=*)
1060     program_transform_name=$ac_optarg ;;
1061    
1062     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063     ac_prev=pdfdir ;;
1064     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065     pdfdir=$ac_optarg ;;
1066    
1067     -psdir | --psdir | --psdi | --psd | --ps)
1068     ac_prev=psdir ;;
1069     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070     psdir=$ac_optarg ;;
1071    
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074     silent=yes ;;
1075    
1076     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077     ac_prev=sbindir ;;
1078     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079     | --sbi=* | --sb=*)
1080     sbindir=$ac_optarg ;;
1081    
1082     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084     | --sharedst | --shareds | --shared | --share | --shar \
1085     | --sha | --sh)
1086     ac_prev=sharedstatedir ;;
1087     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090     | --sha=* | --sh=*)
1091     sharedstatedir=$ac_optarg ;;
1092    
1093     -site | --site | --sit)
1094     ac_prev=site ;;
1095     -site=* | --site=* | --sit=*)
1096     site=$ac_optarg ;;
1097    
1098     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099     ac_prev=srcdir ;;
1100     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101     srcdir=$ac_optarg ;;
1102    
1103     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104     | --syscon | --sysco | --sysc | --sys | --sy)
1105     ac_prev=sysconfdir ;;
1106     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108     sysconfdir=$ac_optarg ;;
1109    
1110     -target | --target | --targe | --targ | --tar | --ta | --t)
1111     ac_prev=target_alias ;;
1112     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113     target_alias=$ac_optarg ;;
1114    
1115     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116     verbose=yes ;;
1117    
1118     -version | --version | --versio | --versi | --vers | -V)
1119     ac_init_version=: ;;
1120    
1121     -with-* | --with-*)
1122 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 michael 5052 # Reject names that are not valid shell variable names.
1124 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125     as_fn_error $? "invalid package name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129     *"
1130     "with_$ac_useropt"
1131     "*) ;;
1132     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133     ac_unrecognized_sep=', ';;
1134     esac
1135     eval with_$ac_useropt=\$ac_optarg ;;
1136 michael 5052
1137     -without-* | --without-*)
1138 michael 5059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 michael 5052 # Reject names that are not valid shell variable names.
1140 michael 5059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141     as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145     *"
1146     "with_$ac_useropt"
1147     "*) ;;
1148     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149     ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=no ;;
1152 michael 5052
1153     --x)
1154     # Obsolete; use --with-x.
1155     with_x=yes ;;
1156    
1157     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158     | --x-incl | --x-inc | --x-in | --x-i)
1159     ac_prev=x_includes ;;
1160     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162     x_includes=$ac_optarg ;;
1163    
1164     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166     ac_prev=x_libraries ;;
1167     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169     x_libraries=$ac_optarg ;;
1170    
1171 michael 5059 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172     Try \`$0 --help' for more information"
1173 michael 5052 ;;
1174    
1175     *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178 michael 5059 case $ac_envvar in #(
1179     '' | [0-9]* | *[!_$as_cr_alnum]* )
1180     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181     esac
1182 michael 5052 eval $ac_envvar=\$ac_optarg
1183     export $ac_envvar ;;
1184    
1185     *)
1186     # FIXME: should be removed in autoconf 3.0.
1187 michael 5059 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 michael 5052 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 michael 5059 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 michael 5052 ;;
1192    
1193     esac
1194     done
1195    
1196     if test -n "$ac_prev"; then
1197     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 michael 5059 as_fn_error $? "missing argument to $ac_option"
1199 michael 5052 fi
1200    
1201 michael 5059 if test -n "$ac_unrecognized_opts"; then
1202     case $enable_option_checking in
1203     no) ;;
1204     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206     esac
1207     fi
1208    
1209     # Check all directory arguments for consistency.
1210 michael 5052 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211     datadir sysconfdir sharedstatedir localstatedir includedir \
1212     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213     libdir localedir mandir
1214     do
1215     eval ac_val=\$$ac_var
1216 michael 5059 # Remove trailing slashes.
1217 michael 5052 case $ac_val in
1218 michael 5059 */ )
1219     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220     eval $ac_var=\$ac_val;;
1221     esac
1222     # Be sure to have absolute directory names.
1223     case $ac_val in
1224 michael 5052 [\\/$]* | ?:[\\/]* ) continue;;
1225     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226     esac
1227 michael 5059 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 michael 5052 done
1229    
1230     # There might be people who depend on the old broken behavior: `$host'
1231     # used to hold the argument of --host etc.
1232     # FIXME: To remove some day.
1233     build=$build_alias
1234     host=$host_alias
1235     target=$target_alias
1236    
1237     # FIXME: To remove some day.
1238     if test "x$host_alias" != x; then
1239     if test "x$build_alias" = x; then
1240     cross_compiling=maybe
1241     elif test "x$build_alias" != "x$host_alias"; then
1242     cross_compiling=yes
1243     fi
1244     fi
1245    
1246     ac_tool_prefix=
1247     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248    
1249     test "$silent" = yes && exec 6>/dev/null
1250    
1251    
1252     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253     ac_ls_di=`ls -di .` &&
1254     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 michael 5059 as_fn_error $? "working directory cannot be determined"
1256 michael 5052 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 michael 5059 as_fn_error $? "pwd does not report name of working directory"
1258 michael 5052
1259    
1260     # Find the source files, if location was not specified.
1261     if test -z "$srcdir"; then
1262     ac_srcdir_defaulted=yes
1263     # Try the directory containing this script, then the parent directory.
1264 michael 5059 ac_confdir=`$as_dirname -- "$as_myself" ||
1265     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266     X"$as_myself" : 'X\(//\)[^/]' \| \
1267     X"$as_myself" : 'X\(//\)$' \| \
1268     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269     $as_echo X"$as_myself" |
1270 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271     s//\1/
1272     q
1273     }
1274     /^X\(\/\/\)[^/].*/{
1275     s//\1/
1276     q
1277     }
1278     /^X\(\/\/\)$/{
1279     s//\1/
1280     q
1281     }
1282     /^X\(\/\).*/{
1283     s//\1/
1284     q
1285     }
1286     s/.*/./; q'`
1287     srcdir=$ac_confdir
1288     if test ! -r "$srcdir/$ac_unique_file"; then
1289     srcdir=..
1290     fi
1291     else
1292     ac_srcdir_defaulted=no
1293     fi
1294     if test ! -r "$srcdir/$ac_unique_file"; then
1295     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 michael 5059 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 michael 5052 fi
1298     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299     ac_abs_confdir=`(
1300 michael 5059 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 michael 5052 pwd)`
1302     # When building in place, set srcdir=.
1303     if test "$ac_abs_confdir" = "$ac_pwd"; then
1304     srcdir=.
1305     fi
1306     # Remove unnecessary trailing slashes from srcdir.
1307     # Double slashes in file names in object file debugging info
1308     # mess up M-x gdb in Emacs.
1309     case $srcdir in
1310     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311     esac
1312     for ac_var in $ac_precious_vars; do
1313     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314     eval ac_env_${ac_var}_value=\$${ac_var}
1315     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317     done
1318    
1319     #
1320     # Report the --help message.
1321     #
1322     if test "$ac_init_help" = "long"; then
1323     # Omit some internal or obsolete options to make the list less imposing.
1324     # This message is too long to be a string in the A/UX 3.1 sh.
1325     cat <<_ACEOF
1326 michael 5061 \`configure' configures hopm 1.0.0beta1 to adapt to many kinds of systems.
1327 michael 5052
1328     Usage: $0 [OPTION]... [VAR=VALUE]...
1329    
1330     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331     VAR=VALUE. See below for descriptions of some of the useful variables.
1332    
1333     Defaults for the options are specified in brackets.
1334    
1335     Configuration:
1336     -h, --help display this help and exit
1337     --help=short display options specific to this package
1338     --help=recursive display the short help of all the included packages
1339     -V, --version display version information and exit
1340 michael 5059 -q, --quiet, --silent do not print \`checking ...' messages
1341 michael 5052 --cache-file=FILE cache test results in FILE [disabled]
1342     -C, --config-cache alias for \`--cache-file=config.cache'
1343     -n, --no-create do not create output files
1344     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345    
1346     Installation directories:
1347     --prefix=PREFIX install architecture-independent files in PREFIX
1348 michael 5059 [$ac_default_prefix]
1349 michael 5052 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 michael 5059 [PREFIX]
1351 michael 5052
1352     By default, \`make install' will install all the files in
1353     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355     for instance \`--prefix=\$HOME'.
1356    
1357     For better control, use the options below.
1358    
1359     Fine tuning of the installation directories:
1360 michael 5059 --bindir=DIR user executables [EPREFIX/bin]
1361     --sbindir=DIR system admin executables [EPREFIX/sbin]
1362     --libexecdir=DIR program executables [EPREFIX/libexec]
1363     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366     --libdir=DIR object code libraries [EPREFIX/lib]
1367     --includedir=DIR C header files [PREFIX/include]
1368     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371     --infodir=DIR info documentation [DATAROOTDIR/info]
1372     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373     --mandir=DIR man documentation [DATAROOTDIR/man]
1374 michael 5061 --docdir=DIR documentation root [DATAROOTDIR/doc/hopm]
1375 michael 5059 --htmldir=DIR html documentation [DOCDIR]
1376     --dvidir=DIR dvi documentation [DOCDIR]
1377     --pdfdir=DIR pdf documentation [DOCDIR]
1378     --psdir=DIR ps documentation [DOCDIR]
1379 michael 5052 _ACEOF
1380    
1381     cat <<\_ACEOF
1382    
1383     Program names:
1384     --program-prefix=PREFIX prepend PREFIX to installed program names
1385     --program-suffix=SUFFIX append SUFFIX to installed program names
1386     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387    
1388     System types:
1389     --build=BUILD configure for building on BUILD [guessed]
1390     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391     _ACEOF
1392     fi
1393    
1394     if test -n "$ac_init_help"; then
1395     case $ac_init_help in
1396 michael 5061 short | recursive ) echo "Configuration of hopm 1.0.0beta1:";;
1397 michael 5052 esac
1398     cat <<\_ACEOF
1399    
1400     Optional Features:
1401 michael 5059 --disable-option-checking ignore unrecognized --enable/--with options
1402 michael 5052 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 michael 5059 --enable-silent-rules less verbose build output (undo: "make V=1")
1405     --disable-silent-rules verbose build output (undo: "make V=0")
1406     --enable-maintainer-mode
1407     enable make rules and dependencies not useful (and
1408     sometimes confusing) to the casual installer
1409     --enable-dependency-tracking
1410     do not reject slow dependency extractors
1411     --disable-dependency-tracking
1412     speeds up one-time build
1413 michael 5052 --enable-shared[=PKGS] build shared libraries [default=yes]
1414     --enable-static[=PKGS] build static libraries [default=yes]
1415     --enable-fast-install[=PKGS]
1416     optimize for fast installation [default=yes]
1417     --disable-libtool-lock avoid locking (might break parallel builds)
1418    
1419     Optional Packages:
1420     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1421     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1422     --with-extra-fascism Add extra gcc3-specific warning flags
1423 michael 5059 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1424     both]
1425     --with-aix-soname=aix|svr4|both
1426     shared library versioning (aka "SONAME") variant to
1427     provide on AIX, [default=aix].
1428 michael 5052 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 michael 5059 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1430     compiler's sysroot if not specified).
1431 michael 5052
1432     Some influential environment variables:
1433     CC C compiler command
1434     CFLAGS C compiler flags
1435     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436     nonstandard directory <lib dir>
1437 michael 5059 LIBS libraries to pass to the linker, e.g. -l<library>
1438     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 michael 5052 you have headers in a nonstandard directory <include dir>
1440     CPP C preprocessor
1441 michael 5059 YACC The `Yet Another Compiler Compiler' implementation to use.
1442     Defaults to the first program found out of: `bison -y', `byacc',
1443     `yacc'.
1444 michael 5052 YFLAGS The list of arguments that will be passed by default to $YACC.
1445     This script will default YFLAGS to the empty string to avoid a
1446     default value of `-d' given by some make applications.
1447    
1448     Use these variables to override the choices made by `configure' or to help
1449     it to find libraries and programs with nonstandard names/locations.
1450    
1451 michael 5059 Report bugs to the package provider.
1452 michael 5052 _ACEOF
1453     ac_status=$?
1454     fi
1455    
1456     if test "$ac_init_help" = "recursive"; then
1457     # If there are subdirs, report their specific --help.
1458     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 michael 5059 test -d "$ac_dir" ||
1460     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461     continue
1462 michael 5052 ac_builddir=.
1463    
1464     case "$ac_dir" in
1465     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466     *)
1467 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 michael 5052 # A ".." for each directory in $ac_dir_suffix.
1469 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 michael 5052 case $ac_top_builddir_sub in
1471     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473     esac ;;
1474     esac
1475     ac_abs_top_builddir=$ac_pwd
1476     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477     # for backward compatibility:
1478     ac_top_builddir=$ac_top_build_prefix
1479    
1480     case $srcdir in
1481     .) # We are building in place.
1482     ac_srcdir=.
1483     ac_top_srcdir=$ac_top_builddir_sub
1484     ac_abs_top_srcdir=$ac_pwd ;;
1485     [\\/]* | ?:[\\/]* ) # Absolute name.
1486     ac_srcdir=$srcdir$ac_dir_suffix;
1487     ac_top_srcdir=$srcdir
1488     ac_abs_top_srcdir=$srcdir ;;
1489     *) # Relative name.
1490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491     ac_top_srcdir=$ac_top_build_prefix$srcdir
1492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493     esac
1494     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495    
1496     cd "$ac_dir" || { ac_status=$?; continue; }
1497     # Check for guested configure.
1498     if test -f "$ac_srcdir/configure.gnu"; then
1499     echo &&
1500     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501     elif test -f "$ac_srcdir/configure"; then
1502     echo &&
1503     $SHELL "$ac_srcdir/configure" --help=recursive
1504     else
1505 michael 5059 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 michael 5052 fi || ac_status=$?
1507     cd "$ac_pwd" || { ac_status=$?; break; }
1508     done
1509     fi
1510    
1511     test -n "$ac_init_help" && exit $ac_status
1512     if $ac_init_version; then
1513     cat <<\_ACEOF
1514 michael 5061 hopm configure 1.0.0beta1
1515 michael 5059 generated by GNU Autoconf 2.69
1516 michael 5052
1517 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
1518 michael 5052 This configure script is free software; the Free Software Foundation
1519     gives unlimited permission to copy, distribute and modify it.
1520     _ACEOF
1521     exit
1522     fi
1523 michael 5059
1524     ## ------------------------ ##
1525     ## Autoconf initialization. ##
1526     ## ------------------------ ##
1527    
1528     # ac_fn_c_try_compile LINENO
1529     # --------------------------
1530     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531     ac_fn_c_try_compile ()
1532     {
1533     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534     rm -f conftest.$ac_objext
1535     if { { ac_try="$ac_compile"
1536     case "(($ac_try" in
1537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538     *) ac_try_echo=$ac_try;;
1539     esac
1540     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541     $as_echo "$ac_try_echo"; } >&5
1542     (eval "$ac_compile") 2>conftest.err
1543     ac_status=$?
1544     if test -s conftest.err; then
1545     grep -v '^ *+' conftest.err >conftest.er1
1546     cat conftest.er1 >&5
1547     mv -f conftest.er1 conftest.err
1548     fi
1549     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550     test $ac_status = 0; } && {
1551     test -z "$ac_c_werror_flag" ||
1552     test ! -s conftest.err
1553     } && test -s conftest.$ac_objext; then :
1554     ac_retval=0
1555     else
1556     $as_echo "$as_me: failed program was:" >&5
1557     sed 's/^/| /' conftest.$ac_ext >&5
1558    
1559     ac_retval=1
1560     fi
1561     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562     as_fn_set_status $ac_retval
1563    
1564     } # ac_fn_c_try_compile
1565    
1566     # ac_fn_c_try_link LINENO
1567     # -----------------------
1568     # Try to link conftest.$ac_ext, and return whether this succeeded.
1569     ac_fn_c_try_link ()
1570     {
1571     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572     rm -f conftest.$ac_objext conftest$ac_exeext
1573     if { { ac_try="$ac_link"
1574     case "(($ac_try" in
1575     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576     *) ac_try_echo=$ac_try;;
1577     esac
1578     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579     $as_echo "$ac_try_echo"; } >&5
1580     (eval "$ac_link") 2>conftest.err
1581     ac_status=$?
1582     if test -s conftest.err; then
1583     grep -v '^ *+' conftest.err >conftest.er1
1584     cat conftest.er1 >&5
1585     mv -f conftest.er1 conftest.err
1586     fi
1587     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588     test $ac_status = 0; } && {
1589     test -z "$ac_c_werror_flag" ||
1590     test ! -s conftest.err
1591     } && test -s conftest$ac_exeext && {
1592     test "$cross_compiling" = yes ||
1593     test -x conftest$ac_exeext
1594     }; then :
1595     ac_retval=0
1596     else
1597     $as_echo "$as_me: failed program was:" >&5
1598     sed 's/^/| /' conftest.$ac_ext >&5
1599    
1600     ac_retval=1
1601     fi
1602     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604     # interfere with the next link command; also delete a directory that is
1605     # left behind by Apple's compiler. We do this before executing the actions.
1606     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608     as_fn_set_status $ac_retval
1609    
1610     } # ac_fn_c_try_link
1611    
1612     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613     # -------------------------------------------------------
1614     # Tests whether HEADER exists and can be compiled using the include files in
1615     # INCLUDES, setting the cache variable VAR accordingly.
1616     ac_fn_c_check_header_compile ()
1617     {
1618     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620     $as_echo_n "checking for $2... " >&6; }
1621     if eval \${$3+:} false; then :
1622     $as_echo_n "(cached) " >&6
1623     else
1624     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625     /* end confdefs.h. */
1626     $4
1627     #include <$2>
1628     _ACEOF
1629     if ac_fn_c_try_compile "$LINENO"; then :
1630     eval "$3=yes"
1631     else
1632     eval "$3=no"
1633     fi
1634     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635     fi
1636     eval ac_res=\$$3
1637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638     $as_echo "$ac_res" >&6; }
1639     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640    
1641     } # ac_fn_c_check_header_compile
1642    
1643     # ac_fn_c_try_cpp LINENO
1644     # ----------------------
1645     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646     ac_fn_c_try_cpp ()
1647     {
1648     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649     if { { ac_try="$ac_cpp conftest.$ac_ext"
1650     case "(($ac_try" in
1651     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652     *) ac_try_echo=$ac_try;;
1653     esac
1654     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655     $as_echo "$ac_try_echo"; } >&5
1656     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657     ac_status=$?
1658     if test -s conftest.err; then
1659     grep -v '^ *+' conftest.err >conftest.er1
1660     cat conftest.er1 >&5
1661     mv -f conftest.er1 conftest.err
1662     fi
1663     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664     test $ac_status = 0; } > conftest.i && {
1665     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666     test ! -s conftest.err
1667     }; then :
1668     ac_retval=0
1669     else
1670     $as_echo "$as_me: failed program was:" >&5
1671     sed 's/^/| /' conftest.$ac_ext >&5
1672    
1673     ac_retval=1
1674     fi
1675     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676     as_fn_set_status $ac_retval
1677    
1678     } # ac_fn_c_try_cpp
1679    
1680     # ac_fn_c_try_run LINENO
1681     # ----------------------
1682     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683     # that executables *can* be run.
1684     ac_fn_c_try_run ()
1685     {
1686     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687     if { { ac_try="$ac_link"
1688     case "(($ac_try" in
1689     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690     *) ac_try_echo=$ac_try;;
1691     esac
1692     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693     $as_echo "$ac_try_echo"; } >&5
1694     (eval "$ac_link") 2>&5
1695     ac_status=$?
1696     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698     { { case "(($ac_try" in
1699     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700     *) ac_try_echo=$ac_try;;
1701     esac
1702     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703     $as_echo "$ac_try_echo"; } >&5
1704     (eval "$ac_try") 2>&5
1705     ac_status=$?
1706     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707     test $ac_status = 0; }; }; then :
1708     ac_retval=0
1709     else
1710     $as_echo "$as_me: program exited with status $ac_status" >&5
1711     $as_echo "$as_me: failed program was:" >&5
1712     sed 's/^/| /' conftest.$ac_ext >&5
1713    
1714     ac_retval=$ac_status
1715     fi
1716     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718     as_fn_set_status $ac_retval
1719    
1720     } # ac_fn_c_try_run
1721    
1722     # ac_fn_c_check_func LINENO FUNC VAR
1723     # ----------------------------------
1724     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725     ac_fn_c_check_func ()
1726     {
1727     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729     $as_echo_n "checking for $2... " >&6; }
1730     if eval \${$3+:} false; then :
1731     $as_echo_n "(cached) " >&6
1732     else
1733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734     /* end confdefs.h. */
1735     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737     #define $2 innocuous_$2
1738    
1739     /* System header to define __stub macros and hopefully few prototypes,
1740     which can conflict with char $2 (); below.
1741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742     <limits.h> exists even on freestanding compilers. */
1743    
1744     #ifdef __STDC__
1745     # include <limits.h>
1746     #else
1747     # include <assert.h>
1748     #endif
1749    
1750     #undef $2
1751    
1752     /* Override any GCC internal prototype to avoid an error.
1753     Use char because int might match the return type of a GCC
1754     builtin and then its argument prototype would still apply. */
1755     #ifdef __cplusplus
1756     extern "C"
1757     #endif
1758     char $2 ();
1759     /* The GNU C library defines this for functions which it implements
1760     to always fail with ENOSYS. Some functions are actually named
1761     something starting with __ and the normal name is an alias. */
1762     #if defined __stub_$2 || defined __stub___$2
1763     choke me
1764     #endif
1765    
1766     int
1767     main ()
1768     {
1769     return $2 ();
1770     ;
1771     return 0;
1772     }
1773     _ACEOF
1774     if ac_fn_c_try_link "$LINENO"; then :
1775     eval "$3=yes"
1776     else
1777     eval "$3=no"
1778     fi
1779     rm -f core conftest.err conftest.$ac_objext \
1780     conftest$ac_exeext conftest.$ac_ext
1781     fi
1782     eval ac_res=\$$3
1783     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784     $as_echo "$ac_res" >&6; }
1785     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786    
1787     } # ac_fn_c_check_func
1788    
1789     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1790     # -------------------------------------------------------
1791     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1792     # the include files in INCLUDES and setting the cache variable VAR
1793     # accordingly.
1794     ac_fn_c_check_header_mongrel ()
1795     {
1796     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797     if eval \${$3+:} false; then :
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799     $as_echo_n "checking for $2... " >&6; }
1800     if eval \${$3+:} false; then :
1801     $as_echo_n "(cached) " >&6
1802     fi
1803     eval ac_res=\$$3
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805     $as_echo "$ac_res" >&6; }
1806     else
1807     # Is the header compilable?
1808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1809     $as_echo_n "checking $2 usability... " >&6; }
1810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811     /* end confdefs.h. */
1812     $4
1813     #include <$2>
1814     _ACEOF
1815     if ac_fn_c_try_compile "$LINENO"; then :
1816     ac_header_compiler=yes
1817     else
1818     ac_header_compiler=no
1819     fi
1820     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1822     $as_echo "$ac_header_compiler" >&6; }
1823    
1824     # Is the header present?
1825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1826     $as_echo_n "checking $2 presence... " >&6; }
1827     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828     /* end confdefs.h. */
1829     #include <$2>
1830     _ACEOF
1831     if ac_fn_c_try_cpp "$LINENO"; then :
1832     ac_header_preproc=yes
1833     else
1834     ac_header_preproc=no
1835     fi
1836     rm -f conftest.err conftest.i conftest.$ac_ext
1837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1838     $as_echo "$ac_header_preproc" >&6; }
1839    
1840     # So? What about this header?
1841     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842     yes:no: )
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1844     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1847     ;;
1848     no:yes:* )
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1850     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1852     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1854     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1856     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859     ;;
1860     esac
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862     $as_echo_n "checking for $2... " >&6; }
1863     if eval \${$3+:} false; then :
1864     $as_echo_n "(cached) " >&6
1865     else
1866     eval "$3=\$ac_header_compiler"
1867     fi
1868     eval ac_res=\$$3
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870     $as_echo "$ac_res" >&6; }
1871     fi
1872     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873    
1874     } # ac_fn_c_check_header_mongrel
1875 michael 5052 cat >config.log <<_ACEOF
1876     This file contains any messages produced by compilers while
1877     running configure, to aid debugging if configure makes a mistake.
1878    
1879 michael 5061 It was created by hopm $as_me 1.0.0beta1, which was
1880 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
1881 michael 5052
1882     $ $0 $@
1883    
1884     _ACEOF
1885     exec 5>>config.log
1886     {
1887     cat <<_ASUNAME
1888     ## --------- ##
1889     ## Platform. ##
1890     ## --------- ##
1891    
1892     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1893     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1894     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1895     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1896     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1897    
1898     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1899     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1900    
1901     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1902     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1903     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1904     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1905     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1906     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1907     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1908    
1909     _ASUNAME
1910    
1911     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1912     for as_dir in $PATH
1913     do
1914     IFS=$as_save_IFS
1915     test -z "$as_dir" && as_dir=.
1916 michael 5059 $as_echo "PATH: $as_dir"
1917     done
1918 michael 5052 IFS=$as_save_IFS
1919    
1920     } >&5
1921    
1922     cat >&5 <<_ACEOF
1923    
1924    
1925     ## ----------- ##
1926     ## Core tests. ##
1927     ## ----------- ##
1928    
1929     _ACEOF
1930    
1931    
1932     # Keep a trace of the command line.
1933     # Strip out --no-create and --no-recursion so they do not pile up.
1934     # Strip out --silent because we don't want to record it for future runs.
1935     # Also quote any args containing shell meta-characters.
1936     # Make two passes to allow for proper duplicate-argument suppression.
1937     ac_configure_args=
1938     ac_configure_args0=
1939     ac_configure_args1=
1940     ac_must_keep_next=false
1941     for ac_pass in 1 2
1942     do
1943     for ac_arg
1944     do
1945     case $ac_arg in
1946     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948     | -silent | --silent | --silen | --sile | --sil)
1949     continue ;;
1950     *\'*)
1951 michael 5059 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952 michael 5052 esac
1953     case $ac_pass in
1954 michael 5059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955 michael 5052 2)
1956 michael 5059 as_fn_append ac_configure_args1 " '$ac_arg'"
1957 michael 5052 if test $ac_must_keep_next = true; then
1958     ac_must_keep_next=false # Got value, back to normal.
1959     else
1960     case $ac_arg in
1961     *=* | --config-cache | -C | -disable-* | --disable-* \
1962     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964     | -with-* | --with-* | -without-* | --without-* | --x)
1965     case "$ac_configure_args0 " in
1966     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967     esac
1968     ;;
1969     -* ) ac_must_keep_next=true ;;
1970     esac
1971     fi
1972 michael 5059 as_fn_append ac_configure_args " '$ac_arg'"
1973 michael 5052 ;;
1974     esac
1975     done
1976     done
1977 michael 5059 { ac_configure_args0=; unset ac_configure_args0;}
1978     { ac_configure_args1=; unset ac_configure_args1;}
1979 michael 5052
1980     # When interrupted or exit'd, cleanup temporary files, and complete
1981     # config.log. We remove comments because anyway the quotes in there
1982     # would cause problems or look ugly.
1983     # WARNING: Use '\'' to represent an apostrophe within the trap.
1984     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985     trap 'exit_status=$?
1986     # Save into config.log some information that might help in debugging.
1987     {
1988     echo
1989    
1990 michael 5059 $as_echo "## ---------------- ##
1991 michael 5052 ## Cache variables. ##
1992 michael 5059 ## ---------------- ##"
1993 michael 5052 echo
1994     # The following way of writing the cache mishandles newlines in values,
1995     (
1996     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997     eval ac_val=\$$ac_var
1998     case $ac_val in #(
1999     *${as_nl}*)
2000     case $ac_var in #(
2001 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 michael 5052 esac
2004     case $ac_var in #(
2005     _ | IFS | as_nl) ;; #(
2006 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007     *) { eval $ac_var=; unset $ac_var;} ;;
2008 michael 5052 esac ;;
2009     esac
2010     done
2011     (set) 2>&1 |
2012     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013     *${as_nl}ac_space=\ *)
2014     sed -n \
2015     "s/'\''/'\''\\\\'\'''\''/g;
2016     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017     ;; #(
2018     *)
2019     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020     ;;
2021     esac |
2022     sort
2023     )
2024     echo
2025    
2026 michael 5059 $as_echo "## ----------------- ##
2027 michael 5052 ## Output variables. ##
2028 michael 5059 ## ----------------- ##"
2029 michael 5052 echo
2030     for ac_var in $ac_subst_vars
2031     do
2032     eval ac_val=\$$ac_var
2033     case $ac_val in
2034 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 michael 5052 esac
2036 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2037 michael 5052 done | sort
2038     echo
2039    
2040     if test -n "$ac_subst_files"; then
2041 michael 5059 $as_echo "## ------------------- ##
2042 michael 5052 ## File substitutions. ##
2043 michael 5059 ## ------------------- ##"
2044 michael 5052 echo
2045     for ac_var in $ac_subst_files
2046     do
2047     eval ac_val=\$$ac_var
2048     case $ac_val in
2049 michael 5059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050 michael 5052 esac
2051 michael 5059 $as_echo "$ac_var='\''$ac_val'\''"
2052 michael 5052 done | sort
2053     echo
2054     fi
2055    
2056     if test -s confdefs.h; then
2057 michael 5059 $as_echo "## ----------- ##
2058 michael 5052 ## confdefs.h. ##
2059 michael 5059 ## ----------- ##"
2060 michael 5052 echo
2061     cat confdefs.h
2062     echo
2063     fi
2064     test "$ac_signal" != 0 &&
2065 michael 5059 $as_echo "$as_me: caught signal $ac_signal"
2066     $as_echo "$as_me: exit $exit_status"
2067 michael 5052 } >&5
2068     rm -f core *.core core.conftest.* &&
2069     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2070     exit $exit_status
2071     ' 0
2072     for ac_signal in 1 2 13 15; do
2073 michael 5059 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2074 michael 5052 done
2075     ac_signal=0
2076    
2077     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2078     rm -f -r conftest* confdefs.h
2079    
2080 michael 5059 $as_echo "/* confdefs.h */" > confdefs.h
2081    
2082 michael 5052 # Predefined preprocessor variables.
2083    
2084     cat >>confdefs.h <<_ACEOF
2085     #define PACKAGE_NAME "$PACKAGE_NAME"
2086     _ACEOF
2087    
2088     cat >>confdefs.h <<_ACEOF
2089     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2090     _ACEOF
2091    
2092     cat >>confdefs.h <<_ACEOF
2093     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2094     _ACEOF
2095    
2096     cat >>confdefs.h <<_ACEOF
2097     #define PACKAGE_STRING "$PACKAGE_STRING"
2098     _ACEOF
2099    
2100     cat >>confdefs.h <<_ACEOF
2101     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2102     _ACEOF
2103    
2104 michael 5059 cat >>confdefs.h <<_ACEOF
2105     #define PACKAGE_URL "$PACKAGE_URL"
2106     _ACEOF
2107 michael 5052
2108 michael 5059
2109 michael 5052 # Let the site file select an alternate cache file if it wants to.
2110 michael 5059 # Prefer an explicitly selected file to automatically selected ones.
2111     ac_site_file1=NONE
2112     ac_site_file2=NONE
2113 michael 5052 if test -n "$CONFIG_SITE"; then
2114 michael 5059 # We do not want a PATH search for config.site.
2115     case $CONFIG_SITE in #((
2116     -*) ac_site_file1=./$CONFIG_SITE;;
2117     */*) ac_site_file1=$CONFIG_SITE;;
2118     *) ac_site_file1=./$CONFIG_SITE;;
2119     esac
2120 michael 5052 elif test "x$prefix" != xNONE; then
2121 michael 5059 ac_site_file1=$prefix/share/config.site
2122     ac_site_file2=$prefix/etc/config.site
2123 michael 5052 else
2124 michael 5059 ac_site_file1=$ac_default_prefix/share/config.site
2125     ac_site_file2=$ac_default_prefix/etc/config.site
2126 michael 5052 fi
2127 michael 5059 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2128 michael 5052 do
2129 michael 5059 test "x$ac_site_file" = xNONE && continue
2130     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2131     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 michael 5052 sed 's/^/| /' "$ac_site_file" >&5
2134 michael 5059 . "$ac_site_file" \
2135     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137     as_fn_error $? "failed to load site script $ac_site_file
2138     See \`config.log' for more details" "$LINENO" 5; }
2139 michael 5052 fi
2140     done
2141    
2142     if test -r "$cache_file"; then
2143 michael 5059 # Some versions of bash will fail to source /dev/null (special files
2144     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2145     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2146     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2147     $as_echo "$as_me: loading cache $cache_file" >&6;}
2148 michael 5052 case $cache_file in
2149     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2150     *) . "./$cache_file";;
2151     esac
2152     fi
2153     else
2154 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2155     $as_echo "$as_me: creating cache $cache_file" >&6;}
2156 michael 5052 >$cache_file
2157     fi
2158    
2159     # Check that the precious variables saved in the cache have kept the same
2160     # value.
2161     ac_cache_corrupted=false
2162     for ac_var in $ac_precious_vars; do
2163     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2164     eval ac_new_set=\$ac_env_${ac_var}_set
2165     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2166     eval ac_new_val=\$ac_env_${ac_var}_value
2167     case $ac_old_set,$ac_new_set in
2168     set,)
2169 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2170     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2171 michael 5052 ac_cache_corrupted=: ;;
2172     ,set)
2173 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2174     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2175 michael 5052 ac_cache_corrupted=: ;;
2176     ,);;
2177     *)
2178     if test "x$ac_old_val" != "x$ac_new_val"; then
2179 michael 5059 # differences in whitespace do not lead to failure.
2180     ac_old_val_w=`echo x $ac_old_val`
2181     ac_new_val_w=`echo x $ac_new_val`
2182     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2184     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2185     ac_cache_corrupted=:
2186     else
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2188     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2189     eval $ac_var=\$ac_old_val
2190     fi
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2192     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2193     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2194     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2195 michael 5052 fi;;
2196     esac
2197     # Pass precious variables to config.status.
2198     if test "$ac_new_set" = set; then
2199     case $ac_new_val in
2200 michael 5059 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2201 michael 5052 *) ac_arg=$ac_var=$ac_new_val ;;
2202     esac
2203     case " $ac_configure_args " in
2204     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2205 michael 5059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2206 michael 5052 esac
2207     fi
2208     done
2209     if $ac_cache_corrupted; then
2210 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2213     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2214     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2215 michael 5052 fi
2216 michael 5059 ## -------------------- ##
2217     ## Main body of script. ##
2218     ## -------------------- ##
2219 michael 5052
2220     ac_ext=c
2221     ac_cpp='$CPP $CPPFLAGS'
2222     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225    
2226    
2227    
2228     ac_config_headers="$ac_config_headers src/setup.h"
2229    
2230 michael 5059 am__api_version='1.14'
2231    
2232 michael 5052 ac_aux_dir=
2233     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2234     if test -f "$ac_dir/install-sh"; then
2235     ac_aux_dir=$ac_dir
2236     ac_install_sh="$ac_aux_dir/install-sh -c"
2237     break
2238     elif test -f "$ac_dir/install.sh"; then
2239     ac_aux_dir=$ac_dir
2240     ac_install_sh="$ac_aux_dir/install.sh -c"
2241     break
2242     elif test -f "$ac_dir/shtool"; then
2243     ac_aux_dir=$ac_dir
2244     ac_install_sh="$ac_aux_dir/shtool install -c"
2245     break
2246     fi
2247     done
2248     if test -z "$ac_aux_dir"; then
2249 michael 5059 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2250 michael 5052 fi
2251    
2252     # These three variables are undocumented and unsupported,
2253     # and are intended to be withdrawn in a future Autoconf release.
2254     # They can cause serious problems if a builder's source tree is in a directory
2255     # whose full name contains unusual characters.
2256     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2257     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2258     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2259    
2260    
2261     # Find a good install program. We prefer a C program (faster),
2262     # so one script is as good as another. But avoid the broken or
2263     # incompatible versions:
2264     # SysV /etc/install, /usr/sbin/install
2265     # SunOS /usr/etc/install
2266     # IRIX /sbin/install
2267     # AIX /bin/install
2268     # AmigaOS /C/install, which installs bootblocks on floppy discs
2269     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2270     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2271     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2272     # OS/2's system install, which has a completely different semantic
2273     # ./install, which can be erroneously created by make from ./install.sh.
2274 michael 5059 # Reject install programs that cannot install multiple files.
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2276     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2277 michael 5052 if test -z "$INSTALL"; then
2278 michael 5059 if ${ac_cv_path_install+:} false; then :
2279     $as_echo_n "(cached) " >&6
2280 michael 5052 else
2281     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282     for as_dir in $PATH
2283     do
2284     IFS=$as_save_IFS
2285     test -z "$as_dir" && as_dir=.
2286 michael 5059 # Account for people who put trailing slashes in PATH elements.
2287     case $as_dir/ in #((
2288     ./ | .// | /[cC]/* | \
2289 michael 5052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2290 michael 5059 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2291 michael 5052 /usr/ucb/* ) ;;
2292     *)
2293     # OSF1 and SCO ODT 3.0 have their own names for install.
2294     # Don't use installbsd from OSF since it installs stuff as root
2295     # by default.
2296     for ac_prog in ginstall scoinst install; do
2297     for ac_exec_ext in '' $ac_executable_extensions; do
2298 michael 5059 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2299 michael 5052 if test $ac_prog = install &&
2300     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301     # AIX install. It has an incompatible calling convention.
2302     :
2303     elif test $ac_prog = install &&
2304     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2305     # program-specific install script used by HP pwplus--don't use.
2306     :
2307     else
2308 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2309     echo one > conftest.one
2310     echo two > conftest.two
2311     mkdir conftest.dir
2312     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2313     test -s conftest.one && test -s conftest.two &&
2314     test -s conftest.dir/conftest.one &&
2315     test -s conftest.dir/conftest.two
2316     then
2317     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318     break 3
2319     fi
2320 michael 5052 fi
2321     fi
2322     done
2323     done
2324     ;;
2325     esac
2326 michael 5059
2327     done
2328 michael 5052 IFS=$as_save_IFS
2329    
2330 michael 5059 rm -rf conftest.one conftest.two conftest.dir
2331 michael 5052
2332     fi
2333     if test "${ac_cv_path_install+set}" = set; then
2334     INSTALL=$ac_cv_path_install
2335     else
2336     # As a last resort, use the slow shell script. Don't cache a
2337     # value for INSTALL within a source directory, because that will
2338     # break other packages using the cache if that directory is
2339     # removed, or if the value is a relative name.
2340     INSTALL=$ac_install_sh
2341     fi
2342     fi
2343 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2344     $as_echo "$INSTALL" >&6; }
2345 michael 5052
2346     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2347     # It thinks the first close brace ends the variable substitution.
2348     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2349    
2350     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2351    
2352     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2353    
2354 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2355     $as_echo_n "checking whether build environment is sane... " >&6; }
2356     # Reject unsafe characters in $srcdir or the absolute working directory
2357     # name. Accept space and tab only in the latter.
2358     am_lf='
2359     '
2360     case `pwd` in
2361     *[\\\"\#\$\&\'\`$am_lf]*)
2362     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2363     esac
2364     case $srcdir in
2365     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2366     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2367     esac
2368    
2369     # Do 'set' in a subshell so we don't clobber the current shell's
2370 michael 5052 # arguments. Must try -L first in case configure is actually a
2371     # symlink; some systems play weird games with the mod time of symlinks
2372     # (eg FreeBSD returns the mod time of the symlink's containing
2373     # directory).
2374     if (
2375 michael 5059 am_has_slept=no
2376     for am_try in 1 2; do
2377     echo "timestamp, slept: $am_has_slept" > conftest.file
2378     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2379     if test "$*" = "X"; then
2380     # -L didn't work.
2381     set X `ls -t "$srcdir/configure" conftest.file`
2382     fi
2383     if test "$*" != "X $srcdir/configure conftest.file" \
2384     && test "$*" != "X conftest.file $srcdir/configure"; then
2385 michael 5052
2386 michael 5059 # If neither matched, then we have a broken ls. This can happen
2387     # if, for instance, CONFIG_SHELL is bash and it inherits a
2388     # broken ls alias from the environment. This has actually
2389     # happened. Such a system could not be considered "sane".
2390     as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2391     alias in your environment" "$LINENO" 5
2392     fi
2393     if test "$2" = conftest.file || test $am_try -eq 2; then
2394     break
2395     fi
2396     # Just in case.
2397     sleep 1
2398     am_has_slept=yes
2399     done
2400 michael 5052 test "$2" = conftest.file
2401     )
2402     then
2403     # Ok.
2404     :
2405     else
2406 michael 5059 as_fn_error $? "newly created file is older than distributed files!
2407     Check your system clock" "$LINENO" 5
2408 michael 5052 fi
2409 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410     $as_echo "yes" >&6; }
2411     # If we didn't sleep, we still need to ensure time stamps of config.status and
2412     # generated files are strictly newer.
2413     am_sleep_pid=
2414     if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2415     ( sleep 1 ) &
2416     am_sleep_pid=$!
2417     fi
2418    
2419     rm -f conftest.file
2420    
2421 michael 5052 test "$program_prefix" != NONE &&
2422     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2423     # Use a double $ so make ignores it.
2424     test "$program_suffix" != NONE &&
2425     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2426 michael 5059 # Double any \ or $.
2427 michael 5052 # By default was `s,x,x', remove it if useless.
2428 michael 5059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2429     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2430 michael 5052
2431     # expand $ac_aux_dir to an absolute path
2432     am_aux_dir=`cd $ac_aux_dir && pwd`
2433    
2434 michael 5059 if test x"${MISSING+set}" != xset; then
2435     case $am_aux_dir in
2436     *\ * | *\ *)
2437     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2438     *)
2439     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2440     esac
2441     fi
2442 michael 5052 # Use eval to expand $SHELL
2443 michael 5059 if eval "$MISSING --is-lightweight"; then
2444     am_missing_run="$MISSING "
2445 michael 5052 else
2446     am_missing_run=
2447 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2448     $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2449 michael 5052 fi
2450    
2451 michael 5059 if test x"${install_sh}" != xset; then
2452     case $am_aux_dir in
2453     *\ * | *\ *)
2454     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2455     *)
2456     install_sh="\${SHELL} $am_aux_dir/install-sh"
2457     esac
2458     fi
2459    
2460     # Installed binaries are usually stripped using 'strip' when the user
2461     # run "make install-strip". However 'strip' might not be the right
2462     # tool to use in cross-compilation environments, therefore Automake
2463     # will honor the 'STRIP' environment variable to overrule this program.
2464     if test "$cross_compiling" != no; then
2465     if test -n "$ac_tool_prefix"; then
2466     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467     set dummy ${ac_tool_prefix}strip; ac_word=$2
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469     $as_echo_n "checking for $ac_word... " >&6; }
2470     if ${ac_cv_prog_STRIP+:} false; then :
2471     $as_echo_n "(cached) " >&6
2472 michael 5052 else
2473 michael 5059 if test -n "$STRIP"; then
2474     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2475     else
2476     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477     for as_dir in $PATH
2478     do
2479     IFS=$as_save_IFS
2480     test -z "$as_dir" && as_dir=.
2481     for ac_exec_ext in '' $ac_executable_extensions; do
2482     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2483     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485     break 2
2486     fi
2487     done
2488 michael 5052 done
2489 michael 5059 IFS=$as_save_IFS
2490    
2491     fi
2492     fi
2493     STRIP=$ac_cv_prog_STRIP
2494     if test -n "$STRIP"; then
2495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2496     $as_echo "$STRIP" >&6; }
2497     else
2498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499     $as_echo "no" >&6; }
2500     fi
2501    
2502    
2503     fi
2504     if test -z "$ac_cv_prog_STRIP"; then
2505     ac_ct_STRIP=$STRIP
2506     # Extract the first word of "strip", so it can be a program name with args.
2507     set dummy strip; ac_word=$2
2508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509     $as_echo_n "checking for $ac_word... " >&6; }
2510     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2511     $as_echo_n "(cached) " >&6
2512     else
2513     if test -n "$ac_ct_STRIP"; then
2514     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2515     else
2516     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517     for as_dir in $PATH
2518     do
2519     IFS=$as_save_IFS
2520     test -z "$as_dir" && as_dir=.
2521     for ac_exec_ext in '' $ac_executable_extensions; do
2522     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2523     ac_cv_prog_ac_ct_STRIP="strip"
2524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525     break 2
2526     fi
2527     done
2528     done
2529     IFS=$as_save_IFS
2530    
2531     fi
2532     fi
2533     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534     if test -n "$ac_ct_STRIP"; then
2535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2536     $as_echo "$ac_ct_STRIP" >&6; }
2537     else
2538     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539     $as_echo "no" >&6; }
2540     fi
2541    
2542     if test "x$ac_ct_STRIP" = x; then
2543     STRIP=":"
2544 michael 5052 else
2545 michael 5059 case $cross_compiling:$ac_tool_warned in
2546     yes:)
2547     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549     ac_tool_warned=yes ;;
2550     esac
2551     STRIP=$ac_ct_STRIP
2552 michael 5052 fi
2553 michael 5059 else
2554     STRIP="$ac_cv_prog_STRIP"
2555 michael 5052 fi
2556    
2557 michael 5059 fi
2558     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2559    
2560     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2561     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2562     if test -z "$MKDIR_P"; then
2563     if ${ac_cv_path_mkdir+:} false; then :
2564     $as_echo_n "(cached) " >&6
2565     else
2566     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2568     do
2569     IFS=$as_save_IFS
2570     test -z "$as_dir" && as_dir=.
2571     for ac_prog in mkdir gmkdir; do
2572     for ac_exec_ext in '' $ac_executable_extensions; do
2573     as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2574     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2575     'mkdir (GNU coreutils) '* | \
2576     'mkdir (coreutils) '* | \
2577     'mkdir (fileutils) '4.1*)
2578     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2579     break 3;;
2580     esac
2581     done
2582     done
2583     done
2584     IFS=$as_save_IFS
2585    
2586     fi
2587    
2588     test -d ./--version && rmdir ./--version
2589     if test "${ac_cv_path_mkdir+set}" = set; then
2590     MKDIR_P="$ac_cv_path_mkdir -p"
2591     else
2592     # As a last resort, use the slow shell script. Don't cache a
2593     # value for MKDIR_P within a source directory, because that will
2594     # break other packages using the cache if that directory is
2595     # removed, or if the value is a relative name.
2596     MKDIR_P="$ac_install_sh -d"
2597     fi
2598     fi
2599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2600     $as_echo "$MKDIR_P" >&6; }
2601    
2602 michael 5052 for ac_prog in gawk mawk nawk awk
2603     do
2604     # Extract the first word of "$ac_prog", so it can be a program name with args.
2605     set dummy $ac_prog; ac_word=$2
2606 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607     $as_echo_n "checking for $ac_word... " >&6; }
2608     if ${ac_cv_prog_AWK+:} false; then :
2609     $as_echo_n "(cached) " >&6
2610 michael 5052 else
2611     if test -n "$AWK"; then
2612     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2613     else
2614     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615     for as_dir in $PATH
2616     do
2617     IFS=$as_save_IFS
2618     test -z "$as_dir" && as_dir=.
2619 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2620     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2621 michael 5052 ac_cv_prog_AWK="$ac_prog"
2622 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 michael 5052 break 2
2624     fi
2625     done
2626 michael 5059 done
2627 michael 5052 IFS=$as_save_IFS
2628    
2629     fi
2630     fi
2631     AWK=$ac_cv_prog_AWK
2632     if test -n "$AWK"; then
2633 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2634     $as_echo "$AWK" >&6; }
2635 michael 5052 else
2636 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637     $as_echo "no" >&6; }
2638 michael 5052 fi
2639    
2640    
2641     test -n "$AWK" && break
2642     done
2643    
2644 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2645     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2646     set x ${MAKE-make}
2647     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2648     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2649     $as_echo_n "(cached) " >&6
2650 michael 5052 else
2651     cat >conftest.make <<\_ACEOF
2652     SHELL = /bin/sh
2653     all:
2654     @echo '@@@%%%=$(MAKE)=@@@%%%'
2655     _ACEOF
2656 michael 5059 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2657 michael 5052 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2658     *@@@%%%=?*=@@@%%%*)
2659     eval ac_cv_prog_make_${ac_make}_set=yes;;
2660     *)
2661     eval ac_cv_prog_make_${ac_make}_set=no;;
2662     esac
2663     rm -f conftest.make
2664     fi
2665     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2666 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2667     $as_echo "yes" >&6; }
2668 michael 5052 SET_MAKE=
2669     else
2670 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671     $as_echo "no" >&6; }
2672 michael 5052 SET_MAKE="MAKE=${MAKE-make}"
2673     fi
2674    
2675     rm -rf .tst 2>/dev/null
2676     mkdir .tst 2>/dev/null
2677     if test -d .tst; then
2678     am__leading_dot=.
2679     else
2680     am__leading_dot=_
2681     fi
2682     rmdir .tst 2>/dev/null
2683    
2684 michael 5059 # Check whether --enable-silent-rules was given.
2685     if test "${enable_silent_rules+set}" = set; then :
2686     enableval=$enable_silent_rules;
2687 michael 5052 fi
2688    
2689 michael 5059 case $enable_silent_rules in # (((
2690     yes) AM_DEFAULT_VERBOSITY=0;;
2691     no) AM_DEFAULT_VERBOSITY=1;;
2692     *) AM_DEFAULT_VERBOSITY=1;;
2693     esac
2694     am_make=${MAKE-make}
2695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2696     $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2697     if ${am_cv_make_support_nested_variables+:} false; then :
2698     $as_echo_n "(cached) " >&6
2699     else
2700     if $as_echo 'TRUE=$(BAR$(V))
2701     BAR0=false
2702     BAR1=true
2703     V=1
2704     am__doit:
2705     @$(TRUE)
2706     .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2707     am_cv_make_support_nested_variables=yes
2708     else
2709     am_cv_make_support_nested_variables=no
2710     fi
2711     fi
2712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2713     $as_echo "$am_cv_make_support_nested_variables" >&6; }
2714     if test $am_cv_make_support_nested_variables = yes; then
2715     AM_V='$(V)'
2716     AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2717     else
2718     AM_V=$AM_DEFAULT_VERBOSITY
2719     AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2720     fi
2721     AM_BACKSLASH='\'
2722    
2723     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2724     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2725     # is not polluted with repeated "-I."
2726     am__isrc=' -I$(srcdir)'
2727     # test to see if srcdir already configured
2728     if test -f $srcdir/config.status; then
2729     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2730     fi
2731     fi
2732    
2733 michael 5052 # test whether we have cygpath
2734     if test -z "$CYGPATH_W"; then
2735     if (cygpath --version) >/dev/null 2>/dev/null; then
2736     CYGPATH_W='cygpath -w'
2737     else
2738     CYGPATH_W=echo
2739     fi
2740     fi
2741    
2742    
2743     # Define the identity of the package.
2744 michael 5061 PACKAGE='hopm'
2745     VERSION='1.0.0beta1'
2746 michael 5052
2747    
2748     cat >>confdefs.h <<_ACEOF
2749     #define PACKAGE "$PACKAGE"
2750     _ACEOF
2751    
2752    
2753     cat >>confdefs.h <<_ACEOF
2754     #define VERSION "$VERSION"
2755     _ACEOF
2756    
2757     # Some tools Automake needs.
2758    
2759     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2760    
2761    
2762     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2763    
2764    
2765     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2766    
2767    
2768     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2769    
2770    
2771     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2772    
2773 michael 5059 # For better backward compatibility. To be removed once Automake 1.9.x
2774     # dies out for good. For more background, see:
2775     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2776     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2777     mkdir_p='$(MKDIR_P)'
2778 michael 5052
2779 michael 5059 # We need awk for the "check" target. The system "awk" is bad on
2780     # some platforms.
2781     # Always define AMTAR for backward compatibility. Yes, it's still used
2782     # in the wild :-( We should find a proper way to deprecate it ...
2783     AMTAR='$${TAR-tar}'
2784 michael 5052
2785    
2786 michael 5059 # We'll loop over all known methods to create a tar archive until one works.
2787     _am_tools='gnutar pax cpio none'
2788 michael 5052
2789 michael 5059 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2790 michael 5052
2791    
2792    
2793    
2794    
2795    
2796 michael 5059 # POSIX will say in a future version that running "rm -f" with no argument
2797     # is OK; and we want to be able to make that assumption in our Makefile
2798     # recipes. So use an aggressive probe to check that the usage we want is
2799     # actually supported "in the wild" to an acceptable degree.
2800     # See automake bug#10828.
2801     # To make any issue more visible, cause the running configure to be aborted
2802     # by default if the 'rm' program in use doesn't match our expectations; the
2803     # user can still override this though.
2804     if rm -f && rm -fr && rm -rf; then : OK; else
2805     cat >&2 <<'END'
2806     Oops!
2807 michael 5052
2808 michael 5059 Your 'rm' program seems unable to run without file operands specified
2809     on the command line, even when the '-f' option is present. This is contrary
2810     to the behaviour of most rm programs out there, and not conforming with
2811     the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2812 michael 5052
2813 michael 5059 Please tell bug-automake@gnu.org about your system, including the value
2814     of your $PATH and any error possibly output before this message. This
2815     can help us improve future automake versions.
2816 michael 5052
2817 michael 5059 END
2818     if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2819     echo 'Configuration will proceed anyway, since you have set the' >&2
2820     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2821     echo >&2
2822     else
2823     cat >&2 <<'END'
2824     Aborting the configuration process, to ensure you take notice of the issue.
2825 michael 5052
2826 michael 5059 You can download and install GNU coreutils to get an 'rm' implementation
2827     that behaves properly: <http://www.gnu.org/software/coreutils/>.
2828 michael 5052
2829 michael 5059 If you want to complete the configuration process using your problematic
2830     'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2831     to "yes", and re-run configure.
2832 michael 5052
2833 michael 5059 END
2834     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2835     fi
2836     fi
2837    
2838    
2839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2840     $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2841 michael 5052 # Check whether --enable-maintainer-mode was given.
2842 michael 5059 if test "${enable_maintainer_mode+set}" = set; then :
2843 michael 5052 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2844     else
2845     USE_MAINTAINER_MODE=no
2846     fi
2847    
2848 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2849     $as_echo "$USE_MAINTAINER_MODE" >&6; }
2850     if test $USE_MAINTAINER_MODE = yes; then
2851 michael 5052 MAINTAINER_MODE_TRUE=
2852     MAINTAINER_MODE_FALSE='#'
2853     else
2854     MAINTAINER_MODE_TRUE='#'
2855     MAINTAINER_MODE_FALSE=
2856     fi
2857    
2858     MAINT=$MAINTAINER_MODE_TRUE
2859    
2860    
2861    
2862    
2863     # Check whether --with-extra-fascism was given.
2864 michael 5059 if test "${with_extra_fascism+set}" = set; then :
2865 michael 5052 withval=$with_extra_fascism; CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
2866     fi
2867    
2868    
2869    
2870    
2871    
2872 michael 5059 DEPDIR="${am__leading_dot}deps"
2873    
2874     ac_config_commands="$ac_config_commands depfiles"
2875    
2876    
2877     am_make=${MAKE-make}
2878     cat > confinc << 'END'
2879     am__doit:
2880     @echo this is the am__doit target
2881     .PHONY: am__doit
2882     END
2883     # If we don't find an include directive, just comment out the code.
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2885     $as_echo_n "checking for style of include used by $am_make... " >&6; }
2886     am__include="#"
2887     am__quote=
2888     _am_result=none
2889     # First try GNU make style include.
2890     echo "include confinc" > confmf
2891     # Ignore all kinds of additional output from 'make'.
2892     case `$am_make -s -f confmf 2> /dev/null` in #(
2893     *the\ am__doit\ target*)
2894     am__include=include
2895     am__quote=
2896     _am_result=GNU
2897     ;;
2898     esac
2899     # Now try BSD make style include.
2900     if test "$am__include" = "#"; then
2901     echo '.include "confinc"' > confmf
2902     case `$am_make -s -f confmf 2> /dev/null` in #(
2903     *the\ am__doit\ target*)
2904     am__include=.include
2905     am__quote="\""
2906     _am_result=BSD
2907     ;;
2908     esac
2909     fi
2910    
2911    
2912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2913     $as_echo "$_am_result" >&6; }
2914     rm -f confinc confmf
2915    
2916     # Check whether --enable-dependency-tracking was given.
2917     if test "${enable_dependency_tracking+set}" = set; then :
2918     enableval=$enable_dependency_tracking;
2919     fi
2920    
2921     if test "x$enable_dependency_tracking" != xno; then
2922     am_depcomp="$ac_aux_dir/depcomp"
2923     AMDEPBACKSLASH='\'
2924     am__nodep='_no'
2925     fi
2926     if test "x$enable_dependency_tracking" != xno; then
2927     AMDEP_TRUE=
2928     AMDEP_FALSE='#'
2929     else
2930     AMDEP_TRUE='#'
2931     AMDEP_FALSE=
2932     fi
2933    
2934    
2935 michael 5052 ac_ext=c
2936     ac_cpp='$CPP $CPPFLAGS'
2937     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2938     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2939     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2940     if test -n "$ac_tool_prefix"; then
2941     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2942     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2943 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944     $as_echo_n "checking for $ac_word... " >&6; }
2945     if ${ac_cv_prog_CC+:} false; then :
2946     $as_echo_n "(cached) " >&6
2947 michael 5052 else
2948     if test -n "$CC"; then
2949     ac_cv_prog_CC="$CC" # Let the user override the test.
2950     else
2951     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952     for as_dir in $PATH
2953     do
2954     IFS=$as_save_IFS
2955     test -z "$as_dir" && as_dir=.
2956 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2957     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2959 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 michael 5052 break 2
2961     fi
2962     done
2963 michael 5059 done
2964 michael 5052 IFS=$as_save_IFS
2965    
2966     fi
2967     fi
2968     CC=$ac_cv_prog_CC
2969     if test -n "$CC"; then
2970 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971     $as_echo "$CC" >&6; }
2972 michael 5052 else
2973 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974     $as_echo "no" >&6; }
2975 michael 5052 fi
2976    
2977    
2978     fi
2979     if test -z "$ac_cv_prog_CC"; then
2980     ac_ct_CC=$CC
2981     # Extract the first word of "gcc", so it can be a program name with args.
2982     set dummy gcc; ac_word=$2
2983 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984     $as_echo_n "checking for $ac_word... " >&6; }
2985     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986     $as_echo_n "(cached) " >&6
2987 michael 5052 else
2988     if test -n "$ac_ct_CC"; then
2989     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990     else
2991     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992     for as_dir in $PATH
2993     do
2994     IFS=$as_save_IFS
2995     test -z "$as_dir" && as_dir=.
2996 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
2997     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 michael 5052 ac_cv_prog_ac_ct_CC="gcc"
2999 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 michael 5052 break 2
3001     fi
3002     done
3003 michael 5059 done
3004 michael 5052 IFS=$as_save_IFS
3005    
3006     fi
3007     fi
3008     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009     if test -n "$ac_ct_CC"; then
3010 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011     $as_echo "$ac_ct_CC" >&6; }
3012 michael 5052 else
3013 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014     $as_echo "no" >&6; }
3015 michael 5052 fi
3016    
3017     if test "x$ac_ct_CC" = x; then
3018     CC=""
3019     else
3020     case $cross_compiling:$ac_tool_warned in
3021     yes:)
3022 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3023     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3024 michael 5052 ac_tool_warned=yes ;;
3025     esac
3026     CC=$ac_ct_CC
3027     fi
3028     else
3029     CC="$ac_cv_prog_CC"
3030     fi
3031    
3032     if test -z "$CC"; then
3033     if test -n "$ac_tool_prefix"; then
3034     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3035     set dummy ${ac_tool_prefix}cc; ac_word=$2
3036 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037     $as_echo_n "checking for $ac_word... " >&6; }
3038     if ${ac_cv_prog_CC+:} false; then :
3039     $as_echo_n "(cached) " >&6
3040 michael 5052 else
3041     if test -n "$CC"; then
3042     ac_cv_prog_CC="$CC" # Let the user override the test.
3043     else
3044     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045     for as_dir in $PATH
3046     do
3047     IFS=$as_save_IFS
3048     test -z "$as_dir" && as_dir=.
3049 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3050     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 michael 5052 ac_cv_prog_CC="${ac_tool_prefix}cc"
3052 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 michael 5052 break 2
3054     fi
3055     done
3056 michael 5059 done
3057 michael 5052 IFS=$as_save_IFS
3058    
3059     fi
3060     fi
3061     CC=$ac_cv_prog_CC
3062     if test -n "$CC"; then
3063 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3064     $as_echo "$CC" >&6; }
3065 michael 5052 else
3066 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067     $as_echo "no" >&6; }
3068 michael 5052 fi
3069    
3070    
3071     fi
3072     fi
3073     if test -z "$CC"; then
3074     # Extract the first word of "cc", so it can be a program name with args.
3075     set dummy cc; ac_word=$2
3076 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077     $as_echo_n "checking for $ac_word... " >&6; }
3078     if ${ac_cv_prog_CC+:} false; then :
3079     $as_echo_n "(cached) " >&6
3080 michael 5052 else
3081     if test -n "$CC"; then
3082     ac_cv_prog_CC="$CC" # Let the user override the test.
3083     else
3084     ac_prog_rejected=no
3085     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086     for as_dir in $PATH
3087     do
3088     IFS=$as_save_IFS
3089     test -z "$as_dir" && as_dir=.
3090 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3091     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 michael 5052 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3093     ac_prog_rejected=yes
3094     continue
3095     fi
3096     ac_cv_prog_CC="cc"
3097 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 michael 5052 break 2
3099     fi
3100     done
3101 michael 5059 done
3102 michael 5052 IFS=$as_save_IFS
3103    
3104     if test $ac_prog_rejected = yes; then
3105     # We found a bogon in the path, so make sure we never use it.
3106     set dummy $ac_cv_prog_CC
3107     shift
3108     if test $# != 0; then
3109     # We chose a different compiler from the bogus one.
3110     # However, it has the same basename, so the bogon will be chosen
3111     # first if we set CC to just the basename; use the full file name.
3112     shift
3113     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3114     fi
3115     fi
3116     fi
3117     fi
3118     CC=$ac_cv_prog_CC
3119     if test -n "$CC"; then
3120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121     $as_echo "$CC" >&6; }
3122 michael 5052 else
3123 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124     $as_echo "no" >&6; }
3125 michael 5052 fi
3126    
3127    
3128     fi
3129     if test -z "$CC"; then
3130     if test -n "$ac_tool_prefix"; then
3131     for ac_prog in cl.exe
3132     do
3133     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136     $as_echo_n "checking for $ac_word... " >&6; }
3137     if ${ac_cv_prog_CC+:} false; then :
3138     $as_echo_n "(cached) " >&6
3139 michael 5052 else
3140     if test -n "$CC"; then
3141     ac_cv_prog_CC="$CC" # Let the user override the test.
3142     else
3143     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144     for as_dir in $PATH
3145     do
3146     IFS=$as_save_IFS
3147     test -z "$as_dir" && as_dir=.
3148 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3149     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 michael 5052 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3151 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 michael 5052 break 2
3153     fi
3154     done
3155 michael 5059 done
3156 michael 5052 IFS=$as_save_IFS
3157    
3158     fi
3159     fi
3160     CC=$ac_cv_prog_CC
3161     if test -n "$CC"; then
3162 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163     $as_echo "$CC" >&6; }
3164 michael 5052 else
3165 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166     $as_echo "no" >&6; }
3167 michael 5052 fi
3168    
3169    
3170     test -n "$CC" && break
3171     done
3172     fi
3173     if test -z "$CC"; then
3174     ac_ct_CC=$CC
3175     for ac_prog in cl.exe
3176     do
3177     # Extract the first word of "$ac_prog", so it can be a program name with args.
3178     set dummy $ac_prog; ac_word=$2
3179 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180     $as_echo_n "checking for $ac_word... " >&6; }
3181     if ${ac_cv_prog_ac_ct_CC+:} false; then :
3182     $as_echo_n "(cached) " >&6
3183 michael 5052 else
3184     if test -n "$ac_ct_CC"; then
3185     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186     else
3187     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188     for as_dir in $PATH
3189     do
3190     IFS=$as_save_IFS
3191     test -z "$as_dir" && as_dir=.
3192 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
3193     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 michael 5052 ac_cv_prog_ac_ct_CC="$ac_prog"
3195 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 michael 5052 break 2
3197     fi
3198     done
3199 michael 5059 done
3200 michael 5052 IFS=$as_save_IFS
3201    
3202     fi
3203     fi
3204     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3205     if test -n "$ac_ct_CC"; then
3206 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3207     $as_echo "$ac_ct_CC" >&6; }
3208 michael 5052 else
3209 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210     $as_echo "no" >&6; }
3211 michael 5052 fi
3212    
3213    
3214     test -n "$ac_ct_CC" && break
3215     done
3216    
3217     if test "x$ac_ct_CC" = x; then
3218     CC=""
3219     else
3220     case $cross_compiling:$ac_tool_warned in
3221     yes:)
3222 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224 michael 5052 ac_tool_warned=yes ;;
3225     esac
3226     CC=$ac_ct_CC
3227     fi
3228     fi
3229    
3230     fi
3231    
3232    
3233 michael 5059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235     as_fn_error $? "no acceptable C compiler found in \$PATH
3236     See \`config.log' for more details" "$LINENO" 5; }
3237 michael 5052
3238     # Provide some information about the compiler.
3239 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3240     set X $ac_compile
3241     ac_compiler=$2
3242     for ac_option in --version -v -V -qversion; do
3243     { { ac_try="$ac_compiler $ac_option >&5"
3244 michael 5052 case "(($ac_try" in
3245     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246     *) ac_try_echo=$ac_try;;
3247     esac
3248 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249     $as_echo "$ac_try_echo"; } >&5
3250     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251 michael 5052 ac_status=$?
3252 michael 5059 if test -s conftest.err; then
3253     sed '10a\
3254     ... rest of stderr output deleted ...
3255     10q' conftest.err >conftest.er1
3256     cat conftest.er1 >&5
3257     fi
3258     rm -f conftest.er1 conftest.err
3259     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260     test $ac_status = 0; }
3261     done
3262 michael 5052
3263 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 michael 5052 /* end confdefs.h. */
3265    
3266     int
3267     main ()
3268     {
3269    
3270     ;
3271     return 0;
3272     }
3273     _ACEOF
3274     ac_clean_files_save=$ac_clean_files
3275 michael 5059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3276 michael 5052 # Try to create an executable without -o first, disregard a.out.
3277     # It will help us diagnose broken compilers, and finding out an intuition
3278     # of exeext.
3279 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3280     $as_echo_n "checking whether the C compiler works... " >&6; }
3281     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282    
3283     # The possible output files:
3284     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3285    
3286 michael 5052 ac_rmfiles=
3287     for ac_file in $ac_files
3288     do
3289     case $ac_file in
3290 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3291 michael 5052 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3292     esac
3293     done
3294     rm -f $ac_rmfiles
3295    
3296 michael 5059 if { { ac_try="$ac_link_default"
3297 michael 5052 case "(($ac_try" in
3298     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299     *) ac_try_echo=$ac_try;;
3300     esac
3301 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302     $as_echo "$ac_try_echo"; } >&5
3303 michael 5052 (eval "$ac_link_default") 2>&5
3304     ac_status=$?
3305 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306     test $ac_status = 0; }; then :
3307 michael 5052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3308     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3309     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3310     # so that the user can short-circuit this test for compilers unknown to
3311     # Autoconf.
3312 michael 5059 for ac_file in $ac_files ''
3313 michael 5052 do
3314     test -f "$ac_file" || continue
3315     case $ac_file in
3316 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3317 michael 5052 ;;
3318     [ab].out )
3319     # We found the default executable, but exeext='' is most
3320     # certainly right.
3321     break;;
3322     *.* )
3323 michael 5059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324 michael 5052 then :; else
3325     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326     fi
3327     # We set ac_cv_exeext here because the later test for it is not
3328     # safe: cross compilers may not add the suffix if given an `-o'
3329     # argument, so we may need to know it at that point already.
3330     # Even if this section looks crufty: it has the advantage of
3331     # actually working.
3332     break;;
3333     * )
3334     break;;
3335     esac
3336     done
3337     test "$ac_cv_exeext" = no && ac_cv_exeext=
3338    
3339     else
3340 michael 5059 ac_file=''
3341     fi
3342     if test -z "$ac_file"; then :
3343     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344     $as_echo "no" >&6; }
3345     $as_echo "$as_me: failed program was:" >&5
3346 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3347    
3348 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350     as_fn_error 77 "C compiler cannot create executables
3351     See \`config.log' for more details" "$LINENO" 5; }
3352     else
3353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3354     $as_echo "yes" >&6; }
3355 michael 5052 fi
3356 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3357     $as_echo_n "checking for C compiler default output file name... " >&6; }
3358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3359     $as_echo "$ac_file" >&6; }
3360 michael 5052 ac_exeext=$ac_cv_exeext
3361    
3362 michael 5059 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3363 michael 5052 ac_clean_files=$ac_clean_files_save
3364 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3365     $as_echo_n "checking for suffix of executables... " >&6; }
3366     if { { ac_try="$ac_link"
3367 michael 5052 case "(($ac_try" in
3368     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369     *) ac_try_echo=$ac_try;;
3370     esac
3371 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372     $as_echo "$ac_try_echo"; } >&5
3373 michael 5052 (eval "$ac_link") 2>&5
3374     ac_status=$?
3375 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376     test $ac_status = 0; }; then :
3377 michael 5052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3378     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3379     # work properly (i.e., refer to `conftest.exe'), while it won't with
3380     # `rm'.
3381     for ac_file in conftest.exe conftest conftest.*; do
3382     test -f "$ac_file" || continue
3383     case $ac_file in
3384 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3385 michael 5052 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3386     break;;
3387     * ) break;;
3388     esac
3389     done
3390     else
3391 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3394     See \`config.log' for more details" "$LINENO" 5; }
3395 michael 5052 fi
3396 michael 5059 rm -f conftest conftest$ac_cv_exeext
3397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3398     $as_echo "$ac_cv_exeext" >&6; }
3399 michael 5052
3400     rm -f conftest.$ac_ext
3401     EXEEXT=$ac_cv_exeext
3402     ac_exeext=$EXEEXT
3403 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404     /* end confdefs.h. */
3405     #include <stdio.h>
3406     int
3407     main ()
3408     {
3409     FILE *f = fopen ("conftest.out", "w");
3410     return ferror (f) || fclose (f) != 0;
3411    
3412     ;
3413     return 0;
3414     }
3415     _ACEOF
3416     ac_clean_files="$ac_clean_files conftest.out"
3417     # Check that the compiler produces executables we can run. If not, either
3418     # the compiler is broken, or we cross compile.
3419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3420     $as_echo_n "checking whether we are cross compiling... " >&6; }
3421     if test "$cross_compiling" != yes; then
3422     { { ac_try="$ac_link"
3423     case "(($ac_try" in
3424     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425     *) ac_try_echo=$ac_try;;
3426     esac
3427     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428     $as_echo "$ac_try_echo"; } >&5
3429     (eval "$ac_link") 2>&5
3430     ac_status=$?
3431     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3432     test $ac_status = 0; }
3433     if { ac_try='./conftest$ac_cv_exeext'
3434     { { case "(($ac_try" in
3435     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436     *) ac_try_echo=$ac_try;;
3437     esac
3438     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439     $as_echo "$ac_try_echo"; } >&5
3440     (eval "$ac_try") 2>&5
3441     ac_status=$?
3442     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443     test $ac_status = 0; }; }; then
3444     cross_compiling=no
3445     else
3446     if test "$cross_compiling" = maybe; then
3447     cross_compiling=yes
3448     else
3449     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451     as_fn_error $? "cannot run C compiled programs.
3452     If you meant to cross compile, use \`--host'.
3453     See \`config.log' for more details" "$LINENO" 5; }
3454     fi
3455     fi
3456     fi
3457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3458     $as_echo "$cross_compiling" >&6; }
3459    
3460     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3461     ac_clean_files=$ac_clean_files_save
3462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3463     $as_echo_n "checking for suffix of object files... " >&6; }
3464     if ${ac_cv_objext+:} false; then :
3465     $as_echo_n "(cached) " >&6
3466 michael 5052 else
3467 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 michael 5052 /* end confdefs.h. */
3469    
3470     int
3471     main ()
3472     {
3473    
3474     ;
3475     return 0;
3476     }
3477     _ACEOF
3478     rm -f conftest.o conftest.obj
3479 michael 5059 if { { ac_try="$ac_compile"
3480 michael 5052 case "(($ac_try" in
3481     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482     *) ac_try_echo=$ac_try;;
3483     esac
3484 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485     $as_echo "$ac_try_echo"; } >&5
3486 michael 5052 (eval "$ac_compile") 2>&5
3487     ac_status=$?
3488 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489     test $ac_status = 0; }; then :
3490 michael 5052 for ac_file in conftest.o conftest.obj conftest.*; do
3491     test -f "$ac_file" || continue;
3492     case $ac_file in
3493 michael 5059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3494 michael 5052 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3495     break;;
3496     esac
3497     done
3498     else
3499 michael 5059 $as_echo "$as_me: failed program was:" >&5
3500 michael 5052 sed 's/^/| /' conftest.$ac_ext >&5
3501    
3502 michael 5059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504     as_fn_error $? "cannot compute suffix of object files: cannot compile
3505     See \`config.log' for more details" "$LINENO" 5; }
3506 michael 5052 fi
3507     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508     fi
3509 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3510     $as_echo "$ac_cv_objext" >&6; }
3511 michael 5052 OBJEXT=$ac_cv_objext
3512     ac_objext=$OBJEXT
3513 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3514     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3515     if ${ac_cv_c_compiler_gnu+:} false; then :
3516     $as_echo_n "(cached) " >&6
3517 michael 5052 else
3518 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 michael 5052 /* end confdefs.h. */
3520    
3521     int
3522     main ()
3523     {
3524     #ifndef __GNUC__
3525     choke me
3526     #endif
3527    
3528     ;
3529     return 0;
3530     }
3531     _ACEOF
3532 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3533 michael 5052 ac_compiler_gnu=yes
3534     else
3535 michael 5059 ac_compiler_gnu=no
3536 michael 5052 fi
3537     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3539    
3540     fi
3541 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3542     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3543     if test $ac_compiler_gnu = yes; then
3544     GCC=yes
3545     else
3546     GCC=
3547     fi
3548 michael 5052 ac_test_CFLAGS=${CFLAGS+set}
3549     ac_save_CFLAGS=$CFLAGS
3550 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3551     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3552     if ${ac_cv_prog_cc_g+:} false; then :
3553     $as_echo_n "(cached) " >&6
3554 michael 5052 else
3555     ac_save_c_werror_flag=$ac_c_werror_flag
3556     ac_c_werror_flag=yes
3557     ac_cv_prog_cc_g=no
3558     CFLAGS="-g"
3559 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 michael 5052 /* end confdefs.h. */
3561    
3562     int
3563     main ()
3564     {
3565    
3566     ;
3567     return 0;
3568     }
3569     _ACEOF
3570 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3571 michael 5052 ac_cv_prog_cc_g=yes
3572     else
3573 michael 5059 CFLAGS=""
3574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 michael 5052 /* end confdefs.h. */
3576    
3577     int
3578     main ()
3579     {
3580    
3581     ;
3582     return 0;
3583     }
3584     _ACEOF
3585 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3586    
3587 michael 5052 else
3588 michael 5059 ac_c_werror_flag=$ac_save_c_werror_flag
3589 michael 5052 CFLAGS="-g"
3590 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 michael 5052 /* end confdefs.h. */
3592    
3593     int
3594     main ()
3595     {
3596    
3597     ;
3598     return 0;
3599     }
3600     _ACEOF
3601 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3602 michael 5052 ac_cv_prog_cc_g=yes
3603     fi
3604     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605     fi
3606     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607     fi
3608     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609     ac_c_werror_flag=$ac_save_c_werror_flag
3610     fi
3611 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3612     $as_echo "$ac_cv_prog_cc_g" >&6; }
3613 michael 5052 if test "$ac_test_CFLAGS" = set; then
3614     CFLAGS=$ac_save_CFLAGS
3615     elif test $ac_cv_prog_cc_g = yes; then
3616     if test "$GCC" = yes; then
3617     CFLAGS="-g -O2"
3618     else
3619     CFLAGS="-g"
3620     fi
3621     else
3622     if test "$GCC" = yes; then
3623     CFLAGS="-O2"
3624     else
3625     CFLAGS=
3626     fi
3627     fi
3628 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3629     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3630     if ${ac_cv_prog_cc_c89+:} false; then :
3631     $as_echo_n "(cached) " >&6
3632 michael 5052 else
3633     ac_cv_prog_cc_c89=no
3634     ac_save_CC=$CC
3635 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 michael 5052 /* end confdefs.h. */
3637     #include <stdarg.h>
3638     #include <stdio.h>
3639 michael 5059 struct stat;
3640 michael 5052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3641     struct buf { int x; };
3642     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3643     static char *e (p, i)
3644     char **p;
3645     int i;
3646     {
3647     return p[i];
3648     }
3649     static char *f (char * (*g) (char **, int), char **p, ...)
3650     {
3651     char *s;
3652     va_list v;
3653     va_start (v,p);
3654     s = g (p, va_arg (v,int));
3655     va_end (v);
3656     return s;
3657     }
3658    
3659     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3660     function prototypes and stuff, but not '\xHH' hex character constants.
3661     These don't provoke an error unfortunately, instead are silently treated
3662     as 'x'. The following induces an error, until -std is added to get
3663     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3664     array size at least. It's necessary to write '\x00'==0 to get something
3665     that's true only with -std. */
3666     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667    
3668     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3669     inside strings and character constants. */
3670     #define FOO(x) 'x'
3671     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672    
3673     int test (int i, double x);
3674     struct s1 {int (*f) (int a);};
3675     struct s2 {int (*f) (double a);};
3676     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3677     int argc;
3678     char **argv;
3679     int
3680     main ()
3681     {
3682     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3683     ;
3684     return 0;
3685     }
3686     _ACEOF
3687     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3688     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689     do
3690     CC="$ac_save_CC $ac_arg"
3691 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
3692 michael 5052 ac_cv_prog_cc_c89=$ac_arg
3693     fi
3694     rm -f core conftest.err conftest.$ac_objext
3695     test "x$ac_cv_prog_cc_c89" != "xno" && break
3696     done
3697     rm -f conftest.$ac_ext
3698     CC=$ac_save_CC
3699    
3700     fi
3701     # AC_CACHE_VAL
3702     case "x$ac_cv_prog_cc_c89" in
3703     x)
3704 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3705     $as_echo "none needed" >&6; } ;;
3706 michael 5052 xno)
3707 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3708     $as_echo "unsupported" >&6; } ;;
3709 michael 5052 *)
3710     CC="$CC $ac_cv_prog_cc_c89"
3711 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3712     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713 michael 5052 esac
3714 michael 5059 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715 michael 5052
3716 michael 5059 fi
3717 michael 5052
3718     ac_ext=c
3719     ac_cpp='$CPP $CPPFLAGS'
3720     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723    
3724 michael 5059 ac_ext=c
3725     ac_cpp='$CPP $CPPFLAGS'
3726     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3730     $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3731     if ${am_cv_prog_cc_c_o+:} false; then :
3732     $as_echo_n "(cached) " >&6
3733     else
3734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735     /* end confdefs.h. */
3736 michael 5052
3737 michael 5059 int
3738     main ()
3739     {
3740 michael 5052
3741 michael 5059 ;
3742     return 0;
3743     }
3744     _ACEOF
3745     # Make sure it works both with $CC and with simple cc.
3746     # Following AC_PROG_CC_C_O, we do the test twice because some
3747     # compilers refuse to overwrite an existing .o file with -o,
3748     # though they will create one.
3749     am_cv_prog_cc_c_o=yes
3750     for am_i in 1 2; do
3751     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3752     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3753     ac_status=$?
3754     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755     (exit $ac_status); } \
3756     && test -f conftest2.$ac_objext; then
3757     : OK
3758     else
3759     am_cv_prog_cc_c_o=no
3760     break
3761     fi
3762     done
3763     rm -f core conftest*
3764     unset am_i
3765 michael 5052 fi
3766 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3767     $as_echo "$am_cv_prog_cc_c_o" >&6; }
3768     if test "$am_cv_prog_cc_c_o" != yes; then
3769     # Losing compiler, so override with the script.
3770     # FIXME: It is wrong to rewrite CC.
3771     # But if we don't then we get into trouble of one sort or another.
3772     # A longer-term fix would be to have automake use am__CC in this case,
3773     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3774     CC="$am_aux_dir/compile $CC"
3775 michael 5052 fi
3776 michael 5059 ac_ext=c
3777     ac_cpp='$CPP $CPPFLAGS'
3778     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 michael 5052
3782    
3783     depcc="$CC" am_compiler_list=
3784    
3785 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786     $as_echo_n "checking dependency style of $depcc... " >&6; }
3787     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3788     $as_echo_n "(cached) " >&6
3789 michael 5052 else
3790     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791     # We make a subdir and do the tests there. Otherwise we can end up
3792     # making bogus files that we don't know about and never remove. For
3793     # instance it was reported that on HP-UX the gcc test will end up
3794 michael 5059 # making a dummy file named 'D' -- because '-MD' means "put the output
3795     # in D".
3796     rm -rf conftest.dir
3797 michael 5052 mkdir conftest.dir
3798     # Copy depcomp to subdir because otherwise we won't find it if we're
3799     # using a relative directory.
3800     cp "$am_depcomp" conftest.dir
3801     cd conftest.dir
3802     # We will build objects and dependencies in a subdirectory because
3803     # it helps to detect inapplicable dependency modes. For instance
3804     # both Tru64's cc and ICC support -MD to output dependencies as a
3805     # side effect of compilation, but ICC will put the dependencies in
3806     # the current directory while Tru64 will put them in the object
3807     # directory.
3808     mkdir sub
3809    
3810     am_cv_CC_dependencies_compiler_type=none
3811     if test "$am_compiler_list" = ""; then
3812     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813     fi
3814 michael 5059 am__universal=false
3815     case " $depcc " in #(
3816     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817     esac
3818    
3819 michael 5052 for depmode in $am_compiler_list; do
3820     # Setup a source with many dependencies, because some compilers
3821     # like to wrap large dependency lists on column 80 (with \), and
3822     # we should not choose a depcomp mode which is confused by this.
3823     #
3824     # We need to recreate these files for each test, as the compiler may
3825     # overwrite some of them when testing with obscure command lines.
3826     # This happens at least with the AIX C compiler.
3827     : > sub/conftest.c
3828     for i in 1 2 3 4 5 6; do
3829     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830 michael 5059 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3831     # Solaris 10 /bin/sh.
3832     echo '/* dummy */' > sub/conftst$i.h
3833 michael 5052 done
3834     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835    
3836 michael 5059 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3837     # mode. It turns out that the SunPro C++ compiler does not properly
3838     # handle '-M -o', and we need to detect this. Also, some Intel
3839     # versions had trouble with output in subdirs.
3840     am__obj=sub/conftest.${OBJEXT-o}
3841     am__minus_obj="-o $am__obj"
3842 michael 5052 case $depmode in
3843 michael 5059 gcc)
3844     # This depmode causes a compiler race in universal mode.
3845     test "$am__universal" = false || continue
3846     ;;
3847 michael 5052 nosideeffect)
3848 michael 5059 # After this tag, mechanisms are not by side-effect, so they'll
3849     # only be used when explicitly requested.
3850 michael 5052 if test "x$enable_dependency_tracking" = xyes; then
3851     continue
3852     else
3853     break
3854     fi
3855     ;;
3856 michael 5059 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3857     # This compiler won't grok '-c -o', but also, the minuso test has
3858     # not run yet. These depmodes are late enough in the game, and
3859     # so weak that their functioning should not be impacted.
3860     am__obj=conftest.${OBJEXT-o}
3861     am__minus_obj=
3862     ;;
3863 michael 5052 none) break ;;
3864     esac
3865     if depmode=$depmode \
3866 michael 5059 source=sub/conftest.c object=$am__obj \
3867 michael 5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3868 michael 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3869 michael 5052 >/dev/null 2>conftest.err &&
3870 michael 5059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3871 michael 5052 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872 michael 5059 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3873 michael 5052 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874     # icc doesn't choke on unknown options, it will just issue warnings
3875     # or remarks (even with -Werror). So we grep stderr for any message
3876     # that says an option was ignored or not supported.
3877     # When given -MP, icc 7.0 and 7.1 complain thusly:
3878     # icc: Command line warning: ignoring option '-M'; no argument required
3879     # The diagnosis changed in icc 8.0:
3880     # icc: Command line remark: option '-MP' not supported
3881     if (grep 'ignoring option' conftest.err ||
3882     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883     am_cv_CC_dependencies_compiler_type=$depmode
3884     break
3885     fi
3886     fi
3887     done
3888    
3889     cd ..
3890     rm -rf conftest.dir
3891     else
3892     am_cv_CC_dependencies_compiler_type=none
3893     fi
3894    
3895     fi
3896 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3897     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3898 michael 5052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899    
3900 michael 5059 if
3901 michael 5052 test "x$enable_dependency_tracking" != xno \
3902     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903     am__fastdepCC_TRUE=
3904     am__fastdepCC_FALSE='#'
3905     else
3906     am__fastdepCC_TRUE='#'
3907     am__fastdepCC_FALSE=
3908     fi
3909    
3910    
3911 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3912     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3913     if ${ac_cv_prog_cc_c99+:} false; then :
3914     $as_echo_n "(cached) " >&6
3915 michael 5052 else
3916 michael 5059 ac_cv_prog_cc_c99=no
3917     ac_save_CC=$CC
3918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919     /* end confdefs.h. */
3920     #include <stdarg.h>
3921     #include <stdbool.h>
3922     #include <stdlib.h>
3923     #include <wchar.h>
3924     #include <stdio.h>
3925    
3926     // Check varargs macros. These examples are taken from C99 6.10.3.5.
3927     #define debug(...) fprintf (stderr, __VA_ARGS__)
3928     #define showlist(...) puts (#__VA_ARGS__)
3929     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3930     static void
3931     test_varargs_macros (void)
3932     {
3933     int x = 1234;
3934     int y = 5678;
3935     debug ("Flag");
3936     debug ("X = %d\n", x);
3937     showlist (The first, second, and third items.);
3938     report (x>y, "x is %d but y is %d", x, y);
3939     }
3940    
3941     // Check long long types.
3942     #define BIG64 18446744073709551615ull
3943     #define BIG32 4294967295ul
3944     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3945     #if !BIG_OK
3946     your preprocessor is broken;
3947     #endif
3948     #if BIG_OK
3949     #else
3950     your preprocessor is broken;
3951     #endif
3952     static long long int bignum = -9223372036854775807LL;
3953     static unsigned long long int ubignum = BIG64;
3954    
3955     struct incomplete_array
3956     {
3957     int datasize;
3958     double data[];
3959     };
3960    
3961     struct named_init {
3962     int number;
3963     const wchar_t *name;
3964     double average;
3965     };
3966    
3967     typedef const char *ccp;
3968    
3969     static inline int
3970     test_restrict (ccp restrict text)
3971     {
3972     // See if C++-style comments work.
3973     // Iterate through items via the restricted pointer.
3974     // Also check for declarations in for loops.
3975     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3976     continue;
3977     return 0;
3978     }
3979    
3980     // Check varargs and va_copy.
3981     static void
3982     test_varargs (const char *format, ...)
3983     {
3984     va_list args;
3985     va_start (args, format);
3986     va_list args_copy;
3987     va_copy (args_copy, args);
3988    
3989     const char *str;
3990     int number;
3991     float fnumber;
3992    
3993     while (*format)
3994     {
3995     switch (*format++)
3996     {
3997     case 's': // string
3998     str = va_arg (args_copy, const char *);
3999     break;
4000     case 'd': // int
4001     number = va_arg (args_copy, int);
4002     break;
4003     case 'f': // float
4004     fnumber = va_arg (args_copy, double);
4005     break;
4006     default:
4007     break;
4008     }
4009     }
4010     va_end (args_copy);
4011     va_end (args);
4012     }
4013    
4014     int
4015     main ()
4016     {
4017    
4018     // Check bool.
4019     _Bool success = false;
4020    
4021     // Check restrict.
4022     if (test_restrict ("String literal") == 0)
4023     success = true;
4024     char *restrict newvar = "Another string";
4025    
4026     // Check varargs.
4027     test_varargs ("s, d' f .", "string", 65, 34.234);
4028     test_varargs_macros ();
4029    
4030     // Check flexible array members.
4031     struct incomplete_array *ia =
4032     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4033     ia->datasize = 10;
4034     for (int i = 0; i < ia->datasize; ++i)
4035     ia->data[i] = i * 1.234;
4036    
4037     // Check named initializers.
4038     struct named_init ni = {
4039     .number = 34,
4040     .name = L"Test wide string",
4041     .average = 543.34343,
4042     };
4043    
4044     ni.number = 58;
4045    
4046     int dynamic_array[ni.number];
4047     dynamic_array[ni.number - 1] = 543;
4048    
4049     // work around unused variable warnings
4050     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4051     || dynamic_array[ni.number - 1] != 543);
4052    
4053     ;
4054     return 0;
4055     }
4056     _ACEOF
4057     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4058     do
4059     CC="$ac_save_CC $ac_arg"
4060     if ac_fn_c_try_compile "$LINENO"; then :
4061     ac_cv_prog_cc_c99=$ac_arg
4062 michael 5052 fi
4063 michael 5059 rm -f core conftest.err conftest.$ac_objext
4064     test "x$ac_cv_prog_cc_c99" != "xno" && break
4065     done
4066     rm -f conftest.$ac_ext
4067     CC=$ac_save_CC
4068 michael 5052
4069 michael 5059 fi
4070     # AC_CACHE_VAL
4071     case "x$ac_cv_prog_cc_c99" in
4072     x)
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4074     $as_echo "none needed" >&6; } ;;
4075     xno)
4076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4077     $as_echo "unsupported" >&6; } ;;
4078     *)
4079     CC="$CC $ac_cv_prog_cc_c99"
4080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4081     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4082     esac
4083     if test "x$ac_cv_prog_cc_c99" != xno; then :
4084 michael 5052
4085     fi
4086    
4087    
4088 michael 5059 if test "$ac_cv_prog_cc_c99" = "no"; then :
4089     as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4090 michael 5052 fi
4091 michael 5059 case `pwd` in
4092     *\ * | *\ *)
4093     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4094     $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4095     esac
4096 michael 5052
4097    
4098 michael 5059
4099     macro_version='2.4.4'
4100     macro_revision='2.4.4'
4101    
4102    
4103    
4104    
4105    
4106    
4107    
4108    
4109    
4110    
4111    
4112    
4113    
4114     ltmain=$ac_aux_dir/ltmain.sh
4115    
4116 michael 5052 # Make sure we can run config.sub.
4117     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4118 michael 5059 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4119 michael 5052
4120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4121     $as_echo_n "checking build system type... " >&6; }
4122     if ${ac_cv_build+:} false; then :
4123     $as_echo_n "(cached) " >&6
4124 michael 5052 else
4125     ac_build_alias=$build_alias
4126     test "x$ac_build_alias" = x &&
4127     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4128     test "x$ac_build_alias" = x &&
4129 michael 5059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4130 michael 5052 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4131 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4132 michael 5052
4133     fi
4134 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4135     $as_echo "$ac_cv_build" >&6; }
4136 michael 5052 case $ac_cv_build in
4137     *-*-*) ;;
4138 michael 5059 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4139 michael 5052 esac
4140     build=$ac_cv_build
4141     ac_save_IFS=$IFS; IFS='-'
4142     set x $ac_cv_build
4143     shift
4144     build_cpu=$1
4145     build_vendor=$2
4146     shift; shift
4147     # Remember, the first character of IFS is used to create $*,
4148     # except with old shells:
4149     build_os=$*
4150     IFS=$ac_save_IFS
4151     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4152    
4153    
4154 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4155     $as_echo_n "checking host system type... " >&6; }
4156     if ${ac_cv_host+:} false; then :
4157     $as_echo_n "(cached) " >&6
4158 michael 5052 else
4159     if test "x$host_alias" = x; then
4160     ac_cv_host=$ac_cv_build
4161     else
4162     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4163 michael 5059 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4164 michael 5052 fi
4165    
4166     fi
4167 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4168     $as_echo "$ac_cv_host" >&6; }
4169 michael 5052 case $ac_cv_host in
4170     *-*-*) ;;
4171 michael 5059 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4172 michael 5052 esac
4173     host=$ac_cv_host
4174     ac_save_IFS=$IFS; IFS='-'
4175     set x $ac_cv_host
4176     shift
4177     host_cpu=$1
4178     host_vendor=$2
4179     shift; shift
4180     # Remember, the first character of IFS is used to create $*,
4181     # except with old shells:
4182     host_os=$*
4183     IFS=$ac_save_IFS
4184     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4185    
4186    
4187 michael 5059 # Backslashify metacharacters that are still active within
4188     # double-quoted strings.
4189     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4190    
4191     # Same as above, but do not quote variable references.
4192     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4193    
4194     # Sed substitution to delay expansion of an escaped shell variable in a
4195     # double_quote_subst'ed string.
4196     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4197    
4198     # Sed substitution to delay expansion of an escaped single quote.
4199     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4200    
4201     # Sed substitution to avoid accidental globbing in evaled expressions
4202     no_glob_subst='s/\*/\\\*/g'
4203    
4204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4205     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4206     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4207    
4208     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4209     $as_echo_n "checking how to print strings... " >&6; }
4210     # Test print first, because it will be a builtin if present.
4211     if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4212     test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4213     ECHO='print -r --'
4214     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4215     ECHO='printf %s\n'
4216 michael 5052 else
4217 michael 5059 # Use this function as a fallback that always works.
4218     func_fallback_echo ()
4219     {
4220     eval 'cat <<_LTECHO_EOF
4221     $1
4222     _LTECHO_EOF'
4223     }
4224     ECHO='func_fallback_echo'
4225     fi
4226    
4227     # func_echo_all arg...
4228     # Invoke $ECHO with all args, space-separated.
4229     func_echo_all ()
4230     {
4231     $ECHO ""
4232     }
4233    
4234     case $ECHO in
4235     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4236     $as_echo "printf" >&6; } ;;
4237     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4238     $as_echo "print -r" >&6; } ;;
4239     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4240     $as_echo "cat" >&6; } ;;
4241     esac
4242    
4243    
4244    
4245    
4246    
4247    
4248    
4249    
4250    
4251    
4252    
4253    
4254    
4255    
4256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4257     $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4258     if ${ac_cv_path_SED+:} false; then :
4259     $as_echo_n "(cached) " >&6
4260     else
4261     ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4262     for ac_i in 1 2 3 4 5 6 7; do
4263     ac_script="$ac_script$as_nl$ac_script"
4264     done
4265     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4266     { ac_script=; unset ac_script;}
4267     if test -z "$SED"; then
4268     ac_path_SED_found=false
4269     # Loop through the user's path and test for each of PROGNAME-LIST
4270     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 michael 5052 for as_dir in $PATH
4272     do
4273     IFS=$as_save_IFS
4274     test -z "$as_dir" && as_dir=.
4275 michael 5059 for ac_prog in sed gsed; do
4276 michael 5052 for ac_exec_ext in '' $ac_executable_extensions; do
4277 michael 5059 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4278     as_fn_executable_p "$ac_path_SED" || continue
4279     # Check for GNU ac_path_SED and select it if it is found.
4280     # Check for GNU $ac_path_SED
4281     case `"$ac_path_SED" --version 2>&1` in
4282     *GNU*)
4283     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4284     *)
4285     ac_count=0
4286     $as_echo_n 0123456789 >"conftest.in"
4287     while :
4288     do
4289     cat "conftest.in" "conftest.in" >"conftest.tmp"
4290     mv "conftest.tmp" "conftest.in"
4291     cp "conftest.in" "conftest.nl"
4292     $as_echo '' >> "conftest.nl"
4293     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4294     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4295     as_fn_arith $ac_count + 1 && ac_count=$as_val
4296     if test $ac_count -gt ${ac_path_SED_max-0}; then
4297     # Best one so far, save it but keep looking for a better one
4298     ac_cv_path_SED="$ac_path_SED"
4299     ac_path_SED_max=$ac_count
4300     fi
4301     # 10*(2^10) chars as input seems more than enough
4302     test $ac_count -gt 10 && break
4303     done
4304     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4305     esac
4306    
4307     $ac_path_SED_found && break 3
4308 michael 5052 done
4309     done
4310 michael 5059 done
4311     IFS=$as_save_IFS
4312     if test -z "$ac_cv_path_SED"; then
4313     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4314 michael 5052 fi
4315 michael 5059 else
4316     ac_cv_path_SED=$SED
4317     fi
4318 michael 5052
4319     fi
4320 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4321     $as_echo "$ac_cv_path_SED" >&6; }
4322     SED="$ac_cv_path_SED"
4323     rm -f conftest.sed
4324 michael 5052
4325 michael 5059 test -z "$SED" && SED=sed
4326     Xsed="$SED -e 1s/^X//"
4327 michael 5052
4328 michael 5059
4329    
4330    
4331    
4332    
4333    
4334    
4335    
4336    
4337    
4338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4339     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4340     if ${ac_cv_path_GREP+:} false; then :
4341     $as_echo_n "(cached) " >&6
4342 michael 5052 else
4343 michael 5059 if test -z "$GREP"; then
4344 michael 5052 ac_path_GREP_found=false
4345 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4346     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4348     do
4349     IFS=$as_save_IFS
4350     test -z "$as_dir" && as_dir=.
4351 michael 5059 for ac_prog in grep ggrep; do
4352     for ac_exec_ext in '' $ac_executable_extensions; do
4353     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4354     as_fn_executable_p "$ac_path_GREP" || continue
4355     # Check for GNU ac_path_GREP and select it if it is found.
4356 michael 5052 # Check for GNU $ac_path_GREP
4357     case `"$ac_path_GREP" --version 2>&1` in
4358     *GNU*)
4359     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4360     *)
4361     ac_count=0
4362 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4363 michael 5052 while :
4364     do
4365     cat "conftest.in" "conftest.in" >"conftest.tmp"
4366     mv "conftest.tmp" "conftest.in"
4367     cp "conftest.in" "conftest.nl"
4368 michael 5059 $as_echo 'GREP' >> "conftest.nl"
4369 michael 5052 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4370     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4371 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4372 michael 5052 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4373     # Best one so far, save it but keep looking for a better one
4374     ac_cv_path_GREP="$ac_path_GREP"
4375     ac_path_GREP_max=$ac_count
4376     fi
4377     # 10*(2^10) chars as input seems more than enough
4378     test $ac_count -gt 10 && break
4379     done
4380     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4381     esac
4382    
4383 michael 5059 $ac_path_GREP_found && break 3
4384     done
4385 michael 5052 done
4386 michael 5059 done
4387 michael 5052 IFS=$as_save_IFS
4388 michael 5059 if test -z "$ac_cv_path_GREP"; then
4389     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4390     fi
4391 michael 5052 else
4392     ac_cv_path_GREP=$GREP
4393     fi
4394    
4395     fi
4396 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4397     $as_echo "$ac_cv_path_GREP" >&6; }
4398 michael 5052 GREP="$ac_cv_path_GREP"
4399    
4400    
4401 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4402     $as_echo_n "checking for egrep... " >&6; }
4403     if ${ac_cv_path_EGREP+:} false; then :
4404     $as_echo_n "(cached) " >&6
4405 michael 5052 else
4406     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4407     then ac_cv_path_EGREP="$GREP -E"
4408     else
4409 michael 5059 if test -z "$EGREP"; then
4410 michael 5052 ac_path_EGREP_found=false
4411 michael 5059 # Loop through the user's path and test for each of PROGNAME-LIST
4412     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 michael 5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4414     do
4415     IFS=$as_save_IFS
4416     test -z "$as_dir" && as_dir=.
4417 michael 5059 for ac_prog in egrep; do
4418     for ac_exec_ext in '' $ac_executable_extensions; do
4419     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4420     as_fn_executable_p "$ac_path_EGREP" || continue
4421     # Check for GNU ac_path_EGREP and select it if it is found.
4422 michael 5052 # Check for GNU $ac_path_EGREP
4423     case `"$ac_path_EGREP" --version 2>&1` in
4424     *GNU*)
4425     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4426     *)
4427     ac_count=0
4428 michael 5059 $as_echo_n 0123456789 >"conftest.in"
4429 michael 5052 while :
4430     do
4431     cat "conftest.in" "conftest.in" >"conftest.tmp"
4432     mv "conftest.tmp" "conftest.in"
4433     cp "conftest.in" "conftest.nl"
4434 michael 5059 $as_echo 'EGREP' >> "conftest.nl"
4435 michael 5052 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4436     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4437 michael 5059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4438 michael 5052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4439     # Best one so far, save it but keep looking for a better one
4440     ac_cv_path_EGREP="$ac_path_EGREP"
4441     ac_path_EGREP_max=$ac_count
4442     fi
4443     # 10*(2^10) chars as input seems more than enough
4444     test $ac_count -gt 10 && break
4445     done
4446     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4447     esac
4448    
4449 michael 5059 $ac_path_EGREP_found && break 3
4450     done
4451 michael 5052 done
4452 michael 5059 done
4453 michael 5052 IFS=$as_save_IFS
4454 michael 5059 if test -z "$ac_cv_path_EGREP"; then
4455     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4456     fi
4457     else
4458     ac_cv_path_EGREP=$EGREP
4459 michael 5052 fi
4460    
4461 michael 5059 fi
4462 michael 5052 fi
4463 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4464     $as_echo "$ac_cv_path_EGREP" >&6; }
4465     EGREP="$ac_cv_path_EGREP"
4466 michael 5052
4467 michael 5059
4468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4469     $as_echo_n "checking for fgrep... " >&6; }
4470     if ${ac_cv_path_FGREP+:} false; then :
4471     $as_echo_n "(cached) " >&6
4472 michael 5052 else
4473 michael 5059 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4474     then ac_cv_path_FGREP="$GREP -F"
4475     else
4476     if test -z "$FGREP"; then
4477     ac_path_FGREP_found=false
4478     # Loop through the user's path and test for each of PROGNAME-LIST
4479     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4481     do
4482     IFS=$as_save_IFS
4483     test -z "$as_dir" && as_dir=.
4484     for ac_prog in fgrep; do
4485     for ac_exec_ext in '' $ac_executable_extensions; do
4486     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4487     as_fn_executable_p "$ac_path_FGREP" || continue
4488     # Check for GNU ac_path_FGREP and select it if it is found.
4489     # Check for GNU $ac_path_FGREP
4490     case `"$ac_path_FGREP" --version 2>&1` in
4491     *GNU*)
4492     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4493     *)
4494     ac_count=0
4495     $as_echo_n 0123456789 >"conftest.in"
4496     while :
4497     do
4498     cat "conftest.in" "conftest.in" >"conftest.tmp"
4499     mv "conftest.tmp" "conftest.in"
4500     cp "conftest.in" "conftest.nl"
4501     $as_echo 'FGREP' >> "conftest.nl"
4502     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4504     as_fn_arith $ac_count + 1 && ac_count=$as_val
4505     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4506     # Best one so far, save it but keep looking for a better one
4507     ac_cv_path_FGREP="$ac_path_FGREP"
4508     ac_path_FGREP_max=$ac_count
4509     fi
4510     # 10*(2^10) chars as input seems more than enough
4511     test $ac_count -gt 10 && break
4512     done
4513     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4514     esac
4515    
4516     $ac_path_FGREP_found && break 3
4517     done
4518     done
4519     done
4520     IFS=$as_save_IFS
4521     if test -z "$ac_cv_path_FGREP"; then
4522     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4523     fi
4524     else
4525     ac_cv_path_FGREP=$FGREP
4526 michael 5052 fi
4527    
4528     fi
4529     fi
4530 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4531     $as_echo "$ac_cv_path_FGREP" >&6; }
4532     FGREP="$ac_cv_path_FGREP"
4533 michael 5052
4534    
4535 michael 5059 test -z "$GREP" && GREP=grep
4536 michael 5052
4537 michael 5059
4538    
4539    
4540    
4541    
4542    
4543    
4544    
4545    
4546    
4547    
4548    
4549    
4550    
4551    
4552    
4553    
4554    
4555 michael 5052 # Check whether --with-gnu-ld was given.
4556 michael 5059 if test "${with_gnu_ld+set}" = set; then :
4557     withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4558 michael 5052 else
4559     with_gnu_ld=no
4560     fi
4561    
4562     ac_prog=ld
4563 michael 5059 if test yes = "$GCC"; then
4564 michael 5052 # Check if gcc -print-prog-name=ld gives a path.
4565 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4566     $as_echo_n "checking for ld used by $CC... " >&6; }
4567 michael 5052 case $host in
4568     *-*-mingw*)
4569 michael 5059 # gcc leaves a trailing carriage return, which upsets mingw
4570 michael 5052 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4571     *)
4572     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4573     esac
4574     case $ac_prog in
4575     # Accept absolute paths.
4576     [\\/]* | ?:[\\/]*)
4577     re_direlt='/[^/][^/]*/\.\./'
4578     # Canonicalize the pathname of ld
4579 michael 5059 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4580     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4581     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4582 michael 5052 done
4583 michael 5059 test -z "$LD" && LD=$ac_prog
4584 michael 5052 ;;
4585     "")
4586     # If it fails, then pretend we aren't using GCC.
4587     ac_prog=ld
4588     ;;
4589     *)
4590     # If it is relative, then search for the first ld in PATH.
4591     with_gnu_ld=unknown
4592     ;;
4593     esac
4594 michael 5059 elif test yes = "$with_gnu_ld"; then
4595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4596     $as_echo_n "checking for GNU ld... " >&6; }
4597 michael 5052 else
4598 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4599     $as_echo_n "checking for non-GNU ld... " >&6; }
4600 michael 5052 fi
4601 michael 5059 if ${lt_cv_path_LD+:} false; then :
4602     $as_echo_n "(cached) " >&6
4603 michael 5052 else
4604     if test -z "$LD"; then
4605 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4606 michael 5052 for ac_dir in $PATH; do
4607 michael 5059 IFS=$lt_save_ifs
4608 michael 5052 test -z "$ac_dir" && ac_dir=.
4609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4610 michael 5059 lt_cv_path_LD=$ac_dir/$ac_prog
4611 michael 5052 # Check to see if the program is GNU ld. I'd rather use --version,
4612     # but apparently some variants of GNU ld only accept -v.
4613     # Break only if it was the GNU/non-GNU ld that we prefer.
4614     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4615     *GNU* | *'with BFD'*)
4616 michael 5059 test no != "$with_gnu_ld" && break
4617 michael 5052 ;;
4618     *)
4619 michael 5059 test yes != "$with_gnu_ld" && break
4620 michael 5052 ;;
4621     esac
4622     fi
4623     done
4624 michael 5059 IFS=$lt_save_ifs
4625 michael 5052 else
4626 michael 5059 lt_cv_path_LD=$LD # Let the user override the test with a path.
4627 michael 5052 fi
4628     fi
4629    
4630 michael 5059 LD=$lt_cv_path_LD
4631 michael 5052 if test -n "$LD"; then
4632 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4633     $as_echo "$LD" >&6; }
4634 michael 5052 else
4635 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636     $as_echo "no" >&6; }
4637 michael 5052 fi
4638 michael 5059 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4640     $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4641     if ${lt_cv_prog_gnu_ld+:} false; then :
4642     $as_echo_n "(cached) " >&6
4643 michael 5052 else
4644     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4645     case `$LD -v 2>&1 </dev/null` in
4646     *GNU* | *'with BFD'*)
4647     lt_cv_prog_gnu_ld=yes
4648     ;;
4649     *)
4650     lt_cv_prog_gnu_ld=no
4651     ;;
4652     esac
4653     fi
4654 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4655     $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4656 michael 5052 with_gnu_ld=$lt_cv_prog_gnu_ld
4657    
4658    
4659    
4660 michael 5059
4661    
4662    
4663    
4664    
4665    
4666     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4667     $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4668     if ${lt_cv_path_NM+:} false; then :
4669     $as_echo_n "(cached) " >&6
4670 michael 5052 else
4671     if test -n "$NM"; then
4672     # Let the user override the test.
4673 michael 5059 lt_cv_path_NM=$NM
4674 michael 5052 else
4675 michael 5059 lt_nm_to_check=${ac_tool_prefix}nm
4676 michael 5052 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4677     lt_nm_to_check="$lt_nm_to_check nm"
4678     fi
4679     for lt_tmp_nm in $lt_nm_to_check; do
4680 michael 5059 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4681 michael 5052 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4682 michael 5059 IFS=$lt_save_ifs
4683 michael 5052 test -z "$ac_dir" && ac_dir=.
4684 michael 5059 tmp_nm=$ac_dir/$lt_tmp_nm
4685     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4686 michael 5052 # Check to see if the nm accepts a BSD-compat flag.
4687 michael 5059 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4688 michael 5052 # nm: unknown option "B" ignored
4689     # Tru64's nm complains that /dev/null is an invalid object file
4690 michael 5059 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4691     case $build_os in
4692     mingw*) lt_bad_file=conftest.nm/nofile ;;
4693     *) lt_bad_file=/dev/null ;;
4694     esac
4695     case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4696     *$lt_bad_file* | *'Invalid file or object type'*)
4697 michael 5052 lt_cv_path_NM="$tmp_nm -B"
4698 michael 5059 break 2
4699 michael 5052 ;;
4700     *)
4701     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4702     */dev/null*)
4703     lt_cv_path_NM="$tmp_nm -p"
4704 michael 5059 break 2
4705 michael 5052 ;;
4706     *)
4707     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4708     continue # so that we can try to find one that supports BSD flags
4709     ;;
4710     esac
4711     ;;
4712     esac
4713     fi
4714     done
4715 michael 5059 IFS=$lt_save_ifs
4716 michael 5052 done
4717 michael 5059 : ${lt_cv_path_NM=no}
4718 michael 5052 fi
4719     fi
4720 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4721     $as_echo "$lt_cv_path_NM" >&6; }
4722     if test no != "$lt_cv_path_NM"; then
4723     NM=$lt_cv_path_NM
4724     else
4725     # Didn't find any BSD compatible name lister, look for dumpbin.
4726     if test -n "$DUMPBIN"; then :
4727     # Let the user override the test.
4728     else
4729     if test -n "$ac_tool_prefix"; then
4730     for ac_prog in dumpbin "link -dump"
4731     do
4732     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4733     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4734     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735     $as_echo_n "checking for $ac_word... " >&6; }
4736     if ${ac_cv_prog_DUMPBIN+:} false; then :
4737     $as_echo_n "(cached) " >&6
4738     else
4739     if test -n "$DUMPBIN"; then
4740     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4741     else
4742     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743     for as_dir in $PATH
4744     do
4745     IFS=$as_save_IFS
4746     test -z "$as_dir" && as_dir=.
4747     for ac_exec_ext in '' $ac_executable_extensions; do
4748     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751     break 2
4752     fi
4753     done
4754     done
4755     IFS=$as_save_IFS
4756 michael 5052
4757 michael 5059 fi
4758     fi
4759     DUMPBIN=$ac_cv_prog_DUMPBIN
4760     if test -n "$DUMPBIN"; then
4761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4762     $as_echo "$DUMPBIN" >&6; }
4763     else
4764     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765     $as_echo "no" >&6; }
4766     fi
4767    
4768    
4769     test -n "$DUMPBIN" && break
4770     done
4771     fi
4772     if test -z "$DUMPBIN"; then
4773     ac_ct_DUMPBIN=$DUMPBIN
4774     for ac_prog in dumpbin "link -dump"
4775     do
4776     # Extract the first word of "$ac_prog", so it can be a program name with args.
4777     set dummy $ac_prog; ac_word=$2
4778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779     $as_echo_n "checking for $ac_word... " >&6; }
4780     if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4781     $as_echo_n "(cached) " >&6
4782     else
4783     if test -n "$ac_ct_DUMPBIN"; then
4784     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4785     else
4786     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787     for as_dir in $PATH
4788     do
4789     IFS=$as_save_IFS
4790     test -z "$as_dir" && as_dir=.
4791     for ac_exec_ext in '' $ac_executable_extensions; do
4792     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795     break 2
4796     fi
4797     done
4798     done
4799     IFS=$as_save_IFS
4800    
4801     fi
4802     fi
4803     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4804     if test -n "$ac_ct_DUMPBIN"; then
4805     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4806     $as_echo "$ac_ct_DUMPBIN" >&6; }
4807     else
4808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809     $as_echo "no" >&6; }
4810     fi
4811    
4812    
4813     test -n "$ac_ct_DUMPBIN" && break
4814     done
4815    
4816     if test "x$ac_ct_DUMPBIN" = x; then
4817     DUMPBIN=":"
4818     else
4819     case $cross_compiling:$ac_tool_warned in
4820     yes:)
4821     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823     ac_tool_warned=yes ;;
4824     esac
4825     DUMPBIN=$ac_ct_DUMPBIN
4826     fi
4827     fi
4828    
4829     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4830     *COFF*)
4831     DUMPBIN="$DUMPBIN -symbols -headers"
4832     ;;
4833     *)
4834     DUMPBIN=:
4835     ;;
4836     esac
4837     fi
4838    
4839     if test : != "$DUMPBIN"; then
4840     NM=$DUMPBIN
4841     fi
4842     fi
4843     test -z "$NM" && NM=nm
4844    
4845    
4846    
4847    
4848    
4849    
4850     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4851     $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4852     if ${lt_cv_nm_interface+:} false; then :
4853     $as_echo_n "(cached) " >&6
4854     else
4855     lt_cv_nm_interface="BSD nm"
4856     echo "int some_variable = 0;" > conftest.$ac_ext
4857     (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4858     (eval "$ac_compile" 2>conftest.err)
4859     cat conftest.err >&5
4860     (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4861     (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4862     cat conftest.err >&5
4863     (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4864     cat conftest.out >&5
4865     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4866     lt_cv_nm_interface="MS dumpbin"
4867     fi
4868     rm -f conftest*
4869     fi
4870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4871     $as_echo "$lt_cv_nm_interface" >&6; }
4872    
4873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4874     $as_echo_n "checking whether ln -s works... " >&6; }
4875 michael 5052 LN_S=$as_ln_s
4876     if test "$LN_S" = "ln -s"; then
4877 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878     $as_echo "yes" >&6; }
4879 michael 5052 else
4880 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4881     $as_echo "no, using $LN_S" >&6; }
4882 michael 5052 fi
4883    
4884 michael 5059 # find the maximum length of command line arguments
4885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4886     $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4887     if ${lt_cv_sys_max_cmd_len+:} false; then :
4888     $as_echo_n "(cached) " >&6
4889 michael 5052 else
4890 michael 5059 i=0
4891     teststring=ABCD
4892    
4893     case $build_os in
4894     msdosdjgpp*)
4895     # On DJGPP, this test can blow up pretty badly due to problems in libc
4896     # (any single argument exceeding 2000 bytes causes a buffer overrun
4897     # during glob expansion). Even if it were fixed, the result of this
4898     # check would be larger than it should be.
4899     lt_cv_sys_max_cmd_len=12288; # 12K is about right
4900     ;;
4901    
4902     gnu*)
4903     # Under GNU Hurd, this test is not required because there is
4904     # no limit to the length of command line arguments.
4905     # Libtool will interpret -1 as no limit whatsoever
4906     lt_cv_sys_max_cmd_len=-1;
4907     ;;
4908    
4909     cygwin* | mingw* | cegcc*)
4910     # On Win9x/ME, this test blows up -- it succeeds, but takes
4911     # about 5 minutes as the teststring grows exponentially.
4912     # Worse, since 9x/ME are not pre-emptively multitasking,
4913     # you end up with a "frozen" computer, even though with patience
4914     # the test eventually succeeds (with a max line length of 256k).
4915     # Instead, let's just punt: use the minimum linelength reported by
4916     # all of the supported platforms: 8192 (on NT/2K/XP).
4917     lt_cv_sys_max_cmd_len=8192;
4918     ;;
4919    
4920     mint*)
4921     # On MiNT this can take a long time and run out of memory.
4922     lt_cv_sys_max_cmd_len=8192;
4923     ;;
4924    
4925     amigaos*)
4926     # On AmigaOS with pdksh, this test takes hours, literally.
4927     # So we just punt and use a minimum line length of 8192.
4928     lt_cv_sys_max_cmd_len=8192;
4929     ;;
4930    
4931     bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4932     # This has been around since 386BSD, at least. Likely further.
4933     if test -x /sbin/sysctl; then
4934     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4935     elif test -x /usr/sbin/sysctl; then
4936     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4937     else
4938     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4939     fi
4940     # And add a safety zone
4941     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4942     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4943     ;;
4944    
4945     interix*)
4946     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4947     lt_cv_sys_max_cmd_len=196608
4948     ;;
4949    
4950     os2*)
4951     # The test takes a long time on OS/2.
4952     lt_cv_sys_max_cmd_len=8192
4953     ;;
4954    
4955     osf*)
4956     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4957     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4958     # nice to cause kernel panics so lets avoid the loop below.
4959     # First set a reasonable default.
4960     lt_cv_sys_max_cmd_len=16384
4961     #
4962     if test -x /sbin/sysconfig; then
4963     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4964     *1*) lt_cv_sys_max_cmd_len=-1 ;;
4965     esac
4966     fi
4967     ;;
4968     sco3.2v5*)
4969     lt_cv_sys_max_cmd_len=102400
4970     ;;
4971     sysv5* | sco5v6* | sysv4.2uw2*)
4972     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4973     if test -n "$kargmax"; then
4974     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4975     else
4976     lt_cv_sys_max_cmd_len=32768
4977     fi
4978     ;;
4979     *)
4980     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4981     if test -n "$lt_cv_sys_max_cmd_len" && \
4982     test undefined != "$lt_cv_sys_max_cmd_len"; then
4983     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4984     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4985     else
4986     # Make teststring a little bigger before we do anything with it.
4987     # a 1K string should be a reasonable start.
4988     for i in 1 2 3 4 5 6 7 8; do
4989     teststring=$teststring$teststring
4990     done
4991     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4992     # If test is not a shell built-in, we'll probably end up computing a
4993     # maximum length that is only half of the actual maximum length, but
4994     # we can't tell.
4995     while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4996     = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4997     test 17 != "$i" # 1/2 MB should be enough
4998     do
4999     i=`expr $i + 1`
5000     teststring=$teststring$teststring
5001     done
5002     # Only check the string length outside the loop.
5003     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5004     teststring=
5005     # Add a significant safety factor because C++ compilers can tack on
5006     # massive amounts of additional arguments before passing them to the
5007     # linker. It appears as though 1/2 is a usable value.
5008     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5009     fi
5010     ;;
5011     esac
5012    
5013     fi
5014    
5015     if test -n "$lt_cv_sys_max_cmd_len"; then
5016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5017     $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5018     else
5019     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5020     $as_echo "none" >&6; }
5021     fi
5022     max_cmd_len=$lt_cv_sys_max_cmd_len
5023    
5024    
5025    
5026    
5027    
5028    
5029     : ${CP="cp -f"}
5030     : ${MV="mv -f"}
5031     : ${RM="rm -f"}
5032    
5033     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5034     lt_unset=unset
5035     else
5036     lt_unset=false
5037     fi
5038    
5039    
5040    
5041    
5042    
5043     # test EBCDIC or ASCII
5044     case `echo X|tr X '\101'` in
5045     A) # ASCII based system
5046     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5047     lt_SP2NL='tr \040 \012'
5048     lt_NL2SP='tr \015\012 \040\040'
5049     ;;
5050     *) # EBCDIC based system
5051     lt_SP2NL='tr \100 \n'
5052     lt_NL2SP='tr \r\n \100\100'
5053     ;;
5054     esac
5055    
5056    
5057    
5058    
5059    
5060    
5061    
5062    
5063    
5064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5065     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5066     if ${lt_cv_to_host_file_cmd+:} false; then :
5067     $as_echo_n "(cached) " >&6
5068     else
5069     case $host in
5070     *-*-mingw* )
5071     case $build in
5072     *-*-mingw* ) # actually msys
5073     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5074     ;;
5075     *-*-cygwin* )
5076     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5077     ;;
5078     * ) # otherwise, assume *nix
5079     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5080     ;;
5081     esac
5082     ;;
5083     *-*-cygwin* )
5084     case $build in
5085     *-*-mingw* ) # actually msys
5086     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5087     ;;
5088     *-*-cygwin* )
5089     lt_cv_to_host_file_cmd=func_convert_file_noop
5090     ;;
5091     * ) # otherwise, assume *nix
5092     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5093     ;;
5094     esac
5095     ;;
5096     * ) # unhandled hosts (and "normal" native builds)
5097     lt_cv_to_host_file_cmd=func_convert_file_noop
5098     ;;
5099     esac
5100    
5101     fi
5102    
5103     to_host_file_cmd=$lt_cv_to_host_file_cmd
5104     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5105     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5106    
5107    
5108    
5109    
5110    
5111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5112     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5113     if ${lt_cv_to_tool_file_cmd+:} false; then :
5114     $as_echo_n "(cached) " >&6
5115     else
5116     #assume ordinary cross tools, or native build.
5117     lt_cv_to_tool_file_cmd=func_convert_file_noop
5118     case $host in
5119     *-*-mingw* )
5120     case $build in
5121     *-*-mingw* ) # actually msys
5122     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5123     ;;
5124     esac
5125     ;;
5126     esac
5127    
5128     fi
5129    
5130     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5132     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5133    
5134    
5135    
5136    
5137    
5138     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5139     $as_echo_n "checking for $LD option to reload object files... " >&6; }
5140     if ${lt_cv_ld_reload_flag+:} false; then :
5141     $as_echo_n "(cached) " >&6
5142     else
5143     lt_cv_ld_reload_flag='-r'
5144     fi
5145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5146     $as_echo "$lt_cv_ld_reload_flag" >&6; }
5147     reload_flag=$lt_cv_ld_reload_flag
5148     case $reload_flag in
5149     "" | " "*) ;;
5150     *) reload_flag=" $reload_flag" ;;
5151     esac
5152     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5153     case $host_os in
5154     cygwin* | mingw* | pw32* | cegcc*)
5155     if test yes != "$GCC"; then
5156     reload_cmds=false
5157     fi
5158     ;;
5159     darwin*)
5160     if test yes = "$GCC"; then
5161     reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5162     else
5163     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5164     fi
5165     ;;
5166     esac
5167    
5168    
5169    
5170    
5171    
5172    
5173    
5174    
5175    
5176     if test -n "$ac_tool_prefix"; then
5177     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5178     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180     $as_echo_n "checking for $ac_word... " >&6; }
5181     if ${ac_cv_prog_OBJDUMP+:} false; then :
5182     $as_echo_n "(cached) " >&6
5183     else
5184     if test -n "$OBJDUMP"; then
5185     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5186     else
5187     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188     for as_dir in $PATH
5189     do
5190     IFS=$as_save_IFS
5191     test -z "$as_dir" && as_dir=.
5192     for ac_exec_ext in '' $ac_executable_extensions; do
5193     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5194     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196     break 2
5197     fi
5198     done
5199     done
5200     IFS=$as_save_IFS
5201    
5202     fi
5203     fi
5204     OBJDUMP=$ac_cv_prog_OBJDUMP
5205     if test -n "$OBJDUMP"; then
5206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5207     $as_echo "$OBJDUMP" >&6; }
5208     else
5209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210     $as_echo "no" >&6; }
5211     fi
5212    
5213    
5214     fi
5215     if test -z "$ac_cv_prog_OBJDUMP"; then
5216     ac_ct_OBJDUMP=$OBJDUMP
5217     # Extract the first word of "objdump", so it can be a program name with args.
5218     set dummy objdump; ac_word=$2
5219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220     $as_echo_n "checking for $ac_word... " >&6; }
5221     if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5222     $as_echo_n "(cached) " >&6
5223     else
5224     if test -n "$ac_ct_OBJDUMP"; then
5225     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5226     else
5227     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228     for as_dir in $PATH
5229     do
5230     IFS=$as_save_IFS
5231     test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237     fi
5238     done
5239     done
5240     IFS=$as_save_IFS
5241    
5242     fi
5243     fi
5244     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5245     if test -n "$ac_ct_OBJDUMP"; then
5246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5247     $as_echo "$ac_ct_OBJDUMP" >&6; }
5248     else
5249     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250     $as_echo "no" >&6; }
5251     fi
5252    
5253     if test "x$ac_ct_OBJDUMP" = x; then
5254     OBJDUMP="false"
5255     else
5256     case $cross_compiling:$ac_tool_warned in
5257     yes:)
5258     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260     ac_tool_warned=yes ;;
5261     esac
5262     OBJDUMP=$ac_ct_OBJDUMP
5263     fi
5264     else
5265     OBJDUMP="$ac_cv_prog_OBJDUMP"
5266     fi
5267    
5268     test -z "$OBJDUMP" && OBJDUMP=objdump
5269    
5270    
5271    
5272    
5273    
5274    
5275    
5276    
5277    
5278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5279     $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5280     if ${lt_cv_deplibs_check_method+:} false; then :
5281     $as_echo_n "(cached) " >&6
5282     else
5283 michael 5052 lt_cv_file_magic_cmd='$MAGIC_CMD'
5284     lt_cv_file_magic_test_file=
5285     lt_cv_deplibs_check_method='unknown'
5286     # Need to set the preceding variable on all platforms that support
5287     # interlibrary dependencies.
5288     # 'none' -- dependencies not supported.
5289 michael 5059 # 'unknown' -- same as none, but documents that we really don't know.
5290 michael 5052 # 'pass_all' -- all dependencies passed with no checks.
5291     # 'test_compile' -- check by making test program.
5292     # 'file_magic [[regex]]' -- check by looking for files in library path
5293 michael 5059 # that responds to the $file_magic_cmd with a given extended regex.
5294     # If you have 'file' or equivalent on your system and you're not sure
5295     # whether 'pass_all' will *always* work, you probably want this one.
5296 michael 5052
5297     case $host_os in
5298 michael 5059 aix[4-9]*)
5299 michael 5052 lt_cv_deplibs_check_method=pass_all
5300     ;;
5301    
5302     beos*)
5303     lt_cv_deplibs_check_method=pass_all
5304     ;;
5305    
5306     bsdi[45]*)
5307     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5308     lt_cv_file_magic_cmd='/usr/bin/file -L'
5309     lt_cv_file_magic_test_file=/shlib/libc.so
5310     ;;
5311    
5312     cygwin*)
5313     # func_win32_libid is a shell function defined in ltmain.sh
5314     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5315     lt_cv_file_magic_cmd='func_win32_libid'
5316     ;;
5317    
5318     mingw* | pw32*)
5319     # Base MSYS/MinGW do not provide the 'file' command needed by
5320 michael 5059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5321     # unless we find 'file', for example because we are cross-compiling.
5322     if ( file / ) >/dev/null 2>&1; then
5323     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5324     lt_cv_file_magic_cmd='func_win32_libid'
5325     else
5326     # Keep this pattern in sync with the one in func_win32_libid.
5327     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5328     lt_cv_file_magic_cmd='$OBJDUMP -f'
5329     fi
5330     ;;
5331    
5332     cegcc*)
5333     # use the weaker test based on 'objdump'. See mingw*.
5334     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5335 michael 5052 lt_cv_file_magic_cmd='$OBJDUMP -f'
5336     ;;
5337    
5338     darwin* | rhapsody*)
5339     lt_cv_deplibs_check_method=pass_all
5340     ;;
5341    
5342     freebsd* | dragonfly*)
5343 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5344 michael 5052 case $host_cpu in
5345     i*86 )
5346     # Not sure whether the presence of OpenBSD here was a mistake.
5347     # Let's accept both of them until this is cleared up.
5348     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5349     lt_cv_file_magic_cmd=/usr/bin/file
5350     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5351     ;;
5352     esac
5353     else
5354     lt_cv_deplibs_check_method=pass_all
5355     fi
5356     ;;
5357    
5358 michael 5059 haiku*)
5359 michael 5052 lt_cv_deplibs_check_method=pass_all
5360     ;;
5361    
5362     hpux10.20* | hpux11*)
5363     lt_cv_file_magic_cmd=/usr/bin/file
5364     case $host_cpu in
5365     ia64*)
5366     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5367     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5368     ;;
5369     hppa*64*)
5370 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]'
5371 michael 5052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5372     ;;
5373     *)
5374 michael 5059 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5375 michael 5052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5376     ;;
5377     esac
5378     ;;
5379    
5380 michael 5059 interix[3-9]*)
5381 michael 5052 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5383     ;;
5384    
5385     irix5* | irix6* | nonstopux*)
5386     case $LD in
5387     *-32|*"-32 ") libmagic=32-bit;;
5388     *-n32|*"-n32 ") libmagic=N32;;
5389     *-64|*"-64 ") libmagic=64-bit;;
5390     *) libmagic=never-match;;
5391     esac
5392     lt_cv_deplibs_check_method=pass_all
5393     ;;
5394    
5395 michael 5059 # This must be glibc/ELF.
5396     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5397 michael 5052 lt_cv_deplibs_check_method=pass_all
5398     ;;
5399    
5400 michael 5059 netbsd*)
5401     if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5402 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5403     else
5404     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5405     fi
5406     ;;
5407    
5408     newos6*)
5409     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5410     lt_cv_file_magic_cmd=/usr/bin/file
5411     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5412     ;;
5413    
5414 michael 5059 *nto* | *qnx*)
5415     lt_cv_deplibs_check_method=pass_all
5416 michael 5052 ;;
5417    
5418 michael 5059 openbsd* | bitrig*)
5419     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5420 michael 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5421     else
5422     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5423     fi
5424     ;;
5425    
5426     osf3* | osf4* | osf5*)
5427     lt_cv_deplibs_check_method=pass_all
5428     ;;
5429    
5430 michael 5059 rdos*)
5431     lt_cv_deplibs_check_method=pass_all
5432     ;;
5433    
5434 michael 5052 solaris*)
5435     lt_cv_deplibs_check_method=pass_all
5436     ;;
5437    
5438 michael 5059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5439     lt_cv_deplibs_check_method=pass_all
5440     ;;
5441    
5442 michael 5052 sysv4 | sysv4.3*)
5443     case $host_vendor in
5444     motorola)
5445     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]'
5446     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5447     ;;
5448     ncr)
5449     lt_cv_deplibs_check_method=pass_all
5450     ;;
5451     sequent)
5452     lt_cv_file_magic_cmd='/bin/file'
5453     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5454     ;;
5455     sni)
5456     lt_cv_file_magic_cmd='/bin/file'
5457     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5458     lt_cv_file_magic_test_file=/lib/libc.so
5459     ;;
5460     siemens)
5461     lt_cv_deplibs_check_method=pass_all
5462     ;;
5463     pc)
5464     lt_cv_deplibs_check_method=pass_all
5465     ;;
5466     esac
5467     ;;
5468    
5469 michael 5059 tpf*)
5470 michael 5052 lt_cv_deplibs_check_method=pass_all
5471     ;;
5472 michael 5059 os2*)
5473     lt_cv_deplibs_check_method=pass_all
5474     ;;
5475 michael 5052 esac
5476    
5477     fi
5478 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5479     $as_echo "$lt_cv_deplibs_check_method" >&6; }
5480    
5481     file_magic_glob=
5482     want_nocaseglob=no
5483     if test "$build" = "$host"; then
5484     case $host_os in
5485     mingw* | pw32*)
5486     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5487     want_nocaseglob=yes
5488     else
5489     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5490     fi
5491     ;;
5492     esac
5493     fi
5494    
5495 michael 5052 file_magic_cmd=$lt_cv_file_magic_cmd
5496     deplibs_check_method=$lt_cv_deplibs_check_method
5497     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5498    
5499    
5500    
5501    
5502    
5503    
5504    
5505    
5506    
5507    
5508    
5509    
5510    
5511    
5512    
5513    
5514    
5515    
5516    
5517    
5518    
5519    
5520 michael 5059 if test -n "$ac_tool_prefix"; then
5521     # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5522     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524     $as_echo_n "checking for $ac_word... " >&6; }
5525     if ${ac_cv_prog_DLLTOOL+:} false; then :
5526     $as_echo_n "(cached) " >&6
5527 michael 5052 else
5528 michael 5059 if test -n "$DLLTOOL"; then
5529     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5530     else
5531     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532     for as_dir in $PATH
5533 michael 5052 do
5534 michael 5059 IFS=$as_save_IFS
5535     test -z "$as_dir" && as_dir=.
5536     for ac_exec_ext in '' $ac_executable_extensions; do
5537     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540     break 2
5541 michael 5052 fi
5542 michael 5059 done
5543     done
5544     IFS=$as_save_IFS
5545 michael 5052
5546     fi
5547     fi
5548 michael 5059 DLLTOOL=$ac_cv_prog_DLLTOOL
5549     if test -n "$DLLTOOL"; then
5550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5551     $as_echo "$DLLTOOL" >&6; }
5552 michael 5052 else
5553 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554     $as_echo "no" >&6; }
5555 michael 5052 fi
5556    
5557    
5558     fi
5559 michael 5059 if test -z "$ac_cv_prog_DLLTOOL"; then
5560     ac_ct_DLLTOOL=$DLLTOOL
5561     # Extract the first word of "dlltool", so it can be a program name with args.
5562     set dummy dlltool; ac_word=$2
5563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564     $as_echo_n "checking for $ac_word... " >&6; }
5565     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5566     $as_echo_n "(cached) " >&6
5567 michael 5052 else
5568 michael 5059 if test -n "$ac_ct_DLLTOOL"; then
5569     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5570     else
5571     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572     for as_dir in $PATH
5573 michael 5052 do
5574 michael 5059 IFS=$as_save_IFS
5575     test -z "$as_dir" && as_dir=.
5576     for ac_exec_ext in '' $ac_executable_extensions; do
5577     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5578     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5580     break 2
5581 michael 5052 fi
5582     done
5583 michael 5059 done
5584     IFS=$as_save_IFS
5585 michael 5052
5586     fi
5587     fi
5588 michael 5059 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5589     if test -n "$ac_ct_DLLTOOL"; then
5590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5591     $as_echo "$ac_ct_DLLTOOL" >&6; }
5592 michael 5052 else
5593 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5594     $as_echo "no" >&6; }
5595 michael 5052 fi
5596    
5597 michael 5059 if test "x$ac_ct_DLLTOOL" = x; then
5598     DLLTOOL="false"
5599     else
5600     case $cross_compiling:$ac_tool_warned in
5601     yes:)
5602     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5603     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5604     ac_tool_warned=yes ;;
5605 michael 5052 esac
5606 michael 5059 DLLTOOL=$ac_ct_DLLTOOL
5607     fi
5608 michael 5052 else
5609 michael 5059 DLLTOOL="$ac_cv_prog_DLLTOOL"
5610 michael 5052 fi
5611    
5612 michael 5059 test -z "$DLLTOOL" && DLLTOOL=dlltool
5613 michael 5052
5614    
5615    
5616    
5617    
5618    
5619    
5620    
5621    
5622    
5623 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5624     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5625     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5626     $as_echo_n "(cached) " >&6
5627 michael 5052 else
5628 michael 5059 lt_cv_sharedlib_from_linklib_cmd='unknown'
5629 michael 5052
5630 michael 5059 case $host_os in
5631     cygwin* | mingw* | pw32* | cegcc*)
5632     # two different shell functions defined in ltmain.sh;
5633     # decide which one to use based on capabilities of $DLLTOOL
5634     case `$DLLTOOL --help 2>&1` in
5635     *--identify-strict*)
5636     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5637     ;;
5638     *)
5639     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5640     ;;
5641     esac
5642     ;;
5643     *)
5644     # fallback: assume linklib IS sharedlib
5645     lt_cv_sharedlib_from_linklib_cmd=$ECHO
5646     ;;
5647 michael 5052 esac
5648    
5649     fi
5650 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5651     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5652     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5653     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5654 michael 5052
5655    
5656    
5657    
5658    
5659    
5660    
5661    
5662 michael 5059 if test -n "$ac_tool_prefix"; then
5663     for ac_prog in ar
5664 michael 5052 do
5665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668     $as_echo_n "checking for $ac_word... " >&6; }
5669     if ${ac_cv_prog_AR+:} false; then :
5670     $as_echo_n "(cached) " >&6
5671 michael 5052 else
5672 michael 5059 if test -n "$AR"; then
5673     ac_cv_prog_AR="$AR" # Let the user override the test.
5674 michael 5052 else
5675     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676     for as_dir in $PATH
5677     do
5678     IFS=$as_save_IFS
5679     test -z "$as_dir" && as_dir=.
5680 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5681     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 michael 5052 break 2
5685     fi
5686     done
5687 michael 5059 done
5688 michael 5052 IFS=$as_save_IFS
5689    
5690     fi
5691     fi
5692 michael 5059 AR=$ac_cv_prog_AR
5693     if test -n "$AR"; then
5694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5695     $as_echo "$AR" >&6; }
5696 michael 5052 else
5697 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698     $as_echo "no" >&6; }
5699 michael 5052 fi
5700    
5701    
5702 michael 5059 test -n "$AR" && break
5703 michael 5052 done
5704     fi
5705 michael 5059 if test -z "$AR"; then
5706     ac_ct_AR=$AR
5707     for ac_prog in ar
5708 michael 5052 do
5709     # Extract the first word of "$ac_prog", so it can be a program name with args.
5710     set dummy $ac_prog; ac_word=$2
5711 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712     $as_echo_n "checking for $ac_word... " >&6; }
5713     if ${ac_cv_prog_ac_ct_AR+:} false; then :
5714     $as_echo_n "(cached) " >&6
5715 michael 5052 else
5716 michael 5059 if test -n "$ac_ct_AR"; then
5717     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5718 michael 5052 else
5719     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720     for as_dir in $PATH
5721     do
5722     IFS=$as_save_IFS
5723     test -z "$as_dir" && as_dir=.
5724 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5725     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5726     ac_cv_prog_ac_ct_AR="$ac_prog"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 michael 5052 break 2
5729     fi
5730     done
5731 michael 5059 done
5732 michael 5052 IFS=$as_save_IFS
5733    
5734     fi
5735     fi
5736 michael 5059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5737     if test -n "$ac_ct_AR"; then
5738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5739     $as_echo "$ac_ct_AR" >&6; }
5740 michael 5052 else
5741 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742     $as_echo "no" >&6; }
5743 michael 5052 fi
5744    
5745    
5746 michael 5059 test -n "$ac_ct_AR" && break
5747 michael 5052 done
5748    
5749 michael 5059 if test "x$ac_ct_AR" = x; then
5750     AR="false"
5751 michael 5052 else
5752     case $cross_compiling:$ac_tool_warned in
5753     yes:)
5754 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5755     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5756 michael 5052 ac_tool_warned=yes ;;
5757     esac
5758 michael 5059 AR=$ac_ct_AR
5759 michael 5052 fi
5760     fi
5761    
5762 michael 5059 : ${AR=ar}
5763     : ${AR_FLAGS=cru}
5764 michael 5052
5765    
5766    
5767    
5768    
5769    
5770    
5771    
5772    
5773    
5774    
5775 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5776     $as_echo_n "checking for archiver @FILE support... " >&6; }
5777     if ${lt_cv_ar_at_file+:} false; then :
5778     $as_echo_n "(cached) " >&6
5779 michael 5052 else
5780 michael 5059 lt_cv_ar_at_file=no
5781     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 michael 5052 /* end confdefs.h. */
5783    
5784     int
5785     main ()
5786     {
5787    
5788     ;
5789     return 0;
5790     }
5791     _ACEOF
5792 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
5793     echo conftest.$ac_objext > conftest.lst
5794     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5795     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5796     (eval $lt_ar_try) 2>&5
5797 michael 5052 ac_status=$?
5798 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799     test $ac_status = 0; }
5800     if test 0 -eq "$ac_status"; then
5801     # Ensure the archiver fails upon bogus file names.
5802     rm -f conftest.$ac_objext libconftest.a
5803     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5804     (eval $lt_ar_try) 2>&5
5805 michael 5052 ac_status=$?
5806 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5807     test $ac_status = 0; }
5808     if test 0 -ne "$ac_status"; then
5809     lt_cv_ar_at_file=@
5810     fi
5811     fi
5812     rm -f conftest.* libconftest.a
5813 michael 5052
5814     fi
5815     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816    
5817     fi
5818 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5819     $as_echo "$lt_cv_ar_at_file" >&6; }
5820 michael 5052
5821 michael 5059 if test no = "$lt_cv_ar_at_file"; then
5822     archiver_list_spec=
5823 michael 5052 else
5824 michael 5059 archiver_list_spec=$lt_cv_ar_at_file
5825 michael 5052 fi
5826    
5827    
5828    
5829    
5830    
5831    
5832    
5833 michael 5059 if test -n "$ac_tool_prefix"; then
5834     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5835     set dummy ${ac_tool_prefix}strip; ac_word=$2
5836     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5837     $as_echo_n "checking for $ac_word... " >&6; }
5838     if ${ac_cv_prog_STRIP+:} false; then :
5839     $as_echo_n "(cached) " >&6
5840 michael 5052 else
5841 michael 5059 if test -n "$STRIP"; then
5842     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5843 michael 5052 else
5844 michael 5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845     for as_dir in $PATH
5846 michael 5052 do
5847 michael 5059 IFS=$as_save_IFS
5848     test -z "$as_dir" && as_dir=.
5849     for ac_exec_ext in '' $ac_executable_extensions; do
5850     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5853     break 2
5854 michael 5052 fi
5855 michael 5059 done
5856     done
5857     IFS=$as_save_IFS
5858 michael 5052
5859     fi
5860     fi
5861 michael 5059 STRIP=$ac_cv_prog_STRIP
5862     if test -n "$STRIP"; then
5863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5864     $as_echo "$STRIP" >&6; }
5865 michael 5052 else
5866 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867     $as_echo "no" >&6; }
5868 michael 5052 fi
5869    
5870    
5871     fi
5872 michael 5059 if test -z "$ac_cv_prog_STRIP"; then
5873     ac_ct_STRIP=$STRIP
5874     # Extract the first word of "strip", so it can be a program name with args.
5875     set dummy strip; ac_word=$2
5876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877     $as_echo_n "checking for $ac_word... " >&6; }
5878     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5879     $as_echo_n "(cached) " >&6
5880 michael 5052 else
5881 michael 5059 if test -n "$ac_ct_STRIP"; then
5882     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5883     else
5884     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885     for as_dir in $PATH
5886 michael 5052 do
5887 michael 5059 IFS=$as_save_IFS
5888     test -z "$as_dir" && as_dir=.
5889     for ac_exec_ext in '' $ac_executable_extensions; do
5890     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891     ac_cv_prog_ac_ct_STRIP="strip"
5892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5893     break 2
5894 michael 5052 fi
5895 michael 5059 done
5896     done
5897     IFS=$as_save_IFS
5898    
5899 michael 5052 fi
5900 michael 5059 fi
5901     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5902     if test -n "$ac_ct_STRIP"; then
5903     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5904     $as_echo "$ac_ct_STRIP" >&6; }
5905 michael 5052 else
5906 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907     $as_echo "no" >&6; }
5908 michael 5052 fi
5909    
5910 michael 5059 if test "x$ac_ct_STRIP" = x; then
5911     STRIP=":"
5912     else
5913     case $cross_compiling:$ac_tool_warned in
5914     yes:)
5915     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5916     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5917     ac_tool_warned=yes ;;
5918 michael 5052 esac
5919 michael 5059 STRIP=$ac_ct_STRIP
5920 michael 5052 fi
5921     else
5922 michael 5059 STRIP="$ac_cv_prog_STRIP"
5923 michael 5052 fi
5924    
5925 michael 5059 test -z "$STRIP" && STRIP=:
5926 michael 5052
5927    
5928    
5929    
5930    
5931    
5932     if test -n "$ac_tool_prefix"; then
5933 michael 5059 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5934     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936     $as_echo_n "checking for $ac_word... " >&6; }
5937     if ${ac_cv_prog_RANLIB+:} false; then :
5938     $as_echo_n "(cached) " >&6
5939 michael 5052 else
5940 michael 5059 if test -n "$RANLIB"; then
5941     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5942 michael 5052 else
5943     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944     for as_dir in $PATH
5945     do
5946     IFS=$as_save_IFS
5947     test -z "$as_dir" && as_dir=.
5948 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5949     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 michael 5052 break 2
5953     fi
5954     done
5955 michael 5059 done
5956 michael 5052 IFS=$as_save_IFS
5957    
5958     fi
5959     fi
5960 michael 5059 RANLIB=$ac_cv_prog_RANLIB
5961     if test -n "$RANLIB"; then
5962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5963     $as_echo "$RANLIB" >&6; }
5964 michael 5052 else
5965 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966     $as_echo "no" >&6; }
5967 michael 5052 fi
5968    
5969    
5970     fi
5971 michael 5059 if test -z "$ac_cv_prog_RANLIB"; then
5972     ac_ct_RANLIB=$RANLIB
5973     # Extract the first word of "ranlib", so it can be a program name with args.
5974     set dummy ranlib; ac_word=$2
5975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976     $as_echo_n "checking for $ac_word... " >&6; }
5977     if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5978     $as_echo_n "(cached) " >&6
5979 michael 5052 else
5980 michael 5059 if test -n "$ac_ct_RANLIB"; then
5981     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5982 michael 5052 else
5983     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984     for as_dir in $PATH
5985     do
5986     IFS=$as_save_IFS
5987     test -z "$as_dir" && as_dir=.
5988 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
5989     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5990     ac_cv_prog_ac_ct_RANLIB="ranlib"
5991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 michael 5052 break 2
5993     fi
5994     done
5995 michael 5059 done
5996 michael 5052 IFS=$as_save_IFS
5997    
5998     fi
5999     fi
6000 michael 5059 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6001     if test -n "$ac_ct_RANLIB"; then
6002     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6003     $as_echo "$ac_ct_RANLIB" >&6; }
6004 michael 5052 else
6005 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006     $as_echo "no" >&6; }
6007 michael 5052 fi
6008    
6009 michael 5059 if test "x$ac_ct_RANLIB" = x; then
6010     RANLIB=":"
6011 michael 5052 else
6012     case $cross_compiling:$ac_tool_warned in
6013     yes:)
6014 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 michael 5052 ac_tool_warned=yes ;;
6017     esac
6018 michael 5059 RANLIB=$ac_ct_RANLIB
6019 michael 5052 fi
6020 michael 5059 else
6021     RANLIB="$ac_cv_prog_RANLIB"
6022 michael 5052 fi
6023    
6024 michael 5059 test -z "$RANLIB" && RANLIB=:
6025 michael 5052
6026    
6027    
6028    
6029    
6030    
6031 michael 5059 # Determine commands to create old-style static archives.
6032     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6033     old_postinstall_cmds='chmod 644 $oldlib'
6034     old_postuninstall_cmds=
6035    
6036     if test -n "$RANLIB"; then
6037     case $host_os in
6038     bitrig* | openbsd*)
6039     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6040     ;;
6041     *)
6042     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6043     ;;
6044     esac
6045     old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6046 michael 5052 fi
6047    
6048 michael 5059 case $host_os in
6049     darwin*)
6050     lock_old_archive_extraction=yes ;;
6051     *)
6052     lock_old_archive_extraction=no ;;
6053 michael 5052 esac
6054    
6055    
6056    
6057    
6058    
6059    
6060    
6061    
6062    
6063    
6064    
6065    
6066    
6067    
6068    
6069    
6070    
6071    
6072    
6073    
6074    
6075 michael 5059
6076    
6077    
6078    
6079    
6080    
6081    
6082    
6083    
6084    
6085    
6086    
6087    
6088    
6089    
6090    
6091    
6092    
6093     # If no C compiler was specified, use CC.
6094     LTCC=${LTCC-"$CC"}
6095    
6096     # If no C compiler flags were specified, use CFLAGS.
6097     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6098    
6099     # Allow CC to be a program name with arguments.
6100     compiler=$CC
6101    
6102    
6103 michael 5052 # Check for command to grab the raw symbol name followed by C symbol from nm.
6104 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6105     $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6106     if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6107     $as_echo_n "(cached) " >&6
6108 michael 5052 else
6109    
6110     # These are sane defaults that work on at least a few old systems.
6111     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6112    
6113     # Character class describing NM global symbol codes.
6114     symcode='[BCDEGRST]'
6115    
6116     # Regexp to match symbols that can be accessed directly from C.
6117     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6118    
6119     # Define system-specific variables.
6120     case $host_os in
6121     aix*)
6122     symcode='[BCDT]'
6123     ;;
6124 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
6125 michael 5052 symcode='[ABCDGISTW]'
6126     ;;
6127 michael 5059 hpux*)
6128     if test ia64 = "$host_cpu"; then
6129 michael 5052 symcode='[ABCDEGRST]'
6130     fi
6131     ;;
6132     irix* | nonstopux*)
6133     symcode='[BCDEGRST]'
6134     ;;
6135     osf*)
6136     symcode='[BCDEGQRST]'
6137     ;;
6138     solaris*)
6139     symcode='[BDRT]'
6140     ;;
6141     sco3.2v5*)
6142     symcode='[DT]'
6143     ;;
6144     sysv4.2uw2*)
6145     symcode='[DT]'
6146     ;;
6147     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6148     symcode='[ABDT]'
6149     ;;
6150     sysv4)
6151     symcode='[DFNSTU]'
6152     ;;
6153     esac
6154    
6155 michael 5059 # If we're using GNU nm, then use its standard symbol codes.
6156     case `$NM -V 2>&1` in
6157     *GNU* | *'with BFD'*)
6158     symcode='[ABCDGIRSTW]' ;;
6159     esac
6160    
6161     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162     # Gets list of data symbols to import.
6163     lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6164     # Adjust the below global symbol transforms to fixup imported variables.
6165     lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6166     lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6167     lt_c_name_lib_hook="\
6168     -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6169     -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6170     else
6171     # Disable hooks by default.
6172     lt_cv_sys_global_symbol_to_import=
6173     lt_cdecl_hook=
6174     lt_c_name_hook=
6175     lt_c_name_lib_hook=
6176     fi
6177    
6178     # Transform an extracted symbol line into a proper C declaration.
6179     # Some systems (esp. on ia64) link data and code symbols differently,
6180     # so use this general approach.
6181     lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6182     $lt_cdecl_hook\
6183     " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6184     " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6185    
6186     # Transform an extracted symbol line into symbol name and symbol address
6187     lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6188     $lt_c_name_hook\
6189     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6190     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6191    
6192     # Transform an extracted symbol line into symbol name with lib prefix and
6193     # symbol address.
6194     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6195     $lt_c_name_lib_hook\
6196     " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6197     " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6198     " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6199    
6200 michael 5052 # Handle CRLF in mingw tool chain
6201     opt_cr=
6202     case $build_os in
6203     mingw*)
6204 michael 5059 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6205 michael 5052 ;;
6206     esac
6207    
6208 michael 5059 # Try without a prefix underscore, then with it.
6209 michael 5052 for ac_symprfx in "" "_"; do
6210    
6211     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6212     symxfrm="\\1 $ac_symprfx\\2 \\2"
6213    
6214     # Write the raw and C identifiers.
6215 michael 5059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6216     # Fake it for dumpbin and say T for any non-static function,
6217     # D for any global variable and I for any imported variable.
6218     # Also find C++ and __fastcall symbols from MSVC++,
6219     # which start with @ or ?.
6220     lt_cv_sys_global_symbol_pipe="$AWK '"\
6221     " {last_section=section; section=\$ 3};"\
6222     " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6223     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6224     " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6225     " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6226     " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6227     " \$ 0!~/External *\|/{next};"\
6228     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6229     " {if(hide[section]) next};"\
6230     " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6231     " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6232     " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6233     " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6234     " ' prfx=^$ac_symprfx"
6235     else
6236     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6237     fi
6238     lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6239 michael 5052
6240     # Check to see that the pipe works correctly.
6241     pipe_works=no
6242    
6243     rm -f conftest*
6244 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
6245 michael 5052 #ifdef __cplusplus
6246     extern "C" {
6247     #endif
6248     char nm_test_var;
6249 michael 5059 void nm_test_func(void);
6250     void nm_test_func(void){}
6251 michael 5052 #ifdef __cplusplus
6252     }
6253     #endif
6254     int main(){nm_test_var='a';nm_test_func();return(0);}
6255 michael 5059 _LT_EOF
6256 michael 5052
6257 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258 michael 5052 (eval $ac_compile) 2>&5
6259     ac_status=$?
6260 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261     test $ac_status = 0; }; then
6262 michael 5052 # Now try to grab the symbols.
6263     nlist=conftest.nm
6264 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6265     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6266 michael 5052 ac_status=$?
6267 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6268     test $ac_status = 0; } && test -s "$nlist"; then
6269 michael 5052 # Try sorting and uniquifying the output.
6270     if sort "$nlist" | uniq > "$nlist"T; then
6271     mv -f "$nlist"T "$nlist"
6272     else
6273     rm -f "$nlist"T
6274     fi
6275    
6276     # Make sure that we snagged all the symbols we need.
6277 michael 5059 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6278     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6279     cat <<_LT_EOF > conftest.$ac_ext
6280     /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6281     #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6282     /* DATA imports from DLLs on WIN32 can't be const, because runtime
6283     relocations are performed -- see ld's documentation on pseudo-relocs. */
6284     # define LT_DLSYM_CONST
6285     #elif defined __osf__
6286     /* This system does not cope well with relocations in const data. */
6287     # define LT_DLSYM_CONST
6288     #else
6289     # define LT_DLSYM_CONST const
6290     #endif
6291    
6292 michael 5052 #ifdef __cplusplus
6293     extern "C" {
6294     #endif
6295    
6296 michael 5059 _LT_EOF
6297 michael 5052 # Now generate the symbol file.
6298 michael 5059 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6299 michael 5052
6300 michael 5059 cat <<_LT_EOF >> conftest.$ac_ext
6301 michael 5052
6302 michael 5059 /* The mapping between symbol names and symbols. */
6303     LT_DLSYM_CONST struct {
6304 michael 5052 const char *name;
6305 michael 5059 void *address;
6306 michael 5052 }
6307 michael 5059 lt__PROGRAM__LTX_preloaded_symbols[] =
6308 michael 5052 {
6309 michael 5059 { "@PROGRAM@", (void *) 0 },
6310     _LT_EOF
6311     $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6312     cat <<\_LT_EOF >> conftest.$ac_ext
6313     {0, (void *) 0}
6314 michael 5052 };
6315    
6316 michael 5059 /* This works around a problem in FreeBSD linker */
6317     #ifdef FREEBSD_WORKAROUND
6318     static const void *lt_preloaded_setup() {
6319     return lt__PROGRAM__LTX_preloaded_symbols;
6320     }
6321     #endif
6322    
6323 michael 5052 #ifdef __cplusplus
6324     }
6325     #endif
6326 michael 5059 _LT_EOF
6327 michael 5052 # Now try linking the two files.
6328     mv conftest.$ac_objext conftstm.$ac_objext
6329 michael 5059 lt_globsym_save_LIBS=$LIBS
6330     lt_globsym_save_CFLAGS=$CFLAGS
6331     LIBS=conftstm.$ac_objext
6332 michael 5052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6333 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6334 michael 5052 (eval $ac_link) 2>&5
6335     ac_status=$?
6336 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337     test $ac_status = 0; } && test -s conftest$ac_exeext; then
6338 michael 5052 pipe_works=yes
6339     fi
6340 michael 5059 LIBS=$lt_globsym_save_LIBS
6341     CFLAGS=$lt_globsym_save_CFLAGS
6342 michael 5052 else
6343     echo "cannot find nm_test_func in $nlist" >&5
6344     fi
6345     else
6346     echo "cannot find nm_test_var in $nlist" >&5
6347     fi
6348     else
6349     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6350     fi
6351     else
6352     echo "$progname: failed program was:" >&5
6353     cat conftest.$ac_ext >&5
6354     fi
6355 michael 5059 rm -rf conftest* conftst*
6356 michael 5052
6357     # Do not use the global_symbol_pipe unless it works.
6358 michael 5059 if test yes = "$pipe_works"; then
6359 michael 5052 break
6360     else
6361     lt_cv_sys_global_symbol_pipe=
6362     fi
6363     done
6364    
6365     fi
6366    
6367     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6368     lt_cv_sys_global_symbol_to_cdecl=
6369     fi
6370     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6371 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6372     $as_echo "failed" >&6; }
6373 michael 5052 else
6374 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6375     $as_echo "ok" >&6; }
6376 michael 5052 fi
6377    
6378 michael 5059 # Response file support.
6379     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6380     nm_file_list_spec='@'
6381     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6382     nm_file_list_spec='@'
6383     fi
6384    
6385    
6386    
6387    
6388    
6389    
6390    
6391    
6392    
6393    
6394    
6395    
6396    
6397    
6398    
6399    
6400    
6401    
6402    
6403    
6404    
6405    
6406    
6407    
6408    
6409    
6410    
6411    
6412    
6413    
6414    
6415    
6416    
6417    
6418    
6419    
6420    
6421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6422     $as_echo_n "checking for sysroot... " >&6; }
6423    
6424     # Check whether --with-sysroot was given.
6425     if test "${with_sysroot+set}" = set; then :
6426     withval=$with_sysroot;
6427 michael 5052 else
6428 michael 5059 with_sysroot=no
6429     fi
6430    
6431    
6432     lt_sysroot=
6433     case $with_sysroot in #(
6434     yes)
6435     if test yes = "$GCC"; then
6436     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6437     fi
6438     ;; #(
6439     /*)
6440     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6441     ;; #(
6442     no|'')
6443     ;; #(
6444     *)
6445     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6446     $as_echo "$with_sysroot" >&6; }
6447     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6448     ;;
6449     esac
6450    
6451     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6452     $as_echo "${lt_sysroot:-no}" >&6; }
6453    
6454    
6455    
6456    
6457    
6458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6459     $as_echo_n "checking for a working dd... " >&6; }
6460     if ${ac_cv_path_lt_DD+:} false; then :
6461     $as_echo_n "(cached) " >&6
6462 michael 5052 else
6463 michael 5059 printf 0123456789abcdef0123456789abcdef >conftest.i
6464     cat conftest.i conftest.i >conftest2.i
6465     : ${lt_DD:=$DD}
6466     if test -z "$lt_DD"; then
6467     ac_path_lt_DD_found=false
6468     # Loop through the user's path and test for each of PROGNAME-LIST
6469     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470     for as_dir in $PATH
6471     do
6472     IFS=$as_save_IFS
6473     test -z "$as_dir" && as_dir=.
6474     for ac_prog in dd; do
6475     for ac_exec_ext in '' $ac_executable_extensions; do
6476     ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6477     as_fn_executable_p "$ac_path_lt_DD" || continue
6478     if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6479     cmp -s conftest.i conftest.out \
6480     && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6481 michael 5052 fi
6482 michael 5059 $ac_path_lt_DD_found && break 3
6483     done
6484     done
6485     done
6486     IFS=$as_save_IFS
6487     if test -z "$ac_cv_path_lt_DD"; then
6488     :
6489     fi
6490     else
6491     ac_cv_path_lt_DD=$lt_DD
6492 michael 5052 fi
6493    
6494 michael 5059 rm -f conftest.i conftest2.i conftest.out
6495     fi
6496     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6497     $as_echo "$ac_cv_path_lt_DD" >&6; }
6498 michael 5052
6499    
6500 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6501     $as_echo_n "checking how to truncate binary pipes... " >&6; }
6502     if ${lt_cv_truncate_bin+:} false; then :
6503     $as_echo_n "(cached) " >&6
6504     else
6505     printf 0123456789abcdef0123456789abcdef >conftest.i
6506     cat conftest.i conftest.i >conftest2.i
6507     lt_cv_truncate_bin=
6508     if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6509     cmp -s conftest.i conftest.out \
6510     && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6511     fi
6512     rm -f conftest.i conftest2.i conftest.out
6513     test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6514     fi
6515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6516     $as_echo "$lt_cv_truncate_bin" >&6; }
6517 michael 5052
6518    
6519 michael 5059
6520    
6521    
6522    
6523     # Check whether --enable-libtool-lock was given.
6524     if test "${enable_libtool_lock+set}" = set; then :
6525     enableval=$enable_libtool_lock;
6526     fi
6527    
6528     test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6529    
6530     # Some flags need to be propagated to the compiler or linker for good
6531     # libtool support.
6532     case $host in
6533     ia64-*-hpux*)
6534     # Find out what ABI is being produced by ac_compile, and set mode
6535     # options accordingly.
6536     echo 'int i;' > conftest.$ac_ext
6537     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6538     (eval $ac_compile) 2>&5
6539     ac_status=$?
6540     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541     test $ac_status = 0; }; then
6542     case `/usr/bin/file conftest.$ac_objext` in
6543     *ELF-32*)
6544     HPUX_IA64_MODE=32
6545     ;;
6546     *ELF-64*)
6547     HPUX_IA64_MODE=64
6548     ;;
6549     esac
6550 michael 5052 fi
6551 michael 5059 rm -rf conftest*
6552 michael 5052 ;;
6553 michael 5059 *-*-irix6*)
6554     # Find out what ABI is being produced by ac_compile, and set linker
6555     # options accordingly.
6556     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6557     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6558     (eval $ac_compile) 2>&5
6559     ac_status=$?
6560     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6561     test $ac_status = 0; }; then
6562     if test yes = "$lt_cv_prog_gnu_ld"; then
6563     case `/usr/bin/file conftest.$ac_objext` in
6564     *32-bit*)
6565     LD="${LD-ld} -melf32bsmip"
6566     ;;
6567     *N32*)
6568     LD="${LD-ld} -melf32bmipn32"
6569     ;;
6570     *64-bit*)
6571     LD="${LD-ld} -melf64bmip"
6572     ;;
6573     esac
6574     else
6575     case `/usr/bin/file conftest.$ac_objext` in
6576     *32-bit*)
6577     LD="${LD-ld} -32"
6578     ;;
6579     *N32*)
6580     LD="${LD-ld} -n32"
6581     ;;
6582     *64-bit*)
6583     LD="${LD-ld} -64"
6584     ;;
6585     esac
6586     fi
6587     fi
6588     rm -rf conftest*
6589     ;;
6590 michael 5052
6591 michael 5059 mips64*-*linux*)
6592     # Find out what ABI is being produced by ac_compile, and set linker
6593     # options accordingly.
6594     echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6595     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6596     (eval $ac_compile) 2>&5
6597     ac_status=$?
6598     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6599     test $ac_status = 0; }; then
6600     emul=elf
6601     case `/usr/bin/file conftest.$ac_objext` in
6602     *32-bit*)
6603     emul="${emul}32"
6604     ;;
6605     *64-bit*)
6606     emul="${emul}64"
6607     ;;
6608     esac
6609     case `/usr/bin/file conftest.$ac_objext` in
6610     *MSB*)
6611     emul="${emul}btsmip"
6612     ;;
6613     *LSB*)
6614     emul="${emul}ltsmip"
6615     ;;
6616     esac
6617     case `/usr/bin/file conftest.$ac_objext` in
6618     *N32*)
6619     emul="${emul}n32"
6620     ;;
6621     esac
6622     LD="${LD-ld} -m $emul"
6623     fi
6624     rm -rf conftest*
6625     ;;
6626 michael 5052
6627 michael 5059 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6628     s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6629     # Find out what ABI is being produced by ac_compile, and set linker
6630     # options accordingly. Note that the listed cases only cover the
6631     # situations where additional linker options are needed (such as when
6632     # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6633     # vice versa); the common cases where no linker options are needed do
6634     # not appear in the list.
6635     echo 'int i;' > conftest.$ac_ext
6636     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6637     (eval $ac_compile) 2>&5
6638     ac_status=$?
6639     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640     test $ac_status = 0; }; then
6641     case `/usr/bin/file conftest.o` in
6642     *32-bit*)
6643     case $host in
6644     x86_64-*kfreebsd*-gnu)
6645     LD="${LD-ld} -m elf_i386_fbsd"
6646     ;;
6647     x86_64-*linux*)
6648     case `/usr/bin/file conftest.o` in
6649     *x86-64*)
6650     LD="${LD-ld} -m elf32_x86_64"
6651     ;;
6652     *)
6653     LD="${LD-ld} -m elf_i386"
6654     ;;
6655     esac
6656     ;;
6657     powerpc64le-*linux*)
6658     LD="${LD-ld} -m elf32lppclinux"
6659     ;;
6660     powerpc64-*linux*)
6661     LD="${LD-ld} -m elf32ppclinux"
6662     ;;
6663     s390x-*linux*)
6664     LD="${LD-ld} -m elf_s390"
6665     ;;
6666     sparc64-*linux*)
6667     LD="${LD-ld} -m elf32_sparc"
6668     ;;
6669     esac
6670     ;;
6671     *64-bit*)
6672     case $host in
6673     x86_64-*kfreebsd*-gnu)
6674     LD="${LD-ld} -m elf_x86_64_fbsd"
6675     ;;
6676     x86_64-*linux*)
6677     LD="${LD-ld} -m elf_x86_64"
6678     ;;
6679     powerpcle-*linux*)
6680     LD="${LD-ld} -m elf64lppc"
6681     ;;
6682     powerpc-*linux*)
6683     LD="${LD-ld} -m elf64ppc"
6684     ;;
6685     s390*-*linux*|s390*-*tpf*)
6686     LD="${LD-ld} -m elf64_s390"
6687     ;;
6688     sparc*-*linux*)
6689     LD="${LD-ld} -m elf64_sparc"
6690     ;;
6691     esac
6692     ;;
6693     esac
6694     fi
6695     rm -rf conftest*
6696     ;;
6697 michael 5052
6698 michael 5059 *-*-sco3.2v5*)
6699     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6700     SAVE_CFLAGS=$CFLAGS
6701     CFLAGS="$CFLAGS -belf"
6702     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6703     $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6704     if ${lt_cv_cc_needs_belf+:} false; then :
6705     $as_echo_n "(cached) " >&6
6706     else
6707     ac_ext=c
6708     ac_cpp='$CPP $CPPFLAGS'
6709     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6710     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6711     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6712 michael 5052
6713 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714     /* end confdefs.h. */
6715 michael 5052
6716 michael 5059 int
6717     main ()
6718     {
6719 michael 5052
6720 michael 5059 ;
6721     return 0;
6722     }
6723     _ACEOF
6724     if ac_fn_c_try_link "$LINENO"; then :
6725     lt_cv_cc_needs_belf=yes
6726     else
6727     lt_cv_cc_needs_belf=no
6728     fi
6729     rm -f core conftest.err conftest.$ac_objext \
6730     conftest$ac_exeext conftest.$ac_ext
6731     ac_ext=c
6732     ac_cpp='$CPP $CPPFLAGS'
6733     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736 michael 5052
6737 michael 5059 fi
6738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6739     $as_echo "$lt_cv_cc_needs_belf" >&6; }
6740     if test yes != "$lt_cv_cc_needs_belf"; then
6741     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6742     CFLAGS=$SAVE_CFLAGS
6743     fi
6744     ;;
6745     *-*solaris*)
6746     # Find out what ABI is being produced by ac_compile, and set linker
6747     # options accordingly.
6748     echo 'int i;' > conftest.$ac_ext
6749     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750     (eval $ac_compile) 2>&5
6751     ac_status=$?
6752     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753     test $ac_status = 0; }; then
6754     case `/usr/bin/file conftest.o` in
6755     *64-bit*)
6756     case $lt_cv_prog_gnu_ld in
6757     yes*)
6758     case $host in
6759     i?86-*-solaris*|x86_64-*-solaris*)
6760     LD="${LD-ld} -m elf_x86_64"
6761     ;;
6762     sparc*-*-solaris*)
6763     LD="${LD-ld} -m elf64_sparc"
6764     ;;
6765     esac
6766     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6767     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6768     LD=${LD-ld}_sol2
6769     fi
6770     ;;
6771     *)
6772     if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6773     LD="${LD-ld} -64"
6774     fi
6775     ;;
6776     esac
6777     ;;
6778     esac
6779     fi
6780     rm -rf conftest*
6781     ;;
6782     esac
6783 michael 5052
6784 michael 5059 need_locks=$enable_libtool_lock
6785    
6786 michael 5052 if test -n "$ac_tool_prefix"; then
6787 michael 5059 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6788     set dummy ${ac_tool_prefix}mt; ac_word=$2
6789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790     $as_echo_n "checking for $ac_word... " >&6; }
6791     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6792     $as_echo_n "(cached) " >&6
6793 michael 5052 else
6794 michael 5059 if test -n "$MANIFEST_TOOL"; then
6795     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6796 michael 5052 else
6797     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798     for as_dir in $PATH
6799     do
6800     IFS=$as_save_IFS
6801     test -z "$as_dir" && as_dir=.
6802 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6803     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 michael 5052 break 2
6807     fi
6808     done
6809 michael 5059 done
6810     IFS=$as_save_IFS
6811    
6812     fi
6813     fi
6814     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6815     if test -n "$MANIFEST_TOOL"; then
6816     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6817     $as_echo "$MANIFEST_TOOL" >&6; }
6818     else
6819     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820     $as_echo "no" >&6; }
6821     fi
6822    
6823    
6824     fi
6825     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6826     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6827     # Extract the first word of "mt", so it can be a program name with args.
6828     set dummy mt; ac_word=$2
6829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830     $as_echo_n "checking for $ac_word... " >&6; }
6831     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6832     $as_echo_n "(cached) " >&6
6833     else
6834     if test -n "$ac_ct_MANIFEST_TOOL"; then
6835     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6836     else
6837     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838     for as_dir in $PATH
6839     do
6840     IFS=$as_save_IFS
6841     test -z "$as_dir" && as_dir=.
6842     for ac_exec_ext in '' $ac_executable_extensions; do
6843     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846     break 2
6847     fi
6848 michael 5052 done
6849 michael 5059 done
6850 michael 5052 IFS=$as_save_IFS
6851    
6852     fi
6853     fi
6854 michael 5059 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6855     if test -n "$ac_ct_MANIFEST_TOOL"; then
6856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6857     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6858 michael 5052 else
6859 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860     $as_echo "no" >&6; }
6861 michael 5052 fi
6862    
6863 michael 5059 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6864     MANIFEST_TOOL=":"
6865     else
6866     case $cross_compiling:$ac_tool_warned in
6867     yes:)
6868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870     ac_tool_warned=yes ;;
6871     esac
6872     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6873     fi
6874     else
6875     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6876     fi
6877 michael 5052
6878 michael 5059 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6880     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6881     if ${lt_cv_path_mainfest_tool+:} false; then :
6882     $as_echo_n "(cached) " >&6
6883     else
6884     lt_cv_path_mainfest_tool=no
6885     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6886     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6887     cat conftest.err >&5
6888     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6889     lt_cv_path_mainfest_tool=yes
6890     fi
6891     rm -f conftest*
6892 michael 5052 fi
6893 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6894     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6895     if test yes != "$lt_cv_path_mainfest_tool"; then
6896     MANIFEST_TOOL=:
6897     fi
6898    
6899    
6900    
6901    
6902    
6903    
6904     case $host_os in
6905     rhapsody* | darwin*)
6906     if test -n "$ac_tool_prefix"; then
6907     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6908     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6909     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910     $as_echo_n "checking for $ac_word... " >&6; }
6911     if ${ac_cv_prog_DSYMUTIL+:} false; then :
6912     $as_echo_n "(cached) " >&6
6913 michael 5052 else
6914 michael 5059 if test -n "$DSYMUTIL"; then
6915     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6916 michael 5052 else
6917     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918     for as_dir in $PATH
6919     do
6920     IFS=$as_save_IFS
6921     test -z "$as_dir" && as_dir=.
6922 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
6923     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6924     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 michael 5052 break 2
6927     fi
6928     done
6929 michael 5059 done
6930     IFS=$as_save_IFS
6931    
6932     fi
6933     fi
6934     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6935     if test -n "$DSYMUTIL"; then
6936     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6937     $as_echo "$DSYMUTIL" >&6; }
6938     else
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940     $as_echo "no" >&6; }
6941     fi
6942    
6943    
6944     fi
6945     if test -z "$ac_cv_prog_DSYMUTIL"; then
6946     ac_ct_DSYMUTIL=$DSYMUTIL
6947     # Extract the first word of "dsymutil", so it can be a program name with args.
6948     set dummy dsymutil; ac_word=$2
6949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950     $as_echo_n "checking for $ac_word... " >&6; }
6951     if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6952     $as_echo_n "(cached) " >&6
6953     else
6954     if test -n "$ac_ct_DSYMUTIL"; then
6955     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6956     else
6957     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958     for as_dir in $PATH
6959     do
6960     IFS=$as_save_IFS
6961     test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967     fi
6968 michael 5052 done
6969 michael 5059 done
6970 michael 5052 IFS=$as_save_IFS
6971    
6972     fi
6973     fi
6974 michael 5059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6975     if test -n "$ac_ct_DSYMUTIL"; then
6976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6977     $as_echo "$ac_ct_DSYMUTIL" >&6; }
6978 michael 5052 else
6979 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980     $as_echo "no" >&6; }
6981 michael 5052 fi
6982    
6983 michael 5059 if test "x$ac_ct_DSYMUTIL" = x; then
6984     DSYMUTIL=":"
6985 michael 5052 else
6986     case $cross_compiling:$ac_tool_warned in
6987     yes:)
6988 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 michael 5052 ac_tool_warned=yes ;;
6991     esac
6992 michael 5059 DSYMUTIL=$ac_ct_DSYMUTIL
6993 michael 5052 fi
6994     else
6995 michael 5059 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6996 michael 5052 fi
6997    
6998 michael 5059 if test -n "$ac_tool_prefix"; then
6999     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7000     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002     $as_echo_n "checking for $ac_word... " >&6; }
7003     if ${ac_cv_prog_NMEDIT+:} false; then :
7004     $as_echo_n "(cached) " >&6
7005 michael 5052 else
7006 michael 5059 if test -n "$NMEDIT"; then
7007     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7008 michael 5052 else
7009     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010     for as_dir in $PATH
7011     do
7012     IFS=$as_save_IFS
7013     test -z "$as_dir" && as_dir=.
7014 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7015     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 michael 5052 break 2
7019     fi
7020     done
7021 michael 5059 done
7022 michael 5052 IFS=$as_save_IFS
7023    
7024     fi
7025     fi
7026 michael 5059 NMEDIT=$ac_cv_prog_NMEDIT
7027     if test -n "$NMEDIT"; then
7028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7029     $as_echo "$NMEDIT" >&6; }
7030 michael 5052 else
7031 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032     $as_echo "no" >&6; }
7033 michael 5052 fi
7034    
7035    
7036     fi
7037 michael 5059 if test -z "$ac_cv_prog_NMEDIT"; then
7038     ac_ct_NMEDIT=$NMEDIT
7039     # Extract the first word of "nmedit", so it can be a program name with args.
7040     set dummy nmedit; ac_word=$2
7041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042     $as_echo_n "checking for $ac_word... " >&6; }
7043     if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7044     $as_echo_n "(cached) " >&6
7045 michael 5052 else
7046 michael 5059 if test -n "$ac_ct_NMEDIT"; then
7047     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7048 michael 5052 else
7049     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050     for as_dir in $PATH
7051     do
7052     IFS=$as_save_IFS
7053     test -z "$as_dir" && as_dir=.
7054 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7055     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 michael 5052 break 2
7059     fi
7060     done
7061 michael 5059 done
7062 michael 5052 IFS=$as_save_IFS
7063    
7064     fi
7065     fi
7066 michael 5059 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7067     if test -n "$ac_ct_NMEDIT"; then
7068     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7069     $as_echo "$ac_ct_NMEDIT" >&6; }
7070 michael 5052 else
7071 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072     $as_echo "no" >&6; }
7073 michael 5052 fi
7074    
7075 michael 5059 if test "x$ac_ct_NMEDIT" = x; then
7076     NMEDIT=":"
7077 michael 5052 else
7078     case $cross_compiling:$ac_tool_warned in
7079     yes:)
7080 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 michael 5052 ac_tool_warned=yes ;;
7083     esac
7084 michael 5059 NMEDIT=$ac_ct_NMEDIT
7085 michael 5052 fi
7086     else
7087 michael 5059 NMEDIT="$ac_cv_prog_NMEDIT"
7088 michael 5052 fi
7089    
7090 michael 5059 if test -n "$ac_tool_prefix"; then
7091     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7092     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094     $as_echo_n "checking for $ac_word... " >&6; }
7095     if ${ac_cv_prog_LIPO+:} false; then :
7096     $as_echo_n "(cached) " >&6
7097 michael 5052 else
7098 michael 5059 if test -n "$LIPO"; then
7099     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7100 michael 5052 else
7101     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102     for as_dir in $PATH
7103     do
7104     IFS=$as_save_IFS
7105     test -z "$as_dir" && as_dir=.
7106 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7107     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 michael 5052 break 2
7111     fi
7112     done
7113 michael 5059 done
7114     IFS=$as_save_IFS
7115    
7116     fi
7117     fi
7118     LIPO=$ac_cv_prog_LIPO
7119     if test -n "$LIPO"; then
7120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7121     $as_echo "$LIPO" >&6; }
7122     else
7123     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124     $as_echo "no" >&6; }
7125     fi
7126    
7127    
7128     fi
7129     if test -z "$ac_cv_prog_LIPO"; then
7130     ac_ct_LIPO=$LIPO
7131     # Extract the first word of "lipo", so it can be a program name with args.
7132     set dummy lipo; ac_word=$2
7133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134     $as_echo_n "checking for $ac_word... " >&6; }
7135     if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7136     $as_echo_n "(cached) " >&6
7137     else
7138     if test -n "$ac_ct_LIPO"; then
7139     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7140     else
7141     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142     for as_dir in $PATH
7143     do
7144     IFS=$as_save_IFS
7145     test -z "$as_dir" && as_dir=.
7146     for ac_exec_ext in '' $ac_executable_extensions; do
7147     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148     ac_cv_prog_ac_ct_LIPO="lipo"
7149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150     break 2
7151     fi
7152 michael 5052 done
7153 michael 5059 done
7154 michael 5052 IFS=$as_save_IFS
7155    
7156     fi
7157     fi
7158 michael 5059 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7159     if test -n "$ac_ct_LIPO"; then
7160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7161     $as_echo "$ac_ct_LIPO" >&6; }
7162 michael 5052 else
7163 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164     $as_echo "no" >&6; }
7165 michael 5052 fi
7166    
7167 michael 5059 if test "x$ac_ct_LIPO" = x; then
7168     LIPO=":"
7169     else
7170     case $cross_compiling:$ac_tool_warned in
7171     yes:)
7172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174     ac_tool_warned=yes ;;
7175     esac
7176     LIPO=$ac_ct_LIPO
7177     fi
7178     else
7179     LIPO="$ac_cv_prog_LIPO"
7180     fi
7181 michael 5052
7182 michael 5059 if test -n "$ac_tool_prefix"; then
7183     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7184     set dummy ${ac_tool_prefix}otool; ac_word=$2
7185     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186     $as_echo_n "checking for $ac_word... " >&6; }
7187     if ${ac_cv_prog_OTOOL+:} false; then :
7188     $as_echo_n "(cached) " >&6
7189     else
7190     if test -n "$OTOOL"; then
7191     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7192     else
7193     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194     for as_dir in $PATH
7195     do
7196     IFS=$as_save_IFS
7197     test -z "$as_dir" && as_dir=.
7198     for ac_exec_ext in '' $ac_executable_extensions; do
7199     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7200     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202     break 2
7203     fi
7204     done
7205     done
7206     IFS=$as_save_IFS
7207    
7208 michael 5052 fi
7209 michael 5059 fi
7210     OTOOL=$ac_cv_prog_OTOOL
7211     if test -n "$OTOOL"; then
7212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7213     $as_echo "$OTOOL" >&6; }
7214 michael 5052 else
7215 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216     $as_echo "no" >&6; }
7217     fi
7218    
7219    
7220     fi
7221     if test -z "$ac_cv_prog_OTOOL"; then
7222     ac_ct_OTOOL=$OTOOL
7223     # Extract the first word of "otool", so it can be a program name with args.
7224     set dummy otool; ac_word=$2
7225     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226     $as_echo_n "checking for $ac_word... " >&6; }
7227     if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7228     $as_echo_n "(cached) " >&6
7229 michael 5052 else
7230 michael 5059 if test -n "$ac_ct_OTOOL"; then
7231     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7232     else
7233 michael 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234     for as_dir in $PATH
7235     do
7236     IFS=$as_save_IFS
7237     test -z "$as_dir" && as_dir=.
7238 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
7239     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7240     ac_cv_prog_ac_ct_OTOOL="otool"
7241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 michael 5052 break 2
7243     fi
7244     done
7245 michael 5059 done
7246     IFS=$as_save_IFS
7247    
7248     fi
7249     fi
7250     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7251     if test -n "$ac_ct_OTOOL"; then
7252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7253     $as_echo "$ac_ct_OTOOL" >&6; }
7254     else
7255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256     $as_echo "no" >&6; }
7257     fi
7258    
7259     if test "x$ac_ct_OTOOL" = x; then
7260     OTOOL=":"
7261     else
7262     case $cross_compiling:$ac_tool_warned in
7263     yes:)
7264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266     ac_tool_warned=yes ;;
7267     esac
7268     OTOOL=$ac_ct_OTOOL
7269     fi
7270     else
7271     OTOOL="$ac_cv_prog_OTOOL"
7272     fi
7273    
7274     if test -n "$ac_tool_prefix"; then
7275     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7276     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278     $as_echo_n "checking for $ac_word... " >&6; }
7279     if ${ac_cv_prog_OTOOL64+:} false; then :
7280     $as_echo_n "(cached) " >&6
7281     else
7282     if test -n "$OTOOL64"; then
7283     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7284     else
7285     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286     for as_dir in $PATH
7287     do
7288     IFS=$as_save_IFS
7289     test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295     fi
7296 michael 5052 done
7297 michael 5059 done
7298 michael 5052 IFS=$as_save_IFS
7299    
7300     fi
7301     fi
7302 michael 5059 OTOOL64=$ac_cv_prog_OTOOL64
7303     if test -n "$OTOOL64"; then
7304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7305     $as_echo "$OTOOL64" >&6; }
7306 michael 5052 else
7307 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308     $as_echo "no" >&6; }
7309 michael 5052 fi
7310    
7311 michael 5059
7312     fi
7313     if test -z "$ac_cv_prog_OTOOL64"; then
7314     ac_ct_OTOOL64=$OTOOL64
7315     # Extract the first word of "otool64", so it can be a program name with args.
7316     set dummy otool64; ac_word=$2
7317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318     $as_echo_n "checking for $ac_word... " >&6; }
7319     if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7320     $as_echo_n "(cached) " >&6
7321     else
7322     if test -n "$ac_ct_OTOOL64"; then
7323     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7324     else
7325     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326     for as_dir in $PATH
7327     do
7328     IFS=$as_save_IFS
7329     test -z "$as_dir" && as_dir=.
7330     for ac_exec_ext in '' $ac_executable_extensions; do
7331     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332     ac_cv_prog_ac_ct_OTOOL64="otool64"
7333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334     break 2
7335     fi
7336     done
7337     done
7338     IFS=$as_save_IFS
7339    
7340     fi
7341     fi
7342     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7343     if test -n "$ac_ct_OTOOL64"; then
7344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7345     $as_echo "$ac_ct_OTOOL64" >&6; }
7346     else
7347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348     $as_echo "no" >&6; }
7349     fi
7350    
7351     if test "x$ac_ct_OTOOL64" = x; then
7352     OTOOL64=":"
7353 michael 5052 else
7354     case $cross_compiling:$ac_tool_warned in
7355     yes:)
7356 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 michael 5052 ac_tool_warned=yes ;;
7359     esac
7360 michael 5059 OTOOL64=$ac_ct_OTOOL64
7361 michael 5052 fi
7362     else
7363 michael 5059 OTOOL64="$ac_cv_prog_OTOOL64"
7364 michael 5052 fi
7365    
7366    
7367    
7368 michael 5059
7369    
7370    
7371    
7372    
7373    
7374    
7375    
7376    
7377    
7378    
7379    
7380    
7381    
7382    
7383    
7384    
7385    
7386    
7387    
7388    
7389    
7390    
7391    
7392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7393     $as_echo_n "checking for -single_module linker flag... " >&6; }
7394     if ${lt_cv_apple_cc_single_mod+:} false; then :
7395     $as_echo_n "(cached) " >&6
7396     else
7397     lt_cv_apple_cc_single_mod=no
7398     if test -z "$LT_MULTI_MODULE"; then
7399     # By default we will add the -single_module flag. You can override
7400     # by either setting the environment variable LT_MULTI_MODULE
7401     # non-empty at configure time, or by adding -multi_module to the
7402     # link flags.
7403     rm -rf libconftest.dylib*
7404     echo "int foo(void){return 1;}" > conftest.c
7405     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7406     -dynamiclib -Wl,-single_module conftest.c" >&5
7407     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7408     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7409     _lt_result=$?
7410     # If there is a non-empty error log, and "single_module"
7411     # appears in it, assume the flag caused a linker warning
7412     if test -s conftest.err && $GREP single_module conftest.err; then
7413     cat conftest.err >&5
7414     # Otherwise, if the output was created with a 0 exit code from
7415     # the compiler, it worked.
7416     elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7417     lt_cv_apple_cc_single_mod=yes
7418     else
7419     cat conftest.err >&5
7420     fi
7421     rm -rf libconftest.dylib*
7422     rm -f conftest.*
7423     fi
7424     fi
7425     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7426     $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7427    
7428     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7429     $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7430     if ${lt_cv_ld_exported_symbols_list+:} false; then :
7431     $as_echo_n "(cached) " >&6
7432     else
7433     lt_cv_ld_exported_symbols_list=no
7434     save_LDFLAGS=$LDFLAGS
7435     echo "_main" > conftest.sym
7436     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438     /* end confdefs.h. */
7439    
7440     int
7441     main ()
7442     {
7443    
7444     ;
7445     return 0;
7446     }
7447     _ACEOF
7448     if ac_fn_c_try_link "$LINENO"; then :
7449     lt_cv_ld_exported_symbols_list=yes
7450     else
7451     lt_cv_ld_exported_symbols_list=no
7452     fi
7453     rm -f core conftest.err conftest.$ac_objext \
7454     conftest$ac_exeext conftest.$ac_ext
7455     LDFLAGS=$save_LDFLAGS
7456    
7457     fi
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7459     $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7460    
7461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7462     $as_echo_n "checking for -force_load linker flag... " >&6; }
7463     if ${lt_cv_ld_force_load+:} false; then :
7464     $as_echo_n "(cached) " >&6
7465     else
7466     lt_cv_ld_force_load=no
7467     cat > conftest.c << _LT_EOF
7468     int forced_loaded() { return 2;}
7469     _LT_EOF
7470     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7471     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7472     echo "$AR cru libconftest.a conftest.o" >&5
7473     $AR cru libconftest.a conftest.o 2>&5
7474     echo "$RANLIB libconftest.a" >&5
7475     $RANLIB libconftest.a 2>&5
7476     cat > conftest.c << _LT_EOF
7477     int main() { return 0;}
7478     _LT_EOF
7479     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7480     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7481     _lt_result=$?
7482     if test -s conftest.err && $GREP force_load conftest.err; then
7483     cat conftest.err >&5
7484     elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7485     lt_cv_ld_force_load=yes
7486     else
7487     cat conftest.err >&5
7488     fi
7489     rm -f conftest.err libconftest.a conftest conftest.c
7490     rm -rf conftest.dSYM
7491    
7492     fi
7493     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7494     $as_echo "$lt_cv_ld_force_load" >&6; }
7495     case $host_os in
7496     rhapsody* | darwin1.[012])
7497     _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7498     darwin1.*)
7499     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7500     darwin*) # darwin 5.x on
7501     # if running on 10.5 or later, the deployment target defaults
7502     # to the OS version, if on x86, and 10.4, the deployment
7503     # target defaults to 10.4. Don't you love it?
7504     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7505     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7506     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7507     10.[012][,.]*)
7508     _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7509     10.*)
7510     _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7511     esac
7512     ;;
7513     esac
7514     if test yes = "$lt_cv_apple_cc_single_mod"; then
7515     _lt_dar_single_mod='$single_module'
7516     fi
7517     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7518     _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7519     else
7520     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7521     fi
7522     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7523     _lt_dsymutil='~$DSYMUTIL $lib || :'
7524     else
7525     _lt_dsymutil=
7526     fi
7527     ;;
7528     esac
7529    
7530     ac_ext=c
7531     ac_cpp='$CPP $CPPFLAGS'
7532     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7536     $as_echo_n "checking how to run the C preprocessor... " >&6; }
7537     # On Suns, sometimes $CPP names a directory.
7538     if test -n "$CPP" && test -d "$CPP"; then
7539     CPP=
7540     fi
7541     if test -z "$CPP"; then
7542     if ${ac_cv_prog_CPP+:} false; then :
7543     $as_echo_n "(cached) " >&6
7544     else
7545     # Double quotes because CPP needs to be expanded
7546     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7547     do
7548     ac_preproc_ok=false
7549     for ac_c_preproc_warn_flag in '' yes
7550     do
7551     # Use a header file that comes with gcc, so configuring glibc
7552     # with a fresh cross-compiler works.
7553     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7554     # <limits.h> exists even on freestanding compilers.
7555     # On the NeXT, cc -E runs the code through the compiler's parser,
7556     # not just through cpp. "Syntax error" is here to catch this case.
7557     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558     /* end confdefs.h. */
7559     #ifdef __STDC__
7560     # include <limits.h>
7561     #else
7562     # include <assert.h>
7563     #endif
7564     Syntax error
7565     _ACEOF
7566     if ac_fn_c_try_cpp "$LINENO"; then :
7567    
7568     else
7569     # Broken: fails on valid input.
7570     continue
7571     fi
7572     rm -f conftest.err conftest.i conftest.$ac_ext
7573    
7574     # OK, works on sane cases. Now check whether nonexistent headers
7575     # can be detected and how.
7576     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577     /* end confdefs.h. */
7578     #include <ac_nonexistent.h>
7579     _ACEOF
7580     if ac_fn_c_try_cpp "$LINENO"; then :
7581     # Broken: success on invalid input.
7582     continue
7583     else
7584     # Passes both tests.
7585     ac_preproc_ok=:
7586     break
7587     fi
7588     rm -f conftest.err conftest.i conftest.$ac_ext
7589    
7590     done
7591     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7592     rm -f conftest.i conftest.err conftest.$ac_ext
7593     if $ac_preproc_ok; then :
7594     break
7595     fi
7596    
7597     done
7598     ac_cv_prog_CPP=$CPP
7599    
7600     fi
7601     CPP=$ac_cv_prog_CPP
7602     else
7603     ac_cv_prog_CPP=$CPP
7604     fi
7605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7606     $as_echo "$CPP" >&6; }
7607     ac_preproc_ok=false
7608     for ac_c_preproc_warn_flag in '' yes
7609     do
7610     # Use a header file that comes with gcc, so configuring glibc
7611     # with a fresh cross-compiler works.
7612     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7613     # <limits.h> exists even on freestanding compilers.
7614     # On the NeXT, cc -E runs the code through the compiler's parser,
7615     # not just through cpp. "Syntax error" is here to catch this case.
7616     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617     /* end confdefs.h. */
7618     #ifdef __STDC__
7619     # include <limits.h>
7620     #else
7621     # include <assert.h>
7622     #endif
7623     Syntax error
7624     _ACEOF
7625     if ac_fn_c_try_cpp "$LINENO"; then :
7626    
7627     else
7628     # Broken: fails on valid input.
7629     continue
7630     fi
7631     rm -f conftest.err conftest.i conftest.$ac_ext
7632    
7633     # OK, works on sane cases. Now check whether nonexistent headers
7634     # can be detected and how.
7635     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636     /* end confdefs.h. */
7637     #include <ac_nonexistent.h>
7638     _ACEOF
7639     if ac_fn_c_try_cpp "$LINENO"; then :
7640     # Broken: success on invalid input.
7641     continue
7642     else
7643     # Passes both tests.
7644     ac_preproc_ok=:
7645     break
7646     fi
7647     rm -f conftest.err conftest.i conftest.$ac_ext
7648    
7649     done
7650     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7651     rm -f conftest.i conftest.err conftest.$ac_ext
7652     if $ac_preproc_ok; then :
7653    
7654     else
7655     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7656     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7657     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7658     See \`config.log' for more details" "$LINENO" 5; }
7659     fi
7660    
7661     ac_ext=c
7662     ac_cpp='$CPP $CPPFLAGS'
7663     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666    
7667    
7668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7669     $as_echo_n "checking for ANSI C header files... " >&6; }
7670     if ${ac_cv_header_stdc+:} false; then :
7671     $as_echo_n "(cached) " >&6
7672     else
7673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674     /* end confdefs.h. */
7675     #include <stdlib.h>
7676     #include <stdarg.h>
7677     #include <string.h>
7678     #include <float.h>
7679    
7680     int
7681     main ()
7682     {
7683    
7684     ;
7685     return 0;
7686     }
7687     _ACEOF
7688     if ac_fn_c_try_compile "$LINENO"; then :
7689     ac_cv_header_stdc=yes
7690     else
7691     ac_cv_header_stdc=no
7692     fi
7693     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694    
7695     if test $ac_cv_header_stdc = yes; then
7696     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7697     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698     /* end confdefs.h. */
7699     #include <string.h>
7700    
7701     _ACEOF
7702     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703     $EGREP "memchr" >/dev/null 2>&1; then :
7704    
7705     else
7706     ac_cv_header_stdc=no
7707     fi
7708     rm -f conftest*
7709    
7710     fi
7711    
7712     if test $ac_cv_header_stdc = yes; then
7713     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715     /* end confdefs.h. */
7716     #include <stdlib.h>
7717    
7718     _ACEOF
7719     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7720     $EGREP "free" >/dev/null 2>&1; then :
7721    
7722     else
7723     ac_cv_header_stdc=no
7724     fi
7725     rm -f conftest*
7726    
7727     fi
7728    
7729     if test $ac_cv_header_stdc = yes; then
7730     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7731     if test "$cross_compiling" = yes; then :
7732     :
7733     else
7734     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735     /* end confdefs.h. */
7736     #include <ctype.h>
7737     #include <stdlib.h>
7738     #if ((' ' & 0x0FF) == 0x020)
7739     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7740     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7741     #else
7742     # define ISLOWER(c) \
7743     (('a' <= (c) && (c) <= 'i') \
7744     || ('j' <= (c) && (c) <= 'r') \
7745     || ('s' <= (c) && (c) <= 'z'))
7746     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7747     #endif
7748    
7749     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7750     int
7751     main ()
7752     {
7753     int i;
7754     for (i = 0; i < 256; i++)
7755     if (XOR (islower (i), ISLOWER (i))
7756     || toupper (i) != TOUPPER (i))
7757     return 2;
7758     return 0;
7759     }
7760     _ACEOF
7761     if ac_fn_c_try_run "$LINENO"; then :
7762    
7763     else
7764     ac_cv_header_stdc=no
7765     fi
7766     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7767     conftest.$ac_objext conftest.beam conftest.$ac_ext
7768     fi
7769    
7770     fi
7771     fi
7772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7773     $as_echo "$ac_cv_header_stdc" >&6; }
7774     if test $ac_cv_header_stdc = yes; then
7775    
7776     $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7777    
7778     fi
7779    
7780     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7781     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7782     inttypes.h stdint.h unistd.h
7783     do :
7784     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7785     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7786     "
7787     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7788     cat >>confdefs.h <<_ACEOF
7789     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7790     _ACEOF
7791    
7792     fi
7793    
7794     done
7795    
7796    
7797     for ac_header in dlfcn.h
7798     do :
7799     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7800     "
7801     if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7802     cat >>confdefs.h <<_ACEOF
7803     #define HAVE_DLFCN_H 1
7804     _ACEOF
7805    
7806     fi
7807    
7808     done
7809    
7810    
7811    
7812    
7813    
7814     # Set options
7815    
7816    
7817    
7818     enable_dlopen=no
7819    
7820    
7821     enable_win32_dll=no
7822    
7823    
7824     # Check whether --enable-shared was given.
7825     if test "${enable_shared+set}" = set; then :
7826     enableval=$enable_shared; p=${PACKAGE-default}
7827     case $enableval in
7828     yes) enable_shared=yes ;;
7829     no) enable_shared=no ;;
7830     *)
7831     enable_shared=no
7832     # Look at the argument we got. We use all the common list separators.
7833     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7834     for pkg in $enableval; do
7835     IFS=$lt_save_ifs
7836     if test "X$pkg" = "X$p"; then
7837     enable_shared=yes
7838     fi
7839     done
7840     IFS=$lt_save_ifs
7841     ;;
7842     esac
7843     else
7844     enable_shared=yes
7845     fi
7846    
7847    
7848    
7849    
7850    
7851    
7852    
7853    
7854    
7855     # Check whether --enable-static was given.
7856     if test "${enable_static+set}" = set; then :
7857     enableval=$enable_static; p=${PACKAGE-default}
7858     case $enableval in
7859     yes) enable_static=yes ;;
7860     no) enable_static=no ;;
7861     *)
7862     enable_static=no
7863     # Look at the argument we got. We use all the common list separators.
7864     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7865     for pkg in $enableval; do
7866     IFS=$lt_save_ifs
7867     if test "X$pkg" = "X$p"; then
7868     enable_static=yes
7869     fi
7870     done
7871     IFS=$lt_save_ifs
7872     ;;
7873     esac
7874     else
7875     enable_static=yes
7876     fi
7877    
7878    
7879    
7880    
7881    
7882    
7883    
7884    
7885    
7886    
7887     # Check whether --with-pic was given.
7888     if test "${with_pic+set}" = set; then :
7889     withval=$with_pic; lt_p=${PACKAGE-default}
7890     case $withval in
7891     yes|no) pic_mode=$withval ;;
7892     *)
7893     pic_mode=default
7894     # Look at the argument we got. We use all the common list separators.
7895     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7896     for lt_pkg in $withval; do
7897     IFS=$lt_save_ifs
7898     if test "X$lt_pkg" = "X$lt_p"; then
7899     pic_mode=yes
7900     fi
7901     done
7902     IFS=$lt_save_ifs
7903     ;;
7904     esac
7905     else
7906     pic_mode=default
7907     fi
7908    
7909    
7910    
7911    
7912    
7913    
7914    
7915    
7916     # Check whether --enable-fast-install was given.
7917     if test "${enable_fast_install+set}" = set; then :
7918     enableval=$enable_fast_install; p=${PACKAGE-default}
7919     case $enableval in
7920     yes) enable_fast_install=yes ;;
7921     no) enable_fast_install=no ;;
7922     *)
7923     enable_fast_install=no
7924     # Look at the argument we got. We use all the common list separators.
7925     lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7926     for pkg in $enableval; do
7927     IFS=$lt_save_ifs
7928     if test "X$pkg" = "X$p"; then
7929     enable_fast_install=yes
7930     fi
7931     done
7932     IFS=$lt_save_ifs
7933     ;;
7934     esac
7935     else
7936     enable_fast_install=yes
7937     fi
7938    
7939    
7940    
7941    
7942    
7943    
7944    
7945    
7946     shared_archive_member_spec=
7947     case $host,$enable_shared in
7948     power*-*-aix[5-9]*,yes)
7949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7950     $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7951    
7952     # Check whether --with-aix-soname was given.
7953     if test "${with_aix_soname+set}" = set; then :
7954     withval=$with_aix_soname; case $withval in
7955     aix|svr4|both)
7956     ;;
7957     *)
7958     as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7959     ;;
7960     esac
7961     lt_cv_with_aix_soname=$with_aix_soname
7962     else
7963     if ${lt_cv_with_aix_soname+:} false; then :
7964     $as_echo_n "(cached) " >&6
7965     else
7966     lt_cv_with_aix_soname=aix
7967     fi
7968    
7969     with_aix_soname=$lt_cv_with_aix_soname
7970     fi
7971    
7972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7973     $as_echo "$with_aix_soname" >&6; }
7974     if test aix != "$with_aix_soname"; then
7975     # For the AIX way of multilib, we name the shared archive member
7976     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7977     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7978     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7979     # the AIX toolchain works better with OBJECT_MODE set (default 32).
7980     if test 64 = "${OBJECT_MODE-32}"; then
7981     shared_archive_member_spec=shr_64
7982     else
7983     shared_archive_member_spec=shr
7984     fi
7985     fi
7986     ;;
7987     *)
7988     with_aix_soname=aix
7989     ;;
7990     esac
7991    
7992    
7993    
7994    
7995    
7996    
7997    
7998    
7999    
8000    
8001     # This can be used to rebuild libtool when needed
8002     LIBTOOL_DEPS=$ltmain
8003    
8004     # Always use our own libtool.
8005     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8006    
8007    
8008    
8009    
8010    
8011    
8012    
8013    
8014    
8015    
8016    
8017    
8018    
8019    
8020    
8021    
8022    
8023    
8024    
8025    
8026    
8027    
8028    
8029    
8030    
8031    
8032    
8033    
8034    
8035    
8036     test -z "$LN_S" && LN_S="ln -s"
8037    
8038    
8039    
8040    
8041    
8042    
8043    
8044    
8045    
8046    
8047    
8048    
8049    
8050    
8051     if test -n "${ZSH_VERSION+set}"; then
8052     setopt NO_GLOB_SUBST
8053     fi
8054    
8055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8056     $as_echo_n "checking for objdir... " >&6; }
8057     if ${lt_cv_objdir+:} false; then :
8058     $as_echo_n "(cached) " >&6
8059     else
8060     rm -f .libs 2>/dev/null
8061     mkdir .libs 2>/dev/null
8062     if test -d .libs; then
8063     lt_cv_objdir=.libs
8064     else
8065     # MS-DOS does not allow filenames that begin with a dot.
8066     lt_cv_objdir=_libs
8067     fi
8068     rmdir .libs 2>/dev/null
8069     fi
8070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8071     $as_echo "$lt_cv_objdir" >&6; }
8072     objdir=$lt_cv_objdir
8073    
8074    
8075    
8076    
8077    
8078     cat >>confdefs.h <<_ACEOF
8079     #define LT_OBJDIR "$lt_cv_objdir/"
8080     _ACEOF
8081    
8082    
8083    
8084    
8085     case $host_os in
8086     aix3*)
8087     # AIX sometimes has problems with the GCC collect2 program. For some
8088     # reason, if we set the COLLECT_NAMES environment variable, the problems
8089     # vanish in a puff of smoke.
8090     if test set != "${COLLECT_NAMES+set}"; then
8091     COLLECT_NAMES=
8092     export COLLECT_NAMES
8093     fi
8094     ;;
8095     esac
8096    
8097     # Global variables:
8098     ofile=libtool
8099     can_build_shared=yes
8100    
8101     # All known linkers require a '.a' archive for static linking (except MSVC,
8102     # which needs '.lib').
8103     libext=a
8104    
8105     with_gnu_ld=$lt_cv_prog_gnu_ld
8106    
8107     old_CC=$CC
8108     old_CFLAGS=$CFLAGS
8109    
8110 michael 5052 # Set sane defaults for various variables
8111     test -z "$CC" && CC=cc
8112     test -z "$LTCC" && LTCC=$CC
8113     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8114     test -z "$LD" && LD=ld
8115     test -z "$ac_objext" && ac_objext=o
8116    
8117     for cc_temp in $compiler""; do
8118     case $cc_temp in
8119     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8120     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8121     \-*) ;;
8122     *) break;;
8123     esac
8124     done
8125 michael 5059 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8126 michael 5052
8127    
8128     # Only perform the check for file, if the check method requires it
8129 michael 5059 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8130 michael 5052 case $deplibs_check_method in
8131     file_magic*)
8132     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8133 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8134     $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8135     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8136     $as_echo_n "(cached) " >&6
8137 michael 5052 else
8138     case $MAGIC_CMD in
8139     [\\/*] | ?:[\\/]*)
8140 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8141 michael 5052 ;;
8142     *)
8143 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8144     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8145 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8146     for ac_dir in $ac_dummy; do
8147 michael 5059 IFS=$lt_save_ifs
8148 michael 5052 test -z "$ac_dir" && ac_dir=.
8149 michael 5059 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8150     lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8151 michael 5052 if test -n "$file_magic_test_file"; then
8152     case $deplibs_check_method in
8153     "file_magic "*)
8154     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8155 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8156 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8157     $EGREP "$file_magic_regex" > /dev/null; then
8158     :
8159     else
8160 michael 5059 cat <<_LT_EOF 1>&2
8161 michael 5052
8162     *** Warning: the command libtool uses to detect shared libraries,
8163     *** $file_magic_cmd, produces output that libtool cannot recognize.
8164     *** The result is that libtool may fail to recognize shared libraries
8165     *** as such. This will affect the creation of libtool libraries that
8166     *** depend on shared libraries, but programs linked with such libtool
8167     *** libraries will work regardless of this problem. Nevertheless, you
8168     *** may want to report the problem to your system manager and/or to
8169     *** bug-libtool@gnu.org
8170    
8171 michael 5059 _LT_EOF
8172 michael 5052 fi ;;
8173     esac
8174     fi
8175     break
8176     fi
8177     done
8178 michael 5059 IFS=$lt_save_ifs
8179     MAGIC_CMD=$lt_save_MAGIC_CMD
8180 michael 5052 ;;
8181     esac
8182     fi
8183    
8184 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8185 michael 5052 if test -n "$MAGIC_CMD"; then
8186 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8187     $as_echo "$MAGIC_CMD" >&6; }
8188 michael 5052 else
8189 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190     $as_echo "no" >&6; }
8191 michael 5052 fi
8192    
8193 michael 5059
8194    
8195    
8196    
8197 michael 5052 if test -z "$lt_cv_path_MAGIC_CMD"; then
8198     if test -n "$ac_tool_prefix"; then
8199 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8200     $as_echo_n "checking for file... " >&6; }
8201     if ${lt_cv_path_MAGIC_CMD+:} false; then :
8202     $as_echo_n "(cached) " >&6
8203 michael 5052 else
8204     case $MAGIC_CMD in
8205     [\\/*] | ?:[\\/]*)
8206 michael 5059 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8207 michael 5052 ;;
8208     *)
8209 michael 5059 lt_save_MAGIC_CMD=$MAGIC_CMD
8210     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8211 michael 5052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212     for ac_dir in $ac_dummy; do
8213 michael 5059 IFS=$lt_save_ifs
8214 michael 5052 test -z "$ac_dir" && ac_dir=.
8215 michael 5059 if test -f "$ac_dir/file"; then
8216     lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8217 michael 5052 if test -n "$file_magic_test_file"; then
8218     case $deplibs_check_method in
8219     "file_magic "*)
8220     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8221 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8222 michael 5052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223     $EGREP "$file_magic_regex" > /dev/null; then
8224     :
8225     else
8226 michael 5059 cat <<_LT_EOF 1>&2
8227 michael 5052
8228     *** Warning: the command libtool uses to detect shared libraries,
8229     *** $file_magic_cmd, produces output that libtool cannot recognize.
8230     *** The result is that libtool may fail to recognize shared libraries
8231     *** as such. This will affect the creation of libtool libraries that
8232     *** depend on shared libraries, but programs linked with such libtool
8233     *** libraries will work regardless of this problem. Nevertheless, you
8234     *** may want to report the problem to your system manager and/or to
8235     *** bug-libtool@gnu.org
8236    
8237 michael 5059 _LT_EOF
8238 michael 5052 fi ;;
8239     esac
8240     fi
8241     break
8242     fi
8243     done
8244 michael 5059 IFS=$lt_save_ifs
8245     MAGIC_CMD=$lt_save_MAGIC_CMD
8246 michael 5052 ;;
8247     esac
8248     fi
8249    
8250 michael 5059 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8251 michael 5052 if test -n "$MAGIC_CMD"; then
8252 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8253     $as_echo "$MAGIC_CMD" >&6; }
8254 michael 5052 else
8255 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256     $as_echo "no" >&6; }
8257 michael 5052 fi
8258    
8259 michael 5059
8260 michael 5052 else
8261     MAGIC_CMD=:
8262     fi
8263     fi
8264    
8265     fi
8266     ;;
8267     esac
8268    
8269 michael 5059 # Use C for the default configuration in the libtool script
8270 michael 5052
8271 michael 5059 lt_save_CC=$CC
8272 michael 5052 ac_ext=c
8273     ac_cpp='$CPP $CPPFLAGS'
8274     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8277    
8278    
8279     # Source file extension for C test sources.
8280     ac_ext=c
8281    
8282     # Object file extension for compiled C test sources.
8283     objext=o
8284     objext=$objext
8285    
8286     # Code to be used in simple compile tests
8287 michael 5059 lt_simple_compile_test_code="int some_variable = 0;"
8288 michael 5052
8289     # Code to be used in simple link tests
8290 michael 5059 lt_simple_link_test_code='int main(){return(0);}'
8291 michael 5052
8292    
8293 michael 5059
8294    
8295    
8296    
8297    
8298 michael 5052 # If no C compiler was specified, use CC.
8299     LTCC=${LTCC-"$CC"}
8300    
8301     # If no C compiler flags were specified, use CFLAGS.
8302     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8303    
8304     # Allow CC to be a program name with arguments.
8305     compiler=$CC
8306    
8307 michael 5059 # Save the default compiler, since it gets overwritten when the other
8308     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8309     compiler_DEFAULT=$CC
8310 michael 5052
8311     # save warnings/boilerplate of simple test code
8312     ac_outfile=conftest.$ac_objext
8313 michael 5059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8314 michael 5052 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8315     _lt_compiler_boilerplate=`cat conftest.err`
8316 michael 5059 $RM conftest*
8317 michael 5052
8318     ac_outfile=conftest.$ac_objext
8319 michael 5059 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8320 michael 5052 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8321     _lt_linker_boilerplate=`cat conftest.err`
8322 michael 5059 $RM -r conftest*
8323 michael 5052
8324    
8325 michael 5059 if test -n "$compiler"; then
8326 michael 5052
8327     lt_prog_compiler_no_builtin_flag=
8328    
8329 michael 5059 if test yes = "$GCC"; then
8330     case $cc_basename in
8331     nvcc*)
8332     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8333     *)
8334     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8335     esac
8336 michael 5052
8337 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8338     $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8339     if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8340     $as_echo_n "(cached) " >&6
8341 michael 5052 else
8342     lt_cv_prog_compiler_rtti_exceptions=no
8343 michael 5059 ac_outfile=conftest.$ac_objext
8344     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8345     lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8346 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8347     # (2) before a word containing "conftest.", or (3) at the end.
8348     # Note that $ac_compile itself does not contain backslashes and begins
8349     # with a dollar sign (not a hyphen), so the echo should work correctly.
8350     # The option is referenced via a variable to avoid confusing sed.
8351     lt_compile=`echo "$ac_compile" | $SED \
8352     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8353     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8354     -e 's:$: $lt_compiler_flag:'`
8355 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8356 michael 5052 (eval "$lt_compile" 2>conftest.err)
8357     ac_status=$?
8358     cat conftest.err >&5
8359 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8361     # The compiler can only warn and ignore the option if not recognized
8362     # So say no if there are warnings other than the usual output.
8363 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8364 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8365     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8366     lt_cv_prog_compiler_rtti_exceptions=yes
8367     fi
8368     fi
8369 michael 5059 $RM conftest*
8370 michael 5052
8371     fi
8372 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8373     $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8374 michael 5052
8375 michael 5059 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8376 michael 5052 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8377     else
8378     :
8379     fi
8380    
8381     fi
8382    
8383 michael 5059
8384    
8385    
8386    
8387    
8388     lt_prog_compiler_wl=
8389 michael 5052 lt_prog_compiler_pic=
8390     lt_prog_compiler_static=
8391    
8392    
8393 michael 5059 if test yes = "$GCC"; then
8394 michael 5052 lt_prog_compiler_wl='-Wl,'
8395     lt_prog_compiler_static='-static'
8396    
8397     case $host_os in
8398     aix*)
8399     # All AIX code is PIC.
8400 michael 5059 if test ia64 = "$host_cpu"; then
8401 michael 5052 # AIX 5 now supports IA64 processor
8402     lt_prog_compiler_static='-Bstatic'
8403     fi
8404 michael 5059 lt_prog_compiler_pic='-fPIC'
8405 michael 5052 ;;
8406    
8407     amigaos*)
8408 michael 5059 case $host_cpu in
8409     powerpc)
8410     # see comment about AmigaOS4 .so support
8411     lt_prog_compiler_pic='-fPIC'
8412     ;;
8413     m68k)
8414     # FIXME: we need at least 68020 code to build shared libraries, but
8415     # adding the '-m68020' flag to GCC prevents building anything better,
8416     # like '-m68040'.
8417     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8418     ;;
8419     esac
8420 michael 5052 ;;
8421    
8422 michael 5059 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8423 michael 5052 # PIC is the default for these OSes.
8424     ;;
8425    
8426 michael 5059 mingw* | cygwin* | pw32* | os2* | cegcc*)
8427 michael 5052 # This hack is so that the source file can tell whether it is being
8428     # built for inclusion in a dll (and should export symbols for example).
8429 michael 5059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8430     # (--disable-auto-import) libraries
8431 michael 5052 lt_prog_compiler_pic='-DDLL_EXPORT'
8432 michael 5059 case $host_os in
8433     os2*)
8434     lt_prog_compiler_static='$wl-static'
8435     ;;
8436     esac
8437 michael 5052 ;;
8438    
8439     darwin* | rhapsody*)
8440     # PIC is the default on this platform
8441     # Common symbols not allowed in MH_DYLIB files
8442     lt_prog_compiler_pic='-fno-common'
8443     ;;
8444    
8445 michael 5059 haiku*)
8446     # PIC is the default for Haiku.
8447     # The "-static" flag exists, but is broken.
8448     lt_prog_compiler_static=
8449     ;;
8450    
8451     hpux*)
8452     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8453     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8454     # sets the default TLS model and affects inlining.
8455     case $host_cpu in
8456     hppa*64*)
8457     # +Z the default
8458     ;;
8459     *)
8460     lt_prog_compiler_pic='-fPIC'
8461     ;;
8462     esac
8463     ;;
8464    
8465     interix[3-9]*)
8466 michael 5052 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8467     # Instead, we relocate shared libraries at runtime.
8468     ;;
8469    
8470     msdosdjgpp*)
8471     # Just because we use GCC doesn't mean we suddenly get shared libraries
8472     # on systems that don't support them.
8473     lt_prog_compiler_can_build_shared=no
8474     enable_shared=no
8475     ;;
8476    
8477 michael 5059 *nto* | *qnx*)
8478     # QNX uses GNU C++, but need to define -shared option too, otherwise
8479     # it will coredump.
8480     lt_prog_compiler_pic='-fPIC -shared'
8481     ;;
8482    
8483 michael 5052 sysv4*MP*)
8484     if test -d /usr/nec; then
8485     lt_prog_compiler_pic=-Kconform_pic
8486     fi
8487     ;;
8488    
8489     *)
8490     lt_prog_compiler_pic='-fPIC'
8491     ;;
8492     esac
8493 michael 5059
8494     case $cc_basename in
8495     nvcc*) # Cuda Compiler Driver 2.2
8496     lt_prog_compiler_wl='-Xlinker '
8497     if test -n "$lt_prog_compiler_pic"; then
8498     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8499     fi
8500     ;;
8501     esac
8502 michael 5052 else
8503     # PORTME Check for flag to pass linker flags through the system compiler.
8504     case $host_os in
8505     aix*)
8506     lt_prog_compiler_wl='-Wl,'
8507 michael 5059 if test ia64 = "$host_cpu"; then
8508 michael 5052 # AIX 5 now supports IA64 processor
8509     lt_prog_compiler_static='-Bstatic'
8510     else
8511     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8512     fi
8513     ;;
8514    
8515 michael 5059 darwin* | rhapsody*)
8516     # PIC is the default on this platform
8517     # Common symbols not allowed in MH_DYLIB files
8518     lt_prog_compiler_pic='-fno-common'
8519     case $cc_basename in
8520     nagfor*)
8521     # NAG Fortran compiler
8522     lt_prog_compiler_wl='-Wl,-Wl,,'
8523     lt_prog_compiler_pic='-PIC'
8524     lt_prog_compiler_static='-Bstatic'
8525     ;;
8526     esac
8527     ;;
8528    
8529     mingw* | cygwin* | pw32* | os2* | cegcc*)
8530 michael 5052 # This hack is so that the source file can tell whether it is being
8531     # built for inclusion in a dll (and should export symbols for example).
8532     lt_prog_compiler_pic='-DDLL_EXPORT'
8533 michael 5059 case $host_os in
8534     os2*)
8535     lt_prog_compiler_static='$wl-static'
8536     ;;
8537     esac
8538 michael 5052 ;;
8539    
8540     hpux9* | hpux10* | hpux11*)
8541     lt_prog_compiler_wl='-Wl,'
8542     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8543     # not for PA HP-UX.
8544     case $host_cpu in
8545     hppa*64*|ia64*)
8546     # +Z the default
8547     ;;
8548     *)
8549     lt_prog_compiler_pic='+Z'
8550     ;;
8551     esac
8552     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8553 michael 5059 lt_prog_compiler_static='$wl-a ${wl}archive'
8554 michael 5052 ;;
8555    
8556     irix5* | irix6* | nonstopux*)
8557     lt_prog_compiler_wl='-Wl,'
8558     # PIC (with -KPIC) is the default.
8559     lt_prog_compiler_static='-non_shared'
8560     ;;
8561    
8562 michael 5059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8563 michael 5052 case $cc_basename in
8564 michael 5059 # old Intel for x86_64, which still supported -KPIC.
8565     ecc*)
8566 michael 5052 lt_prog_compiler_wl='-Wl,'
8567     lt_prog_compiler_pic='-KPIC'
8568     lt_prog_compiler_static='-static'
8569     ;;
8570 michael 5059 # icc used to be incompatible with GCC.
8571     # ICC 10 doesn't accept -KPIC any more.
8572     icc* | ifort*)
8573     lt_prog_compiler_wl='-Wl,'
8574     lt_prog_compiler_pic='-fPIC'
8575     lt_prog_compiler_static='-static'
8576     ;;
8577     # Lahey Fortran 8.1.
8578     lf95*)
8579     lt_prog_compiler_wl='-Wl,'
8580     lt_prog_compiler_pic='--shared'
8581     lt_prog_compiler_static='--static'
8582     ;;
8583     nagfor*)
8584     # NAG Fortran compiler
8585     lt_prog_compiler_wl='-Wl,-Wl,,'
8586     lt_prog_compiler_pic='-PIC'
8587     lt_prog_compiler_static='-Bstatic'
8588     ;;
8589     tcc*)
8590     # Fabrice Bellard et al's Tiny C Compiler
8591     lt_prog_compiler_wl='-Wl,'
8592     lt_prog_compiler_pic='-fPIC'
8593     lt_prog_compiler_static='-static'
8594     ;;
8595     pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8596 michael 5052 # Portland Group compilers (*not* the Pentium gcc compiler,
8597     # which looks to be a dead project)
8598     lt_prog_compiler_wl='-Wl,'
8599     lt_prog_compiler_pic='-fpic'
8600     lt_prog_compiler_static='-Bstatic'
8601     ;;
8602     ccc*)
8603     lt_prog_compiler_wl='-Wl,'
8604     # All Alpha code is PIC.
8605     lt_prog_compiler_static='-non_shared'
8606     ;;
8607 michael 5059 xl* | bgxl* | bgf* | mpixl*)
8608     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8609     lt_prog_compiler_wl='-Wl,'
8610     lt_prog_compiler_pic='-qpic'
8611     lt_prog_compiler_static='-qstaticlink'
8612     ;;
8613     *)
8614     case `$CC -V 2>&1 | sed 5q` in
8615     *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8616     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8617     lt_prog_compiler_pic='-KPIC'
8618     lt_prog_compiler_static='-Bstatic'
8619     lt_prog_compiler_wl=''
8620     ;;
8621     *Sun\ F* | *Sun*Fortran*)
8622     lt_prog_compiler_pic='-KPIC'
8623     lt_prog_compiler_static='-Bstatic'
8624     lt_prog_compiler_wl='-Qoption ld '
8625     ;;
8626     *Sun\ C*)
8627     # Sun C 5.9
8628     lt_prog_compiler_pic='-KPIC'
8629     lt_prog_compiler_static='-Bstatic'
8630     lt_prog_compiler_wl='-Wl,'
8631     ;;
8632     *Intel*\ [CF]*Compiler*)
8633     lt_prog_compiler_wl='-Wl,'
8634     lt_prog_compiler_pic='-fPIC'
8635     lt_prog_compiler_static='-static'
8636     ;;
8637     *Portland\ Group*)
8638     lt_prog_compiler_wl='-Wl,'
8639     lt_prog_compiler_pic='-fpic'
8640     lt_prog_compiler_static='-Bstatic'
8641     ;;
8642     esac
8643     ;;
8644 michael 5052 esac
8645     ;;
8646    
8647 michael 5059 newsos6)
8648     lt_prog_compiler_pic='-KPIC'
8649     lt_prog_compiler_static='-Bstatic'
8650     ;;
8651    
8652     *nto* | *qnx*)
8653     # QNX uses GNU C++, but need to define -shared option too, otherwise
8654     # it will coredump.
8655     lt_prog_compiler_pic='-fPIC -shared'
8656     ;;
8657    
8658 michael 5052 osf3* | osf4* | osf5*)
8659     lt_prog_compiler_wl='-Wl,'
8660     # All OSF/1 code is PIC.
8661     lt_prog_compiler_static='-non_shared'
8662     ;;
8663    
8664 michael 5059 rdos*)
8665     lt_prog_compiler_static='-non_shared'
8666     ;;
8667    
8668 michael 5052 solaris*)
8669     lt_prog_compiler_pic='-KPIC'
8670     lt_prog_compiler_static='-Bstatic'
8671     case $cc_basename in
8672 michael 5059 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8673 michael 5052 lt_prog_compiler_wl='-Qoption ld ';;
8674     *)
8675     lt_prog_compiler_wl='-Wl,';;
8676     esac
8677     ;;
8678    
8679     sunos4*)
8680     lt_prog_compiler_wl='-Qoption ld '
8681     lt_prog_compiler_pic='-PIC'
8682     lt_prog_compiler_static='-Bstatic'
8683     ;;
8684    
8685     sysv4 | sysv4.2uw2* | sysv4.3*)
8686     lt_prog_compiler_wl='-Wl,'
8687     lt_prog_compiler_pic='-KPIC'
8688     lt_prog_compiler_static='-Bstatic'
8689     ;;
8690    
8691     sysv4*MP*)
8692 michael 5059 if test -d /usr/nec; then
8693 michael 5052 lt_prog_compiler_pic='-Kconform_pic'
8694     lt_prog_compiler_static='-Bstatic'
8695     fi
8696     ;;
8697    
8698     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8699     lt_prog_compiler_wl='-Wl,'
8700     lt_prog_compiler_pic='-KPIC'
8701     lt_prog_compiler_static='-Bstatic'
8702     ;;
8703    
8704     unicos*)
8705     lt_prog_compiler_wl='-Wl,'
8706     lt_prog_compiler_can_build_shared=no
8707     ;;
8708    
8709     uts4*)
8710     lt_prog_compiler_pic='-pic'
8711     lt_prog_compiler_static='-Bstatic'
8712     ;;
8713    
8714     *)
8715     lt_prog_compiler_can_build_shared=no
8716     ;;
8717     esac
8718     fi
8719    
8720 michael 5059 case $host_os in
8721     # For platforms that do not support PIC, -DPIC is meaningless:
8722     *djgpp*)
8723     lt_prog_compiler_pic=
8724     ;;
8725     *)
8726     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8727     ;;
8728     esac
8729 michael 5052
8730 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8731     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8732     if ${lt_cv_prog_compiler_pic+:} false; then :
8733     $as_echo_n "(cached) " >&6
8734     else
8735     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8736     fi
8737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8738     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8739     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8740    
8741 michael 5052 #
8742     # Check to make sure the PIC flag actually works.
8743     #
8744     if test -n "$lt_prog_compiler_pic"; then
8745 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8746     $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8747     if ${lt_cv_prog_compiler_pic_works+:} false; then :
8748     $as_echo_n "(cached) " >&6
8749 michael 5052 else
8750 michael 5059 lt_cv_prog_compiler_pic_works=no
8751     ac_outfile=conftest.$ac_objext
8752     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8753     lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8754 michael 5052 # Insert the option either (1) after the last *FLAGS variable, or
8755     # (2) before a word containing "conftest.", or (3) at the end.
8756     # Note that $ac_compile itself does not contain backslashes and begins
8757     # with a dollar sign (not a hyphen), so the echo should work correctly.
8758     # The option is referenced via a variable to avoid confusing sed.
8759     lt_compile=`echo "$ac_compile" | $SED \
8760     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8761     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8762     -e 's:$: $lt_compiler_flag:'`
8763 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8764 michael 5052 (eval "$lt_compile" 2>conftest.err)
8765     ac_status=$?
8766     cat conftest.err >&5
8767 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 michael 5052 if (exit $ac_status) && test -s "$ac_outfile"; then
8769     # The compiler can only warn and ignore the option if not recognized
8770     # So say no if there are warnings other than the usual output.
8771 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8772 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8773     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8774 michael 5059 lt_cv_prog_compiler_pic_works=yes
8775 michael 5052 fi
8776     fi
8777 michael 5059 $RM conftest*
8778 michael 5052
8779     fi
8780 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8781     $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8782 michael 5052
8783 michael 5059 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8784 michael 5052 case $lt_prog_compiler_pic in
8785     "" | " "*) ;;
8786     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8787     esac
8788     else
8789     lt_prog_compiler_pic=
8790     lt_prog_compiler_can_build_shared=no
8791     fi
8792    
8793     fi
8794    
8795 michael 5059
8796    
8797    
8798    
8799    
8800    
8801    
8802    
8803    
8804    
8805 michael 5052 #
8806     # Check to make sure the static flag actually works.
8807     #
8808     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8809 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8810     $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8811     if ${lt_cv_prog_compiler_static_works+:} false; then :
8812     $as_echo_n "(cached) " >&6
8813 michael 5052 else
8814 michael 5059 lt_cv_prog_compiler_static_works=no
8815     save_LDFLAGS=$LDFLAGS
8816 michael 5052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8817 michael 5059 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8818 michael 5052 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8819     # The linker can only warn and ignore the option if not recognized
8820     # So say no if there are warnings
8821     if test -s conftest.err; then
8822     # Append any errors to the config.log.
8823     cat conftest.err 1>&5
8824 michael 5059 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8825 michael 5052 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8826     if diff conftest.exp conftest.er2 >/dev/null; then
8827 michael 5059 lt_cv_prog_compiler_static_works=yes
8828 michael 5052 fi
8829     else
8830 michael 5059 lt_cv_prog_compiler_static_works=yes
8831 michael 5052 fi
8832     fi
8833 michael 5059 $RM -r conftest*
8834     LDFLAGS=$save_LDFLAGS
8835 michael 5052
8836     fi
8837 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8838     $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8839 michael 5052
8840 michael 5059 if test yes = "$lt_cv_prog_compiler_static_works"; then
8841 michael 5052 :
8842     else
8843     lt_prog_compiler_static=
8844     fi
8845    
8846    
8847 michael 5059
8848    
8849    
8850    
8851    
8852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8854     if ${lt_cv_prog_compiler_c_o+:} false; then :
8855     $as_echo_n "(cached) " >&6
8856 michael 5052 else
8857     lt_cv_prog_compiler_c_o=no
8858 michael 5059 $RM -r conftest 2>/dev/null
8859 michael 5052 mkdir conftest
8860     cd conftest
8861     mkdir out
8862 michael 5059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8863 michael 5052
8864     lt_compiler_flag="-o out/conftest2.$ac_objext"
8865     # Insert the option either (1) after the last *FLAGS variable, or
8866     # (2) before a word containing "conftest.", or (3) at the end.
8867     # Note that $ac_compile itself does not contain backslashes and begins
8868     # with a dollar sign (not a hyphen), so the echo should work correctly.
8869     lt_compile=`echo "$ac_compile" | $SED \
8870     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872     -e 's:$: $lt_compiler_flag:'`
8873 michael 5059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8874 michael 5052 (eval "$lt_compile" 2>out/conftest.err)
8875     ac_status=$?
8876     cat out/conftest.err >&5
8877 michael 5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 michael 5052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879     then
8880     # The compiler can only warn and ignore the option if not recognized
8881     # So say no if there are warnings
8882 michael 5059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8883 michael 5052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885     lt_cv_prog_compiler_c_o=yes
8886     fi
8887     fi
8888     chmod u+w . 2>&5
8889 michael 5059 $RM conftest*
8890 michael 5052 # SGI C++ compiler will create directory out/ii_files/ for
8891     # template instantiation
8892 michael 5059 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893     $RM out/* && rmdir out
8894 michael 5052 cd ..
8895 michael 5059 $RM -r conftest
8896     $RM conftest*
8897 michael 5052
8898     fi
8899 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8901 michael 5052
8902    
8903 michael 5059
8904    
8905    
8906    
8907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908     $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909     if ${lt_cv_prog_compiler_c_o+:} false; then :
8910     $as_echo_n "(cached) " >&6
8911     else
8912     lt_cv_prog_compiler_c_o=no
8913     $RM -r conftest 2>/dev/null
8914     mkdir conftest
8915     cd conftest
8916     mkdir out
8917     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918    
8919     lt_compiler_flag="-o out/conftest2.$ac_objext"
8920     # Insert the option either (1) after the last *FLAGS variable, or
8921     # (2) before a word containing "conftest.", or (3) at the end.
8922     # Note that $ac_compile itself does not contain backslashes and begins
8923     # with a dollar sign (not a hyphen), so the echo should work correctly.
8924     lt_compile=`echo "$ac_compile" | $SED \
8925     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927     -e 's:$: $lt_compiler_flag:'`
8928     (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929     (eval "$lt_compile" 2>out/conftest.err)
8930     ac_status=$?
8931     cat out/conftest.err >&5
8932     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933     if (exit $ac_status) && test -s out/conftest2.$ac_objext
8934     then
8935     # The compiler can only warn and ignore the option if not recognized
8936     # So say no if there are warnings
8937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940     lt_cv_prog_compiler_c_o=yes
8941     fi
8942     fi
8943     chmod u+w . 2>&5
8944     $RM conftest*
8945     # SGI C++ compiler will create directory out/ii_files/ for
8946     # template instantiation
8947     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948     $RM out/* && rmdir out
8949     cd ..
8950     $RM -r conftest
8951     $RM conftest*
8952    
8953     fi
8954     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955     $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8956    
8957    
8958    
8959    
8960     hard_links=nottested
8961     if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8962 michael 5052 # do not overwrite the value of need_locks provided by the user
8963 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964     $as_echo_n "checking if we can lock with hard links... " >&6; }
8965 michael 5052 hard_links=yes
8966 michael 5059 $RM conftest*
8967 michael 5052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8968     touch conftest.a
8969     ln conftest.a conftest.b 2>&5 || hard_links=no
8970     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972     $as_echo "$hard_links" >&6; }
8973     if test no = "$hard_links"; then
8974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8975     $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8976 michael 5052 need_locks=warn
8977     fi
8978     else
8979     need_locks=no
8980     fi
8981    
8982    
8983 michael 5059
8984    
8985    
8986    
8987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8988     $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8989    
8990 michael 5052 runpath_var=
8991     allow_undefined_flag=
8992 michael 5059 always_export_symbols=no
8993 michael 5052 archive_cmds=
8994     archive_expsym_cmds=
8995 michael 5059 compiler_needs_object=no
8996     enable_shared_with_static_runtimes=no
8997 michael 5052 export_dynamic_flag_spec=
8998 michael 5059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8999     hardcode_automatic=no
9000     hardcode_direct=no
9001     hardcode_direct_absolute=no
9002 michael 5052 hardcode_libdir_flag_spec=
9003     hardcode_libdir_separator=
9004     hardcode_minus_L=no
9005     hardcode_shlibpath_var=unsupported
9006 michael 5059 inherit_rpath=no
9007 michael 5052 link_all_deplibs=unknown
9008     module_cmds=
9009     module_expsym_cmds=
9010 michael 5059 old_archive_from_new_cmds=
9011     old_archive_from_expsyms_cmds=
9012     thread_safe_flag_spec=
9013     whole_archive_flag_spec=
9014 michael 5052 # include_expsyms should be a list of space-separated symbols to be *always*
9015     # included in the symbol list
9016     include_expsyms=
9017     # exclude_expsyms can be an extended regexp of symbols to exclude
9018 michael 5059 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9019     # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9020     # as well as any symbol that contains 'd'.
9021     exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9022 michael 5052 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9023     # platforms (ab)use it in PIC code, but their linkers get confused if
9024     # the symbol is explicitly referenced. Since portable code cannot
9025     # rely on this symbol name, it's probably fine to never include it in
9026     # preloaded symbol tables.
9027 michael 5059 # Exclude shared library initialization/finalization symbols.
9028 michael 5052 extract_expsyms_cmds=
9029    
9030     case $host_os in
9031 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9032 michael 5052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9033     # When not using gcc, we currently assume that we are using
9034     # Microsoft Visual C++.
9035 michael 5059 if test yes != "$GCC"; then
9036 michael 5052 with_gnu_ld=no
9037     fi
9038     ;;
9039     interix*)
9040     # we just hope/assume this is gcc and not c89 (= MSVC++)
9041     with_gnu_ld=yes
9042     ;;
9043 michael 5059 openbsd* | bitrig*)
9044 michael 5052 with_gnu_ld=no
9045     ;;
9046     esac
9047    
9048     ld_shlibs=yes
9049 michael 5059
9050     # On some targets, GNU ld is compatible enough with the native linker
9051     # that we're better off using the native interface for both.
9052     lt_use_gnu_ld_interface=no
9053     if test yes = "$with_gnu_ld"; then
9054     case $host_os in
9055     aix*)
9056     # The AIX port of GNU ld has always aspired to compatibility
9057     # with the native linker. However, as the warning in the GNU ld
9058     # block says, versions before 2.19.5* couldn't really create working
9059     # shared libraries, regardless of the interface used.
9060     case `$LD -v 2>&1` in
9061     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9062     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9063     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9064     *)
9065     lt_use_gnu_ld_interface=yes
9066     ;;
9067     esac
9068     ;;
9069     *)
9070     lt_use_gnu_ld_interface=yes
9071     ;;
9072     esac
9073     fi
9074    
9075     if test yes = "$lt_use_gnu_ld_interface"; then
9076 michael 5052 # If archive_cmds runs LD, not CC, wlarc should be empty
9077 michael 5059 wlarc='$wl'
9078 michael 5052
9079     # Set some defaults for GNU ld with shared library support. These
9080     # are reset later if shared libraries are not supported. Putting them
9081     # here allows them to be overridden if necessary.
9082     runpath_var=LD_RUN_PATH
9083 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9084     export_dynamic_flag_spec='$wl--export-dynamic'
9085 michael 5052 # ancient GNU ld didn't support --whole-archive et. al.
9086 michael 5059 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9087     whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9088     else
9089     whole_archive_flag_spec=
9090 michael 5052 fi
9091     supports_anon_versioning=no
9092 michael 5059 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9093     *GNU\ gold*) supports_anon_versioning=yes ;;
9094 michael 5052 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9095     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9096     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9097     *\ 2.11.*) ;; # other 2.11 versions
9098     *) supports_anon_versioning=yes ;;
9099     esac
9100    
9101     # See if GNU ld supports shared libraries.
9102     case $host_os in
9103 michael 5059 aix[3-9]*)
9104 michael 5052 # On AIX/PPC, the GNU linker is very broken
9105 michael 5059 if test ia64 != "$host_cpu"; then
9106 michael 5052 ld_shlibs=no
9107 michael 5059 cat <<_LT_EOF 1>&2
9108 michael 5052
9109 michael 5059 *** Warning: the GNU linker, at least up to release 2.19, is reported
9110 michael 5052 *** to be unable to reliably create shared libraries on AIX.
9111     *** Therefore, libtool is disabling shared libraries support. If you
9112 michael 5059 *** really care for shared libraries, you may want to install binutils
9113     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9114     *** You will then need to restart the configuration process.
9115 michael 5052
9116 michael 5059 _LT_EOF
9117 michael 5052 fi
9118     ;;
9119    
9120     amigaos*)
9121 michael 5059 case $host_cpu in
9122     powerpc)
9123     # see comment about AmigaOS4 .so support
9124     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9125     archive_expsym_cmds=''
9126     ;;
9127     m68k)
9128     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)'
9129     hardcode_libdir_flag_spec='-L$libdir'
9130     hardcode_minus_L=yes
9131     ;;
9132     esac
9133 michael 5052 ;;
9134    
9135     beos*)
9136 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9137 michael 5052 allow_undefined_flag=unsupported
9138     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9139     # support --undefined. This deserves some investigation. FIXME
9140 michael 5059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9141 michael 5052 else
9142     ld_shlibs=no
9143     fi
9144     ;;
9145    
9146 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9147     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9148 michael 5052 # as there is no search path for DLLs.
9149     hardcode_libdir_flag_spec='-L$libdir'
9150 michael 5059 export_dynamic_flag_spec='$wl--export-all-symbols'
9151 michael 5052 allow_undefined_flag=unsupported
9152     always_export_symbols=no
9153     enable_shared_with_static_runtimes=yes
9154 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'
9155     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9156 michael 5052
9157 michael 5059 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9158     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9159     # If the export-symbols file already is a .def file, use it as
9160     # is; otherwise, prepend EXPORTS...
9161     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9162     cp $export_symbols $output_objdir/$soname.def;
9163     else
9164     echo EXPORTS > $output_objdir/$soname.def;
9165     cat $export_symbols >> $output_objdir/$soname.def;
9166     fi~
9167     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9168 michael 5052 else
9169     ld_shlibs=no
9170     fi
9171     ;;
9172    
9173 michael 5059 haiku*)
9174     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9175     link_all_deplibs=yes
9176     ;;
9177    
9178     os2*)
9179     hardcode_libdir_flag_spec='-L$libdir'
9180     hardcode_minus_L=yes
9181     allow_undefined_flag=unsupported
9182     shrext_cmds=.dll
9183     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9184     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9185     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9186     $ECHO EXPORTS >> $output_objdir/$libname.def~
9187     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9188     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9189     emximp -o $lib $output_objdir/$libname.def'
9190     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9191     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9192     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9193     $ECHO EXPORTS >> $output_objdir/$libname.def~
9194     prefix_cmds="$SED"~
9195     if test EXPORTS = "`$SED 1q $export_symbols`"; then
9196     prefix_cmds="$prefix_cmds -e 1d";
9197     fi~
9198     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9199     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9200     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9201     emximp -o $lib $output_objdir/$libname.def'
9202     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9203     enable_shared_with_static_runtimes=yes
9204     ;;
9205    
9206     interix[3-9]*)
9207 michael 5052 hardcode_direct=no
9208     hardcode_shlibpath_var=no
9209 michael 5059 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9210     export_dynamic_flag_spec='$wl-E'
9211 michael 5052 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9212     # Instead, shared libraries are loaded at an image base (0x10000000 by
9213     # default) and relocated if they conflict, which is a slow very memory
9214     # consuming and fragmenting process. To avoid this, we pick a random,
9215     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9216     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9217 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'
9218     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'
9219 michael 5052 ;;
9220    
9221 michael 5059 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9222     tmp_diet=no
9223     if test linux-dietlibc = "$host_os"; then
9224     case $cc_basename in
9225     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9226     esac
9227     fi
9228     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9229     && test no = "$tmp_diet"
9230     then
9231     tmp_addflag=' $pic_flag'
9232     tmp_sharedflag='-shared'
9233 michael 5052 case $cc_basename,$host_cpu in
9234 michael 5059 pgcc*) # Portland Group C compiler
9235     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'
9236 michael 5052 tmp_addflag=' $pic_flag'
9237     ;;
9238 michael 5059 pgf77* | pgf90* | pgf95* | pgfortran*)
9239     # Portland Group f77 and f90 compilers
9240     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'
9241 michael 5052 tmp_addflag=' $pic_flag -Mnomain' ;;
9242 michael 5059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9243 michael 5052 tmp_addflag=' -i_dynamic' ;;
9244     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9245     tmp_addflag=' -i_dynamic -nofor_main' ;;
9246     ifc* | ifort*) # Intel Fortran compiler
9247     tmp_addflag=' -nofor_main' ;;
9248 michael 5059 lf95*) # Lahey Fortran 8.1
9249     whole_archive_flag_spec=
9250     tmp_sharedflag='--shared' ;;
9251     nagfor*) # NAGFOR 5.3
9252     tmp_sharedflag='-Wl,-shared' ;;
9253     xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9254     tmp_sharedflag='-qmkshrobj'
9255     tmp_addflag= ;;
9256     nvcc*) # Cuda Compiler Driver 2.2
9257     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'
9258     compiler_needs_object=yes
9259     ;;
9260 michael 5052 esac
9261 michael 5059 case `$CC -V 2>&1 | sed 5q` in
9262     *Sun\ C*) # Sun C 5.9
9263     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'
9264     compiler_needs_object=yes
9265     tmp_sharedflag='-G' ;;
9266     *Sun\ F*) # Sun Fortran 8.3
9267     tmp_sharedflag='-G' ;;
9268     esac
9269     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9270 michael 5052
9271 michael 5059 if test yes = "$supports_anon_versioning"; then
9272     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9273     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9274     echo "local: *; };" >> $output_objdir/$libname.ver~
9275     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9276     fi
9277    
9278     case $cc_basename in
9279     tcc*)
9280     export_dynamic_flag_spec='-rdynamic'
9281     ;;
9282     xlf* | bgf* | bgxlf* | mpixlf*)
9283     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9284     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9285     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9286     archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9287     if test yes = "$supports_anon_versioning"; then
9288     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290     echo "local: *; };" >> $output_objdir/$libname.ver~
9291     $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9292     fi
9293     ;;
9294     esac
9295 michael 5052 else
9296 michael 5059 ld_shlibs=no
9297 michael 5052 fi
9298     ;;
9299    
9300 michael 5059 netbsd*)
9301     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9302 michael 5052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9303     wlarc=
9304     else
9305 michael 5059 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9306     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9307 michael 5052 fi
9308     ;;
9309    
9310     solaris*)
9311 michael 5059 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9312 michael 5052 ld_shlibs=no
9313 michael 5059 cat <<_LT_EOF 1>&2
9314 michael 5052
9315     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9316     *** create shared libraries on Solaris systems. Therefore, libtool
9317     *** is disabling shared libraries support. We urge you to upgrade GNU
9318     *** binutils to release 2.9.1 or newer. Another option is to modify
9319     *** your PATH or compiler configuration so that the native linker is
9320     *** used, and then restart.
9321    
9322 michael 5059 _LT_EOF
9323     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9324     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9325     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9326 michael 5052 else
9327     ld_shlibs=no
9328     fi
9329     ;;
9330    
9331     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9332     case `$LD -v 2>&1` in
9333     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9334     ld_shlibs=no
9335     cat <<_LT_EOF 1>&2
9336    
9337 michael 5059 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9338 michael 5052 *** reliably create shared libraries on SCO systems. Therefore, libtool
9339     *** is disabling shared libraries support. We urge you to upgrade GNU
9340     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9341     *** your PATH or compiler configuration so that the native linker is
9342     *** used, and then restart.
9343    
9344     _LT_EOF
9345     ;;
9346     *)
9347 michael 5059 # For security reasons, it is highly recommended that you always
9348     # use absolute paths for naming shared libraries, and exclude the
9349     # DT_RUNPATH tag from executables and libraries. But doing so
9350     # requires that you compile everything twice, which is a pain.
9351     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9352     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9353     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9354     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9355 michael 5052 else
9356     ld_shlibs=no
9357     fi
9358     ;;
9359     esac
9360     ;;
9361    
9362     sunos4*)
9363     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364     wlarc=
9365     hardcode_direct=yes
9366     hardcode_shlibpath_var=no
9367     ;;
9368    
9369     *)
9370 michael 5059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9372     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9373 michael 5052 else
9374     ld_shlibs=no
9375     fi
9376     ;;
9377     esac
9378    
9379 michael 5059 if test no = "$ld_shlibs"; then
9380 michael 5052 runpath_var=
9381     hardcode_libdir_flag_spec=
9382     export_dynamic_flag_spec=
9383     whole_archive_flag_spec=
9384     fi
9385     else
9386     # PORTME fill in a description of your system's linker (not GNU ld)
9387     case $host_os in
9388     aix3*)
9389     allow_undefined_flag=unsupported
9390     always_export_symbols=yes
9391     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'
9392     # Note: this linker hardcodes the directories in LIBPATH if there
9393     # are no directories specified by -L.
9394     hardcode_minus_L=yes
9395 michael 5059 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9396 michael 5052 # Neither direct hardcoding nor static linking is supported with a
9397     # broken collect2.
9398     hardcode_direct=unsupported
9399     fi
9400     ;;
9401    
9402 michael 5059 aix[4-9]*)
9403     if test ia64 = "$host_cpu"; then
9404 michael 5052 # On IA64, the linker does run time linking by default, so we don't
9405     # have to do anything special.
9406     aix_use_runtimelinking=no
9407     exp_sym_flag='-Bexport'
9408 michael 5059 no_entry_flag=
9409 michael 5052 else
9410     # If we're using GNU nm, then we don't want the "-C" option.
9411 michael 5059 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9412     # Without the "-l" option, or with the "-B" option, AIX nm treats
9413     # weak defined symbols like other global defined symbols, whereas
9414     # GNU nm marks them as "W".
9415     # While the 'weak' keyword is ignored in the Export File, we need
9416     # it in the Import File for the 'aix-soname' feature, so we have
9417     # to replace the "-B" option with "-P" for AIX nm.
9418     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9419     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'
9420 michael 5052 else
9421 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'
9422 michael 5052 fi
9423     aix_use_runtimelinking=no
9424    
9425     # Test if we are trying to use run time linking or normal
9426     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9427 michael 5059 # have runtime linking enabled, and use it for executables.
9428     # For shared libraries, we enable/disable runtime linking
9429     # depending on the kind of the shared library created -
9430     # when "with_aix_soname,aix_use_runtimelinking" is:
9431     # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9432     # "aix,yes" lib.so shared, rtl:yes, for executables
9433     # lib.a static archive
9434     # "both,no" lib.so.V(shr.o) shared, rtl:yes
9435     # lib.a(lib.so.V) shared, rtl:no, for executables
9436     # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9437     # lib.a(lib.so.V) shared, rtl:no
9438     # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9439     # lib.a static archive
9440     case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9441 michael 5052 for ld_flag in $LDFLAGS; do
9442 michael 5059 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9443     aix_use_runtimelinking=yes
9444     break
9445     fi
9446 michael 5052 done
9447 michael 5059 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9448     # With aix-soname=svr4, we create the lib.so.V shared archives only,
9449     # so we don't have lib.a shared libs to link our executables.
9450     # We have to force runtime linking in this case.
9451     aix_use_runtimelinking=yes
9452     LDFLAGS="$LDFLAGS -Wl,-brtl"
9453     fi
9454 michael 5052 ;;
9455     esac
9456    
9457     exp_sym_flag='-bexport'
9458     no_entry_flag='-bnoentry'
9459     fi
9460    
9461     # When large executables or shared objects are built, AIX ld can
9462     # have problems creating the table of contents. If linking a library
9463     # or program results in "error TOC overflow" add -mminimal-toc to
9464     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9465     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9466    
9467     archive_cmds=''
9468     hardcode_direct=yes
9469 michael 5059 hardcode_direct_absolute=yes
9470 michael 5052 hardcode_libdir_separator=':'
9471     link_all_deplibs=yes
9472 michael 5059 file_list_spec='$wl-f,'
9473     case $with_aix_soname,$aix_use_runtimelinking in
9474     aix,*) ;; # traditional, no import file
9475     svr4,* | *,yes) # use import file
9476     # The Import File defines what to hardcode.
9477     hardcode_direct=no
9478     hardcode_direct_absolute=no
9479     ;;
9480     esac
9481 michael 5052
9482 michael 5059 if test yes = "$GCC"; then
9483 michael 5052 case $host_os in aix4.[012]|aix4.[012].*)
9484     # We only want to do this on AIX 4.2 and lower, the check
9485     # below for broken collect2 doesn't work under 4.3+
9486 michael 5059 collect2name=`$CC -print-prog-name=collect2`
9487     if test -f "$collect2name" &&
9488     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9489 michael 5052 then
9490 michael 5059 # We have reworked collect2
9491     :
9492 michael 5052 else
9493 michael 5059 # We have old collect2
9494     hardcode_direct=unsupported
9495     # It fails to find uninstalled libraries when the uninstalled
9496     # path is not listed in the libpath. Setting hardcode_minus_L
9497     # to unsupported forces relinking
9498     hardcode_minus_L=yes
9499     hardcode_libdir_flag_spec='-L$libdir'
9500     hardcode_libdir_separator=
9501 michael 5052 fi
9502     ;;
9503     esac
9504     shared_flag='-shared'
9505 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9506     shared_flag="$shared_flag "'$wl-G'
9507 michael 5052 fi
9508 michael 5059 # Need to ensure runtime linking is disabled for the traditional
9509     # shared library, or the linker may eventually find shared libraries
9510     # /with/ Import File - we do not want to mix them.
9511     shared_flag_aix='-shared'
9512     shared_flag_svr4='-shared $wl-G'
9513 michael 5052 else
9514     # not using gcc
9515 michael 5059 if test ia64 = "$host_cpu"; then
9516     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9517     # chokes on -Wl,-G. The following line is correct:
9518 michael 5052 shared_flag='-G'
9519     else
9520 michael 5059 if test yes = "$aix_use_runtimelinking"; then
9521     shared_flag='$wl-G'
9522 michael 5052 else
9523 michael 5059 shared_flag='$wl-bM:SRE'
9524 michael 5052 fi
9525 michael 5059 shared_flag_aix='$wl-bM:SRE'
9526     shared_flag_svr4='$wl-G'
9527 michael 5052 fi
9528     fi
9529    
9530 michael 5059 export_dynamic_flag_spec='$wl-bexpall'
9531 michael 5052 # It seems that -bexpall does not export symbols beginning with
9532     # underscore (_), so it is better to generate a list of symbols to export.
9533     always_export_symbols=yes
9534 michael 5059 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9535 michael 5052 # Warning - without using the other runtime loading flags (-brtl),
9536     # -berok will link without error, but may produce a broken library.
9537     allow_undefined_flag='-berok'
9538 michael 5059 # Determine the default libpath from the value encoded in an
9539     # empty executable.
9540     if test set = "${lt_cv_aix_libpath+set}"; then
9541     aix_libpath=$lt_cv_aix_libpath
9542     else
9543     if ${lt_cv_aix_libpath_+:} false; then :
9544     $as_echo_n "(cached) " >&6
9545     else
9546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 michael 5052 /* end confdefs.h. */
9548    
9549     int
9550     main ()
9551     {
9552    
9553     ;
9554     return 0;
9555     }
9556     _ACEOF
9557 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9558 michael 5052
9559 michael 5059 lt_aix_libpath_sed='
9560     /Import File Strings/,/^$/ {
9561     /^0/ {
9562     s/^0 *\([^ ]*\) *$/\1/
9563     p
9564     }
9565     }'
9566     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567     # Check for a 64-bit object if we didn't find anything.
9568     if test -z "$lt_cv_aix_libpath_"; then
9569     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9570     fi
9571     fi
9572     rm -f core conftest.err conftest.$ac_objext \
9573     conftest$ac_exeext conftest.$ac_ext
9574     if test -z "$lt_cv_aix_libpath_"; then
9575     lt_cv_aix_libpath_=/usr/lib:/lib
9576     fi
9577 michael 5052
9578 michael 5059 fi
9579 michael 5052
9580 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9581 michael 5052 fi
9582    
9583 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9584     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
9585     else
9586     if test ia64 = "$host_cpu"; then
9587     hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9588 michael 5052 allow_undefined_flag="-z nodefs"
9589 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"
9590 michael 5052 else
9591 michael 5059 # Determine the default libpath from the value encoded in an
9592     # empty executable.
9593     if test set = "${lt_cv_aix_libpath+set}"; then
9594     aix_libpath=$lt_cv_aix_libpath
9595     else
9596     if ${lt_cv_aix_libpath_+:} false; then :
9597     $as_echo_n "(cached) " >&6
9598     else
9599     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 michael 5052 /* end confdefs.h. */
9601    
9602     int
9603     main ()
9604     {
9605    
9606     ;
9607     return 0;
9608     }
9609     _ACEOF
9610 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
9611 michael 5052
9612 michael 5059 lt_aix_libpath_sed='
9613     /Import File Strings/,/^$/ {
9614     /^0/ {
9615     s/^0 *\([^ ]*\) *$/\1/
9616     p
9617     }
9618     }'
9619     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9620     # Check for a 64-bit object if we didn't find anything.
9621     if test -z "$lt_cv_aix_libpath_"; then
9622     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9623     fi
9624     fi
9625     rm -f core conftest.err conftest.$ac_objext \
9626     conftest$ac_exeext conftest.$ac_ext
9627     if test -z "$lt_cv_aix_libpath_"; then
9628     lt_cv_aix_libpath_=/usr/lib:/lib
9629     fi
9630 michael 5052
9631 michael 5059 fi
9632 michael 5052
9633 michael 5059 aix_libpath=$lt_cv_aix_libpath_
9634 michael 5052 fi
9635    
9636 michael 5059 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9637 michael 5052 # Warning - without using the other run time loading flags,
9638     # -berok will link without error, but may produce a broken library.
9639 michael 5059 no_undefined_flag=' $wl-bernotok'
9640     allow_undefined_flag=' $wl-berok'
9641     if test yes = "$with_gnu_ld"; then
9642     # We only use this code for GNU lds that support --whole-archive.
9643     whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9644     else
9645     # Exported symbols can be pulled into shared objects from archives
9646     whole_archive_flag_spec='$convenience'
9647     fi
9648 michael 5052 archive_cmds_need_lc=yes
9649 michael 5059 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9650     # -brtl affects multiple linker settings, -berok does not and is overridden later
9651     compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9652     if test svr4 != "$with_aix_soname"; then
9653     # This is similar to how AIX traditionally builds its shared libraries.
9654     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'
9655     fi
9656     if test aix != "$with_aix_soname"; then
9657     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'
9658     else
9659     # used by -dlpreopen to get the symbols
9660     archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9661     fi
9662     archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9663 michael 5052 fi
9664     fi
9665     ;;
9666    
9667     amigaos*)
9668 michael 5059 case $host_cpu in
9669     powerpc)
9670     # see comment about AmigaOS4 .so support
9671     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9672     archive_expsym_cmds=''
9673     ;;
9674     m68k)
9675     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)'
9676     hardcode_libdir_flag_spec='-L$libdir'
9677     hardcode_minus_L=yes
9678     ;;
9679     esac
9680 michael 5052 ;;
9681    
9682     bsdi[45]*)
9683     export_dynamic_flag_spec=-rdynamic
9684     ;;
9685    
9686 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
9687 michael 5052 # When not using gcc, we currently assume that we are using
9688     # Microsoft Visual C++.
9689     # hardcode_libdir_flag_spec is actually meaningless, as there is
9690     # no search path for DLLs.
9691 michael 5059 case $cc_basename in
9692     cl*)
9693     # Native MSVC
9694     hardcode_libdir_flag_spec=' '
9695     allow_undefined_flag=unsupported
9696     always_export_symbols=yes
9697     file_list_spec='@'
9698     # Tell ltmain to make .lib files, not .a files.
9699     libext=lib
9700     # Tell ltmain to make .dll files, not .so files.
9701     shrext_cmds=.dll
9702     # FIXME: Setting linknames here is a bad hack.
9703     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9704     archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9705     cp "$export_symbols" "$output_objdir/$soname.def";
9706     echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9707     else
9708     $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9709     fi~
9710     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9711     linknames='
9712     # The linker will not automatically build a static lib if we build a DLL.
9713     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9714     enable_shared_with_static_runtimes=yes
9715     exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9716     export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9717     # Don't use ranlib
9718     old_postinstall_cmds='chmod 644 $oldlib'
9719     postlink_cmds='lt_outputfile="@OUTPUT@"~
9720     lt_tool_outputfile="@TOOL_OUTPUT@"~
9721     case $lt_outputfile in
9722     *.exe|*.EXE) ;;
9723     *)
9724     lt_outputfile=$lt_outputfile.exe
9725     lt_tool_outputfile=$lt_tool_outputfile.exe
9726     ;;
9727     esac~
9728     if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9729     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9730     $RM "$lt_outputfile.manifest";
9731     fi'
9732     ;;
9733     *)
9734     # Assume MSVC wrapper
9735     hardcode_libdir_flag_spec=' '
9736     allow_undefined_flag=unsupported
9737     # Tell ltmain to make .lib files, not .a files.
9738     libext=lib
9739     # Tell ltmain to make .dll files, not .so files.
9740     shrext_cmds=.dll
9741     # FIXME: Setting linknames here is a bad hack.
9742     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9743     # The linker will automatically build a .lib file if we build a DLL.
9744     old_archive_from_new_cmds='true'
9745     # FIXME: Should let the user specify the lib program.
9746     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9747     enable_shared_with_static_runtimes=yes
9748     ;;
9749     esac
9750 michael 5052 ;;
9751    
9752     darwin* | rhapsody*)
9753 michael 5059
9754    
9755     archive_cmds_need_lc=no
9756     hardcode_direct=no
9757     hardcode_automatic=yes
9758     hardcode_shlibpath_var=unsupported
9759     if test yes = "$lt_cv_ld_force_load"; then
9760     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\"`'
9761    
9762     else
9763     whole_archive_flag_spec=''
9764     fi
9765     link_all_deplibs=yes
9766     allow_undefined_flag=$_lt_dar_allow_undefined
9767     case $cc_basename in
9768     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9769     *) _lt_dar_can_shared=$GCC ;;
9770     esac
9771     if test yes = "$_lt_dar_can_shared"; then
9772     output_verbose_link_cmd=func_echo_all
9773     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9774     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9775     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"
9776     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"
9777    
9778     else
9779     ld_shlibs=no
9780     fi
9781    
9782 michael 5052 ;;
9783    
9784     dgux*)
9785     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786     hardcode_libdir_flag_spec='-L$libdir'
9787     hardcode_shlibpath_var=no
9788     ;;
9789    
9790     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9791     # support. Future versions do this automatically, but an explicit c++rt0.o
9792     # does not break anything, and helps significantly (at the cost of a little
9793     # extra space).
9794     freebsd2.2*)
9795     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9796     hardcode_libdir_flag_spec='-R$libdir'
9797     hardcode_direct=yes
9798     hardcode_shlibpath_var=no
9799     ;;
9800    
9801     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9802 michael 5059 freebsd2.*)
9803 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9804     hardcode_direct=yes
9805     hardcode_minus_L=yes
9806     hardcode_shlibpath_var=no
9807     ;;
9808    
9809     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9810     freebsd* | dragonfly*)
9811 michael 5059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9812 michael 5052 hardcode_libdir_flag_spec='-R$libdir'
9813     hardcode_direct=yes
9814     hardcode_shlibpath_var=no
9815     ;;
9816    
9817     hpux9*)
9818 michael 5059 if test yes = "$GCC"; then
9819     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'
9820 michael 5052 else
9821 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'
9822 michael 5052 fi
9823 michael 5059 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9824 michael 5052 hardcode_libdir_separator=:
9825     hardcode_direct=yes
9826    
9827     # hardcode_minus_L: Not really in the search PATH,
9828     # but as the default location of the library.
9829     hardcode_minus_L=yes
9830 michael 5059 export_dynamic_flag_spec='$wl-E'
9831 michael 5052 ;;
9832    
9833     hpux10*)
9834 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9835     archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836 michael 5052 else
9837     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9838     fi
9839 michael 5059 if test no = "$with_gnu_ld"; then
9840     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9841 michael 5052 hardcode_libdir_separator=:
9842     hardcode_direct=yes
9843 michael 5059 hardcode_direct_absolute=yes
9844     export_dynamic_flag_spec='$wl-E'
9845 michael 5052 # hardcode_minus_L: Not really in the search PATH,
9846     # but as the default location of the library.
9847     hardcode_minus_L=yes
9848     fi
9849     ;;
9850    
9851     hpux11*)
9852 michael 5059 if test yes,no = "$GCC,$with_gnu_ld"; then
9853 michael 5052 case $host_cpu in
9854     hppa*64*)
9855 michael 5059 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9856 michael 5052 ;;
9857     ia64*)
9858 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9859 michael 5052 ;;
9860     *)
9861 michael 5059 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9862 michael 5052 ;;
9863     esac
9864     else
9865     case $host_cpu in
9866     hppa*64*)
9867 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 michael 5052 ;;
9869     ia64*)
9870 michael 5059 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9871 michael 5052 ;;
9872     *)
9873 michael 5059
9874     # Older versions of the 11.00 compiler do not understand -b yet
9875     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9877     $as_echo_n "checking if $CC understands -b... " >&6; }
9878     if ${lt_cv_prog_compiler__b+:} false; then :
9879     $as_echo_n "(cached) " >&6
9880     else
9881     lt_cv_prog_compiler__b=no
9882     save_LDFLAGS=$LDFLAGS
9883     LDFLAGS="$LDFLAGS -b"
9884     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9885     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9886     # The linker can only warn and ignore the option if not recognized
9887     # So say no if there are warnings
9888     if test -s conftest.err; then
9889     # Append any errors to the config.log.
9890     cat conftest.err 1>&5
9891     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9892     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9893     if diff conftest.exp conftest.er2 >/dev/null; then
9894     lt_cv_prog_compiler__b=yes
9895     fi
9896     else
9897     lt_cv_prog_compiler__b=yes
9898     fi
9899     fi
9900     $RM -r conftest*
9901     LDFLAGS=$save_LDFLAGS
9902    
9903     fi
9904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9905     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9906    
9907     if test yes = "$lt_cv_prog_compiler__b"; then
9908     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9909     else
9910     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9911     fi
9912    
9913 michael 5052 ;;
9914     esac
9915     fi
9916 michael 5059 if test no = "$with_gnu_ld"; then
9917     hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9918 michael 5052 hardcode_libdir_separator=:
9919    
9920     case $host_cpu in
9921     hppa*64*|ia64*)
9922     hardcode_direct=no
9923     hardcode_shlibpath_var=no
9924     ;;
9925     *)
9926     hardcode_direct=yes
9927 michael 5059 hardcode_direct_absolute=yes
9928     export_dynamic_flag_spec='$wl-E'
9929 michael 5052
9930     # hardcode_minus_L: Not really in the search PATH,
9931     # but as the default location of the library.
9932     hardcode_minus_L=yes
9933     ;;
9934     esac
9935     fi
9936     ;;
9937    
9938     irix5* | irix6* | nonstopux*)
9939 michael 5059 if test yes = "$GCC"; then
9940     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'
9941     # Try to use the -exported_symbol ld option, if it does not
9942     # work, assume that -exports_file does not work either and
9943     # implicitly export all symbols.
9944     # This should be the same for all languages, so no per-tag cache variable.
9945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9946     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9947     if ${lt_cv_irix_exported_symbol+:} false; then :
9948     $as_echo_n "(cached) " >&6
9949     else
9950     save_LDFLAGS=$LDFLAGS
9951     LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953     /* end confdefs.h. */
9954     int foo (void) { return 0; }
9955     _ACEOF
9956     if ac_fn_c_try_link "$LINENO"; then :
9957     lt_cv_irix_exported_symbol=yes
9958     else
9959     lt_cv_irix_exported_symbol=no
9960     fi
9961     rm -f core conftest.err conftest.$ac_objext \
9962     conftest$ac_exeext conftest.$ac_ext
9963     LDFLAGS=$save_LDFLAGS
9964     fi
9965     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9966     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9967     if test yes = "$lt_cv_irix_exported_symbol"; then
9968     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'
9969     fi
9970 michael 5052 else
9971 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'
9972     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'
9973 michael 5052 fi
9974 michael 5059 archive_cmds_need_lc='no'
9975     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9976 michael 5052 hardcode_libdir_separator=:
9977 michael 5059 inherit_rpath=yes
9978 michael 5052 link_all_deplibs=yes
9979     ;;
9980    
9981 michael 5059 linux*)
9982     case $cc_basename in
9983     tcc*)
9984     # Fabrice Bellard et al's Tiny C Compiler
9985     ld_shlibs=yes
9986     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9987     ;;
9988     esac
9989     ;;
9990    
9991     netbsd*)
9992     if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9993 michael 5052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9994     else
9995     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9996     fi
9997     hardcode_libdir_flag_spec='-R$libdir'
9998     hardcode_direct=yes
9999     hardcode_shlibpath_var=no
10000     ;;
10001    
10002     newsos6)
10003     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10004     hardcode_direct=yes
10005 michael 5059 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10006 michael 5052 hardcode_libdir_separator=:
10007     hardcode_shlibpath_var=no
10008     ;;
10009    
10010 michael 5059 *nto* | *qnx*)
10011     ;;
10012    
10013     openbsd* | bitrig*)
10014     if test -f /usr/libexec/ld.so; then
10015     hardcode_direct=yes
10016     hardcode_shlibpath_var=no
10017     hardcode_direct_absolute=yes
10018     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10019     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10020     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10021     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10022     export_dynamic_flag_spec='$wl-E'
10023     else
10024     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10025     hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10026     fi
10027 michael 5052 else
10028 michael 5059 ld_shlibs=no
10029 michael 5052 fi
10030     ;;
10031    
10032     os2*)
10033     hardcode_libdir_flag_spec='-L$libdir'
10034     hardcode_minus_L=yes
10035     allow_undefined_flag=unsupported
10036 michael 5059 shrext_cmds=.dll
10037     archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10038     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10039     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10040     $ECHO EXPORTS >> $output_objdir/$libname.def~
10041     emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10042     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10043     emximp -o $lib $output_objdir/$libname.def'
10044     archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10045     $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10046     $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10047     $ECHO EXPORTS >> $output_objdir/$libname.def~
10048     prefix_cmds="$SED"~
10049     if test EXPORTS = "`$SED 1q $export_symbols`"; then
10050     prefix_cmds="$prefix_cmds -e 1d";
10051     fi~
10052     prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10053     cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10054     $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10055     emximp -o $lib $output_objdir/$libname.def'
10056     old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10057     enable_shared_with_static_runtimes=yes
10058 michael 5052 ;;
10059    
10060     osf3*)
10061 michael 5059 if test yes = "$GCC"; then
10062     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10063     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'
10064 michael 5052 else
10065     allow_undefined_flag=' -expect_unresolved \*'
10066 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'
10067 michael 5052 fi
10068 michael 5059 archive_cmds_need_lc='no'
10069     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10070 michael 5052 hardcode_libdir_separator=:
10071     ;;
10072    
10073     osf4* | osf5*) # as osf3* with the addition of -msym flag
10074 michael 5059 if test yes = "$GCC"; then
10075     allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10076     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'
10077     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10078 michael 5052 else
10079     allow_undefined_flag=' -expect_unresolved \*'
10080 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'
10081     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~
10082     $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'
10083 michael 5052
10084     # Both c and cxx compiler support -rpath directly
10085     hardcode_libdir_flag_spec='-rpath $libdir'
10086     fi
10087 michael 5059 archive_cmds_need_lc='no'
10088 michael 5052 hardcode_libdir_separator=:
10089     ;;
10090    
10091     solaris*)
10092 michael 5059 no_undefined_flag=' -z defs'
10093     if test yes = "$GCC"; then
10094     wlarc='$wl'
10095     archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10096     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10097     $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'
10098 michael 5052 else
10099 michael 5059 case `$CC -V 2>&1` in
10100     *"Compilers 5.0"*)
10101     wlarc=''
10102     archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10104     $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10105     ;;
10106     *)
10107     wlarc='$wl'
10108     archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10109     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10110     $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10111     ;;
10112     esac
10113 michael 5052 fi
10114     hardcode_libdir_flag_spec='-R$libdir'
10115     hardcode_shlibpath_var=no
10116     case $host_os in
10117     solaris2.[0-5] | solaris2.[0-5].*) ;;
10118     *)
10119 michael 5059 # The compiler driver will combine and reorder linker options,
10120     # but understands '-z linker_flag'. GCC discards it without '$wl',
10121     # but is careful enough not to reorder.
10122     # Supported since Solaris 2.6 (maybe 2.5.1?)
10123     if test yes = "$GCC"; then
10124     whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10125     else
10126     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10127     fi
10128     ;;
10129 michael 5052 esac
10130     link_all_deplibs=yes
10131     ;;
10132    
10133     sunos4*)
10134 michael 5059 if test sequent = "$host_vendor"; then
10135 michael 5052 # Use $CC to link under sequent, because it throws in some extra .o
10136     # files that make .init and .fini sections work.
10137 michael 5059 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10138 michael 5052 else
10139     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10140     fi
10141     hardcode_libdir_flag_spec='-L$libdir'
10142     hardcode_direct=yes
10143     hardcode_minus_L=yes
10144     hardcode_shlibpath_var=no
10145     ;;
10146    
10147     sysv4)
10148     case $host_vendor in
10149     sni)
10150     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151     hardcode_direct=yes # is this really true???
10152     ;;
10153     siemens)
10154     ## LD is ld it makes a PLAMLIB
10155     ## CC just makes a GrossModule.
10156     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10157     reload_cmds='$CC -r -o $output$reload_objs'
10158     hardcode_direct=no
10159     ;;
10160     motorola)
10161     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10162     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10163     ;;
10164     esac
10165     runpath_var='LD_RUN_PATH'
10166     hardcode_shlibpath_var=no
10167     ;;
10168    
10169     sysv4.3*)
10170     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171     hardcode_shlibpath_var=no
10172     export_dynamic_flag_spec='-Bexport'
10173     ;;
10174    
10175     sysv4*MP*)
10176     if test -d /usr/nec; then
10177     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10178     hardcode_shlibpath_var=no
10179     runpath_var=LD_RUN_PATH
10180     hardcode_runpath_var=yes
10181     ld_shlibs=yes
10182     fi
10183     ;;
10184    
10185 michael 5059 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10186     no_undefined_flag='$wl-z,text'
10187 michael 5052 archive_cmds_need_lc=no
10188     hardcode_shlibpath_var=no
10189     runpath_var='LD_RUN_PATH'
10190    
10191 michael 5059 if test yes = "$GCC"; then
10192     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 michael 5052 else
10195 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 michael 5052 fi
10198     ;;
10199    
10200     sysv5* | sco3.2v5* | sco5v6*)
10201 michael 5059 # Note: We CANNOT use -z defs as we might desire, because we do not
10202 michael 5052 # link with -lc, and that would cause any symbols used from libc to
10203     # always be unresolved, which means just about no library would
10204     # ever link correctly. If we're not using GNU ld we use -z text
10205     # though, which does catch some bad symbols but isn't as heavy-handed
10206     # as -z defs.
10207 michael 5059 no_undefined_flag='$wl-z,text'
10208     allow_undefined_flag='$wl-z,nodefs'
10209 michael 5052 archive_cmds_need_lc=no
10210     hardcode_shlibpath_var=no
10211 michael 5059 hardcode_libdir_flag_spec='$wl-R,$libdir'
10212 michael 5052 hardcode_libdir_separator=':'
10213     link_all_deplibs=yes
10214 michael 5059 export_dynamic_flag_spec='$wl-Bexport'
10215 michael 5052 runpath_var='LD_RUN_PATH'
10216    
10217 michael 5059 if test yes = "$GCC"; then
10218     archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10219     archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 michael 5052 else
10221 michael 5059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10222     archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223 michael 5052 fi
10224     ;;
10225    
10226     uts4*)
10227     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228     hardcode_libdir_flag_spec='-L$libdir'
10229     hardcode_shlibpath_var=no
10230     ;;
10231    
10232     *)
10233     ld_shlibs=no
10234     ;;
10235     esac
10236 michael 5059
10237     if test sni = "$host_vendor"; then
10238     case $host in
10239     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10240     export_dynamic_flag_spec='$wl-Blargedynsym'
10241     ;;
10242     esac
10243     fi
10244 michael 5052 fi
10245    
10246 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10247     $as_echo "$ld_shlibs" >&6; }
10248     test no = "$ld_shlibs" && can_build_shared=no
10249 michael 5052
10250 michael 5059 with_gnu_ld=$with_gnu_ld
10251    
10252    
10253    
10254    
10255    
10256    
10257    
10258    
10259    
10260    
10261    
10262    
10263    
10264    
10265    
10266 michael 5052 #
10267     # Do we need to explicitly link libc?
10268     #
10269     case "x$archive_cmds_need_lc" in
10270     x|xyes)
10271     # Assume -lc should be added
10272     archive_cmds_need_lc=yes
10273    
10274 michael 5059 if test yes,yes = "$GCC,$enable_shared"; then
10275 michael 5052 case $archive_cmds in
10276     *'~'*)
10277     # FIXME: we may have to deal with multi-command sequences.
10278     ;;
10279     '$CC '*)
10280     # Test whether the compiler implicitly links with -lc since on some
10281     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10282     # to ld, don't add -lc before -lgcc.
10283 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10284     $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10285     if ${lt_cv_archive_cmds_need_lc+:} false; then :
10286     $as_echo_n "(cached) " >&6
10287     else
10288     $RM conftest*
10289     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10290 michael 5052
10291 michael 5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10292 michael 5052 (eval $ac_compile) 2>&5
10293     ac_status=$?
10294 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10295     test $ac_status = 0; } 2>conftest.err; then
10296     soname=conftest
10297     lib=conftest
10298     libobjs=conftest.$ac_objext
10299     deplibs=
10300     wl=$lt_prog_compiler_wl
10301     pic_flag=$lt_prog_compiler_pic
10302     compiler_flags=-v
10303     linker_flags=-v
10304     verstring=
10305     output_objdir=.
10306     libname=conftest
10307     lt_save_allow_undefined_flag=$allow_undefined_flag
10308     allow_undefined_flag=
10309     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10310     (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10311 michael 5052 ac_status=$?
10312 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10313     test $ac_status = 0; }
10314     then
10315     lt_cv_archive_cmds_need_lc=no
10316     else
10317     lt_cv_archive_cmds_need_lc=yes
10318     fi
10319     allow_undefined_flag=$lt_save_allow_undefined_flag
10320     else
10321     cat conftest.err 1>&5
10322     fi
10323     $RM conftest*
10324    
10325     fi
10326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10327     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10328     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10329 michael 5052 ;;
10330     esac
10331     fi
10332     ;;
10333     esac
10334    
10335 michael 5059
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    
10443    
10444    
10445    
10446    
10447    
10448    
10449    
10450    
10451    
10452    
10453    
10454    
10455    
10456    
10457    
10458    
10459    
10460    
10461    
10462    
10463    
10464    
10465    
10466    
10467    
10468    
10469    
10470    
10471    
10472    
10473    
10474    
10475    
10476    
10477    
10478    
10479    
10480    
10481    
10482    
10483    
10484    
10485    
10486     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10487     $as_echo_n "checking dynamic linker characteristics... " >&6; }
10488    
10489     if test yes = "$GCC"; then
10490     case $host_os in
10491     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10492     *) lt_awk_arg='/^libraries:/' ;;
10493     esac
10494     case $host_os in
10495     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10496     *) lt_sed_strip_eq='s|=/|/|g' ;;
10497     esac
10498     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10499     case $lt_search_path_spec in
10500     *\;*)
10501     # if the path contains ";" then we assume it to be the separator
10502     # otherwise default to the standard path separator (i.e. ":") - it is
10503     # assumed that no part of a normal pathname contains ";" but that should
10504     # okay in the real world where ";" in dirpaths is itself problematic.
10505     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10506     ;;
10507     *)
10508     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10509     ;;
10510     esac
10511     # Ok, now we have the path, separated by spaces, we can step through it
10512     # and add multilib dir if necessary...
10513     lt_tmp_lt_search_path_spec=
10514     lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10515     # ...but if some path component already ends with the multilib dir we assume
10516     # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10517     case "$lt_multi_os_dir; $lt_search_path_spec " in
10518     "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10519     lt_multi_os_dir=
10520     ;;
10521     esac
10522     for lt_sys_path in $lt_search_path_spec; do
10523     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10524     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10525     elif test -n "$lt_multi_os_dir"; then
10526     test -d "$lt_sys_path" && \
10527     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10528     fi
10529     done
10530     lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10531     BEGIN {RS = " "; FS = "/|\n";} {
10532     lt_foo = "";
10533     lt_count = 0;
10534     for (lt_i = NF; lt_i > 0; lt_i--) {
10535     if ($lt_i != "" && $lt_i != ".") {
10536     if ($lt_i == "..") {
10537     lt_count++;
10538     } else {
10539     if (lt_count == 0) {
10540     lt_foo = "/" $lt_i lt_foo;
10541     } else {
10542     lt_count--;
10543     }
10544     }
10545     }
10546     }
10547     if (lt_foo != "") { lt_freq[lt_foo]++; }
10548     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10549     }'`
10550     # AWK program above erroneously prepends '/' to C:/dos/paths
10551     # for these hosts.
10552     case $host_os in
10553     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10554     $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10555     esac
10556     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10557     else
10558     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10559     fi
10560 michael 5052 library_names_spec=
10561     libname_spec='lib$name'
10562     soname_spec=
10563 michael 5059 shrext_cmds=.so
10564 michael 5052 postinstall_cmds=
10565     postuninstall_cmds=
10566     finish_cmds=
10567     finish_eval=
10568     shlibpath_var=
10569     shlibpath_overrides_runpath=unknown
10570     version_type=none
10571     dynamic_linker="$host_os ld.so"
10572     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10573     need_lib_prefix=unknown
10574     hardcode_into_libs=no
10575    
10576     # when you set need_version to no, make sure it does not cause -set_version
10577     # flags to be left without arguments
10578     need_version=unknown
10579    
10580     case $host_os in
10581     aix3*)
10582 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10583     library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10584 michael 5052 shlibpath_var=LIBPATH
10585    
10586     # AIX 3 has no versioning support, so we append a major version to the name.
10587 michael 5059 soname_spec='$libname$release$shared_ext$major'
10588 michael 5052 ;;
10589    
10590 michael 5059 aix[4-9]*)
10591     version_type=linux # correct to gnu/linux during the next big refactor
10592 michael 5052 need_lib_prefix=no
10593     need_version=no
10594     hardcode_into_libs=yes
10595 michael 5059 if test ia64 = "$host_cpu"; then
10596 michael 5052 # AIX 5 supports IA64
10597 michael 5059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10598 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10599     else
10600     # With GCC up to 2.95.x, collect2 would create an import file
10601     # for dependence libraries. The import file would start with
10602 michael 5059 # the line '#! .'. This would cause the generated library to
10603     # depend on '.', always an invalid library. This was fixed in
10604 michael 5052 # development snapshots of GCC prior to 3.0.
10605     case $host_os in
10606     aix4 | aix4.[01] | aix4.[01].*)
10607     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10608     echo ' yes '
10609 michael 5059 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10610 michael 5052 :
10611     else
10612     can_build_shared=no
10613     fi
10614     ;;
10615     esac
10616 michael 5059 # Using Import Files as archive members, it is possible to support
10617     # filename-based versioning of shared library archives on AIX. While
10618     # this would work for both with and without runtime linking, it will
10619     # prevent static linking of such archives. So we do filename-based
10620     # shared library versioning with .so extension only, which is used
10621     # when both runtime linking and shared linking is enabled.
10622     # Unfortunately, runtime linking may impact performance, so we do
10623     # not want this to be the default eventually. Also, we use the
10624     # versioned .so libs for executables only if there is the -brtl
10625     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10626     # To allow for filename-based versioning support, we need to create
10627     # libNAME.so.V as an archive file, containing:
10628     # *) an Import File, referring to the versioned filename of the
10629     # archive as well as the shared archive member, telling the
10630     # bitwidth (32 or 64) of that shared object, and providing the
10631     # list of exported symbols of that shared object, eventually
10632     # decorated with the 'weak' keyword
10633     # *) the shared object with the F_LOADONLY flag set, to really avoid
10634     # it being seen by the linker.
10635     # At run time we better use the real file rather than another symlink,
10636     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10637    
10638     case $with_aix_soname,$aix_use_runtimelinking in
10639     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10640 michael 5052 # soname into executable. Probably we can add versioning support to
10641     # collect2, so additional links can be useful in future.
10642 michael 5059 aix,yes) # traditional libtool
10643     dynamic_linker='AIX unversionable lib.so'
10644 michael 5052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10645     # instead of lib<name>.a to let people know that these are not
10646     # typical AIX shared libraries.
10647 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10648     ;;
10649     aix,no) # traditional AIX only
10650     dynamic_linker='AIX lib.a(lib.so.V)'
10651 michael 5052 # We preserve .a as extension for shared libraries through AIX4.2
10652     # and later when we are not doing run time linking.
10653 michael 5059 library_names_spec='$libname$release.a $libname.a'
10654     soname_spec='$libname$release$shared_ext$major'
10655     ;;
10656     svr4,*) # full svr4 only
10657     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10658     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10659     # We do not specify a path in Import Files, so LIBPATH fires.
10660     shlibpath_overrides_runpath=yes
10661     ;;
10662     *,yes) # both, prefer svr4
10663     dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10664     library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10665     # unpreferred sharedlib libNAME.a needs extra handling
10666     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"'
10667     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"'
10668     # We do not specify a path in Import Files, so LIBPATH fires.
10669     shlibpath_overrides_runpath=yes
10670     ;;
10671     *,no) # both, prefer aix
10672     dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10673     library_names_spec='$libname$release.a $libname.a'
10674     soname_spec='$libname$release$shared_ext$major'
10675     # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10676     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)'
10677     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"'
10678     ;;
10679     esac
10680 michael 5052 shlibpath_var=LIBPATH
10681     fi
10682     ;;
10683    
10684     amigaos*)
10685 michael 5059 case $host_cpu in
10686     powerpc)
10687     # Since July 2007 AmigaOS4 officially supports .so libraries.
10688     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10689     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10690     ;;
10691     m68k)
10692     library_names_spec='$libname.ixlibrary $libname.a'
10693     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10694     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'
10695     ;;
10696     esac
10697 michael 5052 ;;
10698    
10699     beos*)
10700 michael 5059 library_names_spec='$libname$shared_ext'
10701 michael 5052 dynamic_linker="$host_os ld.so"
10702     shlibpath_var=LIBRARY_PATH
10703     ;;
10704    
10705     bsdi[45]*)
10706 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10707 michael 5052 need_version=no
10708 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10709     soname_spec='$libname$release$shared_ext$major'
10710 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10711     shlibpath_var=LD_LIBRARY_PATH
10712     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10713     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10714     # the default ld.so.conf also contains /usr/contrib/lib and
10715     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10716     # libtool to hard-code these into programs
10717     ;;
10718    
10719 michael 5059 cygwin* | mingw* | pw32* | cegcc*)
10720 michael 5052 version_type=windows
10721 michael 5059 shrext_cmds=.dll
10722 michael 5052 need_version=no
10723     need_lib_prefix=no
10724    
10725 michael 5059 case $GCC,$cc_basename in
10726     yes,*)
10727     # gcc
10728 michael 5052 library_names_spec='$libname.dll.a'
10729     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10730 michael 5059 postinstall_cmds='base_file=`basename \$file`~
10731     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10732 michael 5052 dldir=$destdir/`dirname \$dlpath`~
10733     test -d \$dldir || mkdir -p \$dldir~
10734     $install_prog $dir/$dlname \$dldir/$dlname~
10735 michael 5059 chmod a+x \$dldir/$dlname~
10736     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10737     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10738     fi'
10739 michael 5052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10740     dlpath=$dir/\$dldll~
10741 michael 5059 $RM \$dlpath'
10742 michael 5052 shlibpath_overrides_runpath=yes
10743    
10744     case $host_os in
10745     cygwin*)
10746     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10747 michael 5059 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10748    
10749     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10750 michael 5052 ;;
10751 michael 5059 mingw* | cegcc*)
10752 michael 5052 # MinGW DLLs use traditional 'lib' prefix
10753 michael 5059 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10754 michael 5052 ;;
10755     pw32*)
10756     # pw32 DLLs use 'pw' prefix rather than 'lib'
10757 michael 5059 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10758 michael 5052 ;;
10759     esac
10760 michael 5059 dynamic_linker='Win32 ld.exe'
10761 michael 5052 ;;
10762    
10763 michael 5059 *,cl*)
10764     # Native MSVC
10765     libname_spec='$name'
10766     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10767     library_names_spec='$libname.dll.lib'
10768    
10769     case $build_os in
10770     mingw*)
10771     sys_lib_search_path_spec=
10772     lt_save_ifs=$IFS
10773     IFS=';'
10774     for lt_path in $LIB
10775     do
10776     IFS=$lt_save_ifs
10777     # Let DOS variable expansion print the short 8.3 style file name.
10778     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10779     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10780     done
10781     IFS=$lt_save_ifs
10782     # Convert to MSYS style.
10783     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10784     ;;
10785     cygwin*)
10786     # Convert to unix form, then to dos form, then back to unix form
10787     # but this time dos style (no spaces!) so that the unix form looks
10788     # like /cygdrive/c/PROGRA~1:/cygdr...
10789     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10790     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10791     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10792     ;;
10793     *)
10794     sys_lib_search_path_spec=$LIB
10795     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10796     # It is most probably a Windows format PATH.
10797     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10798     else
10799     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800     fi
10801     # FIXME: find the short name or the path components, as spaces are
10802     # common. (e.g. "Program Files" -> "PROGRA~1")
10803     ;;
10804     esac
10805    
10806     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10807     postinstall_cmds='base_file=`basename \$file`~
10808     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10809     dldir=$destdir/`dirname \$dlpath`~
10810     test -d \$dldir || mkdir -p \$dldir~
10811     $install_prog $dir/$dlname \$dldir/$dlname'
10812     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10813     dlpath=$dir/\$dldll~
10814     $RM \$dlpath'
10815     shlibpath_overrides_runpath=yes
10816     dynamic_linker='Win32 link.exe'
10817     ;;
10818    
10819 michael 5052 *)
10820 michael 5059 # Assume MSVC wrapper
10821     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10822     dynamic_linker='Win32 ld.exe'
10823 michael 5052 ;;
10824     esac
10825     # FIXME: first we should search . and the directory the executable is in
10826     shlibpath_var=PATH
10827     ;;
10828    
10829     darwin* | rhapsody*)
10830     dynamic_linker="$host_os dyld"
10831     version_type=darwin
10832     need_lib_prefix=no
10833     need_version=no
10834 michael 5059 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10835     soname_spec='$libname$release$major$shared_ext'
10836 michael 5052 shlibpath_overrides_runpath=yes
10837     shlibpath_var=DYLD_LIBRARY_PATH
10838     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10839 michael 5059
10840     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10841 michael 5052 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10842     ;;
10843    
10844     dgux*)
10845 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
10846 michael 5052 need_lib_prefix=no
10847     need_version=no
10848 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10849     soname_spec='$libname$release$shared_ext$major'
10850 michael 5052 shlibpath_var=LD_LIBRARY_PATH
10851     ;;
10852    
10853     freebsd* | dragonfly*)
10854     # DragonFly does not have aout. When/if they implement a new
10855     # versioning mechanism, adjust this.
10856     if test -x /usr/bin/objformat; then
10857     objformat=`/usr/bin/objformat`
10858     else
10859     case $host_os in
10860 michael 5059 freebsd[23].*) objformat=aout ;;
10861 michael 5052 *) objformat=elf ;;
10862     esac
10863     fi
10864     version_type=freebsd-$objformat
10865     case $version_type in
10866     freebsd-elf*)
10867 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868 michael 5052 need_version=no
10869     need_lib_prefix=no
10870     ;;
10871     freebsd-*)
10872 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10873 michael 5052 need_version=yes
10874     ;;
10875     esac
10876     shlibpath_var=LD_LIBRARY_PATH
10877     case $host_os in
10878 michael 5059 freebsd2.*)
10879 michael 5052 shlibpath_overrides_runpath=yes
10880     ;;
10881     freebsd3.[01]* | freebsdelf3.[01]*)
10882     shlibpath_overrides_runpath=yes
10883     hardcode_into_libs=yes
10884     ;;
10885     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10886     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10887     shlibpath_overrides_runpath=no
10888     hardcode_into_libs=yes
10889     ;;
10890 michael 5059 *) # from 4.6 on, and DragonFly
10891 michael 5052 shlibpath_overrides_runpath=yes
10892     hardcode_into_libs=yes
10893     ;;
10894     esac
10895     ;;
10896    
10897 michael 5059 haiku*)
10898     version_type=linux # correct to gnu/linux during the next big refactor
10899 michael 5052 need_lib_prefix=no
10900     need_version=no
10901 michael 5059 dynamic_linker="$host_os runtime_loader"
10902     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10903     soname_spec='$libname$release$shared_ext$major'
10904     shlibpath_var=LIBRARY_PATH
10905     shlibpath_overrides_runpath=no
10906     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10907 michael 5052 hardcode_into_libs=yes
10908     ;;
10909    
10910     hpux9* | hpux10* | hpux11*)
10911     # Give a soname corresponding to the major version so that dld.sl refuses to
10912     # link against other versions.
10913     version_type=sunos
10914     need_lib_prefix=no
10915     need_version=no
10916     case $host_cpu in
10917     ia64*)
10918     shrext_cmds='.so'
10919     hardcode_into_libs=yes
10920     dynamic_linker="$host_os dld.so"
10921     shlibpath_var=LD_LIBRARY_PATH
10922     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10923 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10924     soname_spec='$libname$release$shared_ext$major'
10925     if test 32 = "$HPUX_IA64_MODE"; then
10926 michael 5052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10927     else
10928     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10929     fi
10930     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10931     ;;
10932 michael 5059 hppa*64*)
10933 michael 5052 shrext_cmds='.sl'
10934 michael 5059 hardcode_into_libs=yes
10935 michael 5052 dynamic_linker="$host_os dld.sl"
10936 michael 5059 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10937     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10938     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939     soname_spec='$libname$release$shared_ext$major'
10940     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10941     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10942     ;;
10943     *)
10944     shrext_cmds='.sl'
10945     dynamic_linker="$host_os dld.sl"
10946 michael 5052 shlibpath_var=SHLIB_PATH
10947     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10948 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10949     soname_spec='$libname$release$shared_ext$major'
10950 michael 5052 ;;
10951     esac
10952 michael 5059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10953 michael 5052 postinstall_cmds='chmod 555 $lib'
10954 michael 5059 # or fails outright, so override atomically:
10955     install_override_mode=555
10956 michael 5052 ;;
10957    
10958 michael 5059 interix[3-9]*)
10959     version_type=linux # correct to gnu/linux during the next big refactor
10960 michael 5052 need_lib_prefix=no
10961     need_version=no
10962 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10963     soname_spec='$libname$release$shared_ext$major'
10964 michael 5052 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10965     shlibpath_var=LD_LIBRARY_PATH
10966     shlibpath_overrides_runpath=no
10967     hardcode_into_libs=yes
10968     ;;
10969    
10970     irix5* | irix6* | nonstopux*)
10971     case $host_os in
10972     nonstopux*) version_type=nonstopux ;;
10973     *)
10974 michael 5059 if test yes = "$lt_cv_prog_gnu_ld"; then
10975     version_type=linux # correct to gnu/linux during the next big refactor
10976 michael 5052 else
10977     version_type=irix
10978     fi ;;
10979     esac
10980     need_lib_prefix=no
10981     need_version=no
10982 michael 5059 soname_spec='$libname$release$shared_ext$major'
10983     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10984 michael 5052 case $host_os in
10985     irix5* | nonstopux*)
10986     libsuff= shlibsuff=
10987     ;;
10988     *)
10989     case $LD in # libtool.m4 will add one of these switches to LD
10990     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10991     libsuff= shlibsuff= libmagic=32-bit;;
10992     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10993     libsuff=32 shlibsuff=N32 libmagic=N32;;
10994     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10995     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10996     *) libsuff= shlibsuff= libmagic=never-match;;
10997     esac
10998     ;;
10999     esac
11000     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11001     shlibpath_overrides_runpath=no
11002 michael 5059 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11003     sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11004 michael 5052 hardcode_into_libs=yes
11005     ;;
11006    
11007     # No shared lib support for Linux oldld, aout, or coff.
11008     linux*oldld* | linux*aout* | linux*coff*)
11009     dynamic_linker=no
11010     ;;
11011    
11012 michael 5059 linux*android*)
11013     version_type=none # Android doesn't support versioned libraries.
11014 michael 5052 need_lib_prefix=no
11015     need_version=no
11016 michael 5059 library_names_spec='$libname$release$shared_ext'
11017     soname_spec='$libname$release$shared_ext'
11018     finish_cmds=
11019     shlibpath_var=LD_LIBRARY_PATH
11020     shlibpath_overrides_runpath=yes
11021    
11022     # This implies no fast_install, which is unacceptable.
11023     # Some rework will be needed to allow for fast_install
11024     # before this can be enabled.
11025     hardcode_into_libs=yes
11026    
11027     dynamic_linker='Android linker'
11028     # Don't embed -rpath directories since the linker doesn't support them.
11029     hardcode_libdir_flag_spec='-L$libdir'
11030     ;;
11031    
11032     # This must be glibc/ELF.
11033     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11034     version_type=linux # correct to gnu/linux during the next big refactor
11035     need_lib_prefix=no
11036     need_version=no
11037     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11038     soname_spec='$libname$release$shared_ext$major'
11039 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11040     shlibpath_var=LD_LIBRARY_PATH
11041     shlibpath_overrides_runpath=no
11042 michael 5059
11043     # Some binutils ld are patched to set DT_RUNPATH
11044     if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11045     $as_echo_n "(cached) " >&6
11046     else
11047     lt_cv_shlibpath_overrides_runpath=no
11048     save_LDFLAGS=$LDFLAGS
11049     save_libdir=$libdir
11050     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11051     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11052     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053     /* end confdefs.h. */
11054    
11055     int
11056     main ()
11057     {
11058    
11059     ;
11060     return 0;
11061     }
11062     _ACEOF
11063     if ac_fn_c_try_link "$LINENO"; then :
11064     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11065     lt_cv_shlibpath_overrides_runpath=yes
11066     fi
11067     fi
11068     rm -f core conftest.err conftest.$ac_objext \
11069     conftest$ac_exeext conftest.$ac_ext
11070     LDFLAGS=$save_LDFLAGS
11071     libdir=$save_libdir
11072    
11073     fi
11074    
11075     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11076    
11077 michael 5052 # This implies no fast_install, which is unacceptable.
11078     # Some rework will be needed to allow for fast_install
11079     # before this can be enabled.
11080     hardcode_into_libs=yes
11081    
11082     # Append ld.so.conf contents to the search path
11083     if test -f /etc/ld.so.conf; then
11084 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' ' '`
11085 michael 5052 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11086     fi
11087    
11088     # We used to test for /lib/ld.so.1 and disable shared libraries on
11089     # powerpc, because MkLinux only supported shared libraries with the
11090     # GNU dynamic linker. Since this was broken with cross compilers,
11091     # most powerpc-linux boxes support dynamic linking these days and
11092     # people can always --disable-shared, the test was removed, and we
11093     # assume the GNU/Linux dynamic linker is in use.
11094     dynamic_linker='GNU/Linux ld.so'
11095     ;;
11096    
11097     netbsd*)
11098     version_type=sunos
11099     need_lib_prefix=no
11100     need_version=no
11101 michael 5059 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11102     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11103 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11104     dynamic_linker='NetBSD (a.out) ld.so'
11105     else
11106 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11107     soname_spec='$libname$release$shared_ext$major'
11108 michael 5052 dynamic_linker='NetBSD ld.elf_so'
11109     fi
11110     shlibpath_var=LD_LIBRARY_PATH
11111     shlibpath_overrides_runpath=yes
11112     hardcode_into_libs=yes
11113     ;;
11114    
11115     newsos6)
11116 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11117     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11118 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11119     shlibpath_overrides_runpath=yes
11120     ;;
11121    
11122 michael 5059 *nto* | *qnx*)
11123     version_type=qnx
11124 michael 5052 need_lib_prefix=no
11125     need_version=no
11126 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11127     soname_spec='$libname$release$shared_ext$major'
11128 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11129 michael 5059 shlibpath_overrides_runpath=no
11130     hardcode_into_libs=yes
11131     dynamic_linker='ldqnx.so'
11132 michael 5052 ;;
11133    
11134 michael 5059 openbsd* | bitrig*)
11135 michael 5052 version_type=sunos
11136 michael 5059 sys_lib_dlsearch_path_spec=/usr/lib
11137 michael 5052 need_lib_prefix=no
11138 michael 5059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11139     need_version=no
11140     else
11141     need_version=yes
11142     fi
11143     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11144 michael 5052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11145     shlibpath_var=LD_LIBRARY_PATH
11146 michael 5059 shlibpath_overrides_runpath=yes
11147 michael 5052 ;;
11148    
11149     os2*)
11150     libname_spec='$name'
11151 michael 5059 version_type=windows
11152     shrext_cmds=.dll
11153     need_version=no
11154 michael 5052 need_lib_prefix=no
11155 michael 5059 # OS/2 can only load a DLL with a base name of 8 characters or less.
11156     soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11157     v=$($ECHO $release$versuffix | tr -d .-);
11158     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11159     $ECHO $n$v`$shared_ext'
11160     library_names_spec='${libname}_dll.$libext'
11161 michael 5052 dynamic_linker='OS/2 ld.exe'
11162 michael 5059 shlibpath_var=BEGINLIBPATH
11163     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11164     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11165     postinstall_cmds='base_file=`basename \$file`~
11166     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11167     dldir=$destdir/`dirname \$dlpath`~
11168     test -d \$dldir || mkdir -p \$dldir~
11169     $install_prog $dir/$dlname \$dldir/$dlname~
11170     chmod a+x \$dldir/$dlname~
11171     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11172     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11173     fi'
11174     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11175     dlpath=$dir/\$dldll~
11176     $RM \$dlpath'
11177 michael 5052 ;;
11178    
11179     osf3* | osf4* | osf5*)
11180     version_type=osf
11181     need_lib_prefix=no
11182     need_version=no
11183 michael 5059 soname_spec='$libname$release$shared_ext$major'
11184     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11186     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11187 michael 5059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188 michael 5052 ;;
11189    
11190 michael 5059 rdos*)
11191     dynamic_linker=no
11192     ;;
11193    
11194 michael 5052 solaris*)
11195 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11196 michael 5052 need_lib_prefix=no
11197     need_version=no
11198 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11199     soname_spec='$libname$release$shared_ext$major'
11200 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11201     shlibpath_overrides_runpath=yes
11202     hardcode_into_libs=yes
11203     # ldd complains unless libraries are executable
11204     postinstall_cmds='chmod +x $lib'
11205     ;;
11206    
11207     sunos4*)
11208     version_type=sunos
11209 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11210 michael 5052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11211     shlibpath_var=LD_LIBRARY_PATH
11212     shlibpath_overrides_runpath=yes
11213 michael 5059 if test yes = "$with_gnu_ld"; then
11214 michael 5052 need_lib_prefix=no
11215     fi
11216     need_version=yes
11217     ;;
11218    
11219     sysv4 | sysv4.3*)
11220 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11221     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11222     soname_spec='$libname$release$shared_ext$major'
11223 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11224     case $host_vendor in
11225     sni)
11226     shlibpath_overrides_runpath=no
11227     need_lib_prefix=no
11228     runpath_var=LD_RUN_PATH
11229     ;;
11230     siemens)
11231     need_lib_prefix=no
11232     ;;
11233     motorola)
11234     need_lib_prefix=no
11235     need_version=no
11236     shlibpath_overrides_runpath=no
11237     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11238     ;;
11239     esac
11240     ;;
11241    
11242     sysv4*MP*)
11243 michael 5059 if test -d /usr/nec; then
11244     version_type=linux # correct to gnu/linux during the next big refactor
11245     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11246     soname_spec='$libname$shared_ext.$major'
11247 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11248     fi
11249     ;;
11250    
11251     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11252 michael 5059 version_type=sco
11253 michael 5052 need_lib_prefix=no
11254     need_version=no
11255 michael 5059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11256     soname_spec='$libname$release$shared_ext$major'
11257 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11258 michael 5059 shlibpath_overrides_runpath=yes
11259 michael 5052 hardcode_into_libs=yes
11260 michael 5059 if test yes = "$with_gnu_ld"; then
11261 michael 5052 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11262     else
11263     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11264     case $host_os in
11265     sco3.2v5*)
11266     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11267     ;;
11268     esac
11269     fi
11270     sys_lib_dlsearch_path_spec='/usr/lib'
11271     ;;
11272    
11273 michael 5059 tpf*)
11274     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11275     version_type=linux # correct to gnu/linux during the next big refactor
11276     need_lib_prefix=no
11277     need_version=no
11278     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279     shlibpath_var=LD_LIBRARY_PATH
11280     shlibpath_overrides_runpath=no
11281     hardcode_into_libs=yes
11282     ;;
11283    
11284 michael 5052 uts4*)
11285 michael 5059 version_type=linux # correct to gnu/linux during the next big refactor
11286     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11287     soname_spec='$libname$release$shared_ext$major'
11288 michael 5052 shlibpath_var=LD_LIBRARY_PATH
11289     ;;
11290    
11291     *)
11292     dynamic_linker=no
11293     ;;
11294     esac
11295 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11296     $as_echo "$dynamic_linker" >&6; }
11297     test no = "$dynamic_linker" && can_build_shared=no
11298 michael 5052
11299     variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11300 michael 5059 if test yes = "$GCC"; then
11301 michael 5052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11302     fi
11303    
11304 michael 5059 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11305     sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11306     fi
11307     if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11308     sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11309     fi
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    
11375    
11376    
11377    
11378    
11379    
11380    
11381    
11382    
11383    
11384    
11385    
11386    
11387    
11388    
11389    
11390    
11391    
11392    
11393    
11394    
11395    
11396    
11397    
11398    
11399    
11400    
11401    
11402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11403     $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11404 michael 5052 hardcode_action=
11405 michael 5059 if test -n "$hardcode_libdir_flag_spec" ||
11406     test -n "$runpath_var" ||
11407     test yes = "$hardcode_automatic"; then
11408 michael 5052
11409 michael 5059 # We can hardcode non-existent directories.
11410     if test no != "$hardcode_direct" &&
11411 michael 5052 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11412     # have to relink, otherwise we might link with an installed library
11413     # when we should be linking with a yet-to-be-installed one
11414 michael 5059 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11415     test no != "$hardcode_minus_L"; then
11416 michael 5052 # Linking always hardcodes the temporary library directory.
11417     hardcode_action=relink
11418     else
11419     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11420     hardcode_action=immediate
11421     fi
11422     else
11423     # We cannot hardcode anything, or else we can only hardcode existing
11424     # directories.
11425     hardcode_action=unsupported
11426     fi
11427 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11428     $as_echo "$hardcode_action" >&6; }
11429 michael 5052
11430 michael 5059 if test relink = "$hardcode_action" ||
11431     test yes = "$inherit_rpath"; then
11432 michael 5052 # Fast installation is not supported
11433     enable_fast_install=no
11434 michael 5059 elif test yes = "$shlibpath_overrides_runpath" ||
11435     test no = "$enable_shared"; then
11436 michael 5052 # Fast installation is not necessary
11437     enable_fast_install=needless
11438     fi
11439    
11440    
11441 michael 5059
11442    
11443    
11444    
11445     if test yes != "$enable_dlopen"; then
11446 michael 5052 enable_dlopen=unknown
11447     enable_dlopen_self=unknown
11448     enable_dlopen_self_static=unknown
11449     else
11450     lt_cv_dlopen=no
11451     lt_cv_dlopen_libs=
11452    
11453     case $host_os in
11454     beos*)
11455 michael 5059 lt_cv_dlopen=load_add_on
11456 michael 5052 lt_cv_dlopen_libs=
11457     lt_cv_dlopen_self=yes
11458     ;;
11459    
11460 michael 5059 mingw* | pw32* | cegcc*)
11461     lt_cv_dlopen=LoadLibrary
11462 michael 5052 lt_cv_dlopen_libs=
11463 michael 5059 ;;
11464 michael 5052
11465     cygwin*)
11466 michael 5059 lt_cv_dlopen=dlopen
11467 michael 5052 lt_cv_dlopen_libs=
11468 michael 5059 ;;
11469 michael 5052
11470     darwin*)
11471 michael 5059 # if libdl is installed we need to link against it
11472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11473     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11474     if ${ac_cv_lib_dl_dlopen+:} false; then :
11475     $as_echo_n "(cached) " >&6
11476 michael 5052 else
11477     ac_check_lib_save_LIBS=$LIBS
11478     LIBS="-ldl $LIBS"
11479 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 michael 5052 /* end confdefs.h. */
11481    
11482     /* Override any GCC internal prototype to avoid an error.
11483     Use char because int might match the return type of a GCC
11484     builtin and then its argument prototype would still apply. */
11485     #ifdef __cplusplus
11486     extern "C"
11487     #endif
11488     char dlopen ();
11489     int
11490     main ()
11491     {
11492     return dlopen ();
11493     ;
11494     return 0;
11495     }
11496     _ACEOF
11497 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11498 michael 5052 ac_cv_lib_dl_dlopen=yes
11499     else
11500 michael 5059 ac_cv_lib_dl_dlopen=no
11501 michael 5052 fi
11502     rm -f core conftest.err conftest.$ac_objext \
11503 michael 5059 conftest$ac_exeext conftest.$ac_ext
11504 michael 5052 LIBS=$ac_check_lib_save_LIBS
11505     fi
11506 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11507     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11508     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11509     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11510 michael 5052 else
11511    
11512 michael 5059 lt_cv_dlopen=dyld
11513 michael 5052 lt_cv_dlopen_libs=
11514     lt_cv_dlopen_self=yes
11515    
11516     fi
11517    
11518 michael 5059 ;;
11519 michael 5052
11520 michael 5059 tpf*)
11521     # Don't try to run any link tests for TPF. We know it's impossible
11522     # because TPF is a cross-compiler, and we know how we open DSOs.
11523     lt_cv_dlopen=dlopen
11524     lt_cv_dlopen_libs=
11525     lt_cv_dlopen_self=no
11526     ;;
11527    
11528 michael 5052 *)
11529 michael 5059 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11530     if test "x$ac_cv_func_shl_load" = xyes; then :
11531     lt_cv_dlopen=shl_load
11532 michael 5052 else
11533 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11534     $as_echo_n "checking for shl_load in -ldld... " >&6; }
11535     if ${ac_cv_lib_dld_shl_load+:} false; then :
11536     $as_echo_n "(cached) " >&6
11537 michael 5052 else
11538     ac_check_lib_save_LIBS=$LIBS
11539     LIBS="-ldld $LIBS"
11540 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 michael 5052 /* end confdefs.h. */
11542    
11543     /* Override any GCC internal prototype to avoid an error.
11544     Use char because int might match the return type of a GCC
11545     builtin and then its argument prototype would still apply. */
11546     #ifdef __cplusplus
11547     extern "C"
11548     #endif
11549     char shl_load ();
11550     int
11551     main ()
11552     {
11553     return shl_load ();
11554     ;
11555     return 0;
11556     }
11557     _ACEOF
11558 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11559 michael 5052 ac_cv_lib_dld_shl_load=yes
11560     else
11561 michael 5059 ac_cv_lib_dld_shl_load=no
11562 michael 5052 fi
11563     rm -f core conftest.err conftest.$ac_objext \
11564 michael 5059 conftest$ac_exeext conftest.$ac_ext
11565 michael 5052 LIBS=$ac_check_lib_save_LIBS
11566     fi
11567 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11568     $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11569     if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11570     lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11571 michael 5052 else
11572 michael 5059 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11573     if test "x$ac_cv_func_dlopen" = xyes; then :
11574     lt_cv_dlopen=dlopen
11575 michael 5052 else
11576 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11577     $as_echo_n "checking for dlopen in -ldl... " >&6; }
11578     if ${ac_cv_lib_dl_dlopen+:} false; then :
11579     $as_echo_n "(cached) " >&6
11580 michael 5052 else
11581     ac_check_lib_save_LIBS=$LIBS
11582     LIBS="-ldl $LIBS"
11583 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 michael 5052 /* end confdefs.h. */
11585    
11586     /* Override any GCC internal prototype to avoid an error.
11587     Use char because int might match the return type of a GCC
11588     builtin and then its argument prototype would still apply. */
11589     #ifdef __cplusplus
11590     extern "C"
11591     #endif
11592     char dlopen ();
11593     int
11594     main ()
11595     {
11596     return dlopen ();
11597     ;
11598     return 0;
11599     }
11600     _ACEOF
11601 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11602 michael 5052 ac_cv_lib_dl_dlopen=yes
11603     else
11604 michael 5059 ac_cv_lib_dl_dlopen=no
11605 michael 5052 fi
11606     rm -f core conftest.err conftest.$ac_objext \
11607 michael 5059 conftest$ac_exeext conftest.$ac_ext
11608 michael 5052 LIBS=$ac_check_lib_save_LIBS
11609     fi
11610 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11611     $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11612     if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11613     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11614 michael 5052 else
11615 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11616     $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11617     if ${ac_cv_lib_svld_dlopen+:} false; then :
11618     $as_echo_n "(cached) " >&6
11619 michael 5052 else
11620     ac_check_lib_save_LIBS=$LIBS
11621     LIBS="-lsvld $LIBS"
11622 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 michael 5052 /* end confdefs.h. */
11624    
11625     /* Override any GCC internal prototype to avoid an error.
11626     Use char because int might match the return type of a GCC
11627     builtin and then its argument prototype would still apply. */
11628     #ifdef __cplusplus
11629     extern "C"
11630     #endif
11631     char dlopen ();
11632     int
11633     main ()
11634     {
11635     return dlopen ();
11636     ;
11637     return 0;
11638     }
11639     _ACEOF
11640 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11641 michael 5052 ac_cv_lib_svld_dlopen=yes
11642     else
11643 michael 5059 ac_cv_lib_svld_dlopen=no
11644 michael 5052 fi
11645     rm -f core conftest.err conftest.$ac_objext \
11646 michael 5059 conftest$ac_exeext conftest.$ac_ext
11647 michael 5052 LIBS=$ac_check_lib_save_LIBS
11648     fi
11649 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11650     $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11651     if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11652     lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11653 michael 5052 else
11654 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11655     $as_echo_n "checking for dld_link in -ldld... " >&6; }
11656     if ${ac_cv_lib_dld_dld_link+:} false; then :
11657     $as_echo_n "(cached) " >&6
11658 michael 5052 else
11659     ac_check_lib_save_LIBS=$LIBS
11660     LIBS="-ldld $LIBS"
11661 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 michael 5052 /* end confdefs.h. */
11663    
11664     /* Override any GCC internal prototype to avoid an error.
11665     Use char because int might match the return type of a GCC
11666     builtin and then its argument prototype would still apply. */
11667     #ifdef __cplusplus
11668     extern "C"
11669     #endif
11670     char dld_link ();
11671     int
11672     main ()
11673     {
11674     return dld_link ();
11675     ;
11676     return 0;
11677     }
11678     _ACEOF
11679 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
11680 michael 5052 ac_cv_lib_dld_dld_link=yes
11681     else
11682 michael 5059 ac_cv_lib_dld_dld_link=no
11683 michael 5052 fi
11684     rm -f core conftest.err conftest.$ac_objext \
11685 michael 5059 conftest$ac_exeext conftest.$ac_ext
11686 michael 5052 LIBS=$ac_check_lib_save_LIBS
11687     fi
11688 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11689     $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11690     if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11691     lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11692 michael 5052 fi
11693    
11694    
11695     fi
11696    
11697    
11698     fi
11699    
11700    
11701     fi
11702    
11703    
11704     fi
11705    
11706    
11707     fi
11708    
11709     ;;
11710     esac
11711    
11712 michael 5059 if test no = "$lt_cv_dlopen"; then
11713     enable_dlopen=no
11714     else
11715 michael 5052 enable_dlopen=yes
11716     fi
11717    
11718     case $lt_cv_dlopen in
11719     dlopen)
11720 michael 5059 save_CPPFLAGS=$CPPFLAGS
11721     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11722 michael 5052
11723 michael 5059 save_LDFLAGS=$LDFLAGS
11724 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11725    
11726 michael 5059 save_LIBS=$LIBS
11727 michael 5052 LIBS="$lt_cv_dlopen_libs $LIBS"
11728    
11729 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11730     $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11731     if ${lt_cv_dlopen_self+:} false; then :
11732     $as_echo_n "(cached) " >&6
11733 michael 5052 else
11734 michael 5059 if test yes = "$cross_compiling"; then :
11735 michael 5052 lt_cv_dlopen_self=cross
11736     else
11737     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11738     lt_status=$lt_dlunknown
11739 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11740     #line $LINENO "configure"
11741 michael 5052 #include "confdefs.h"
11742    
11743     #if HAVE_DLFCN_H
11744     #include <dlfcn.h>
11745     #endif
11746    
11747     #include <stdio.h>
11748    
11749     #ifdef RTLD_GLOBAL
11750     # define LT_DLGLOBAL RTLD_GLOBAL
11751     #else
11752     # ifdef DL_GLOBAL
11753     # define LT_DLGLOBAL DL_GLOBAL
11754     # else
11755     # define LT_DLGLOBAL 0
11756     # endif
11757     #endif
11758    
11759     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11760     find out it does not work in some platform. */
11761     #ifndef LT_DLLAZY_OR_NOW
11762     # ifdef RTLD_LAZY
11763     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11764     # else
11765     # ifdef DL_LAZY
11766     # define LT_DLLAZY_OR_NOW DL_LAZY
11767     # else
11768     # ifdef RTLD_NOW
11769     # define LT_DLLAZY_OR_NOW RTLD_NOW
11770     # else
11771     # ifdef DL_NOW
11772     # define LT_DLLAZY_OR_NOW DL_NOW
11773     # else
11774     # define LT_DLLAZY_OR_NOW 0
11775     # endif
11776     # endif
11777     # endif
11778     # endif
11779     #endif
11780    
11781 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11782     correspondingly for the symbols needed. */
11783     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11784     int fnord () __attribute__((visibility("default")));
11785 michael 5052 #endif
11786    
11787 michael 5059 int fnord () { return 42; }
11788 michael 5052 int main ()
11789     {
11790     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791     int status = $lt_dlunknown;
11792    
11793     if (self)
11794     {
11795     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11796 michael 5059 else
11797     {
11798     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11799     else puts (dlerror ());
11800     }
11801 michael 5052 /* dlclose (self); */
11802     }
11803     else
11804     puts (dlerror ());
11805    
11806 michael 5059 return status;
11807 michael 5052 }
11808 michael 5059 _LT_EOF
11809     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11810 michael 5052 (eval $ac_link) 2>&5
11811     ac_status=$?
11812 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11813     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11814 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11815     lt_status=$?
11816     case x$lt_status in
11817     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11818     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11819     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11820     esac
11821     else :
11822     # compilation failed
11823     lt_cv_dlopen_self=no
11824     fi
11825     fi
11826     rm -fr conftest*
11827    
11828    
11829     fi
11830 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11831     $as_echo "$lt_cv_dlopen_self" >&6; }
11832 michael 5052
11833 michael 5059 if test yes = "$lt_cv_dlopen_self"; then
11834 michael 5052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11835 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11836     $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11837     if ${lt_cv_dlopen_self_static+:} false; then :
11838     $as_echo_n "(cached) " >&6
11839 michael 5052 else
11840 michael 5059 if test yes = "$cross_compiling"; then :
11841 michael 5052 lt_cv_dlopen_self_static=cross
11842     else
11843     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11844     lt_status=$lt_dlunknown
11845 michael 5059 cat > conftest.$ac_ext <<_LT_EOF
11846     #line $LINENO "configure"
11847 michael 5052 #include "confdefs.h"
11848    
11849     #if HAVE_DLFCN_H
11850     #include <dlfcn.h>
11851     #endif
11852    
11853     #include <stdio.h>
11854    
11855     #ifdef RTLD_GLOBAL
11856     # define LT_DLGLOBAL RTLD_GLOBAL
11857     #else
11858     # ifdef DL_GLOBAL
11859     # define LT_DLGLOBAL DL_GLOBAL
11860     # else
11861     # define LT_DLGLOBAL 0
11862     # endif
11863     #endif
11864    
11865     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11866     find out it does not work in some platform. */
11867     #ifndef LT_DLLAZY_OR_NOW
11868     # ifdef RTLD_LAZY
11869     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11870     # else
11871     # ifdef DL_LAZY
11872     # define LT_DLLAZY_OR_NOW DL_LAZY
11873     # else
11874     # ifdef RTLD_NOW
11875     # define LT_DLLAZY_OR_NOW RTLD_NOW
11876     # else
11877     # ifdef DL_NOW
11878     # define LT_DLLAZY_OR_NOW DL_NOW
11879     # else
11880     # define LT_DLLAZY_OR_NOW 0
11881     # endif
11882     # endif
11883     # endif
11884     # endif
11885     #endif
11886    
11887 michael 5059 /* When -fvisibility=hidden is used, assume the code has been annotated
11888     correspondingly for the symbols needed. */
11889     #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11890     int fnord () __attribute__((visibility("default")));
11891 michael 5052 #endif
11892    
11893 michael 5059 int fnord () { return 42; }
11894 michael 5052 int main ()
11895     {
11896     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11897     int status = $lt_dlunknown;
11898    
11899     if (self)
11900     {
11901     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11902 michael 5059 else
11903     {
11904     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11905     else puts (dlerror ());
11906     }
11907 michael 5052 /* dlclose (self); */
11908     }
11909     else
11910     puts (dlerror ());
11911    
11912 michael 5059 return status;
11913 michael 5052 }
11914 michael 5059 _LT_EOF
11915     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11916 michael 5052 (eval $ac_link) 2>&5
11917     ac_status=$?
11918 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11919     test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11920 michael 5052 (./conftest; exit; ) >&5 2>/dev/null
11921     lt_status=$?
11922     case x$lt_status in
11923     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11924     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11925     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11926     esac
11927     else :
11928     # compilation failed
11929     lt_cv_dlopen_self_static=no
11930     fi
11931     fi
11932     rm -fr conftest*
11933    
11934    
11935     fi
11936 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11937     $as_echo "$lt_cv_dlopen_self_static" >&6; }
11938 michael 5052 fi
11939    
11940 michael 5059 CPPFLAGS=$save_CPPFLAGS
11941     LDFLAGS=$save_LDFLAGS
11942     LIBS=$save_LIBS
11943 michael 5052 ;;
11944     esac
11945    
11946     case $lt_cv_dlopen_self in
11947     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11948     *) enable_dlopen_self=unknown ;;
11949     esac
11950    
11951     case $lt_cv_dlopen_self_static in
11952     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11953     *) enable_dlopen_self_static=unknown ;;
11954     esac
11955     fi
11956    
11957    
11958    
11959    
11960    
11961    
11962    
11963    
11964    
11965    
11966    
11967    
11968    
11969    
11970    
11971    
11972    
11973 michael 5059 striplib=
11974     old_striplib=
11975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11976     $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11977     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11978     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11979     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981     $as_echo "yes" >&6; }
11982 michael 5052 else
11983 michael 5059 # FIXME - insert some real tests, host_os isn't really good enough
11984 michael 5052 case $host_os in
11985 michael 5059 darwin*)
11986     if test -n "$STRIP"; then
11987     striplib="$STRIP -x"
11988     old_striplib="$STRIP -S"
11989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990     $as_echo "yes" >&6; }
11991 michael 5052 else
11992 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993     $as_echo "no" >&6; }
11994 michael 5052 fi
11995     ;;
11996     *)
11997 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998     $as_echo "no" >&6; }
11999 michael 5052 ;;
12000     esac
12001     fi
12002    
12003    
12004    
12005    
12006    
12007    
12008    
12009    
12010    
12011    
12012    
12013    
12014 michael 5059 # Report what library types will actually be built
12015     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12016     $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12018     $as_echo "$can_build_shared" >&6; }
12019 michael 5052
12020 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12021     $as_echo_n "checking whether to build shared libraries... " >&6; }
12022     test no = "$can_build_shared" && enable_shared=no
12023 michael 5052
12024 michael 5059 # On AIX, shared libraries and static libraries use the same namespace, and
12025     # are all built from PIC.
12026 michael 5052 case $host_os in
12027 michael 5059 aix3*)
12028     test yes = "$enable_shared" && enable_static=no
12029     if test -n "$RANLIB"; then
12030     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12031     postinstall_cmds='$RANLIB $lib'
12032 michael 5052 fi
12033     ;;
12034    
12035 michael 5059 aix[4-9]*)
12036     if test ia64 != "$host_cpu"; then
12037     case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12038     yes,aix,yes) ;; # shared object as lib.so file only
12039     yes,svr4,*) ;; # shared object as lib.so archive member only
12040     yes,*) enable_static=no ;; # shared object in lib.a archive as well
12041 michael 5052 esac
12042     fi
12043     ;;
12044     esac
12045 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12046     $as_echo "$enable_shared" >&6; }
12047 michael 5052
12048 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12049     $as_echo_n "checking whether to build static libraries... " >&6; }
12050     # Make sure either enable_shared or enable_static is yes.
12051     test yes = "$enable_shared" || enable_static=yes
12052     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12053     $as_echo "$enable_static" >&6; }
12054 michael 5052
12055    
12056    
12057    
12058     fi
12059     ac_ext=c
12060     ac_cpp='$CPP $CPPFLAGS'
12061     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12062     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12063     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12064    
12065 michael 5059 CC=$lt_save_CC
12066 michael 5052
12067    
12068    
12069    
12070    
12071    
12072    
12073    
12074    
12075    
12076    
12077    
12078    
12079    
12080    
12081 michael 5059 ac_config_commands="$ac_config_commands libtool"
12082 michael 5052
12083    
12084    
12085    
12086 michael 5059 # Only expand once:
12087 michael 5052
12088    
12089    
12090    
12091     for ac_header in sys/poll.h
12092 michael 5059 do :
12093     ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
12094     if test "x$ac_cv_header_sys_poll_h" = xyes; then :
12095 michael 5052 cat >>confdefs.h <<_ACEOF
12096 michael 5059 #define HAVE_SYS_POLL_H 1
12097 michael 5052 _ACEOF
12098     have_poll_sys_h=yes
12099     else
12100     have_sys_poll_h=no
12101     fi
12102    
12103     done
12104    
12105    
12106 michael 5209 for ac_header in fcntl.h sys/time.h unistd.h
12107 michael 5059 do :
12108     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12109     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12110     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12111 michael 5052 cat >>confdefs.h <<_ACEOF
12112 michael 5059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12113 michael 5052 _ACEOF
12114    
12115     fi
12116    
12117     done
12118    
12119    
12120 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12121     $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12122     if ${ac_cv_header_time+:} false; then :
12123     $as_echo_n "(cached) " >&6
12124 michael 5052 else
12125 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 michael 5052 /* end confdefs.h. */
12127     #include <sys/types.h>
12128     #include <sys/time.h>
12129     #include <time.h>
12130    
12131     int
12132     main ()
12133     {
12134     if ((struct tm *) 0)
12135     return 0;
12136     ;
12137     return 0;
12138     }
12139     _ACEOF
12140 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12141 michael 5052 ac_cv_header_time=yes
12142     else
12143 michael 5059 ac_cv_header_time=no
12144 michael 5052 fi
12145     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146     fi
12147 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12148     $as_echo "$ac_cv_header_time" >&6; }
12149 michael 5052 if test $ac_cv_header_time = yes; then
12150    
12151 michael 5059 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12152 michael 5052
12153     fi
12154    
12155 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12156     $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12157     if ${ac_cv_struct_tm+:} false; then :
12158     $as_echo_n "(cached) " >&6
12159 michael 5052 else
12160 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 michael 5052 /* end confdefs.h. */
12162     #include <sys/types.h>
12163     #include <time.h>
12164    
12165     int
12166     main ()
12167     {
12168 michael 5059 struct tm tm;
12169     int *p = &tm.tm_sec;
12170     return !p;
12171 michael 5052 ;
12172     return 0;
12173     }
12174     _ACEOF
12175 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12176 michael 5052 ac_cv_struct_tm=time.h
12177     else
12178 michael 5059 ac_cv_struct_tm=sys/time.h
12179 michael 5052 fi
12180     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181     fi
12182 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12183     $as_echo "$ac_cv_struct_tm" >&6; }
12184 michael 5052 if test $ac_cv_struct_tm = sys/time.h; then
12185    
12186 michael 5059 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
12187 michael 5052
12188     fi
12189    
12190    
12191    
12192     for ac_prog in 'bison -y' byacc
12193     do
12194     # Extract the first word of "$ac_prog", so it can be a program name with args.
12195     set dummy $ac_prog; ac_word=$2
12196 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197     $as_echo_n "checking for $ac_word... " >&6; }
12198     if ${ac_cv_prog_YACC+:} false; then :
12199     $as_echo_n "(cached) " >&6
12200 michael 5052 else
12201     if test -n "$YACC"; then
12202     ac_cv_prog_YACC="$YACC" # Let the user override the test.
12203     else
12204     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205     for as_dir in $PATH
12206     do
12207     IFS=$as_save_IFS
12208     test -z "$as_dir" && as_dir=.
12209 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12210     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 michael 5052 ac_cv_prog_YACC="$ac_prog"
12212 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213 michael 5052 break 2
12214     fi
12215     done
12216 michael 5059 done
12217 michael 5052 IFS=$as_save_IFS
12218    
12219     fi
12220     fi
12221     YACC=$ac_cv_prog_YACC
12222     if test -n "$YACC"; then
12223 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12224     $as_echo "$YACC" >&6; }
12225 michael 5052 else
12226 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227     $as_echo "no" >&6; }
12228 michael 5052 fi
12229    
12230    
12231     test -n "$YACC" && break
12232     done
12233     test -n "$YACC" || YACC="yacc"
12234    
12235    
12236     for ac_prog in flex lex
12237     do
12238     # Extract the first word of "$ac_prog", so it can be a program name with args.
12239     set dummy $ac_prog; ac_word=$2
12240 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241     $as_echo_n "checking for $ac_word... " >&6; }
12242     if ${ac_cv_prog_LEX+:} false; then :
12243     $as_echo_n "(cached) " >&6
12244 michael 5052 else
12245     if test -n "$LEX"; then
12246     ac_cv_prog_LEX="$LEX" # Let the user override the test.
12247     else
12248     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249     for as_dir in $PATH
12250     do
12251     IFS=$as_save_IFS
12252     test -z "$as_dir" && as_dir=.
12253 michael 5059 for ac_exec_ext in '' $ac_executable_extensions; do
12254     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12255 michael 5052 ac_cv_prog_LEX="$ac_prog"
12256 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 michael 5052 break 2
12258     fi
12259     done
12260 michael 5059 done
12261 michael 5052 IFS=$as_save_IFS
12262    
12263     fi
12264     fi
12265     LEX=$ac_cv_prog_LEX
12266     if test -n "$LEX"; then
12267 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12268     $as_echo "$LEX" >&6; }
12269 michael 5052 else
12270 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271     $as_echo "no" >&6; }
12272 michael 5052 fi
12273    
12274    
12275     test -n "$LEX" && break
12276     done
12277     test -n "$LEX" || LEX=":"
12278    
12279 michael 5059 if test "x$LEX" != "x:"; then
12280     cat >conftest.l <<_ACEOF
12281     %%
12282     a { ECHO; }
12283     b { REJECT; }
12284     c { yymore (); }
12285     d { yyless (1); }
12286     e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12287     yyless ((input () != 0)); }
12288     f { unput (yytext[0]); }
12289     . { BEGIN INITIAL; }
12290     %%
12291     #ifdef YYTEXT_POINTER
12292     extern char *yytext;
12293 michael 5052 #endif
12294     int
12295 michael 5059 main (void)
12296 michael 5052 {
12297 michael 5059 return ! yylex () + ! yywrap ();
12298 michael 5052 }
12299     _ACEOF
12300 michael 5059 { { ac_try="$LEX conftest.l"
12301 michael 5052 case "(($ac_try" in
12302     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12303     *) ac_try_echo=$ac_try;;
12304     esac
12305 michael 5059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12306     $as_echo "$ac_try_echo"; } >&5
12307     (eval "$LEX conftest.l") 2>&5
12308 michael 5052 ac_status=$?
12309 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12310     test $ac_status = 0; }
12311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12312     $as_echo_n "checking lex output file root... " >&6; }
12313     if ${ac_cv_prog_lex_root+:} false; then :
12314     $as_echo_n "(cached) " >&6
12315 michael 5052 else
12316    
12317 michael 5059 if test -f lex.yy.c; then
12318     ac_cv_prog_lex_root=lex.yy
12319     elif test -f lexyy.c; then
12320     ac_cv_prog_lex_root=lexyy
12321     else
12322     as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12323 michael 5052 fi
12324 michael 5059 fi
12325     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12326     $as_echo "$ac_cv_prog_lex_root" >&6; }
12327     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12328 michael 5052
12329 michael 5059 if test -z "${LEXLIB+set}"; then
12330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12331     $as_echo_n "checking lex library... " >&6; }
12332     if ${ac_cv_lib_lex+:} false; then :
12333     $as_echo_n "(cached) " >&6
12334 michael 5052 else
12335 michael 5059
12336     ac_save_LIBS=$LIBS
12337     ac_cv_lib_lex='none needed'
12338     for ac_lib in '' -lfl -ll; do
12339     LIBS="$ac_lib $ac_save_LIBS"
12340     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 michael 5052 /* end confdefs.h. */
12342 michael 5059 `cat $LEX_OUTPUT_ROOT.c`
12343 michael 5052 _ACEOF
12344 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12345     ac_cv_lib_lex=$ac_lib
12346 michael 5052 fi
12347     rm -f core conftest.err conftest.$ac_objext \
12348 michael 5059 conftest$ac_exeext conftest.$ac_ext
12349     test "$ac_cv_lib_lex" != 'none needed' && break
12350     done
12351     LIBS=$ac_save_LIBS
12352 michael 5052
12353     fi
12354 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12355     $as_echo "$ac_cv_lib_lex" >&6; }
12356     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12357 michael 5052 fi
12358    
12359    
12360 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12361     $as_echo_n "checking whether yytext is a pointer... " >&6; }
12362     if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12363     $as_echo_n "(cached) " >&6
12364 michael 5052 else
12365     # POSIX says lex can declare yytext either as a pointer or an array; the
12366 michael 5059 # default is implementation-dependent. Figure out which it is, since
12367 michael 5052 # not all implementations provide the %pointer and %array declarations.
12368     ac_cv_prog_lex_yytext_pointer=no
12369     ac_save_LIBS=$LIBS
12370 michael 5059 LIBS="$LEXLIB $ac_save_LIBS"
12371     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372     /* end confdefs.h. */
12373    
12374     #define YYTEXT_POINTER 1
12375 michael 5052 `cat $LEX_OUTPUT_ROOT.c`
12376     _ACEOF
12377 michael 5059 if ac_fn_c_try_link "$LINENO"; then :
12378 michael 5052 ac_cv_prog_lex_yytext_pointer=yes
12379     fi
12380     rm -f core conftest.err conftest.$ac_objext \
12381 michael 5059 conftest$ac_exeext conftest.$ac_ext
12382 michael 5052 LIBS=$ac_save_LIBS
12383    
12384     fi
12385 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12386     $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12387 michael 5052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12388    
12389 michael 5059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12390 michael 5052
12391     fi
12392 michael 5059 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12393 michael 5052
12394     fi
12395     if test "$LEX" = :; then
12396     LEX=${am_missing_run}flex
12397     fi
12398    
12399 michael 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12400     $as_echo_n "checking for library containing socket... " >&6; }
12401     if ${ac_cv_search_socket+:} false; then :
12402     $as_echo_n "(cached) " >&6
12403     else
12404     ac_func_search_save_LIBS=$LIBS
12405     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406     /* end confdefs.h. */
12407 michael 5052
12408 michael 5062 /* Override any GCC internal prototype to avoid an error.
12409     Use char because int might match the return type of a GCC
12410     builtin and then its argument prototype would still apply. */
12411     #ifdef __cplusplus
12412     extern "C"
12413     #endif
12414     char socket ();
12415     int
12416     main ()
12417     {
12418     return socket ();
12419     ;
12420     return 0;
12421     }
12422     _ACEOF
12423     for ac_lib in '' socket; do
12424     if test -z "$ac_lib"; then
12425     ac_res="none required"
12426     else
12427     ac_res=-l$ac_lib
12428     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12429     fi
12430     if ac_fn_c_try_link "$LINENO"; then :
12431     ac_cv_search_socket=$ac_res
12432     fi
12433     rm -f core conftest.err conftest.$ac_objext \
12434     conftest$ac_exeext
12435     if ${ac_cv_search_socket+:} false; then :
12436     break
12437     fi
12438     done
12439     if ${ac_cv_search_socket+:} false; then :
12440    
12441     else
12442     ac_cv_search_socket=no
12443     fi
12444     rm conftest.$ac_ext
12445     LIBS=$ac_func_search_save_LIBS
12446     fi
12447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12448     $as_echo "$ac_cv_search_socket" >&6; }
12449     ac_res=$ac_cv_search_socket
12450     if test "$ac_res" != no; then :
12451     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12452    
12453     else
12454     as_fn_error $? "socket library not found" "$LINENO" 5
12455     fi
12456    
12457     ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
12458     if test "x$ac_cv_func_getaddrinfo" = xyes; then :
12459    
12460     else
12461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
12462     $as_echo_n "checking for library containing getaddrinfo... " >&6; }
12463     if ${ac_cv_search_getaddrinfo+:} false; then :
12464     $as_echo_n "(cached) " >&6
12465     else
12466     ac_func_search_save_LIBS=$LIBS
12467     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12468     /* end confdefs.h. */
12469    
12470     /* Override any GCC internal prototype to avoid an error.
12471     Use char because int might match the return type of a GCC
12472     builtin and then its argument prototype would still apply. */
12473     #ifdef __cplusplus
12474     extern "C"
12475     #endif
12476     char getaddrinfo ();
12477     int
12478     main ()
12479     {
12480     return getaddrinfo ();
12481     ;
12482     return 0;
12483     }
12484     _ACEOF
12485     for ac_lib in '' nsl; do
12486     if test -z "$ac_lib"; then
12487     ac_res="none required"
12488     else
12489     ac_res=-l$ac_lib
12490     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12491     fi
12492     if ac_fn_c_try_link "$LINENO"; then :
12493     ac_cv_search_getaddrinfo=$ac_res
12494     fi
12495     rm -f core conftest.err conftest.$ac_objext \
12496     conftest$ac_exeext
12497     if ${ac_cv_search_getaddrinfo+:} false; then :
12498     break
12499     fi
12500     done
12501     if ${ac_cv_search_getaddrinfo+:} false; then :
12502    
12503     else
12504     ac_cv_search_getaddrinfo=no
12505     fi
12506     rm conftest.$ac_ext
12507     LIBS=$ac_func_search_save_LIBS
12508     fi
12509     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
12510     $as_echo "$ac_cv_search_getaddrinfo" >&6; }
12511     ac_res=$ac_cv_search_getaddrinfo
12512     if test "$ac_res" != no; then :
12513     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12514    
12515     fi
12516    
12517     fi
12518    
12519     ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
12520     if test "x$ac_cv_func_getnameinfo" = xyes; then :
12521    
12522     else
12523     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
12524     $as_echo_n "checking for library containing getnameinfo... " >&6; }
12525     if ${ac_cv_search_getnameinfo+:} false; then :
12526     $as_echo_n "(cached) " >&6
12527     else
12528     ac_func_search_save_LIBS=$LIBS
12529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530     /* end confdefs.h. */
12531    
12532     /* Override any GCC internal prototype to avoid an error.
12533     Use char because int might match the return type of a GCC
12534     builtin and then its argument prototype would still apply. */
12535     #ifdef __cplusplus
12536     extern "C"
12537     #endif
12538     char getnameinfo ();
12539     int
12540     main ()
12541     {
12542     return getnameinfo ();
12543     ;
12544     return 0;
12545     }
12546     _ACEOF
12547     for ac_lib in '' nsl; do
12548     if test -z "$ac_lib"; then
12549     ac_res="none required"
12550     else
12551     ac_res=-l$ac_lib
12552     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12553     fi
12554     if ac_fn_c_try_link "$LINENO"; then :
12555     ac_cv_search_getnameinfo=$ac_res
12556     fi
12557     rm -f core conftest.err conftest.$ac_objext \
12558     conftest$ac_exeext
12559     if ${ac_cv_search_getnameinfo+:} false; then :
12560     break
12561     fi
12562     done
12563     if ${ac_cv_search_getnameinfo+:} false; then :
12564    
12565     else
12566     ac_cv_search_getnameinfo=no
12567     fi
12568     rm conftest.$ac_ext
12569     LIBS=$ac_func_search_save_LIBS
12570     fi
12571     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
12572     $as_echo "$ac_cv_search_getnameinfo" >&6; }
12573     ac_res=$ac_cv_search_getnameinfo
12574     if test "$ac_res" != no; then :
12575     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12576    
12577     fi
12578    
12579     fi
12580    
12581    
12582 michael 5172 for ac_func in strlcpy strlcat socket
12583 michael 5059 do :
12584     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12585     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12586     if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12587     cat >>confdefs.h <<_ACEOF
12588     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 michael 5052 _ACEOF
12590    
12591     fi
12592 michael 5059 done
12593 michael 5052
12594    
12595 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12596     $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12597     if ${ac_cv_c_bigendian+:} false; then :
12598     $as_echo_n "(cached) " >&6
12599 michael 5052 else
12600 michael 5059 ac_cv_c_bigendian=unknown
12601     # See if we're dealing with a universal compiler.
12602     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 michael 5052 /* end confdefs.h. */
12604 michael 5059 #ifndef __APPLE_CC__
12605     not a universal capable compiler
12606     #endif
12607     typedef int dummy;
12608 michael 5052
12609     _ACEOF
12610 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12611 michael 5052
12612 michael 5059 # Check for potential -arch flags. It is not universal unless
12613     # there are at least two -arch flags with different values.
12614     ac_arch=
12615     ac_prev=
12616     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12617     if test -n "$ac_prev"; then
12618     case $ac_word in
12619     i?86 | x86_64 | ppc | ppc64)
12620     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12621     ac_arch=$ac_word
12622     else
12623     ac_cv_c_bigendian=universal
12624     break
12625     fi
12626     ;;
12627     esac
12628     ac_prev=
12629     elif test "x$ac_word" = "x-arch"; then
12630     ac_prev=arch
12631     fi
12632     done
12633 michael 5052 fi
12634 michael 5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635     if test $ac_cv_c_bigendian = unknown; then
12636     # See if sys/param.h defines the BYTE_ORDER macro.
12637     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 michael 5052 /* end confdefs.h. */
12639     #include <sys/types.h>
12640 michael 5059 #include <sys/param.h>
12641 michael 5052
12642     int
12643     main ()
12644     {
12645 michael 5059 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12646     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12647     && LITTLE_ENDIAN)
12648     bogus endian macros
12649     #endif
12650 michael 5052
12651     ;
12652     return 0;
12653     }
12654     _ACEOF
12655 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12656 michael 5052 # It does; now see whether it defined to BIG_ENDIAN or not.
12657 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 michael 5052 /* end confdefs.h. */
12659     #include <sys/types.h>
12660 michael 5059 #include <sys/param.h>
12661 michael 5052
12662     int
12663     main ()
12664     {
12665     #if BYTE_ORDER != BIG_ENDIAN
12666 michael 5059 not big endian
12667     #endif
12668 michael 5052
12669     ;
12670     return 0;
12671     }
12672     _ACEOF
12673 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12674 michael 5052 ac_cv_c_bigendian=yes
12675     else
12676     ac_cv_c_bigendian=no
12677     fi
12678     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12679     fi
12680     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12681 michael 5059 fi
12682     if test $ac_cv_c_bigendian = unknown; then
12683     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685 michael 5052 /* end confdefs.h. */
12686 michael 5059 #include <limits.h>
12687 michael 5052
12688     int
12689     main ()
12690     {
12691 michael 5059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12692     bogus endian macros
12693     #endif
12694 michael 5052
12695     ;
12696     return 0;
12697     }
12698     _ACEOF
12699 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12700     # It does; now see whether it defined to _BIG_ENDIAN or not.
12701     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 michael 5052 /* end confdefs.h. */
12703 michael 5059 #include <limits.h>
12704 michael 5052
12705     int
12706     main ()
12707     {
12708 michael 5059 #ifndef _BIG_ENDIAN
12709     not big endian
12710     #endif
12711 michael 5052
12712     ;
12713     return 0;
12714     }
12715     _ACEOF
12716 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12717     ac_cv_c_bigendian=yes
12718 michael 5052 else
12719 michael 5059 ac_cv_c_bigendian=no
12720 michael 5052 fi
12721     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12722     fi
12723     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12724 michael 5059 fi
12725     if test $ac_cv_c_bigendian = unknown; then
12726     # Compile a test program.
12727     if test "$cross_compiling" = yes; then :
12728     # Try to guess by grepping values from an object file.
12729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730     /* end confdefs.h. */
12731     short int ascii_mm[] =
12732     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12733     short int ascii_ii[] =
12734     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12735     int use_ascii (int i) {
12736     return ascii_mm[i] + ascii_ii[i];
12737     }
12738     short int ebcdic_ii[] =
12739     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12740     short int ebcdic_mm[] =
12741     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12742     int use_ebcdic (int i) {
12743     return ebcdic_mm[i] + ebcdic_ii[i];
12744     }
12745     extern int foo;
12746 michael 5052
12747     int
12748     main ()
12749     {
12750 michael 5059 return use_ascii (foo) == use_ebcdic (foo);
12751 michael 5052 ;
12752     return 0;
12753     }
12754     _ACEOF
12755 michael 5059 if ac_fn_c_try_compile "$LINENO"; then :
12756     if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12757     ac_cv_c_bigendian=yes
12758     fi
12759     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12760     if test "$ac_cv_c_bigendian" = unknown; then
12761     ac_cv_c_bigendian=no
12762     else
12763     # finding both strings is unlikely to happen, but who knows?
12764     ac_cv_c_bigendian=unknown
12765     fi
12766     fi
12767 michael 5052 fi
12768     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12769     else
12770 michael 5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 michael 5052 /* end confdefs.h. */
12772     $ac_includes_default
12773     int
12774     main ()
12775     {
12776    
12777 michael 5059 /* Are we little or big endian? From Harbison&Steele. */
12778     union
12779     {
12780     long int l;
12781     char c[sizeof (long int)];
12782     } u;
12783     u.l = 1;
12784     return u.c[sizeof (long int) - 1] == 1;
12785 michael 5052
12786     ;
12787     return 0;
12788     }
12789     _ACEOF
12790 michael 5059 if ac_fn_c_try_run "$LINENO"; then :
12791     ac_cv_c_bigendian=no
12792 michael 5052 else
12793 michael 5059 ac_cv_c_bigendian=yes
12794 michael 5052 fi
12795 michael 5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12796     conftest.$ac_objext conftest.beam conftest.$ac_ext
12797 michael 5052 fi
12798 michael 5059
12799     fi
12800 michael 5052 fi
12801 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12802     $as_echo "$ac_cv_c_bigendian" >&6; }
12803     case $ac_cv_c_bigendian in #(
12804     yes)
12805     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12806     ;; #(
12807     no)
12808     ;; #(
12809     universal)
12810 michael 5052
12811 michael 5059 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12812 michael 5052
12813 michael 5059 ;; #(
12814     *)
12815     as_fn_error $? "unknown endianness
12816     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12817     esac
12818 michael 5052
12819    
12820    
12821    
12822    
12823     subdirs="$subdirs src/libopm"
12824    
12825    
12826 michael 5065 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
12827 michael 5052
12828     cat >confcache <<\_ACEOF
12829     # This file is a shell script that caches the results of configure
12830     # tests run on this system so they can be shared between configure
12831     # scripts and configure runs, see configure's option --config-cache.
12832     # It is not useful on other systems. If it contains results you don't
12833     # want to keep, you may remove or edit it.
12834     #
12835     # config.status only pays attention to the cache file if you give it
12836     # the --recheck option to rerun configure.
12837     #
12838     # `ac_cv_env_foo' variables (set or unset) will be overridden when
12839     # loading this file, other *unset* `ac_cv_foo' will be assigned the
12840     # following values.
12841    
12842     _ACEOF
12843    
12844     # The following way of writing the cache mishandles newlines in values,
12845     # but we know of no workaround that is simple, portable, and efficient.
12846     # So, we kill variables containing newlines.
12847     # Ultrix sh set writes to stderr and can't be redirected directly,
12848     # and sets the high bit in the cache file unless we assign to the vars.
12849     (
12850     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12851     eval ac_val=\$$ac_var
12852     case $ac_val in #(
12853     *${as_nl}*)
12854     case $ac_var in #(
12855 michael 5059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12856     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12857 michael 5052 esac
12858     case $ac_var in #(
12859     _ | IFS | as_nl) ;; #(
12860 michael 5059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12861     *) { eval $ac_var=; unset $ac_var;} ;;
12862 michael 5052 esac ;;
12863     esac
12864     done
12865    
12866     (set) 2>&1 |
12867     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12868     *${as_nl}ac_space=\ *)
12869 michael 5059 # `set' does not quote correctly, so add quotes: double-quote
12870     # substitution turns \\\\ into \\, and sed turns \\ into \.
12871 michael 5052 sed -n \
12872     "s/'/'\\\\''/g;
12873     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12874     ;; #(
12875     *)
12876     # `set' quotes correctly as required by POSIX, so do not add quotes.
12877     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12878     ;;
12879     esac |
12880     sort
12881     ) |
12882     sed '
12883     /^ac_cv_env_/b end
12884     t clear
12885     :clear
12886     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12887     t end
12888     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12889     :end' >>confcache
12890     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12891     if test -w "$cache_file"; then
12892 michael 5059 if test "x$cache_file" != "x/dev/null"; then
12893     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12894     $as_echo "$as_me: updating cache $cache_file" >&6;}
12895     if test ! -f "$cache_file" || test -h "$cache_file"; then
12896     cat confcache >"$cache_file"
12897     else
12898     case $cache_file in #(
12899     */* | ?:*)
12900     mv -f confcache "$cache_file"$$ &&
12901     mv -f "$cache_file"$$ "$cache_file" ;; #(
12902     *)
12903     mv -f confcache "$cache_file" ;;
12904     esac
12905     fi
12906     fi
12907 michael 5052 else
12908 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12909     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12910 michael 5052 fi
12911     fi
12912     rm -f confcache
12913    
12914     test "x$prefix" = xNONE && prefix=$ac_default_prefix
12915     # Let make expand exec_prefix.
12916     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12917    
12918     DEFS=-DHAVE_CONFIG_H
12919    
12920     ac_libobjs=
12921     ac_ltlibobjs=
12922 michael 5145 U=
12923 michael 5052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12924     # 1. Remove the extension, and $U if already installed.
12925     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12926 michael 5059 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12927 michael 5052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12928     # will be set to the directory where LIBOBJS objects are built.
12929 michael 5059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12930     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12931 michael 5052 done
12932     LIBOBJS=$ac_libobjs
12933    
12934     LTLIBOBJS=$ac_ltlibobjs
12935    
12936    
12937 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12938     $as_echo_n "checking that generated files are newer than configure... " >&6; }
12939     if test -n "$am_sleep_pid"; then
12940     # Hide warnings about reused PIDs.
12941     wait $am_sleep_pid 2>/dev/null
12942     fi
12943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12944     $as_echo "done" >&6; }
12945     if test -n "$EXEEXT"; then
12946     am__EXEEXT_TRUE=
12947     am__EXEEXT_FALSE='#'
12948     else
12949     am__EXEEXT_TRUE='#'
12950     am__EXEEXT_FALSE=
12951     fi
12952    
12953 michael 5052 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12954 michael 5059 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12955     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12956 michael 5052 fi
12957     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12958 michael 5059 as_fn_error $? "conditional \"AMDEP\" was never defined.
12959     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12960 michael 5052 fi
12961     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12962 michael 5059 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12963     Usually this means the macro was only invoked conditionally." "$LINENO" 5
12964 michael 5052 fi
12965    
12966 michael 5059
12967     : "${CONFIG_STATUS=./config.status}"
12968     ac_write_fail=0
12969 michael 5052 ac_clean_files_save=$ac_clean_files
12970     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12971 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12972     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12973     as_write_fail=0
12974     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12975 michael 5052 #! $SHELL
12976     # Generated by $as_me.
12977     # Run this file to recreate the current configuration.
12978     # Compiler output produced by configure, useful for debugging
12979     # configure, is in config.log if it exists.
12980    
12981     debug=false
12982     ac_cs_recheck=false
12983     ac_cs_silent=false
12984 michael 5059
12985 michael 5052 SHELL=\${CONFIG_SHELL-$SHELL}
12986 michael 5059 export SHELL
12987     _ASEOF
12988     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12989     ## -------------------- ##
12990     ## M4sh Initialization. ##
12991     ## -------------------- ##
12992 michael 5052
12993 michael 5059 # Be more Bourne compatible
12994     DUALCASE=1; export DUALCASE # for MKS sh
12995     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12996 michael 5052 emulate sh
12997     NULLCMD=:
12998 michael 5059 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12999 michael 5052 # is contrary to our usage. Disable this feature.
13000     alias -g '${1+"$@"}'='"$@"'
13001     setopt NO_GLOB_SUBST
13002     else
13003 michael 5059 case `(set -o) 2>/dev/null` in #(
13004     *posix*) :
13005     set -o posix ;; #(
13006     *) :
13007     ;;
13008     esac
13009 michael 5052 fi
13010    
13011    
13012 michael 5059 as_nl='
13013     '
13014     export as_nl
13015     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13016     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13017     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13018     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13019     # Prefer a ksh shell builtin over an external printf program on Solaris,
13020     # but without wasting forks for bash or zsh.
13021     if test -z "$BASH_VERSION$ZSH_VERSION" \
13022     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13023     as_echo='print -r --'
13024     as_echo_n='print -rn --'
13025     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13026     as_echo='printf %s\n'
13027     as_echo_n='printf %s'
13028     else
13029     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13030     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13031     as_echo_n='/usr/ucb/echo -n'
13032 michael 5052 else
13033 michael 5059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13034     as_echo_n_body='eval
13035     arg=$1;
13036     case $arg in #(
13037     *"$as_nl"*)
13038     expr "X$arg" : "X\\(.*\\)$as_nl";
13039     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13040     esac;
13041     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13042     '
13043     export as_echo_n_body
13044     as_echo_n='sh -c $as_echo_n_body as_echo'
13045 michael 5052 fi
13046 michael 5059 export as_echo_body
13047     as_echo='sh -c $as_echo_body as_echo'
13048 michael 5052 fi
13049    
13050 michael 5059 # The user is always right.
13051     if test "${PATH_SEPARATOR+set}" != set; then
13052     PATH_SEPARATOR=:
13053     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13054     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13055     PATH_SEPARATOR=';'
13056     }
13057 michael 5052 fi
13058    
13059    
13060     # IFS
13061     # We need space, tab and new line, in precisely that order. Quoting is
13062     # there to prevent editors from complaining about space-tab.
13063     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13064     # splitting by setting IFS to empty value.)
13065     IFS=" "" $as_nl"
13066    
13067     # Find who we are. Look in the path if we contain no directory separator.
13068 michael 5059 as_myself=
13069     case $0 in #((
13070 michael 5052 *[\\/]* ) as_myself=$0 ;;
13071     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072     for as_dir in $PATH
13073     do
13074     IFS=$as_save_IFS
13075     test -z "$as_dir" && as_dir=.
13076 michael 5059 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13077     done
13078 michael 5052 IFS=$as_save_IFS
13079    
13080     ;;
13081     esac
13082     # We did not find ourselves, most probably we were run as `sh COMMAND'
13083     # in which case we are not to be found in the path.
13084     if test "x$as_myself" = x; then
13085     as_myself=$0
13086     fi
13087     if test ! -f "$as_myself"; then
13088 michael 5059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13089     exit 1
13090 michael 5052 fi
13091    
13092 michael 5059 # Unset variables that we do not need and which cause bugs (e.g. in
13093     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13094     # suppresses any "Segmentation fault" message there. '((' could
13095     # trigger a bug in pdksh 5.2.14.
13096     for as_var in BASH_ENV ENV MAIL MAILPATH
13097     do eval test x\${$as_var+set} = xset \
13098     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13099 michael 5052 done
13100     PS1='$ '
13101     PS2='> '
13102     PS4='+ '
13103    
13104     # NLS nuisances.
13105 michael 5059 LC_ALL=C
13106     export LC_ALL
13107     LANGUAGE=C
13108     export LANGUAGE
13109    
13110     # CDPATH.
13111     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13112    
13113    
13114     # as_fn_error STATUS ERROR [LINENO LOG_FD]
13115     # ----------------------------------------
13116     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13117     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13118     # script with STATUS, using 1 if that was 0.
13119     as_fn_error ()
13120     {
13121     as_status=$1; test $as_status -eq 0 && as_status=1
13122     if test "$4"; then
13123     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13124     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13125 michael 5052 fi
13126 michael 5059 $as_echo "$as_me: error: $2" >&2
13127     as_fn_exit $as_status
13128     } # as_fn_error
13129 michael 5052
13130 michael 5059
13131     # as_fn_set_status STATUS
13132     # -----------------------
13133     # Set $? to STATUS, without forking.
13134     as_fn_set_status ()
13135     {
13136     return $1
13137     } # as_fn_set_status
13138    
13139     # as_fn_exit STATUS
13140     # -----------------
13141     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13142     as_fn_exit ()
13143     {
13144     set +e
13145     as_fn_set_status $1
13146     exit $1
13147     } # as_fn_exit
13148    
13149     # as_fn_unset VAR
13150     # ---------------
13151     # Portably unset VAR.
13152     as_fn_unset ()
13153     {
13154     { eval $1=; unset $1;}
13155     }
13156     as_unset=as_fn_unset
13157     # as_fn_append VAR VALUE
13158     # ----------------------
13159     # Append the text in VALUE to the end of the definition contained in VAR. Take
13160     # advantage of any shell optimizations that allow amortized linear growth over
13161     # repeated appends, instead of the typical quadratic growth present in naive
13162     # implementations.
13163     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13164     eval 'as_fn_append ()
13165     {
13166     eval $1+=\$2
13167     }'
13168     else
13169     as_fn_append ()
13170     {
13171     eval $1=\$$1\$2
13172     }
13173     fi # as_fn_append
13174    
13175     # as_fn_arith ARG...
13176     # ------------------
13177     # Perform arithmetic evaluation on the ARGs, and store the result in the
13178     # global $as_val. Take advantage of shells that can avoid forks. The arguments
13179     # must be portable across $(()) and expr.
13180     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13181     eval 'as_fn_arith ()
13182     {
13183     as_val=$(( $* ))
13184     }'
13185     else
13186     as_fn_arith ()
13187     {
13188     as_val=`expr "$@" || test $? -eq 1`
13189     }
13190     fi # as_fn_arith
13191    
13192    
13193 michael 5052 if expr a : '\(a\)' >/dev/null 2>&1 &&
13194     test "X`expr 00001 : '.*\(...\)'`" = X001; then
13195     as_expr=expr
13196     else
13197     as_expr=false
13198     fi
13199    
13200     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13201     as_basename=basename
13202     else
13203     as_basename=false
13204     fi
13205    
13206 michael 5059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13207     as_dirname=dirname
13208     else
13209     as_dirname=false
13210     fi
13211 michael 5052
13212     as_me=`$as_basename -- "$0" ||
13213     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13214     X"$0" : 'X\(//\)$' \| \
13215     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13216 michael 5059 $as_echo X/"$0" |
13217 michael 5052 sed '/^.*\/\([^/][^/]*\)\/*$/{
13218     s//\1/
13219     q
13220     }
13221     /^X\/\(\/\/\)$/{
13222     s//\1/
13223     q
13224     }
13225     /^X\/\(\/\).*/{
13226     s//\1/
13227     q
13228     }
13229     s/.*/./; q'`
13230    
13231 michael 5059 # Avoid depending upon Character Ranges.
13232     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13233     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13234     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13235     as_cr_digits='0123456789'
13236     as_cr_alnum=$as_cr_Letters$as_cr_digits
13237 michael 5052
13238     ECHO_C= ECHO_N= ECHO_T=
13239 michael 5059 case `echo -n x` in #(((((
13240 michael 5052 -n*)
13241 michael 5059 case `echo 'xy\c'` in
13242 michael 5052 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13243 michael 5059 xy) ECHO_C='\c';;
13244     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13245     ECHO_T=' ';;
13246 michael 5052 esac;;
13247     *)
13248     ECHO_N='-n';;
13249     esac
13250    
13251     rm -f conf$$ conf$$.exe conf$$.file
13252     if test -d conf$$.dir; then
13253     rm -f conf$$.dir/conf$$.file
13254     else
13255     rm -f conf$$.dir
13256 michael 5059 mkdir conf$$.dir 2>/dev/null
13257 michael 5052 fi
13258 michael 5059 if (echo >conf$$.file) 2>/dev/null; then
13259     if ln -s conf$$.file conf$$ 2>/dev/null; then
13260     as_ln_s='ln -s'
13261     # ... but there are two gotchas:
13262     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13263     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13264     # In both cases, we have to default to `cp -pR'.
13265     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13266     as_ln_s='cp -pR'
13267     elif ln conf$$.file conf$$ 2>/dev/null; then
13268     as_ln_s=ln
13269     else
13270     as_ln_s='cp -pR'
13271     fi
13272 michael 5052 else
13273 michael 5059 as_ln_s='cp -pR'
13274 michael 5052 fi
13275     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13276     rmdir conf$$.dir 2>/dev/null
13277    
13278 michael 5059
13279     # as_fn_mkdir_p
13280     # -------------
13281     # Create "$as_dir" as a directory, including parents if necessary.
13282     as_fn_mkdir_p ()
13283     {
13284    
13285     case $as_dir in #(
13286     -*) as_dir=./$as_dir;;
13287     esac
13288     test -d "$as_dir" || eval $as_mkdir_p || {
13289     as_dirs=
13290     while :; do
13291     case $as_dir in #(
13292     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13293     *) as_qdir=$as_dir;;
13294     esac
13295     as_dirs="'$as_qdir' $as_dirs"
13296     as_dir=`$as_dirname -- "$as_dir" ||
13297     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13298     X"$as_dir" : 'X\(//\)[^/]' \| \
13299     X"$as_dir" : 'X\(//\)$' \| \
13300     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13301     $as_echo X"$as_dir" |
13302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13303     s//\1/
13304     q
13305     }
13306     /^X\(\/\/\)[^/].*/{
13307     s//\1/
13308     q
13309     }
13310     /^X\(\/\/\)$/{
13311     s//\1/
13312     q
13313     }
13314     /^X\(\/\).*/{
13315     s//\1/
13316     q
13317     }
13318     s/.*/./; q'`
13319     test -d "$as_dir" && break
13320     done
13321     test -z "$as_dirs" || eval "mkdir $as_dirs"
13322     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13323    
13324    
13325     } # as_fn_mkdir_p
13326 michael 5052 if mkdir -p . 2>/dev/null; then
13327 michael 5059 as_mkdir_p='mkdir -p "$as_dir"'
13328 michael 5052 else
13329     test -d ./-p && rmdir ./-p
13330     as_mkdir_p=false
13331     fi
13332    
13333    
13334 michael 5059 # as_fn_executable_p FILE
13335     # -----------------------
13336     # Test if FILE is an executable regular file.
13337     as_fn_executable_p ()
13338     {
13339     test -f "$1" && test -x "$1"
13340     } # as_fn_executable_p
13341     as_test_x='test -x'
13342     as_executable_p=as_fn_executable_p
13343    
13344 michael 5052 # Sed expression to map a string onto a valid CPP name.
13345     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13346    
13347     # Sed expression to map a string onto a valid variable name.
13348     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13349    
13350    
13351     exec 6>&1
13352 michael 5059 ## ----------------------------------- ##
13353     ## Main body of $CONFIG_STATUS script. ##
13354     ## ----------------------------------- ##
13355     _ASEOF
13356     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13357 michael 5052
13358 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13359     # Save the log message, to keep $0 and so on meaningful, and to
13360 michael 5052 # report actual input values of CONFIG_FILES etc. instead of their
13361     # values after options handling.
13362     ac_log="
13363 michael 5061 This file was extended by hopm $as_me 1.0.0beta1, which was
13364 michael 5059 generated by GNU Autoconf 2.69. Invocation command line was
13365 michael 5052
13366     CONFIG_FILES = $CONFIG_FILES
13367     CONFIG_HEADERS = $CONFIG_HEADERS
13368     CONFIG_LINKS = $CONFIG_LINKS
13369     CONFIG_COMMANDS = $CONFIG_COMMANDS
13370     $ $0 $@
13371    
13372     on `(hostname || uname -n) 2>/dev/null | sed 1q`
13373     "
13374    
13375     _ACEOF
13376    
13377 michael 5059 case $ac_config_files in *"
13378     "*) set x $ac_config_files; shift; ac_config_files=$*;;
13379     esac
13380    
13381     case $ac_config_headers in *"
13382     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13383     esac
13384    
13385    
13386     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13387 michael 5052 # Files that config.status was made for.
13388     config_files="$ac_config_files"
13389     config_headers="$ac_config_headers"
13390     config_commands="$ac_config_commands"
13391    
13392     _ACEOF
13393    
13394 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13395 michael 5052 ac_cs_usage="\
13396 michael 5059 \`$as_me' instantiates files and other configuration actions
13397     from templates according to the current configuration. Unless the files
13398     and actions are specified as TAGs, all are instantiated by default.
13399 michael 5052
13400 michael 5059 Usage: $0 [OPTION]... [TAG]...
13401 michael 5052
13402     -h, --help print this help, then exit
13403 michael 5059 -V, --version print version number and configuration settings, then exit
13404     --config print configuration, then exit
13405     -q, --quiet, --silent
13406     do not print progress messages
13407 michael 5052 -d, --debug don't remove temporary files
13408     --recheck update $as_me by reconfiguring in the same conditions
13409 michael 5059 --file=FILE[:TEMPLATE]
13410     instantiate the configuration file FILE
13411     --header=FILE[:TEMPLATE]
13412     instantiate the configuration header FILE
13413 michael 5052
13414     Configuration files:
13415     $config_files
13416    
13417     Configuration headers:
13418     $config_headers
13419    
13420     Configuration commands:
13421     $config_commands
13422    
13423 michael 5059 Report bugs to the package provider."
13424 michael 5052
13425     _ACEOF
13426 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13427     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13428 michael 5052 ac_cs_version="\\
13429 michael 5061 hopm config.status 1.0.0beta1
13430 michael 5059 configured by $0, generated by GNU Autoconf 2.69,
13431     with options \\"\$ac_cs_config\\"
13432 michael 5052
13433 michael 5059 Copyright (C) 2012 Free Software Foundation, Inc.
13434 michael 5052 This config.status script is free software; the Free Software Foundation
13435     gives unlimited permission to copy, distribute and modify it."
13436    
13437     ac_pwd='$ac_pwd'
13438     srcdir='$srcdir'
13439     INSTALL='$INSTALL'
13440 michael 5059 MKDIR_P='$MKDIR_P'
13441     AWK='$AWK'
13442     test -n "\$AWK" || AWK=awk
13443 michael 5052 _ACEOF
13444    
13445 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13446     # The default lists apply if the user does not specify any file.
13447 michael 5052 ac_need_defaults=:
13448     while test $# != 0
13449     do
13450     case $1 in
13451 michael 5059 --*=?*)
13452 michael 5052 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13453     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13454     ac_shift=:
13455     ;;
13456 michael 5059 --*=)
13457     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13458     ac_optarg=
13459     ac_shift=:
13460     ;;
13461 michael 5052 *)
13462     ac_option=$1
13463     ac_optarg=$2
13464     ac_shift=shift
13465     ;;
13466     esac
13467    
13468     case $ac_option in
13469     # Handling of the options.
13470     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13471     ac_cs_recheck=: ;;
13472     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13473 michael 5059 $as_echo "$ac_cs_version"; exit ;;
13474     --config | --confi | --conf | --con | --co | --c )
13475     $as_echo "$ac_cs_config"; exit ;;
13476 michael 5052 --debug | --debu | --deb | --de | --d | -d )
13477     debug=: ;;
13478     --file | --fil | --fi | --f )
13479     $ac_shift
13480 michael 5059 case $ac_optarg in
13481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13482     '') as_fn_error $? "missing file argument" ;;
13483     esac
13484     as_fn_append CONFIG_FILES " '$ac_optarg'"
13485 michael 5052 ac_need_defaults=false;;
13486     --header | --heade | --head | --hea )
13487     $ac_shift
13488 michael 5059 case $ac_optarg in
13489     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13490     esac
13491     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13492 michael 5052 ac_need_defaults=false;;
13493     --he | --h)
13494     # Conflict between --help and --header
13495 michael 5059 as_fn_error $? "ambiguous option: \`$1'
13496     Try \`$0 --help' for more information.";;
13497 michael 5052 --help | --hel | -h )
13498 michael 5059 $as_echo "$ac_cs_usage"; exit ;;
13499 michael 5052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13500     | -silent | --silent | --silen | --sile | --sil | --si | --s)
13501     ac_cs_silent=: ;;
13502    
13503     # This is an error.
13504 michael 5059 -*) as_fn_error $? "unrecognized option: \`$1'
13505     Try \`$0 --help' for more information." ;;
13506 michael 5052
13507 michael 5059 *) as_fn_append ac_config_targets " $1"
13508 michael 5052 ac_need_defaults=false ;;
13509    
13510     esac
13511     shift
13512     done
13513    
13514     ac_configure_extra_args=
13515    
13516     if $ac_cs_silent; then
13517     exec 6>/dev/null
13518     ac_configure_extra_args="$ac_configure_extra_args --silent"
13519     fi
13520    
13521     _ACEOF
13522 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13523 michael 5052 if \$ac_cs_recheck; then
13524 michael 5059 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13525     shift
13526     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13527     CONFIG_SHELL='$SHELL'
13528 michael 5052 export CONFIG_SHELL
13529 michael 5059 exec "\$@"
13530 michael 5052 fi
13531    
13532     _ACEOF
13533 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13534 michael 5052 exec 5>>config.log
13535     {
13536     echo
13537     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13538     ## Running $as_me. ##
13539     _ASBOX
13540 michael 5059 $as_echo "$ac_log"
13541 michael 5052 } >&5
13542    
13543     _ACEOF
13544 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13545 michael 5052 #
13546     # INIT-COMMANDS
13547     #
13548     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13549    
13550 michael 5059
13551     # The HP-UX ksh and POSIX shell print the target directory to stdout
13552     # if CDPATH is set.
13553     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13554    
13555     sed_quote_subst='$sed_quote_subst'
13556     double_quote_subst='$double_quote_subst'
13557     delay_variable_subst='$delay_variable_subst'
13558     macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13559     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13560     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13561     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13562     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13563     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13564     shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13565     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13566     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13567     PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13568     host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13569     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13570     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13571     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13572     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13573     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13574     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13575     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13576     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13577     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13578     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13579     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13580     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13581     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13582     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13583     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13584     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13585     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13586     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13587     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13588     lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13589     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13590     reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13591     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13592     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13593     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13594     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13595     file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13596     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13597     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13598     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13599     AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13600     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13601     archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13602     STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13603     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13604     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13605     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13606     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13607     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13608     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13609     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13610     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13611     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13612     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13613     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13614     lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13615     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13616     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"`'
13617     lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13618     nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13619     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13620     lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13621     objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13622     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13623     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13624     lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13625     lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13626     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13627     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13628     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13629     MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13630     DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13631     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13632     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13633     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13634     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13635     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13636     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13637     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13638     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13639     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13640     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13641     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13642     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13643     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13644     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13645     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13646     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13647     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13648     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13649     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13650     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13651     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13652     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13653     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13654     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13655     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13656     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13657     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13658     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13659     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13660     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13661     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13662     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13663     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13664     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13665     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13666     postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13667     file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13668     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13669     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13670     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13671     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13672     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13673     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13674     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13675     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13676     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13677     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13678     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13679     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13680     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13681     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13682     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13683     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13684     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13685     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13686     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13687     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13688     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13689     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13690     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13691     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13692    
13693     LTCC='$LTCC'
13694     LTCFLAGS='$LTCFLAGS'
13695     compiler='$compiler_DEFAULT'
13696    
13697     # A function that is used when there is no print builtin or printf.
13698     func_fallback_echo ()
13699     {
13700     eval 'cat <<_LTECHO_EOF
13701     \$1
13702     _LTECHO_EOF'
13703     }
13704    
13705     # Quote evaled strings.
13706     for var in SHELL \
13707     ECHO \
13708     PATH_SEPARATOR \
13709     SED \
13710     GREP \
13711     EGREP \
13712     FGREP \
13713     LD \
13714     NM \
13715     LN_S \
13716     lt_SP2NL \
13717     lt_NL2SP \
13718     reload_flag \
13719     OBJDUMP \
13720     deplibs_check_method \
13721     file_magic_cmd \
13722     file_magic_glob \
13723     want_nocaseglob \
13724     DLLTOOL \
13725     sharedlib_from_linklib_cmd \
13726     AR \
13727     AR_FLAGS \
13728     archiver_list_spec \
13729     STRIP \
13730     RANLIB \
13731     CC \
13732     CFLAGS \
13733     compiler \
13734     lt_cv_sys_global_symbol_pipe \
13735     lt_cv_sys_global_symbol_to_cdecl \
13736     lt_cv_sys_global_symbol_to_import \
13737     lt_cv_sys_global_symbol_to_c_name_address \
13738     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13739     lt_cv_nm_interface \
13740     nm_file_list_spec \
13741     lt_cv_truncate_bin \
13742     lt_prog_compiler_no_builtin_flag \
13743     lt_prog_compiler_pic \
13744     lt_prog_compiler_wl \
13745     lt_prog_compiler_static \
13746     lt_cv_prog_compiler_c_o \
13747     need_locks \
13748     MANIFEST_TOOL \
13749     DSYMUTIL \
13750     NMEDIT \
13751     LIPO \
13752     OTOOL \
13753     OTOOL64 \
13754     shrext_cmds \
13755     export_dynamic_flag_spec \
13756     whole_archive_flag_spec \
13757     compiler_needs_object \
13758     with_gnu_ld \
13759     allow_undefined_flag \
13760     no_undefined_flag \
13761     hardcode_libdir_flag_spec \
13762     hardcode_libdir_separator \
13763     exclude_expsyms \
13764     include_expsyms \
13765     file_list_spec \
13766     variables_saved_for_relink \
13767     libname_spec \
13768     library_names_spec \
13769     soname_spec \
13770     install_override_mode \
13771     finish_eval \
13772     old_striplib \
13773     striplib; do
13774     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13775     *[\\\\\\\`\\"\\\$]*)
13776     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13777     ;;
13778     *)
13779     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13780     ;;
13781     esac
13782     done
13783    
13784     # Double-quote double-evaled strings.
13785     for var in reload_cmds \
13786     old_postinstall_cmds \
13787     old_postuninstall_cmds \
13788     old_archive_cmds \
13789     extract_expsyms_cmds \
13790     old_archive_from_new_cmds \
13791     old_archive_from_expsyms_cmds \
13792     archive_cmds \
13793     archive_expsym_cmds \
13794     module_cmds \
13795     module_expsym_cmds \
13796     export_symbols_cmds \
13797     prelink_cmds \
13798     postlink_cmds \
13799     postinstall_cmds \
13800     postuninstall_cmds \
13801     finish_cmds \
13802     sys_lib_search_path_spec \
13803     sys_lib_dlsearch_path_spec; do
13804     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13805     *[\\\\\\\`\\"\\\$]*)
13806     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13807     ;;
13808     *)
13809     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13810     ;;
13811     esac
13812     done
13813    
13814     ac_aux_dir='$ac_aux_dir'
13815    
13816     # See if we are running on zsh, and set the options that allow our
13817     # commands through without removal of \ escapes INIT.
13818     if test -n "\${ZSH_VERSION+set}"; then
13819     setopt NO_GLOB_SUBST
13820     fi
13821    
13822    
13823     PACKAGE='$PACKAGE'
13824     VERSION='$VERSION'
13825     RM='$RM'
13826     ofile='$ofile'
13827    
13828    
13829    
13830    
13831 michael 5052 _ACEOF
13832    
13833 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13834 michael 5052
13835     # Handling of arguments.
13836     for ac_config_target in $ac_config_targets
13837     do
13838     case $ac_config_target in
13839     "src/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS src/setup.h" ;;
13840     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13841 michael 5059 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13842 michael 5052 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13843 michael 5065 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13844 michael 5052 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13845    
13846 michael 5059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13847 michael 5052 esac
13848     done
13849    
13850    
13851     # If the user did not use the arguments to specify the items to instantiate,
13852     # then the envvar interface is used. Set only those that are not.
13853     # We use the long form for the default assignment because of an extremely
13854     # bizarre bug on SunOS 4.1.3.
13855     if $ac_need_defaults; then
13856     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13857     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13858     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13859     fi
13860    
13861     # Have a temporary directory for convenience. Make it in the build tree
13862     # simply because there is no reason against having it here, and in addition,
13863     # creating and moving files from /tmp can sometimes cause problems.
13864     # Hook for its removal unless debugging.
13865     # Note that there is a small window in which the directory will not be cleaned:
13866     # after its creation but before its name has been assigned to `$tmp'.
13867     $debug ||
13868     {
13869 michael 5059 tmp= ac_tmp=
13870 michael 5052 trap 'exit_status=$?
13871 michael 5059 : "${ac_tmp:=$tmp}"
13872     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13873 michael 5052 ' 0
13874 michael 5059 trap 'as_fn_exit 1' 1 2 13 15
13875 michael 5052 }
13876     # Create a (secure) tmp directory for tmp files.
13877    
13878     {
13879     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13880 michael 5059 test -d "$tmp"
13881 michael 5052 } ||
13882     {
13883     tmp=./conf$$-$RANDOM
13884     (umask 077 && mkdir "$tmp")
13885 michael 5059 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13886     ac_tmp=$tmp
13887 michael 5052
13888 michael 5059 # Set up the scripts for CONFIG_FILES section.
13889     # No need to generate them if there are no CONFIG_FILES.
13890     # This happens for instance with `./config.status config.h'.
13891 michael 5052 if test -n "$CONFIG_FILES"; then
13892    
13893 michael 5059
13894     ac_cr=`echo X | tr X '\015'`
13895     # On cygwin, bash can eat \r inside `` if the user requested igncr.
13896     # But we know of no other shell where ac_cr would be empty at this
13897     # point, so we can use a bashism as a fallback.
13898     if test "x$ac_cr" = x; then
13899     eval ac_cr=\$\'\\r\'
13900     fi
13901     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13902     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13903     ac_cs_awk_cr='\\r'
13904     else
13905     ac_cs_awk_cr=$ac_cr
13906     fi
13907    
13908     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13909 michael 5052 _ACEOF
13910    
13911    
13912 michael 5059 {
13913     echo "cat >conf$$subs.awk <<_ACEOF" &&
13914     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13915     echo "_ACEOF"
13916     } >conf$$subs.sh ||
13917     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13918     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13919 michael 5052 ac_delim='%!_!# '
13920     for ac_last_try in false false false false false :; do
13921 michael 5059 . ./conf$$subs.sh ||
13922     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13923 michael 5052
13924 michael 5059 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13925     if test $ac_delim_n = $ac_delim_num; then
13926 michael 5052 break
13927     elif $ac_last_try; then
13928 michael 5059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13929 michael 5052 else
13930     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13931     fi
13932     done
13933 michael 5059 rm -f conf$$subs.sh
13934 michael 5052
13935 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13937     _ACEOF
13938     sed -n '
13939     h
13940     s/^/S["/; s/!.*/"]=/
13941     p
13942     g
13943     s/^[^!]*!//
13944     :repl
13945     t repl
13946     s/'"$ac_delim"'$//
13947     t delim
13948     :nl
13949     h
13950     s/\(.\{148\}\)..*/\1/
13951     t more1
13952     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13953     p
13954     n
13955     b repl
13956     :more1
13957     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13958     p
13959     g
13960     s/.\{148\}//
13961     t nl
13962     :delim
13963     h
13964     s/\(.\{148\}\)..*/\1/
13965     t more2
13966     s/["\\]/\\&/g; s/^/"/; s/$/"/
13967     p
13968     b
13969     :more2
13970     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13971     p
13972     g
13973     s/.\{148\}//
13974     t delim
13975     ' <conf$$subs.awk | sed '
13976     /^[^""]/{
13977     N
13978     s/\n//
13979     }
13980     ' >>$CONFIG_STATUS || ac_write_fail=1
13981     rm -f conf$$subs.awk
13982     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983     _ACAWK
13984     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13985     for (key in S) S_is_set[key] = 1
13986     FS = ""
13987 michael 5052
13988 michael 5059 }
13989     {
13990     line = $ 0
13991     nfields = split(line, field, "@")
13992     substed = 0
13993     len = length(field[1])
13994     for (i = 2; i < nfields; i++) {
13995     key = field[i]
13996     keylen = length(key)
13997     if (S_is_set[key]) {
13998     value = S[key]
13999     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14000     len += length(value) + length(field[++i])
14001     substed = 1
14002     } else
14003     len += 1 + keylen
14004     }
14005    
14006     print line
14007     }
14008    
14009     _ACAWK
14010 michael 5052 _ACEOF
14011 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14012     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14013     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14014     else
14015     cat
14016     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14017     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14018 michael 5052 _ACEOF
14019    
14020 michael 5059 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14021     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14022     # trailing colons and then remove the whole line if VPATH becomes empty
14023     # (actually we leave an empty line to preserve line numbers).
14024     if test "x$srcdir" = x.; then
14025     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14026     h
14027     s///
14028     s/^/:/
14029     s/[ ]*$/:/
14030     s/:\$(srcdir):/:/g
14031     s/:\${srcdir}:/:/g
14032     s/:@srcdir@:/:/g
14033     s/^:*//
14034     s/:*$//
14035     x
14036     s/\(=[ ]*\).*/\1/
14037     G
14038     s/\n//
14039     s/^[^=]*=[ ]*$//
14040     }'
14041     fi
14042 michael 5052
14043 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044     fi # test -n "$CONFIG_FILES"
14045    
14046     # Set up the scripts for CONFIG_HEADERS section.
14047     # No need to generate them if there are no CONFIG_HEADERS.
14048     # This happens for instance with `./config.status Makefile'.
14049     if test -n "$CONFIG_HEADERS"; then
14050     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14051     BEGIN {
14052 michael 5052 _ACEOF
14053    
14054 michael 5059 # Transform confdefs.h into an awk script `defines.awk', embedded as
14055     # here-document in config.status, that substitutes the proper values into
14056     # config.h.in to produce config.h.
14057    
14058     # Create a delimiter string that does not exist in confdefs.h, to ease
14059     # handling of long lines.
14060     ac_delim='%!_!# '
14061     for ac_last_try in false false :; do
14062     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14063     if test -z "$ac_tt"; then
14064 michael 5052 break
14065     elif $ac_last_try; then
14066 michael 5059 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14067 michael 5052 else
14068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14069     fi
14070     done
14071    
14072 michael 5059 # For the awk script, D is an array of macro values keyed by name,
14073     # likewise P contains macro parameters if any. Preserve backslash
14074     # newline sequences.
14075 michael 5052
14076 michael 5059 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14077     sed -n '
14078     s/.\{148\}/&'"$ac_delim"'/g
14079     t rset
14080     :rset
14081     s/^[ ]*#[ ]*define[ ][ ]*/ /
14082     t def
14083     d
14084     :def
14085     s/\\$//
14086     t bsnl
14087     s/["\\]/\\&/g
14088     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14089     D["\1"]=" \3"/p
14090     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14091     d
14092     :bsnl
14093     s/["\\]/\\&/g
14094     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14095     D["\1"]=" \3\\\\\\n"\\/p
14096     t cont
14097     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14098     t cont
14099     d
14100     :cont
14101     n
14102     s/.\{148\}/&'"$ac_delim"'/g
14103     t clear
14104     :clear
14105     s/\\$//
14106     t bsnlc
14107     s/["\\]/\\&/g; s/^/"/; s/$/"/p
14108     d
14109     :bsnlc
14110     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14111     b cont
14112     ' <confdefs.h | sed '
14113     s/'"$ac_delim"'/"\\\
14114     "/g' >>$CONFIG_STATUS || ac_write_fail=1
14115    
14116     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14117     for (key in D) D_is_set[key] = 1
14118     FS = ""
14119     }
14120     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14121     line = \$ 0
14122     split(line, arg, " ")
14123     if (arg[1] == "#") {
14124     defundef = arg[2]
14125     mac1 = arg[3]
14126     } else {
14127     defundef = substr(arg[1], 2)
14128     mac1 = arg[2]
14129     }
14130     split(mac1, mac2, "(") #)
14131     macro = mac2[1]
14132     prefix = substr(line, 1, index(line, defundef) - 1)
14133     if (D_is_set[macro]) {
14134     # Preserve the white space surrounding the "#".
14135     print prefix "define", macro P[macro] D[macro]
14136     next
14137     } else {
14138     # Replace #undef with comments. This is necessary, for example,
14139     # in the case of _POSIX_SOURCE, which is predefined and required
14140     # on some systems where configure will not decide to define it.
14141     if (defundef == "undef") {
14142     print "/*", prefix defundef, macro, "*/"
14143     next
14144     }
14145     }
14146     }
14147     { print }
14148     _ACAWK
14149 michael 5052 _ACEOF
14150 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14151     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14152     fi # test -n "$CONFIG_HEADERS"
14153 michael 5052
14154    
14155 michael 5059 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14156     shift
14157     for ac_tag
14158 michael 5052 do
14159     case $ac_tag in
14160     :[FHLC]) ac_mode=$ac_tag; continue;;
14161     esac
14162     case $ac_mode$ac_tag in
14163     :[FHL]*:*);;
14164 michael 5059 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14165 michael 5052 :[FH]-) ac_tag=-:-;;
14166     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14167     esac
14168     ac_save_IFS=$IFS
14169     IFS=:
14170     set x $ac_tag
14171     IFS=$ac_save_IFS
14172     shift
14173     ac_file=$1
14174     shift
14175    
14176     case $ac_mode in
14177     :L) ac_source=$1;;
14178     :[FH])
14179     ac_file_inputs=
14180     for ac_f
14181     do
14182     case $ac_f in
14183 michael 5059 -) ac_f="$ac_tmp/stdin";;
14184 michael 5052 *) # Look for the file first in the build tree, then in the source tree
14185     # (if the path is not absolute). The absolute path cannot be DOS-style,
14186     # because $ac_f cannot contain `:'.
14187     test -f "$ac_f" ||
14188     case $ac_f in
14189     [\\/$]*) false;;
14190     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14191     esac ||
14192 michael 5059 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14193 michael 5052 esac
14194 michael 5059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14195     as_fn_append ac_file_inputs " '$ac_f'"
14196 michael 5052 done
14197    
14198     # Let's still pretend it is `configure' which instantiates (i.e., don't
14199     # use $as_me), people would be surprised to read:
14200     # /* config.h. Generated by config.status. */
14201 michael 5059 configure_input='Generated from '`
14202     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14203     `' by configure.'
14204 michael 5052 if test x"$ac_file" != x-; then
14205     configure_input="$ac_file. $configure_input"
14206 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14207     $as_echo "$as_me: creating $ac_file" >&6;}
14208 michael 5052 fi
14209 michael 5059 # Neutralize special characters interpreted by sed in replacement strings.
14210     case $configure_input in #(
14211     *\&* | *\|* | *\\* )
14212     ac_sed_conf_input=`$as_echo "$configure_input" |
14213     sed 's/[\\\\&|]/\\\\&/g'`;; #(
14214     *) ac_sed_conf_input=$configure_input;;
14215     esac
14216 michael 5052
14217     case $ac_tag in
14218 michael 5059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14219     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14220 michael 5052 esac
14221     ;;
14222     esac
14223    
14224     ac_dir=`$as_dirname -- "$ac_file" ||
14225     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14226     X"$ac_file" : 'X\(//\)[^/]' \| \
14227     X"$ac_file" : 'X\(//\)$' \| \
14228     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14229 michael 5059 $as_echo X"$ac_file" |
14230 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14231     s//\1/
14232     q
14233     }
14234     /^X\(\/\/\)[^/].*/{
14235     s//\1/
14236     q
14237     }
14238     /^X\(\/\/\)$/{
14239     s//\1/
14240     q
14241     }
14242     /^X\(\/\).*/{
14243     s//\1/
14244     q
14245     }
14246     s/.*/./; q'`
14247 michael 5059 as_dir="$ac_dir"; as_fn_mkdir_p
14248 michael 5052 ac_builddir=.
14249    
14250     case "$ac_dir" in
14251     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14252     *)
14253 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14254 michael 5052 # A ".." for each directory in $ac_dir_suffix.
14255 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14256 michael 5052 case $ac_top_builddir_sub in
14257     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14258     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14259     esac ;;
14260     esac
14261     ac_abs_top_builddir=$ac_pwd
14262     ac_abs_builddir=$ac_pwd$ac_dir_suffix
14263     # for backward compatibility:
14264     ac_top_builddir=$ac_top_build_prefix
14265    
14266     case $srcdir in
14267     .) # We are building in place.
14268     ac_srcdir=.
14269     ac_top_srcdir=$ac_top_builddir_sub
14270     ac_abs_top_srcdir=$ac_pwd ;;
14271     [\\/]* | ?:[\\/]* ) # Absolute name.
14272     ac_srcdir=$srcdir$ac_dir_suffix;
14273     ac_top_srcdir=$srcdir
14274     ac_abs_top_srcdir=$srcdir ;;
14275     *) # Relative name.
14276     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14277     ac_top_srcdir=$ac_top_build_prefix$srcdir
14278     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14279     esac
14280     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14281    
14282    
14283     case $ac_mode in
14284     :F)
14285     #
14286     # CONFIG_FILE
14287     #
14288    
14289     case $INSTALL in
14290     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14291     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14292     esac
14293 michael 5059 ac_MKDIR_P=$MKDIR_P
14294     case $MKDIR_P in
14295     [\\/$]* | ?:[\\/]* ) ;;
14296     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14297     esac
14298 michael 5052 _ACEOF
14299    
14300 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14301 michael 5052 # If the template does not know about datarootdir, expand it.
14302     # FIXME: This hack should be removed a few years after 2.60.
14303     ac_datarootdir_hack=; ac_datarootdir_seen=
14304 michael 5059 ac_sed_dataroot='
14305     /datarootdir/ {
14306 michael 5052 p
14307     q
14308     }
14309     /@datadir@/p
14310     /@docdir@/p
14311     /@infodir@/p
14312     /@localedir@/p
14313 michael 5059 /@mandir@/p'
14314     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14315 michael 5052 *datarootdir*) ac_datarootdir_seen=yes;;
14316     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14317 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14318     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14319 michael 5052 _ACEOF
14320 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14321 michael 5052 ac_datarootdir_hack='
14322     s&@datadir@&$datadir&g
14323     s&@docdir@&$docdir&g
14324     s&@infodir@&$infodir&g
14325     s&@localedir@&$localedir&g
14326     s&@mandir@&$mandir&g
14327 michael 5059 s&\\\${datarootdir}&$datarootdir&g' ;;
14328 michael 5052 esac
14329     _ACEOF
14330    
14331     # Neutralize VPATH when `$srcdir' = `.'.
14332     # Shell code in configure.ac might set extrasub.
14333     # FIXME: do we really want to maintain this feature?
14334 michael 5059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14335     ac_sed_extra="$ac_vpsub
14336 michael 5052 $extrasub
14337     _ACEOF
14338 michael 5059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14339 michael 5052 :t
14340     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14341 michael 5059 s|@configure_input@|$ac_sed_conf_input|;t t
14342 michael 5052 s&@top_builddir@&$ac_top_builddir_sub&;t t
14343 michael 5059 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14344 michael 5052 s&@srcdir@&$ac_srcdir&;t t
14345     s&@abs_srcdir@&$ac_abs_srcdir&;t t
14346     s&@top_srcdir@&$ac_top_srcdir&;t t
14347     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14348     s&@builddir@&$ac_builddir&;t t
14349     s&@abs_builddir@&$ac_abs_builddir&;t t
14350     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14351     s&@INSTALL@&$ac_INSTALL&;t t
14352 michael 5059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14353 michael 5052 $ac_datarootdir_hack
14354 michael 5059 "
14355     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14356     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14357 michael 5052
14358     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14359 michael 5059 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14360     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14361     "$ac_tmp/out"`; test -z "$ac_out"; } &&
14362     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14363     which seems to be undefined. Please make sure it is defined" >&5
14364     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14365     which seems to be undefined. Please make sure it is defined" >&2;}
14366 michael 5052
14367 michael 5059 rm -f "$ac_tmp/stdin"
14368 michael 5052 case $ac_file in
14369 michael 5059 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14370     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14371     esac \
14372     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14373 michael 5052 ;;
14374     :H)
14375     #
14376     # CONFIG_HEADER
14377     #
14378     if test x"$ac_file" != x-; then
14379 michael 5059 {
14380     $as_echo "/* $configure_input */" \
14381     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14382     } >"$ac_tmp/config.h" \
14383     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14384     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14385     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14386     $as_echo "$as_me: $ac_file is unchanged" >&6;}
14387 michael 5052 else
14388 michael 5059 rm -f "$ac_file"
14389     mv "$ac_tmp/config.h" "$ac_file" \
14390     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14391 michael 5052 fi
14392     else
14393 michael 5059 $as_echo "/* $configure_input */" \
14394     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14395     || as_fn_error $? "could not create -" "$LINENO" 5
14396 michael 5052 fi
14397 michael 5059 # Compute "$ac_file"'s index in $config_headers.
14398     _am_arg="$ac_file"
14399 michael 5052 _am_stamp_count=1
14400     for _am_header in $config_headers :; do
14401     case $_am_header in
14402 michael 5059 $_am_arg | $_am_arg:* )
14403 michael 5052 break ;;
14404     * )
14405     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14406     esac
14407     done
14408 michael 5059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14409     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14410     X"$_am_arg" : 'X\(//\)[^/]' \| \
14411     X"$_am_arg" : 'X\(//\)$' \| \
14412     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14413     $as_echo X"$_am_arg" |
14414 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14415     s//\1/
14416     q
14417     }
14418     /^X\(\/\/\)[^/].*/{
14419     s//\1/
14420     q
14421     }
14422     /^X\(\/\/\)$/{
14423     s//\1/
14424     q
14425     }
14426     /^X\(\/\).*/{
14427     s//\1/
14428     q
14429     }
14430     s/.*/./; q'`/stamp-h$_am_stamp_count
14431     ;;
14432    
14433 michael 5059 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14434     $as_echo "$as_me: executing $ac_file commands" >&6;}
14435 michael 5052 ;;
14436     esac
14437    
14438    
14439     case $ac_file$ac_mode in
14440 michael 5059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14441     # Older Autoconf quotes --file arguments for eval, but not when files
14442     # are listed without --file. Let's play safe and only enable the eval
14443     # if we detect the quoting.
14444     case $CONFIG_FILES in
14445     *\'*) eval set x "$CONFIG_FILES" ;;
14446     *) set x $CONFIG_FILES ;;
14447     esac
14448     shift
14449     for mf
14450     do
14451     # Strip MF so we end up with the name of the file.
14452     mf=`echo "$mf" | sed -e 's/:.*$//'`
14453     # Check whether this is an Automake generated Makefile or not.
14454     # We used to match only the files named 'Makefile.in', but
14455     # some people rename them; so instead we look at the file content.
14456     # Grep'ing the first line is not enough: some people post-process
14457     # each Makefile.in and add a new line on top of each file to say so.
14458     # Grep'ing the whole file is not good either: AIX grep has a line
14459     # limit of 2048, but all sed's we know have understand at least 4000.
14460     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14461     dirpart=`$as_dirname -- "$mf" ||
14462 michael 5052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463     X"$mf" : 'X\(//\)[^/]' \| \
14464     X"$mf" : 'X\(//\)$' \| \
14465     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14466 michael 5059 $as_echo X"$mf" |
14467 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14468     s//\1/
14469     q
14470     }
14471     /^X\(\/\/\)[^/].*/{
14472     s//\1/
14473     q
14474     }
14475     /^X\(\/\/\)$/{
14476     s//\1/
14477     q
14478     }
14479     /^X\(\/\).*/{
14480     s//\1/
14481     q
14482     }
14483     s/.*/./; q'`
14484 michael 5059 else
14485     continue
14486     fi
14487     # Extract the definition of DEPDIR, am__include, and am__quote
14488     # from the Makefile without running 'make'.
14489     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14490     test -z "$DEPDIR" && continue
14491     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14492     test -z "$am__include" && continue
14493     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14494     # Find all dependency output files, they are included files with
14495     # $(DEPDIR) in their names. We invoke sed twice because it is the
14496     # simplest approach to changing $(DEPDIR) to its actual value in the
14497     # expansion.
14498     for file in `sed -n "
14499     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14500     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14501     # Make sure the directory exists.
14502     test -f "$dirpart/$file" && continue
14503     fdir=`$as_dirname -- "$file" ||
14504 michael 5052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14505     X"$file" : 'X\(//\)[^/]' \| \
14506     X"$file" : 'X\(//\)$' \| \
14507     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14508 michael 5059 $as_echo X"$file" |
14509 michael 5052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14510     s//\1/
14511     q
14512     }
14513     /^X\(\/\/\)[^/].*/{
14514     s//\1/
14515     q
14516     }
14517     /^X\(\/\/\)$/{
14518     s//\1/
14519     q
14520     }
14521     /^X\(\/\).*/{
14522     s//\1/
14523     q
14524     }
14525     s/.*/./; q'`
14526 michael 5059 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14527     # echo "creating $dirpart/$file"
14528     echo '# dummy' > "$dirpart/$file"
14529 michael 5052 done
14530     done
14531 michael 5059 }
14532 michael 5052 ;;
14533 michael 5059 "libtool":C)
14534 michael 5052
14535 michael 5059 # See if we are running on zsh, and set the options that allow our
14536     # commands through without removal of \ escapes.
14537     if test -n "${ZSH_VERSION+set}"; then
14538     setopt NO_GLOB_SUBST
14539     fi
14540    
14541     cfgfile=${ofile}T
14542     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14543     $RM "$cfgfile"
14544    
14545     cat <<_LT_EOF >> "$cfgfile"
14546     #! $SHELL
14547     # Generated automatically by $as_me ($PACKAGE) $VERSION
14548     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14549     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14550    
14551     # Provide generalized library-building support services.
14552     # Written by Gordon Matzigkeit, 1996
14553    
14554     # Copyright (C) 2014 Free Software Foundation, Inc.
14555     # This is free software; see the source for copying conditions. There is NO
14556     # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14557    
14558     # GNU Libtool is free software; you can redistribute it and/or modify
14559     # it under the terms of the GNU General Public License as published by
14560     # the Free Software Foundation; either version 2 of of the License, or
14561     # (at your option) any later version.
14562     #
14563     # As a special exception to the GNU General Public License, if you
14564     # distribute this file as part of a program or library that is built
14565     # using GNU Libtool, you may include this file under the same
14566     # distribution terms that you use for the rest of that program.
14567     #
14568     # GNU Libtool is distributed in the hope that it will be useful, but
14569     # WITHOUT ANY WARRANTY; without even the implied warranty of
14570     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14571     # GNU General Public License for more details.
14572     #
14573     # You should have received a copy of the GNU General Public License
14574     # along with this program. If not, see <http://www.gnu.org/licenses/>.
14575    
14576    
14577     # The names of the tagged configurations supported by this script.
14578     available_tags=''
14579    
14580     # ### BEGIN LIBTOOL CONFIG
14581    
14582     # Which release of libtool.m4 was used?
14583     macro_version=$macro_version
14584     macro_revision=$macro_revision
14585    
14586     # Whether or not to build shared libraries.
14587     build_libtool_libs=$enable_shared
14588    
14589     # Whether or not to build static libraries.
14590     build_old_libs=$enable_static
14591    
14592     # What type of objects to build.
14593     pic_mode=$pic_mode
14594    
14595     # Whether or not to optimize for fast installation.
14596     fast_install=$enable_fast_install
14597    
14598     # Shared archive member basename,for filename based shared library versioning on AIX.
14599     shared_archive_member_spec=$shared_archive_member_spec
14600    
14601     # Shell to use when invoking shell scripts.
14602     SHELL=$lt_SHELL
14603    
14604     # An echo program that protects backslashes.
14605     ECHO=$lt_ECHO
14606    
14607     # The PATH separator for the build system.
14608     PATH_SEPARATOR=$lt_PATH_SEPARATOR
14609    
14610     # The host system.
14611     host_alias=$host_alias
14612     host=$host
14613     host_os=$host_os
14614    
14615     # The build system.
14616     build_alias=$build_alias
14617     build=$build
14618     build_os=$build_os
14619    
14620     # A sed program that does not truncate output.
14621     SED=$lt_SED
14622    
14623     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14624     Xsed="\$SED -e 1s/^X//"
14625    
14626     # A grep program that handles long lines.
14627     GREP=$lt_GREP
14628    
14629     # An ERE matcher.
14630     EGREP=$lt_EGREP
14631    
14632     # A literal string matcher.
14633     FGREP=$lt_FGREP
14634    
14635     # A BSD- or MS-compatible name lister.
14636     NM=$lt_NM
14637    
14638     # Whether we need soft or hard links.
14639     LN_S=$lt_LN_S
14640    
14641     # What is the maximum length of a command?
14642     max_cmd_len=$max_cmd_len
14643    
14644     # Object file suffix (normally "o").
14645     objext=$ac_objext
14646    
14647     # Executable file suffix (normally "").
14648     exeext=$exeext
14649    
14650     # whether the shell understands "unset".
14651     lt_unset=$lt_unset
14652    
14653     # turn spaces into newlines.
14654     SP2NL=$lt_lt_SP2NL
14655    
14656     # turn newlines into spaces.
14657     NL2SP=$lt_lt_NL2SP
14658    
14659     # convert \$build file names to \$host format.
14660     to_host_file_cmd=$lt_cv_to_host_file_cmd
14661    
14662     # convert \$build files to toolchain format.
14663     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14664    
14665     # An object symbol dumper.
14666     OBJDUMP=$lt_OBJDUMP
14667    
14668     # Method to check whether dependent libraries are shared objects.
14669     deplibs_check_method=$lt_deplibs_check_method
14670    
14671     # Command to use when deplibs_check_method = "file_magic".
14672     file_magic_cmd=$lt_file_magic_cmd
14673    
14674     # How to find potential files when deplibs_check_method = "file_magic".
14675     file_magic_glob=$lt_file_magic_glob
14676    
14677     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14678     want_nocaseglob=$lt_want_nocaseglob
14679    
14680     # DLL creation program.
14681     DLLTOOL=$lt_DLLTOOL
14682    
14683     # Command to associate shared and link libraries.
14684     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14685    
14686     # The archiver.
14687     AR=$lt_AR
14688    
14689     # Flags to create an archive.
14690     AR_FLAGS=$lt_AR_FLAGS
14691    
14692     # How to feed a file listing to the archiver.
14693     archiver_list_spec=$lt_archiver_list_spec
14694    
14695     # A symbol stripping program.
14696     STRIP=$lt_STRIP
14697    
14698     # Commands used to install an old-style archive.
14699     RANLIB=$lt_RANLIB
14700     old_postinstall_cmds=$lt_old_postinstall_cmds
14701     old_postuninstall_cmds=$lt_old_postuninstall_cmds
14702    
14703     # Whether to use a lock for old archive extraction.
14704     lock_old_archive_extraction=$lock_old_archive_extraction
14705    
14706     # A C compiler.
14707     LTCC=$lt_CC
14708    
14709     # LTCC compiler flags.
14710     LTCFLAGS=$lt_CFLAGS
14711    
14712     # Take the output of nm and produce a listing of raw symbols and C names.
14713     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14714    
14715     # Transform the output of nm in a proper C declaration.
14716     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14717    
14718     # Transform the output of nm into a list of symbols to manually relocate.
14719     global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14720    
14721     # Transform the output of nm in a C name address pair.
14722     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14723    
14724     # Transform the output of nm in a C name address pair when lib prefix is needed.
14725     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14726    
14727     # The name lister interface.
14728     nm_interface=$lt_lt_cv_nm_interface
14729    
14730     # Specify filename containing input files for \$NM.
14731     nm_file_list_spec=$lt_nm_file_list_spec
14732    
14733     # The root where to search for dependent libraries,and where our libraries should be installed.
14734     lt_sysroot=$lt_sysroot
14735    
14736     # Command to truncate a binary pipe.
14737     lt_truncate_bin=$lt_lt_cv_truncate_bin
14738    
14739     # The name of the directory that contains temporary libtool files.
14740     objdir=$objdir
14741    
14742     # Used to examine libraries when file_magic_cmd begins with "file".
14743     MAGIC_CMD=$MAGIC_CMD
14744    
14745     # Must we lock files when doing compilation?
14746     need_locks=$lt_need_locks
14747    
14748     # Manifest tool.
14749     MANIFEST_TOOL=$lt_MANIFEST_TOOL
14750    
14751     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14752     DSYMUTIL=$lt_DSYMUTIL
14753    
14754     # Tool to change global to local symbols on Mac OS X.
14755     NMEDIT=$lt_NMEDIT
14756    
14757     # Tool to manipulate fat objects and archives on Mac OS X.
14758     LIPO=$lt_LIPO
14759    
14760     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14761     OTOOL=$lt_OTOOL
14762    
14763     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14764     OTOOL64=$lt_OTOOL64
14765    
14766     # Old archive suffix (normally "a").
14767     libext=$libext
14768    
14769     # Shared library suffix (normally ".so").
14770     shrext_cmds=$lt_shrext_cmds
14771    
14772     # The commands to extract the exported symbol list from a shared archive.
14773     extract_expsyms_cmds=$lt_extract_expsyms_cmds
14774    
14775     # Variables whose values should be saved in libtool wrapper scripts and
14776     # restored at link time.
14777     variables_saved_for_relink=$lt_variables_saved_for_relink
14778    
14779     # Do we need the "lib" prefix for modules?
14780     need_lib_prefix=$need_lib_prefix
14781    
14782     # Do we need a version for libraries?
14783     need_version=$need_version
14784    
14785     # Library versioning type.
14786     version_type=$version_type
14787    
14788     # Shared library runtime path variable.
14789     runpath_var=$runpath_var
14790    
14791     # Shared library path variable.
14792     shlibpath_var=$shlibpath_var
14793    
14794     # Is shlibpath searched before the hard-coded library search path?
14795     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14796    
14797     # Format of library name prefix.
14798     libname_spec=$lt_libname_spec
14799    
14800     # List of archive names. First name is the real one, the rest are links.
14801     # The last name is the one that the linker finds with -lNAME
14802     library_names_spec=$lt_library_names_spec
14803    
14804     # The coded name of the library, if different from the real name.
14805     soname_spec=$lt_soname_spec
14806    
14807     # Permission mode override for installation of shared libraries.
14808     install_override_mode=$lt_install_override_mode
14809    
14810     # Command to use after installation of a shared archive.
14811     postinstall_cmds=$lt_postinstall_cmds
14812    
14813     # Command to use after uninstallation of a shared archive.
14814     postuninstall_cmds=$lt_postuninstall_cmds
14815    
14816     # Commands used to finish a libtool library installation in a directory.
14817     finish_cmds=$lt_finish_cmds
14818    
14819     # As "finish_cmds", except a single script fragment to be evaled but
14820     # not shown.
14821     finish_eval=$lt_finish_eval
14822    
14823     # Whether we should hardcode library paths into libraries.
14824     hardcode_into_libs=$hardcode_into_libs
14825    
14826     # Compile-time system search path for libraries.
14827     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14828    
14829     # Run-time system search path for libraries.
14830     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14831    
14832     # Whether dlopen is supported.
14833     dlopen_support=$enable_dlopen
14834    
14835     # Whether dlopen of programs is supported.
14836     dlopen_self=$enable_dlopen_self
14837    
14838     # Whether dlopen of statically linked programs is supported.
14839     dlopen_self_static=$enable_dlopen_self_static
14840    
14841     # Commands to strip libraries.
14842     old_striplib=$lt_old_striplib
14843     striplib=$lt_striplib
14844    
14845    
14846     # The linker used to build libraries.
14847     LD=$lt_LD
14848    
14849     # How to create reloadable object files.
14850     reload_flag=$lt_reload_flag
14851     reload_cmds=$lt_reload_cmds
14852    
14853     # Commands used to build an old-style archive.
14854     old_archive_cmds=$lt_old_archive_cmds
14855    
14856     # A language specific compiler.
14857     CC=$lt_compiler
14858    
14859     # Is the compiler the GNU compiler?
14860     with_gcc=$GCC
14861    
14862     # Compiler flag to turn off builtin functions.
14863     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14864    
14865     # Additional compiler flags for building library objects.
14866     pic_flag=$lt_lt_prog_compiler_pic
14867    
14868     # How to pass a linker flag through the compiler.
14869     wl=$lt_lt_prog_compiler_wl
14870    
14871     # Compiler flag to prevent dynamic linking.
14872     link_static_flag=$lt_lt_prog_compiler_static
14873    
14874     # Does compiler simultaneously support -c and -o options?
14875     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14876    
14877     # Whether or not to add -lc for building shared libraries.
14878     build_libtool_need_lc=$archive_cmds_need_lc
14879    
14880     # Whether or not to disallow shared libs when runtime libs are static.
14881     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14882    
14883     # Compiler flag to allow reflexive dlopens.
14884     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14885    
14886     # Compiler flag to generate shared objects directly from archives.
14887     whole_archive_flag_spec=$lt_whole_archive_flag_spec
14888    
14889     # Whether the compiler copes with passing no objects directly.
14890     compiler_needs_object=$lt_compiler_needs_object
14891    
14892     # Create an old-style archive from a shared archive.
14893     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14894    
14895     # Create a temporary old-style archive to link instead of a shared archive.
14896     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14897    
14898     # Commands used to build a shared archive.
14899     archive_cmds=$lt_archive_cmds
14900     archive_expsym_cmds=$lt_archive_expsym_cmds
14901    
14902     # Commands used to build a loadable module if different from building
14903     # a shared archive.
14904     module_cmds=$lt_module_cmds
14905     module_expsym_cmds=$lt_module_expsym_cmds
14906    
14907     # Whether we are building with GNU ld or not.
14908     with_gnu_ld=$lt_with_gnu_ld
14909    
14910     # Flag that allows shared libraries with undefined symbols to be built.
14911     allow_undefined_flag=$lt_allow_undefined_flag
14912    
14913     # Flag that enforces no undefined symbols.
14914     no_undefined_flag=$lt_no_undefined_flag
14915    
14916     # Flag to hardcode \$libdir into a binary during linking.
14917     # This must work even if \$libdir does not exist
14918     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14919    
14920     # Whether we need a single "-rpath" flag with a separated argument.
14921     hardcode_libdir_separator=$lt_hardcode_libdir_separator
14922    
14923     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14924     # DIR into the resulting binary.
14925     hardcode_direct=$hardcode_direct
14926    
14927     # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14928     # DIR into the resulting binary and the resulting library dependency is
14929     # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14930     # library is relocated.
14931     hardcode_direct_absolute=$hardcode_direct_absolute
14932    
14933     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14934     # into the resulting binary.
14935     hardcode_minus_L=$hardcode_minus_L
14936    
14937     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14938     # into the resulting binary.
14939     hardcode_shlibpath_var=$hardcode_shlibpath_var
14940    
14941     # Set to "yes" if building a shared library automatically hardcodes DIR
14942     # into the library and all subsequent libraries and executables linked
14943     # against it.
14944     hardcode_automatic=$hardcode_automatic
14945    
14946     # Set to yes if linker adds runtime paths of dependent libraries
14947     # to runtime path list.
14948     inherit_rpath=$inherit_rpath
14949    
14950     # Whether libtool must link a program against all its dependency libraries.
14951     link_all_deplibs=$link_all_deplibs
14952    
14953     # Set to "yes" if exported symbols are required.
14954     always_export_symbols=$always_export_symbols
14955    
14956     # The commands to list exported symbols.
14957     export_symbols_cmds=$lt_export_symbols_cmds
14958    
14959     # Symbols that should not be listed in the preloaded symbols.
14960     exclude_expsyms=$lt_exclude_expsyms
14961    
14962     # Symbols that must always be exported.
14963     include_expsyms=$lt_include_expsyms
14964    
14965     # Commands necessary for linking programs (against libraries) with templates.
14966     prelink_cmds=$lt_prelink_cmds
14967    
14968     # Commands necessary for finishing linking programs.
14969     postlink_cmds=$lt_postlink_cmds
14970    
14971     # Specify filename containing input files.
14972     file_list_spec=$lt_file_list_spec
14973    
14974     # How to hardcode a shared library path into an executable.
14975     hardcode_action=$hardcode_action
14976    
14977     # ### END LIBTOOL CONFIG
14978    
14979     _LT_EOF
14980    
14981     case $host_os in
14982     aix3*)
14983     cat <<\_LT_EOF >> "$cfgfile"
14984     # AIX sometimes has problems with the GCC collect2 program. For some
14985     # reason, if we set the COLLECT_NAMES environment variable, the problems
14986     # vanish in a puff of smoke.
14987     if test set != "${COLLECT_NAMES+set}"; then
14988     COLLECT_NAMES=
14989     export COLLECT_NAMES
14990     fi
14991     _LT_EOF
14992     ;;
14993 michael 5052 esac
14994 michael 5059
14995    
14996     ltmain=$ac_aux_dir/ltmain.sh
14997    
14998    
14999     # We use sed instead of cat because bash on DJGPP gets confused if
15000     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15001     # text mode, it properly converts lines to CR/LF. This bash problem
15002     # is reportedly fixed, but why not run on old versions too?
15003     sed '$q' "$ltmain" >> "$cfgfile" \
15004     || (rm -f "$cfgfile"; exit 1)
15005    
15006     mv -f "$cfgfile" "$ofile" ||
15007     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15008     chmod +x "$ofile"
15009    
15010     ;;
15011    
15012     esac
15013 michael 5052 done # for ac_tag
15014    
15015    
15016 michael 5059 as_fn_exit 0
15017 michael 5052 _ACEOF
15018     ac_clean_files=$ac_clean_files_save
15019    
15020 michael 5059 test $ac_write_fail = 0 ||
15021     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15022 michael 5052
15023 michael 5059
15024 michael 5052 # configure is writing to config.log, and then calls config.status.
15025     # config.status does its own redirection, appending to config.log.
15026     # Unfortunately, on DOS this fails, as config.log is still kept open
15027     # by configure, so config.status won't be able to write to it; its
15028     # output is simply discarded. So we exec the FD to /dev/null,
15029     # effectively closing config.log, so it can be properly (re)opened and
15030     # appended to by config.status. When coming back to configure, we
15031     # need to make the FD available again.
15032     if test "$no_create" != yes; then
15033     ac_cs_success=:
15034     ac_config_status_args=
15035     test "$silent" = yes &&
15036     ac_config_status_args="$ac_config_status_args --quiet"
15037     exec 5>/dev/null
15038     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15039     exec 5>>config.log
15040     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15041     # would make configure fail if this is the last instruction.
15042 michael 5059 $ac_cs_success || as_fn_exit 1
15043 michael 5052 fi
15044    
15045     #
15046     # CONFIG_SUBDIRS section.
15047     #
15048     if test "$no_recursion" != yes; then
15049    
15050 michael 5059 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15051     # so they do not pile up.
15052 michael 5052 ac_sub_configure_args=
15053     ac_prev=
15054     eval "set x $ac_configure_args"
15055     shift
15056     for ac_arg
15057     do
15058     if test -n "$ac_prev"; then
15059     ac_prev=
15060     continue
15061     fi
15062     case $ac_arg in
15063     -cache-file | --cache-file | --cache-fil | --cache-fi \
15064     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15065     ac_prev=cache_file ;;
15066     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15067     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15068     | --c=*)
15069     ;;
15070     --config-cache | -C)
15071     ;;
15072     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15073     ac_prev=srcdir ;;
15074     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15075     ;;
15076     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15077     ac_prev=prefix ;;
15078     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15079     ;;
15080 michael 5059 --disable-option-checking)
15081     ;;
15082 michael 5052 *)
15083     case $ac_arg in
15084 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15085 michael 5052 esac
15086 michael 5059 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15087 michael 5052 esac
15088     done
15089    
15090     # Always prepend --prefix to ensure using the same prefix
15091     # in subdir configurations.
15092     ac_arg="--prefix=$prefix"
15093     case $ac_arg in
15094 michael 5059 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15095 michael 5052 esac
15096 michael 5059 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15097 michael 5052
15098 michael 5059 # Pass --silent
15099     if test "$silent" = yes; then
15100     ac_sub_configure_args="--silent $ac_sub_configure_args"
15101     fi
15102    
15103     # Always prepend --disable-option-checking to silence warnings, since
15104     # different subdirs can have different --enable and --with options.
15105     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15106    
15107 michael 5052 ac_popdir=`pwd`
15108     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15109    
15110     # Do not complain, so a configure script can configure whichever
15111     # parts of a large source tree are present.
15112     test -d "$srcdir/$ac_dir" || continue
15113    
15114     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15115 michael 5059 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15116     $as_echo "$ac_msg" >&6
15117     as_dir="$ac_dir"; as_fn_mkdir_p
15118 michael 5052 ac_builddir=.
15119    
15120     case "$ac_dir" in
15121     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15122     *)
15123 michael 5059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15124 michael 5052 # A ".." for each directory in $ac_dir_suffix.
15125 michael 5059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15126 michael 5052 case $ac_top_builddir_sub in
15127     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15128     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15129     esac ;;
15130     esac
15131     ac_abs_top_builddir=$ac_pwd
15132     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15133     # for backward compatibility:
15134     ac_top_builddir=$ac_top_build_prefix
15135    
15136     case $srcdir in
15137     .) # We are building in place.
15138     ac_srcdir=.
15139     ac_top_srcdir=$ac_top_builddir_sub
15140     ac_abs_top_srcdir=$ac_pwd ;;
15141     [\\/]* | ?:[\\/]* ) # Absolute name.
15142     ac_srcdir=$srcdir$ac_dir_suffix;
15143     ac_top_srcdir=$srcdir
15144     ac_abs_top_srcdir=$srcdir ;;
15145     *) # Relative name.
15146     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15147     ac_top_srcdir=$ac_top_build_prefix$srcdir
15148     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15149     esac
15150     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15151    
15152    
15153     cd "$ac_dir"
15154    
15155     # Check for guested configure; otherwise get Cygnus style configure.
15156     if test -f "$ac_srcdir/configure.gnu"; then
15157     ac_sub_configure=$ac_srcdir/configure.gnu
15158     elif test -f "$ac_srcdir/configure"; then
15159     ac_sub_configure=$ac_srcdir/configure
15160     elif test -f "$ac_srcdir/configure.in"; then
15161     # This should be Cygnus configure.
15162     ac_sub_configure=$ac_aux_dir/configure
15163     else
15164 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15165     $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15166 michael 5052 ac_sub_configure=
15167     fi
15168    
15169     # The recursion is here.
15170     if test -n "$ac_sub_configure"; then
15171     # Make the cache file name correct relative to the subdirectory.
15172     case $cache_file in
15173     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15174     *) # Relative name.
15175     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15176     esac
15177    
15178 michael 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15179     $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15180 michael 5052 # The eval makes quoting arguments work.
15181     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15182     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15183 michael 5059 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15184 michael 5052 fi
15185    
15186     cd "$ac_popdir"
15187     done
15188     fi
15189 michael 5059 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15190     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15191     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15192     fi
15193 michael 5052
15194    
15195    
15196 michael 5110 echo "###############################################################################"
15197     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
15198 michael 5052 echo
15199 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
15200 michael 5052 echo " ./configure --prefix=DIRECTORY"
15201 michael 5110 echo "###############################################################################"

Properties

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