lemon-project-template-glpk
view deps/glpk/configure @ 11:4fc6ad2fb8a6
Test GLPK in src/main.cc
author | Alpar Juttner <alpar@cs.elte.hu> |
---|---|
date | Sun, 06 Nov 2011 21:43:29 +0100 |
parents | |
children |
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for GLPK 4.47.
4 #
5 # Report bugs to <bug-glpk@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187 else
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192 else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194 as_found=false
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210 fi
211 fi
212 done;;
213 esac
214 as_found=false
215 done
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219 fi; }
220 IFS=$as_save_IFS
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 fi
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-glpk@gnu.org
242 $0: about your system, including any error possibly output
243 $0: before this message. Then install a modern shell, or
244 $0: manually run the script under such a shell if you do
245 $0: have one."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
370 # as_fn_error ERROR [LINENO LOG_FD]
371 # ---------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with status $?, using 1 if that was 0.
375 as_fn_error ()
376 {
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
542 test -n "$DJDIR" || exec 7<&0 </dev/null
543 exec 6>&1
545 # Name of the host.
546 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547 # so uname gets run too.
548 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 #
551 # Initializations.
552 #
553 ac_default_prefix=/usr/local
554 ac_clean_files=
555 ac_config_libobj_dir=.
556 LIBOBJS=
557 cross_compiling=no
558 subdirs=
559 MFLAGS=
560 MAKEFLAGS=
562 # Identity of this package.
563 PACKAGE_NAME='GLPK'
564 PACKAGE_TARNAME='glpk'
565 PACKAGE_VERSION='4.47'
566 PACKAGE_STRING='GLPK 4.47'
567 PACKAGE_BUGREPORT='bug-glpk@gnu.org'
568 PACKAGE_URL=''
570 ac_unique_file="src/glpk.h"
571 # Factoring default headers for most tests.
572 ac_includes_default="\
573 #include <stdio.h>
574 #ifdef HAVE_SYS_TYPES_H
575 # include <sys/types.h>
576 #endif
577 #ifdef HAVE_SYS_STAT_H
578 # include <sys/stat.h>
579 #endif
580 #ifdef STDC_HEADERS
581 # include <stdlib.h>
582 # include <stddef.h>
583 #else
584 # ifdef HAVE_STDLIB_H
585 # include <stdlib.h>
586 # endif
587 #endif
588 #ifdef HAVE_STRING_H
589 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590 # include <memory.h>
591 # endif
592 # include <string.h>
593 #endif
594 #ifdef HAVE_STRINGS_H
595 # include <strings.h>
596 #endif
597 #ifdef HAVE_INTTYPES_H
598 # include <inttypes.h>
599 #endif
600 #ifdef HAVE_STDINT_H
601 # include <stdint.h>
602 #endif
603 #ifdef HAVE_UNISTD_H
604 # include <unistd.h>
605 #endif"
607 ac_subst_vars='am__EXEEXT_FALSE
608 am__EXEEXT_TRUE
609 LTLIBOBJS
610 LIBOBJS
611 CPP
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
618 AR
619 DLLTOOL
620 OBJDUMP
621 to_host_path_cmd
622 LN_S
623 NM
624 ac_ct_DUMPBIN
625 DUMPBIN
626 LD
627 FGREP
628 EGREP
629 GREP
630 SED
631 host_os
632 host_vendor
633 host_cpu
634 host
635 build_os
636 build_vendor
637 build_cpu
638 build
639 LIBTOOL
640 am__fastdepCC_FALSE
641 am__fastdepCC_TRUE
642 CCDEPMODE
643 AMDEPBACKSLASH
644 AMDEP_FALSE
645 AMDEP_TRUE
646 am__quote
647 am__include
648 DEPDIR
649 OBJEXT
650 EXEEXT
651 ac_ct_CC
652 CPPFLAGS
653 LDFLAGS
654 CFLAGS
655 CC
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
661 AWK
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 localstatedir
699 sharedstatedir
700 sysconfdir
701 datadir
702 datarootdir
703 libexecdir
704 sbindir
705 bindir
706 program_transform_name
707 prefix
708 exec_prefix
709 PACKAGE_URL
710 PACKAGE_BUGREPORT
711 PACKAGE_STRING
712 PACKAGE_VERSION
713 PACKAGE_TARNAME
714 PACKAGE_NAME
715 PATH_SEPARATOR
716 SHELL'
717 ac_subst_files=''
718 ac_user_opts='
719 enable_option_checking
720 with_gmp
721 enable_dl
722 enable_odbc
723 enable_mysql
724 enable_dependency_tracking
725 enable_shared
726 enable_static
727 with_pic
728 enable_fast_install
729 with_gnu_ld
730 enable_libtool_lock
731 '
732 ac_precious_vars='build_alias
733 host_alias
734 target_alias
735 CC
736 CFLAGS
737 LDFLAGS
738 LIBS
739 CPPFLAGS
740 CPP'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 ac_unrecognized_opts=
747 ac_unrecognized_sep=
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
853 *"
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
862 ac_prev=docdir ;;
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864 docdir=$ac_optarg ;;
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 ac_prev=dvidir ;;
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869 dvidir=$ac_optarg ;;
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
879 *"
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1075 -with-* | --with-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1083 *"
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=\$ac_optarg ;;
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1099 *"
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=no ;;
1107 --x)
1108 # Obsolete; use --with-x.
1109 with_x=yes ;;
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) as_fn_error "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information."
1127 ;;
1129 *=*)
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1135 esac
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1139 *)
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1145 ;;
1147 esac
1148 done
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error "missing argument to $ac_option"
1153 fi
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1157 no) ;;
1158 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 esac
1161 fi
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1168 do
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1171 case $ac_val in
1172 */ )
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1175 esac
1176 # Be sure to have absolute directory names.
1177 case $ac_val in
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1180 esac
1181 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1182 done
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1187 build=$build_alias
1188 host=$host_alias
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used." >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1198 cross_compiling=yes
1199 fi
1200 fi
1202 ac_tool_prefix=
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205 test "$silent" = yes && exec 6>/dev/null
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error "working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error "pwd does not report name of working directory"
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 $as_echo X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)[^/].*/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\/\)$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\).*/{
1239 s//\1/
1240 q
1241 }
1242 s/.*/./; q'`
1243 srcdir=$ac_confdir
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 srcdir=..
1246 fi
1247 else
1248 ac_srcdir_defaulted=no
1249 fi
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1253 fi
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255 ac_abs_confdir=`(
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1257 pwd)`
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 srcdir=.
1261 fi
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1265 case $srcdir in
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267 esac
1268 for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 done
1275 #
1276 # Report the --help message.
1277 #
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1281 cat <<_ACEOF
1282 \`configure' configures GLPK 4.47 to adapt to many kinds of systems.
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1289 Defaults for the options are specified in brackets.
1291 Configuration:
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1306 [PREFIX]
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1313 For better control, use the options below.
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/glpk]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
1335 _ACEOF
1337 cat <<\_ACEOF
1339 Program names:
1340 --program-prefix=PREFIX prepend PREFIX to installed program names
1341 --program-suffix=SUFFIX append SUFFIX to installed program names
1342 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1344 System types:
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1347 _ACEOF
1348 fi
1350 if test -n "$ac_init_help"; then
1351 case $ac_init_help in
1352 short | recursive ) echo "Configuration of GLPK 4.47:";;
1353 esac
1354 cat <<\_ACEOF
1356 Optional Features:
1357 --disable-option-checking ignore unrecognized --enable/--with options
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --enable-dl enable shared library support [[default=no]]
1361 --enable-odbc enable MathProg ODBC support [[default=no]]
1362 --enable-mysql enable MathProg MySQL support [[default=no]]
1363 --disable-dependency-tracking speeds up one-time build
1364 --enable-dependency-tracking do not reject slow dependency extractors
1365 --enable-shared[=PKGS] build shared libraries [default=yes]
1366 --enable-static[=PKGS] build static libraries [default=yes]
1367 --enable-fast-install[=PKGS]
1368 optimize for fast installation [default=yes]
1369 --disable-libtool-lock avoid locking (might break parallel builds)
1371 Optional Packages:
1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1374 --with-gmp use GNU MP bignum library [[default=no]]
1375 --with-pic try to use only PIC/non-PIC objects [default=use
1376 both]
1377 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1389 Use these variables to override the choices made by `configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1392 Report bugs to <bug-glpk@gnu.org>.
1393 _ACEOF
1394 ac_status=$?
1395 fi
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" ||
1401 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1402 continue
1403 ac_builddir=.
1405 case "$ac_dir" in
1406 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407 *)
1408 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415 esac
1416 ac_abs_top_builddir=$ac_pwd
1417 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418 # for backward compatibility:
1419 ac_top_builddir=$ac_top_build_prefix
1421 case $srcdir in
1422 .) # We are building in place.
1423 ac_srcdir=.
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
1427 ac_srcdir=$srcdir$ac_dir_suffix;
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1434 esac
1435 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
1439 if test -f "$ac_srcdir/configure.gnu"; then
1440 echo &&
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
1443 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else
1446 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done
1450 fi
1452 test -n "$ac_init_help" && exit $ac_status
1453 if $ac_init_version; then
1454 cat <<\_ACEOF
1455 GLPK configure 4.47
1456 generated by GNU Autoconf 2.65
1458 Copyright (C) 2009 Free Software Foundation, Inc.
1459 This configure script is free software; the Free Software Foundation
1460 gives unlimited permission to copy, distribute and modify it.
1461 _ACEOF
1462 exit
1463 fi
1465 ## ------------------------ ##
1466 ## Autoconf initialization. ##
1467 ## ------------------------ ##
1469 # ac_fn_c_try_compile LINENO
1470 # --------------------------
1471 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1472 ac_fn_c_try_compile ()
1473 {
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_c_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1500 ac_retval=1
1501 fi
1502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1503 as_fn_set_status $ac_retval
1505 } # ac_fn_c_try_compile
1507 # ac_fn_c_try_link LINENO
1508 # -----------------------
1509 # Try to link conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_link ()
1511 {
1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513 rm -f conftest.$ac_objext conftest$ac_exeext
1514 if { { ac_try="$ac_link"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_link") 2>conftest.err
1522 ac_status=$?
1523 if test -s conftest.err; then
1524 grep -v '^ *+' conftest.err >conftest.er1
1525 cat conftest.er1 >&5
1526 mv -f conftest.er1 conftest.err
1527 fi
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && {
1530 test -z "$ac_c_werror_flag" ||
1531 test ! -s conftest.err
1532 } && test -s conftest$ac_exeext && {
1533 test "$cross_compiling" = yes ||
1534 $as_test_x conftest$ac_exeext
1535 }; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541 ac_retval=1
1542 fi
1543 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1544 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1545 # interfere with the next link command; also delete a directory that is
1546 # left behind by Apple's compiler. We do this before executing the actions.
1547 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1549 as_fn_set_status $ac_retval
1551 } # ac_fn_c_try_link
1553 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1554 # -------------------------------------------------------
1555 # Tests whether HEADER exists and can be compiled using the include files in
1556 # INCLUDES, setting the cache variable VAR accordingly.
1557 ac_fn_c_check_header_compile ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1561 $as_echo_n "checking for $2... " >&6; }
1562 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1563 $as_echo_n "(cached) " >&6
1564 else
1565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566 /* end confdefs.h. */
1567 $4
1568 #include <$2>
1569 _ACEOF
1570 if ac_fn_c_try_compile "$LINENO"; then :
1571 eval "$3=yes"
1572 else
1573 eval "$3=no"
1574 fi
1575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1576 fi
1577 eval ac_res=\$$3
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1579 $as_echo "$ac_res" >&6; }
1580 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582 } # ac_fn_c_check_header_compile
1584 # ac_fn_c_try_cpp LINENO
1585 # ----------------------
1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_cpp ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 if { { ac_try="$ac_cpp conftest.$ac_ext"
1591 case "(($ac_try" in
1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593 *) ac_try_echo=$ac_try;;
1594 esac
1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1598 ac_status=$?
1599 if test -s conftest.err; then
1600 grep -v '^ *+' conftest.err >conftest.er1
1601 cat conftest.er1 >&5
1602 mv -f conftest.er1 conftest.err
1603 fi
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } >/dev/null && {
1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 }; then :
1609 ac_retval=0
1610 else
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1617 as_fn_set_status $ac_retval
1619 } # ac_fn_c_try_cpp
1621 # ac_fn_c_try_run LINENO
1622 # ----------------------
1623 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1624 # that executables *can* be run.
1625 ac_fn_c_try_run ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if { { ac_try="$ac_link"
1629 case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1632 esac
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_link") 2>&5
1636 ac_status=$?
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1639 { { case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_try") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; }; }; then :
1649 ac_retval=0
1650 else
1651 $as_echo "$as_me: program exited with status $ac_status" >&5
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1655 ac_retval=$ac_status
1656 fi
1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_run
1663 # ac_fn_c_check_func LINENO FUNC VAR
1664 # ----------------------------------
1665 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1666 ac_fn_c_check_func ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1678 #define $2 innocuous_$2
1680 /* System header to define __stub macros and hopefully few prototypes,
1681 which can conflict with char $2 (); below.
1682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1683 <limits.h> exists even on freestanding compilers. */
1685 #ifdef __STDC__
1686 # include <limits.h>
1687 #else
1688 # include <assert.h>
1689 #endif
1691 #undef $2
1693 /* Override any GCC internal prototype to avoid an error.
1694 Use char because int might match the return type of a GCC
1695 builtin and then its argument prototype would still apply. */
1696 #ifdef __cplusplus
1697 extern "C"
1698 #endif
1699 char $2 ();
1700 /* The GNU C library defines this for functions which it implements
1701 to always fail with ENOSYS. Some functions are actually named
1702 something starting with __ and the normal name is an alias. */
1703 #if defined __stub_$2 || defined __stub___$2
1704 choke me
1705 #endif
1707 int
1708 main ()
1709 {
1710 return $2 ();
1711 ;
1712 return 0;
1713 }
1714 _ACEOF
1715 if ac_fn_c_try_link "$LINENO"; then :
1716 eval "$3=yes"
1717 else
1718 eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext \
1721 conftest$ac_exeext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 } # ac_fn_c_check_func
1730 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1731 # -------------------------------------------------------
1732 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1733 # the include files in INCLUDES and setting the cache variable VAR
1734 # accordingly.
1735 ac_fn_c_check_header_mongrel ()
1736 {
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 fi
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1747 else
1748 # Is the header compilable?
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1750 $as_echo_n "checking $2 usability... " >&6; }
1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h. */
1753 $4
1754 #include <$2>
1755 _ACEOF
1756 if ac_fn_c_try_compile "$LINENO"; then :
1757 ac_header_compiler=yes
1758 else
1759 ac_header_compiler=no
1760 fi
1761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1763 $as_echo "$ac_header_compiler" >&6; }
1765 # Is the header present?
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1767 $as_echo_n "checking $2 presence... " >&6; }
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_cpp "$LINENO"; then :
1773 ac_header_preproc=yes
1774 else
1775 ac_header_preproc=no
1776 fi
1777 rm -f conftest.err conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1779 $as_echo "$ac_header_preproc" >&6; }
1781 # So? What about this header?
1782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1783 yes:no: )
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1785 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788 ;;
1789 no:yes:* )
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1791 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1793 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1795 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1797 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 ( cat <<\_ASBOX
1801 ## ------------------------------- ##
1802 ## Report this to bug-glpk@gnu.org ##
1803 ## ------------------------------- ##
1804 _ASBOX
1805 ) | sed "s/^/$as_me: WARNING: /" >&2
1806 ;;
1807 esac
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812 else
1813 eval "$3=\$ac_header_compiler"
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 fi
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 } # ac_fn_c_check_header_mongrel
1822 cat >config.log <<_ACEOF
1823 This file contains any messages produced by compilers while
1824 running configure, to aid debugging if configure makes a mistake.
1826 It was created by GLPK $as_me 4.47, which was
1827 generated by GNU Autoconf 2.65. Invocation command line was
1829 $ $0 $@
1831 _ACEOF
1832 exec 5>>config.log
1833 {
1834 cat <<_ASUNAME
1835 ## --------- ##
1836 ## Platform. ##
1837 ## --------- ##
1839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856 _ASUNAME
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859 for as_dir in $PATH
1860 do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 $as_echo "PATH: $as_dir"
1864 done
1865 IFS=$as_save_IFS
1867 } >&5
1869 cat >&5 <<_ACEOF
1872 ## ----------- ##
1873 ## Core tests. ##
1874 ## ----------- ##
1876 _ACEOF
1879 # Keep a trace of the command line.
1880 # Strip out --no-create and --no-recursion so they do not pile up.
1881 # Strip out --silent because we don't want to record it for future runs.
1882 # Also quote any args containing shell meta-characters.
1883 # Make two passes to allow for proper duplicate-argument suppression.
1884 ac_configure_args=
1885 ac_configure_args0=
1886 ac_configure_args1=
1887 ac_must_keep_next=false
1888 for ac_pass in 1 2
1889 do
1890 for ac_arg
1891 do
1892 case $ac_arg in
1893 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1894 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1895 | -silent | --silent | --silen | --sile | --sil)
1896 continue ;;
1897 *\'*)
1898 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1899 esac
1900 case $ac_pass in
1901 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1902 2)
1903 as_fn_append ac_configure_args1 " '$ac_arg'"
1904 if test $ac_must_keep_next = true; then
1905 ac_must_keep_next=false # Got value, back to normal.
1906 else
1907 case $ac_arg in
1908 *=* | --config-cache | -C | -disable-* | --disable-* \
1909 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1910 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1911 | -with-* | --with-* | -without-* | --without-* | --x)
1912 case "$ac_configure_args0 " in
1913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1914 esac
1915 ;;
1916 -* ) ac_must_keep_next=true ;;
1917 esac
1918 fi
1919 as_fn_append ac_configure_args " '$ac_arg'"
1920 ;;
1921 esac
1922 done
1923 done
1924 { ac_configure_args0=; unset ac_configure_args0;}
1925 { ac_configure_args1=; unset ac_configure_args1;}
1927 # When interrupted or exit'd, cleanup temporary files, and complete
1928 # config.log. We remove comments because anyway the quotes in there
1929 # would cause problems or look ugly.
1930 # WARNING: Use '\'' to represent an apostrophe within the trap.
1931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1932 trap 'exit_status=$?
1933 # Save into config.log some information that might help in debugging.
1934 {
1935 echo
1937 cat <<\_ASBOX
1938 ## ---------------- ##
1939 ## Cache variables. ##
1940 ## ---------------- ##
1941 _ASBOX
1942 echo
1943 # The following way of writing the cache mishandles newlines in values,
1944 (
1945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1946 eval ac_val=\$$ac_var
1947 case $ac_val in #(
1948 *${as_nl}*)
1949 case $ac_var in #(
1950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1952 esac
1953 case $ac_var in #(
1954 _ | IFS | as_nl) ;; #(
1955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1956 *) { eval $ac_var=; unset $ac_var;} ;;
1957 esac ;;
1958 esac
1959 done
1960 (set) 2>&1 |
1961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1962 *${as_nl}ac_space=\ *)
1963 sed -n \
1964 "s/'\''/'\''\\\\'\'''\''/g;
1965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1966 ;; #(
1967 *)
1968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ;;
1970 esac |
1971 sort
1972 )
1973 echo
1975 cat <<\_ASBOX
1976 ## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##
1979 _ASBOX
1980 echo
1981 for ac_var in $ac_subst_vars
1982 do
1983 eval ac_val=\$$ac_var
1984 case $ac_val in
1985 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1986 esac
1987 $as_echo "$ac_var='\''$ac_val'\''"
1988 done | sort
1989 echo
1991 if test -n "$ac_subst_files"; then
1992 cat <<\_ASBOX
1993 ## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##
1996 _ASBOX
1997 echo
1998 for ac_var in $ac_subst_files
1999 do
2000 eval ac_val=\$$ac_var
2001 case $ac_val in
2002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2003 esac
2004 $as_echo "$ac_var='\''$ac_val'\''"
2005 done | sort
2006 echo
2007 fi
2009 if test -s confdefs.h; then
2010 cat <<\_ASBOX
2011 ## ----------- ##
2012 ## confdefs.h. ##
2013 ## ----------- ##
2014 _ASBOX
2015 echo
2016 cat confdefs.h
2017 echo
2018 fi
2019 test "$ac_signal" != 0 &&
2020 $as_echo "$as_me: caught signal $ac_signal"
2021 $as_echo "$as_me: exit $exit_status"
2022 } >&5
2023 rm -f core *.core core.conftest.* &&
2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025 exit $exit_status
2026 ' 0
2027 for ac_signal in 1 2 13 15; do
2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029 done
2030 ac_signal=0
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2035 $as_echo "/* confdefs.h */" > confdefs.h
2037 # Predefined preprocessor variables.
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_NAME "$PACKAGE_NAME"
2041 _ACEOF
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045 _ACEOF
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2049 _ACEOF
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_STRING "$PACKAGE_STRING"
2053 _ACEOF
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057 _ACEOF
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_URL "$PACKAGE_URL"
2061 _ACEOF
2064 # Let the site file select an alternate cache file if it wants to.
2065 # Prefer an explicitly selected file to automatically selected ones.
2066 ac_site_file1=NONE
2067 ac_site_file2=NONE
2068 if test -n "$CONFIG_SITE"; then
2069 ac_site_file1=$CONFIG_SITE
2070 elif test "x$prefix" != xNONE; then
2071 ac_site_file1=$prefix/share/config.site
2072 ac_site_file2=$prefix/etc/config.site
2073 else
2074 ac_site_file1=$ac_default_prefix/share/config.site
2075 ac_site_file2=$ac_default_prefix/etc/config.site
2076 fi
2077 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2078 do
2079 test "x$ac_site_file" = xNONE && continue
2080 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2083 sed 's/^/| /' "$ac_site_file" >&5
2084 . "$ac_site_file"
2085 fi
2086 done
2088 if test -r "$cache_file"; then
2089 # Some versions of bash will fail to source /dev/null (special files
2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094 case $cache_file in
2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096 *) . "./$cache_file";;
2097 esac
2098 fi
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 >$cache_file
2103 fi
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110 eval ac_new_set=\$ac_env_${ac_var}_set
2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112 eval ac_new_val=\$ac_env_${ac_var}_value
2113 case $ac_old_set,$ac_new_set in
2114 set,)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,set)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,);;
2123 *)
2124 if test "x$ac_old_val" != "x$ac_new_val"; then
2125 # differences in whitespace do not lead to failure.
2126 ac_old_val_w=`echo x $ac_old_val`
2127 ac_new_val_w=`echo x $ac_new_val`
2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131 ac_cache_corrupted=:
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135 eval $ac_var=\$ac_old_val
2136 fi
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 fi;;
2142 esac
2143 # Pass precious variables to config.status.
2144 if test "$ac_new_set" = set; then
2145 case $ac_new_val in
2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 *) ac_arg=$ac_var=$ac_new_val ;;
2148 esac
2149 case " $ac_configure_args " in
2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 esac
2153 fi
2154 done
2155 if $ac_cache_corrupted; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161 fi
2162 ## -------------------- ##
2163 ## Main body of script. ##
2164 ## -------------------- ##
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178 am__api_version='1.11'
2180 ac_aux_dir=
2181 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2182 for ac_t in install-sh install.sh shtool; do
2183 if test -f "$ac_dir/$ac_t"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/$ac_t -c"
2186 break 2
2187 fi
2188 done
2189 done
2190 if test -z "$ac_aux_dir"; then
2191 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2192 fi
2194 # These three variables are undocumented and unsupported,
2195 # and are intended to be withdrawn in a future Autoconf release.
2196 # They can cause serious problems if a builder's source tree is in a directory
2197 # whose full name contains unusual characters.
2198 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2199 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2200 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2203 # Find a good install program. We prefer a C program (faster),
2204 # so one script is as good as another. But avoid the broken or
2205 # incompatible versions:
2206 # SysV /etc/install, /usr/sbin/install
2207 # SunOS /usr/etc/install
2208 # IRIX /sbin/install
2209 # AIX /bin/install
2210 # AmigaOS /C/install, which installs bootblocks on floppy discs
2211 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2212 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2213 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2214 # OS/2's system install, which has a completely different semantic
2215 # ./install, which can be erroneously created by make from ./install.sh.
2216 # Reject install programs that cannot install multiple files.
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2218 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2219 if test -z "$INSTALL"; then
2220 if test "${ac_cv_path_install+set}" = set; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 # Account for people who put trailing slashes in PATH elements.
2229 case $as_dir/ in #((
2230 ./ | .// | /[cC]/* | \
2231 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2232 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2233 /usr/ucb/* ) ;;
2234 *)
2235 # OSF1 and SCO ODT 3.0 have their own names for install.
2236 # Don't use installbsd from OSF since it installs stuff as root
2237 # by default.
2238 for ac_prog in ginstall scoinst install; do
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2241 if test $ac_prog = install &&
2242 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2243 # AIX install. It has an incompatible calling convention.
2244 :
2245 elif test $ac_prog = install &&
2246 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2247 # program-specific install script used by HP pwplus--don't use.
2248 :
2249 else
2250 rm -rf conftest.one conftest.two conftest.dir
2251 echo one > conftest.one
2252 echo two > conftest.two
2253 mkdir conftest.dir
2254 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2255 test -s conftest.one && test -s conftest.two &&
2256 test -s conftest.dir/conftest.one &&
2257 test -s conftest.dir/conftest.two
2258 then
2259 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2260 break 3
2261 fi
2262 fi
2263 fi
2264 done
2265 done
2266 ;;
2267 esac
2269 done
2270 IFS=$as_save_IFS
2272 rm -rf conftest.one conftest.two conftest.dir
2274 fi
2275 if test "${ac_cv_path_install+set}" = set; then
2276 INSTALL=$ac_cv_path_install
2277 else
2278 # As a last resort, use the slow shell script. Don't cache a
2279 # value for INSTALL within a source directory, because that will
2280 # break other packages using the cache if that directory is
2281 # removed, or if the value is a relative name.
2282 INSTALL=$ac_install_sh
2283 fi
2284 fi
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2286 $as_echo "$INSTALL" >&6; }
2288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2289 # It thinks the first close brace ends the variable substitution.
2290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2297 $as_echo_n "checking whether build environment is sane... " >&6; }
2298 # Just in case
2299 sleep 1
2300 echo timestamp > conftest.file
2301 # Reject unsafe characters in $srcdir or the absolute working directory
2302 # name. Accept space and tab only in the latter.
2303 am_lf='
2304 '
2305 case `pwd` in
2306 *[\\\"\#\$\&\'\`$am_lf]*)
2307 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2308 esac
2309 case $srcdir in
2310 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2311 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2312 esac
2314 # Do `set' in a subshell so we don't clobber the current shell's
2315 # arguments. Must try -L first in case configure is actually a
2316 # symlink; some systems play weird games with the mod time of symlinks
2317 # (eg FreeBSD returns the mod time of the symlink's containing
2318 # directory).
2319 if (
2320 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2321 if test "$*" = "X"; then
2322 # -L didn't work.
2323 set X `ls -t "$srcdir/configure" conftest.file`
2324 fi
2325 rm -f conftest.file
2326 if test "$*" != "X $srcdir/configure conftest.file" \
2327 && test "$*" != "X conftest.file $srcdir/configure"; then
2329 # If neither matched, then we have a broken ls. This can happen
2330 # if, for instance, CONFIG_SHELL is bash and it inherits a
2331 # broken ls alias from the environment. This has actually
2332 # happened. Such a system could not be considered "sane".
2333 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2334 alias in your environment" "$LINENO" 5
2335 fi
2337 test "$2" = conftest.file
2338 )
2339 then
2340 # Ok.
2341 :
2342 else
2343 as_fn_error "newly created file is older than distributed files!
2344 Check your system clock" "$LINENO" 5
2345 fi
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2347 $as_echo "yes" >&6; }
2348 test "$program_prefix" != NONE &&
2349 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2350 # Use a double $ so make ignores it.
2351 test "$program_suffix" != NONE &&
2352 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2353 # Double any \ or $.
2354 # By default was `s,x,x', remove it if useless.
2355 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2356 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2358 # expand $ac_aux_dir to an absolute path
2359 am_aux_dir=`cd $ac_aux_dir && pwd`
2361 if test x"${MISSING+set}" != xset; then
2362 case $am_aux_dir in
2363 *\ * | *\ *)
2364 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2365 *)
2366 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2367 esac
2368 fi
2369 # Use eval to expand $SHELL
2370 if eval "$MISSING --run true"; then
2371 am_missing_run="$MISSING --run "
2372 else
2373 am_missing_run=
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2375 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2376 fi
2378 if test x"${install_sh}" != xset; then
2379 case $am_aux_dir in
2380 *\ * | *\ *)
2381 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2382 *)
2383 install_sh="\${SHELL} $am_aux_dir/install-sh"
2384 esac
2385 fi
2387 # Installed binaries are usually stripped using `strip' when the user
2388 # run `make install-strip'. However `strip' might not be the right
2389 # tool to use in cross-compilation environments, therefore Automake
2390 # will honor the `STRIP' environment variable to overrule this program.
2391 if test "$cross_compiling" != no; then
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2394 set dummy ${ac_tool_prefix}strip; ac_word=$2
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if test "${ac_cv_prog_STRIP+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
2399 else
2400 if test -n "$STRIP"; then
2401 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2412 break 2
2413 fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2418 fi
2419 fi
2420 STRIP=$ac_cv_prog_STRIP
2421 if test -n "$STRIP"; then
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2423 $as_echo "$STRIP" >&6; }
2424 else
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2426 $as_echo "no" >&6; }
2427 fi
2430 fi
2431 if test -z "$ac_cv_prog_STRIP"; then
2432 ac_ct_STRIP=$STRIP
2433 # Extract the first word of "strip", so it can be a program name with args.
2434 set dummy strip; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
2439 else
2440 if test -n "$ac_ct_STRIP"; then
2441 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446 IFS=$as_save_IFS
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_STRIP="strip"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 break 2
2453 fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2458 fi
2459 fi
2460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2461 if test -n "$ac_ct_STRIP"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2463 $as_echo "$ac_ct_STRIP" >&6; }
2464 else
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2469 if test "x$ac_ct_STRIP" = x; then
2470 STRIP=":"
2471 else
2472 case $cross_compiling:$ac_tool_warned in
2473 yes:)
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2476 ac_tool_warned=yes ;;
2477 esac
2478 STRIP=$ac_ct_STRIP
2479 fi
2480 else
2481 STRIP="$ac_cv_prog_STRIP"
2482 fi
2484 fi
2485 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2488 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2489 if test -z "$MKDIR_P"; then
2490 if test "${ac_cv_path_mkdir+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2495 do
2496 IFS=$as_save_IFS
2497 test -z "$as_dir" && as_dir=.
2498 for ac_prog in mkdir gmkdir; do
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2501 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2502 'mkdir (GNU coreutils) '* | \
2503 'mkdir (coreutils) '* | \
2504 'mkdir (fileutils) '4.1*)
2505 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2506 break 3;;
2507 esac
2508 done
2509 done
2510 done
2511 IFS=$as_save_IFS
2513 fi
2515 test -d ./--version && rmdir ./--version
2516 if test "${ac_cv_path_mkdir+set}" = set; then
2517 MKDIR_P="$ac_cv_path_mkdir -p"
2518 else
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for MKDIR_P within a source directory, because that will
2521 # break other packages using the cache if that directory is
2522 # removed, or if the value is a relative name.
2523 MKDIR_P="$ac_install_sh -d"
2524 fi
2525 fi
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2527 $as_echo "$MKDIR_P" >&6; }
2529 mkdir_p="$MKDIR_P"
2530 case $mkdir_p in
2531 [\\/$]* | ?:[\\/]*) ;;
2532 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2533 esac
2535 for ac_prog in gawk mawk nawk awk
2536 do
2537 # Extract the first word of "$ac_prog", so it can be a program name with args.
2538 set dummy $ac_prog; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if test "${ac_cv_prog_AWK+set}" = set; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test -n "$AWK"; then
2545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550 IFS=$as_save_IFS
2551 test -z "$as_dir" && as_dir=.
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2554 ac_cv_prog_AWK="$ac_prog"
2555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556 break 2
2557 fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2562 fi
2563 fi
2564 AWK=$ac_cv_prog_AWK
2565 if test -n "$AWK"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2567 $as_echo "$AWK" >&6; }
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2574 test -n "$AWK" && break
2575 done
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2578 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2579 set x ${MAKE-make}
2580 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2581 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 cat >conftest.make <<\_ACEOF
2585 SHELL = /bin/sh
2586 all:
2587 @echo '@@@%%%=$(MAKE)=@@@%%%'
2588 _ACEOF
2589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2591 *@@@%%%=?*=@@@%%%*)
2592 eval ac_cv_prog_make_${ac_make}_set=yes;;
2593 *)
2594 eval ac_cv_prog_make_${ac_make}_set=no;;
2595 esac
2596 rm -f conftest.make
2597 fi
2598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 SET_MAKE=
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 SET_MAKE="MAKE=${MAKE-make}"
2606 fi
2608 rm -rf .tst 2>/dev/null
2609 mkdir .tst 2>/dev/null
2610 if test -d .tst; then
2611 am__leading_dot=.
2612 else
2613 am__leading_dot=_
2614 fi
2615 rmdir .tst 2>/dev/null
2617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2618 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2619 # is not polluted with repeated "-I."
2620 am__isrc=' -I$(srcdir)'
2621 # test to see if srcdir already configured
2622 if test -f $srcdir/config.status; then
2623 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2624 fi
2625 fi
2627 # test whether we have cygpath
2628 if test -z "$CYGPATH_W"; then
2629 if (cygpath --version) >/dev/null 2>/dev/null; then
2630 CYGPATH_W='cygpath -w'
2631 else
2632 CYGPATH_W=echo
2633 fi
2634 fi
2637 # Define the identity of the package.
2638 PACKAGE='glpk'
2639 VERSION='4.47'
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE "$PACKAGE"
2644 _ACEOF
2647 cat >>confdefs.h <<_ACEOF
2648 #define VERSION "$VERSION"
2649 _ACEOF
2651 # Some tools Automake needs.
2653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2667 # We need awk for the "check" target. The system "awk" is bad on
2668 # some platforms.
2669 # Always define AMTAR for backward compatibility.
2671 AMTAR=${AMTAR-"${am_missing_run}tar"}
2673 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2680 ac_config_headers="$ac_config_headers config.h"
2684 # Check whether --with-gmp was given.
2685 if test "${with_gmp+set}" = set; then :
2686 withval=$with_gmp; case $withval in
2687 yes | no) ;;
2688 *) as_fn_error "invalid value \`$withval' for --with-gmp" "$LINENO" 5;;
2689 esac
2690 else
2691 with_gmp=no
2692 fi
2695 # Check whether --enable-dl was given.
2696 if test "${enable_dl+set}" = set; then :
2697 enableval=$enable_dl; case $enableval in
2698 yes | ltdl | dlfcn | no) ;;
2699 *) as_fn_error "invalid value \`$enableval' for --enable-dl" "$LINENO" 5;;
2700 esac
2701 else
2702 enable_dl=no
2703 fi
2706 # Check whether --enable-odbc was given.
2707 if test "${enable_odbc+set}" = set; then :
2708 enableval=$enable_odbc; case $enableval in
2709 yes | unix | no) ;;
2710 *) as_fn_error "invalid value \`$enableval' for --enable-odbc" "$LINENO" 5;;
2711 esac
2712 else
2713 enable_odbc=no
2714 fi
2717 # Check whether --enable-mysql was given.
2718 if test "${enable_mysql+set}" = set; then :
2719 enableval=$enable_mysql; case $enableval in
2720 yes | no) ;;
2721 *) as_fn_error "invalid value \`$enableval' for --enable-mysql" "$LINENO" 5;;
2722 esac
2723 else
2724 enable_mysql=no
2725 fi
2732 ac_ext=c
2733 ac_cpp='$CPP $CPPFLAGS'
2734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2737 if test -n "$ac_tool_prefix"; then
2738 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2739 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2763 fi
2764 fi
2765 CC=$ac_cv_prog_CC
2766 if test -n "$CC"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2768 $as_echo "$CC" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2775 fi
2776 if test -z "$ac_cv_prog_CC"; then
2777 ac_ct_CC=$CC
2778 # Extract the first word of "gcc", so it can be a program name with args.
2779 set dummy gcc; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2783 $as_echo_n "(cached) " >&6
2784 else
2785 if test -n "$ac_ct_CC"; then
2786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_ac_ct_CC="gcc"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 break 2
2798 fi
2799 done
2800 done
2801 IFS=$as_save_IFS
2803 fi
2804 fi
2805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2806 if test -n "$ac_ct_CC"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2808 $as_echo "$ac_ct_CC" >&6; }
2809 else
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2812 fi
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2824 fi
2825 else
2826 CC="$ac_cv_prog_CC"
2827 fi
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy ${ac_tool_prefix}cc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2837 else
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844 IFS=$as_save_IFS
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_CC="${ac_tool_prefix}cc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 break 2
2851 fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2856 fi
2857 fi
2858 CC=$ac_cv_prog_CC
2859 if test -n "$CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2861 $as_echo "$CC" >&6; }
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2865 fi
2868 fi
2869 fi
2870 if test -z "$CC"; then
2871 # Extract the first word of "cc", so it can be a program name with args.
2872 set dummy cc; ac_word=$2
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874 $as_echo_n "checking for $ac_word... " >&6; }
2875 if test "${ac_cv_prog_CC+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880 else
2881 ac_prog_rejected=no
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885 IFS=$as_save_IFS
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2890 ac_prog_rejected=yes
2891 continue
2892 fi
2893 ac_cv_prog_CC="cc"
2894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2896 fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2901 if test $ac_prog_rejected = yes; then
2902 # We found a bogon in the path, so make sure we never use it.
2903 set dummy $ac_cv_prog_CC
2904 shift
2905 if test $# != 0; then
2906 # We chose a different compiler from the bogus one.
2907 # However, it has the same basename, so the bogon will be chosen
2908 # first if we set CC to just the basename; use the full file name.
2909 shift
2910 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2911 fi
2912 fi
2913 fi
2914 fi
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2925 fi
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 for ac_prog in cl.exe
2929 do
2930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if test "${ac_cv_prog_CC+set}" = set; then :
2935 $as_echo_n "(cached) " >&6
2936 else
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2950 fi
2951 done
2952 done
2953 IFS=$as_save_IFS
2955 fi
2956 fi
2957 CC=$ac_cv_prog_CC
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2961 else
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 fi
2967 test -n "$CC" && break
2968 done
2969 fi
2970 if test -z "$CC"; then
2971 ac_ct_CC=$CC
2972 for ac_prog in cl.exe
2973 do
2974 # Extract the first word of "$ac_prog", so it can be a program name with args.
2975 set dummy $ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="$ac_prog"
2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2994 fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2999 fi
3000 fi
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3004 $as_echo "$ac_ct_CC" >&6; }
3005 else
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3011 test -n "$ac_ct_CC" && break
3012 done
3014 if test "x$ac_ct_CC" = x; then
3015 CC=""
3016 else
3017 case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CC=$ac_ct_CC
3024 fi
3025 fi
3027 fi
3030 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error "no acceptable C compiler found in \$PATH
3033 See \`config.log' for more details." "$LINENO" 5; }
3035 # Provide some information about the compiler.
3036 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3037 set X $ac_compile
3038 ac_compiler=$2
3039 for ac_option in --version -v -V -qversion; do
3040 { { ac_try="$ac_compiler $ac_option >&5"
3041 case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044 esac
3045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3046 $as_echo "$ac_try_echo"; } >&5
3047 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3048 ac_status=$?
3049 if test -s conftest.err; then
3050 sed '10a\
3051 ... rest of stderr output deleted ...
3052 10q' conftest.err >conftest.er1
3053 cat conftest.er1 >&5
3054 fi
3055 rm -f conftest.er1 conftest.err
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 done
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3063 int
3064 main ()
3065 {
3067 ;
3068 return 0;
3069 }
3070 _ACEOF
3071 ac_clean_files_save=$ac_clean_files
3072 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3073 # Try to create an executable without -o first, disregard a.out.
3074 # It will help us diagnose broken compilers, and finding out an intuition
3075 # of exeext.
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3077 $as_echo_n "checking whether the C compiler works... " >&6; }
3078 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3080 # The possible output files:
3081 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3083 ac_rmfiles=
3084 for ac_file in $ac_files
3085 do
3086 case $ac_file in
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3089 esac
3090 done
3091 rm -f $ac_rmfiles
3093 if { { ac_try="$ac_link_default"
3094 case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097 esac
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link_default") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3105 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3106 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3107 # so that the user can short-circuit this test for compilers unknown to
3108 # Autoconf.
3109 for ac_file in $ac_files ''
3110 do
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3114 ;;
3115 [ab].out )
3116 # We found the default executable, but exeext='' is most
3117 # certainly right.
3118 break;;
3119 *.* )
3120 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3121 then :; else
3122 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 fi
3124 # We set ac_cv_exeext here because the later test for it is not
3125 # safe: cross compilers may not add the suffix if given an `-o'
3126 # argument, so we may need to know it at that point already.
3127 # Even if this section looks crufty: it has the advantage of
3128 # actually working.
3129 break;;
3130 * )
3131 break;;
3132 esac
3133 done
3134 test "$ac_cv_exeext" = no && ac_cv_exeext=
3136 else
3137 ac_file=''
3138 fi
3139 if test -z "$ac_file"; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 $as_echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.$ac_ext >&5
3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 { as_fn_set_status 77
3148 as_fn_error "C compiler cannot create executables
3149 See \`config.log' for more details." "$LINENO" 5; }; }
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3152 $as_echo "yes" >&6; }
3153 fi
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3155 $as_echo_n "checking for C compiler default output file name... " >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3157 $as_echo "$ac_file" >&6; }
3158 ac_exeext=$ac_cv_exeext
3160 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3161 ac_clean_files=$ac_clean_files_save
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3163 $as_echo_n "checking for suffix of executables... " >&6; }
3164 if { { ac_try="$ac_link"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_link") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; then :
3175 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3176 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3177 # work properly (i.e., refer to `conftest.exe'), while it won't with
3178 # `rm'.
3179 for ac_file in conftest.exe conftest conftest.*; do
3180 test -f "$ac_file" || continue
3181 case $ac_file in
3182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3183 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3184 break;;
3185 * ) break;;
3186 esac
3187 done
3188 else
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error "cannot compute suffix of executables: cannot compile and link
3192 See \`config.log' for more details." "$LINENO" 5; }
3193 fi
3194 rm -f conftest conftest$ac_cv_exeext
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3196 $as_echo "$ac_cv_exeext" >&6; }
3198 rm -f conftest.$ac_ext
3199 EXEEXT=$ac_cv_exeext
3200 ac_exeext=$EXEEXT
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <stdio.h>
3204 int
3205 main ()
3206 {
3207 FILE *f = fopen ("conftest.out", "w");
3208 return ferror (f) || fclose (f) != 0;
3210 ;
3211 return 0;
3212 }
3213 _ACEOF
3214 ac_clean_files="$ac_clean_files conftest.out"
3215 # Check that the compiler produces executables we can run. If not, either
3216 # the compiler is broken, or we cross compile.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3218 $as_echo_n "checking whether we are cross compiling... " >&6; }
3219 if test "$cross_compiling" != yes; then
3220 { { ac_try="$ac_link"
3221 case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 $as_echo "$ac_try_echo"; } >&5
3227 (eval "$ac_link") 2>&5
3228 ac_status=$?
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231 if { ac_try='./conftest$ac_cv_exeext'
3232 { { case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235 esac
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_try") 2>&5
3239 ac_status=$?
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; }; then
3242 cross_compiling=no
3243 else
3244 if test "$cross_compiling" = maybe; then
3245 cross_compiling=yes
3246 else
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error "cannot run C compiled programs.
3250 If you meant to cross compile, use \`--host'.
3251 See \`config.log' for more details." "$LINENO" 5; }
3252 fi
3253 fi
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3256 $as_echo "$cross_compiling" >&6; }
3258 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3261 $as_echo_n "checking for suffix of object files... " >&6; }
3262 if test "${ac_cv_objext+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3268 int
3269 main ()
3270 {
3272 ;
3273 return 0;
3274 }
3275 _ACEOF
3276 rm -f conftest.o conftest.obj
3277 if { { ac_try="$ac_compile"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_compile") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 for ac_file in conftest.o conftest.obj conftest.*; do
3289 test -f "$ac_file" || continue;
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3292 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3293 break;;
3294 esac
3295 done
3296 else
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error "cannot compute suffix of object files: cannot compile
3303 See \`config.log' for more details." "$LINENO" 5; }
3304 fi
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3308 $as_echo "$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3310 ac_objext=$OBJEXT
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3312 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3319 int
3320 main ()
3321 {
3322 #ifndef __GNUC__
3323 choke me
3324 #endif
3326 ;
3327 return 0;
3328 }
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_compiler_gnu=yes
3332 else
3333 ac_compiler_gnu=no
3334 fi
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3340 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3341 if test $ac_compiler_gnu = yes; then
3342 GCC=yes
3343 else
3344 GCC=
3345 fi
3346 ac_test_CFLAGS=${CFLAGS+set}
3347 ac_save_CFLAGS=$CFLAGS
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3349 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3350 if test "${ac_cv_prog_cc_g+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 ac_save_c_werror_flag=$ac_c_werror_flag
3354 ac_c_werror_flag=yes
3355 ac_cv_prog_cc_g=no
3356 CFLAGS="-g"
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3360 int
3361 main ()
3362 {
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369 ac_cv_prog_cc_g=yes
3370 else
3371 CFLAGS=""
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373 /* end confdefs.h. */
3375 int
3376 main ()
3377 {
3379 ;
3380 return 0;
3381 }
3382 _ACEOF
3383 if ac_fn_c_try_compile "$LINENO"; then :
3385 else
3386 ac_c_werror_flag=$ac_save_c_werror_flag
3387 CFLAGS="-g"
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3391 int
3392 main ()
3393 {
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 if ac_fn_c_try_compile "$LINENO"; then :
3400 ac_cv_prog_cc_g=yes
3401 fi
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 fi
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_c_werror_flag=$ac_save_c_werror_flag
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3410 $as_echo "$ac_cv_prog_cc_g" >&6; }
3411 if test "$ac_test_CFLAGS" = set; then
3412 CFLAGS=$ac_save_CFLAGS
3413 elif test $ac_cv_prog_cc_g = yes; then
3414 if test "$GCC" = yes; then
3415 CFLAGS="-g -O2"
3416 else
3417 CFLAGS="-g"
3418 fi
3419 else
3420 if test "$GCC" = yes; then
3421 CFLAGS="-O2"
3422 else
3423 CFLAGS=
3424 fi
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3427 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3428 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 ac_cv_prog_cc_c89=no
3432 ac_save_CC=$CC
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435 #include <stdarg.h>
3436 #include <stdio.h>
3437 #include <sys/types.h>
3438 #include <sys/stat.h>
3439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3440 struct buf { int x; };
3441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3442 static char *e (p, i)
3443 char **p;
3444 int i;
3445 {
3446 return p[i];
3447 }
3448 static char *f (char * (*g) (char **, int), char **p, ...)
3449 {
3450 char *s;
3451 va_list v;
3452 va_start (v,p);
3453 s = g (p, va_arg (v,int));
3454 va_end (v);
3455 return s;
3456 }
3458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3459 function prototypes and stuff, but not '\xHH' hex character constants.
3460 These don't provoke an error unfortunately, instead are silently treated
3461 as 'x'. The following induces an error, until -std is added to get
3462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3463 array size at least. It's necessary to write '\x00'==0 to get something
3464 that's true only with -std. */
3465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3468 inside strings and character constants. */
3469 #define FOO(x) 'x'
3470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3472 int test (int i, double x);
3473 struct s1 {int (*f) (int a);};
3474 struct s2 {int (*f) (double a);};
3475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3476 int argc;
3477 char **argv;
3478 int
3479 main ()
3480 {
3481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3488 do
3489 CC="$ac_save_CC $ac_arg"
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_c89=$ac_arg
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext
3494 test "x$ac_cv_prog_cc_c89" != "xno" && break
3495 done
3496 rm -f conftest.$ac_ext
3497 CC=$ac_save_CC
3499 fi
3500 # AC_CACHE_VAL
3501 case "x$ac_cv_prog_cc_c89" in
3502 x)
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3504 $as_echo "none needed" >&6; } ;;
3505 xno)
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3507 $as_echo "unsupported" >&6; } ;;
3508 *)
3509 CC="$CC $ac_cv_prog_cc_c89"
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3512 esac
3513 if test "x$ac_cv_prog_cc_c89" != xno; then :
3515 fi
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522 DEPDIR="${am__leading_dot}deps"
3524 ac_config_commands="$ac_config_commands depfiles"
3527 am_make=${MAKE-make}
3528 cat > confinc << 'END'
3529 am__doit:
3530 @echo this is the am__doit target
3531 .PHONY: am__doit
3532 END
3533 # If we don't find an include directive, just comment out the code.
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3535 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3536 am__include="#"
3537 am__quote=
3538 _am_result=none
3539 # First try GNU make style include.
3540 echo "include confinc" > confmf
3541 # Ignore all kinds of additional output from `make'.
3542 case `$am_make -s -f confmf 2> /dev/null` in #(
3543 *the\ am__doit\ target*)
3544 am__include=include
3545 am__quote=
3546 _am_result=GNU
3547 ;;
3548 esac
3549 # Now try BSD make style include.
3550 if test "$am__include" = "#"; then
3551 echo '.include "confinc"' > confmf
3552 case `$am_make -s -f confmf 2> /dev/null` in #(
3553 *the\ am__doit\ target*)
3554 am__include=.include
3555 am__quote="\""
3556 _am_result=BSD
3557 ;;
3558 esac
3559 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3563 $as_echo "$_am_result" >&6; }
3564 rm -f confinc confmf
3566 # Check whether --enable-dependency-tracking was given.
3567 if test "${enable_dependency_tracking+set}" = set; then :
3568 enableval=$enable_dependency_tracking;
3569 fi
3571 if test "x$enable_dependency_tracking" != xno; then
3572 am_depcomp="$ac_aux_dir/depcomp"
3573 AMDEPBACKSLASH='\'
3574 fi
3575 if test "x$enable_dependency_tracking" != xno; then
3576 AMDEP_TRUE=
3577 AMDEP_FALSE='#'
3578 else
3579 AMDEP_TRUE='#'
3580 AMDEP_FALSE=
3581 fi
3585 depcc="$CC" am_compiler_list=
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3588 $as_echo_n "checking dependency style of $depcc... " >&6; }
3589 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3593 # We make a subdir and do the tests there. Otherwise we can end up
3594 # making bogus files that we don't know about and never remove. For
3595 # instance it was reported that on HP-UX the gcc test will end up
3596 # making a dummy file named `D' -- because `-MD' means `put the output
3597 # in D'.
3598 mkdir conftest.dir
3599 # Copy depcomp to subdir because otherwise we won't find it if we're
3600 # using a relative directory.
3601 cp "$am_depcomp" conftest.dir
3602 cd conftest.dir
3603 # We will build objects and dependencies in a subdirectory because
3604 # it helps to detect inapplicable dependency modes. For instance
3605 # both Tru64's cc and ICC support -MD to output dependencies as a
3606 # side effect of compilation, but ICC will put the dependencies in
3607 # the current directory while Tru64 will put them in the object
3608 # directory.
3609 mkdir sub
3611 am_cv_CC_dependencies_compiler_type=none
3612 if test "$am_compiler_list" = ""; then
3613 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3614 fi
3615 am__universal=false
3616 case " $depcc " in #(
3617 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3618 esac
3620 for depmode in $am_compiler_list; do
3621 # Setup a source with many dependencies, because some compilers
3622 # like to wrap large dependency lists on column 80 (with \), and
3623 # we should not choose a depcomp mode which is confused by this.
3624 #
3625 # We need to recreate these files for each test, as the compiler may
3626 # overwrite some of them when testing with obscure command lines.
3627 # This happens at least with the AIX C compiler.
3628 : > sub/conftest.c
3629 for i in 1 2 3 4 5 6; do
3630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3631 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3632 # Solaris 8's {/usr,}/bin/sh.
3633 touch sub/conftst$i.h
3634 done
3635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3637 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3638 # mode. It turns out that the SunPro C++ compiler does not properly
3639 # handle `-M -o', and we need to detect this. Also, some Intel
3640 # versions had trouble with output in subdirs
3641 am__obj=sub/conftest.${OBJEXT-o}
3642 am__minus_obj="-o $am__obj"
3643 case $depmode in
3644 gcc)
3645 # This depmode causes a compiler race in universal mode.
3646 test "$am__universal" = false || continue
3647 ;;
3648 nosideeffect)
3649 # after this tag, mechanisms are not by side-effect, so they'll
3650 # only be used when explicitly requested
3651 if test "x$enable_dependency_tracking" = xyes; then
3652 continue
3653 else
3654 break
3655 fi
3656 ;;
3657 msvisualcpp | msvcmsys)
3658 # This compiler won't grok `-c -o', but also, the minuso test has
3659 # not run yet. These depmodes are late enough in the game, and
3660 # so weak that their functioning should not be impacted.
3661 am__obj=conftest.${OBJEXT-o}
3662 am__minus_obj=
3663 ;;
3664 none) break ;;
3665 esac
3666 if depmode=$depmode \
3667 source=sub/conftest.c object=$am__obj \
3668 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3669 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3670 >/dev/null 2>conftest.err &&
3671 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3672 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3674 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675 # icc doesn't choke on unknown options, it will just issue warnings
3676 # or remarks (even with -Werror). So we grep stderr for any message
3677 # that says an option was ignored or not supported.
3678 # When given -MP, icc 7.0 and 7.1 complain thusly:
3679 # icc: Command line warning: ignoring option '-M'; no argument required
3680 # The diagnosis changed in icc 8.0:
3681 # icc: Command line remark: option '-MP' not supported
3682 if (grep 'ignoring option' conftest.err ||
3683 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684 am_cv_CC_dependencies_compiler_type=$depmode
3685 break
3686 fi
3687 fi
3688 done
3690 cd ..
3691 rm -rf conftest.dir
3692 else
3693 am_cv_CC_dependencies_compiler_type=none
3694 fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3701 if
3702 test "x$enable_dependency_tracking" != xno \
3703 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3704 am__fastdepCC_TRUE=
3705 am__fastdepCC_FALSE='#'
3706 else
3707 am__fastdepCC_TRUE='#'
3708 am__fastdepCC_FALSE=
3709 fi
3713 case `pwd` in
3714 *\ * | *\ *)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3716 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3717 esac
3721 macro_version='2.2.7a'
3722 macro_revision='1.3140'
3736 ltmain="$ac_aux_dir/ltmain.sh"
3738 # Make sure we can run config.sub.
3739 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3740 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3743 $as_echo_n "checking build system type... " >&6; }
3744 if test "${ac_cv_build+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 ac_build_alias=$build_alias
3748 test "x$ac_build_alias" = x &&
3749 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3750 test "x$ac_build_alias" = x &&
3751 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3752 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3753 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3755 fi
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3757 $as_echo "$ac_cv_build" >&6; }
3758 case $ac_cv_build in
3759 *-*-*) ;;
3760 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3761 esac
3762 build=$ac_cv_build
3763 ac_save_IFS=$IFS; IFS='-'
3764 set x $ac_cv_build
3765 shift
3766 build_cpu=$1
3767 build_vendor=$2
3768 shift; shift
3769 # Remember, the first character of IFS is used to create $*,
3770 # except with old shells:
3771 build_os=$*
3772 IFS=$ac_save_IFS
3773 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3777 $as_echo_n "checking host system type... " >&6; }
3778 if test "${ac_cv_host+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test "x$host_alias" = x; then
3782 ac_cv_host=$ac_cv_build
3783 else
3784 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3785 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3786 fi
3788 fi
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3790 $as_echo "$ac_cv_host" >&6; }
3791 case $ac_cv_host in
3792 *-*-*) ;;
3793 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3794 esac
3795 host=$ac_cv_host
3796 ac_save_IFS=$IFS; IFS='-'
3797 set x $ac_cv_host
3798 shift
3799 host_cpu=$1
3800 host_vendor=$2
3801 shift; shift
3802 # Remember, the first character of IFS is used to create $*,
3803 # except with old shells:
3804 host_os=$*
3805 IFS=$ac_save_IFS
3806 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3809 # Backslashify metacharacters that are still active within
3810 # double-quoted strings.
3811 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3813 # Same as above, but do not quote variable references.
3814 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3816 # Sed substitution to delay expansion of an escaped shell variable in a
3817 # double_quote_subst'ed string.
3818 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3820 # Sed substitution to delay expansion of an escaped single quote.
3821 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3823 # Sed substitution to avoid accidental globbing in evaled expressions
3824 no_glob_subst='s/\*/\\\*/g'
3826 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3827 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3828 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3831 $as_echo_n "checking how to print strings... " >&6; }
3832 # Test print first, because it will be a builtin if present.
3833 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3834 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3835 ECHO='print -r --'
3836 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3837 ECHO='printf %s\n'
3838 else
3839 # Use this function as a fallback that always works.
3840 func_fallback_echo ()
3841 {
3842 eval 'cat <<_LTECHO_EOF
3843 $1
3844 _LTECHO_EOF'
3845 }
3846 ECHO='func_fallback_echo'
3847 fi
3849 # func_echo_all arg...
3850 # Invoke $ECHO with all args, space-separated.
3851 func_echo_all ()
3852 {
3853 $ECHO ""
3854 }
3856 case "$ECHO" in
3857 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3858 $as_echo "printf" >&6; } ;;
3859 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3860 $as_echo "print -r" >&6; } ;;
3861 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3862 $as_echo "cat" >&6; } ;;
3863 esac
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3879 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3880 if test "${ac_cv_path_SED+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3884 for ac_i in 1 2 3 4 5 6 7; do
3885 ac_script="$ac_script$as_nl$ac_script"
3886 done
3887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3888 { ac_script=; unset ac_script;}
3889 if test -z "$SED"; then
3890 ac_path_SED_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in sed gsed; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3901 # Check for GNU ac_path_SED and select it if it is found.
3902 # Check for GNU $ac_path_SED
3903 case `"$ac_path_SED" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3906 *)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo '' >> "conftest.nl"
3915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_SED_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_SED="$ac_path_SED"
3921 ac_path_SED_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3929 $ac_path_SED_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_SED"; then
3935 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3936 fi
3937 else
3938 ac_cv_path_SED=$SED
3939 fi
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3943 $as_echo "$ac_cv_path_SED" >&6; }
3944 SED="$ac_cv_path_SED"
3945 rm -f conftest.sed
3947 test -z "$SED" && SED=sed
3948 Xsed="$SED -e 1s/^X//"
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3961 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -z "$GREP"; then
3966 ac_path_GREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in grep ggrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3977 # Check for GNU ac_path_GREP and select it if it is found.
3978 # Check for GNU $ac_path_GREP
3979 case `"$ac_path_GREP" --version 2>&1` in
3980 *GNU*)
3981 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3982 *)
3983 ac_count=0
3984 $as_echo_n 0123456789 >"conftest.in"
3985 while :
3986 do
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo 'GREP' >> "conftest.nl"
3991 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 as_fn_arith $ac_count + 1 && ac_count=$as_val
3994 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_GREP="$ac_path_GREP"
3997 ac_path_GREP_max=$ac_count
3998 fi
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4001 done
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 esac
4005 $ac_path_GREP_found && break 3
4006 done
4007 done
4008 done
4009 IFS=$as_save_IFS
4010 if test -z "$ac_cv_path_GREP"; then
4011 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4012 fi
4013 else
4014 ac_cv_path_GREP=$GREP
4015 fi
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4019 $as_echo "$ac_cv_path_GREP" >&6; }
4020 GREP="$ac_cv_path_GREP"
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4024 $as_echo_n "checking for egrep... " >&6; }
4025 if test "${ac_cv_path_EGREP+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4029 then ac_cv_path_EGREP="$GREP -E"
4030 else
4031 if test -z "$EGREP"; then
4032 ac_path_EGREP_found=false
4033 # Loop through the user's path and test for each of PROGNAME-LIST
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4036 do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_prog in egrep; do
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4042 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4043 # Check for GNU ac_path_EGREP and select it if it is found.
4044 # Check for GNU $ac_path_EGREP
4045 case `"$ac_path_EGREP" --version 2>&1` in
4046 *GNU*)
4047 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4048 *)
4049 ac_count=0
4050 $as_echo_n 0123456789 >"conftest.in"
4051 while :
4052 do
4053 cat "conftest.in" "conftest.in" >"conftest.tmp"
4054 mv "conftest.tmp" "conftest.in"
4055 cp "conftest.in" "conftest.nl"
4056 $as_echo 'EGREP' >> "conftest.nl"
4057 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4059 as_fn_arith $ac_count + 1 && ac_count=$as_val
4060 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4061 # Best one so far, save it but keep looking for a better one
4062 ac_cv_path_EGREP="$ac_path_EGREP"
4063 ac_path_EGREP_max=$ac_count
4064 fi
4065 # 10*(2^10) chars as input seems more than enough
4066 test $ac_count -gt 10 && break
4067 done
4068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4069 esac
4071 $ac_path_EGREP_found && break 3
4072 done
4073 done
4074 done
4075 IFS=$as_save_IFS
4076 if test -z "$ac_cv_path_EGREP"; then
4077 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4078 fi
4079 else
4080 ac_cv_path_EGREP=$EGREP
4081 fi
4083 fi
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4086 $as_echo "$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4091 $as_echo_n "checking for fgrep... " >&6; }
4092 if test "${ac_cv_path_FGREP+set}" = set; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4096 then ac_cv_path_FGREP="$GREP -F"
4097 else
4098 if test -z "$FGREP"; then
4099 ac_path_FGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in fgrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4110 # Check for GNU ac_path_FGREP and select it if it is found.
4111 # Check for GNU $ac_path_FGREP
4112 case `"$ac_path_FGREP" --version 2>&1` in
4113 *GNU*)
4114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4115 *)
4116 ac_count=0
4117 $as_echo_n 0123456789 >"conftest.in"
4118 while :
4119 do
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'FGREP' >> "conftest.nl"
4124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_FGREP="$ac_path_FGREP"
4130 ac_path_FGREP_max=$ac_count
4131 fi
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4134 done
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136 esac
4138 $ac_path_FGREP_found && break 3
4139 done
4140 done
4141 done
4142 IFS=$as_save_IFS
4143 if test -z "$ac_cv_path_FGREP"; then
4144 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 fi
4146 else
4147 ac_cv_path_FGREP=$FGREP
4148 fi
4150 fi
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4153 $as_echo "$ac_cv_path_FGREP" >&6; }
4154 FGREP="$ac_cv_path_FGREP"
4157 test -z "$GREP" && GREP=grep
4177 # Check whether --with-gnu-ld was given.
4178 if test "${with_gnu_ld+set}" = set; then :
4179 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4180 else
4181 with_gnu_ld=no
4182 fi
4184 ac_prog=ld
4185 if test "$GCC" = yes; then
4186 # Check if gcc -print-prog-name=ld gives a path.
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4188 $as_echo_n "checking for ld used by $CC... " >&6; }
4189 case $host in
4190 *-*-mingw*)
4191 # gcc leaves a trailing carriage return which upsets mingw
4192 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4193 *)
4194 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4195 esac
4196 case $ac_prog in
4197 # Accept absolute paths.
4198 [\\/]* | ?:[\\/]*)
4199 re_direlt='/[^/][^/]*/\.\./'
4200 # Canonicalize the pathname of ld
4201 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4202 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4203 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4204 done
4205 test -z "$LD" && LD="$ac_prog"
4206 ;;
4207 "")
4208 # If it fails, then pretend we aren't using GCC.
4209 ac_prog=ld
4210 ;;
4211 *)
4212 # If it is relative, then search for the first ld in PATH.
4213 with_gnu_ld=unknown
4214 ;;
4215 esac
4216 elif test "$with_gnu_ld" = yes; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4218 $as_echo_n "checking for GNU ld... " >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4221 $as_echo_n "checking for non-GNU ld... " >&6; }
4222 fi
4223 if test "${lt_cv_path_LD+set}" = set; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -z "$LD"; then
4227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4228 for ac_dir in $PATH; do
4229 IFS="$lt_save_ifs"
4230 test -z "$ac_dir" && ac_dir=.
4231 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4232 lt_cv_path_LD="$ac_dir/$ac_prog"
4233 # Check to see if the program is GNU ld. I'd rather use --version,
4234 # but apparently some variants of GNU ld only accept -v.
4235 # Break only if it was the GNU/non-GNU ld that we prefer.
4236 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4237 *GNU* | *'with BFD'*)
4238 test "$with_gnu_ld" != no && break
4239 ;;
4240 *)
4241 test "$with_gnu_ld" != yes && break
4242 ;;
4243 esac
4244 fi
4245 done
4246 IFS="$lt_save_ifs"
4247 else
4248 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4249 fi
4250 fi
4252 LD="$lt_cv_path_LD"
4253 if test -n "$LD"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4255 $as_echo "$LD" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4263 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4267 case `$LD -v 2>&1 </dev/null` in
4268 *GNU* | *'with BFD'*)
4269 lt_cv_prog_gnu_ld=yes
4270 ;;
4271 *)
4272 lt_cv_prog_gnu_ld=no
4273 ;;
4274 esac
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4277 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4278 with_gnu_ld=$lt_cv_prog_gnu_ld
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4289 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4290 if test "${lt_cv_path_NM+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -n "$NM"; then
4294 # Let the user override the test.
4295 lt_cv_path_NM="$NM"
4296 else
4297 lt_nm_to_check="${ac_tool_prefix}nm"
4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299 lt_nm_to_check="$lt_nm_to_check nm"
4300 fi
4301 for lt_tmp_nm in $lt_nm_to_check; do
4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304 IFS="$lt_save_ifs"
4305 test -z "$ac_dir" && ac_dir=.
4306 tmp_nm="$ac_dir/$lt_tmp_nm"
4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308 # Check to see if the nm accepts a BSD-compat flag.
4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310 # nm: unknown option "B" ignored
4311 # Tru64's nm complains that /dev/null is an invalid object file
4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313 */dev/null* | *'Invalid file or object type'*)
4314 lt_cv_path_NM="$tmp_nm -B"
4315 break
4316 ;;
4317 *)
4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319 */dev/null*)
4320 lt_cv_path_NM="$tmp_nm -p"
4321 break
4322 ;;
4323 *)
4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325 continue # so that we can try to find one that supports BSD flags
4326 ;;
4327 esac
4328 ;;
4329 esac
4330 fi
4331 done
4332 IFS="$lt_save_ifs"
4333 done
4334 : ${lt_cv_path_NM=no}
4335 fi
4336 fi
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4338 $as_echo "$lt_cv_path_NM" >&6; }
4339 if test "$lt_cv_path_NM" != "no"; then
4340 NM="$lt_cv_path_NM"
4341 else
4342 # Didn't find any BSD compatible name lister, look for dumpbin.
4343 if test -n "$DUMPBIN"; then :
4344 # Let the user override the test.
4345 else
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog in dumpbin "link -dump"
4348 do
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$DUMPBIN"; then
4357 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4374 fi
4375 fi
4376 DUMPBIN=$ac_cv_prog_DUMPBIN
4377 if test -n "$DUMPBIN"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4379 $as_echo "$DUMPBIN" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4386 test -n "$DUMPBIN" && break
4387 done
4388 fi
4389 if test -z "$DUMPBIN"; then
4390 ac_ct_DUMPBIN=$DUMPBIN
4391 for ac_prog in dumpbin "link -dump"
4392 do
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy $ac_prog; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$ac_ct_DUMPBIN"; then
4401 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4418 fi
4419 fi
4420 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4421 if test -n "$ac_ct_DUMPBIN"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4423 $as_echo "$ac_ct_DUMPBIN" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4430 test -n "$ac_ct_DUMPBIN" && break
4431 done
4433 if test "x$ac_ct_DUMPBIN" = x; then
4434 DUMPBIN=":"
4435 else
4436 case $cross_compiling:$ac_tool_warned in
4437 yes:)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned=yes ;;
4441 esac
4442 DUMPBIN=$ac_ct_DUMPBIN
4443 fi
4444 fi
4446 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4447 *COFF*)
4448 DUMPBIN="$DUMPBIN -symbols"
4449 ;;
4450 *)
4451 DUMPBIN=:
4452 ;;
4453 esac
4454 fi
4456 if test "$DUMPBIN" != ":"; then
4457 NM="$DUMPBIN"
4458 fi
4459 fi
4460 test -z "$NM" && NM=nm
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4468 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4469 if test "${lt_cv_nm_interface+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 lt_cv_nm_interface="BSD nm"
4473 echo "int some_variable = 0;" > conftest.$ac_ext
4474 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4475 (eval "$ac_compile" 2>conftest.err)
4476 cat conftest.err >&5
4477 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4478 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4479 cat conftest.err >&5
4480 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4481 cat conftest.out >&5
4482 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4483 lt_cv_nm_interface="MS dumpbin"
4484 fi
4485 rm -f conftest*
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4488 $as_echo "$lt_cv_nm_interface" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4491 $as_echo_n "checking whether ln -s works... " >&6; }
4492 LN_S=$as_ln_s
4493 if test "$LN_S" = "ln -s"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4495 $as_echo "yes" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4498 $as_echo "no, using $LN_S" >&6; }
4499 fi
4501 # find the maximum length of command line arguments
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4503 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4504 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4505 $as_echo_n "(cached) " >&6
4506 else
4507 i=0
4508 teststring="ABCD"
4510 case $build_os in
4511 msdosdjgpp*)
4512 # On DJGPP, this test can blow up pretty badly due to problems in libc
4513 # (any single argument exceeding 2000 bytes causes a buffer overrun
4514 # during glob expansion). Even if it were fixed, the result of this
4515 # check would be larger than it should be.
4516 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4517 ;;
4519 gnu*)
4520 # Under GNU Hurd, this test is not required because there is
4521 # no limit to the length of command line arguments.
4522 # Libtool will interpret -1 as no limit whatsoever
4523 lt_cv_sys_max_cmd_len=-1;
4524 ;;
4526 cygwin* | mingw* | cegcc*)
4527 # On Win9x/ME, this test blows up -- it succeeds, but takes
4528 # about 5 minutes as the teststring grows exponentially.
4529 # Worse, since 9x/ME are not pre-emptively multitasking,
4530 # you end up with a "frozen" computer, even though with patience
4531 # the test eventually succeeds (with a max line length of 256k).
4532 # Instead, let's just punt: use the minimum linelength reported by
4533 # all of the supported platforms: 8192 (on NT/2K/XP).
4534 lt_cv_sys_max_cmd_len=8192;
4535 ;;
4537 mint*)
4538 # On MiNT this can take a long time and run out of memory.
4539 lt_cv_sys_max_cmd_len=8192;
4540 ;;
4542 amigaos*)
4543 # On AmigaOS with pdksh, this test takes hours, literally.
4544 # So we just punt and use a minimum line length of 8192.
4545 lt_cv_sys_max_cmd_len=8192;
4546 ;;
4548 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4549 # This has been around since 386BSD, at least. Likely further.
4550 if test -x /sbin/sysctl; then
4551 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4552 elif test -x /usr/sbin/sysctl; then
4553 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4554 else
4555 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4556 fi
4557 # And add a safety zone
4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4559 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4560 ;;
4562 interix*)
4563 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4564 lt_cv_sys_max_cmd_len=196608
4565 ;;
4567 osf*)
4568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4570 # nice to cause kernel panics so lets avoid the loop below.
4571 # First set a reasonable default.
4572 lt_cv_sys_max_cmd_len=16384
4573 #
4574 if test -x /sbin/sysconfig; then
4575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4577 esac
4578 fi
4579 ;;
4580 sco3.2v5*)
4581 lt_cv_sys_max_cmd_len=102400
4582 ;;
4583 sysv5* | sco5v6* | sysv4.2uw2*)
4584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4585 if test -n "$kargmax"; then
4586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4587 else
4588 lt_cv_sys_max_cmd_len=32768
4589 fi
4590 ;;
4591 *)
4592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4593 if test -n "$lt_cv_sys_max_cmd_len"; then
4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4596 else
4597 # Make teststring a little bigger before we do anything with it.
4598 # a 1K string should be a reasonable start.
4599 for i in 1 2 3 4 5 6 7 8 ; do
4600 teststring=$teststring$teststring
4601 done
4602 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4603 # If test is not a shell built-in, we'll probably end up computing a
4604 # maximum length that is only half of the actual maximum length, but
4605 # we can't tell.
4606 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4607 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4608 test $i != 17 # 1/2 MB should be enough
4609 do
4610 i=`expr $i + 1`
4611 teststring=$teststring$teststring
4612 done
4613 # Only check the string length outside the loop.
4614 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4615 teststring=
4616 # Add a significant safety factor because C++ compilers can tack on
4617 # massive amounts of additional arguments before passing them to the
4618 # linker. It appears as though 1/2 is a usable value.
4619 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4620 fi
4621 ;;
4622 esac
4624 fi
4626 if test -n $lt_cv_sys_max_cmd_len ; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4628 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4631 $as_echo "none" >&6; }
4632 fi
4633 max_cmd_len=$lt_cv_sys_max_cmd_len
4640 : ${CP="cp -f"}
4641 : ${MV="mv -f"}
4642 : ${RM="rm -f"}
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4645 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4646 # Try some XSI features
4647 xsi_shell=no
4648 ( _lt_dummy="a/b/c"
4649 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4650 = c,a/b,, \
4651 && eval 'test $(( 1 + 1 )) -eq 2 \
4652 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4653 && xsi_shell=yes
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4655 $as_echo "$xsi_shell" >&6; }
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4659 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4660 lt_shell_append=no
4661 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4662 >/dev/null 2>&1 \
4663 && lt_shell_append=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4665 $as_echo "$lt_shell_append" >&6; }
4668 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4669 lt_unset=unset
4670 else
4671 lt_unset=false
4672 fi
4678 # test EBCDIC or ASCII
4679 case `echo X|tr X '\101'` in
4680 A) # ASCII based system
4681 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4682 lt_SP2NL='tr \040 \012'
4683 lt_NL2SP='tr \015\012 \040\040'
4684 ;;
4685 *) # EBCDIC based system
4686 lt_SP2NL='tr \100 \n'
4687 lt_NL2SP='tr \r\n \100\100'
4688 ;;
4689 esac
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build paths to $host format" >&5
4700 $as_echo_n "checking how to convert $build paths to $host format... " >&6; }
4701 if test "${lt_cv_to_host_path_cmd+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 case $host in
4705 *mingw* )
4706 case $build in
4707 *mingw* ) # actually msys
4708 lt_cv_to_host_path_cmd=func_msys_to_mingw_path_convert
4709 ;;
4710 *cygwin* )
4711 lt_cv_to_host_path_cmd=func_cygwin_to_mingw_path_convert
4712 ;;
4713 * ) # otherwise, assume *nix
4714 lt_cv_to_host_path_cmd=func_nix_to_mingw_path_convert
4715 ;;
4716 esac
4717 ;;
4718 *cygwin* )
4719 case $build in
4720 *mingw* ) # actually msys
4721 lt_cv_to_host_path_cmd=func_msys_to_cygwin_path_convert
4722 ;;
4723 *cygwin* )
4724 lt_cv_to_host_path_cmd=func_noop_path_convert
4725 ;;
4726 * ) # otherwise, assume *nix
4727 lt_cv_to_host_path_cmd=func_nix_to_cygwin_path_convert
4728 ;;
4729 esac
4730 ;;
4731 * ) # unhandled hosts (and "normal" native builds)
4732 lt_cv_to_host_path_cmd=func_noop_path_convert
4733 ;;
4734 esac
4736 fi
4738 to_host_path_cmd=$lt_cv_to_host_path_cmd
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_path_cmd" >&5
4740 $as_echo "$lt_cv_to_host_path_cmd" >&6; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4747 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4748 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 lt_cv_ld_reload_flag='-r'
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4754 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4755 reload_flag=$lt_cv_ld_reload_flag
4756 case $reload_flag in
4757 "" | " "*) ;;
4758 *) reload_flag=" $reload_flag" ;;
4759 esac
4760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761 case $host_os in
4762 darwin*)
4763 if test "$GCC" = yes; then
4764 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4765 else
4766 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4767 fi
4768 ;;
4769 esac
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
4786 else
4787 if test -n "$OBJDUMP"; then
4788 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801 done
4802 done
4803 IFS=$as_save_IFS
4805 fi
4806 fi
4807 OBJDUMP=$ac_cv_prog_OBJDUMP
4808 if test -n "$OBJDUMP"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4810 $as_echo "$OBJDUMP" >&6; }
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4817 fi
4818 if test -z "$ac_cv_prog_OBJDUMP"; then
4819 ac_ct_OBJDUMP=$OBJDUMP
4820 # Extract the first word of "objdump", so it can be a program name with args.
4821 set dummy objdump; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$ac_ct_OBJDUMP"; then
4828 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4845 fi
4846 fi
4847 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4848 if test -n "$ac_ct_OBJDUMP"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4850 $as_echo "$ac_ct_OBJDUMP" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4856 if test "x$ac_ct_OBJDUMP" = x; then
4857 OBJDUMP="false"
4858 else
4859 case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4864 esac
4865 OBJDUMP=$ac_ct_OBJDUMP
4866 fi
4867 else
4868 OBJDUMP="$ac_cv_prog_OBJDUMP"
4869 fi
4871 test -z "$OBJDUMP" && OBJDUMP=objdump
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4882 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4883 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4885 else
4886 lt_cv_file_magic_cmd='$MAGIC_CMD'
4887 lt_cv_file_magic_test_file=
4888 lt_cv_deplibs_check_method='unknown'
4889 # Need to set the preceding variable on all platforms that support
4890 # interlibrary dependencies.
4891 # 'none' -- dependencies not supported.
4892 # `unknown' -- same as none, but documents that we really don't know.
4893 # 'pass_all' -- all dependencies passed with no checks.
4894 # 'test_compile' -- check by making test program.
4895 # 'file_magic [[regex]]' -- check by looking for files in library path
4896 # which responds to the $file_magic_cmd with a given extended regex.
4897 # If you have `file' or equivalent on your system and you're not sure
4898 # whether `pass_all' will *always* work, you probably want this one.
4900 case $host_os in
4901 aix[4-9]*)
4902 lt_cv_deplibs_check_method=pass_all
4903 ;;
4905 beos*)
4906 lt_cv_deplibs_check_method=pass_all
4907 ;;
4909 bsdi[45]*)
4910 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4911 lt_cv_file_magic_cmd='/usr/bin/file -L'
4912 lt_cv_file_magic_test_file=/shlib/libc.so
4913 ;;
4915 cygwin*)
4916 # func_win32_libid is a shell function defined in ltmain.sh
4917 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4918 lt_cv_file_magic_cmd='func_win32_libid'
4919 ;;
4921 mingw* | pw32*)
4922 # Base MSYS/MinGW do not provide the 'file' command needed by
4923 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4924 # unless we find 'file', for example because we are cross-compiling.
4925 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4926 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4928 lt_cv_file_magic_cmd='func_win32_libid'
4929 else
4930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4931 lt_cv_file_magic_cmd='$OBJDUMP -f'
4932 fi
4933 ;;
4935 cegcc*)
4936 # use the weaker test based on 'objdump'. See mingw*.
4937 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4938 lt_cv_file_magic_cmd='$OBJDUMP -f'
4939 ;;
4941 darwin* | rhapsody*)
4942 lt_cv_deplibs_check_method=pass_all
4943 ;;
4945 freebsd* | dragonfly*)
4946 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4947 case $host_cpu in
4948 i*86 )
4949 # Not sure whether the presence of OpenBSD here was a mistake.
4950 # Let's accept both of them until this is cleared up.
4951 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4952 lt_cv_file_magic_cmd=/usr/bin/file
4953 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4954 ;;
4955 esac
4956 else
4957 lt_cv_deplibs_check_method=pass_all
4958 fi
4959 ;;
4961 gnu*)
4962 lt_cv_deplibs_check_method=pass_all
4963 ;;
4965 haiku*)
4966 lt_cv_deplibs_check_method=pass_all
4967 ;;
4969 hpux10.20* | hpux11*)
4970 lt_cv_file_magic_cmd=/usr/bin/file
4971 case $host_cpu in
4972 ia64*)
4973 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4974 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4975 ;;
4976 hppa*64*)
4977 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]'
4978 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4979 ;;
4980 *)
4981 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4982 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4983 ;;
4984 esac
4985 ;;
4987 interix[3-9]*)
4988 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4989 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4990 ;;
4992 irix5* | irix6* | nonstopux*)
4993 case $LD in
4994 *-32|*"-32 ") libmagic=32-bit;;
4995 *-n32|*"-n32 ") libmagic=N32;;
4996 *-64|*"-64 ") libmagic=64-bit;;
4997 *) libmagic=never-match;;
4998 esac
4999 lt_cv_deplibs_check_method=pass_all
5000 ;;
5002 # This must be Linux ELF.
5003 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5004 lt_cv_deplibs_check_method=pass_all
5005 ;;
5007 netbsd*)
5008 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5010 else
5011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5012 fi
5013 ;;
5015 newos6*)
5016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5017 lt_cv_file_magic_cmd=/usr/bin/file
5018 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5019 ;;
5021 *nto* | *qnx*)
5022 lt_cv_deplibs_check_method=pass_all
5023 ;;
5025 openbsd*)
5026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5028 else
5029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5030 fi
5031 ;;
5033 osf3* | osf4* | osf5*)
5034 lt_cv_deplibs_check_method=pass_all
5035 ;;
5037 rdos*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5041 solaris*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5049 sysv4 | sysv4.3*)
5050 case $host_vendor in
5051 motorola)
5052 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]'
5053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5054 ;;
5055 ncr)
5056 lt_cv_deplibs_check_method=pass_all
5057 ;;
5058 sequent)
5059 lt_cv_file_magic_cmd='/bin/file'
5060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5061 ;;
5062 sni)
5063 lt_cv_file_magic_cmd='/bin/file'
5064 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5065 lt_cv_file_magic_test_file=/lib/libc.so
5066 ;;
5067 siemens)
5068 lt_cv_deplibs_check_method=pass_all
5069 ;;
5070 pc)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073 esac
5074 ;;
5076 tpf*)
5077 lt_cv_deplibs_check_method=pass_all
5078 ;;
5079 esac
5081 fi
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5083 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5084 file_magic_cmd=$lt_cv_file_magic_cmd
5085 deplibs_check_method=$lt_cv_deplibs_check_method
5086 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5099 if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$DLLTOOL"; then
5108 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5125 fi
5126 fi
5127 DLLTOOL=$ac_cv_prog_DLLTOOL
5128 if test -n "$DLLTOOL"; then
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5130 $as_echo "$DLLTOOL" >&6; }
5131 else
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5137 fi
5138 if test -z "$ac_cv_prog_DLLTOOL"; then
5139 ac_ct_DLLTOOL=$DLLTOOL
5140 # Extract the first word of "dlltool", so it can be a program name with args.
5141 set dummy dlltool; ac_word=$2
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 if test -n "$ac_ct_DLLTOOL"; then
5148 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5165 fi
5166 fi
5167 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5168 if test -n "$ac_ct_DLLTOOL"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5170 $as_echo "$ac_ct_DLLTOOL" >&6; }
5171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5176 if test "x$ac_ct_DLLTOOL" = x; then
5177 DLLTOOL="false"
5178 else
5179 case $cross_compiling:$ac_tool_warned in
5180 yes:)
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5183 ac_tool_warned=yes ;;
5184 esac
5185 DLLTOOL=$ac_ct_DLLTOOL
5186 fi
5187 else
5188 DLLTOOL="$ac_cv_prog_DLLTOOL"
5189 fi
5191 test -z "$DLLTOOL" && DLLTOOL=dlltool
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5203 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5204 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 lt_cv_sharedlib_from_linklib_cmd='unknown'
5209 case $host_os in
5210 cygwin* | mingw* | pw32* | cegcc*)
5211 # two different shell functions defined in ltmain.sh
5212 # decide which to use based on capabilities of $DLLTOOL
5213 case `$DLLTOOL --help 2>&1` in
5214 *--identify-strict*)
5215 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5216 ;;
5217 *)
5218 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5219 ;;
5220 esac
5221 ;;
5222 *)
5223 # fallback: assume linklib IS sharedlib
5224 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5225 ;;
5226 esac
5228 fi
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5230 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5231 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5232 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}ar; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_AR+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$AR"; then
5249 ac_cv_prog_AR="$AR" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_AR="${ac_tool_prefix}ar"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5266 fi
5267 fi
5268 AR=$ac_cv_prog_AR
5269 if test -n "$AR"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5271 $as_echo "$AR" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5275 fi
5278 fi
5279 if test -z "$ac_cv_prog_AR"; then
5280 ac_ct_AR=$AR
5281 # Extract the first word of "ar", so it can be a program name with args.
5282 set dummy ar; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$ac_ct_AR"; then
5289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_ac_ct_AR="ar"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5301 fi
5302 done
5303 done
5304 IFS=$as_save_IFS
5306 fi
5307 fi
5308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5309 if test -n "$ac_ct_AR"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5311 $as_echo "$ac_ct_AR" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5315 fi
5317 if test "x$ac_ct_AR" = x; then
5318 AR="false"
5319 else
5320 case $cross_compiling:$ac_tool_warned in
5321 yes:)
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5324 ac_tool_warned=yes ;;
5325 esac
5326 AR=$ac_ct_AR
5327 fi
5328 else
5329 AR="$ac_cv_prog_AR"
5330 fi
5332 test -z "$AR" && AR=ar
5333 test -z "$AR_FLAGS" && AR_FLAGS=cru
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}strip; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if test "${ac_cv_prog_STRIP+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 if test -n "$STRIP"; then
5354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5355 else
5356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
5361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 break 2
5366 fi
5367 done
5368 done
5369 IFS=$as_save_IFS
5371 fi
5372 fi
5373 STRIP=$ac_cv_prog_STRIP
5374 if test -n "$STRIP"; then
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5376 $as_echo "$STRIP" >&6; }
5377 else
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5383 fi
5384 if test -z "$ac_cv_prog_STRIP"; then
5385 ac_ct_STRIP=$STRIP
5386 # Extract the first word of "strip", so it can be a program name with args.
5387 set dummy strip; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if test -n "$ac_ct_STRIP"; then
5394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5395 else
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5398 do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_STRIP="strip"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5406 fi
5407 done
5408 done
5409 IFS=$as_save_IFS
5411 fi
5412 fi
5413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5414 if test -n "$ac_ct_STRIP"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5416 $as_echo "$ac_ct_STRIP" >&6; }
5417 else
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5422 if test "x$ac_ct_STRIP" = x; then
5423 STRIP=":"
5424 else
5425 case $cross_compiling:$ac_tool_warned in
5426 yes:)
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5429 ac_tool_warned=yes ;;
5430 esac
5431 STRIP=$ac_ct_STRIP
5432 fi
5433 else
5434 STRIP="$ac_cv_prog_STRIP"
5435 fi
5437 test -z "$STRIP" && STRIP=:
5444 if test -n "$ac_tool_prefix"; then
5445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$RANLIB"; then
5453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5457 do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5465 fi
5466 done
5467 done
5468 IFS=$as_save_IFS
5470 fi
5471 fi
5472 RANLIB=$ac_cv_prog_RANLIB
5473 if test -n "$RANLIB"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5475 $as_echo "$RANLIB" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5479 fi
5482 fi
5483 if test -z "$ac_cv_prog_RANLIB"; then
5484 ac_ct_RANLIB=$RANLIB
5485 # Extract the first word of "ranlib", so it can be a program name with args.
5486 set dummy ranlib; ac_word=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 if test -n "$ac_ct_RANLIB"; then
5493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5494 else
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 for as_dir in $PATH
5497 do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5502 ac_cv_prog_ac_ct_RANLIB="ranlib"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5504 break 2
5505 fi
5506 done
5507 done
5508 IFS=$as_save_IFS
5510 fi
5511 fi
5512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5513 if test -n "$ac_ct_RANLIB"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5515 $as_echo "$ac_ct_RANLIB" >&6; }
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5521 if test "x$ac_ct_RANLIB" = x; then
5522 RANLIB=":"
5523 else
5524 case $cross_compiling:$ac_tool_warned in
5525 yes:)
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5528 ac_tool_warned=yes ;;
5529 esac
5530 RANLIB=$ac_ct_RANLIB
5531 fi
5532 else
5533 RANLIB="$ac_cv_prog_RANLIB"
5534 fi
5536 test -z "$RANLIB" && RANLIB=:
5543 # Determine commands to create old-style static archives.
5544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5545 old_postinstall_cmds='chmod 644 $oldlib'
5546 old_postuninstall_cmds=
5548 if test -n "$RANLIB"; then
5549 case $host_os in
5550 openbsd*)
5551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5552 ;;
5553 *)
5554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5555 ;;
5556 esac
5557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5558 fi
5560 case $host_os in
5561 darwin*)
5562 lock_old_archive_extraction=yes ;;
5563 *)
5564 lock_old_archive_extraction=no ;;
5565 esac
5605 # If no C compiler was specified, use CC.
5606 LTCC=${LTCC-"$CC"}
5608 # If no C compiler flags were specified, use CFLAGS.
5609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5611 # Allow CC to be a program name with arguments.
5612 compiler=$CC
5615 # Check for command to grab the raw symbol name followed by C symbol from nm.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5618 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5622 # These are sane defaults that work on at least a few old systems.
5623 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5625 # Character class describing NM global symbol codes.
5626 symcode='[BCDEGRST]'
5628 # Regexp to match symbols that can be accessed directly from C.
5629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5631 # Define system-specific variables.
5632 case $host_os in
5633 aix*)
5634 symcode='[BCDT]'
5635 ;;
5636 cygwin* | mingw* | pw32* | cegcc*)
5637 symcode='[ABCDGISTW]'
5638 ;;
5639 hpux*)
5640 if test "$host_cpu" = ia64; then
5641 symcode='[ABCDEGRST]'
5642 fi
5643 ;;
5644 irix* | nonstopux*)
5645 symcode='[BCDEGRST]'
5646 ;;
5647 osf*)
5648 symcode='[BCDEGQRST]'
5649 ;;
5650 solaris*)
5651 symcode='[BDRT]'
5652 ;;
5653 sco3.2v5*)
5654 symcode='[DT]'
5655 ;;
5656 sysv4.2uw2*)
5657 symcode='[DT]'
5658 ;;
5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5660 symcode='[ABDT]'
5661 ;;
5662 sysv4)
5663 symcode='[DFNSTU]'
5664 ;;
5665 esac
5667 # If we're using GNU nm, then use its standard symbol codes.
5668 case `$NM -V 2>&1` in
5669 *GNU* | *'with BFD'*)
5670 symcode='[ABCDGIRSTW]' ;;
5671 esac
5673 # Transform an extracted symbol line into a proper C declaration.
5674 # Some systems (esp. on ia64) link data and code symbols differently,
5675 # so use this general approach.
5676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5678 # Transform an extracted symbol line into symbol name and symbol address
5679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5680 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5682 # Handle CRLF in mingw tool chain
5683 opt_cr=
5684 case $build_os in
5685 mingw*)
5686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5687 ;;
5688 esac
5690 # Try without a prefix underscore, then with it.
5691 for ac_symprfx in "" "_"; do
5693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5694 symxfrm="\\1 $ac_symprfx\\2 \\2"
5696 # Write the raw and C identifiers.
5697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5698 # Fake it for dumpbin and say T for any non-static function
5699 # and D for any global variable.
5700 # Also find C++ and __fastcall symbols from MSVC++,
5701 # which start with @ or ?.
5702 lt_cv_sys_global_symbol_pipe="$AWK '"\
5703 " {last_section=section; section=\$ 3};"\
5704 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5705 " \$ 0!~/External *\|/{next};"\
5706 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5707 " {if(hide[section]) next};"\
5708 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5709 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5710 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5711 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5712 " ' prfx=^$ac_symprfx"
5713 else
5714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5715 fi
5717 # Check to see that the pipe works correctly.
5718 pipe_works=no
5720 rm -f conftest*
5721 cat > conftest.$ac_ext <<_LT_EOF
5722 #ifdef __cplusplus
5723 extern "C" {
5724 #endif
5725 char nm_test_var;
5726 void nm_test_func(void);
5727 void nm_test_func(void){}
5728 #ifdef __cplusplus
5729 }
5730 #endif
5731 int main(){nm_test_var='a';nm_test_func();return(0);}
5732 _LT_EOF
5734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5735 (eval $ac_compile) 2>&5
5736 ac_status=$?
5737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738 test $ac_status = 0; }; then
5739 # Now try to grab the symbols.
5740 nlist=conftest.nm
5741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5742 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5743 ac_status=$?
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; } && test -s "$nlist"; then
5746 # Try sorting and uniquifying the output.
5747 if sort "$nlist" | uniq > "$nlist"T; then
5748 mv -f "$nlist"T "$nlist"
5749 else
5750 rm -f "$nlist"T
5751 fi
5753 # Make sure that we snagged all the symbols we need.
5754 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5755 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5756 cat <<_LT_EOF > conftest.$ac_ext
5757 #ifdef __cplusplus
5758 extern "C" {
5759 #endif
5761 _LT_EOF
5762 # Now generate the symbol file.
5763 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5765 cat <<_LT_EOF >> conftest.$ac_ext
5767 /* The mapping between symbol names and symbols. */
5768 const struct {
5769 const char *name;
5770 void *address;
5771 }
5772 lt__PROGRAM__LTX_preloaded_symbols[] =
5773 {
5774 { "@PROGRAM@", (void *) 0 },
5775 _LT_EOF
5776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5777 cat <<\_LT_EOF >> conftest.$ac_ext
5778 {0, (void *) 0}
5779 };
5781 /* This works around a problem in FreeBSD linker */
5782 #ifdef FREEBSD_WORKAROUND
5783 static const void *lt_preloaded_setup() {
5784 return lt__PROGRAM__LTX_preloaded_symbols;
5785 }
5786 #endif
5788 #ifdef __cplusplus
5789 }
5790 #endif
5791 _LT_EOF
5792 # Now try linking the two files.
5793 mv conftest.$ac_objext conftstm.$ac_objext
5794 lt_save_LIBS="$LIBS"
5795 lt_save_CFLAGS="$CFLAGS"
5796 LIBS="conftstm.$ac_objext"
5797 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5799 (eval $ac_link) 2>&5
5800 ac_status=$?
5801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5802 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5803 pipe_works=yes
5804 fi
5805 LIBS="$lt_save_LIBS"
5806 CFLAGS="$lt_save_CFLAGS"
5807 else
5808 echo "cannot find nm_test_func in $nlist" >&5
5809 fi
5810 else
5811 echo "cannot find nm_test_var in $nlist" >&5
5812 fi
5813 else
5814 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5815 fi
5816 else
5817 echo "$progname: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5819 fi
5820 rm -rf conftest* conftst*
5822 # Do not use the global_symbol_pipe unless it works.
5823 if test "$pipe_works" = yes; then
5824 break
5825 else
5826 lt_cv_sys_global_symbol_pipe=
5827 fi
5828 done
5830 fi
5832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5833 lt_cv_sys_global_symbol_to_cdecl=
5834 fi
5835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5837 $as_echo "failed" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5840 $as_echo "ok" >&6; }
5841 fi
5865 # Check whether --enable-libtool-lock was given.
5866 if test "${enable_libtool_lock+set}" = set; then :
5867 enableval=$enable_libtool_lock;
5868 fi
5870 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5872 # Some flags need to be propagated to the compiler or linker for good
5873 # libtool support.
5874 case $host in
5875 ia64-*-hpux*)
5876 # Find out which ABI we are using.
5877 echo 'int i;' > conftest.$ac_ext
5878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5879 (eval $ac_compile) 2>&5
5880 ac_status=$?
5881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5882 test $ac_status = 0; }; then
5883 case `/usr/bin/file conftest.$ac_objext` in
5884 *ELF-32*)
5885 HPUX_IA64_MODE="32"
5886 ;;
5887 *ELF-64*)
5888 HPUX_IA64_MODE="64"
5889 ;;
5890 esac
5891 fi
5892 rm -rf conftest*
5893 ;;
5894 *-*-irix6*)
5895 # Find out which ABI we are using.
5896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5898 (eval $ac_compile) 2>&5
5899 ac_status=$?
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; then
5902 if test "$lt_cv_prog_gnu_ld" = yes; then
5903 case `/usr/bin/file conftest.$ac_objext` in
5904 *32-bit*)
5905 LD="${LD-ld} -melf32bsmip"
5906 ;;
5907 *N32*)
5908 LD="${LD-ld} -melf32bmipn32"
5909 ;;
5910 *64-bit*)
5911 LD="${LD-ld} -melf64bmip"
5912 ;;
5913 esac
5914 else
5915 case `/usr/bin/file conftest.$ac_objext` in
5916 *32-bit*)
5917 LD="${LD-ld} -32"
5918 ;;
5919 *N32*)
5920 LD="${LD-ld} -n32"
5921 ;;
5922 *64-bit*)
5923 LD="${LD-ld} -64"
5924 ;;
5925 esac
5926 fi
5927 fi
5928 rm -rf conftest*
5929 ;;
5931 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5932 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5933 # Find out which ABI we are using.
5934 echo 'int i;' > conftest.$ac_ext
5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5936 (eval $ac_compile) 2>&5
5937 ac_status=$?
5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939 test $ac_status = 0; }; then
5940 case `/usr/bin/file conftest.o` in
5941 *32-bit*)
5942 case $host in
5943 x86_64-*kfreebsd*-gnu)
5944 LD="${LD-ld} -m elf_i386_fbsd"
5945 ;;
5946 x86_64-*linux*)
5947 LD="${LD-ld} -m elf_i386"
5948 ;;
5949 ppc64-*linux*|powerpc64-*linux*)
5950 LD="${LD-ld} -m elf32ppclinux"
5951 ;;
5952 s390x-*linux*)
5953 LD="${LD-ld} -m elf_s390"
5954 ;;
5955 sparc64-*linux*)
5956 LD="${LD-ld} -m elf32_sparc"
5957 ;;
5958 esac
5959 ;;
5960 *64-bit*)
5961 case $host in
5962 x86_64-*kfreebsd*-gnu)
5963 LD="${LD-ld} -m elf_x86_64_fbsd"
5964 ;;
5965 x86_64-*linux*)
5966 LD="${LD-ld} -m elf_x86_64"
5967 ;;
5968 ppc*-*linux*|powerpc*-*linux*)
5969 LD="${LD-ld} -m elf64ppc"
5970 ;;
5971 s390*-*linux*|s390*-*tpf*)
5972 LD="${LD-ld} -m elf64_s390"
5973 ;;
5974 sparc*-*linux*)
5975 LD="${LD-ld} -m elf64_sparc"
5976 ;;
5977 esac
5978 ;;
5979 esac
5980 fi
5981 rm -rf conftest*
5982 ;;
5984 *-*-sco3.2v5*)
5985 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5986 SAVE_CFLAGS="$CFLAGS"
5987 CFLAGS="$CFLAGS -belf"
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5990 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 ac_ext=c
5994 ac_cpp='$CPP $CPPFLAGS'
5995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6002 int
6003 main ()
6004 {
6006 ;
6007 return 0;
6008 }
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011 lt_cv_cc_needs_belf=yes
6012 else
6013 lt_cv_cc_needs_belf=no
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 ac_ext=c
6018 ac_cpp='$CPP $CPPFLAGS'
6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023 fi
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6026 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6027 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6028 CFLAGS="$SAVE_CFLAGS"
6029 fi
6030 ;;
6031 sparc*-*solaris*)
6032 # Find out which ABI we are using.
6033 echo 'int i;' > conftest.$ac_ext
6034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6038 test $ac_status = 0; }; then
6039 case `/usr/bin/file conftest.o` in
6040 *64-bit*)
6041 case $lt_cv_prog_gnu_ld in
6042 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6043 *)
6044 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6045 LD="${LD-ld} -64"
6046 fi
6047 ;;
6048 esac
6049 ;;
6050 esac
6051 fi
6052 rm -rf conftest*
6053 ;;
6054 esac
6056 need_locks="$enable_libtool_lock"
6059 case $host_os in
6060 rhapsody* | darwin*)
6061 if test -n "$ac_tool_prefix"; then
6062 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6063 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6067 $as_echo_n "(cached) " >&6
6068 else
6069 if test -n "$DSYMUTIL"; then
6070 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075 IFS=$as_save_IFS
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 break 2
6082 fi
6083 done
6084 done
6085 IFS=$as_save_IFS
6087 fi
6088 fi
6089 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6090 if test -n "$DSYMUTIL"; then
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6092 $as_echo "$DSYMUTIL" >&6; }
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6099 fi
6100 if test -z "$ac_cv_prog_DSYMUTIL"; then
6101 ac_ct_DSYMUTIL=$DSYMUTIL
6102 # Extract the first word of "dsymutil", so it can be a program name with args.
6103 set dummy dsymutil; ac_word=$2
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6105 $as_echo_n "checking for $ac_word... " >&6; }
6106 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 if test -n "$ac_ct_DSYMUTIL"; then
6110 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6111 else
6112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115 IFS=$as_save_IFS
6116 test -z "$as_dir" && as_dir=.
6117 for ac_exec_ext in '' $ac_executable_extensions; do
6118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6119 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 break 2
6122 fi
6123 done
6124 done
6125 IFS=$as_save_IFS
6127 fi
6128 fi
6129 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6130 if test -n "$ac_ct_DSYMUTIL"; then
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6132 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6133 else
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6135 $as_echo "no" >&6; }
6136 fi
6138 if test "x$ac_ct_DSYMUTIL" = x; then
6139 DSYMUTIL=":"
6140 else
6141 case $cross_compiling:$ac_tool_warned in
6142 yes:)
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6146 esac
6147 DSYMUTIL=$ac_ct_DSYMUTIL
6148 fi
6149 else
6150 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6151 fi
6153 if test -n "$ac_tool_prefix"; then
6154 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6155 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$NMEDIT"; then
6162 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6166 do
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6174 fi
6175 done
6176 done
6177 IFS=$as_save_IFS
6179 fi
6180 fi
6181 NMEDIT=$ac_cv_prog_NMEDIT
6182 if test -n "$NMEDIT"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6184 $as_echo "$NMEDIT" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6188 fi
6191 fi
6192 if test -z "$ac_cv_prog_NMEDIT"; then
6193 ac_ct_NMEDIT=$NMEDIT
6194 # Extract the first word of "nmedit", so it can be a program name with args.
6195 set dummy nmedit; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201 if test -n "$ac_ct_NMEDIT"; then
6202 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6203 else
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207 IFS=$as_save_IFS
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 break 2
6214 fi
6215 done
6216 done
6217 IFS=$as_save_IFS
6219 fi
6220 fi
6221 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6222 if test -n "$ac_ct_NMEDIT"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6224 $as_echo "$ac_ct_NMEDIT" >&6; }
6225 else
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6228 fi
6230 if test "x$ac_ct_NMEDIT" = x; then
6231 NMEDIT=":"
6232 else
6233 case $cross_compiling:$ac_tool_warned in
6234 yes:)
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6237 ac_tool_warned=yes ;;
6238 esac
6239 NMEDIT=$ac_ct_NMEDIT
6240 fi
6241 else
6242 NMEDIT="$ac_cv_prog_NMEDIT"
6243 fi
6245 if test -n "$ac_tool_prefix"; then
6246 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6247 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6249 $as_echo_n "checking for $ac_word... " >&6; }
6250 if test "${ac_cv_prog_LIPO+set}" = set; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 if test -n "$LIPO"; then
6254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6255 else
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 break 2
6266 fi
6267 done
6268 done
6269 IFS=$as_save_IFS
6271 fi
6272 fi
6273 LIPO=$ac_cv_prog_LIPO
6274 if test -n "$LIPO"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6276 $as_echo "$LIPO" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6283 fi
6284 if test -z "$ac_cv_prog_LIPO"; then
6285 ac_ct_LIPO=$LIPO
6286 # Extract the first word of "lipo", so it can be a program name with args.
6287 set dummy lipo; ac_word=$2
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289 $as_echo_n "checking for $ac_word... " >&6; }
6290 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 if test -n "$ac_ct_LIPO"; then
6294 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6295 else
6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH
6298 do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303 ac_cv_prog_ac_ct_LIPO="lipo"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6311 fi
6312 fi
6313 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6314 if test -n "$ac_ct_LIPO"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6316 $as_echo "$ac_ct_LIPO" >&6; }
6317 else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319 $as_echo "no" >&6; }
6320 fi
6322 if test "x$ac_ct_LIPO" = x; then
6323 LIPO=":"
6324 else
6325 case $cross_compiling:$ac_tool_warned in
6326 yes:)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6329 ac_tool_warned=yes ;;
6330 esac
6331 LIPO=$ac_ct_LIPO
6332 fi
6333 else
6334 LIPO="$ac_cv_prog_LIPO"
6335 fi
6337 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6339 set dummy ${ac_tool_prefix}otool; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 if test -n "$OTOOL"; then
6346 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6347 else
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 for as_dir in $PATH
6350 do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 break 2
6358 fi
6359 done
6360 done
6361 IFS=$as_save_IFS
6363 fi
6364 fi
6365 OTOOL=$ac_cv_prog_OTOOL
6366 if test -n "$OTOOL"; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6368 $as_echo "$OTOOL" >&6; }
6369 else
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6371 $as_echo "no" >&6; }
6372 fi
6375 fi
6376 if test -z "$ac_cv_prog_OTOOL"; then
6377 ac_ct_OTOOL=$OTOOL
6378 # Extract the first word of "otool", so it can be a program name with args.
6379 set dummy otool; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 if test -n "$ac_ct_OTOOL"; then
6386 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6387 else
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6389 for as_dir in $PATH
6390 do
6391 IFS=$as_save_IFS
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_prog_ac_ct_OTOOL="otool"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6397 break 2
6398 fi
6399 done
6400 done
6401 IFS=$as_save_IFS
6403 fi
6404 fi
6405 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6406 if test -n "$ac_ct_OTOOL"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6408 $as_echo "$ac_ct_OTOOL" >&6; }
6409 else
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6412 fi
6414 if test "x$ac_ct_OTOOL" = x; then
6415 OTOOL=":"
6416 else
6417 case $cross_compiling:$ac_tool_warned in
6418 yes:)
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6421 ac_tool_warned=yes ;;
6422 esac
6423 OTOOL=$ac_ct_OTOOL
6424 fi
6425 else
6426 OTOOL="$ac_cv_prog_OTOOL"
6427 fi
6429 if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6431 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$OTOOL64"; then
6438 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
6446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451 done
6452 done
6453 IFS=$as_save_IFS
6455 fi
6456 fi
6457 OTOOL64=$ac_cv_prog_OTOOL64
6458 if test -n "$OTOOL64"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6460 $as_echo "$OTOOL64" >&6; }
6461 else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6467 fi
6468 if test -z "$ac_cv_prog_OTOOL64"; then
6469 ac_ct_OTOOL64=$OTOOL64
6470 # Extract the first word of "otool64", so it can be a program name with args.
6471 set dummy otool64; ac_word=$2
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 $as_echo_n "checking for $ac_word... " >&6; }
6474 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 if test -n "$ac_ct_OTOOL64"; then
6478 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6479 else
6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 for as_dir in $PATH
6482 do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
6486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6487 ac_cv_prog_ac_ct_OTOOL64="otool64"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491 done
6492 done
6493 IFS=$as_save_IFS
6495 fi
6496 fi
6497 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6498 if test -n "$ac_ct_OTOOL64"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6500 $as_echo "$ac_ct_OTOOL64" >&6; }
6501 else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6504 fi
6506 if test "x$ac_ct_OTOOL64" = x; then
6507 OTOOL64=":"
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510 yes:)
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513 ac_tool_warned=yes ;;
6514 esac
6515 OTOOL64=$ac_ct_OTOOL64
6516 fi
6517 else
6518 OTOOL64="$ac_cv_prog_OTOOL64"
6519 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6548 $as_echo_n "checking for -single_module linker flag... " >&6; }
6549 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 lt_cv_apple_cc_single_mod=no
6553 if test -z "${LT_MULTI_MODULE}"; then
6554 # By default we will add the -single_module flag. You can override
6555 # by either setting the environment variable LT_MULTI_MODULE
6556 # non-empty at configure time, or by adding -multi_module to the
6557 # link flags.
6558 rm -rf libconftest.dylib*
6559 echo "int foo(void){return 1;}" > conftest.c
6560 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561 -dynamiclib -Wl,-single_module conftest.c" >&5
6562 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6563 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6564 _lt_result=$?
6565 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6566 lt_cv_apple_cc_single_mod=yes
6567 else
6568 cat conftest.err >&5
6569 fi
6570 rm -rf libconftest.dylib*
6571 rm -f conftest.*
6572 fi
6573 fi
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6575 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6577 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6578 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6579 $as_echo_n "(cached) " >&6
6580 else
6581 lt_cv_ld_exported_symbols_list=no
6582 save_LDFLAGS=$LDFLAGS
6583 echo "_main" > conftest.sym
6584 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6588 int
6589 main ()
6590 {
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 lt_cv_ld_exported_symbols_list=yes
6598 else
6599 lt_cv_ld_exported_symbols_list=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 LDFLAGS="$save_LDFLAGS"
6605 fi
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6607 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6609 $as_echo_n "checking for -force_load linker flag... " >&6; }
6610 if test "${lt_cv_ld_force_load+set}" = set; then :
6611 $as_echo_n "(cached) " >&6
6612 else
6613 lt_cv_ld_force_load=no
6614 cat > conftest.c << _LT_EOF
6615 int forced_loaded() { return 2;}
6616 _LT_EOF
6617 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6618 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6619 echo "$AR cru libconftest.a conftest.o" >&5
6620 $AR cru libconftest.a conftest.o 2>&5
6621 cat > conftest.c << _LT_EOF
6622 int main() { return 0;}
6623 _LT_EOF
6624 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6625 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6626 _lt_result=$?
6627 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6628 lt_cv_ld_force_load=yes
6629 else
6630 cat conftest.err >&5
6631 fi
6632 rm -f conftest.err libconftest.a conftest conftest.c
6633 rm -rf conftest.dSYM
6635 fi
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6637 $as_echo "$lt_cv_ld_force_load" >&6; }
6638 case $host_os in
6639 rhapsody* | darwin1.[012])
6640 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6641 darwin1.*)
6642 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6643 darwin*) # darwin 5.x on
6644 # if running on 10.5 or later, the deployment target defaults
6645 # to the OS version, if on x86, and 10.4, the deployment
6646 # target defaults to 10.4. Don't you love it?
6647 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6648 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6650 10.[012]*)
6651 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6652 10.*)
6653 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6654 esac
6655 ;;
6656 esac
6657 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6658 _lt_dar_single_mod='$single_module'
6659 fi
6660 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6661 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6662 else
6663 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6664 fi
6665 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6666 _lt_dsymutil='~$DSYMUTIL $lib || :'
6667 else
6668 _lt_dsymutil=
6669 fi
6670 ;;
6671 esac
6673 ac_ext=c
6674 ac_cpp='$CPP $CPPFLAGS'
6675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6679 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6680 # On Suns, sometimes $CPP names a directory.
6681 if test -n "$CPP" && test -d "$CPP"; then
6682 CPP=
6683 fi
6684 if test -z "$CPP"; then
6685 if test "${ac_cv_prog_CPP+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 # Double quotes because CPP needs to be expanded
6689 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6690 do
6691 ac_preproc_ok=false
6692 for ac_c_preproc_warn_flag in '' yes
6693 do
6694 # Use a header file that comes with gcc, so configuring glibc
6695 # with a fresh cross-compiler works.
6696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6697 # <limits.h> exists even on freestanding compilers.
6698 # On the NeXT, cc -E runs the code through the compiler's parser,
6699 # not just through cpp. "Syntax error" is here to catch this case.
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #ifdef __STDC__
6703 # include <limits.h>
6704 #else
6705 # include <assert.h>
6706 #endif
6707 Syntax error
6708 _ACEOF
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6711 else
6712 # Broken: fails on valid input.
6713 continue
6714 fi
6715 rm -f conftest.err conftest.$ac_ext
6717 # OK, works on sane cases. Now check whether nonexistent headers
6718 # can be detected and how.
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <ac_nonexistent.h>
6722 _ACEOF
6723 if ac_fn_c_try_cpp "$LINENO"; then :
6724 # Broken: success on invalid input.
6725 continue
6726 else
6727 # Passes both tests.
6728 ac_preproc_ok=:
6729 break
6730 fi
6731 rm -f conftest.err conftest.$ac_ext
6733 done
6734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6735 rm -f conftest.err conftest.$ac_ext
6736 if $ac_preproc_ok; then :
6737 break
6738 fi
6740 done
6741 ac_cv_prog_CPP=$CPP
6743 fi
6744 CPP=$ac_cv_prog_CPP
6745 else
6746 ac_cv_prog_CPP=$CPP
6747 fi
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6749 $as_echo "$CPP" >&6; }
6750 ac_preproc_ok=false
6751 for ac_c_preproc_warn_flag in '' yes
6752 do
6753 # Use a header file that comes with gcc, so configuring glibc
6754 # with a fresh cross-compiler works.
6755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6756 # <limits.h> exists even on freestanding compilers.
6757 # On the NeXT, cc -E runs the code through the compiler's parser,
6758 # not just through cpp. "Syntax error" is here to catch this case.
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #ifdef __STDC__
6762 # include <limits.h>
6763 #else
6764 # include <assert.h>
6765 #endif
6766 Syntax error
6767 _ACEOF
6768 if ac_fn_c_try_cpp "$LINENO"; then :
6770 else
6771 # Broken: fails on valid input.
6772 continue
6773 fi
6774 rm -f conftest.err conftest.$ac_ext
6776 # OK, works on sane cases. Now check whether nonexistent headers
6777 # can be detected and how.
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 #include <ac_nonexistent.h>
6781 _ACEOF
6782 if ac_fn_c_try_cpp "$LINENO"; then :
6783 # Broken: success on invalid input.
6784 continue
6785 else
6786 # Passes both tests.
6787 ac_preproc_ok=:
6788 break
6789 fi
6790 rm -f conftest.err conftest.$ac_ext
6792 done
6793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6794 rm -f conftest.err conftest.$ac_ext
6795 if $ac_preproc_ok; then :
6797 else
6798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6800 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6801 See \`config.log' for more details." "$LINENO" 5; }
6802 fi
6804 ac_ext=c
6805 ac_cpp='$CPP $CPPFLAGS'
6806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6812 $as_echo_n "checking for ANSI C header files... " >&6; }
6813 if test "${ac_cv_header_stdc+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 #include <stdlib.h>
6819 #include <stdarg.h>
6820 #include <string.h>
6821 #include <float.h>
6823 int
6824 main ()
6825 {
6827 ;
6828 return 0;
6829 }
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"; then :
6832 ac_cv_header_stdc=yes
6833 else
6834 ac_cv_header_stdc=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6838 if test $ac_cv_header_stdc = yes; then
6839 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842 #include <string.h>
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846 $EGREP "memchr" >/dev/null 2>&1; then :
6848 else
6849 ac_cv_header_stdc=no
6850 fi
6851 rm -f conftest*
6853 fi
6855 if test $ac_cv_header_stdc = yes; then
6856 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <stdlib.h>
6861 _ACEOF
6862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6863 $EGREP "free" >/dev/null 2>&1; then :
6865 else
6866 ac_cv_header_stdc=no
6867 fi
6868 rm -f conftest*
6870 fi
6872 if test $ac_cv_header_stdc = yes; then
6873 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6874 if test "$cross_compiling" = yes; then :
6875 :
6876 else
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <ctype.h>
6880 #include <stdlib.h>
6881 #if ((' ' & 0x0FF) == 0x020)
6882 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6883 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6884 #else
6885 # define ISLOWER(c) \
6886 (('a' <= (c) && (c) <= 'i') \
6887 || ('j' <= (c) && (c) <= 'r') \
6888 || ('s' <= (c) && (c) <= 'z'))
6889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6890 #endif
6892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6893 int
6894 main ()
6895 {
6896 int i;
6897 for (i = 0; i < 256; i++)
6898 if (XOR (islower (i), ISLOWER (i))
6899 || toupper (i) != TOUPPER (i))
6900 return 2;
6901 return 0;
6902 }
6903 _ACEOF
6904 if ac_fn_c_try_run "$LINENO"; then :
6906 else
6907 ac_cv_header_stdc=no
6908 fi
6909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6910 conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 fi
6913 fi
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6916 $as_echo "$ac_cv_header_stdc" >&6; }
6917 if test $ac_cv_header_stdc = yes; then
6919 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6921 fi
6923 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6924 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6925 inttypes.h stdint.h unistd.h
6926 do :
6927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6928 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6929 "
6930 eval as_val=\$$as_ac_Header
6931 if test "x$as_val" = x""yes; then :
6932 cat >>confdefs.h <<_ACEOF
6933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6934 _ACEOF
6936 fi
6938 done
6941 for ac_header in dlfcn.h
6942 do :
6943 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6944 "
6945 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6946 cat >>confdefs.h <<_ACEOF
6947 #define HAVE_DLFCN_H 1
6948 _ACEOF
6950 fi
6952 done
6958 # Set options
6962 enable_dlopen=no
6965 enable_win32_dll=no
6968 # Check whether --enable-shared was given.
6969 if test "${enable_shared+set}" = set; then :
6970 enableval=$enable_shared; p=${PACKAGE-default}
6971 case $enableval in
6972 yes) enable_shared=yes ;;
6973 no) enable_shared=no ;;
6974 *)
6975 enable_shared=no
6976 # Look at the argument we got. We use all the common list separators.
6977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6978 for pkg in $enableval; do
6979 IFS="$lt_save_ifs"
6980 if test "X$pkg" = "X$p"; then
6981 enable_shared=yes
6982 fi
6983 done
6984 IFS="$lt_save_ifs"
6985 ;;
6986 esac
6987 else
6988 enable_shared=yes
6989 fi
6999 # Check whether --enable-static was given.
7000 if test "${enable_static+set}" = set; then :
7001 enableval=$enable_static; p=${PACKAGE-default}
7002 case $enableval in
7003 yes) enable_static=yes ;;
7004 no) enable_static=no ;;
7005 *)
7006 enable_static=no
7007 # Look at the argument we got. We use all the common list separators.
7008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7009 for pkg in $enableval; do
7010 IFS="$lt_save_ifs"
7011 if test "X$pkg" = "X$p"; then
7012 enable_static=yes
7013 fi
7014 done
7015 IFS="$lt_save_ifs"
7016 ;;
7017 esac
7018 else
7019 enable_static=yes
7020 fi
7031 # Check whether --with-pic was given.
7032 if test "${with_pic+set}" = set; then :
7033 withval=$with_pic; pic_mode="$withval"
7034 else
7035 pic_mode=default
7036 fi
7039 test -z "$pic_mode" && pic_mode=default
7047 # Check whether --enable-fast-install was given.
7048 if test "${enable_fast_install+set}" = set; then :
7049 enableval=$enable_fast_install; p=${PACKAGE-default}
7050 case $enableval in
7051 yes) enable_fast_install=yes ;;
7052 no) enable_fast_install=no ;;
7053 *)
7054 enable_fast_install=no
7055 # Look at the argument we got. We use all the common list separators.
7056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7057 for pkg in $enableval; do
7058 IFS="$lt_save_ifs"
7059 if test "X$pkg" = "X$p"; then
7060 enable_fast_install=yes
7061 fi
7062 done
7063 IFS="$lt_save_ifs"
7064 ;;
7065 esac
7066 else
7067 enable_fast_install=yes
7068 fi
7080 # This can be used to rebuild libtool when needed
7081 LIBTOOL_DEPS="$ltmain"
7083 # Always use our own libtool.
7084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7111 test -z "$LN_S" && LN_S="ln -s"
7126 if test -n "${ZSH_VERSION+set}" ; then
7127 setopt NO_GLOB_SUBST
7128 fi
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7131 $as_echo_n "checking for objdir... " >&6; }
7132 if test "${lt_cv_objdir+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 rm -f .libs 2>/dev/null
7136 mkdir .libs 2>/dev/null
7137 if test -d .libs; then
7138 lt_cv_objdir=.libs
7139 else
7140 # MS-DOS does not allow filenames that begin with a dot.
7141 lt_cv_objdir=_libs
7142 fi
7143 rmdir .libs 2>/dev/null
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7146 $as_echo "$lt_cv_objdir" >&6; }
7147 objdir=$lt_cv_objdir
7153 cat >>confdefs.h <<_ACEOF
7154 #define LT_OBJDIR "$lt_cv_objdir/"
7155 _ACEOF
7160 case $host_os in
7161 aix3*)
7162 # AIX sometimes has problems with the GCC collect2 program. For some
7163 # reason, if we set the COLLECT_NAMES environment variable, the problems
7164 # vanish in a puff of smoke.
7165 if test "X${COLLECT_NAMES+set}" != Xset; then
7166 COLLECT_NAMES=
7167 export COLLECT_NAMES
7168 fi
7169 ;;
7170 esac
7172 # Global variables:
7173 ofile=libtool
7174 can_build_shared=yes
7176 # All known linkers require a `.a' archive for static linking (except MSVC,
7177 # which needs '.lib').
7178 libext=a
7180 with_gnu_ld="$lt_cv_prog_gnu_ld"
7182 old_CC="$CC"
7183 old_CFLAGS="$CFLAGS"
7185 # Set sane defaults for various variables
7186 test -z "$CC" && CC=cc
7187 test -z "$LTCC" && LTCC=$CC
7188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7189 test -z "$LD" && LD=ld
7190 test -z "$ac_objext" && ac_objext=o
7192 for cc_temp in $compiler""; do
7193 case $cc_temp in
7194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7196 \-*) ;;
7197 *) break;;
7198 esac
7199 done
7200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7203 # Only perform the check for file, if the check method requires it
7204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7205 case $deplibs_check_method in
7206 file_magic*)
7207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 case $MAGIC_CMD in
7214 [\\/*] | ?:[\\/]*)
7215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7216 ;;
7217 *)
7218 lt_save_MAGIC_CMD="$MAGIC_CMD"
7219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7221 for ac_dir in $ac_dummy; do
7222 IFS="$lt_save_ifs"
7223 test -z "$ac_dir" && ac_dir=.
7224 if test -f $ac_dir/${ac_tool_prefix}file; then
7225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7226 if test -n "$file_magic_test_file"; then
7227 case $deplibs_check_method in
7228 "file_magic "*)
7229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7232 $EGREP "$file_magic_regex" > /dev/null; then
7233 :
7234 else
7235 cat <<_LT_EOF 1>&2
7237 *** Warning: the command libtool uses to detect shared libraries,
7238 *** $file_magic_cmd, produces output that libtool cannot recognize.
7239 *** The result is that libtool may fail to recognize shared libraries
7240 *** as such. This will affect the creation of libtool libraries that
7241 *** depend on shared libraries, but programs linked with such libtool
7242 *** libraries will work regardless of this problem. Nevertheless, you
7243 *** may want to report the problem to your system manager and/or to
7244 *** bug-libtool@gnu.org
7246 _LT_EOF
7247 fi ;;
7248 esac
7249 fi
7250 break
7251 fi
7252 done
7253 IFS="$lt_save_ifs"
7254 MAGIC_CMD="$lt_save_MAGIC_CMD"
7255 ;;
7256 esac
7257 fi
7259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7260 if test -n "$MAGIC_CMD"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7262 $as_echo "$MAGIC_CMD" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7266 fi
7272 if test -z "$lt_cv_path_MAGIC_CMD"; then
7273 if test -n "$ac_tool_prefix"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7275 $as_echo_n "checking for file... " >&6; }
7276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 case $MAGIC_CMD in
7280 [\\/*] | ?:[\\/]*)
7281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7282 ;;
7283 *)
7284 lt_save_MAGIC_CMD="$MAGIC_CMD"
7285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7287 for ac_dir in $ac_dummy; do
7288 IFS="$lt_save_ifs"
7289 test -z "$ac_dir" && ac_dir=.
7290 if test -f $ac_dir/file; then
7291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7292 if test -n "$file_magic_test_file"; then
7293 case $deplibs_check_method in
7294 "file_magic "*)
7295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7298 $EGREP "$file_magic_regex" > /dev/null; then
7299 :
7300 else
7301 cat <<_LT_EOF 1>&2
7303 *** Warning: the command libtool uses to detect shared libraries,
7304 *** $file_magic_cmd, produces output that libtool cannot recognize.
7305 *** The result is that libtool may fail to recognize shared libraries
7306 *** as such. This will affect the creation of libtool libraries that
7307 *** depend on shared libraries, but programs linked with such libtool
7308 *** libraries will work regardless of this problem. Nevertheless, you
7309 *** may want to report the problem to your system manager and/or to
7310 *** bug-libtool@gnu.org
7312 _LT_EOF
7313 fi ;;
7314 esac
7315 fi
7316 break
7317 fi
7318 done
7319 IFS="$lt_save_ifs"
7320 MAGIC_CMD="$lt_save_MAGIC_CMD"
7321 ;;
7322 esac
7323 fi
7325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7326 if test -n "$MAGIC_CMD"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7328 $as_echo "$MAGIC_CMD" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7332 fi
7335 else
7336 MAGIC_CMD=:
7337 fi
7338 fi
7340 fi
7341 ;;
7342 esac
7344 # Use C for the default configuration in the libtool script
7346 lt_save_CC="$CC"
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354 # Source file extension for C test sources.
7355 ac_ext=c
7357 # Object file extension for compiled C test sources.
7358 objext=o
7359 objext=$objext
7361 # Code to be used in simple compile tests
7362 lt_simple_compile_test_code="int some_variable = 0;"
7364 # Code to be used in simple link tests
7365 lt_simple_link_test_code='int main(){return(0);}'
7373 # If no C compiler was specified, use CC.
7374 LTCC=${LTCC-"$CC"}
7376 # If no C compiler flags were specified, use CFLAGS.
7377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7379 # Allow CC to be a program name with arguments.
7380 compiler=$CC
7382 # Save the default compiler, since it gets overwritten when the other
7383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7384 compiler_DEFAULT=$CC
7386 # save warnings/boilerplate of simple test code
7387 ac_outfile=conftest.$ac_objext
7388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7390 _lt_compiler_boilerplate=`cat conftest.err`
7391 $RM conftest*
7393 ac_outfile=conftest.$ac_objext
7394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7396 _lt_linker_boilerplate=`cat conftest.err`
7397 $RM -r conftest*
7400 ## CAVEAT EMPTOR:
7401 ## There is no encapsulation within the following macros, do not change
7402 ## the running order or otherwise move them around unless you know exactly
7403 ## what you are doing...
7404 if test -n "$compiler"; then
7406 lt_prog_compiler_no_builtin_flag=
7408 if test "$GCC" = yes; then
7409 case $cc_basename in
7410 nvcc*)
7411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7412 *)
7413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7414 esac
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 lt_cv_prog_compiler_rtti_exceptions=no
7422 ac_outfile=conftest.$ac_objext
7423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7424 lt_compiler_flag="-fno-rtti -fno-exceptions"
7425 # Insert the option either (1) after the last *FLAGS variable, or
7426 # (2) before a word containing "conftest.", or (3) at the end.
7427 # Note that $ac_compile itself does not contain backslashes and begins
7428 # with a dollar sign (not a hyphen), so the echo should work correctly.
7429 # The option is referenced via a variable to avoid confusing sed.
7430 lt_compile=`echo "$ac_compile" | $SED \
7431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7433 -e 's:$: $lt_compiler_flag:'`
7434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7435 (eval "$lt_compile" 2>conftest.err)
7436 ac_status=$?
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 if (exit $ac_status) && test -s "$ac_outfile"; then
7440 # The compiler can only warn and ignore the option if not recognized
7441 # So say no if there are warnings other than the usual output.
7442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7445 lt_cv_prog_compiler_rtti_exceptions=yes
7446 fi
7447 fi
7448 $RM conftest*
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7456 else
7457 :
7458 fi
7460 fi
7467 lt_prog_compiler_wl=
7468 lt_prog_compiler_pic=
7469 lt_prog_compiler_static=
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7474 if test "$GCC" = yes; then
7475 lt_prog_compiler_wl='-Wl,'
7476 lt_prog_compiler_static='-static'
7478 case $host_os in
7479 aix*)
7480 # All AIX code is PIC.
7481 if test "$host_cpu" = ia64; then
7482 # AIX 5 now supports IA64 processor
7483 lt_prog_compiler_static='-Bstatic'
7484 fi
7485 ;;
7487 amigaos*)
7488 case $host_cpu in
7489 powerpc)
7490 # see comment about AmigaOS4 .so support
7491 lt_prog_compiler_pic='-fPIC'
7492 ;;
7493 m68k)
7494 # FIXME: we need at least 68020 code to build shared libraries, but
7495 # adding the `-m68020' flag to GCC prevents building anything better,
7496 # like `-m68040'.
7497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7498 ;;
7499 esac
7500 ;;
7502 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7503 # PIC is the default for these OSes.
7504 ;;
7506 mingw* | cygwin* | pw32* | os2* | cegcc*)
7507 # This hack is so that the source file can tell whether it is being
7508 # built for inclusion in a dll (and should export symbols for example).
7509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7510 # (--disable-auto-import) libraries
7511 lt_prog_compiler_pic='-DDLL_EXPORT'
7512 ;;
7514 darwin* | rhapsody*)
7515 # PIC is the default on this platform
7516 # Common symbols not allowed in MH_DYLIB files
7517 lt_prog_compiler_pic='-fno-common'
7518 ;;
7520 haiku*)
7521 # PIC is the default for Haiku.
7522 # The "-static" flag exists, but is broken.
7523 lt_prog_compiler_static=
7524 ;;
7526 hpux*)
7527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7529 # sets the default TLS model and affects inlining.
7530 case $host_cpu in
7531 hppa*64*)
7532 # +Z the default
7533 ;;
7534 *)
7535 lt_prog_compiler_pic='-fPIC'
7536 ;;
7537 esac
7538 ;;
7540 interix[3-9]*)
7541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7542 # Instead, we relocate shared libraries at runtime.
7543 ;;
7545 msdosdjgpp*)
7546 # Just because we use GCC doesn't mean we suddenly get shared libraries
7547 # on systems that don't support them.
7548 lt_prog_compiler_can_build_shared=no
7549 enable_shared=no
7550 ;;
7552 *nto* | *qnx*)
7553 # QNX uses GNU C++, but need to define -shared option too, otherwise
7554 # it will coredump.
7555 lt_prog_compiler_pic='-fPIC -shared'
7556 ;;
7558 sysv4*MP*)
7559 if test -d /usr/nec; then
7560 lt_prog_compiler_pic=-Kconform_pic
7561 fi
7562 ;;
7564 *)
7565 lt_prog_compiler_pic='-fPIC'
7566 ;;
7567 esac
7569 case $cc_basename in
7570 nvcc*) # Cuda Compiler Driver 2.2
7571 lt_prog_compiler_wl='-Xlinker '
7572 lt_prog_compiler_pic='-Xcompiler -fPIC'
7573 ;;
7574 esac
7575 else
7576 # PORTME Check for flag to pass linker flags through the system compiler.
7577 case $host_os in
7578 aix*)
7579 lt_prog_compiler_wl='-Wl,'
7580 if test "$host_cpu" = ia64; then
7581 # AIX 5 now supports IA64 processor
7582 lt_prog_compiler_static='-Bstatic'
7583 else
7584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7585 fi
7586 ;;
7588 mingw* | cygwin* | pw32* | os2* | cegcc*)
7589 # This hack is so that the source file can tell whether it is being
7590 # built for inclusion in a dll (and should export symbols for example).
7591 lt_prog_compiler_pic='-DDLL_EXPORT'
7592 ;;
7594 hpux9* | hpux10* | hpux11*)
7595 lt_prog_compiler_wl='-Wl,'
7596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7597 # not for PA HP-UX.
7598 case $host_cpu in
7599 hppa*64*|ia64*)
7600 # +Z the default
7601 ;;
7602 *)
7603 lt_prog_compiler_pic='+Z'
7604 ;;
7605 esac
7606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7607 lt_prog_compiler_static='${wl}-a ${wl}archive'
7608 ;;
7610 irix5* | irix6* | nonstopux*)
7611 lt_prog_compiler_wl='-Wl,'
7612 # PIC (with -KPIC) is the default.
7613 lt_prog_compiler_static='-non_shared'
7614 ;;
7616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7617 case $cc_basename in
7618 # old Intel for x86_64 which still supported -KPIC.
7619 ecc*)
7620 lt_prog_compiler_wl='-Wl,'
7621 lt_prog_compiler_pic='-KPIC'
7622 lt_prog_compiler_static='-static'
7623 ;;
7624 # icc used to be incompatible with GCC.
7625 # ICC 10 doesn't accept -KPIC any more.
7626 icc* | ifort*)
7627 lt_prog_compiler_wl='-Wl,'
7628 lt_prog_compiler_pic='-fPIC'
7629 lt_prog_compiler_static='-static'
7630 ;;
7631 # Lahey Fortran 8.1.
7632 lf95*)
7633 lt_prog_compiler_wl='-Wl,'
7634 lt_prog_compiler_pic='--shared'
7635 lt_prog_compiler_static='--static'
7636 ;;
7637 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7638 # Portland Group compilers (*not* the Pentium gcc compiler,
7639 # which looks to be a dead project)
7640 lt_prog_compiler_wl='-Wl,'
7641 lt_prog_compiler_pic='-fpic'
7642 lt_prog_compiler_static='-Bstatic'
7643 ;;
7644 ccc*)
7645 lt_prog_compiler_wl='-Wl,'
7646 # All Alpha code is PIC.
7647 lt_prog_compiler_static='-non_shared'
7648 ;;
7649 xl* | bgxl* | bgf* | mpixl*)
7650 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7651 lt_prog_compiler_wl='-Wl,'
7652 lt_prog_compiler_pic='-qpic'
7653 lt_prog_compiler_static='-qstaticlink'
7654 ;;
7655 *)
7656 case `$CC -V 2>&1 | sed 5q` in
7657 *Sun\ F* | *Sun*Fortran*)
7658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7659 lt_prog_compiler_pic='-KPIC'
7660 lt_prog_compiler_static='-Bstatic'
7661 lt_prog_compiler_wl=''
7662 ;;
7663 *Sun\ C*)
7664 # Sun C 5.9
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7667 lt_prog_compiler_wl='-Wl,'
7668 ;;
7669 esac
7670 ;;
7671 esac
7672 ;;
7674 newsos6)
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7677 ;;
7679 *nto* | *qnx*)
7680 # QNX uses GNU C++, but need to define -shared option too, otherwise
7681 # it will coredump.
7682 lt_prog_compiler_pic='-fPIC -shared'
7683 ;;
7685 osf3* | osf4* | osf5*)
7686 lt_prog_compiler_wl='-Wl,'
7687 # All OSF/1 code is PIC.
7688 lt_prog_compiler_static='-non_shared'
7689 ;;
7691 rdos*)
7692 lt_prog_compiler_static='-non_shared'
7693 ;;
7695 solaris*)
7696 lt_prog_compiler_pic='-KPIC'
7697 lt_prog_compiler_static='-Bstatic'
7698 case $cc_basename in
7699 f77* | f90* | f95*)
7700 lt_prog_compiler_wl='-Qoption ld ';;
7701 *)
7702 lt_prog_compiler_wl='-Wl,';;
7703 esac
7704 ;;
7706 sunos4*)
7707 lt_prog_compiler_wl='-Qoption ld '
7708 lt_prog_compiler_pic='-PIC'
7709 lt_prog_compiler_static='-Bstatic'
7710 ;;
7712 sysv4 | sysv4.2uw2* | sysv4.3*)
7713 lt_prog_compiler_wl='-Wl,'
7714 lt_prog_compiler_pic='-KPIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 ;;
7718 sysv4*MP*)
7719 if test -d /usr/nec ;then
7720 lt_prog_compiler_pic='-Kconform_pic'
7721 lt_prog_compiler_static='-Bstatic'
7722 fi
7723 ;;
7725 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_pic='-KPIC'
7728 lt_prog_compiler_static='-Bstatic'
7729 ;;
7731 unicos*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_can_build_shared=no
7734 ;;
7736 uts4*)
7737 lt_prog_compiler_pic='-pic'
7738 lt_prog_compiler_static='-Bstatic'
7739 ;;
7741 *)
7742 lt_prog_compiler_can_build_shared=no
7743 ;;
7744 esac
7745 fi
7747 case $host_os in
7748 # For platforms which do not support PIC, -DPIC is meaningless:
7749 *djgpp*)
7750 lt_prog_compiler_pic=
7751 ;;
7752 *)
7753 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7754 ;;
7755 esac
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7757 $as_echo "$lt_prog_compiler_pic" >&6; }
7764 #
7765 # Check to make sure the PIC flag actually works.
7766 #
7767 if test -n "$lt_prog_compiler_pic"; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7769 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7770 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 lt_cv_prog_compiler_pic_works=no
7774 ac_outfile=conftest.$ac_objext
7775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7776 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7777 # Insert the option either (1) after the last *FLAGS variable, or
7778 # (2) before a word containing "conftest.", or (3) at the end.
7779 # Note that $ac_compile itself does not contain backslashes and begins
7780 # with a dollar sign (not a hyphen), so the echo should work correctly.
7781 # The option is referenced via a variable to avoid confusing sed.
7782 lt_compile=`echo "$ac_compile" | $SED \
7783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7785 -e 's:$: $lt_compiler_flag:'`
7786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7787 (eval "$lt_compile" 2>conftest.err)
7788 ac_status=$?
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 if (exit $ac_status) && test -s "$ac_outfile"; then
7792 # The compiler can only warn and ignore the option if not recognized
7793 # So say no if there are warnings other than the usual output.
7794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7795 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7796 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7797 lt_cv_prog_compiler_pic_works=yes
7798 fi
7799 fi
7800 $RM conftest*
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7804 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7806 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7807 case $lt_prog_compiler_pic in
7808 "" | " "*) ;;
7809 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7810 esac
7811 else
7812 lt_prog_compiler_pic=
7813 lt_prog_compiler_can_build_shared=no
7814 fi
7816 fi
7823 #
7824 # Check to make sure the static flag actually works.
7825 #
7826 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7828 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7829 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 lt_cv_prog_compiler_static_works=no
7833 save_LDFLAGS="$LDFLAGS"
7834 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7835 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7836 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7837 # The linker can only warn and ignore the option if not recognized
7838 # So say no if there are warnings
7839 if test -s conftest.err; then
7840 # Append any errors to the config.log.
7841 cat conftest.err 1>&5
7842 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7844 if diff conftest.exp conftest.er2 >/dev/null; then
7845 lt_cv_prog_compiler_static_works=yes
7846 fi
7847 else
7848 lt_cv_prog_compiler_static_works=yes
7849 fi
7850 fi
7851 $RM -r conftest*
7852 LDFLAGS="$save_LDFLAGS"
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7856 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7858 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7859 :
7860 else
7861 lt_prog_compiler_static=
7862 fi
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7871 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7872 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7874 else
7875 lt_cv_prog_compiler_c_o=no
7876 $RM -r conftest 2>/dev/null
7877 mkdir conftest
7878 cd conftest
7879 mkdir out
7880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7882 lt_compiler_flag="-o out/conftest2.$ac_objext"
7883 # Insert the option either (1) after the last *FLAGS variable, or
7884 # (2) before a word containing "conftest.", or (3) at the end.
7885 # Note that $ac_compile itself does not contain backslashes and begins
7886 # with a dollar sign (not a hyphen), so the echo should work correctly.
7887 lt_compile=`echo "$ac_compile" | $SED \
7888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7890 -e 's:$: $lt_compiler_flag:'`
7891 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7892 (eval "$lt_compile" 2>out/conftest.err)
7893 ac_status=$?
7894 cat out/conftest.err >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7897 then
7898 # The compiler can only warn and ignore the option if not recognized
7899 # So say no if there are warnings
7900 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7903 lt_cv_prog_compiler_c_o=yes
7904 fi
7905 fi
7906 chmod u+w . 2>&5
7907 $RM conftest*
7908 # SGI C++ compiler will create directory out/ii_files/ for
7909 # template instantiation
7910 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7911 $RM out/* && rmdir out
7912 cd ..
7913 $RM -r conftest
7914 $RM conftest*
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7918 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7926 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7927 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 lt_cv_prog_compiler_c_o=no
7931 $RM -r conftest 2>/dev/null
7932 mkdir conftest
7933 cd conftest
7934 mkdir out
7935 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7937 lt_compiler_flag="-o out/conftest2.$ac_objext"
7938 # Insert the option either (1) after the last *FLAGS variable, or
7939 # (2) before a word containing "conftest.", or (3) at the end.
7940 # Note that $ac_compile itself does not contain backslashes and begins
7941 # with a dollar sign (not a hyphen), so the echo should work correctly.
7942 lt_compile=`echo "$ac_compile" | $SED \
7943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7945 -e 's:$: $lt_compiler_flag:'`
7946 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7947 (eval "$lt_compile" 2>out/conftest.err)
7948 ac_status=$?
7949 cat out/conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7952 then
7953 # The compiler can only warn and ignore the option if not recognized
7954 # So say no if there are warnings
7955 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7956 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7957 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7958 lt_cv_prog_compiler_c_o=yes
7959 fi
7960 fi
7961 chmod u+w . 2>&5
7962 $RM conftest*
7963 # SGI C++ compiler will create directory out/ii_files/ for
7964 # template instantiation
7965 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7966 $RM out/* && rmdir out
7967 cd ..
7968 $RM -r conftest
7969 $RM conftest*
7971 fi
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7973 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7978 hard_links="nottested"
7979 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7980 # do not overwrite the value of need_locks provided by the user
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7982 $as_echo_n "checking if we can lock with hard links... " >&6; }
7983 hard_links=yes
7984 $RM conftest*
7985 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7986 touch conftest.a
7987 ln conftest.a conftest.b 2>&5 || hard_links=no
7988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7990 $as_echo "$hard_links" >&6; }
7991 if test "$hard_links" = no; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7993 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7994 need_locks=warn
7995 fi
7996 else
7997 need_locks=no
7998 fi
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8008 runpath_var=
8009 allow_undefined_flag=
8010 always_export_symbols=no
8011 archive_cmds=
8012 archive_expsym_cmds=
8013 compiler_needs_object=no
8014 enable_shared_with_static_runtimes=no
8015 export_dynamic_flag_spec=
8016 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8017 hardcode_automatic=no
8018 hardcode_direct=no
8019 hardcode_direct_absolute=no
8020 hardcode_libdir_flag_spec=
8021 hardcode_libdir_flag_spec_ld=
8022 hardcode_libdir_separator=
8023 hardcode_minus_L=no
8024 hardcode_shlibpath_var=unsupported
8025 inherit_rpath=no
8026 link_all_deplibs=unknown
8027 module_cmds=
8028 module_expsym_cmds=
8029 old_archive_from_new_cmds=
8030 old_archive_from_expsyms_cmds=
8031 thread_safe_flag_spec=
8032 whole_archive_flag_spec=
8033 # include_expsyms should be a list of space-separated symbols to be *always*
8034 # included in the symbol list
8035 include_expsyms=
8036 # exclude_expsyms can be an extended regexp of symbols to exclude
8037 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8038 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8039 # as well as any symbol that contains `d'.
8040 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8041 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8042 # platforms (ab)use it in PIC code, but their linkers get confused if
8043 # the symbol is explicitly referenced. Since portable code cannot
8044 # rely on this symbol name, it's probably fine to never include it in
8045 # preloaded symbol tables.
8046 # Exclude shared library initialization/finalization symbols.
8047 extract_expsyms_cmds=
8049 case $host_os in
8050 cygwin* | mingw* | pw32* | cegcc*)
8051 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8052 # When not using gcc, we currently assume that we are using
8053 # Microsoft Visual C++.
8054 if test "$GCC" != yes; then
8055 with_gnu_ld=no
8056 fi
8057 ;;
8058 interix*)
8059 # we just hope/assume this is gcc and not c89 (= MSVC++)
8060 with_gnu_ld=yes
8061 ;;
8062 openbsd*)
8063 with_gnu_ld=no
8064 ;;
8065 esac
8067 ld_shlibs=yes
8069 # On some targets, GNU ld is compatible enough with the native linker
8070 # that we're better off using the native interface for both.
8071 lt_use_gnu_ld_interface=no
8072 if test "$with_gnu_ld" = yes; then
8073 case $host_os in
8074 aix*)
8075 # The AIX port of GNU ld has always aspired to compatibility
8076 # with the native linker. However, as the warning in the GNU ld
8077 # block says, versions before 2.19.5* couldn't really create working
8078 # shared libraries, regardless of the interface used.
8079 case `$LD -v 2>&1` in
8080 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8081 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8082 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8083 *)
8084 lt_use_gnu_ld_interface=yes
8085 ;;
8086 esac
8087 ;;
8088 *)
8089 lt_use_gnu_ld_interface=yes
8090 ;;
8091 esac
8092 fi
8094 if test "$lt_use_gnu_ld_interface" = yes; then
8095 # If archive_cmds runs LD, not CC, wlarc should be empty
8096 wlarc='${wl}'
8098 # Set some defaults for GNU ld with shared library support. These
8099 # are reset later if shared libraries are not supported. Putting them
8100 # here allows them to be overridden if necessary.
8101 runpath_var=LD_RUN_PATH
8102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8103 export_dynamic_flag_spec='${wl}--export-dynamic'
8104 # ancient GNU ld didn't support --whole-archive et. al.
8105 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8106 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8107 else
8108 whole_archive_flag_spec=
8109 fi
8110 supports_anon_versioning=no
8111 case `$LD -v 2>&1` in
8112 *GNU\ gold*) supports_anon_versioning=yes ;;
8113 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8114 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8115 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8116 *\ 2.11.*) ;; # other 2.11 versions
8117 *) supports_anon_versioning=yes ;;
8118 esac
8120 # See if GNU ld supports shared libraries.
8121 case $host_os in
8122 aix[3-9]*)
8123 # On AIX/PPC, the GNU linker is very broken
8124 if test "$host_cpu" != ia64; then
8125 ld_shlibs=no
8126 cat <<_LT_EOF 1>&2
8128 *** Warning: the GNU linker, at least up to release 2.19, is reported
8129 *** to be unable to reliably create shared libraries on AIX.
8130 *** Therefore, libtool is disabling shared libraries support. If you
8131 *** really care for shared libraries, you may want to install binutils
8132 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8133 *** You will then need to restart the configuration process.
8135 _LT_EOF
8136 fi
8137 ;;
8139 amigaos*)
8140 case $host_cpu in
8141 powerpc)
8142 # see comment about AmigaOS4 .so support
8143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144 archive_expsym_cmds=''
8145 ;;
8146 m68k)
8147 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)'
8148 hardcode_libdir_flag_spec='-L$libdir'
8149 hardcode_minus_L=yes
8150 ;;
8151 esac
8152 ;;
8154 beos*)
8155 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8156 allow_undefined_flag=unsupported
8157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8158 # support --undefined. This deserves some investigation. FIXME
8159 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8160 else
8161 ld_shlibs=no
8162 fi
8163 ;;
8165 cygwin* | mingw* | pw32* | cegcc*)
8166 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8167 # as there is no search path for DLLs.
8168 hardcode_libdir_flag_spec='-L$libdir'
8169 export_dynamic_flag_spec='${wl}--export-all-symbols'
8170 allow_undefined_flag=unsupported
8171 always_export_symbols=no
8172 enable_shared_with_static_runtimes=yes
8173 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'
8174 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8178 # If the export-symbols file already is a .def file (1st line
8179 # is EXPORTS), use it as is; otherwise, prepend...
8180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8181 cp $export_symbols $output_objdir/$soname.def;
8182 else
8183 echo EXPORTS > $output_objdir/$soname.def;
8184 cat $export_symbols >> $output_objdir/$soname.def;
8185 fi~
8186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8187 else
8188 ld_shlibs=no
8189 fi
8190 ;;
8192 haiku*)
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194 link_all_deplibs=yes
8195 ;;
8197 interix[3-9]*)
8198 hardcode_direct=no
8199 hardcode_shlibpath_var=no
8200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8201 export_dynamic_flag_spec='${wl}-E'
8202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8203 # Instead, shared libraries are loaded at an image base (0x10000000 by
8204 # default) and relocated if they conflict, which is a slow very memory
8205 # consuming and fragmenting process. To avoid this, we pick a random,
8206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8209 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'
8210 ;;
8212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8213 tmp_diet=no
8214 if test "$host_os" = linux-dietlibc; then
8215 case $cc_basename in
8216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8217 esac
8218 fi
8219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8220 && test "$tmp_diet" = no
8221 then
8222 tmp_addflag=
8223 tmp_sharedflag='-shared'
8224 case $cc_basename,$host_cpu in
8225 pgcc*) # Portland Group C compiler
8226 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'
8227 tmp_addflag=' $pic_flag'
8228 ;;
8229 pgf77* | pgf90* | pgf95* | pgfortran*)
8230 # Portland Group f77 and f90 compilers
8231 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'
8232 tmp_addflag=' $pic_flag -Mnomain' ;;
8233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8234 tmp_addflag=' -i_dynamic' ;;
8235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8236 tmp_addflag=' -i_dynamic -nofor_main' ;;
8237 ifc* | ifort*) # Intel Fortran compiler
8238 tmp_addflag=' -nofor_main' ;;
8239 lf95*) # Lahey Fortran 8.1
8240 whole_archive_flag_spec=
8241 tmp_sharedflag='--shared' ;;
8242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8243 tmp_sharedflag='-qmkshrobj'
8244 tmp_addflag= ;;
8245 nvcc*) # Cuda Compiler Driver 2.2
8246 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'
8247 compiler_needs_object=yes
8248 ;;
8249 esac
8250 case `$CC -V 2>&1 | sed 5q` in
8251 *Sun\ C*) # Sun C 5.9
8252 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'
8253 compiler_needs_object=yes
8254 tmp_sharedflag='-G' ;;
8255 *Sun\ F*) # Sun Fortran 8.3
8256 tmp_sharedflag='-G' ;;
8257 esac
8258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 if test "x$supports_anon_versioning" = xyes; then
8261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8263 echo "local: *; };" >> $output_objdir/$libname.ver~
8264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8265 fi
8267 case $cc_basename in
8268 xlf* | bgf* | bgxlf* | mpixlf*)
8269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8271 hardcode_libdir_flag_spec=
8272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8274 if test "x$supports_anon_versioning" = xyes; then
8275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8277 echo "local: *; };" >> $output_objdir/$libname.ver~
8278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8279 fi
8280 ;;
8281 esac
8282 else
8283 ld_shlibs=no
8284 fi
8285 ;;
8287 netbsd*)
8288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8290 wlarc=
8291 else
8292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8294 fi
8295 ;;
8297 solaris*)
8298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8299 ld_shlibs=no
8300 cat <<_LT_EOF 1>&2
8302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8303 *** create shared libraries on Solaris systems. Therefore, libtool
8304 *** is disabling shared libraries support. We urge you to upgrade GNU
8305 *** binutils to release 2.9.1 or newer. Another option is to modify
8306 *** your PATH or compiler configuration so that the native linker is
8307 *** used, and then restart.
8309 _LT_EOF
8310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8313 else
8314 ld_shlibs=no
8315 fi
8316 ;;
8318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8319 case `$LD -v 2>&1` in
8320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8321 ld_shlibs=no
8322 cat <<_LT_EOF 1>&2
8324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8325 *** reliably create shared libraries on SCO systems. Therefore, libtool
8326 *** is disabling shared libraries support. We urge you to upgrade GNU
8327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8331 _LT_EOF
8332 ;;
8333 *)
8334 # For security reasons, it is highly recommended that you always
8335 # use absolute paths for naming shared libraries, and exclude the
8336 # DT_RUNPATH tag from executables and libraries. But doing so
8337 # requires that you compile everything twice, which is a pain.
8338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8342 else
8343 ld_shlibs=no
8344 fi
8345 ;;
8346 esac
8347 ;;
8349 sunos4*)
8350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8351 wlarc=
8352 hardcode_direct=yes
8353 hardcode_shlibpath_var=no
8354 ;;
8356 *)
8357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8360 else
8361 ld_shlibs=no
8362 fi
8363 ;;
8364 esac
8366 if test "$ld_shlibs" = no; then
8367 runpath_var=
8368 hardcode_libdir_flag_spec=
8369 export_dynamic_flag_spec=
8370 whole_archive_flag_spec=
8371 fi
8372 else
8373 # PORTME fill in a description of your system's linker (not GNU ld)
8374 case $host_os in
8375 aix3*)
8376 allow_undefined_flag=unsupported
8377 always_export_symbols=yes
8378 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'
8379 # Note: this linker hardcodes the directories in LIBPATH if there
8380 # are no directories specified by -L.
8381 hardcode_minus_L=yes
8382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8383 # Neither direct hardcoding nor static linking is supported with a
8384 # broken collect2.
8385 hardcode_direct=unsupported
8386 fi
8387 ;;
8389 aix[4-9]*)
8390 if test "$host_cpu" = ia64; then
8391 # On IA64, the linker does run time linking by default, so we don't
8392 # have to do anything special.
8393 aix_use_runtimelinking=no
8394 exp_sym_flag='-Bexport'
8395 no_entry_flag=""
8396 else
8397 # If we're using GNU nm, then we don't want the "-C" option.
8398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8399 # Also, AIX nm treats weak defined symbols like other global
8400 # defined symbols, whereas GNU nm marks them as "W".
8401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8402 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8403 else
8404 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8405 fi
8406 aix_use_runtimelinking=no
8408 # Test if we are trying to use run time linking or normal
8409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8410 # need to do runtime linking.
8411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8412 for ld_flag in $LDFLAGS; do
8413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8414 aix_use_runtimelinking=yes
8415 break
8416 fi
8417 done
8418 ;;
8419 esac
8421 exp_sym_flag='-bexport'
8422 no_entry_flag='-bnoentry'
8423 fi
8425 # When large executables or shared objects are built, AIX ld can
8426 # have problems creating the table of contents. If linking a library
8427 # or program results in "error TOC overflow" add -mminimal-toc to
8428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8431 archive_cmds=''
8432 hardcode_direct=yes
8433 hardcode_direct_absolute=yes
8434 hardcode_libdir_separator=':'
8435 link_all_deplibs=yes
8436 file_list_spec='${wl}-f,'
8438 if test "$GCC" = yes; then
8439 case $host_os in aix4.[012]|aix4.[012].*)
8440 # We only want to do this on AIX 4.2 and lower, the check
8441 # below for broken collect2 doesn't work under 4.3+
8442 collect2name=`${CC} -print-prog-name=collect2`
8443 if test -f "$collect2name" &&
8444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8445 then
8446 # We have reworked collect2
8447 :
8448 else
8449 # We have old collect2
8450 hardcode_direct=unsupported
8451 # It fails to find uninstalled libraries when the uninstalled
8452 # path is not listed in the libpath. Setting hardcode_minus_L
8453 # to unsupported forces relinking
8454 hardcode_minus_L=yes
8455 hardcode_libdir_flag_spec='-L$libdir'
8456 hardcode_libdir_separator=
8457 fi
8458 ;;
8459 esac
8460 shared_flag='-shared'
8461 if test "$aix_use_runtimelinking" = yes; then
8462 shared_flag="$shared_flag "'${wl}-G'
8463 fi
8464 else
8465 # not using gcc
8466 if test "$host_cpu" = ia64; then
8467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8468 # chokes on -Wl,-G. The following line is correct:
8469 shared_flag='-G'
8470 else
8471 if test "$aix_use_runtimelinking" = yes; then
8472 shared_flag='${wl}-G'
8473 else
8474 shared_flag='${wl}-bM:SRE'
8475 fi
8476 fi
8477 fi
8479 export_dynamic_flag_spec='${wl}-bexpall'
8480 # It seems that -bexpall does not export symbols beginning with
8481 # underscore (_), so it is better to generate a list of symbols to export.
8482 always_export_symbols=yes
8483 if test "$aix_use_runtimelinking" = yes; then
8484 # Warning - without using the other runtime loading flags (-brtl),
8485 # -berok will link without error, but may produce a broken library.
8486 allow_undefined_flag='-berok'
8487 # Determine the default libpath from the value encoded in an
8488 # empty executable.
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8492 int
8493 main ()
8494 {
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 if ac_fn_c_try_link "$LINENO"; then :
8502 lt_aix_libpath_sed='
8503 /Import File Strings/,/^$/ {
8504 /^0/ {
8505 s/^0 *\(.*\)$/\1/
8506 p
8507 }
8508 }'
8509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 # Check for a 64-bit object if we didn't find anything.
8511 if test -z "$aix_libpath"; then
8512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513 fi
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8521 else
8522 if test "$host_cpu" = ia64; then
8523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8524 allow_undefined_flag="-z nodefs"
8525 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"
8526 else
8527 # Determine the default libpath from the value encoded in an
8528 # empty executable.
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8532 int
8533 main ()
8534 {
8536 ;
8537 return 0;
8538 }
8539 _ACEOF
8540 if ac_fn_c_try_link "$LINENO"; then :
8542 lt_aix_libpath_sed='
8543 /Import File Strings/,/^$/ {
8544 /^0/ {
8545 s/^0 *\(.*\)$/\1/
8546 p
8547 }
8548 }'
8549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8550 # Check for a 64-bit object if we didn't find anything.
8551 if test -z "$aix_libpath"; then
8552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8553 fi
8554 fi
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8560 # Warning - without using the other run time loading flags,
8561 # -berok will link without error, but may produce a broken library.
8562 no_undefined_flag=' ${wl}-bernotok'
8563 allow_undefined_flag=' ${wl}-berok'
8564 if test "$with_gnu_ld" = yes; then
8565 # We only use this code for GNU lds that support --whole-archive.
8566 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8567 else
8568 # Exported symbols can be pulled into shared objects from archives
8569 whole_archive_flag_spec='$convenience'
8570 fi
8571 archive_cmds_need_lc=yes
8572 # This is similar to how AIX traditionally builds its shared libraries.
8573 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8574 fi
8575 fi
8576 ;;
8578 amigaos*)
8579 case $host_cpu in
8580 powerpc)
8581 # see comment about AmigaOS4 .so support
8582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583 archive_expsym_cmds=''
8584 ;;
8585 m68k)
8586 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)'
8587 hardcode_libdir_flag_spec='-L$libdir'
8588 hardcode_minus_L=yes
8589 ;;
8590 esac
8591 ;;
8593 bsdi[45]*)
8594 export_dynamic_flag_spec=-rdynamic
8595 ;;
8597 cygwin* | mingw* | pw32* | cegcc*)
8598 # When not using gcc, we currently assume that we are using
8599 # Microsoft Visual C++.
8600 # hardcode_libdir_flag_spec is actually meaningless, as there is
8601 # no search path for DLLs.
8602 hardcode_libdir_flag_spec=' '
8603 allow_undefined_flag=unsupported
8604 # Tell ltmain to make .lib files, not .a files.
8605 libext=lib
8606 # Tell ltmain to make .dll files, not .so files.
8607 shrext_cmds=".dll"
8608 # FIXME: Setting linknames here is a bad hack.
8609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8610 # The linker will automatically build a .lib file if we build a DLL.
8611 old_archive_from_new_cmds='true'
8612 # FIXME: Should let the user specify the lib program.
8613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8614 fix_srcfile_path='`cygpath -w "$srcfile"`'
8615 enable_shared_with_static_runtimes=yes
8616 ;;
8618 darwin* | rhapsody*)
8621 archive_cmds_need_lc=no
8622 hardcode_direct=no
8623 hardcode_automatic=yes
8624 hardcode_shlibpath_var=unsupported
8625 if test "$lt_cv_ld_force_load" = "yes"; then
8626 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\"`'
8627 else
8628 whole_archive_flag_spec=''
8629 fi
8630 link_all_deplibs=yes
8631 allow_undefined_flag="$_lt_dar_allow_undefined"
8632 case $cc_basename in
8633 ifort*) _lt_dar_can_shared=yes ;;
8634 *) _lt_dar_can_shared=$GCC ;;
8635 esac
8636 if test "$_lt_dar_can_shared" = "yes"; then
8637 output_verbose_link_cmd=func_echo_all
8638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8640 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}"
8641 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}"
8643 else
8644 ld_shlibs=no
8645 fi
8647 ;;
8649 dgux*)
8650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8651 hardcode_libdir_flag_spec='-L$libdir'
8652 hardcode_shlibpath_var=no
8653 ;;
8655 freebsd1*)
8656 ld_shlibs=no
8657 ;;
8659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8660 # support. Future versions do this automatically, but an explicit c++rt0.o
8661 # does not break anything, and helps significantly (at the cost of a little
8662 # extra space).
8663 freebsd2.2*)
8664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8665 hardcode_libdir_flag_spec='-R$libdir'
8666 hardcode_direct=yes
8667 hardcode_shlibpath_var=no
8668 ;;
8670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8671 freebsd2*)
8672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_direct=yes
8674 hardcode_minus_L=yes
8675 hardcode_shlibpath_var=no
8676 ;;
8678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8679 freebsd* | dragonfly*)
8680 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8681 hardcode_libdir_flag_spec='-R$libdir'
8682 hardcode_direct=yes
8683 hardcode_shlibpath_var=no
8684 ;;
8686 hpux9*)
8687 if test "$GCC" = yes; then
8688 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8689 else
8690 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8691 fi
8692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8693 hardcode_libdir_separator=:
8694 hardcode_direct=yes
8696 # hardcode_minus_L: Not really in the search PATH,
8697 # but as the default location of the library.
8698 hardcode_minus_L=yes
8699 export_dynamic_flag_spec='${wl}-E'
8700 ;;
8702 hpux10*)
8703 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8704 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8705 else
8706 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8707 fi
8708 if test "$with_gnu_ld" = no; then
8709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8710 hardcode_libdir_flag_spec_ld='+b $libdir'
8711 hardcode_libdir_separator=:
8712 hardcode_direct=yes
8713 hardcode_direct_absolute=yes
8714 export_dynamic_flag_spec='${wl}-E'
8715 # hardcode_minus_L: Not really in the search PATH,
8716 # but as the default location of the library.
8717 hardcode_minus_L=yes
8718 fi
8719 ;;
8721 hpux11*)
8722 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8723 case $host_cpu in
8724 hppa*64*)
8725 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726 ;;
8727 ia64*)
8728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8729 ;;
8730 *)
8731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8732 ;;
8733 esac
8734 else
8735 case $host_cpu in
8736 hppa*64*)
8737 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 ;;
8739 ia64*)
8740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741 ;;
8742 *)
8744 # Older versions of the 11.00 compiler do not understand -b yet
8745 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8747 $as_echo_n "checking if $CC understands -b... " >&6; }
8748 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 lt_cv_prog_compiler__b=no
8752 save_LDFLAGS="$LDFLAGS"
8753 LDFLAGS="$LDFLAGS -b"
8754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8756 # The linker can only warn and ignore the option if not recognized
8757 # So say no if there are warnings
8758 if test -s conftest.err; then
8759 # Append any errors to the config.log.
8760 cat conftest.err 1>&5
8761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763 if diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler__b=yes
8765 fi
8766 else
8767 lt_cv_prog_compiler__b=yes
8768 fi
8769 fi
8770 $RM -r conftest*
8771 LDFLAGS="$save_LDFLAGS"
8773 fi
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8775 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8777 if test x"$lt_cv_prog_compiler__b" = xyes; then
8778 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8779 else
8780 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8781 fi
8783 ;;
8784 esac
8785 fi
8786 if test "$with_gnu_ld" = no; then
8787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8788 hardcode_libdir_separator=:
8790 case $host_cpu in
8791 hppa*64*|ia64*)
8792 hardcode_direct=no
8793 hardcode_shlibpath_var=no
8794 ;;
8795 *)
8796 hardcode_direct=yes
8797 hardcode_direct_absolute=yes
8798 export_dynamic_flag_spec='${wl}-E'
8800 # hardcode_minus_L: Not really in the search PATH,
8801 # but as the default location of the library.
8802 hardcode_minus_L=yes
8803 ;;
8804 esac
8805 fi
8806 ;;
8808 irix5* | irix6* | nonstopux*)
8809 if test "$GCC" = yes; then
8810 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8811 # Try to use the -exported_symbol ld option, if it does not
8812 # work, assume that -exports_file does not work either and
8813 # implicitly export all symbols.
8814 save_LDFLAGS="$LDFLAGS"
8815 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int foo(void) {}
8819 _ACEOF
8820 if ac_fn_c_try_link "$LINENO"; then :
8821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LDFLAGS="$save_LDFLAGS"
8827 else
8828 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'
8829 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'
8830 fi
8831 archive_cmds_need_lc='no'
8832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833 hardcode_libdir_separator=:
8834 inherit_rpath=yes
8835 link_all_deplibs=yes
8836 ;;
8838 netbsd*)
8839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8841 else
8842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8843 fi
8844 hardcode_libdir_flag_spec='-R$libdir'
8845 hardcode_direct=yes
8846 hardcode_shlibpath_var=no
8847 ;;
8849 newsos6)
8850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8851 hardcode_direct=yes
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 hardcode_libdir_separator=:
8854 hardcode_shlibpath_var=no
8855 ;;
8857 *nto* | *qnx*)
8858 ;;
8860 openbsd*)
8861 if test -f /usr/libexec/ld.so; then
8862 hardcode_direct=yes
8863 hardcode_shlibpath_var=no
8864 hardcode_direct_absolute=yes
8865 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8866 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8867 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8868 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8869 export_dynamic_flag_spec='${wl}-E'
8870 else
8871 case $host_os in
8872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8874 hardcode_libdir_flag_spec='-R$libdir'
8875 ;;
8876 *)
8877 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8878 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8879 ;;
8880 esac
8881 fi
8882 else
8883 ld_shlibs=no
8884 fi
8885 ;;
8887 os2*)
8888 hardcode_libdir_flag_spec='-L$libdir'
8889 hardcode_minus_L=yes
8890 allow_undefined_flag=unsupported
8891 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8892 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8893 ;;
8895 osf3*)
8896 if test "$GCC" = yes; then
8897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8898 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'
8899 else
8900 allow_undefined_flag=' -expect_unresolved \*'
8901 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'
8902 fi
8903 archive_cmds_need_lc='no'
8904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905 hardcode_libdir_separator=:
8906 ;;
8908 osf4* | osf5*) # as osf3* with the addition of -msym flag
8909 if test "$GCC" = yes; then
8910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8911 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8913 else
8914 allow_undefined_flag=' -expect_unresolved \*'
8915 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'
8916 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~
8917 $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'
8919 # Both c and cxx compiler support -rpath directly
8920 hardcode_libdir_flag_spec='-rpath $libdir'
8921 fi
8922 archive_cmds_need_lc='no'
8923 hardcode_libdir_separator=:
8924 ;;
8926 solaris*)
8927 no_undefined_flag=' -z defs'
8928 if test "$GCC" = yes; then
8929 wlarc='${wl}'
8930 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8932 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8933 else
8934 case `$CC -V 2>&1` in
8935 *"Compilers 5.0"*)
8936 wlarc=''
8937 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8940 ;;
8941 *)
8942 wlarc='${wl}'
8943 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8945 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8946 ;;
8947 esac
8948 fi
8949 hardcode_libdir_flag_spec='-R$libdir'
8950 hardcode_shlibpath_var=no
8951 case $host_os in
8952 solaris2.[0-5] | solaris2.[0-5].*) ;;
8953 *)
8954 # The compiler driver will combine and reorder linker options,
8955 # but understands `-z linker_flag'. GCC discards it without `$wl',
8956 # but is careful enough not to reorder.
8957 # Supported since Solaris 2.6 (maybe 2.5.1?)
8958 if test "$GCC" = yes; then
8959 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8960 else
8961 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8962 fi
8963 ;;
8964 esac
8965 link_all_deplibs=yes
8966 ;;
8968 sunos4*)
8969 if test "x$host_vendor" = xsequent; then
8970 # Use $CC to link under sequent, because it throws in some extra .o
8971 # files that make .init and .fini sections work.
8972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8973 else
8974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8975 fi
8976 hardcode_libdir_flag_spec='-L$libdir'
8977 hardcode_direct=yes
8978 hardcode_minus_L=yes
8979 hardcode_shlibpath_var=no
8980 ;;
8982 sysv4)
8983 case $host_vendor in
8984 sni)
8985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8986 hardcode_direct=yes # is this really true???
8987 ;;
8988 siemens)
8989 ## LD is ld it makes a PLAMLIB
8990 ## CC just makes a GrossModule.
8991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8992 reload_cmds='$CC -r -o $output$reload_objs'
8993 hardcode_direct=no
8994 ;;
8995 motorola)
8996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8998 ;;
8999 esac
9000 runpath_var='LD_RUN_PATH'
9001 hardcode_shlibpath_var=no
9002 ;;
9004 sysv4.3*)
9005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9006 hardcode_shlibpath_var=no
9007 export_dynamic_flag_spec='-Bexport'
9008 ;;
9010 sysv4*MP*)
9011 if test -d /usr/nec; then
9012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 hardcode_shlibpath_var=no
9014 runpath_var=LD_RUN_PATH
9015 hardcode_runpath_var=yes
9016 ld_shlibs=yes
9017 fi
9018 ;;
9020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9021 no_undefined_flag='${wl}-z,text'
9022 archive_cmds_need_lc=no
9023 hardcode_shlibpath_var=no
9024 runpath_var='LD_RUN_PATH'
9026 if test "$GCC" = yes; then
9027 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 else
9030 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9031 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 fi
9033 ;;
9035 sysv5* | sco3.2v5* | sco5v6*)
9036 # Note: We can NOT use -z defs as we might desire, because we do not
9037 # link with -lc, and that would cause any symbols used from libc to
9038 # always be unresolved, which means just about no library would
9039 # ever link correctly. If we're not using GNU ld we use -z text
9040 # though, which does catch some bad symbols but isn't as heavy-handed
9041 # as -z defs.
9042 no_undefined_flag='${wl}-z,text'
9043 allow_undefined_flag='${wl}-z,nodefs'
9044 archive_cmds_need_lc=no
9045 hardcode_shlibpath_var=no
9046 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9047 hardcode_libdir_separator=':'
9048 link_all_deplibs=yes
9049 export_dynamic_flag_spec='${wl}-Bexport'
9050 runpath_var='LD_RUN_PATH'
9052 if test "$GCC" = yes; then
9053 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 else
9056 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 fi
9059 ;;
9061 uts4*)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_libdir_flag_spec='-L$libdir'
9064 hardcode_shlibpath_var=no
9065 ;;
9067 *)
9068 ld_shlibs=no
9069 ;;
9070 esac
9072 if test x$host_vendor = xsni; then
9073 case $host in
9074 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9075 export_dynamic_flag_spec='${wl}-Blargedynsym'
9076 ;;
9077 esac
9078 fi
9079 fi
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9082 $as_echo "$ld_shlibs" >&6; }
9083 test "$ld_shlibs" = no && can_build_shared=no
9085 with_gnu_ld=$with_gnu_ld
9101 #
9102 # Do we need to explicitly link libc?
9103 #
9104 case "x$archive_cmds_need_lc" in
9105 x|xyes)
9106 # Assume -lc should be added
9107 archive_cmds_need_lc=yes
9109 if test "$enable_shared" = yes && test "$GCC" = yes; then
9110 case $archive_cmds in
9111 *'~'*)
9112 # FIXME: we may have to deal with multi-command sequences.
9113 ;;
9114 '$CC '*)
9115 # Test whether the compiler implicitly links with -lc since on some
9116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9117 # to ld, don't add -lc before -lgcc.
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9119 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9120 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 $RM conftest*
9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9127 (eval $ac_compile) 2>&5
9128 ac_status=$?
9129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9130 test $ac_status = 0; } 2>conftest.err; then
9131 soname=conftest
9132 lib=conftest
9133 libobjs=conftest.$ac_objext
9134 deplibs=
9135 wl=$lt_prog_compiler_wl
9136 pic_flag=$lt_prog_compiler_pic
9137 compiler_flags=-v
9138 linker_flags=-v
9139 verstring=
9140 output_objdir=.
9141 libname=conftest
9142 lt_save_allow_undefined_flag=$allow_undefined_flag
9143 allow_undefined_flag=
9144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9145 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9146 ac_status=$?
9147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9148 test $ac_status = 0; }
9149 then
9150 lt_cv_archive_cmds_need_lc=no
9151 else
9152 lt_cv_archive_cmds_need_lc=yes
9153 fi
9154 allow_undefined_flag=$lt_save_allow_undefined_flag
9155 else
9156 cat conftest.err 1>&5
9157 fi
9158 $RM conftest*
9160 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9162 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9163 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9164 ;;
9165 esac
9166 fi
9167 ;;
9168 esac
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9329 if test "$GCC" = yes; then
9330 case $host_os in
9331 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9332 *) lt_awk_arg="/^libraries:/" ;;
9333 esac
9334 case $host_os in
9335 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9336 *) lt_sed_strip_eq="s,=/,/,g" ;;
9337 esac
9338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9339 case $lt_search_path_spec in
9340 *\;*)
9341 # if the path contains ";" then we assume it to be the separator
9342 # otherwise default to the standard path separator (i.e. ":") - it is
9343 # assumed that no part of a normal pathname contains ";" but that should
9344 # okay in the real world where ";" in dirpaths is itself problematic.
9345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9346 ;;
9347 *)
9348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9349 ;;
9350 esac
9351 # Ok, now we have the path, separated by spaces, we can step through it
9352 # and add multilib dir if necessary.
9353 lt_tmp_lt_search_path_spec=
9354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9355 for lt_sys_path in $lt_search_path_spec; do
9356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9358 else
9359 test -d "$lt_sys_path" && \
9360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9361 fi
9362 done
9363 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9364 BEGIN {RS=" "; FS="/|\n";} {
9365 lt_foo="";
9366 lt_count=0;
9367 for (lt_i = NF; lt_i > 0; lt_i--) {
9368 if ($lt_i != "" && $lt_i != ".") {
9369 if ($lt_i == "..") {
9370 lt_count++;
9371 } else {
9372 if (lt_count == 0) {
9373 lt_foo="/" $lt_i lt_foo;
9374 } else {
9375 lt_count--;
9376 }
9377 }
9378 }
9379 }
9380 if (lt_foo != "") { lt_freq[lt_foo]++; }
9381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9382 }'`
9383 # AWK program above erroneously prepends '/' to C:/dos/paths
9384 # for these hosts.
9385 case $host_os in
9386 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9387 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9388 esac
9389 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9390 else
9391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9392 fi
9393 library_names_spec=
9394 libname_spec='lib$name'
9395 soname_spec=
9396 shrext_cmds=".so"
9397 postinstall_cmds=
9398 postuninstall_cmds=
9399 finish_cmds=
9400 finish_eval=
9401 shlibpath_var=
9402 shlibpath_overrides_runpath=unknown
9403 version_type=none
9404 dynamic_linker="$host_os ld.so"
9405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9406 need_lib_prefix=unknown
9407 hardcode_into_libs=no
9409 # when you set need_version to no, make sure it does not cause -set_version
9410 # flags to be left without arguments
9411 need_version=unknown
9413 case $host_os in
9414 aix3*)
9415 version_type=linux
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9417 shlibpath_var=LIBPATH
9419 # AIX 3 has no versioning support, so we append a major version to the name.
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 ;;
9423 aix[4-9]*)
9424 version_type=linux
9425 need_lib_prefix=no
9426 need_version=no
9427 hardcode_into_libs=yes
9428 if test "$host_cpu" = ia64; then
9429 # AIX 5 supports IA64
9430 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9431 shlibpath_var=LD_LIBRARY_PATH
9432 else
9433 # With GCC up to 2.95.x, collect2 would create an import file
9434 # for dependence libraries. The import file would start with
9435 # the line `#! .'. This would cause the generated library to
9436 # depend on `.', always an invalid library. This was fixed in
9437 # development snapshots of GCC prior to 3.0.
9438 case $host_os in
9439 aix4 | aix4.[01] | aix4.[01].*)
9440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9441 echo ' yes '
9442 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9443 :
9444 else
9445 can_build_shared=no
9446 fi
9447 ;;
9448 esac
9449 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9450 # soname into executable. Probably we can add versioning support to
9451 # collect2, so additional links can be useful in future.
9452 if test "$aix_use_runtimelinking" = yes; then
9453 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9454 # instead of lib<name>.a to let people know that these are not
9455 # typical AIX shared libraries.
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 else
9458 # We preserve .a as extension for shared libraries through AIX4.2
9459 # and later when we are not doing run time linking.
9460 library_names_spec='${libname}${release}.a $libname.a'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 fi
9463 shlibpath_var=LIBPATH
9464 fi
9465 ;;
9467 amigaos*)
9468 case $host_cpu in
9469 powerpc)
9470 # Since July 2007 AmigaOS4 officially supports .so libraries.
9471 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 ;;
9474 m68k)
9475 library_names_spec='$libname.ixlibrary $libname.a'
9476 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9477 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9478 ;;
9479 esac
9480 ;;
9482 beos*)
9483 library_names_spec='${libname}${shared_ext}'
9484 dynamic_linker="$host_os ld.so"
9485 shlibpath_var=LIBRARY_PATH
9486 ;;
9488 bsdi[45]*)
9489 version_type=linux
9490 need_version=no
9491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9493 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9496 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9497 # the default ld.so.conf also contains /usr/contrib/lib and
9498 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9499 # libtool to hard-code these into programs
9500 ;;
9502 cygwin* | mingw* | pw32* | cegcc*)
9503 version_type=windows
9504 shrext_cmds=".dll"
9505 need_version=no
9506 need_lib_prefix=no
9508 case $GCC,$host_os in
9509 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9510 library_names_spec='$libname.dll.a'
9511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9512 postinstall_cmds='base_file=`basename \${file}`~
9513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9514 dldir=$destdir/`dirname \$dlpath`~
9515 test -d \$dldir || mkdir -p \$dldir~
9516 $install_prog $dir/$dlname \$dldir/$dlname~
9517 chmod a+x \$dldir/$dlname~
9518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9520 fi'
9521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9522 dlpath=$dir/\$dldll~
9523 $RM \$dlpath'
9524 shlibpath_overrides_runpath=yes
9526 case $host_os in
9527 cygwin*)
9528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9532 ;;
9533 mingw* | cegcc*)
9534 # MinGW DLLs use traditional 'lib' prefix
9535 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9536 ;;
9537 pw32*)
9538 # pw32 DLLs use 'pw' prefix rather than 'lib'
9539 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9540 ;;
9541 esac
9542 ;;
9544 *)
9545 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9546 ;;
9547 esac
9548 dynamic_linker='Win32 ld.exe'
9549 # FIXME: first we should search . and the directory the executable is in
9550 shlibpath_var=PATH
9551 ;;
9553 darwin* | rhapsody*)
9554 dynamic_linker="$host_os dyld"
9555 version_type=darwin
9556 need_lib_prefix=no
9557 need_version=no
9558 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9559 soname_spec='${libname}${release}${major}$shared_ext'
9560 shlibpath_overrides_runpath=yes
9561 shlibpath_var=DYLD_LIBRARY_PATH
9562 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9565 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9566 ;;
9568 dgux*)
9569 version_type=linux
9570 need_lib_prefix=no
9571 need_version=no
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9573 soname_spec='${libname}${release}${shared_ext}$major'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 ;;
9577 freebsd1*)
9578 dynamic_linker=no
9579 ;;
9581 freebsd* | dragonfly*)
9582 # DragonFly does not have aout. When/if they implement a new
9583 # versioning mechanism, adjust this.
9584 if test -x /usr/bin/objformat; then
9585 objformat=`/usr/bin/objformat`
9586 else
9587 case $host_os in
9588 freebsd[123]*) objformat=aout ;;
9589 *) objformat=elf ;;
9590 esac
9591 fi
9592 version_type=freebsd-$objformat
9593 case $version_type in
9594 freebsd-elf*)
9595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9596 need_version=no
9597 need_lib_prefix=no
9598 ;;
9599 freebsd-*)
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9601 need_version=yes
9602 ;;
9603 esac
9604 shlibpath_var=LD_LIBRARY_PATH
9605 case $host_os in
9606 freebsd2*)
9607 shlibpath_overrides_runpath=yes
9608 ;;
9609 freebsd3.[01]* | freebsdelf3.[01]*)
9610 shlibpath_overrides_runpath=yes
9611 hardcode_into_libs=yes
9612 ;;
9613 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9614 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9615 shlibpath_overrides_runpath=no
9616 hardcode_into_libs=yes
9617 ;;
9618 *) # from 4.6 on, and DragonFly
9619 shlibpath_overrides_runpath=yes
9620 hardcode_into_libs=yes
9621 ;;
9622 esac
9623 ;;
9625 gnu*)
9626 version_type=linux
9627 need_lib_prefix=no
9628 need_version=no
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 hardcode_into_libs=yes
9633 ;;
9635 haiku*)
9636 version_type=linux
9637 need_lib_prefix=no
9638 need_version=no
9639 dynamic_linker="$host_os runtime_loader"
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LIBRARY_PATH
9643 shlibpath_overrides_runpath=yes
9644 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9645 hardcode_into_libs=yes
9646 ;;
9648 hpux9* | hpux10* | hpux11*)
9649 # Give a soname corresponding to the major version so that dld.sl refuses to
9650 # link against other versions.
9651 version_type=sunos
9652 need_lib_prefix=no
9653 need_version=no
9654 case $host_cpu in
9655 ia64*)
9656 shrext_cmds='.so'
9657 hardcode_into_libs=yes
9658 dynamic_linker="$host_os dld.so"
9659 shlibpath_var=LD_LIBRARY_PATH
9660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 if test "X$HPUX_IA64_MODE" = X32; then
9664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9665 else
9666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9667 fi
9668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9669 ;;
9670 hppa*64*)
9671 shrext_cmds='.sl'
9672 hardcode_into_libs=yes
9673 dynamic_linker="$host_os dld.sl"
9674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9677 soname_spec='${libname}${release}${shared_ext}$major'
9678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9680 ;;
9681 *)
9682 shrext_cmds='.sl'
9683 dynamic_linker="$host_os dld.sl"
9684 shlibpath_var=SHLIB_PATH
9685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 ;;
9689 esac
9690 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9691 postinstall_cmds='chmod 555 $lib'
9692 # or fails outright, so override atomically:
9693 install_override_mode=555
9694 ;;
9696 interix[3-9]*)
9697 version_type=linux
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9706 ;;
9708 irix5* | irix6* | nonstopux*)
9709 case $host_os in
9710 nonstopux*) version_type=nonstopux ;;
9711 *)
9712 if test "$lt_cv_prog_gnu_ld" = yes; then
9713 version_type=linux
9714 else
9715 version_type=irix
9716 fi ;;
9717 esac
9718 need_lib_prefix=no
9719 need_version=no
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9722 case $host_os in
9723 irix5* | nonstopux*)
9724 libsuff= shlibsuff=
9725 ;;
9726 *)
9727 case $LD in # libtool.m4 will add one of these switches to LD
9728 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9729 libsuff= shlibsuff= libmagic=32-bit;;
9730 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9731 libsuff=32 shlibsuff=N32 libmagic=N32;;
9732 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9733 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9734 *) libsuff= shlibsuff= libmagic=never-match;;
9735 esac
9736 ;;
9737 esac
9738 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9739 shlibpath_overrides_runpath=no
9740 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9741 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9742 hardcode_into_libs=yes
9743 ;;
9745 # No shared lib support for Linux oldld, aout, or coff.
9746 linux*oldld* | linux*aout* | linux*coff*)
9747 dynamic_linker=no
9748 ;;
9750 # This must be Linux ELF.
9751 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9752 version_type=linux
9753 need_lib_prefix=no
9754 need_version=no
9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756 soname_spec='${libname}${release}${shared_ext}$major'
9757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=no
9761 # Some binutils ld are patched to set DT_RUNPATH
9762 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9764 else
9765 lt_cv_shlibpath_overrides_runpath=no
9766 save_LDFLAGS=$LDFLAGS
9767 save_libdir=$libdir
9768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9773 int
9774 main ()
9775 {
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_link "$LINENO"; then :
9782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9783 lt_cv_shlibpath_overrides_runpath=yes
9784 fi
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext \
9787 conftest$ac_exeext conftest.$ac_ext
9788 LDFLAGS=$save_LDFLAGS
9789 libdir=$save_libdir
9791 fi
9793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9795 # This implies no fast_install, which is unacceptable.
9796 # Some rework will be needed to allow for fast_install
9797 # before this can be enabled.
9798 hardcode_into_libs=yes
9800 # Append ld.so.conf contents to the search path
9801 if test -f /etc/ld.so.conf; then
9802 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' ' '`
9803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9804 fi
9806 # We used to test for /lib/ld.so.1 and disable shared libraries on
9807 # powerpc, because MkLinux only supported shared libraries with the
9808 # GNU dynamic linker. Since this was broken with cross compilers,
9809 # most powerpc-linux boxes support dynamic linking these days and
9810 # people can always --disable-shared, the test was removed, and we
9811 # assume the GNU/Linux dynamic linker is in use.
9812 dynamic_linker='GNU/Linux ld.so'
9813 ;;
9815 netbsd*)
9816 version_type=sunos
9817 need_lib_prefix=no
9818 need_version=no
9819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9822 dynamic_linker='NetBSD (a.out) ld.so'
9823 else
9824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9825 soname_spec='${libname}${release}${shared_ext}$major'
9826 dynamic_linker='NetBSD ld.elf_so'
9827 fi
9828 shlibpath_var=LD_LIBRARY_PATH
9829 shlibpath_overrides_runpath=yes
9830 hardcode_into_libs=yes
9831 ;;
9833 newsos6)
9834 version_type=linux
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 ;;
9840 *nto* | *qnx*)
9841 version_type=qnx
9842 need_lib_prefix=no
9843 need_version=no
9844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845 soname_spec='${libname}${release}${shared_ext}$major'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=no
9848 hardcode_into_libs=yes
9849 dynamic_linker='ldqnx.so'
9850 ;;
9852 openbsd*)
9853 version_type=sunos
9854 sys_lib_dlsearch_path_spec="/usr/lib"
9855 need_lib_prefix=no
9856 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9857 case $host_os in
9858 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9859 *) need_version=no ;;
9860 esac
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9865 case $host_os in
9866 openbsd2.[89] | openbsd2.[89].*)
9867 shlibpath_overrides_runpath=no
9868 ;;
9869 *)
9870 shlibpath_overrides_runpath=yes
9871 ;;
9872 esac
9873 else
9874 shlibpath_overrides_runpath=yes
9875 fi
9876 ;;
9878 os2*)
9879 libname_spec='$name'
9880 shrext_cmds=".dll"
9881 need_lib_prefix=no
9882 library_names_spec='$libname${shared_ext} $libname.a'
9883 dynamic_linker='OS/2 ld.exe'
9884 shlibpath_var=LIBPATH
9885 ;;
9887 osf3* | osf4* | osf5*)
9888 version_type=osf
9889 need_lib_prefix=no
9890 need_version=no
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9893 shlibpath_var=LD_LIBRARY_PATH
9894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9896 ;;
9898 rdos*)
9899 dynamic_linker=no
9900 ;;
9902 solaris*)
9903 version_type=linux
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 shlibpath_overrides_runpath=yes
9910 hardcode_into_libs=yes
9911 # ldd complains unless libraries are executable
9912 postinstall_cmds='chmod +x $lib'
9913 ;;
9915 sunos4*)
9916 version_type=sunos
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=yes
9921 if test "$with_gnu_ld" = yes; then
9922 need_lib_prefix=no
9923 fi
9924 need_version=yes
9925 ;;
9927 sysv4 | sysv4.3*)
9928 version_type=linux
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9932 case $host_vendor in
9933 sni)
9934 shlibpath_overrides_runpath=no
9935 need_lib_prefix=no
9936 runpath_var=LD_RUN_PATH
9937 ;;
9938 siemens)
9939 need_lib_prefix=no
9940 ;;
9941 motorola)
9942 need_lib_prefix=no
9943 need_version=no
9944 shlibpath_overrides_runpath=no
9945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9946 ;;
9947 esac
9948 ;;
9950 sysv4*MP*)
9951 if test -d /usr/nec ;then
9952 version_type=linux
9953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9954 soname_spec='$libname${shared_ext}.$major'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 fi
9957 ;;
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9960 version_type=freebsd-elf
9961 need_lib_prefix=no
9962 need_version=no
9963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9964 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LD_LIBRARY_PATH
9966 shlibpath_overrides_runpath=yes
9967 hardcode_into_libs=yes
9968 if test "$with_gnu_ld" = yes; then
9969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9970 else
9971 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9972 case $host_os in
9973 sco3.2v5*)
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9975 ;;
9976 esac
9977 fi
9978 sys_lib_dlsearch_path_spec='/usr/lib'
9979 ;;
9981 tpf*)
9982 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9983 version_type=linux
9984 need_lib_prefix=no
9985 need_version=no
9986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=no
9989 hardcode_into_libs=yes
9990 ;;
9992 uts4*)
9993 version_type=linux
9994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995 soname_spec='${libname}${release}${shared_ext}$major'
9996 shlibpath_var=LD_LIBRARY_PATH
9997 ;;
9999 *)
10000 dynamic_linker=no
10001 ;;
10002 esac
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10004 $as_echo "$dynamic_linker" >&6; }
10005 test "$dynamic_linker" = no && can_build_shared=no
10007 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10008 if test "$GCC" = yes; then
10009 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10010 fi
10012 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10013 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10014 fi
10015 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10016 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10017 fi
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10111 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10112 hardcode_action=
10113 if test -n "$hardcode_libdir_flag_spec" ||
10114 test -n "$runpath_var" ||
10115 test "X$hardcode_automatic" = "Xyes" ; then
10117 # We can hardcode non-existent directories.
10118 if test "$hardcode_direct" != no &&
10119 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10120 # have to relink, otherwise we might link with an installed library
10121 # when we should be linking with a yet-to-be-installed one
10122 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10123 test "$hardcode_minus_L" != no; then
10124 # Linking always hardcodes the temporary library directory.
10125 hardcode_action=relink
10126 else
10127 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10128 hardcode_action=immediate
10129 fi
10130 else
10131 # We cannot hardcode anything, or else we can only hardcode existing
10132 # directories.
10133 hardcode_action=unsupported
10134 fi
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10136 $as_echo "$hardcode_action" >&6; }
10138 if test "$hardcode_action" = relink ||
10139 test "$inherit_rpath" = yes; then
10140 # Fast installation is not supported
10141 enable_fast_install=no
10142 elif test "$shlibpath_overrides_runpath" = yes ||
10143 test "$enable_shared" = no; then
10144 # Fast installation is not necessary
10145 enable_fast_install=needless
10146 fi
10153 if test "x$enable_dlopen" != xyes; then
10154 enable_dlopen=unknown
10155 enable_dlopen_self=unknown
10156 enable_dlopen_self_static=unknown
10157 else
10158 lt_cv_dlopen=no
10159 lt_cv_dlopen_libs=
10161 case $host_os in
10162 beos*)
10163 lt_cv_dlopen="load_add_on"
10164 lt_cv_dlopen_libs=
10165 lt_cv_dlopen_self=yes
10166 ;;
10168 mingw* | pw32* | cegcc*)
10169 lt_cv_dlopen="LoadLibrary"
10170 lt_cv_dlopen_libs=
10171 ;;
10173 cygwin*)
10174 lt_cv_dlopen="dlopen"
10175 lt_cv_dlopen_libs=
10176 ;;
10178 darwin*)
10179 # if libdl is installed we need to link against it
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 ac_check_lib_save_LIBS=$LIBS
10186 LIBS="-ldl $LIBS"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 char dlopen ();
10197 int
10198 main ()
10199 {
10200 return dlopen ();
10201 ;
10202 return 0;
10203 }
10204 _ACEOF
10205 if ac_fn_c_try_link "$LINENO"; then :
10206 ac_cv_lib_dl_dlopen=yes
10207 else
10208 ac_cv_lib_dl_dlopen=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
10212 LIBS=$ac_check_lib_save_LIBS
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10216 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218 else
10220 lt_cv_dlopen="dyld"
10221 lt_cv_dlopen_libs=
10222 lt_cv_dlopen_self=yes
10224 fi
10226 ;;
10228 *)
10229 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10230 if test "x$ac_cv_func_shl_load" = x""yes; then :
10231 lt_cv_dlopen="shl_load"
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10234 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10235 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldld $LIBS"
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char shl_load ();
10250 int
10251 main ()
10252 {
10253 return shl_load ();
10254 ;
10255 return 0;
10256 }
10257 _ACEOF
10258 if ac_fn_c_try_link "$LINENO"; then :
10259 ac_cv_lib_dld_shl_load=yes
10260 else
10261 ac_cv_lib_dld_shl_load=no
10262 fi
10263 rm -f core conftest.err conftest.$ac_objext \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_lib_save_LIBS
10266 fi
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10268 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10269 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10270 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10271 else
10272 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10273 if test "x$ac_cv_func_dlopen" = x""yes; then :
10274 lt_cv_dlopen="dlopen"
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10277 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10278 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-ldl $LIBS"
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10286 /* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 char dlopen ();
10293 int
10294 main ()
10295 {
10296 return dlopen ();
10297 ;
10298 return 0;
10299 }
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 ac_cv_lib_dl_dlopen=yes
10303 else
10304 ac_cv_lib_dl_dlopen=no
10305 fi
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10309 fi
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10311 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10312 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10314 else
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10316 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10317 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-lsvld $LIBS"
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char dlopen ();
10332 int
10333 main ()
10334 {
10335 return dlopen ();
10336 ;
10337 return 0;
10338 }
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 ac_cv_lib_svld_dlopen=yes
10342 else
10343 ac_cv_lib_svld_dlopen=no
10344 fi
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10350 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10351 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10352 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10353 else
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10355 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10356 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-ldld $LIBS"
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10367 #ifdef __cplusplus
10368 extern "C"
10369 #endif
10370 char dld_link ();
10371 int
10372 main ()
10373 {
10374 return dld_link ();
10375 ;
10376 return 0;
10377 }
10378 _ACEOF
10379 if ac_fn_c_try_link "$LINENO"; then :
10380 ac_cv_lib_dld_dld_link=yes
10381 else
10382 ac_cv_lib_dld_dld_link=no
10383 fi
10384 rm -f core conftest.err conftest.$ac_objext \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10387 fi
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10391 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10392 fi
10395 fi
10398 fi
10401 fi
10404 fi
10407 fi
10409 ;;
10410 esac
10412 if test "x$lt_cv_dlopen" != xno; then
10413 enable_dlopen=yes
10414 else
10415 enable_dlopen=no
10416 fi
10418 case $lt_cv_dlopen in
10419 dlopen)
10420 save_CPPFLAGS="$CPPFLAGS"
10421 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10423 save_LDFLAGS="$LDFLAGS"
10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10426 save_LIBS="$LIBS"
10427 LIBS="$lt_cv_dlopen_libs $LIBS"
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431 if test "${lt_cv_dlopen_self+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test "$cross_compiling" = yes; then :
10435 lt_cv_dlopen_self=cross
10436 else
10437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438 lt_status=$lt_dlunknown
10439 cat > conftest.$ac_ext <<_LT_EOF
10440 #line $LINENO "configure"
10441 #include "confdefs.h"
10443 #if HAVE_DLFCN_H
10444 #include <dlfcn.h>
10445 #endif
10447 #include <stdio.h>
10449 #ifdef RTLD_GLOBAL
10450 # define LT_DLGLOBAL RTLD_GLOBAL
10451 #else
10452 # ifdef DL_GLOBAL
10453 # define LT_DLGLOBAL DL_GLOBAL
10454 # else
10455 # define LT_DLGLOBAL 0
10456 # endif
10457 #endif
10459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460 find out it does not work in some platform. */
10461 #ifndef LT_DLLAZY_OR_NOW
10462 # ifdef RTLD_LAZY
10463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10464 # else
10465 # ifdef DL_LAZY
10466 # define LT_DLLAZY_OR_NOW DL_LAZY
10467 # else
10468 # ifdef RTLD_NOW
10469 # define LT_DLLAZY_OR_NOW RTLD_NOW
10470 # else
10471 # ifdef DL_NOW
10472 # define LT_DLLAZY_OR_NOW DL_NOW
10473 # else
10474 # define LT_DLLAZY_OR_NOW 0
10475 # endif
10476 # endif
10477 # endif
10478 # endif
10479 #endif
10481 /* When -fvisbility=hidden is used, assume the code has been annotated
10482 correspondingly for the symbols needed. */
10483 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10484 void fnord () __attribute__((visibility("default")));
10485 #endif
10487 void fnord () { int i=42; }
10488 int main ()
10489 {
10490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10491 int status = $lt_dlunknown;
10493 if (self)
10494 {
10495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10496 else
10497 {
10498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499 else puts (dlerror ());
10500 }
10501 /* dlclose (self); */
10502 }
10503 else
10504 puts (dlerror ());
10506 return status;
10507 }
10508 _LT_EOF
10509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10510 (eval $ac_link) 2>&5
10511 ac_status=$?
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10514 (./conftest; exit; ) >&5 2>/dev/null
10515 lt_status=$?
10516 case x$lt_status in
10517 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10518 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10519 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10520 esac
10521 else :
10522 # compilation failed
10523 lt_cv_dlopen_self=no
10524 fi
10525 fi
10526 rm -fr conftest*
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10531 $as_echo "$lt_cv_dlopen_self" >&6; }
10533 if test "x$lt_cv_dlopen_self" = xyes; then
10534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10536 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10537 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
10539 else
10540 if test "$cross_compiling" = yes; then :
10541 lt_cv_dlopen_self_static=cross
10542 else
10543 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10544 lt_status=$lt_dlunknown
10545 cat > conftest.$ac_ext <<_LT_EOF
10546 #line $LINENO "configure"
10547 #include "confdefs.h"
10549 #if HAVE_DLFCN_H
10550 #include <dlfcn.h>
10551 #endif
10553 #include <stdio.h>
10555 #ifdef RTLD_GLOBAL
10556 # define LT_DLGLOBAL RTLD_GLOBAL
10557 #else
10558 # ifdef DL_GLOBAL
10559 # define LT_DLGLOBAL DL_GLOBAL
10560 # else
10561 # define LT_DLGLOBAL 0
10562 # endif
10563 #endif
10565 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10566 find out it does not work in some platform. */
10567 #ifndef LT_DLLAZY_OR_NOW
10568 # ifdef RTLD_LAZY
10569 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10570 # else
10571 # ifdef DL_LAZY
10572 # define LT_DLLAZY_OR_NOW DL_LAZY
10573 # else
10574 # ifdef RTLD_NOW
10575 # define LT_DLLAZY_OR_NOW RTLD_NOW
10576 # else
10577 # ifdef DL_NOW
10578 # define LT_DLLAZY_OR_NOW DL_NOW
10579 # else
10580 # define LT_DLLAZY_OR_NOW 0
10581 # endif
10582 # endif
10583 # endif
10584 # endif
10585 #endif
10587 /* When -fvisbility=hidden is used, assume the code has been annotated
10588 correspondingly for the symbols needed. */
10589 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10590 void fnord () __attribute__((visibility("default")));
10591 #endif
10593 void fnord () { int i=42; }
10594 int main ()
10595 {
10596 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10597 int status = $lt_dlunknown;
10599 if (self)
10600 {
10601 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10602 else
10603 {
10604 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10605 else puts (dlerror ());
10606 }
10607 /* dlclose (self); */
10608 }
10609 else
10610 puts (dlerror ());
10612 return status;
10613 }
10614 _LT_EOF
10615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10616 (eval $ac_link) 2>&5
10617 ac_status=$?
10618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10619 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10620 (./conftest; exit; ) >&5 2>/dev/null
10621 lt_status=$?
10622 case x$lt_status in
10623 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10624 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10625 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10626 esac
10627 else :
10628 # compilation failed
10629 lt_cv_dlopen_self_static=no
10630 fi
10631 fi
10632 rm -fr conftest*
10635 fi
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10637 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10638 fi
10640 CPPFLAGS="$save_CPPFLAGS"
10641 LDFLAGS="$save_LDFLAGS"
10642 LIBS="$save_LIBS"
10643 ;;
10644 esac
10646 case $lt_cv_dlopen_self in
10647 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10648 *) enable_dlopen_self=unknown ;;
10649 esac
10651 case $lt_cv_dlopen_self_static in
10652 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10653 *) enable_dlopen_self_static=unknown ;;
10654 esac
10655 fi
10673 striplib=
10674 old_striplib=
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10676 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10677 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10678 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10681 $as_echo "yes" >&6; }
10682 else
10683 # FIXME - insert some real tests, host_os isn't really good enough
10684 case $host_os in
10685 darwin*)
10686 if test -n "$STRIP" ; then
10687 striplib="$STRIP -x"
10688 old_striplib="$STRIP -S"
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10690 $as_echo "yes" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695 ;;
10696 *)
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10699 ;;
10700 esac
10701 fi
10714 # Report which library types will actually be built
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10718 $as_echo "$can_build_shared" >&6; }
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10721 $as_echo_n "checking whether to build shared libraries... " >&6; }
10722 test "$can_build_shared" = "no" && enable_shared=no
10724 # On AIX, shared libraries and static libraries use the same namespace, and
10725 # are all built from PIC.
10726 case $host_os in
10727 aix3*)
10728 test "$enable_shared" = yes && enable_static=no
10729 if test -n "$RANLIB"; then
10730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10731 postinstall_cmds='$RANLIB $lib'
10732 fi
10733 ;;
10735 aix[4-9]*)
10736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10737 test "$enable_shared" = yes && enable_static=no
10738 fi
10739 ;;
10740 esac
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10742 $as_echo "$enable_shared" >&6; }
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10745 $as_echo_n "checking whether to build static libraries... " >&6; }
10746 # Make sure either enable_shared or enable_static is yes.
10747 test "$enable_shared" = yes || enable_static=yes
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10749 $as_echo "$enable_static" >&6; }
10754 fi
10755 ac_ext=c
10756 ac_cpp='$CPP $CPPFLAGS'
10757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10761 CC="$lt_save_CC"
10775 ac_config_commands="$ac_config_commands libtool"
10780 # Only expand once:
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
10785 $as_echo_n "checking for exp in -lm... " >&6; }
10786 if test "${ac_cv_lib_m_exp+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lm $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char exp ();
10801 int
10802 main ()
10803 {
10804 return exp ();
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_m_exp=yes
10811 else
10812 ac_cv_lib_m_exp=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
10819 $as_echo "$ac_cv_lib_m_exp" >&6; }
10820 if test "x$ac_cv_lib_m_exp" = x""yes; then :
10821 cat >>confdefs.h <<_ACEOF
10822 #define HAVE_LIBM 1
10823 _ACEOF
10825 LIBS="-lm $LIBS"
10827 fi
10830 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
10831 if test "x$ac_cv_header_sys_time_h" = x""yes; then :
10833 $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
10835 fi
10839 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
10840 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
10842 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
10844 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU MP bignum library" >&5
10848 $as_echo_n "checking whether to use GNU MP bignum library... " >&6; }
10849 if test "$with_gmp" = "yes"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851 $as_echo "yes" >&6; }
10853 $as_echo "#define HAVE_GMP 1" >>confdefs.h
10855 LIBS="-lgmp $LIBS"
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10858 $as_echo "no" >&6; }
10859 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shared library support" >&5
10862 $as_echo_n "checking whether to enable shared library support... " >&6; }
10863 if test "$enable_dl" = "yes"; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
10865 $as_echo "ltdl" >&6; }
10867 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
10869 LIBS="-lltdl $LIBS"
10870 elif test "$enable_dl" = "ltdl"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
10872 $as_echo "ltdl" >&6; }
10874 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
10876 LIBS="-lltdl $LIBS"
10877 elif test "$enable_dl" = "dlfcn"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlfcn" >&5
10879 $as_echo "dlfcn" >&6; }
10881 $as_echo "#define HAVE_DLFCN 1" >>confdefs.h
10883 else
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885 $as_echo "no" >&6; }
10886 fi
10888 case $host_os in
10889 darwin* | macosx*)
10890 LIBIODBC="libiodbc.dylib"
10891 LIBODBC="libodbc.dylib"
10892 LIBMYSQL="libmysqlclient.dylib"
10893 ;;
10894 *)
10895 LIBIODBC="libiodbc.so"
10896 LIBODBC="libodbc.so"
10897 LIBMYSQL="libmysqlclient.so"
10898 ;;
10899 esac
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg ODBC support" >&5
10902 $as_echo_n "checking whether to enable MathProg ODBC support... " >&6; }
10903 if test "$enable_odbc" = "yes"; then
10904 if test "$enable_dl" = "no"; then
10905 as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
10906 fi
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908 $as_echo "yes" >&6; }
10910 cat >>confdefs.h <<_ACEOF
10911 #define ODBC_DLNAME "$LIBIODBC"
10912 _ACEOF
10914 elif test "$enable_odbc" = "unix"; then
10915 if test "$enable_dl" = "no"; then
10916 as_fn_error "--enable-odbc requires --enable-dl" "$LINENO" 5
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5
10919 $as_echo "unix" >&6; }
10921 cat >>confdefs.h <<_ACEOF
10922 #define ODBC_DLNAME "$LIBODBC"
10923 _ACEOF
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927 $as_echo "no" >&6; }
10928 fi
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg MySQL support" >&5
10931 $as_echo_n "checking whether to enable MathProg MySQL support... " >&6; }
10932 if test "$enable_mysql" = "yes"; then
10933 if test "$enable_dl" = "no"; then
10934 as_fn_error "--enable-mysql requires --enable-dl" "$LINENO" 5
10935 fi
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10937 $as_echo "yes" >&6; }
10938 CPPFLAGS="-I/usr/include/mysql $CPPFLAGS"
10940 cat >>confdefs.h <<_ACEOF
10941 #define MYSQL_DLNAME "$LIBMYSQL"
10942 _ACEOF
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946 $as_echo "no" >&6; }
10947 fi
10949 ac_config_files="$ac_config_files src/Makefile examples/Makefile Makefile"
10951 cat >confcache <<\_ACEOF
10952 # This file is a shell script that caches the results of configure
10953 # tests run on this system so they can be shared between configure
10954 # scripts and configure runs, see configure's option --config-cache.
10955 # It is not useful on other systems. If it contains results you don't
10956 # want to keep, you may remove or edit it.
10957 #
10958 # config.status only pays attention to the cache file if you give it
10959 # the --recheck option to rerun configure.
10960 #
10961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10963 # following values.
10965 _ACEOF
10967 # The following way of writing the cache mishandles newlines in values,
10968 # but we know of no workaround that is simple, portable, and efficient.
10969 # So, we kill variables containing newlines.
10970 # Ultrix sh set writes to stderr and can't be redirected directly,
10971 # and sets the high bit in the cache file unless we assign to the vars.
10972 (
10973 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10974 eval ac_val=\$$ac_var
10975 case $ac_val in #(
10976 *${as_nl}*)
10977 case $ac_var in #(
10978 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10979 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10980 esac
10981 case $ac_var in #(
10982 _ | IFS | as_nl) ;; #(
10983 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10984 *) { eval $ac_var=; unset $ac_var;} ;;
10985 esac ;;
10986 esac
10987 done
10989 (set) 2>&1 |
10990 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10991 *${as_nl}ac_space=\ *)
10992 # `set' does not quote correctly, so add quotes: double-quote
10993 # substitution turns \\\\ into \\, and sed turns \\ into \.
10994 sed -n \
10995 "s/'/'\\\\''/g;
10996 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10997 ;; #(
10998 *)
10999 # `set' quotes correctly as required by POSIX, so do not add quotes.
11000 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11001 ;;
11002 esac |
11003 sort
11004 ) |
11005 sed '
11006 /^ac_cv_env_/b end
11007 t clear
11008 :clear
11009 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11010 t end
11011 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11012 :end' >>confcache
11013 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11014 if test -w "$cache_file"; then
11015 test "x$cache_file" != "x/dev/null" &&
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11017 $as_echo "$as_me: updating cache $cache_file" >&6;}
11018 cat confcache >$cache_file
11019 else
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11022 fi
11023 fi
11024 rm -f confcache
11026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11027 # Let make expand exec_prefix.
11028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11030 DEFS=-DHAVE_CONFIG_H
11032 ac_libobjs=
11033 ac_ltlibobjs=
11034 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11035 # 1. Remove the extension, and $U if already installed.
11036 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11037 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11038 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11039 # will be set to the directory where LIBOBJS objects are built.
11040 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11041 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11042 done
11043 LIBOBJS=$ac_libobjs
11045 LTLIBOBJS=$ac_ltlibobjs
11048 if test -n "$EXEEXT"; then
11049 am__EXEEXT_TRUE=
11050 am__EXEEXT_FALSE='#'
11051 else
11052 am__EXEEXT_TRUE='#'
11053 am__EXEEXT_FALSE=
11054 fi
11056 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11057 as_fn_error "conditional \"AMDEP\" was never defined.
11058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11059 fi
11060 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11061 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11063 fi
11065 : ${CONFIG_STATUS=./config.status}
11066 ac_write_fail=0
11067 ac_clean_files_save=$ac_clean_files
11068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11070 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11071 as_write_fail=0
11072 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11073 #! $SHELL
11074 # Generated by $as_me.
11075 # Run this file to recreate the current configuration.
11076 # Compiler output produced by configure, useful for debugging
11077 # configure, is in config.log if it exists.
11079 debug=false
11080 ac_cs_recheck=false
11081 ac_cs_silent=false
11083 SHELL=\${CONFIG_SHELL-$SHELL}
11084 export SHELL
11085 _ASEOF
11086 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11087 ## -------------------- ##
11088 ## M4sh Initialization. ##
11089 ## -------------------- ##
11091 # Be more Bourne compatible
11092 DUALCASE=1; export DUALCASE # for MKS sh
11093 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11094 emulate sh
11095 NULLCMD=:
11096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11097 # is contrary to our usage. Disable this feature.
11098 alias -g '${1+"$@"}'='"$@"'
11099 setopt NO_GLOB_SUBST
11100 else
11101 case `(set -o) 2>/dev/null` in #(
11102 *posix*) :
11103 set -o posix ;; #(
11104 *) :
11105 ;;
11106 esac
11107 fi
11110 as_nl='
11111 '
11112 export as_nl
11113 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11114 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11116 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11117 # Prefer a ksh shell builtin over an external printf program on Solaris,
11118 # but without wasting forks for bash or zsh.
11119 if test -z "$BASH_VERSION$ZSH_VERSION" \
11120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11121 as_echo='print -r --'
11122 as_echo_n='print -rn --'
11123 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11124 as_echo='printf %s\n'
11125 as_echo_n='printf %s'
11126 else
11127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11129 as_echo_n='/usr/ucb/echo -n'
11130 else
11131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11132 as_echo_n_body='eval
11133 arg=$1;
11134 case $arg in #(
11135 *"$as_nl"*)
11136 expr "X$arg" : "X\\(.*\\)$as_nl";
11137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11138 esac;
11139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11140 '
11141 export as_echo_n_body
11142 as_echo_n='sh -c $as_echo_n_body as_echo'
11143 fi
11144 export as_echo_body
11145 as_echo='sh -c $as_echo_body as_echo'
11146 fi
11148 # The user is always right.
11149 if test "${PATH_SEPARATOR+set}" != set; then
11150 PATH_SEPARATOR=:
11151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11153 PATH_SEPARATOR=';'
11154 }
11155 fi
11158 # IFS
11159 # We need space, tab and new line, in precisely that order. Quoting is
11160 # there to prevent editors from complaining about space-tab.
11161 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11162 # splitting by setting IFS to empty value.)
11163 IFS=" "" $as_nl"
11165 # Find who we are. Look in the path if we contain no directory separator.
11166 case $0 in #((
11167 *[\\/]* ) as_myself=$0 ;;
11168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11170 do
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11174 done
11175 IFS=$as_save_IFS
11177 ;;
11178 esac
11179 # We did not find ourselves, most probably we were run as `sh COMMAND'
11180 # in which case we are not to be found in the path.
11181 if test "x$as_myself" = x; then
11182 as_myself=$0
11183 fi
11184 if test ! -f "$as_myself"; then
11185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11186 exit 1
11187 fi
11189 # Unset variables that we do not need and which cause bugs (e.g. in
11190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11191 # suppresses any "Segmentation fault" message there. '((' could
11192 # trigger a bug in pdksh 5.2.14.
11193 for as_var in BASH_ENV ENV MAIL MAILPATH
11194 do eval test x\${$as_var+set} = xset \
11195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11196 done
11197 PS1='$ '
11198 PS2='> '
11199 PS4='+ '
11201 # NLS nuisances.
11202 LC_ALL=C
11203 export LC_ALL
11204 LANGUAGE=C
11205 export LANGUAGE
11207 # CDPATH.
11208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11211 # as_fn_error ERROR [LINENO LOG_FD]
11212 # ---------------------------------
11213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11215 # script with status $?, using 1 if that was 0.
11216 as_fn_error ()
11217 {
11218 as_status=$?; test $as_status -eq 0 && as_status=1
11219 if test "$3"; then
11220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11222 fi
11223 $as_echo "$as_me: error: $1" >&2
11224 as_fn_exit $as_status
11225 } # as_fn_error
11228 # as_fn_set_status STATUS
11229 # -----------------------
11230 # Set $? to STATUS, without forking.
11231 as_fn_set_status ()
11232 {
11233 return $1
11234 } # as_fn_set_status
11236 # as_fn_exit STATUS
11237 # -----------------
11238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11239 as_fn_exit ()
11240 {
11241 set +e
11242 as_fn_set_status $1
11243 exit $1
11244 } # as_fn_exit
11246 # as_fn_unset VAR
11247 # ---------------
11248 # Portably unset VAR.
11249 as_fn_unset ()
11250 {
11251 { eval $1=; unset $1;}
11252 }
11253 as_unset=as_fn_unset
11254 # as_fn_append VAR VALUE
11255 # ----------------------
11256 # Append the text in VALUE to the end of the definition contained in VAR. Take
11257 # advantage of any shell optimizations that allow amortized linear growth over
11258 # repeated appends, instead of the typical quadratic growth present in naive
11259 # implementations.
11260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11261 eval 'as_fn_append ()
11262 {
11263 eval $1+=\$2
11264 }'
11265 else
11266 as_fn_append ()
11267 {
11268 eval $1=\$$1\$2
11269 }
11270 fi # as_fn_append
11272 # as_fn_arith ARG...
11273 # ------------------
11274 # Perform arithmetic evaluation on the ARGs, and store the result in the
11275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11276 # must be portable across $(()) and expr.
11277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11278 eval 'as_fn_arith ()
11279 {
11280 as_val=$(( $* ))
11281 }'
11282 else
11283 as_fn_arith ()
11284 {
11285 as_val=`expr "$@" || test $? -eq 1`
11286 }
11287 fi # as_fn_arith
11290 if expr a : '\(a\)' >/dev/null 2>&1 &&
11291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11292 as_expr=expr
11293 else
11294 as_expr=false
11295 fi
11297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11298 as_basename=basename
11299 else
11300 as_basename=false
11301 fi
11303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11304 as_dirname=dirname
11305 else
11306 as_dirname=false
11307 fi
11309 as_me=`$as_basename -- "$0" ||
11310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11311 X"$0" : 'X\(//\)$' \| \
11312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11313 $as_echo X/"$0" |
11314 sed '/^.*\/\([^/][^/]*\)\/*$/{
11315 s//\1/
11316 q
11317 }
11318 /^X\/\(\/\/\)$/{
11319 s//\1/
11320 q
11321 }
11322 /^X\/\(\/\).*/{
11323 s//\1/
11324 q
11325 }
11326 s/.*/./; q'`
11328 # Avoid depending upon Character Ranges.
11329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11332 as_cr_digits='0123456789'
11333 as_cr_alnum=$as_cr_Letters$as_cr_digits
11335 ECHO_C= ECHO_N= ECHO_T=
11336 case `echo -n x` in #(((((
11337 -n*)
11338 case `echo 'xy\c'` in
11339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11340 xy) ECHO_C='\c';;
11341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11342 ECHO_T=' ';;
11343 esac;;
11344 *)
11345 ECHO_N='-n';;
11346 esac
11348 rm -f conf$$ conf$$.exe conf$$.file
11349 if test -d conf$$.dir; then
11350 rm -f conf$$.dir/conf$$.file
11351 else
11352 rm -f conf$$.dir
11353 mkdir conf$$.dir 2>/dev/null
11354 fi
11355 if (echo >conf$$.file) 2>/dev/null; then
11356 if ln -s conf$$.file conf$$ 2>/dev/null; then
11357 as_ln_s='ln -s'
11358 # ... but there are two gotchas:
11359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11361 # In both cases, we have to default to `cp -p'.
11362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11363 as_ln_s='cp -p'
11364 elif ln conf$$.file conf$$ 2>/dev/null; then
11365 as_ln_s=ln
11366 else
11367 as_ln_s='cp -p'
11368 fi
11369 else
11370 as_ln_s='cp -p'
11371 fi
11372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11373 rmdir conf$$.dir 2>/dev/null
11376 # as_fn_mkdir_p
11377 # -------------
11378 # Create "$as_dir" as a directory, including parents if necessary.
11379 as_fn_mkdir_p ()
11380 {
11382 case $as_dir in #(
11383 -*) as_dir=./$as_dir;;
11384 esac
11385 test -d "$as_dir" || eval $as_mkdir_p || {
11386 as_dirs=
11387 while :; do
11388 case $as_dir in #(
11389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11390 *) as_qdir=$as_dir;;
11391 esac
11392 as_dirs="'$as_qdir' $as_dirs"
11393 as_dir=`$as_dirname -- "$as_dir" ||
11394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11395 X"$as_dir" : 'X\(//\)[^/]' \| \
11396 X"$as_dir" : 'X\(//\)$' \| \
11397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11398 $as_echo X"$as_dir" |
11399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11400 s//\1/
11401 q
11402 }
11403 /^X\(\/\/\)[^/].*/{
11404 s//\1/
11405 q
11406 }
11407 /^X\(\/\/\)$/{
11408 s//\1/
11409 q
11410 }
11411 /^X\(\/\).*/{
11412 s//\1/
11413 q
11414 }
11415 s/.*/./; q'`
11416 test -d "$as_dir" && break
11417 done
11418 test -z "$as_dirs" || eval "mkdir $as_dirs"
11419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11422 } # as_fn_mkdir_p
11423 if mkdir -p . 2>/dev/null; then
11424 as_mkdir_p='mkdir -p "$as_dir"'
11425 else
11426 test -d ./-p && rmdir ./-p
11427 as_mkdir_p=false
11428 fi
11430 if test -x / >/dev/null 2>&1; then
11431 as_test_x='test -x'
11432 else
11433 if ls -dL / >/dev/null 2>&1; then
11434 as_ls_L_option=L
11435 else
11436 as_ls_L_option=
11437 fi
11438 as_test_x='
11439 eval sh -c '\''
11440 if test -d "$1"; then
11441 test -d "$1/.";
11442 else
11443 case $1 in #(
11444 -*)set "./$1";;
11445 esac;
11446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11447 ???[sx]*):;;*)false;;esac;fi
11448 '\'' sh
11449 '
11450 fi
11451 as_executable_p=$as_test_x
11453 # Sed expression to map a string onto a valid CPP name.
11454 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11456 # Sed expression to map a string onto a valid variable name.
11457 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11460 exec 6>&1
11461 ## ----------------------------------- ##
11462 ## Main body of $CONFIG_STATUS script. ##
11463 ## ----------------------------------- ##
11464 _ASEOF
11465 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11468 # Save the log message, to keep $0 and so on meaningful, and to
11469 # report actual input values of CONFIG_FILES etc. instead of their
11470 # values after options handling.
11471 ac_log="
11472 This file was extended by GLPK $as_me 4.47, which was
11473 generated by GNU Autoconf 2.65. Invocation command line was
11475 CONFIG_FILES = $CONFIG_FILES
11476 CONFIG_HEADERS = $CONFIG_HEADERS
11477 CONFIG_LINKS = $CONFIG_LINKS
11478 CONFIG_COMMANDS = $CONFIG_COMMANDS
11479 $ $0 $@
11481 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11482 "
11484 _ACEOF
11486 case $ac_config_files in *"
11487 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11488 esac
11490 case $ac_config_headers in *"
11491 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11492 esac
11495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11496 # Files that config.status was made for.
11497 config_files="$ac_config_files"
11498 config_headers="$ac_config_headers"
11499 config_commands="$ac_config_commands"
11501 _ACEOF
11503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11504 ac_cs_usage="\
11505 \`$as_me' instantiates files and other configuration actions
11506 from templates according to the current configuration. Unless the files
11507 and actions are specified as TAGs, all are instantiated by default.
11509 Usage: $0 [OPTION]... [TAG]...
11511 -h, --help print this help, then exit
11512 -V, --version print version number and configuration settings, then exit
11513 --config print configuration, then exit
11514 -q, --quiet, --silent
11515 do not print progress messages
11516 -d, --debug don't remove temporary files
11517 --recheck update $as_me by reconfiguring in the same conditions
11518 --file=FILE[:TEMPLATE]
11519 instantiate the configuration file FILE
11520 --header=FILE[:TEMPLATE]
11521 instantiate the configuration header FILE
11523 Configuration files:
11524 $config_files
11526 Configuration headers:
11527 $config_headers
11529 Configuration commands:
11530 $config_commands
11532 Report bugs to <bug-glpk@gnu.org>."
11534 _ACEOF
11535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11536 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11537 ac_cs_version="\\
11538 GLPK config.status 4.47
11539 configured by $0, generated by GNU Autoconf 2.65,
11540 with options \\"\$ac_cs_config\\"
11542 Copyright (C) 2009 Free Software Foundation, Inc.
11543 This config.status script is free software; the Free Software Foundation
11544 gives unlimited permission to copy, distribute and modify it."
11546 ac_pwd='$ac_pwd'
11547 srcdir='$srcdir'
11548 INSTALL='$INSTALL'
11549 MKDIR_P='$MKDIR_P'
11550 AWK='$AWK'
11551 test -n "\$AWK" || AWK=awk
11552 _ACEOF
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11555 # The default lists apply if the user does not specify any file.
11556 ac_need_defaults=:
11557 while test $# != 0
11558 do
11559 case $1 in
11560 --*=*)
11561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11563 ac_shift=:
11564 ;;
11565 *)
11566 ac_option=$1
11567 ac_optarg=$2
11568 ac_shift=shift
11569 ;;
11570 esac
11572 case $ac_option in
11573 # Handling of the options.
11574 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11575 ac_cs_recheck=: ;;
11576 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11577 $as_echo "$ac_cs_version"; exit ;;
11578 --config | --confi | --conf | --con | --co | --c )
11579 $as_echo "$ac_cs_config"; exit ;;
11580 --debug | --debu | --deb | --de | --d | -d )
11581 debug=: ;;
11582 --file | --fil | --fi | --f )
11583 $ac_shift
11584 case $ac_optarg in
11585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11586 esac
11587 as_fn_append CONFIG_FILES " '$ac_optarg'"
11588 ac_need_defaults=false;;
11589 --header | --heade | --head | --hea )
11590 $ac_shift
11591 case $ac_optarg in
11592 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11593 esac
11594 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11595 ac_need_defaults=false;;
11596 --he | --h)
11597 # Conflict between --help and --header
11598 as_fn_error "ambiguous option: \`$1'
11599 Try \`$0 --help' for more information.";;
11600 --help | --hel | -h )
11601 $as_echo "$ac_cs_usage"; exit ;;
11602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11603 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11604 ac_cs_silent=: ;;
11606 # This is an error.
11607 -*) as_fn_error "unrecognized option: \`$1'
11608 Try \`$0 --help' for more information." ;;
11610 *) as_fn_append ac_config_targets " $1"
11611 ac_need_defaults=false ;;
11613 esac
11614 shift
11615 done
11617 ac_configure_extra_args=
11619 if $ac_cs_silent; then
11620 exec 6>/dev/null
11621 ac_configure_extra_args="$ac_configure_extra_args --silent"
11622 fi
11624 _ACEOF
11625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11626 if \$ac_cs_recheck; then
11627 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11628 shift
11629 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11630 CONFIG_SHELL='$SHELL'
11631 export CONFIG_SHELL
11632 exec "\$@"
11633 fi
11635 _ACEOF
11636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11637 exec 5>>config.log
11638 {
11639 echo
11640 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11641 ## Running $as_me. ##
11642 _ASBOX
11643 $as_echo "$ac_log"
11644 } >&5
11646 _ACEOF
11647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11648 #
11649 # INIT-COMMANDS
11650 #
11651 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11654 # The HP-UX ksh and POSIX shell print the target directory to stdout
11655 # if CDPATH is set.
11656 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11658 sed_quote_subst='$sed_quote_subst'
11659 double_quote_subst='$double_quote_subst'
11660 delay_variable_subst='$delay_variable_subst'
11661 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11662 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11663 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11664 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11665 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11666 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11667 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11668 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11669 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11670 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11671 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11672 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11673 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11674 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11675 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11676 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11677 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11678 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11679 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11680 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11681 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11682 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11683 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11684 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11685 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11686 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11687 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11688 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11689 lt_cv_to_host_path_cmd='`$ECHO "$lt_cv_to_host_path_cmd" | $SED "$delay_single_quote_subst"`'
11690 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11691 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11692 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11693 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11694 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11695 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11696 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11697 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11698 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11699 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11700 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11701 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11702 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11703 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11704 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11705 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11706 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11707 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11708 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11709 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11710 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11711 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11712 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"`'
11713 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11714 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11715 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11716 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11717 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11718 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11719 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11720 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11721 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11722 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11723 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11724 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11725 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11726 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11727 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11728 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11729 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11730 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11731 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11732 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11733 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11734 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11735 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11736 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11737 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11738 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11739 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11740 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11741 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11742 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11743 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11744 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11745 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11746 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11747 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11748 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11749 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11750 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11751 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11752 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11753 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11754 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11755 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11756 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11757 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11758 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11759 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11760 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11761 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11762 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11763 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11764 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11765 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11766 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11767 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11768 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11769 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11770 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11771 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11772 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11773 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11774 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11775 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11776 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11777 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11778 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11779 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11780 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11781 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11782 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11783 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11785 LTCC='$LTCC'
11786 LTCFLAGS='$LTCFLAGS'
11787 compiler='$compiler_DEFAULT'
11789 # A function that is used when there is no print builtin or printf.
11790 func_fallback_echo ()
11791 {
11792 eval 'cat <<_LTECHO_EOF
11793 \$1
11794 _LTECHO_EOF'
11795 }
11797 # Quote evaled strings.
11798 for var in SHELL \
11799 ECHO \
11800 SED \
11801 GREP \
11802 EGREP \
11803 FGREP \
11804 LD \
11805 NM \
11806 LN_S \
11807 lt_SP2NL \
11808 lt_NL2SP \
11809 reload_flag \
11810 OBJDUMP \
11811 deplibs_check_method \
11812 file_magic_cmd \
11813 DLLTOOL \
11814 sharedlib_from_linklib_cmd \
11815 AR \
11816 AR_FLAGS \
11817 STRIP \
11818 RANLIB \
11819 CC \
11820 CFLAGS \
11821 compiler \
11822 lt_cv_sys_global_symbol_pipe \
11823 lt_cv_sys_global_symbol_to_cdecl \
11824 lt_cv_sys_global_symbol_to_c_name_address \
11825 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11826 lt_prog_compiler_no_builtin_flag \
11827 lt_prog_compiler_wl \
11828 lt_prog_compiler_pic \
11829 lt_prog_compiler_static \
11830 lt_cv_prog_compiler_c_o \
11831 need_locks \
11832 DSYMUTIL \
11833 NMEDIT \
11834 LIPO \
11835 OTOOL \
11836 OTOOL64 \
11837 shrext_cmds \
11838 export_dynamic_flag_spec \
11839 whole_archive_flag_spec \
11840 compiler_needs_object \
11841 with_gnu_ld \
11842 allow_undefined_flag \
11843 no_undefined_flag \
11844 hardcode_libdir_flag_spec \
11845 hardcode_libdir_flag_spec_ld \
11846 hardcode_libdir_separator \
11847 fix_srcfile_path \
11848 exclude_expsyms \
11849 include_expsyms \
11850 file_list_spec \
11851 variables_saved_for_relink \
11852 libname_spec \
11853 library_names_spec \
11854 soname_spec \
11855 install_override_mode \
11856 finish_eval \
11857 old_striplib \
11858 striplib; do
11859 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11860 *[\\\\\\\`\\"\\\$]*)
11861 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11862 ;;
11863 *)
11864 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11865 ;;
11866 esac
11867 done
11869 # Double-quote double-evaled strings.
11870 for var in reload_cmds \
11871 old_postinstall_cmds \
11872 old_postuninstall_cmds \
11873 old_archive_cmds \
11874 extract_expsyms_cmds \
11875 old_archive_from_new_cmds \
11876 old_archive_from_expsyms_cmds \
11877 archive_cmds \
11878 archive_expsym_cmds \
11879 module_cmds \
11880 module_expsym_cmds \
11881 export_symbols_cmds \
11882 prelink_cmds \
11883 postinstall_cmds \
11884 postuninstall_cmds \
11885 finish_cmds \
11886 sys_lib_search_path_spec \
11887 sys_lib_dlsearch_path_spec; do
11888 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11889 *[\\\\\\\`\\"\\\$]*)
11890 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11891 ;;
11892 *)
11893 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11894 ;;
11895 esac
11896 done
11898 ac_aux_dir='$ac_aux_dir'
11899 xsi_shell='$xsi_shell'
11900 lt_shell_append='$lt_shell_append'
11902 # See if we are running on zsh, and set the options which allow our
11903 # commands through without removal of \ escapes INIT.
11904 if test -n "\${ZSH_VERSION+set}" ; then
11905 setopt NO_GLOB_SUBST
11906 fi
11909 PACKAGE='$PACKAGE'
11910 VERSION='$VERSION'
11911 TIMESTAMP='$TIMESTAMP'
11912 RM='$RM'
11913 ofile='$ofile'
11918 _ACEOF
11920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11922 # Handling of arguments.
11923 for ac_config_target in $ac_config_targets
11924 do
11925 case $ac_config_target in
11926 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11927 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11928 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11929 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11930 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
11931 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11933 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11934 esac
11935 done
11938 # If the user did not use the arguments to specify the items to instantiate,
11939 # then the envvar interface is used. Set only those that are not.
11940 # We use the long form for the default assignment because of an extremely
11941 # bizarre bug on SunOS 4.1.3.
11942 if $ac_need_defaults; then
11943 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11944 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11945 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11946 fi
11948 # Have a temporary directory for convenience. Make it in the build tree
11949 # simply because there is no reason against having it here, and in addition,
11950 # creating and moving files from /tmp can sometimes cause problems.
11951 # Hook for its removal unless debugging.
11952 # Note that there is a small window in which the directory will not be cleaned:
11953 # after its creation but before its name has been assigned to `$tmp'.
11954 $debug ||
11955 {
11956 tmp=
11957 trap 'exit_status=$?
11958 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11959 ' 0
11960 trap 'as_fn_exit 1' 1 2 13 15
11961 }
11962 # Create a (secure) tmp directory for tmp files.
11964 {
11965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11966 test -n "$tmp" && test -d "$tmp"
11967 } ||
11968 {
11969 tmp=./conf$$-$RANDOM
11970 (umask 077 && mkdir "$tmp")
11971 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11973 # Set up the scripts for CONFIG_FILES section.
11974 # No need to generate them if there are no CONFIG_FILES.
11975 # This happens for instance with `./config.status config.h'.
11976 if test -n "$CONFIG_FILES"; then
11979 ac_cr=`echo X | tr X '\015'`
11980 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11981 # But we know of no other shell where ac_cr would be empty at this
11982 # point, so we can use a bashism as a fallback.
11983 if test "x$ac_cr" = x; then
11984 eval ac_cr=\$\'\\r\'
11985 fi
11986 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11987 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11988 ac_cs_awk_cr='\r'
11989 else
11990 ac_cs_awk_cr=$ac_cr
11991 fi
11993 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11994 _ACEOF
11997 {
11998 echo "cat >conf$$subs.awk <<_ACEOF" &&
11999 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12000 echo "_ACEOF"
12001 } >conf$$subs.sh ||
12002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12003 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12004 ac_delim='%!_!# '
12005 for ac_last_try in false false false false false :; do
12006 . ./conf$$subs.sh ||
12007 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12010 if test $ac_delim_n = $ac_delim_num; then
12011 break
12012 elif $ac_last_try; then
12013 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12014 else
12015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12016 fi
12017 done
12018 rm -f conf$$subs.sh
12020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12021 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12022 _ACEOF
12023 sed -n '
12024 h
12025 s/^/S["/; s/!.*/"]=/
12026 p
12027 g
12028 s/^[^!]*!//
12029 :repl
12030 t repl
12031 s/'"$ac_delim"'$//
12032 t delim
12033 :nl
12034 h
12035 s/\(.\{148\}\)..*/\1/
12036 t more1
12037 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12038 p
12039 n
12040 b repl
12041 :more1
12042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12043 p
12044 g
12045 s/.\{148\}//
12046 t nl
12047 :delim
12048 h
12049 s/\(.\{148\}\)..*/\1/
12050 t more2
12051 s/["\\]/\\&/g; s/^/"/; s/$/"/
12052 p
12053 b
12054 :more2
12055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12056 p
12057 g
12058 s/.\{148\}//
12059 t delim
12060 ' <conf$$subs.awk | sed '
12061 /^[^""]/{
12062 N
12063 s/\n//
12064 }
12065 ' >>$CONFIG_STATUS || ac_write_fail=1
12066 rm -f conf$$subs.awk
12067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12068 _ACAWK
12069 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12070 for (key in S) S_is_set[key] = 1
12071 FS = ""
12073 }
12074 {
12075 line = $ 0
12076 nfields = split(line, field, "@")
12077 substed = 0
12078 len = length(field[1])
12079 for (i = 2; i < nfields; i++) {
12080 key = field[i]
12081 keylen = length(key)
12082 if (S_is_set[key]) {
12083 value = S[key]
12084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12085 len += length(value) + length(field[++i])
12086 substed = 1
12087 } else
12088 len += 1 + keylen
12089 }
12091 print line
12092 }
12094 _ACAWK
12095 _ACEOF
12096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12097 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12099 else
12100 cat
12101 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12102 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12103 _ACEOF
12105 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12106 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12107 # trailing colons and then remove the whole line if VPATH becomes empty
12108 # (actually we leave an empty line to preserve line numbers).
12109 if test "x$srcdir" = x.; then
12110 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12111 s/:*\$(srcdir):*/:/
12112 s/:*\${srcdir}:*/:/
12113 s/:*@srcdir@:*/:/
12114 s/^\([^=]*=[ ]*\):*/\1/
12115 s/:*$//
12116 s/^[^=]*=[ ]*$//
12117 }'
12118 fi
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12121 fi # test -n "$CONFIG_FILES"
12123 # Set up the scripts for CONFIG_HEADERS section.
12124 # No need to generate them if there are no CONFIG_HEADERS.
12125 # This happens for instance with `./config.status Makefile'.
12126 if test -n "$CONFIG_HEADERS"; then
12127 cat >"$tmp/defines.awk" <<\_ACAWK ||
12128 BEGIN {
12129 _ACEOF
12131 # Transform confdefs.h into an awk script `defines.awk', embedded as
12132 # here-document in config.status, that substitutes the proper values into
12133 # config.h.in to produce config.h.
12135 # Create a delimiter string that does not exist in confdefs.h, to ease
12136 # handling of long lines.
12137 ac_delim='%!_!# '
12138 for ac_last_try in false false :; do
12139 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12140 if test -z "$ac_t"; then
12141 break
12142 elif $ac_last_try; then
12143 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12144 else
12145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12146 fi
12147 done
12149 # For the awk script, D is an array of macro values keyed by name,
12150 # likewise P contains macro parameters if any. Preserve backslash
12151 # newline sequences.
12153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12154 sed -n '
12155 s/.\{148\}/&'"$ac_delim"'/g
12156 t rset
12157 :rset
12158 s/^[ ]*#[ ]*define[ ][ ]*/ /
12159 t def
12160 d
12161 :def
12162 s/\\$//
12163 t bsnl
12164 s/["\\]/\\&/g
12165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12166 D["\1"]=" \3"/p
12167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12168 d
12169 :bsnl
12170 s/["\\]/\\&/g
12171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12172 D["\1"]=" \3\\\\\\n"\\/p
12173 t cont
12174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12175 t cont
12176 d
12177 :cont
12178 n
12179 s/.\{148\}/&'"$ac_delim"'/g
12180 t clear
12181 :clear
12182 s/\\$//
12183 t bsnlc
12184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12185 d
12186 :bsnlc
12187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12188 b cont
12189 ' <confdefs.h | sed '
12190 s/'"$ac_delim"'/"\\\
12191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12194 for (key in D) D_is_set[key] = 1
12195 FS = ""
12196 }
12197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12198 line = \$ 0
12199 split(line, arg, " ")
12200 if (arg[1] == "#") {
12201 defundef = arg[2]
12202 mac1 = arg[3]
12203 } else {
12204 defundef = substr(arg[1], 2)
12205 mac1 = arg[2]
12206 }
12207 split(mac1, mac2, "(") #)
12208 macro = mac2[1]
12209 prefix = substr(line, 1, index(line, defundef) - 1)
12210 if (D_is_set[macro]) {
12211 # Preserve the white space surrounding the "#".
12212 print prefix "define", macro P[macro] D[macro]
12213 next
12214 } else {
12215 # Replace #undef with comments. This is necessary, for example,
12216 # in the case of _POSIX_SOURCE, which is predefined and required
12217 # on some systems where configure will not decide to define it.
12218 if (defundef == "undef") {
12219 print "/*", prefix defundef, macro, "*/"
12220 next
12221 }
12222 }
12223 }
12224 { print }
12225 _ACAWK
12226 _ACEOF
12227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12228 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12229 fi # test -n "$CONFIG_HEADERS"
12232 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12233 shift
12234 for ac_tag
12235 do
12236 case $ac_tag in
12237 :[FHLC]) ac_mode=$ac_tag; continue;;
12238 esac
12239 case $ac_mode$ac_tag in
12240 :[FHL]*:*);;
12241 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12242 :[FH]-) ac_tag=-:-;;
12243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12244 esac
12245 ac_save_IFS=$IFS
12246 IFS=:
12247 set x $ac_tag
12248 IFS=$ac_save_IFS
12249 shift
12250 ac_file=$1
12251 shift
12253 case $ac_mode in
12254 :L) ac_source=$1;;
12255 :[FH])
12256 ac_file_inputs=
12257 for ac_f
12258 do
12259 case $ac_f in
12260 -) ac_f="$tmp/stdin";;
12261 *) # Look for the file first in the build tree, then in the source tree
12262 # (if the path is not absolute). The absolute path cannot be DOS-style,
12263 # because $ac_f cannot contain `:'.
12264 test -f "$ac_f" ||
12265 case $ac_f in
12266 [\\/$]*) false;;
12267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12268 esac ||
12269 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12270 esac
12271 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12272 as_fn_append ac_file_inputs " '$ac_f'"
12273 done
12275 # Let's still pretend it is `configure' which instantiates (i.e., don't
12276 # use $as_me), people would be surprised to read:
12277 # /* config.h. Generated by config.status. */
12278 configure_input='Generated from '`
12279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12280 `' by configure.'
12281 if test x"$ac_file" != x-; then
12282 configure_input="$ac_file. $configure_input"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12284 $as_echo "$as_me: creating $ac_file" >&6;}
12285 fi
12286 # Neutralize special characters interpreted by sed in replacement strings.
12287 case $configure_input in #(
12288 *\&* | *\|* | *\\* )
12289 ac_sed_conf_input=`$as_echo "$configure_input" |
12290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12291 *) ac_sed_conf_input=$configure_input;;
12292 esac
12294 case $ac_tag in
12295 *:-:* | *:-) cat >"$tmp/stdin" \
12296 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12297 esac
12298 ;;
12299 esac
12301 ac_dir=`$as_dirname -- "$ac_file" ||
12302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12303 X"$ac_file" : 'X\(//\)[^/]' \| \
12304 X"$ac_file" : 'X\(//\)$' \| \
12305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12306 $as_echo X"$ac_file" |
12307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12308 s//\1/
12309 q
12310 }
12311 /^X\(\/\/\)[^/].*/{
12312 s//\1/
12313 q
12314 }
12315 /^X\(\/\/\)$/{
12316 s//\1/
12317 q
12318 }
12319 /^X\(\/\).*/{
12320 s//\1/
12321 q
12322 }
12323 s/.*/./; q'`
12324 as_dir="$ac_dir"; as_fn_mkdir_p
12325 ac_builddir=.
12327 case "$ac_dir" in
12328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12329 *)
12330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12331 # A ".." for each directory in $ac_dir_suffix.
12332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12333 case $ac_top_builddir_sub in
12334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12336 esac ;;
12337 esac
12338 ac_abs_top_builddir=$ac_pwd
12339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12340 # for backward compatibility:
12341 ac_top_builddir=$ac_top_build_prefix
12343 case $srcdir in
12344 .) # We are building in place.
12345 ac_srcdir=.
12346 ac_top_srcdir=$ac_top_builddir_sub
12347 ac_abs_top_srcdir=$ac_pwd ;;
12348 [\\/]* | ?:[\\/]* ) # Absolute name.
12349 ac_srcdir=$srcdir$ac_dir_suffix;
12350 ac_top_srcdir=$srcdir
12351 ac_abs_top_srcdir=$srcdir ;;
12352 *) # Relative name.
12353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12354 ac_top_srcdir=$ac_top_build_prefix$srcdir
12355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12356 esac
12357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12360 case $ac_mode in
12361 :F)
12362 #
12363 # CONFIG_FILE
12364 #
12366 case $INSTALL in
12367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12368 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12369 esac
12370 ac_MKDIR_P=$MKDIR_P
12371 case $MKDIR_P in
12372 [\\/$]* | ?:[\\/]* ) ;;
12373 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12374 esac
12375 _ACEOF
12377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12378 # If the template does not know about datarootdir, expand it.
12379 # FIXME: This hack should be removed a few years after 2.60.
12380 ac_datarootdir_hack=; ac_datarootdir_seen=
12381 ac_sed_dataroot='
12382 /datarootdir/ {
12383 p
12384 q
12385 }
12386 /@datadir@/p
12387 /@docdir@/p
12388 /@infodir@/p
12389 /@localedir@/p
12390 /@mandir@/p'
12391 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12392 *datarootdir*) ac_datarootdir_seen=yes;;
12393 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12395 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12396 _ACEOF
12397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12398 ac_datarootdir_hack='
12399 s&@datadir@&$datadir&g
12400 s&@docdir@&$docdir&g
12401 s&@infodir@&$infodir&g
12402 s&@localedir@&$localedir&g
12403 s&@mandir@&$mandir&g
12404 s&\\\${datarootdir}&$datarootdir&g' ;;
12405 esac
12406 _ACEOF
12408 # Neutralize VPATH when `$srcdir' = `.'.
12409 # Shell code in configure.ac might set extrasub.
12410 # FIXME: do we really want to maintain this feature?
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 ac_sed_extra="$ac_vpsub
12413 $extrasub
12414 _ACEOF
12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416 :t
12417 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12418 s|@configure_input@|$ac_sed_conf_input|;t t
12419 s&@top_builddir@&$ac_top_builddir_sub&;t t
12420 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12421 s&@srcdir@&$ac_srcdir&;t t
12422 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12423 s&@top_srcdir@&$ac_top_srcdir&;t t
12424 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12425 s&@builddir@&$ac_builddir&;t t
12426 s&@abs_builddir@&$ac_abs_builddir&;t t
12427 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12428 s&@INSTALL@&$ac_INSTALL&;t t
12429 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12430 $ac_datarootdir_hack
12431 "
12432 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12433 || as_fn_error "could not create $ac_file" "$LINENO" 5
12435 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12439 which seems to be undefined. Please make sure it is defined." >&5
12440 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12441 which seems to be undefined. Please make sure it is defined." >&2;}
12443 rm -f "$tmp/stdin"
12444 case $ac_file in
12445 -) cat "$tmp/out" && rm -f "$tmp/out";;
12446 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12447 esac \
12448 || as_fn_error "could not create $ac_file" "$LINENO" 5
12449 ;;
12450 :H)
12451 #
12452 # CONFIG_HEADER
12453 #
12454 if test x"$ac_file" != x-; then
12455 {
12456 $as_echo "/* $configure_input */" \
12457 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12458 } >"$tmp/config.h" \
12459 || as_fn_error "could not create $ac_file" "$LINENO" 5
12460 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12462 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12463 else
12464 rm -f "$ac_file"
12465 mv "$tmp/config.h" "$ac_file" \
12466 || as_fn_error "could not create $ac_file" "$LINENO" 5
12467 fi
12468 else
12469 $as_echo "/* $configure_input */" \
12470 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12471 || as_fn_error "could not create -" "$LINENO" 5
12472 fi
12473 # Compute "$ac_file"'s index in $config_headers.
12474 _am_arg="$ac_file"
12475 _am_stamp_count=1
12476 for _am_header in $config_headers :; do
12477 case $_am_header in
12478 $_am_arg | $_am_arg:* )
12479 break ;;
12480 * )
12481 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12482 esac
12483 done
12484 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12485 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486 X"$_am_arg" : 'X\(//\)[^/]' \| \
12487 X"$_am_arg" : 'X\(//\)$' \| \
12488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12489 $as_echo X"$_am_arg" |
12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12491 s//\1/
12492 q
12493 }
12494 /^X\(\/\/\)[^/].*/{
12495 s//\1/
12496 q
12497 }
12498 /^X\(\/\/\)$/{
12499 s//\1/
12500 q
12501 }
12502 /^X\(\/\).*/{
12503 s//\1/
12504 q
12505 }
12506 s/.*/./; q'`/stamp-h$_am_stamp_count
12507 ;;
12509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12510 $as_echo "$as_me: executing $ac_file commands" >&6;}
12511 ;;
12512 esac
12515 case $ac_file$ac_mode in
12516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12517 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12518 # are listed without --file. Let's play safe and only enable the eval
12519 # if we detect the quoting.
12520 case $CONFIG_FILES in
12521 *\'*) eval set x "$CONFIG_FILES" ;;
12522 *) set x $CONFIG_FILES ;;
12523 esac
12524 shift
12525 for mf
12526 do
12527 # Strip MF so we end up with the name of the file.
12528 mf=`echo "$mf" | sed -e 's/:.*$//'`
12529 # Check whether this is an Automake generated Makefile or not.
12530 # We used to match only the files named `Makefile.in', but
12531 # some people rename them; so instead we look at the file content.
12532 # Grep'ing the first line is not enough: some people post-process
12533 # each Makefile.in and add a new line on top of each file to say so.
12534 # Grep'ing the whole file is not good either: AIX grep has a line
12535 # limit of 2048, but all sed's we know have understand at least 4000.
12536 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12537 dirpart=`$as_dirname -- "$mf" ||
12538 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12539 X"$mf" : 'X\(//\)[^/]' \| \
12540 X"$mf" : 'X\(//\)$' \| \
12541 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12542 $as_echo X"$mf" |
12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12544 s//\1/
12545 q
12546 }
12547 /^X\(\/\/\)[^/].*/{
12548 s//\1/
12549 q
12550 }
12551 /^X\(\/\/\)$/{
12552 s//\1/
12553 q
12554 }
12555 /^X\(\/\).*/{
12556 s//\1/
12557 q
12558 }
12559 s/.*/./; q'`
12560 else
12561 continue
12562 fi
12563 # Extract the definition of DEPDIR, am__include, and am__quote
12564 # from the Makefile without running `make'.
12565 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12566 test -z "$DEPDIR" && continue
12567 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12568 test -z "am__include" && continue
12569 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12570 # When using ansi2knr, U may be empty or an underscore; expand it
12571 U=`sed -n 's/^U = //p' < "$mf"`
12572 # Find all dependency output files, they are included files with
12573 # $(DEPDIR) in their names. We invoke sed twice because it is the
12574 # simplest approach to changing $(DEPDIR) to its actual value in the
12575 # expansion.
12576 for file in `sed -n "
12577 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12578 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12579 # Make sure the directory exists.
12580 test -f "$dirpart/$file" && continue
12581 fdir=`$as_dirname -- "$file" ||
12582 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12583 X"$file" : 'X\(//\)[^/]' \| \
12584 X"$file" : 'X\(//\)$' \| \
12585 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12586 $as_echo X"$file" |
12587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12588 s//\1/
12589 q
12590 }
12591 /^X\(\/\/\)[^/].*/{
12592 s//\1/
12593 q
12594 }
12595 /^X\(\/\/\)$/{
12596 s//\1/
12597 q
12598 }
12599 /^X\(\/\).*/{
12600 s//\1/
12601 q
12602 }
12603 s/.*/./; q'`
12604 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12605 # echo "creating $dirpart/$file"
12606 echo '# dummy' > "$dirpart/$file"
12607 done
12608 done
12609 }
12610 ;;
12611 "libtool":C)
12613 # See if we are running on zsh, and set the options which allow our
12614 # commands through without removal of \ escapes.
12615 if test -n "${ZSH_VERSION+set}" ; then
12616 setopt NO_GLOB_SUBST
12617 fi
12619 cfgfile="${ofile}T"
12620 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12621 $RM "$cfgfile"
12623 cat <<_LT_EOF >> "$cfgfile"
12624 #! $SHELL
12626 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12627 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12628 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12629 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12630 #
12631 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12632 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12633 # Written by Gordon Matzigkeit, 1996
12634 #
12635 # This file is part of GNU Libtool.
12636 #
12637 # GNU Libtool is free software; you can redistribute it and/or
12638 # modify it under the terms of the GNU General Public License as
12639 # published by the Free Software Foundation; either version 2 of
12640 # the License, or (at your option) any later version.
12641 #
12642 # As a special exception to the GNU General Public License,
12643 # if you distribute this file as part of a program or library that
12644 # is built using GNU Libtool, you may include this file under the
12645 # same distribution terms that you use for the rest of that program.
12646 #
12647 # GNU Libtool is distributed in the hope that it will be useful,
12648 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12649 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12650 # GNU General Public License for more details.
12651 #
12652 # You should have received a copy of the GNU General Public License
12653 # along with GNU Libtool; see the file COPYING. If not, a copy
12654 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12655 # obtained by writing to the Free Software Foundation, Inc.,
12656 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12659 # The names of the tagged configurations supported by this script.
12660 available_tags=""
12662 # ### BEGIN LIBTOOL CONFIG
12664 # Which release of libtool.m4 was used?
12665 macro_version=$macro_version
12666 macro_revision=$macro_revision
12668 # Whether or not to build shared libraries.
12669 build_libtool_libs=$enable_shared
12671 # Whether or not to build static libraries.
12672 build_old_libs=$enable_static
12674 # What type of objects to build.
12675 pic_mode=$pic_mode
12677 # Whether or not to optimize for fast installation.
12678 fast_install=$enable_fast_install
12680 # Shell to use when invoking shell scripts.
12681 SHELL=$lt_SHELL
12683 # An echo program that protects backslashes.
12684 ECHO=$lt_ECHO
12686 # The host system.
12687 host_alias=$host_alias
12688 host=$host
12689 host_os=$host_os
12691 # The build system.
12692 build_alias=$build_alias
12693 build=$build
12694 build_os=$build_os
12696 # A sed program that does not truncate output.
12697 SED=$lt_SED
12699 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12700 Xsed="\$SED -e 1s/^X//"
12702 # A grep program that handles long lines.
12703 GREP=$lt_GREP
12705 # An ERE matcher.
12706 EGREP=$lt_EGREP
12708 # A literal string matcher.
12709 FGREP=$lt_FGREP
12711 # A BSD- or MS-compatible name lister.
12712 NM=$lt_NM
12714 # Whether we need soft or hard links.
12715 LN_S=$lt_LN_S
12717 # What is the maximum length of a command?
12718 max_cmd_len=$max_cmd_len
12720 # Object file suffix (normally "o").
12721 objext=$ac_objext
12723 # Executable file suffix (normally "").
12724 exeext=$exeext
12726 # whether the shell understands "unset".
12727 lt_unset=$lt_unset
12729 # turn spaces into newlines.
12730 SP2NL=$lt_lt_SP2NL
12732 # turn newlines into spaces.
12733 NL2SP=$lt_lt_NL2SP
12735 # convert \$build paths to \$host format.
12736 to_host_path_cmd=$lt_cv_to_host_path_cmd
12738 # An object symbol dumper.
12739 OBJDUMP=$lt_OBJDUMP
12741 # Method to check whether dependent libraries are shared objects.
12742 deplibs_check_method=$lt_deplibs_check_method
12744 # Command to use when deplibs_check_method == "file_magic".
12745 file_magic_cmd=$lt_file_magic_cmd
12747 # DLL creation program.
12748 DLLTOOL=$lt_DLLTOOL
12750 # Command to associate shared and link libraries.
12751 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12753 # The archiver.
12754 AR=$lt_AR
12755 AR_FLAGS=$lt_AR_FLAGS
12757 # A symbol stripping program.
12758 STRIP=$lt_STRIP
12760 # Commands used to install an old-style archive.
12761 RANLIB=$lt_RANLIB
12762 old_postinstall_cmds=$lt_old_postinstall_cmds
12763 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12765 # Whether to use a lock for old archive extraction.
12766 lock_old_archive_extraction=$lock_old_archive_extraction
12768 # A C compiler.
12769 LTCC=$lt_CC
12771 # LTCC compiler flags.
12772 LTCFLAGS=$lt_CFLAGS
12774 # Take the output of nm and produce a listing of raw symbols and C names.
12775 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12777 # Transform the output of nm in a proper C declaration.
12778 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12780 # Transform the output of nm in a C name address pair.
12781 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12783 # Transform the output of nm in a C name address pair when lib prefix is needed.
12784 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12786 # The name of the directory that contains temporary libtool files.
12787 objdir=$objdir
12789 # Used to examine libraries when file_magic_cmd begins with "file".
12790 MAGIC_CMD=$MAGIC_CMD
12792 # Must we lock files when doing compilation?
12793 need_locks=$lt_need_locks
12795 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12796 DSYMUTIL=$lt_DSYMUTIL
12798 # Tool to change global to local symbols on Mac OS X.
12799 NMEDIT=$lt_NMEDIT
12801 # Tool to manipulate fat objects and archives on Mac OS X.
12802 LIPO=$lt_LIPO
12804 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12805 OTOOL=$lt_OTOOL
12807 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12808 OTOOL64=$lt_OTOOL64
12810 # Old archive suffix (normally "a").
12811 libext=$libext
12813 # Shared library suffix (normally ".so").
12814 shrext_cmds=$lt_shrext_cmds
12816 # The commands to extract the exported symbol list from a shared archive.
12817 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12819 # Variables whose values should be saved in libtool wrapper scripts and
12820 # restored at link time.
12821 variables_saved_for_relink=$lt_variables_saved_for_relink
12823 # Do we need the "lib" prefix for modules?
12824 need_lib_prefix=$need_lib_prefix
12826 # Do we need a version for libraries?
12827 need_version=$need_version
12829 # Library versioning type.
12830 version_type=$version_type
12832 # Shared library runtime path variable.
12833 runpath_var=$runpath_var
12835 # Shared library path variable.
12836 shlibpath_var=$shlibpath_var
12838 # Is shlibpath searched before the hard-coded library search path?
12839 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12841 # Format of library name prefix.
12842 libname_spec=$lt_libname_spec
12844 # List of archive names. First name is the real one, the rest are links.
12845 # The last name is the one that the linker finds with -lNAME
12846 library_names_spec=$lt_library_names_spec
12848 # The coded name of the library, if different from the real name.
12849 soname_spec=$lt_soname_spec
12851 # Permission mode override for installation of shared libraries.
12852 install_override_mode=$lt_install_override_mode
12854 # Command to use after installation of a shared archive.
12855 postinstall_cmds=$lt_postinstall_cmds
12857 # Command to use after uninstallation of a shared archive.
12858 postuninstall_cmds=$lt_postuninstall_cmds
12860 # Commands used to finish a libtool library installation in a directory.
12861 finish_cmds=$lt_finish_cmds
12863 # As "finish_cmds", except a single script fragment to be evaled but
12864 # not shown.
12865 finish_eval=$lt_finish_eval
12867 # Whether we should hardcode library paths into libraries.
12868 hardcode_into_libs=$hardcode_into_libs
12870 # Compile-time system search path for libraries.
12871 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12873 # Run-time system search path for libraries.
12874 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12876 # Whether dlopen is supported.
12877 dlopen_support=$enable_dlopen
12879 # Whether dlopen of programs is supported.
12880 dlopen_self=$enable_dlopen_self
12882 # Whether dlopen of statically linked programs is supported.
12883 dlopen_self_static=$enable_dlopen_self_static
12885 # Commands to strip libraries.
12886 old_striplib=$lt_old_striplib
12887 striplib=$lt_striplib
12890 # The linker used to build libraries.
12891 LD=$lt_LD
12893 # How to create reloadable object files.
12894 reload_flag=$lt_reload_flag
12895 reload_cmds=$lt_reload_cmds
12897 # Commands used to build an old-style archive.
12898 old_archive_cmds=$lt_old_archive_cmds
12900 # A language specific compiler.
12901 CC=$lt_compiler
12903 # Is the compiler the GNU compiler?
12904 with_gcc=$GCC
12906 # Compiler flag to turn off builtin functions.
12907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12909 # How to pass a linker flag through the compiler.
12910 wl=$lt_lt_prog_compiler_wl
12912 # Additional compiler flags for building library objects.
12913 pic_flag=$lt_lt_prog_compiler_pic
12915 # Compiler flag to prevent dynamic linking.
12916 link_static_flag=$lt_lt_prog_compiler_static
12918 # Does compiler simultaneously support -c and -o options?
12919 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12921 # Whether or not to add -lc for building shared libraries.
12922 build_libtool_need_lc=$archive_cmds_need_lc
12924 # Whether or not to disallow shared libs when runtime libs are static.
12925 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12927 # Compiler flag to allow reflexive dlopens.
12928 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12930 # Compiler flag to generate shared objects directly from archives.
12931 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12933 # Whether the compiler copes with passing no objects directly.
12934 compiler_needs_object=$lt_compiler_needs_object
12936 # Create an old-style archive from a shared archive.
12937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12939 # Create a temporary old-style archive to link instead of a shared archive.
12940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12942 # Commands used to build a shared archive.
12943 archive_cmds=$lt_archive_cmds
12944 archive_expsym_cmds=$lt_archive_expsym_cmds
12946 # Commands used to build a loadable module if different from building
12947 # a shared archive.
12948 module_cmds=$lt_module_cmds
12949 module_expsym_cmds=$lt_module_expsym_cmds
12951 # Whether we are building with GNU ld or not.
12952 with_gnu_ld=$lt_with_gnu_ld
12954 # Flag that allows shared libraries with undefined symbols to be built.
12955 allow_undefined_flag=$lt_allow_undefined_flag
12957 # Flag that enforces no undefined symbols.
12958 no_undefined_flag=$lt_no_undefined_flag
12960 # Flag to hardcode \$libdir into a binary during linking.
12961 # This must work even if \$libdir does not exist
12962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12964 # If ld is used when linking, flag to hardcode \$libdir into a binary
12965 # during linking. This must work even if \$libdir does not exist.
12966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12968 # Whether we need a single "-rpath" flag with a separated argument.
12969 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12971 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12972 # DIR into the resulting binary.
12973 hardcode_direct=$hardcode_direct
12975 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12976 # DIR into the resulting binary and the resulting library dependency is
12977 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12978 # library is relocated.
12979 hardcode_direct_absolute=$hardcode_direct_absolute
12981 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12982 # into the resulting binary.
12983 hardcode_minus_L=$hardcode_minus_L
12985 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12986 # into the resulting binary.
12987 hardcode_shlibpath_var=$hardcode_shlibpath_var
12989 # Set to "yes" if building a shared library automatically hardcodes DIR
12990 # into the library and all subsequent libraries and executables linked
12991 # against it.
12992 hardcode_automatic=$hardcode_automatic
12994 # Set to yes if linker adds runtime paths of dependent libraries
12995 # to runtime path list.
12996 inherit_rpath=$inherit_rpath
12998 # Whether libtool must link a program against all its dependency libraries.
12999 link_all_deplibs=$link_all_deplibs
13001 # Fix the shell variable \$srcfile for the compiler.
13002 fix_srcfile_path=$lt_fix_srcfile_path
13004 # Set to "yes" if exported symbols are required.
13005 always_export_symbols=$always_export_symbols
13007 # The commands to list exported symbols.
13008 export_symbols_cmds=$lt_export_symbols_cmds
13010 # Symbols that should not be listed in the preloaded symbols.
13011 exclude_expsyms=$lt_exclude_expsyms
13013 # Symbols that must always be exported.
13014 include_expsyms=$lt_include_expsyms
13016 # Commands necessary for linking programs (against libraries) with templates.
13017 prelink_cmds=$lt_prelink_cmds
13019 # Specify filename containing input files.
13020 file_list_spec=$lt_file_list_spec
13022 # How to hardcode a shared library path into an executable.
13023 hardcode_action=$hardcode_action
13025 # ### END LIBTOOL CONFIG
13027 _LT_EOF
13029 case $host_os in
13030 aix3*)
13031 cat <<\_LT_EOF >> "$cfgfile"
13032 # AIX sometimes has problems with the GCC collect2 program. For some
13033 # reason, if we set the COLLECT_NAMES environment variable, the problems
13034 # vanish in a puff of smoke.
13035 if test "X${COLLECT_NAMES+set}" != Xset; then
13036 COLLECT_NAMES=
13037 export COLLECT_NAMES
13038 fi
13039 _LT_EOF
13040 ;;
13041 esac
13044 ltmain="$ac_aux_dir/ltmain.sh"
13047 # We use sed instead of cat because bash on DJGPP gets confused if
13048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13049 # text mode, it properly converts lines to CR/LF. This bash problem
13050 # is reportedly fixed, but why not run on old versions too?
13051 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13052 || (rm -f "$cfgfile"; exit 1)
13054 case $xsi_shell in
13055 yes)
13056 cat << \_LT_EOF >> "$cfgfile"
13058 # func_dirname file append nondir_replacement
13059 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13060 # otherwise set result to NONDIR_REPLACEMENT.
13061 func_dirname ()
13062 {
13063 case ${1} in
13064 */*) func_dirname_result="${1%/*}${2}" ;;
13065 * ) func_dirname_result="${3}" ;;
13066 esac
13067 }
13069 # func_basename file
13070 func_basename ()
13071 {
13072 func_basename_result="${1##*/}"
13073 }
13075 # func_dirname_and_basename file append nondir_replacement
13076 # perform func_basename and func_dirname in a single function
13077 # call:
13078 # dirname: Compute the dirname of FILE. If nonempty,
13079 # add APPEND to the result, otherwise set result
13080 # to NONDIR_REPLACEMENT.
13081 # value returned in "$func_dirname_result"
13082 # basename: Compute filename of FILE.
13083 # value retuned in "$func_basename_result"
13084 # Implementation must be kept synchronized with func_dirname
13085 # and func_basename. For efficiency, we do not delegate to
13086 # those functions but instead duplicate the functionality here.
13087 func_dirname_and_basename ()
13088 {
13089 case ${1} in
13090 */*) func_dirname_result="${1%/*}${2}" ;;
13091 * ) func_dirname_result="${3}" ;;
13092 esac
13093 func_basename_result="${1##*/}"
13094 }
13096 # func_stripname prefix suffix name
13097 # strip PREFIX and SUFFIX off of NAME.
13098 # PREFIX and SUFFIX must not contain globbing or regex special
13099 # characters, hashes, percent signs, but SUFFIX may contain a leading
13100 # dot (in which case that matches only a dot).
13101 func_stripname ()
13102 {
13103 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13104 # positional parameters, so assign one to ordinary parameter first.
13105 func_stripname_result=${3}
13106 func_stripname_result=${func_stripname_result#"${1}"}
13107 func_stripname_result=${func_stripname_result%"${2}"}
13108 }
13110 # func_opt_split
13111 func_opt_split ()
13112 {
13113 func_opt_split_opt=${1%%=*}
13114 func_opt_split_arg=${1#*=}
13115 }
13117 # func_lo2o object
13118 func_lo2o ()
13119 {
13120 case ${1} in
13121 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13122 *) func_lo2o_result=${1} ;;
13123 esac
13124 }
13126 # func_xform libobj-or-source
13127 func_xform ()
13128 {
13129 func_xform_result=${1%.*}.lo
13130 }
13132 # func_arith arithmetic-term...
13133 func_arith ()
13134 {
13135 func_arith_result=$(( $* ))
13136 }
13138 # func_len string
13139 # STRING may not start with a hyphen.
13140 func_len ()
13141 {
13142 func_len_result=${#1}
13143 }
13145 _LT_EOF
13146 ;;
13147 *) # Bourne compatible functions.
13148 cat << \_LT_EOF >> "$cfgfile"
13150 # func_dirname file append nondir_replacement
13151 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13152 # otherwise set result to NONDIR_REPLACEMENT.
13153 func_dirname ()
13154 {
13155 # Extract subdirectory from the argument.
13156 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13157 if test "X$func_dirname_result" = "X${1}"; then
13158 func_dirname_result="${3}"
13159 else
13160 func_dirname_result="$func_dirname_result${2}"
13161 fi
13162 }
13164 # func_basename file
13165 func_basename ()
13166 {
13167 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13168 }
13171 # func_stripname prefix suffix name
13172 # strip PREFIX and SUFFIX off of NAME.
13173 # PREFIX and SUFFIX must not contain globbing or regex special
13174 # characters, hashes, percent signs, but SUFFIX may contain a leading
13175 # dot (in which case that matches only a dot).
13176 # func_strip_suffix prefix name
13177 func_stripname ()
13178 {
13179 case ${2} in
13180 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13181 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13182 esac
13183 }
13185 # sed scripts:
13186 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13187 my_sed_long_arg='1s/^-[^=]*=//'
13189 # func_opt_split
13190 func_opt_split ()
13191 {
13192 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13193 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13194 }
13196 # func_lo2o object
13197 func_lo2o ()
13198 {
13199 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13200 }
13202 # func_xform libobj-or-source
13203 func_xform ()
13204 {
13205 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13206 }
13208 # func_arith arithmetic-term...
13209 func_arith ()
13210 {
13211 func_arith_result=`expr "$@"`
13212 }
13214 # func_len string
13215 # STRING may not start with a hyphen.
13216 func_len ()
13217 {
13218 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13219 }
13221 _LT_EOF
13222 esac
13224 case $lt_shell_append in
13225 yes)
13226 cat << \_LT_EOF >> "$cfgfile"
13228 # func_append var value
13229 # Append VALUE to the end of shell variable VAR.
13230 func_append ()
13231 {
13232 eval "$1+=\$2"
13233 }
13234 _LT_EOF
13235 ;;
13236 *)
13237 cat << \_LT_EOF >> "$cfgfile"
13239 # func_append var value
13240 # Append VALUE to the end of shell variable VAR.
13241 func_append ()
13242 {
13243 eval "$1=\$$1\$2"
13244 }
13246 _LT_EOF
13247 ;;
13248 esac
13251 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13252 || (rm -f "$cfgfile"; exit 1)
13254 mv -f "$cfgfile" "$ofile" ||
13255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13256 chmod +x "$ofile"
13258 ;;
13260 esac
13261 done # for ac_tag
13264 as_fn_exit 0
13265 _ACEOF
13266 ac_clean_files=$ac_clean_files_save
13268 test $ac_write_fail = 0 ||
13269 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13272 # configure is writing to config.log, and then calls config.status.
13273 # config.status does its own redirection, appending to config.log.
13274 # Unfortunately, on DOS this fails, as config.log is still kept open
13275 # by configure, so config.status won't be able to write to it; its
13276 # output is simply discarded. So we exec the FD to /dev/null,
13277 # effectively closing config.log, so it can be properly (re)opened and
13278 # appended to by config.status. When coming back to configure, we
13279 # need to make the FD available again.
13280 if test "$no_create" != yes; then
13281 ac_cs_success=:
13282 ac_config_status_args=
13283 test "$silent" = yes &&
13284 ac_config_status_args="$ac_config_status_args --quiet"
13285 exec 5>/dev/null
13286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13287 exec 5>>config.log
13288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13289 # would make configure fail if this is the last instruction.
13290 $ac_cs_success || as_fn_exit $?
13291 fi
13292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13295 fi