Annotation of embedaddon/libiconv/preload/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.63.
4: #
5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6: # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
21: setopt NO_GLOB_SUBST
22: else
23: case `(set -o) 2>/dev/null` in
24: *posix*) set -o posix ;;
25: esac
26:
27: fi
28:
29:
30:
31:
32: # PATH needs CR
33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
40: as_nl='
41: '
42: export as_nl
43: # Printing a long string crashes Solaris 7 /usr/bin/printf.
44: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48: as_echo='printf %s\n'
49: as_echo_n='printf %s'
50: else
51: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53: as_echo_n='/usr/ucb/echo -n'
54: else
55: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56: as_echo_n_body='eval
57: arg=$1;
58: case $arg in
59: *"$as_nl"*)
60: expr "X$arg" : "X\\(.*\\)$as_nl";
61: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62: esac;
63: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64: '
65: export as_echo_n_body
66: as_echo_n='sh -c $as_echo_n_body as_echo'
67: fi
68: export as_echo_body
69: as_echo='sh -c $as_echo_body as_echo'
70: fi
71:
72: # The user is always right.
73: if test "${PATH_SEPARATOR+set}" != set; then
74: PATH_SEPARATOR=:
75: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77: PATH_SEPARATOR=';'
78: }
79: fi
80:
81: # Support unset when possible.
82: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83: as_unset=unset
84: else
85: as_unset=false
86: fi
87:
88:
89: # IFS
90: # We need space, tab and new line, in precisely that order. Quoting is
91: # there to prevent editors from complaining about space-tab.
92: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93: # splitting by setting IFS to empty value.)
94: IFS=" "" $as_nl"
95:
96: # Find who we are. Look in the path if we contain no directory separator.
97: case $0 in
98: *[\\/]* ) as_myself=$0 ;;
99: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100: for as_dir in $PATH
101: do
102: IFS=$as_save_IFS
103: test -z "$as_dir" && as_dir=.
104: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105: done
106: IFS=$as_save_IFS
107:
108: ;;
109: esac
110: # We did not find ourselves, most probably we were run as `sh COMMAND'
111: # in which case we are not to be found in the path.
112: if test "x$as_myself" = x; then
113: as_myself=$0
114: fi
115: if test ! -f "$as_myself"; then
116: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117: { (exit 1); exit 1; }
118: fi
119:
120: # Work around bugs in pre-3.0 UWIN ksh.
121: for as_var in ENV MAIL MAILPATH
122: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # Required to use basename.
135: if expr a : '\(a\)' >/dev/null 2>&1 &&
136: test "X`expr 00001 : '.*\(...\)'`" = X001; then
137: as_expr=expr
138: else
139: as_expr=false
140: fi
141:
142: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143: as_basename=basename
144: else
145: as_basename=false
146: fi
147:
148:
149: # Name of the executable.
150: as_me=`$as_basename -- "$0" ||
151: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152: X"$0" : 'X\(//\)$' \| \
153: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154: $as_echo X/"$0" |
155: sed '/^.*\/\([^/][^/]*\)\/*$/{
156: s//\1/
157: q
158: }
159: /^X\/\(\/\/\)$/{
160: s//\1/
161: q
162: }
163: /^X\/\(\/\).*/{
164: s//\1/
165: q
166: }
167: s/.*/./; q'`
168:
169: # CDPATH.
170: $as_unset CDPATH
171:
172:
173: if test "x$CONFIG_SHELL" = x; then
174: if (eval ":") 2>/dev/null; then
175: as_have_required=yes
176: else
177: as_have_required=no
178: fi
179:
180: if test $as_have_required = yes && (eval ":
181: (as_func_return () {
182: (exit \$1)
183: }
184: as_func_success () {
185: as_func_return 0
186: }
187: as_func_failure () {
188: as_func_return 1
189: }
190: as_func_ret_success () {
191: return 0
192: }
193: as_func_ret_failure () {
194: return 1
195: }
196:
197: exitcode=0
198: if as_func_success; then
199: :
200: else
201: exitcode=1
202: echo as_func_success failed.
203: fi
204:
205: if as_func_failure; then
206: exitcode=1
207: echo as_func_failure succeeded.
208: fi
209:
210: if as_func_ret_success; then
211: :
212: else
213: exitcode=1
214: echo as_func_ret_success failed.
215: fi
216:
217: if as_func_ret_failure; then
218: exitcode=1
219: echo as_func_ret_failure succeeded.
220: fi
221:
222: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223: :
224: else
225: exitcode=1
226: echo positional parameters were not saved.
227: fi
228:
229: test \$exitcode = 0) || { (exit 1); exit 1; }
230:
231: (
232: as_lineno_1=\$LINENO
233: as_lineno_2=\$LINENO
234: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236: ") 2> /dev/null; then
237: :
238: else
239: as_candidate_shells=
240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242: do
243: IFS=$as_save_IFS
244: test -z "$as_dir" && as_dir=.
245: case $as_dir in
246: /*)
247: for as_base in sh bash ksh sh5; do
248: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249: done;;
250: esac
251: done
252: IFS=$as_save_IFS
253:
254:
255: for as_shell in $as_candidate_shells $SHELL; do
256: # Try only shells that exist, to save several forks.
257: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258: { ("$as_shell") 2> /dev/null <<\_ASEOF
259: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260: emulate sh
261: NULLCMD=:
262: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263: # is contrary to our usage. Disable this feature.
264: alias -g '${1+"$@"}'='"$@"'
265: setopt NO_GLOB_SUBST
266: else
267: case `(set -o) 2>/dev/null` in
268: *posix*) set -o posix ;;
269: esac
270:
271: fi
272:
273:
274: :
275: _ASEOF
276: }; then
277: CONFIG_SHELL=$as_shell
278: as_have_required=yes
279: if { "$as_shell" 2> /dev/null <<\_ASEOF
280: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281: emulate sh
282: NULLCMD=:
283: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284: # is contrary to our usage. Disable this feature.
285: alias -g '${1+"$@"}'='"$@"'
286: setopt NO_GLOB_SUBST
287: else
288: case `(set -o) 2>/dev/null` in
289: *posix*) set -o posix ;;
290: esac
291:
292: fi
293:
294:
295: :
296: (as_func_return () {
297: (exit $1)
298: }
299: as_func_success () {
300: as_func_return 0
301: }
302: as_func_failure () {
303: as_func_return 1
304: }
305: as_func_ret_success () {
306: return 0
307: }
308: as_func_ret_failure () {
309: return 1
310: }
311:
312: exitcode=0
313: if as_func_success; then
314: :
315: else
316: exitcode=1
317: echo as_func_success failed.
318: fi
319:
320: if as_func_failure; then
321: exitcode=1
322: echo as_func_failure succeeded.
323: fi
324:
325: if as_func_ret_success; then
326: :
327: else
328: exitcode=1
329: echo as_func_ret_success failed.
330: fi
331:
332: if as_func_ret_failure; then
333: exitcode=1
334: echo as_func_ret_failure succeeded.
335: fi
336:
337: if ( set x; as_func_ret_success y && test x = "$1" ); then
338: :
339: else
340: exitcode=1
341: echo positional parameters were not saved.
342: fi
343:
344: test $exitcode = 0) || { (exit 1); exit 1; }
345:
346: (
347: as_lineno_1=$LINENO
348: as_lineno_2=$LINENO
349: test "x$as_lineno_1" != "x$as_lineno_2" &&
350: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351:
352: _ASEOF
353: }; then
354: break
355: fi
356:
357: fi
358:
359: done
360:
361: if test "x$CONFIG_SHELL" != x; then
362: for as_var in BASH_ENV ENV
363: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364: done
365: export CONFIG_SHELL
366: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367: fi
368:
369:
370: if test $as_have_required = no; then
371: echo This script requires a shell more modern than all the
372: echo shells that I found on your system. Please install a
373: echo modern shell, or manually run the script under such a
374: echo shell if you do have one.
375: { (exit 1); exit 1; }
376: fi
377:
378:
379: fi
380:
381: fi
382:
383:
384:
385: (eval "as_func_return () {
386: (exit \$1)
387: }
388: as_func_success () {
389: as_func_return 0
390: }
391: as_func_failure () {
392: as_func_return 1
393: }
394: as_func_ret_success () {
395: return 0
396: }
397: as_func_ret_failure () {
398: return 1
399: }
400:
401: exitcode=0
402: if as_func_success; then
403: :
404: else
405: exitcode=1
406: echo as_func_success failed.
407: fi
408:
409: if as_func_failure; then
410: exitcode=1
411: echo as_func_failure succeeded.
412: fi
413:
414: if as_func_ret_success; then
415: :
416: else
417: exitcode=1
418: echo as_func_ret_success failed.
419: fi
420:
421: if as_func_ret_failure; then
422: exitcode=1
423: echo as_func_ret_failure succeeded.
424: fi
425:
426: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427: :
428: else
429: exitcode=1
430: echo positional parameters were not saved.
431: fi
432:
433: test \$exitcode = 0") || {
434: echo No shell found that supports shell functions.
435: echo Please tell bug-autoconf@gnu.org about your system,
436: echo including any error possibly output before this message.
437: echo This can help us improve future autoconf versions.
438: echo Configuration will now proceed without shell functions.
439: }
440:
441:
442:
443: as_lineno_1=$LINENO
444: as_lineno_2=$LINENO
445: test "x$as_lineno_1" != "x$as_lineno_2" &&
446: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447:
448: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449: # uniformly replaced by the line number. The first 'sed' inserts a
450: # line-number line after each line using $LINENO; the second 'sed'
451: # does the real work. The second script uses 'N' to pair each
452: # line-number line with the line containing $LINENO, and appends
453: # trailing '-' during substitution so that $LINENO is not a special
454: # case at line end.
455: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456: # scripts with optimization help from Paolo Bonzini. Blame Lee
457: # E. McMahon (1931-1989) for sed's syntax. :-)
458: sed -n '
459: p
460: /[$]LINENO/=
461: ' <$as_myself |
462: sed '
463: s/[$]LINENO.*/&-/
464: t lineno
465: b
466: :lineno
467: N
468: :loop
469: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470: t loop
471: s/-\n.*//
472: ' >$as_me.lineno &&
473: chmod +x "$as_me.lineno" ||
474: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475: { (exit 1); exit 1; }; }
476:
477: # Don't try to exec as it changes $[0], causing all sort of problems
478: # (the dirname of $[0] is not the place where we might find the
479: # original and so on. Autoconf is especially sensitive to this).
480: . "./$as_me.lineno"
481: # Exit status is that of the last command.
482: exit
483: }
484:
485:
486: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487: as_dirname=dirname
488: else
489: as_dirname=false
490: fi
491:
492: ECHO_C= ECHO_N= ECHO_T=
493: case `echo -n x` in
494: -n*)
495: case `echo 'x\c'` in
496: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497: *) ECHO_C='\c';;
498: esac;;
499: *)
500: ECHO_N='-n';;
501: esac
502: if expr a : '\(a\)' >/dev/null 2>&1 &&
503: test "X`expr 00001 : '.*\(...\)'`" = X001; then
504: as_expr=expr
505: else
506: as_expr=false
507: fi
508:
509: rm -f conf$$ conf$$.exe conf$$.file
510: if test -d conf$$.dir; then
511: rm -f conf$$.dir/conf$$.file
512: else
513: rm -f conf$$.dir
514: mkdir conf$$.dir 2>/dev/null
515: fi
516: if (echo >conf$$.file) 2>/dev/null; then
517: if ln -s conf$$.file conf$$ 2>/dev/null; then
518: as_ln_s='ln -s'
519: # ... but there are two gotchas:
520: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522: # In both cases, we have to default to `cp -p'.
523: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524: as_ln_s='cp -p'
525: elif ln conf$$.file conf$$ 2>/dev/null; then
526: as_ln_s=ln
527: else
528: as_ln_s='cp -p'
529: fi
530: else
531: as_ln_s='cp -p'
532: fi
533: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534: rmdir conf$$.dir 2>/dev/null
535:
536: if mkdir -p . 2>/dev/null; then
537: as_mkdir_p=:
538: else
539: test -d ./-p && rmdir ./-p
540: as_mkdir_p=false
541: fi
542:
543: if test -x / >/dev/null 2>&1; then
544: as_test_x='test -x'
545: else
546: if ls -dL / >/dev/null 2>&1; then
547: as_ls_L_option=L
548: else
549: as_ls_L_option=
550: fi
551: as_test_x='
552: eval sh -c '\''
553: if test -d "$1"; then
554: test -d "$1/.";
555: else
556: case $1 in
557: -*)set "./$1";;
558: esac;
559: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560: ???[sx]*):;;*)false;;esac;fi
561: '\'' sh
562: '
563: fi
564: as_executable_p=$as_test_x
565:
566: # Sed expression to map a string onto a valid CPP name.
567: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568:
569: # Sed expression to map a string onto a valid variable name.
570: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571:
572:
573:
574:
575: # Check that we are running under the correct shell.
576: SHELL=${CONFIG_SHELL-/bin/sh}
577:
578: case X$lt_ECHO in
579: X*--fallback-echo)
580: # Remove one level of quotation (which was required for Make).
581: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582: ;;
583: esac
584:
585: ECHO=${lt_ECHO-echo}
586: if test "X$1" = X--no-reexec; then
587: # Discard the --no-reexec flag, and continue.
588: shift
589: elif test "X$1" = X--fallback-echo; then
590: # Avoid inline document here, it may be left over
591: :
592: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593: # Yippee, $ECHO works!
594: :
595: else
596: # Restart under the correct shell.
597: exec $SHELL "$0" --no-reexec ${1+"$@"}
598: fi
599:
600: if test "X$1" = X--fallback-echo; then
601: # used as fallback echo
602: shift
603: cat <<_LT_EOF
604: $*
605: _LT_EOF
606: exit 0
607: fi
608:
609: # The HP-UX ksh and POSIX shell print the target directory to stdout
610: # if CDPATH is set.
611: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612:
613: if test -z "$lt_ECHO"; then
614: if test "X${echo_test_string+set}" != Xset; then
615: # find a string as large as possible, as long as the shell can cope with it
616: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618: if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620: then
621: break
622: fi
623: done
624: fi
625:
626: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628: test "X$echo_testing_string" = "X$echo_test_string"; then
629: :
630: else
631: # The Solaris, AIX, and Digital Unix default echo programs unquote
632: # backslashes. This makes it impossible to quote backslashes using
633: # echo "$something" | sed 's/\\/\\\\/g'
634: #
635: # So, first we look for a working echo in the user's PATH.
636:
637: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638: for dir in $PATH /usr/ucb; do
639: IFS="$lt_save_ifs"
640: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643: test "X$echo_testing_string" = "X$echo_test_string"; then
644: ECHO="$dir/echo"
645: break
646: fi
647: done
648: IFS="$lt_save_ifs"
649:
650: if test "X$ECHO" = Xecho; then
651: # We didn't find a better echo, so look for alternatives.
652: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654: test "X$echo_testing_string" = "X$echo_test_string"; then
655: # This shell has a builtin print -r that does the trick.
656: ECHO='print -r'
657: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658: test "X$CONFIG_SHELL" != X/bin/ksh; then
659: # If we have ksh, try running configure again with it.
660: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661: export ORIGINAL_CONFIG_SHELL
662: CONFIG_SHELL=/bin/ksh
663: export CONFIG_SHELL
664: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665: else
666: # Try using printf.
667: ECHO='printf %s\n'
668: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670: test "X$echo_testing_string" = "X$echo_test_string"; then
671: # Cool, printf works
672: :
673: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674: test "X$echo_testing_string" = 'X\t' &&
675: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676: test "X$echo_testing_string" = "X$echo_test_string"; then
677: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678: export CONFIG_SHELL
679: SHELL="$CONFIG_SHELL"
680: export SHELL
681: ECHO="$CONFIG_SHELL $0 --fallback-echo"
682: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683: test "X$echo_testing_string" = 'X\t' &&
684: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685: test "X$echo_testing_string" = "X$echo_test_string"; then
686: ECHO="$CONFIG_SHELL $0 --fallback-echo"
687: else
688: # maybe with a smaller string...
689: prev=:
690:
691: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693: then
694: break
695: fi
696: prev="$cmd"
697: done
698:
699: if test "$prev" != 'sed 50q "$0"'; then
700: echo_test_string=`eval $prev`
701: export echo_test_string
702: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703: else
704: # Oops. We lost completely, so just stick with echo.
705: ECHO=echo
706: fi
707: fi
708: fi
709: fi
710: fi
711: fi
712:
713: # Copy echo and quote the copy suitably for passing to libtool from
714: # the Makefile, instead of quoting the original, which is used later.
715: lt_ECHO=$ECHO
716: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718: fi
719:
720:
721:
722:
723: exec 7<&0 </dev/null 6>&1
724:
725: # Name of the host.
726: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727: # so uname gets run too.
728: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729:
730: #
731: # Initializations.
732: #
733: ac_default_prefix=/usr/local
734: ac_clean_files=
735: ac_config_libobj_dir=.
736: LIBOBJS=
737: cross_compiling=no
738: subdirs=
739: MFLAGS=
740: MAKEFLAGS=
741: SHELL=${CONFIG_SHELL-/bin/sh}
742:
743: # Identity of this package.
744: PACKAGE_NAME=
745: PACKAGE_TARNAME=
746: PACKAGE_VERSION=
747: PACKAGE_STRING=
748: PACKAGE_BUGREPORT=
749:
750: ac_unique_file="configure.ac"
751: # Factoring default headers for most tests.
752: ac_includes_default="\
753: #include <stdio.h>
754: #ifdef HAVE_SYS_TYPES_H
755: # include <sys/types.h>
756: #endif
757: #ifdef HAVE_SYS_STAT_H
758: # include <sys/stat.h>
759: #endif
760: #ifdef STDC_HEADERS
761: # include <stdlib.h>
762: # include <stddef.h>
763: #else
764: # ifdef HAVE_STDLIB_H
765: # include <stdlib.h>
766: # endif
767: #endif
768: #ifdef HAVE_STRING_H
769: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770: # include <memory.h>
771: # endif
772: # include <string.h>
773: #endif
774: #ifdef HAVE_STRINGS_H
775: # include <strings.h>
776: #endif
777: #ifdef HAVE_INTTYPES_H
778: # include <inttypes.h>
779: #endif
780: #ifdef HAVE_STDINT_H
781: # include <stdint.h>
782: #endif
783: #ifdef HAVE_UNISTD_H
784: # include <unistd.h>
785: #endif"
786:
787: ac_subst_vars='LTLIBOBJS
788: PLUGLIB
789: HAVE_VISIBILITY
790: CFLAG_VISIBILITY
791: OTOOL64
792: OTOOL
793: LIPO
794: NMEDIT
795: DSYMUTIL
796: lt_ECHO
797: RANLIB
798: STRIP
799: AR
800: NM
801: ac_ct_DUMPBIN
802: DUMPBIN
803: LD
804: FGREP
805: SED
806: LIBTOOL
807: OBJDUMP
808: DLLTOOL
809: AS
810: EGREP
811: GREP
812: LN_S
813: LIBOBJS
814: RELOCATABLE
815: host_os
816: host_vendor
817: host_cpu
818: host
819: build_os
820: build_vendor
821: build_cpu
822: build
823: INSTALL_DATA
824: INSTALL_SCRIPT
825: INSTALL_PROGRAM
826: CPP
827: OBJEXT
828: EXEEXT
829: ac_ct_CC
830: CPPFLAGS
831: LDFLAGS
832: CFLAGS
833: CC
834: VERSION
835: PACKAGE
836: SET_MAKE
837: target_alias
838: host_alias
839: build_alias
840: LIBS
841: ECHO_T
842: ECHO_N
843: ECHO_C
844: DEFS
845: mandir
846: localedir
847: libdir
848: psdir
849: pdfdir
850: dvidir
851: htmldir
852: infodir
853: docdir
854: oldincludedir
855: includedir
856: localstatedir
857: sharedstatedir
858: sysconfdir
859: datadir
860: datarootdir
861: libexecdir
862: sbindir
863: bindir
864: program_transform_name
865: prefix
866: exec_prefix
867: PACKAGE_BUGREPORT
868: PACKAGE_STRING
869: PACKAGE_VERSION
870: PACKAGE_TARNAME
871: PACKAGE_NAME
872: PATH_SEPARATOR
873: SHELL'
874: ac_subst_files=''
875: ac_user_opts='
876: enable_option_checking
877: enable_relocatable
878: enable_shared
879: enable_static
880: with_pic
881: enable_fast_install
882: with_gnu_ld
883: enable_libtool_lock
884: '
885: ac_precious_vars='build_alias
886: host_alias
887: target_alias
888: CC
889: CFLAGS
890: LDFLAGS
891: LIBS
892: CPPFLAGS
893: CPP'
894:
895:
896: # Initialize some variables set by options.
897: ac_init_help=
898: ac_init_version=false
899: ac_unrecognized_opts=
900: ac_unrecognized_sep=
901: # The variables have the same names as the options, with
902: # dashes changed to underlines.
903: cache_file=/dev/null
904: exec_prefix=NONE
905: no_create=
906: no_recursion=
907: prefix=NONE
908: program_prefix=NONE
909: program_suffix=NONE
910: program_transform_name=s,x,x,
911: silent=
912: site=
913: srcdir=
914: verbose=
915: x_includes=NONE
916: x_libraries=NONE
917:
918: # Installation directory options.
919: # These are left unexpanded so users can "make install exec_prefix=/foo"
920: # and all the variables that are supposed to be based on exec_prefix
921: # by default will actually change.
922: # Use braces instead of parens because sh, perl, etc. also accept them.
923: # (The list follows the same order as the GNU Coding Standards.)
924: bindir='${exec_prefix}/bin'
925: sbindir='${exec_prefix}/sbin'
926: libexecdir='${exec_prefix}/libexec'
927: datarootdir='${prefix}/share'
928: datadir='${datarootdir}'
929: sysconfdir='${prefix}/etc'
930: sharedstatedir='${prefix}/com'
931: localstatedir='${prefix}/var'
932: includedir='${prefix}/include'
933: oldincludedir='/usr/include'
934: docdir='${datarootdir}/doc/${PACKAGE}'
935: infodir='${datarootdir}/info'
936: htmldir='${docdir}'
937: dvidir='${docdir}'
938: pdfdir='${docdir}'
939: psdir='${docdir}'
940: libdir='${exec_prefix}/lib'
941: localedir='${datarootdir}/locale'
942: mandir='${datarootdir}/man'
943:
944: ac_prev=
945: ac_dashdash=
946: for ac_option
947: do
948: # If the previous option needs an argument, assign it.
949: if test -n "$ac_prev"; then
950: eval $ac_prev=\$ac_option
951: ac_prev=
952: continue
953: fi
954:
955: case $ac_option in
956: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957: *) ac_optarg=yes ;;
958: esac
959:
960: # Accept the important Cygnus configure options, so we can diagnose typos.
961:
962: case $ac_dashdash$ac_option in
963: --)
964: ac_dashdash=yes ;;
965:
966: -bindir | --bindir | --bindi | --bind | --bin | --bi)
967: ac_prev=bindir ;;
968: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969: bindir=$ac_optarg ;;
970:
971: -build | --build | --buil | --bui | --bu)
972: ac_prev=build_alias ;;
973: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974: build_alias=$ac_optarg ;;
975:
976: -cache-file | --cache-file | --cache-fil | --cache-fi \
977: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978: ac_prev=cache_file ;;
979: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981: cache_file=$ac_optarg ;;
982:
983: --config-cache | -C)
984: cache_file=config.cache ;;
985:
986: -datadir | --datadir | --datadi | --datad)
987: ac_prev=datadir ;;
988: -datadir=* | --datadir=* | --datadi=* | --datad=*)
989: datadir=$ac_optarg ;;
990:
991: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992: | --dataroo | --dataro | --datar)
993: ac_prev=datarootdir ;;
994: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996: datarootdir=$ac_optarg ;;
997:
998: -disable-* | --disable-*)
999: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000: # Reject names that are not valid shell variable names.
1001: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1003: { (exit 1); exit 1; }; }
1004: ac_useropt_orig=$ac_useropt
1005: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006: case $ac_user_opts in
1007: *"
1008: "enable_$ac_useropt"
1009: "*) ;;
1010: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1011: ac_unrecognized_sep=', ';;
1012: esac
1013: eval enable_$ac_useropt=no ;;
1014:
1015: -docdir | --docdir | --docdi | --doc | --do)
1016: ac_prev=docdir ;;
1017: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018: docdir=$ac_optarg ;;
1019:
1020: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021: ac_prev=dvidir ;;
1022: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023: dvidir=$ac_optarg ;;
1024:
1025: -enable-* | --enable-*)
1026: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027: # Reject names that are not valid shell variable names.
1028: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029: { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1030: { (exit 1); exit 1; }; }
1031: ac_useropt_orig=$ac_useropt
1032: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033: case $ac_user_opts in
1034: *"
1035: "enable_$ac_useropt"
1036: "*) ;;
1037: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038: ac_unrecognized_sep=', ';;
1039: esac
1040: eval enable_$ac_useropt=\$ac_optarg ;;
1041:
1042: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044: | --exec | --exe | --ex)
1045: ac_prev=exec_prefix ;;
1046: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048: | --exec=* | --exe=* | --ex=*)
1049: exec_prefix=$ac_optarg ;;
1050:
1051: -gas | --gas | --ga | --g)
1052: # Obsolete; use --with-gas.
1053: with_gas=yes ;;
1054:
1055: -help | --help | --hel | --he | -h)
1056: ac_init_help=long ;;
1057: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058: ac_init_help=recursive ;;
1059: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060: ac_init_help=short ;;
1061:
1062: -host | --host | --hos | --ho)
1063: ac_prev=host_alias ;;
1064: -host=* | --host=* | --hos=* | --ho=*)
1065: host_alias=$ac_optarg ;;
1066:
1067: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1068: ac_prev=htmldir ;;
1069: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1070: | --ht=*)
1071: htmldir=$ac_optarg ;;
1072:
1073: -includedir | --includedir | --includedi | --included | --include \
1074: | --includ | --inclu | --incl | --inc)
1075: ac_prev=includedir ;;
1076: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077: | --includ=* | --inclu=* | --incl=* | --inc=*)
1078: includedir=$ac_optarg ;;
1079:
1080: -infodir | --infodir | --infodi | --infod | --info | --inf)
1081: ac_prev=infodir ;;
1082: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083: infodir=$ac_optarg ;;
1084:
1085: -libdir | --libdir | --libdi | --libd)
1086: ac_prev=libdir ;;
1087: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088: libdir=$ac_optarg ;;
1089:
1090: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091: | --libexe | --libex | --libe)
1092: ac_prev=libexecdir ;;
1093: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094: | --libexe=* | --libex=* | --libe=*)
1095: libexecdir=$ac_optarg ;;
1096:
1097: -localedir | --localedir | --localedi | --localed | --locale)
1098: ac_prev=localedir ;;
1099: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100: localedir=$ac_optarg ;;
1101:
1102: -localstatedir | --localstatedir | --localstatedi | --localstated \
1103: | --localstate | --localstat | --localsta | --localst | --locals)
1104: ac_prev=localstatedir ;;
1105: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107: localstatedir=$ac_optarg ;;
1108:
1109: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1110: ac_prev=mandir ;;
1111: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112: mandir=$ac_optarg ;;
1113:
1114: -nfp | --nfp | --nf)
1115: # Obsolete; use --without-fp.
1116: with_fp=no ;;
1117:
1118: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119: | --no-cr | --no-c | -n)
1120: no_create=yes ;;
1121:
1122: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1124: no_recursion=yes ;;
1125:
1126: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128: | --oldin | --oldi | --old | --ol | --o)
1129: ac_prev=oldincludedir ;;
1130: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133: oldincludedir=$ac_optarg ;;
1134:
1135: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1136: ac_prev=prefix ;;
1137: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138: prefix=$ac_optarg ;;
1139:
1140: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141: | --program-pre | --program-pr | --program-p)
1142: ac_prev=program_prefix ;;
1143: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145: program_prefix=$ac_optarg ;;
1146:
1147: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148: | --program-suf | --program-su | --program-s)
1149: ac_prev=program_suffix ;;
1150: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152: program_suffix=$ac_optarg ;;
1153:
1154: -program-transform-name | --program-transform-name \
1155: | --program-transform-nam | --program-transform-na \
1156: | --program-transform-n | --program-transform- \
1157: | --program-transform | --program-transfor \
1158: | --program-transfo | --program-transf \
1159: | --program-trans | --program-tran \
1160: | --progr-tra | --program-tr | --program-t)
1161: ac_prev=program_transform_name ;;
1162: -program-transform-name=* | --program-transform-name=* \
1163: | --program-transform-nam=* | --program-transform-na=* \
1164: | --program-transform-n=* | --program-transform-=* \
1165: | --program-transform=* | --program-transfor=* \
1166: | --program-transfo=* | --program-transf=* \
1167: | --program-trans=* | --program-tran=* \
1168: | --progr-tra=* | --program-tr=* | --program-t=*)
1169: program_transform_name=$ac_optarg ;;
1170:
1171: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1172: ac_prev=pdfdir ;;
1173: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174: pdfdir=$ac_optarg ;;
1175:
1176: -psdir | --psdir | --psdi | --psd | --ps)
1177: ac_prev=psdir ;;
1178: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1179: psdir=$ac_optarg ;;
1180:
1181: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182: | -silent | --silent | --silen | --sile | --sil)
1183: silent=yes ;;
1184:
1185: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1186: ac_prev=sbindir ;;
1187: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1188: | --sbi=* | --sb=*)
1189: sbindir=$ac_optarg ;;
1190:
1191: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193: | --sharedst | --shareds | --shared | --share | --shar \
1194: | --sha | --sh)
1195: ac_prev=sharedstatedir ;;
1196: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1199: | --sha=* | --sh=*)
1200: sharedstatedir=$ac_optarg ;;
1201:
1202: -site | --site | --sit)
1203: ac_prev=site ;;
1204: -site=* | --site=* | --sit=*)
1205: site=$ac_optarg ;;
1206:
1207: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1208: ac_prev=srcdir ;;
1209: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210: srcdir=$ac_optarg ;;
1211:
1212: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213: | --syscon | --sysco | --sysc | --sys | --sy)
1214: ac_prev=sysconfdir ;;
1215: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217: sysconfdir=$ac_optarg ;;
1218:
1219: -target | --target | --targe | --targ | --tar | --ta | --t)
1220: ac_prev=target_alias ;;
1221: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222: target_alias=$ac_optarg ;;
1223:
1224: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1225: verbose=yes ;;
1226:
1227: -version | --version | --versio | --versi | --vers | -V)
1228: ac_init_version=: ;;
1229:
1230: -with-* | --with-*)
1231: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232: # Reject names that are not valid shell variable names.
1233: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1235: { (exit 1); exit 1; }; }
1236: ac_useropt_orig=$ac_useropt
1237: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238: case $ac_user_opts in
1239: *"
1240: "with_$ac_useropt"
1241: "*) ;;
1242: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1243: ac_unrecognized_sep=', ';;
1244: esac
1245: eval with_$ac_useropt=\$ac_optarg ;;
1246:
1247: -without-* | --without-*)
1248: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1249: # Reject names that are not valid shell variable names.
1250: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251: { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1252: { (exit 1); exit 1; }; }
1253: ac_useropt_orig=$ac_useropt
1254: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255: case $ac_user_opts in
1256: *"
1257: "with_$ac_useropt"
1258: "*) ;;
1259: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260: ac_unrecognized_sep=', ';;
1261: esac
1262: eval with_$ac_useropt=no ;;
1263:
1264: --x)
1265: # Obsolete; use --with-x.
1266: with_x=yes ;;
1267:
1268: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269: | --x-incl | --x-inc | --x-in | --x-i)
1270: ac_prev=x_includes ;;
1271: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273: x_includes=$ac_optarg ;;
1274:
1275: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277: ac_prev=x_libraries ;;
1278: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280: x_libraries=$ac_optarg ;;
1281:
1282: -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1283: Try \`$0 --help' for more information." >&2
1284: { (exit 1); exit 1; }; }
1285: ;;
1286:
1287: *=*)
1288: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289: # Reject names that are not valid shell variable names.
1290: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1291: { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1292: { (exit 1); exit 1; }; }
1293: eval $ac_envvar=\$ac_optarg
1294: export $ac_envvar ;;
1295:
1296: *)
1297: # FIXME: should be removed in autoconf 3.0.
1298: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302: ;;
1303:
1304: esac
1305: done
1306:
1307: if test -n "$ac_prev"; then
1308: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309: { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1310: { (exit 1); exit 1; }; }
1311: fi
1312:
1313: if test -n "$ac_unrecognized_opts"; then
1314: case $enable_option_checking in
1315: no) ;;
1316: fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1317: { (exit 1); exit 1; }; } ;;
1318: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319: esac
1320: fi
1321:
1322: # Check all directory arguments for consistency.
1323: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324: datadir sysconfdir sharedstatedir localstatedir includedir \
1325: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326: libdir localedir mandir
1327: do
1328: eval ac_val=\$$ac_var
1329: # Remove trailing slashes.
1330: case $ac_val in
1331: */ )
1332: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333: eval $ac_var=\$ac_val;;
1334: esac
1335: # Be sure to have absolute directory names.
1336: case $ac_val in
1337: [\\/$]* | ?:[\\/]* ) continue;;
1338: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1339: esac
1340: { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1341: { (exit 1); exit 1; }; }
1342: done
1343:
1344: # There might be people who depend on the old broken behavior: `$host'
1345: # used to hold the argument of --host etc.
1346: # FIXME: To remove some day.
1347: build=$build_alias
1348: host=$host_alias
1349: target=$target_alias
1350:
1351: # FIXME: To remove some day.
1352: if test "x$host_alias" != x; then
1353: if test "x$build_alias" = x; then
1354: cross_compiling=maybe
1355: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1356: If a cross compiler is detected then cross compile mode will be used." >&2
1357: elif test "x$build_alias" != "x$host_alias"; then
1358: cross_compiling=yes
1359: fi
1360: fi
1361:
1362: ac_tool_prefix=
1363: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1364:
1365: test "$silent" = yes && exec 6>/dev/null
1366:
1367:
1368: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1369: ac_ls_di=`ls -di .` &&
1370: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1371: { $as_echo "$as_me: error: working directory cannot be determined" >&2
1372: { (exit 1); exit 1; }; }
1373: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374: { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1375: { (exit 1); exit 1; }; }
1376:
1377:
1378: # Find the source files, if location was not specified.
1379: if test -z "$srcdir"; then
1380: ac_srcdir_defaulted=yes
1381: # Try the directory containing this script, then the parent directory.
1382: ac_confdir=`$as_dirname -- "$as_myself" ||
1383: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384: X"$as_myself" : 'X\(//\)[^/]' \| \
1385: X"$as_myself" : 'X\(//\)$' \| \
1386: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387: $as_echo X"$as_myself" |
1388: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389: s//\1/
1390: q
1391: }
1392: /^X\(\/\/\)[^/].*/{
1393: s//\1/
1394: q
1395: }
1396: /^X\(\/\/\)$/{
1397: s//\1/
1398: q
1399: }
1400: /^X\(\/\).*/{
1401: s//\1/
1402: q
1403: }
1404: s/.*/./; q'`
1405: srcdir=$ac_confdir
1406: if test ! -r "$srcdir/$ac_unique_file"; then
1407: srcdir=..
1408: fi
1409: else
1410: ac_srcdir_defaulted=no
1411: fi
1412: if test ! -r "$srcdir/$ac_unique_file"; then
1413: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414: { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1415: { (exit 1); exit 1; }; }
1416: fi
1417: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418: ac_abs_confdir=`(
1419: cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1420: { (exit 1); exit 1; }; }
1421: pwd)`
1422: # When building in place, set srcdir=.
1423: if test "$ac_abs_confdir" = "$ac_pwd"; then
1424: srcdir=.
1425: fi
1426: # Remove unnecessary trailing slashes from srcdir.
1427: # Double slashes in file names in object file debugging info
1428: # mess up M-x gdb in Emacs.
1429: case $srcdir in
1430: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431: esac
1432: for ac_var in $ac_precious_vars; do
1433: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434: eval ac_env_${ac_var}_value=\$${ac_var}
1435: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437: done
1438:
1439: #
1440: # Report the --help message.
1441: #
1442: if test "$ac_init_help" = "long"; then
1443: # Omit some internal or obsolete options to make the list less imposing.
1444: # This message is too long to be a string in the A/UX 3.1 sh.
1445: cat <<_ACEOF
1446: \`configure' configures this package to adapt to many kinds of systems.
1447:
1448: Usage: $0 [OPTION]... [VAR=VALUE]...
1449:
1450: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451: VAR=VALUE. See below for descriptions of some of the useful variables.
1452:
1453: Defaults for the options are specified in brackets.
1454:
1455: Configuration:
1456: -h, --help display this help and exit
1457: --help=short display options specific to this package
1458: --help=recursive display the short help of all the included packages
1459: -V, --version display version information and exit
1460: -q, --quiet, --silent do not print \`checking...' messages
1461: --cache-file=FILE cache test results in FILE [disabled]
1462: -C, --config-cache alias for \`--cache-file=config.cache'
1463: -n, --no-create do not create output files
1464: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465:
1466: Installation directories:
1467: --prefix=PREFIX install architecture-independent files in PREFIX
1468: [$ac_default_prefix]
1469: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470: [PREFIX]
1471:
1472: By default, \`make install' will install all the files in
1473: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475: for instance \`--prefix=\$HOME'.
1476:
1477: For better control, use the options below.
1478:
1479: Fine tuning of the installation directories:
1480: --bindir=DIR user executables [EPREFIX/bin]
1481: --sbindir=DIR system admin executables [EPREFIX/sbin]
1482: --libexecdir=DIR program executables [EPREFIX/libexec]
1483: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486: --libdir=DIR object code libraries [EPREFIX/lib]
1487: --includedir=DIR C header files [PREFIX/include]
1488: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491: --infodir=DIR info documentation [DATAROOTDIR/info]
1492: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493: --mandir=DIR man documentation [DATAROOTDIR/man]
1494: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495: --htmldir=DIR html documentation [DOCDIR]
1496: --dvidir=DIR dvi documentation [DOCDIR]
1497: --pdfdir=DIR pdf documentation [DOCDIR]
1498: --psdir=DIR ps documentation [DOCDIR]
1499: _ACEOF
1500:
1501: cat <<\_ACEOF
1502:
1503: System types:
1504: --build=BUILD configure for building on BUILD [guessed]
1505: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506: _ACEOF
1507: fi
1508:
1509: if test -n "$ac_init_help"; then
1510:
1511: cat <<\_ACEOF
1512:
1513: Optional Features:
1514: --disable-option-checking ignore unrecognized --enable/--with options
1515: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517: --enable-relocatable install a package that can be moved in the filesystem
1518: --enable-shared[=PKGS] build shared libraries [default=yes]
1519: --enable-static[=PKGS] build static libraries [default=yes]
1520: --enable-fast-install[=PKGS]
1521: optimize for fast installation [default=yes]
1522: --disable-libtool-lock avoid locking (might break parallel builds)
1523:
1524: Optional Packages:
1525: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1526: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1527: --with-pic try to use only PIC/non-PIC objects [default=use
1528: both]
1529: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530:
1531: Some influential environment variables:
1532: CC C compiler command
1533: CFLAGS C compiler flags
1534: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535: nonstandard directory <lib dir>
1536: LIBS libraries to pass to the linker, e.g. -l<library>
1537: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1538: you have headers in a nonstandard directory <include dir>
1539: CPP C preprocessor
1540:
1541: Use these variables to override the choices made by `configure' or to help
1542: it to find libraries and programs with nonstandard names/locations.
1543:
1544: _ACEOF
1545: ac_status=$?
1546: fi
1547:
1548: if test "$ac_init_help" = "recursive"; then
1549: # If there are subdirs, report their specific --help.
1550: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551: test -d "$ac_dir" ||
1552: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553: continue
1554: ac_builddir=.
1555:
1556: case "$ac_dir" in
1557: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558: *)
1559: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560: # A ".." for each directory in $ac_dir_suffix.
1561: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562: case $ac_top_builddir_sub in
1563: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565: esac ;;
1566: esac
1567: ac_abs_top_builddir=$ac_pwd
1568: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569: # for backward compatibility:
1570: ac_top_builddir=$ac_top_build_prefix
1571:
1572: case $srcdir in
1573: .) # We are building in place.
1574: ac_srcdir=.
1575: ac_top_srcdir=$ac_top_builddir_sub
1576: ac_abs_top_srcdir=$ac_pwd ;;
1577: [\\/]* | ?:[\\/]* ) # Absolute name.
1578: ac_srcdir=$srcdir$ac_dir_suffix;
1579: ac_top_srcdir=$srcdir
1580: ac_abs_top_srcdir=$srcdir ;;
1581: *) # Relative name.
1582: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583: ac_top_srcdir=$ac_top_build_prefix$srcdir
1584: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585: esac
1586: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587:
1588: cd "$ac_dir" || { ac_status=$?; continue; }
1589: # Check for guested configure.
1590: if test -f "$ac_srcdir/configure.gnu"; then
1591: echo &&
1592: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593: elif test -f "$ac_srcdir/configure"; then
1594: echo &&
1595: $SHELL "$ac_srcdir/configure" --help=recursive
1596: else
1597: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598: fi || ac_status=$?
1599: cd "$ac_pwd" || { ac_status=$?; break; }
1600: done
1601: fi
1602:
1603: test -n "$ac_init_help" && exit $ac_status
1604: if $ac_init_version; then
1605: cat <<\_ACEOF
1606: configure
1607: generated by GNU Autoconf 2.63
1608:
1609: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1610: 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1611: This configure script is free software; the Free Software Foundation
1612: gives unlimited permission to copy, distribute and modify it.
1613: _ACEOF
1614: exit
1615: fi
1616: cat >config.log <<_ACEOF
1617: This file contains any messages produced by compilers while
1618: running configure, to aid debugging if configure makes a mistake.
1619:
1620: It was created by $as_me, which was
1621: generated by GNU Autoconf 2.63. Invocation command line was
1622:
1623: $ $0 $@
1624:
1625: _ACEOF
1626: exec 5>>config.log
1627: {
1628: cat <<_ASUNAME
1629: ## --------- ##
1630: ## Platform. ##
1631: ## --------- ##
1632:
1633: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1634: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1635: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1636: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1637: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638:
1639: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1640: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641:
1642: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1643: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1644: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1645: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1646: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1647: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1648: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649:
1650: _ASUNAME
1651:
1652: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653: for as_dir in $PATH
1654: do
1655: IFS=$as_save_IFS
1656: test -z "$as_dir" && as_dir=.
1657: $as_echo "PATH: $as_dir"
1658: done
1659: IFS=$as_save_IFS
1660:
1661: } >&5
1662:
1663: cat >&5 <<_ACEOF
1664:
1665:
1666: ## ----------- ##
1667: ## Core tests. ##
1668: ## ----------- ##
1669:
1670: _ACEOF
1671:
1672:
1673: # Keep a trace of the command line.
1674: # Strip out --no-create and --no-recursion so they do not pile up.
1675: # Strip out --silent because we don't want to record it for future runs.
1676: # Also quote any args containing shell meta-characters.
1677: # Make two passes to allow for proper duplicate-argument suppression.
1678: ac_configure_args=
1679: ac_configure_args0=
1680: ac_configure_args1=
1681: ac_must_keep_next=false
1682: for ac_pass in 1 2
1683: do
1684: for ac_arg
1685: do
1686: case $ac_arg in
1687: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1688: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1689: | -silent | --silent | --silen | --sile | --sil)
1690: continue ;;
1691: *\'*)
1692: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1693: esac
1694: case $ac_pass in
1695: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696: 2)
1697: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1698: if test $ac_must_keep_next = true; then
1699: ac_must_keep_next=false # Got value, back to normal.
1700: else
1701: case $ac_arg in
1702: *=* | --config-cache | -C | -disable-* | --disable-* \
1703: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1704: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1705: | -with-* | --with-* | -without-* | --without-* | --x)
1706: case "$ac_configure_args0 " in
1707: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1708: esac
1709: ;;
1710: -* ) ac_must_keep_next=true ;;
1711: esac
1712: fi
1713: ac_configure_args="$ac_configure_args '$ac_arg'"
1714: ;;
1715: esac
1716: done
1717: done
1718: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1719: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720:
1721: # When interrupted or exit'd, cleanup temporary files, and complete
1722: # config.log. We remove comments because anyway the quotes in there
1723: # would cause problems or look ugly.
1724: # WARNING: Use '\'' to represent an apostrophe within the trap.
1725: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1726: trap 'exit_status=$?
1727: # Save into config.log some information that might help in debugging.
1728: {
1729: echo
1730:
1731: cat <<\_ASBOX
1732: ## ---------------- ##
1733: ## Cache variables. ##
1734: ## ---------------- ##
1735: _ASBOX
1736: echo
1737: # The following way of writing the cache mishandles newlines in values,
1738: (
1739: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1740: eval ac_val=\$$ac_var
1741: case $ac_val in #(
1742: *${as_nl}*)
1743: case $ac_var in #(
1744: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1745: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1746: esac
1747: case $ac_var in #(
1748: _ | IFS | as_nl) ;; #(
1749: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1750: *) $as_unset $ac_var ;;
1751: esac ;;
1752: esac
1753: done
1754: (set) 2>&1 |
1755: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1756: *${as_nl}ac_space=\ *)
1757: sed -n \
1758: "s/'\''/'\''\\\\'\'''\''/g;
1759: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760: ;; #(
1761: *)
1762: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763: ;;
1764: esac |
1765: sort
1766: )
1767: echo
1768:
1769: cat <<\_ASBOX
1770: ## ----------------- ##
1771: ## Output variables. ##
1772: ## ----------------- ##
1773: _ASBOX
1774: echo
1775: for ac_var in $ac_subst_vars
1776: do
1777: eval ac_val=\$$ac_var
1778: case $ac_val in
1779: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1780: esac
1781: $as_echo "$ac_var='\''$ac_val'\''"
1782: done | sort
1783: echo
1784:
1785: if test -n "$ac_subst_files"; then
1786: cat <<\_ASBOX
1787: ## ------------------- ##
1788: ## File substitutions. ##
1789: ## ------------------- ##
1790: _ASBOX
1791: echo
1792: for ac_var in $ac_subst_files
1793: do
1794: eval ac_val=\$$ac_var
1795: case $ac_val in
1796: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1797: esac
1798: $as_echo "$ac_var='\''$ac_val'\''"
1799: done | sort
1800: echo
1801: fi
1802:
1803: if test -s confdefs.h; then
1804: cat <<\_ASBOX
1805: ## ----------- ##
1806: ## confdefs.h. ##
1807: ## ----------- ##
1808: _ASBOX
1809: echo
1810: cat confdefs.h
1811: echo
1812: fi
1813: test "$ac_signal" != 0 &&
1814: $as_echo "$as_me: caught signal $ac_signal"
1815: $as_echo "$as_me: exit $exit_status"
1816: } >&5
1817: rm -f core *.core core.conftest.* &&
1818: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819: exit $exit_status
1820: ' 0
1821: for ac_signal in 1 2 13 15; do
1822: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1823: done
1824: ac_signal=0
1825:
1826: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1827: rm -f -r conftest* confdefs.h
1828:
1829: # Predefined preprocessor variables.
1830:
1831: cat >>confdefs.h <<_ACEOF
1832: #define PACKAGE_NAME "$PACKAGE_NAME"
1833: _ACEOF
1834:
1835:
1836: cat >>confdefs.h <<_ACEOF
1837: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1838: _ACEOF
1839:
1840:
1841: cat >>confdefs.h <<_ACEOF
1842: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1843: _ACEOF
1844:
1845:
1846: cat >>confdefs.h <<_ACEOF
1847: #define PACKAGE_STRING "$PACKAGE_STRING"
1848: _ACEOF
1849:
1850:
1851: cat >>confdefs.h <<_ACEOF
1852: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1853: _ACEOF
1854:
1855:
1856: # Let the site file select an alternate cache file if it wants to.
1857: # Prefer an explicitly selected file to automatically selected ones.
1858: ac_site_file1=NONE
1859: ac_site_file2=NONE
1860: if test -n "$CONFIG_SITE"; then
1861: ac_site_file1=$CONFIG_SITE
1862: elif test "x$prefix" != xNONE; then
1863: ac_site_file1=$prefix/share/config.site
1864: ac_site_file2=$prefix/etc/config.site
1865: else
1866: ac_site_file1=$ac_default_prefix/share/config.site
1867: ac_site_file2=$ac_default_prefix/etc/config.site
1868: fi
1869: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1870: do
1871: test "x$ac_site_file" = xNONE && continue
1872: if test -r "$ac_site_file"; then
1873: { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1874: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1875: sed 's/^/| /' "$ac_site_file" >&5
1876: . "$ac_site_file"
1877: fi
1878: done
1879:
1880: if test -r "$cache_file"; then
1881: # Some versions of bash will fail to source /dev/null (special
1882: # files actually), so we avoid doing that.
1883: if test -f "$cache_file"; then
1884: { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1885: $as_echo "$as_me: loading cache $cache_file" >&6;}
1886: case $cache_file in
1887: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1888: *) . "./$cache_file";;
1889: esac
1890: fi
1891: else
1892: { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1893: $as_echo "$as_me: creating cache $cache_file" >&6;}
1894: >$cache_file
1895: fi
1896:
1897: # Check that the precious variables saved in the cache have kept the same
1898: # value.
1899: ac_cache_corrupted=false
1900: for ac_var in $ac_precious_vars; do
1901: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1902: eval ac_new_set=\$ac_env_${ac_var}_set
1903: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1904: eval ac_new_val=\$ac_env_${ac_var}_value
1905: case $ac_old_set,$ac_new_set in
1906: set,)
1907: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1908: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1909: ac_cache_corrupted=: ;;
1910: ,set)
1911: { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1912: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1913: ac_cache_corrupted=: ;;
1914: ,);;
1915: *)
1916: if test "x$ac_old_val" != "x$ac_new_val"; then
1917: # differences in whitespace do not lead to failure.
1918: ac_old_val_w=`echo x $ac_old_val`
1919: ac_new_val_w=`echo x $ac_new_val`
1920: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1921: { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1922: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1923: ac_cache_corrupted=:
1924: else
1925: { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1926: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1927: eval $ac_var=\$ac_old_val
1928: fi
1929: { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1930: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1931: { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1932: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1933: fi;;
1934: esac
1935: # Pass precious variables to config.status.
1936: if test "$ac_new_set" = set; then
1937: case $ac_new_val in
1938: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1939: *) ac_arg=$ac_var=$ac_new_val ;;
1940: esac
1941: case " $ac_configure_args " in
1942: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1943: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1944: esac
1945: fi
1946: done
1947: if $ac_cache_corrupted; then
1948: { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1949: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1950: { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1951: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1952: { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1953: $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1954: { (exit 1); exit 1; }; }
1955: fi
1956:
1957:
1958:
1959:
1960:
1961:
1962:
1963:
1964:
1965:
1966:
1967:
1968:
1969:
1970:
1971:
1972:
1973: ac_ext=c
1974: ac_cpp='$CPP $CPPFLAGS'
1975: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978:
1979:
1980: ac_aux_dir=
1981: for ac_dir in ../build-aux "$srcdir"/../build-aux; do
1982: if test -f "$ac_dir/install-sh"; then
1983: ac_aux_dir=$ac_dir
1984: ac_install_sh="$ac_aux_dir/install-sh -c"
1985: break
1986: elif test -f "$ac_dir/install.sh"; then
1987: ac_aux_dir=$ac_dir
1988: ac_install_sh="$ac_aux_dir/install.sh -c"
1989: break
1990: elif test -f "$ac_dir/shtool"; then
1991: ac_aux_dir=$ac_dir
1992: ac_install_sh="$ac_aux_dir/shtool install -c"
1993: break
1994: fi
1995: done
1996: if test -z "$ac_aux_dir"; then
1997: { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
1998: $as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
1999: { (exit 1); exit 1; }; }
2000: fi
2001:
2002: # These three variables are undocumented and unsupported,
2003: # and are intended to be withdrawn in a future Autoconf release.
2004: # They can cause serious problems if a builder's source tree is in a directory
2005: # whose full name contains unusual characters.
2006: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009:
2010:
2011: { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2012: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2013: set x ${MAKE-make}
2014: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2015: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2016: $as_echo_n "(cached) " >&6
2017: else
2018: cat >conftest.make <<\_ACEOF
2019: SHELL = /bin/sh
2020: all:
2021: @echo '@@@%%%=$(MAKE)=@@@%%%'
2022: _ACEOF
2023: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2024: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2025: *@@@%%%=?*=@@@%%%*)
2026: eval ac_cv_prog_make_${ac_make}_set=yes;;
2027: *)
2028: eval ac_cv_prog_make_${ac_make}_set=no;;
2029: esac
2030: rm -f conftest.make
2031: fi
2032: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2033: { $as_echo "$as_me:$LINENO: result: yes" >&5
2034: $as_echo "yes" >&6; }
2035: SET_MAKE=
2036: else
2037: { $as_echo "$as_me:$LINENO: result: no" >&5
2038: $as_echo "no" >&6; }
2039: SET_MAKE="MAKE=${MAKE-make}"
2040: fi
2041:
2042:
2043:
2044:
2045:
2046: ac_ext=c
2047: ac_cpp='$CPP $CPPFLAGS'
2048: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051: if test -n "$ac_tool_prefix"; then
2052: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2053: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2054: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2055: $as_echo_n "checking for $ac_word... " >&6; }
2056: if test "${ac_cv_prog_CC+set}" = set; then
2057: $as_echo_n "(cached) " >&6
2058: else
2059: if test -n "$CC"; then
2060: ac_cv_prog_CC="$CC" # Let the user override the test.
2061: else
2062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063: for as_dir in $PATH
2064: do
2065: IFS=$as_save_IFS
2066: test -z "$as_dir" && as_dir=.
2067: for ac_exec_ext in '' $ac_executable_extensions; do
2068: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2070: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071: break 2
2072: fi
2073: done
2074: done
2075: IFS=$as_save_IFS
2076:
2077: fi
2078: fi
2079: CC=$ac_cv_prog_CC
2080: if test -n "$CC"; then
2081: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2082: $as_echo "$CC" >&6; }
2083: else
2084: { $as_echo "$as_me:$LINENO: result: no" >&5
2085: $as_echo "no" >&6; }
2086: fi
2087:
2088:
2089: fi
2090: if test -z "$ac_cv_prog_CC"; then
2091: ac_ct_CC=$CC
2092: # Extract the first word of "gcc", so it can be a program name with args.
2093: set dummy gcc; ac_word=$2
2094: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2095: $as_echo_n "checking for $ac_word... " >&6; }
2096: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2097: $as_echo_n "(cached) " >&6
2098: else
2099: if test -n "$ac_ct_CC"; then
2100: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2101: else
2102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103: for as_dir in $PATH
2104: do
2105: IFS=$as_save_IFS
2106: test -z "$as_dir" && as_dir=.
2107: for ac_exec_ext in '' $ac_executable_extensions; do
2108: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109: ac_cv_prog_ac_ct_CC="gcc"
2110: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111: break 2
2112: fi
2113: done
2114: done
2115: IFS=$as_save_IFS
2116:
2117: fi
2118: fi
2119: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120: if test -n "$ac_ct_CC"; then
2121: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122: $as_echo "$ac_ct_CC" >&6; }
2123: else
2124: { $as_echo "$as_me:$LINENO: result: no" >&5
2125: $as_echo "no" >&6; }
2126: fi
2127:
2128: if test "x$ac_ct_CC" = x; then
2129: CC=""
2130: else
2131: case $cross_compiling:$ac_tool_warned in
2132: yes:)
2133: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2134: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2135: ac_tool_warned=yes ;;
2136: esac
2137: CC=$ac_ct_CC
2138: fi
2139: else
2140: CC="$ac_cv_prog_CC"
2141: fi
2142:
2143: if test -z "$CC"; then
2144: if test -n "$ac_tool_prefix"; then
2145: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2146: set dummy ${ac_tool_prefix}cc; ac_word=$2
2147: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2148: $as_echo_n "checking for $ac_word... " >&6; }
2149: if test "${ac_cv_prog_CC+set}" = set; then
2150: $as_echo_n "(cached) " >&6
2151: else
2152: if test -n "$CC"; then
2153: ac_cv_prog_CC="$CC" # Let the user override the test.
2154: else
2155: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156: for as_dir in $PATH
2157: do
2158: IFS=$as_save_IFS
2159: test -z "$as_dir" && as_dir=.
2160: for ac_exec_ext in '' $ac_executable_extensions; do
2161: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162: ac_cv_prog_CC="${ac_tool_prefix}cc"
2163: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164: break 2
2165: fi
2166: done
2167: done
2168: IFS=$as_save_IFS
2169:
2170: fi
2171: fi
2172: CC=$ac_cv_prog_CC
2173: if test -n "$CC"; then
2174: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2175: $as_echo "$CC" >&6; }
2176: else
2177: { $as_echo "$as_me:$LINENO: result: no" >&5
2178: $as_echo "no" >&6; }
2179: fi
2180:
2181:
2182: fi
2183: fi
2184: if test -z "$CC"; then
2185: # Extract the first word of "cc", so it can be a program name with args.
2186: set dummy cc; ac_word=$2
2187: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2188: $as_echo_n "checking for $ac_word... " >&6; }
2189: if test "${ac_cv_prog_CC+set}" = set; then
2190: $as_echo_n "(cached) " >&6
2191: else
2192: if test -n "$CC"; then
2193: ac_cv_prog_CC="$CC" # Let the user override the test.
2194: else
2195: ac_prog_rejected=no
2196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197: for as_dir in $PATH
2198: do
2199: IFS=$as_save_IFS
2200: test -z "$as_dir" && as_dir=.
2201: for ac_exec_ext in '' $ac_executable_extensions; do
2202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2204: ac_prog_rejected=yes
2205: continue
2206: fi
2207: ac_cv_prog_CC="cc"
2208: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209: break 2
2210: fi
2211: done
2212: done
2213: IFS=$as_save_IFS
2214:
2215: if test $ac_prog_rejected = yes; then
2216: # We found a bogon in the path, so make sure we never use it.
2217: set dummy $ac_cv_prog_CC
2218: shift
2219: if test $# != 0; then
2220: # We chose a different compiler from the bogus one.
2221: # However, it has the same basename, so the bogon will be chosen
2222: # first if we set CC to just the basename; use the full file name.
2223: shift
2224: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2225: fi
2226: fi
2227: fi
2228: fi
2229: CC=$ac_cv_prog_CC
2230: if test -n "$CC"; then
2231: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2232: $as_echo "$CC" >&6; }
2233: else
2234: { $as_echo "$as_me:$LINENO: result: no" >&5
2235: $as_echo "no" >&6; }
2236: fi
2237:
2238:
2239: fi
2240: if test -z "$CC"; then
2241: if test -n "$ac_tool_prefix"; then
2242: for ac_prog in cl.exe
2243: do
2244: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2245: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2246: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2247: $as_echo_n "checking for $ac_word... " >&6; }
2248: if test "${ac_cv_prog_CC+set}" = set; then
2249: $as_echo_n "(cached) " >&6
2250: else
2251: if test -n "$CC"; then
2252: ac_cv_prog_CC="$CC" # Let the user override the test.
2253: else
2254: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255: for as_dir in $PATH
2256: do
2257: IFS=$as_save_IFS
2258: test -z "$as_dir" && as_dir=.
2259: for ac_exec_ext in '' $ac_executable_extensions; do
2260: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2262: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263: break 2
2264: fi
2265: done
2266: done
2267: IFS=$as_save_IFS
2268:
2269: fi
2270: fi
2271: CC=$ac_cv_prog_CC
2272: if test -n "$CC"; then
2273: { $as_echo "$as_me:$LINENO: result: $CC" >&5
2274: $as_echo "$CC" >&6; }
2275: else
2276: { $as_echo "$as_me:$LINENO: result: no" >&5
2277: $as_echo "no" >&6; }
2278: fi
2279:
2280:
2281: test -n "$CC" && break
2282: done
2283: fi
2284: if test -z "$CC"; then
2285: ac_ct_CC=$CC
2286: for ac_prog in cl.exe
2287: do
2288: # Extract the first word of "$ac_prog", so it can be a program name with args.
2289: set dummy $ac_prog; ac_word=$2
2290: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291: $as_echo_n "checking for $ac_word... " >&6; }
2292: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2293: $as_echo_n "(cached) " >&6
2294: else
2295: if test -n "$ac_ct_CC"; then
2296: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2297: else
2298: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299: for as_dir in $PATH
2300: do
2301: IFS=$as_save_IFS
2302: test -z "$as_dir" && as_dir=.
2303: for ac_exec_ext in '' $ac_executable_extensions; do
2304: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305: ac_cv_prog_ac_ct_CC="$ac_prog"
2306: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307: break 2
2308: fi
2309: done
2310: done
2311: IFS=$as_save_IFS
2312:
2313: fi
2314: fi
2315: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316: if test -n "$ac_ct_CC"; then
2317: { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2318: $as_echo "$ac_ct_CC" >&6; }
2319: else
2320: { $as_echo "$as_me:$LINENO: result: no" >&5
2321: $as_echo "no" >&6; }
2322: fi
2323:
2324:
2325: test -n "$ac_ct_CC" && break
2326: done
2327:
2328: if test "x$ac_ct_CC" = x; then
2329: CC=""
2330: else
2331: case $cross_compiling:$ac_tool_warned in
2332: yes:)
2333: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2334: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2335: ac_tool_warned=yes ;;
2336: esac
2337: CC=$ac_ct_CC
2338: fi
2339: fi
2340:
2341: fi
2342:
2343:
2344: test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2345: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2346: { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2347: See \`config.log' for more details." >&5
2348: $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2349: See \`config.log' for more details." >&2;}
2350: { (exit 1); exit 1; }; }; }
2351:
2352: # Provide some information about the compiler.
2353: $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2354: set X $ac_compile
2355: ac_compiler=$2
2356: { (ac_try="$ac_compiler --version >&5"
2357: case "(($ac_try" in
2358: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359: *) ac_try_echo=$ac_try;;
2360: esac
2361: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2362: $as_echo "$ac_try_echo") >&5
2363: (eval "$ac_compiler --version >&5") 2>&5
2364: ac_status=$?
2365: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366: (exit $ac_status); }
2367: { (ac_try="$ac_compiler -v >&5"
2368: case "(($ac_try" in
2369: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370: *) ac_try_echo=$ac_try;;
2371: esac
2372: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2373: $as_echo "$ac_try_echo") >&5
2374: (eval "$ac_compiler -v >&5") 2>&5
2375: ac_status=$?
2376: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377: (exit $ac_status); }
2378: { (ac_try="$ac_compiler -V >&5"
2379: case "(($ac_try" in
2380: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381: *) ac_try_echo=$ac_try;;
2382: esac
2383: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2384: $as_echo "$ac_try_echo") >&5
2385: (eval "$ac_compiler -V >&5") 2>&5
2386: ac_status=$?
2387: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388: (exit $ac_status); }
2389:
2390: cat >conftest.$ac_ext <<_ACEOF
2391: /* confdefs.h. */
2392: _ACEOF
2393: cat confdefs.h >>conftest.$ac_ext
2394: cat >>conftest.$ac_ext <<_ACEOF
2395: /* end confdefs.h. */
2396:
2397: int
2398: main ()
2399: {
2400:
2401: ;
2402: return 0;
2403: }
2404: _ACEOF
2405: ac_clean_files_save=$ac_clean_files
2406: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2407: # Try to create an executable without -o first, disregard a.out.
2408: # It will help us diagnose broken compilers, and finding out an intuition
2409: # of exeext.
2410: { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2411: $as_echo_n "checking for C compiler default output file name... " >&6; }
2412: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2413:
2414: # The possible output files:
2415: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2416:
2417: ac_rmfiles=
2418: for ac_file in $ac_files
2419: do
2420: case $ac_file in
2421: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2422: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2423: esac
2424: done
2425: rm -f $ac_rmfiles
2426:
2427: if { (ac_try="$ac_link_default"
2428: case "(($ac_try" in
2429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430: *) ac_try_echo=$ac_try;;
2431: esac
2432: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433: $as_echo "$ac_try_echo") >&5
2434: (eval "$ac_link_default") 2>&5
2435: ac_status=$?
2436: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437: (exit $ac_status); }; then
2438: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2439: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2440: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2441: # so that the user can short-circuit this test for compilers unknown to
2442: # Autoconf.
2443: for ac_file in $ac_files ''
2444: do
2445: test -f "$ac_file" || continue
2446: case $ac_file in
2447: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2448: ;;
2449: [ab].out )
2450: # We found the default executable, but exeext='' is most
2451: # certainly right.
2452: break;;
2453: *.* )
2454: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2455: then :; else
2456: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457: fi
2458: # We set ac_cv_exeext here because the later test for it is not
2459: # safe: cross compilers may not add the suffix if given an `-o'
2460: # argument, so we may need to know it at that point already.
2461: # Even if this section looks crufty: it has the advantage of
2462: # actually working.
2463: break;;
2464: * )
2465: break;;
2466: esac
2467: done
2468: test "$ac_cv_exeext" = no && ac_cv_exeext=
2469:
2470: else
2471: ac_file=''
2472: fi
2473:
2474: { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2475: $as_echo "$ac_file" >&6; }
2476: if test -z "$ac_file"; then
2477: $as_echo "$as_me: failed program was:" >&5
2478: sed 's/^/| /' conftest.$ac_ext >&5
2479:
2480: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2481: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2482: { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2483: See \`config.log' for more details." >&5
2484: $as_echo "$as_me: error: C compiler cannot create executables
2485: See \`config.log' for more details." >&2;}
2486: { (exit 77); exit 77; }; }; }
2487: fi
2488:
2489: ac_exeext=$ac_cv_exeext
2490:
2491: # Check that the compiler produces executables we can run. If not, either
2492: # the compiler is broken, or we cross compile.
2493: { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2494: $as_echo_n "checking whether the C compiler works... " >&6; }
2495: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2496: # If not cross compiling, check that we can run a simple program.
2497: if test "$cross_compiling" != yes; then
2498: if { ac_try='./$ac_file'
2499: { (case "(($ac_try" in
2500: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501: *) ac_try_echo=$ac_try;;
2502: esac
2503: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2504: $as_echo "$ac_try_echo") >&5
2505: (eval "$ac_try") 2>&5
2506: ac_status=$?
2507: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508: (exit $ac_status); }; }; then
2509: cross_compiling=no
2510: else
2511: if test "$cross_compiling" = maybe; then
2512: cross_compiling=yes
2513: else
2514: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2515: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516: { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2517: If you meant to cross compile, use \`--host'.
2518: See \`config.log' for more details." >&5
2519: $as_echo "$as_me: error: cannot run C compiled programs.
2520: If you meant to cross compile, use \`--host'.
2521: See \`config.log' for more details." >&2;}
2522: { (exit 1); exit 1; }; }; }
2523: fi
2524: fi
2525: fi
2526: { $as_echo "$as_me:$LINENO: result: yes" >&5
2527: $as_echo "yes" >&6; }
2528:
2529: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2530: ac_clean_files=$ac_clean_files_save
2531: # Check that the compiler produces executables we can run. If not, either
2532: # the compiler is broken, or we cross compile.
2533: { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2534: $as_echo_n "checking whether we are cross compiling... " >&6; }
2535: { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2536: $as_echo "$cross_compiling" >&6; }
2537:
2538: { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2539: $as_echo_n "checking for suffix of executables... " >&6; }
2540: if { (ac_try="$ac_link"
2541: case "(($ac_try" in
2542: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543: *) ac_try_echo=$ac_try;;
2544: esac
2545: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2546: $as_echo "$ac_try_echo") >&5
2547: (eval "$ac_link") 2>&5
2548: ac_status=$?
2549: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550: (exit $ac_status); }; then
2551: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2552: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2553: # work properly (i.e., refer to `conftest.exe'), while it won't with
2554: # `rm'.
2555: for ac_file in conftest.exe conftest conftest.*; do
2556: test -f "$ac_file" || continue
2557: case $ac_file in
2558: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2559: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2560: break;;
2561: * ) break;;
2562: esac
2563: done
2564: else
2565: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2568: See \`config.log' for more details." >&5
2569: $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2570: See \`config.log' for more details." >&2;}
2571: { (exit 1); exit 1; }; }; }
2572: fi
2573:
2574: rm -f conftest$ac_cv_exeext
2575: { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2576: $as_echo "$ac_cv_exeext" >&6; }
2577:
2578: rm -f conftest.$ac_ext
2579: EXEEXT=$ac_cv_exeext
2580: ac_exeext=$EXEEXT
2581: { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2582: $as_echo_n "checking for suffix of object files... " >&6; }
2583: if test "${ac_cv_objext+set}" = set; then
2584: $as_echo_n "(cached) " >&6
2585: else
2586: cat >conftest.$ac_ext <<_ACEOF
2587: /* confdefs.h. */
2588: _ACEOF
2589: cat confdefs.h >>conftest.$ac_ext
2590: cat >>conftest.$ac_ext <<_ACEOF
2591: /* end confdefs.h. */
2592:
2593: int
2594: main ()
2595: {
2596:
2597: ;
2598: return 0;
2599: }
2600: _ACEOF
2601: rm -f conftest.o conftest.obj
2602: if { (ac_try="$ac_compile"
2603: case "(($ac_try" in
2604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605: *) ac_try_echo=$ac_try;;
2606: esac
2607: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2608: $as_echo "$ac_try_echo") >&5
2609: (eval "$ac_compile") 2>&5
2610: ac_status=$?
2611: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612: (exit $ac_status); }; then
2613: for ac_file in conftest.o conftest.obj conftest.*; do
2614: test -f "$ac_file" || continue;
2615: case $ac_file in
2616: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2617: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2618: break;;
2619: esac
2620: done
2621: else
2622: $as_echo "$as_me: failed program was:" >&5
2623: sed 's/^/| /' conftest.$ac_ext >&5
2624:
2625: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2626: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627: { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2628: See \`config.log' for more details." >&5
2629: $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2630: See \`config.log' for more details." >&2;}
2631: { (exit 1); exit 1; }; }; }
2632: fi
2633:
2634: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2635: fi
2636: { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2637: $as_echo "$ac_cv_objext" >&6; }
2638: OBJEXT=$ac_cv_objext
2639: ac_objext=$OBJEXT
2640: { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2641: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2642: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2643: $as_echo_n "(cached) " >&6
2644: else
2645: cat >conftest.$ac_ext <<_ACEOF
2646: /* confdefs.h. */
2647: _ACEOF
2648: cat confdefs.h >>conftest.$ac_ext
2649: cat >>conftest.$ac_ext <<_ACEOF
2650: /* end confdefs.h. */
2651:
2652: int
2653: main ()
2654: {
2655: #ifndef __GNUC__
2656: choke me
2657: #endif
2658:
2659: ;
2660: return 0;
2661: }
2662: _ACEOF
2663: rm -f conftest.$ac_objext
2664: if { (ac_try="$ac_compile"
2665: case "(($ac_try" in
2666: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667: *) ac_try_echo=$ac_try;;
2668: esac
2669: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670: $as_echo "$ac_try_echo") >&5
2671: (eval "$ac_compile") 2>conftest.er1
2672: ac_status=$?
2673: grep -v '^ *+' conftest.er1 >conftest.err
2674: rm -f conftest.er1
2675: cat conftest.err >&5
2676: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677: (exit $ac_status); } && {
2678: test -z "$ac_c_werror_flag" ||
2679: test ! -s conftest.err
2680: } && test -s conftest.$ac_objext; then
2681: ac_compiler_gnu=yes
2682: else
2683: $as_echo "$as_me: failed program was:" >&5
2684: sed 's/^/| /' conftest.$ac_ext >&5
2685:
2686: ac_compiler_gnu=no
2687: fi
2688:
2689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2691:
2692: fi
2693: { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2694: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2695: if test $ac_compiler_gnu = yes; then
2696: GCC=yes
2697: else
2698: GCC=
2699: fi
2700: ac_test_CFLAGS=${CFLAGS+set}
2701: ac_save_CFLAGS=$CFLAGS
2702: { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2703: $as_echo_n "checking whether $CC accepts -g... " >&6; }
2704: if test "${ac_cv_prog_cc_g+set}" = set; then
2705: $as_echo_n "(cached) " >&6
2706: else
2707: ac_save_c_werror_flag=$ac_c_werror_flag
2708: ac_c_werror_flag=yes
2709: ac_cv_prog_cc_g=no
2710: CFLAGS="-g"
2711: cat >conftest.$ac_ext <<_ACEOF
2712: /* confdefs.h. */
2713: _ACEOF
2714: cat confdefs.h >>conftest.$ac_ext
2715: cat >>conftest.$ac_ext <<_ACEOF
2716: /* end confdefs.h. */
2717:
2718: int
2719: main ()
2720: {
2721:
2722: ;
2723: return 0;
2724: }
2725: _ACEOF
2726: rm -f conftest.$ac_objext
2727: if { (ac_try="$ac_compile"
2728: case "(($ac_try" in
2729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730: *) ac_try_echo=$ac_try;;
2731: esac
2732: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2733: $as_echo "$ac_try_echo") >&5
2734: (eval "$ac_compile") 2>conftest.er1
2735: ac_status=$?
2736: grep -v '^ *+' conftest.er1 >conftest.err
2737: rm -f conftest.er1
2738: cat conftest.err >&5
2739: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740: (exit $ac_status); } && {
2741: test -z "$ac_c_werror_flag" ||
2742: test ! -s conftest.err
2743: } && test -s conftest.$ac_objext; then
2744: ac_cv_prog_cc_g=yes
2745: else
2746: $as_echo "$as_me: failed program was:" >&5
2747: sed 's/^/| /' conftest.$ac_ext >&5
2748:
2749: CFLAGS=""
2750: cat >conftest.$ac_ext <<_ACEOF
2751: /* confdefs.h. */
2752: _ACEOF
2753: cat confdefs.h >>conftest.$ac_ext
2754: cat >>conftest.$ac_ext <<_ACEOF
2755: /* end confdefs.h. */
2756:
2757: int
2758: main ()
2759: {
2760:
2761: ;
2762: return 0;
2763: }
2764: _ACEOF
2765: rm -f conftest.$ac_objext
2766: if { (ac_try="$ac_compile"
2767: case "(($ac_try" in
2768: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769: *) ac_try_echo=$ac_try;;
2770: esac
2771: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2772: $as_echo "$ac_try_echo") >&5
2773: (eval "$ac_compile") 2>conftest.er1
2774: ac_status=$?
2775: grep -v '^ *+' conftest.er1 >conftest.err
2776: rm -f conftest.er1
2777: cat conftest.err >&5
2778: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779: (exit $ac_status); } && {
2780: test -z "$ac_c_werror_flag" ||
2781: test ! -s conftest.err
2782: } && test -s conftest.$ac_objext; then
2783: :
2784: else
2785: $as_echo "$as_me: failed program was:" >&5
2786: sed 's/^/| /' conftest.$ac_ext >&5
2787:
2788: ac_c_werror_flag=$ac_save_c_werror_flag
2789: CFLAGS="-g"
2790: cat >conftest.$ac_ext <<_ACEOF
2791: /* confdefs.h. */
2792: _ACEOF
2793: cat confdefs.h >>conftest.$ac_ext
2794: cat >>conftest.$ac_ext <<_ACEOF
2795: /* end confdefs.h. */
2796:
2797: int
2798: main ()
2799: {
2800:
2801: ;
2802: return 0;
2803: }
2804: _ACEOF
2805: rm -f conftest.$ac_objext
2806: if { (ac_try="$ac_compile"
2807: case "(($ac_try" in
2808: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809: *) ac_try_echo=$ac_try;;
2810: esac
2811: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2812: $as_echo "$ac_try_echo") >&5
2813: (eval "$ac_compile") 2>conftest.er1
2814: ac_status=$?
2815: grep -v '^ *+' conftest.er1 >conftest.err
2816: rm -f conftest.er1
2817: cat conftest.err >&5
2818: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819: (exit $ac_status); } && {
2820: test -z "$ac_c_werror_flag" ||
2821: test ! -s conftest.err
2822: } && test -s conftest.$ac_objext; then
2823: ac_cv_prog_cc_g=yes
2824: else
2825: $as_echo "$as_me: failed program was:" >&5
2826: sed 's/^/| /' conftest.$ac_ext >&5
2827:
2828:
2829: fi
2830:
2831: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832: fi
2833:
2834: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835: fi
2836:
2837: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838: ac_c_werror_flag=$ac_save_c_werror_flag
2839: fi
2840: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2841: $as_echo "$ac_cv_prog_cc_g" >&6; }
2842: if test "$ac_test_CFLAGS" = set; then
2843: CFLAGS=$ac_save_CFLAGS
2844: elif test $ac_cv_prog_cc_g = yes; then
2845: if test "$GCC" = yes; then
2846: CFLAGS="-g -O2"
2847: else
2848: CFLAGS="-g"
2849: fi
2850: else
2851: if test "$GCC" = yes; then
2852: CFLAGS="-O2"
2853: else
2854: CFLAGS=
2855: fi
2856: fi
2857: { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2858: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2859: if test "${ac_cv_prog_cc_c89+set}" = set; then
2860: $as_echo_n "(cached) " >&6
2861: else
2862: ac_cv_prog_cc_c89=no
2863: ac_save_CC=$CC
2864: cat >conftest.$ac_ext <<_ACEOF
2865: /* confdefs.h. */
2866: _ACEOF
2867: cat confdefs.h >>conftest.$ac_ext
2868: cat >>conftest.$ac_ext <<_ACEOF
2869: /* end confdefs.h. */
2870: #include <stdarg.h>
2871: #include <stdio.h>
2872: #include <sys/types.h>
2873: #include <sys/stat.h>
2874: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875: struct buf { int x; };
2876: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877: static char *e (p, i)
2878: char **p;
2879: int i;
2880: {
2881: return p[i];
2882: }
2883: static char *f (char * (*g) (char **, int), char **p, ...)
2884: {
2885: char *s;
2886: va_list v;
2887: va_start (v,p);
2888: s = g (p, va_arg (v,int));
2889: va_end (v);
2890: return s;
2891: }
2892:
2893: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894: function prototypes and stuff, but not '\xHH' hex character constants.
2895: These don't provoke an error unfortunately, instead are silently treated
2896: as 'x'. The following induces an error, until -std is added to get
2897: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898: array size at least. It's necessary to write '\x00'==0 to get something
2899: that's true only with -std. */
2900: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2901:
2902: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2903: inside strings and character constants. */
2904: #define FOO(x) 'x'
2905: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2906:
2907: int test (int i, double x);
2908: struct s1 {int (*f) (int a);};
2909: struct s2 {int (*f) (double a);};
2910: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2911: int argc;
2912: char **argv;
2913: int
2914: main ()
2915: {
2916: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917: ;
2918: return 0;
2919: }
2920: _ACEOF
2921: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2922: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2923: do
2924: CC="$ac_save_CC $ac_arg"
2925: rm -f conftest.$ac_objext
2926: if { (ac_try="$ac_compile"
2927: case "(($ac_try" in
2928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929: *) ac_try_echo=$ac_try;;
2930: esac
2931: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2932: $as_echo "$ac_try_echo") >&5
2933: (eval "$ac_compile") 2>conftest.er1
2934: ac_status=$?
2935: grep -v '^ *+' conftest.er1 >conftest.err
2936: rm -f conftest.er1
2937: cat conftest.err >&5
2938: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939: (exit $ac_status); } && {
2940: test -z "$ac_c_werror_flag" ||
2941: test ! -s conftest.err
2942: } && test -s conftest.$ac_objext; then
2943: ac_cv_prog_cc_c89=$ac_arg
2944: else
2945: $as_echo "$as_me: failed program was:" >&5
2946: sed 's/^/| /' conftest.$ac_ext >&5
2947:
2948:
2949: fi
2950:
2951: rm -f core conftest.err conftest.$ac_objext
2952: test "x$ac_cv_prog_cc_c89" != "xno" && break
2953: done
2954: rm -f conftest.$ac_ext
2955: CC=$ac_save_CC
2956:
2957: fi
2958: # AC_CACHE_VAL
2959: case "x$ac_cv_prog_cc_c89" in
2960: x)
2961: { $as_echo "$as_me:$LINENO: result: none needed" >&5
2962: $as_echo "none needed" >&6; } ;;
2963: xno)
2964: { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2965: $as_echo "unsupported" >&6; } ;;
2966: *)
2967: CC="$CC $ac_cv_prog_cc_c89"
2968: { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2969: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2970: esac
2971:
2972:
2973: ac_ext=c
2974: ac_cpp='$CPP $CPPFLAGS'
2975: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978:
2979: ac_ext=c
2980: ac_cpp='$CPP $CPPFLAGS'
2981: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984: { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2985: $as_echo_n "checking how to run the C preprocessor... " >&6; }
2986: # On Suns, sometimes $CPP names a directory.
2987: if test -n "$CPP" && test -d "$CPP"; then
2988: CPP=
2989: fi
2990: if test -z "$CPP"; then
2991: if test "${ac_cv_prog_CPP+set}" = set; then
2992: $as_echo_n "(cached) " >&6
2993: else
2994: # Double quotes because CPP needs to be expanded
2995: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2996: do
2997: ac_preproc_ok=false
2998: for ac_c_preproc_warn_flag in '' yes
2999: do
3000: # Use a header file that comes with gcc, so configuring glibc
3001: # with a fresh cross-compiler works.
3002: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003: # <limits.h> exists even on freestanding compilers.
3004: # On the NeXT, cc -E runs the code through the compiler's parser,
3005: # not just through cpp. "Syntax error" is here to catch this case.
3006: cat >conftest.$ac_ext <<_ACEOF
3007: /* confdefs.h. */
3008: _ACEOF
3009: cat confdefs.h >>conftest.$ac_ext
3010: cat >>conftest.$ac_ext <<_ACEOF
3011: /* end confdefs.h. */
3012: #ifdef __STDC__
3013: # include <limits.h>
3014: #else
3015: # include <assert.h>
3016: #endif
3017: Syntax error
3018: _ACEOF
3019: if { (ac_try="$ac_cpp conftest.$ac_ext"
3020: case "(($ac_try" in
3021: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022: *) ac_try_echo=$ac_try;;
3023: esac
3024: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3025: $as_echo "$ac_try_echo") >&5
3026: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3027: ac_status=$?
3028: grep -v '^ *+' conftest.er1 >conftest.err
3029: rm -f conftest.er1
3030: cat conftest.err >&5
3031: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032: (exit $ac_status); } >/dev/null && {
3033: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3034: test ! -s conftest.err
3035: }; then
3036: :
3037: else
3038: $as_echo "$as_me: failed program was:" >&5
3039: sed 's/^/| /' conftest.$ac_ext >&5
3040:
3041: # Broken: fails on valid input.
3042: continue
3043: fi
3044:
3045: rm -f conftest.err conftest.$ac_ext
3046:
3047: # OK, works on sane cases. Now check whether nonexistent headers
3048: # can be detected and how.
3049: cat >conftest.$ac_ext <<_ACEOF
3050: /* confdefs.h. */
3051: _ACEOF
3052: cat confdefs.h >>conftest.$ac_ext
3053: cat >>conftest.$ac_ext <<_ACEOF
3054: /* end confdefs.h. */
3055: #include <ac_nonexistent.h>
3056: _ACEOF
3057: if { (ac_try="$ac_cpp conftest.$ac_ext"
3058: case "(($ac_try" in
3059: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060: *) ac_try_echo=$ac_try;;
3061: esac
3062: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3063: $as_echo "$ac_try_echo") >&5
3064: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3065: ac_status=$?
3066: grep -v '^ *+' conftest.er1 >conftest.err
3067: rm -f conftest.er1
3068: cat conftest.err >&5
3069: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070: (exit $ac_status); } >/dev/null && {
3071: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3072: test ! -s conftest.err
3073: }; then
3074: # Broken: success on invalid input.
3075: continue
3076: else
3077: $as_echo "$as_me: failed program was:" >&5
3078: sed 's/^/| /' conftest.$ac_ext >&5
3079:
3080: # Passes both tests.
3081: ac_preproc_ok=:
3082: break
3083: fi
3084:
3085: rm -f conftest.err conftest.$ac_ext
3086:
3087: done
3088: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089: rm -f conftest.err conftest.$ac_ext
3090: if $ac_preproc_ok; then
3091: break
3092: fi
3093:
3094: done
3095: ac_cv_prog_CPP=$CPP
3096:
3097: fi
3098: CPP=$ac_cv_prog_CPP
3099: else
3100: ac_cv_prog_CPP=$CPP
3101: fi
3102: { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3103: $as_echo "$CPP" >&6; }
3104: ac_preproc_ok=false
3105: for ac_c_preproc_warn_flag in '' yes
3106: do
3107: # Use a header file that comes with gcc, so configuring glibc
3108: # with a fresh cross-compiler works.
3109: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3110: # <limits.h> exists even on freestanding compilers.
3111: # On the NeXT, cc -E runs the code through the compiler's parser,
3112: # not just through cpp. "Syntax error" is here to catch this case.
3113: cat >conftest.$ac_ext <<_ACEOF
3114: /* confdefs.h. */
3115: _ACEOF
3116: cat confdefs.h >>conftest.$ac_ext
3117: cat >>conftest.$ac_ext <<_ACEOF
3118: /* end confdefs.h. */
3119: #ifdef __STDC__
3120: # include <limits.h>
3121: #else
3122: # include <assert.h>
3123: #endif
3124: Syntax error
3125: _ACEOF
3126: if { (ac_try="$ac_cpp conftest.$ac_ext"
3127: case "(($ac_try" in
3128: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129: *) ac_try_echo=$ac_try;;
3130: esac
3131: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132: $as_echo "$ac_try_echo") >&5
3133: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3134: ac_status=$?
3135: grep -v '^ *+' conftest.er1 >conftest.err
3136: rm -f conftest.er1
3137: cat conftest.err >&5
3138: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139: (exit $ac_status); } >/dev/null && {
3140: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3141: test ! -s conftest.err
3142: }; then
3143: :
3144: else
3145: $as_echo "$as_me: failed program was:" >&5
3146: sed 's/^/| /' conftest.$ac_ext >&5
3147:
3148: # Broken: fails on valid input.
3149: continue
3150: fi
3151:
3152: rm -f conftest.err conftest.$ac_ext
3153:
3154: # OK, works on sane cases. Now check whether nonexistent headers
3155: # can be detected and how.
3156: cat >conftest.$ac_ext <<_ACEOF
3157: /* confdefs.h. */
3158: _ACEOF
3159: cat confdefs.h >>conftest.$ac_ext
3160: cat >>conftest.$ac_ext <<_ACEOF
3161: /* end confdefs.h. */
3162: #include <ac_nonexistent.h>
3163: _ACEOF
3164: if { (ac_try="$ac_cpp conftest.$ac_ext"
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:$LINENO: $ac_try_echo\""
3170: $as_echo "$ac_try_echo") >&5
3171: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3172: ac_status=$?
3173: grep -v '^ *+' conftest.er1 >conftest.err
3174: rm -f conftest.er1
3175: cat conftest.err >&5
3176: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177: (exit $ac_status); } >/dev/null && {
3178: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3179: test ! -s conftest.err
3180: }; then
3181: # Broken: success on invalid input.
3182: continue
3183: else
3184: $as_echo "$as_me: failed program was:" >&5
3185: sed 's/^/| /' conftest.$ac_ext >&5
3186:
3187: # Passes both tests.
3188: ac_preproc_ok=:
3189: break
3190: fi
3191:
3192: rm -f conftest.err conftest.$ac_ext
3193:
3194: done
3195: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3196: rm -f conftest.err conftest.$ac_ext
3197: if $ac_preproc_ok; then
3198: :
3199: else
3200: { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3201: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202: { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3203: See \`config.log' for more details." >&5
3204: $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3205: See \`config.log' for more details." >&2;}
3206: { (exit 1); exit 1; }; }; }
3207: fi
3208:
3209: ac_ext=c
3210: ac_cpp='$CPP $CPPFLAGS'
3211: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214:
3215: # Find a good install program. We prefer a C program (faster),
3216: # so one script is as good as another. But avoid the broken or
3217: # incompatible versions:
3218: # SysV /etc/install, /usr/sbin/install
3219: # SunOS /usr/etc/install
3220: # IRIX /sbin/install
3221: # AIX /bin/install
3222: # AmigaOS /C/install, which installs bootblocks on floppy discs
3223: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3224: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3225: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3226: # OS/2's system install, which has a completely different semantic
3227: # ./install, which can be erroneously created by make from ./install.sh.
3228: # Reject install programs that cannot install multiple files.
3229: { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3230: $as_echo_n "checking for a BSD-compatible install... " >&6; }
3231: if test -z "$INSTALL"; then
3232: if test "${ac_cv_path_install+set}" = set; then
3233: $as_echo_n "(cached) " >&6
3234: else
3235: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236: for as_dir in $PATH
3237: do
3238: IFS=$as_save_IFS
3239: test -z "$as_dir" && as_dir=.
3240: # Account for people who put trailing slashes in PATH elements.
3241: case $as_dir/ in
3242: ./ | .// | /cC/* | \
3243: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3244: ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3245: /usr/ucb/* ) ;;
3246: *)
3247: # OSF1 and SCO ODT 3.0 have their own names for install.
3248: # Don't use installbsd from OSF since it installs stuff as root
3249: # by default.
3250: for ac_prog in ginstall scoinst install; do
3251: for ac_exec_ext in '' $ac_executable_extensions; do
3252: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3253: if test $ac_prog = install &&
3254: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3255: # AIX install. It has an incompatible calling convention.
3256: :
3257: elif test $ac_prog = install &&
3258: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3259: # program-specific install script used by HP pwplus--don't use.
3260: :
3261: else
3262: rm -rf conftest.one conftest.two conftest.dir
3263: echo one > conftest.one
3264: echo two > conftest.two
3265: mkdir conftest.dir
3266: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3267: test -s conftest.one && test -s conftest.two &&
3268: test -s conftest.dir/conftest.one &&
3269: test -s conftest.dir/conftest.two
3270: then
3271: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3272: break 3
3273: fi
3274: fi
3275: fi
3276: done
3277: done
3278: ;;
3279: esac
3280:
3281: done
3282: IFS=$as_save_IFS
3283:
3284: rm -rf conftest.one conftest.two conftest.dir
3285:
3286: fi
3287: if test "${ac_cv_path_install+set}" = set; then
3288: INSTALL=$ac_cv_path_install
3289: else
3290: # As a last resort, use the slow shell script. Don't cache a
3291: # value for INSTALL within a source directory, because that will
3292: # break other packages using the cache if that directory is
3293: # removed, or if the value is a relative name.
3294: INSTALL=$ac_install_sh
3295: fi
3296: fi
3297: { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3298: $as_echo "$INSTALL" >&6; }
3299:
3300: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3301: # It thinks the first close brace ends the variable substitution.
3302: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3303:
3304: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3305:
3306: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3307:
3308:
3309:
3310: # Make sure we can run config.sub.
3311: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3312: { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3313: $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3314: { (exit 1); exit 1; }; }
3315:
3316: { $as_echo "$as_me:$LINENO: checking build system type" >&5
3317: $as_echo_n "checking build system type... " >&6; }
3318: if test "${ac_cv_build+set}" = set; then
3319: $as_echo_n "(cached) " >&6
3320: else
3321: ac_build_alias=$build_alias
3322: test "x$ac_build_alias" = x &&
3323: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3324: test "x$ac_build_alias" = x &&
3325: { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3326: $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3327: { (exit 1); exit 1; }; }
3328: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3329: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3330: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3331: { (exit 1); exit 1; }; }
3332:
3333: fi
3334: { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3335: $as_echo "$ac_cv_build" >&6; }
3336: case $ac_cv_build in
3337: *-*-*) ;;
3338: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3339: $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3340: { (exit 1); exit 1; }; };;
3341: esac
3342: build=$ac_cv_build
3343: ac_save_IFS=$IFS; IFS='-'
3344: set x $ac_cv_build
3345: shift
3346: build_cpu=$1
3347: build_vendor=$2
3348: shift; shift
3349: # Remember, the first character of IFS is used to create $*,
3350: # except with old shells:
3351: build_os=$*
3352: IFS=$ac_save_IFS
3353: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3354:
3355:
3356: { $as_echo "$as_me:$LINENO: checking host system type" >&5
3357: $as_echo_n "checking host system type... " >&6; }
3358: if test "${ac_cv_host+set}" = set; then
3359: $as_echo_n "(cached) " >&6
3360: else
3361: if test "x$host_alias" = x; then
3362: ac_cv_host=$ac_cv_build
3363: else
3364: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3365: { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3366: $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3367: { (exit 1); exit 1; }; }
3368: fi
3369:
3370: fi
3371: { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3372: $as_echo "$ac_cv_host" >&6; }
3373: case $ac_cv_host in
3374: *-*-*) ;;
3375: *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3376: $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3377: { (exit 1); exit 1; }; };;
3378: esac
3379: host=$ac_cv_host
3380: ac_save_IFS=$IFS; IFS='-'
3381: set x $ac_cv_host
3382: shift
3383: host_cpu=$1
3384: host_vendor=$2
3385: shift; shift
3386: # Remember, the first character of IFS is used to create $*,
3387: # except with old shells:
3388: host_os=$*
3389: IFS=$ac_save_IFS
3390: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3391:
3392:
3393:
3394:
3395:
3396: { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
3397: $as_echo_n "checking whether to activate relocatable installation... " >&6; }
3398: # Check whether --enable-relocatable was given.
3399: if test "${enable_relocatable+set}" = set; then
3400: enableval=$enable_relocatable; if test "$enableval" != no; then
3401: RELOCATABLE=yes
3402: else
3403: RELOCATABLE=no
3404: fi
3405:
3406: else
3407: RELOCATABLE=no
3408: fi
3409:
3410:
3411: { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
3412: $as_echo "$RELOCATABLE" >&6; }
3413:
3414:
3415:
3416: if test "X$prefix" = "XNONE"; then
3417: reloc_final_prefix="$ac_default_prefix"
3418: else
3419: reloc_final_prefix="$prefix"
3420: fi
3421:
3422: cat >>confdefs.h <<_ACEOF
3423: #define INSTALLPREFIX "${reloc_final_prefix}"
3424: _ACEOF
3425:
3426: if test $RELOCATABLE = yes; then
3427:
3428: cat >>confdefs.h <<\_ACEOF
3429: #define ENABLE_RELOCATABLE 1
3430: _ACEOF
3431:
3432: fi
3433:
3434:
3435:
3436: if test $RELOCATABLE = yes; then
3437: case " $LIBOBJS " in
3438: *" relocatable.$ac_objext "* ) ;;
3439: *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
3440: ;;
3441: esac
3442:
3443: fi
3444:
3445:
3446:
3447: { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448: $as_echo_n "checking whether ln -s works... " >&6; }
3449: LN_S=$as_ln_s
3450: if test "$LN_S" = "ln -s"; then
3451: { $as_echo "$as_me:$LINENO: result: yes" >&5
3452: $as_echo "yes" >&6; }
3453: else
3454: { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455: $as_echo "no, using $LN_S" >&6; }
3456: fi
3457:
3458:
3459:
3460:
3461:
3462: { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3463: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3464: if test "${ac_cv_path_GREP+set}" = set; then
3465: $as_echo_n "(cached) " >&6
3466: else
3467: if test -z "$GREP"; then
3468: ac_path_GREP_found=false
3469: # Loop through the user's path and test for each of PROGNAME-LIST
3470: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472: do
3473: IFS=$as_save_IFS
3474: test -z "$as_dir" && as_dir=.
3475: for ac_prog in grep ggrep; do
3476: for ac_exec_ext in '' $ac_executable_extensions; do
3477: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3478: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3479: # Check for GNU ac_path_GREP and select it if it is found.
3480: # Check for GNU $ac_path_GREP
3481: case `"$ac_path_GREP" --version 2>&1` in
3482: *GNU*)
3483: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3484: *)
3485: ac_count=0
3486: $as_echo_n 0123456789 >"conftest.in"
3487: while :
3488: do
3489: cat "conftest.in" "conftest.in" >"conftest.tmp"
3490: mv "conftest.tmp" "conftest.in"
3491: cp "conftest.in" "conftest.nl"
3492: $as_echo 'GREP' >> "conftest.nl"
3493: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3494: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3495: ac_count=`expr $ac_count + 1`
3496: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3497: # Best one so far, save it but keep looking for a better one
3498: ac_cv_path_GREP="$ac_path_GREP"
3499: ac_path_GREP_max=$ac_count
3500: fi
3501: # 10*(2^10) chars as input seems more than enough
3502: test $ac_count -gt 10 && break
3503: done
3504: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3505: esac
3506:
3507: $ac_path_GREP_found && break 3
3508: done
3509: done
3510: done
3511: IFS=$as_save_IFS
3512: if test -z "$ac_cv_path_GREP"; then
3513: { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3514: $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3515: { (exit 1); exit 1; }; }
3516: fi
3517: else
3518: ac_cv_path_GREP=$GREP
3519: fi
3520:
3521: fi
3522: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3523: $as_echo "$ac_cv_path_GREP" >&6; }
3524: GREP="$ac_cv_path_GREP"
3525:
3526:
3527: { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3528: $as_echo_n "checking for egrep... " >&6; }
3529: if test "${ac_cv_path_EGREP+set}" = set; then
3530: $as_echo_n "(cached) " >&6
3531: else
3532: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3533: then ac_cv_path_EGREP="$GREP -E"
3534: else
3535: if test -z "$EGREP"; then
3536: ac_path_EGREP_found=false
3537: # Loop through the user's path and test for each of PROGNAME-LIST
3538: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3540: do
3541: IFS=$as_save_IFS
3542: test -z "$as_dir" && as_dir=.
3543: for ac_prog in egrep; do
3544: for ac_exec_ext in '' $ac_executable_extensions; do
3545: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3546: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3547: # Check for GNU ac_path_EGREP and select it if it is found.
3548: # Check for GNU $ac_path_EGREP
3549: case `"$ac_path_EGREP" --version 2>&1` in
3550: *GNU*)
3551: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3552: *)
3553: ac_count=0
3554: $as_echo_n 0123456789 >"conftest.in"
3555: while :
3556: do
3557: cat "conftest.in" "conftest.in" >"conftest.tmp"
3558: mv "conftest.tmp" "conftest.in"
3559: cp "conftest.in" "conftest.nl"
3560: $as_echo 'EGREP' >> "conftest.nl"
3561: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3562: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3563: ac_count=`expr $ac_count + 1`
3564: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3565: # Best one so far, save it but keep looking for a better one
3566: ac_cv_path_EGREP="$ac_path_EGREP"
3567: ac_path_EGREP_max=$ac_count
3568: fi
3569: # 10*(2^10) chars as input seems more than enough
3570: test $ac_count -gt 10 && break
3571: done
3572: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3573: esac
3574:
3575: $ac_path_EGREP_found && break 3
3576: done
3577: done
3578: done
3579: IFS=$as_save_IFS
3580: if test -z "$ac_cv_path_EGREP"; then
3581: { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3582: $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3583: { (exit 1); exit 1; }; }
3584: fi
3585: else
3586: ac_cv_path_EGREP=$EGREP
3587: fi
3588:
3589: fi
3590: fi
3591: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3592: $as_echo "$ac_cv_path_EGREP" >&6; }
3593: EGREP="$ac_cv_path_EGREP"
3594:
3595:
3596: { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3597: $as_echo_n "checking for ANSI C header files... " >&6; }
3598: if test "${ac_cv_header_stdc+set}" = set; then
3599: $as_echo_n "(cached) " >&6
3600: else
3601: cat >conftest.$ac_ext <<_ACEOF
3602: /* confdefs.h. */
3603: _ACEOF
3604: cat confdefs.h >>conftest.$ac_ext
3605: cat >>conftest.$ac_ext <<_ACEOF
3606: /* end confdefs.h. */
3607: #include <stdlib.h>
3608: #include <stdarg.h>
3609: #include <string.h>
3610: #include <float.h>
3611:
3612: int
3613: main ()
3614: {
3615:
3616: ;
3617: return 0;
3618: }
3619: _ACEOF
3620: rm -f conftest.$ac_objext
3621: if { (ac_try="$ac_compile"
3622: case "(($ac_try" in
3623: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624: *) ac_try_echo=$ac_try;;
3625: esac
3626: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627: $as_echo "$ac_try_echo") >&5
3628: (eval "$ac_compile") 2>conftest.er1
3629: ac_status=$?
3630: grep -v '^ *+' conftest.er1 >conftest.err
3631: rm -f conftest.er1
3632: cat conftest.err >&5
3633: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634: (exit $ac_status); } && {
3635: test -z "$ac_c_werror_flag" ||
3636: test ! -s conftest.err
3637: } && test -s conftest.$ac_objext; then
3638: ac_cv_header_stdc=yes
3639: else
3640: $as_echo "$as_me: failed program was:" >&5
3641: sed 's/^/| /' conftest.$ac_ext >&5
3642:
3643: ac_cv_header_stdc=no
3644: fi
3645:
3646: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3647:
3648: if test $ac_cv_header_stdc = yes; then
3649: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3650: cat >conftest.$ac_ext <<_ACEOF
3651: /* confdefs.h. */
3652: _ACEOF
3653: cat confdefs.h >>conftest.$ac_ext
3654: cat >>conftest.$ac_ext <<_ACEOF
3655: /* end confdefs.h. */
3656: #include <string.h>
3657:
3658: _ACEOF
3659: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660: $EGREP "memchr" >/dev/null 2>&1; then
3661: :
3662: else
3663: ac_cv_header_stdc=no
3664: fi
3665: rm -f conftest*
3666:
3667: fi
3668:
3669: if test $ac_cv_header_stdc = yes; then
3670: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3671: cat >conftest.$ac_ext <<_ACEOF
3672: /* confdefs.h. */
3673: _ACEOF
3674: cat confdefs.h >>conftest.$ac_ext
3675: cat >>conftest.$ac_ext <<_ACEOF
3676: /* end confdefs.h. */
3677: #include <stdlib.h>
3678:
3679: _ACEOF
3680: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681: $EGREP "free" >/dev/null 2>&1; then
3682: :
3683: else
3684: ac_cv_header_stdc=no
3685: fi
3686: rm -f conftest*
3687:
3688: fi
3689:
3690: if test $ac_cv_header_stdc = yes; then
3691: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3692: if test "$cross_compiling" = yes; then
3693: :
3694: else
3695: cat >conftest.$ac_ext <<_ACEOF
3696: /* confdefs.h. */
3697: _ACEOF
3698: cat confdefs.h >>conftest.$ac_ext
3699: cat >>conftest.$ac_ext <<_ACEOF
3700: /* end confdefs.h. */
3701: #include <ctype.h>
3702: #include <stdlib.h>
3703: #if ((' ' & 0x0FF) == 0x020)
3704: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3705: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3706: #else
3707: # define ISLOWER(c) \
3708: (('a' <= (c) && (c) <= 'i') \
3709: || ('j' <= (c) && (c) <= 'r') \
3710: || ('s' <= (c) && (c) <= 'z'))
3711: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3712: #endif
3713:
3714: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3715: int
3716: main ()
3717: {
3718: int i;
3719: for (i = 0; i < 256; i++)
3720: if (XOR (islower (i), ISLOWER (i))
3721: || toupper (i) != TOUPPER (i))
3722: return 2;
3723: return 0;
3724: }
3725: _ACEOF
3726: rm -f conftest$ac_exeext
3727: if { (ac_try="$ac_link"
3728: case "(($ac_try" in
3729: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730: *) ac_try_echo=$ac_try;;
3731: esac
3732: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3733: $as_echo "$ac_try_echo") >&5
3734: (eval "$ac_link") 2>&5
3735: ac_status=$?
3736: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3738: { (case "(($ac_try" in
3739: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740: *) ac_try_echo=$ac_try;;
3741: esac
3742: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3743: $as_echo "$ac_try_echo") >&5
3744: (eval "$ac_try") 2>&5
3745: ac_status=$?
3746: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747: (exit $ac_status); }; }; then
3748: :
3749: else
3750: $as_echo "$as_me: program exited with status $ac_status" >&5
3751: $as_echo "$as_me: failed program was:" >&5
3752: sed 's/^/| /' conftest.$ac_ext >&5
3753:
3754: ( exit $ac_status )
3755: ac_cv_header_stdc=no
3756: fi
3757: rm -rf conftest.dSYM
3758: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3759: fi
3760:
3761:
3762: fi
3763: fi
3764: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3765: $as_echo "$ac_cv_header_stdc" >&6; }
3766: if test $ac_cv_header_stdc = yes; then
3767:
3768: cat >>confdefs.h <<\_ACEOF
3769: #define STDC_HEADERS 1
3770: _ACEOF
3771:
3772: fi
3773:
3774: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3775:
3776:
3777:
3778:
3779:
3780:
3781:
3782:
3783:
3784: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3785: inttypes.h stdint.h unistd.h
3786: do
3787: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3788: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3789: $as_echo_n "checking for $ac_header... " >&6; }
3790: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3791: $as_echo_n "(cached) " >&6
3792: else
3793: cat >conftest.$ac_ext <<_ACEOF
3794: /* confdefs.h. */
3795: _ACEOF
3796: cat confdefs.h >>conftest.$ac_ext
3797: cat >>conftest.$ac_ext <<_ACEOF
3798: /* end confdefs.h. */
3799: $ac_includes_default
3800:
3801: #include <$ac_header>
3802: _ACEOF
3803: rm -f conftest.$ac_objext
3804: if { (ac_try="$ac_compile"
3805: case "(($ac_try" in
3806: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807: *) ac_try_echo=$ac_try;;
3808: esac
3809: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3810: $as_echo "$ac_try_echo") >&5
3811: (eval "$ac_compile") 2>conftest.er1
3812: ac_status=$?
3813: grep -v '^ *+' conftest.er1 >conftest.err
3814: rm -f conftest.er1
3815: cat conftest.err >&5
3816: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817: (exit $ac_status); } && {
3818: test -z "$ac_c_werror_flag" ||
3819: test ! -s conftest.err
3820: } && test -s conftest.$ac_objext; then
3821: eval "$as_ac_Header=yes"
3822: else
3823: $as_echo "$as_me: failed program was:" >&5
3824: sed 's/^/| /' conftest.$ac_ext >&5
3825:
3826: eval "$as_ac_Header=no"
3827: fi
3828:
3829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830: fi
3831: ac_res=`eval 'as_val=${'$as_ac_Header'}
3832: $as_echo "$as_val"'`
3833: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3834: $as_echo "$ac_res" >&6; }
3835: as_val=`eval 'as_val=${'$as_ac_Header'}
3836: $as_echo "$as_val"'`
3837: if test "x$as_val" = x""yes; then
3838: cat >>confdefs.h <<_ACEOF
3839: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3840: _ACEOF
3841:
3842: fi
3843:
3844: done
3845:
3846:
3847:
3848:
3849:
3850: if test "${ac_cv_header_minix_config_h+set}" = set; then
3851: { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3852: $as_echo_n "checking for minix/config.h... " >&6; }
3853: if test "${ac_cv_header_minix_config_h+set}" = set; then
3854: $as_echo_n "(cached) " >&6
3855: fi
3856: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3857: $as_echo "$ac_cv_header_minix_config_h" >&6; }
3858: else
3859: # Is the header compilable?
3860: { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3861: $as_echo_n "checking minix/config.h usability... " >&6; }
3862: cat >conftest.$ac_ext <<_ACEOF
3863: /* confdefs.h. */
3864: _ACEOF
3865: cat confdefs.h >>conftest.$ac_ext
3866: cat >>conftest.$ac_ext <<_ACEOF
3867: /* end confdefs.h. */
3868: $ac_includes_default
3869: #include <minix/config.h>
3870: _ACEOF
3871: rm -f conftest.$ac_objext
3872: if { (ac_try="$ac_compile"
3873: case "(($ac_try" in
3874: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875: *) ac_try_echo=$ac_try;;
3876: esac
3877: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3878: $as_echo "$ac_try_echo") >&5
3879: (eval "$ac_compile") 2>conftest.er1
3880: ac_status=$?
3881: grep -v '^ *+' conftest.er1 >conftest.err
3882: rm -f conftest.er1
3883: cat conftest.err >&5
3884: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885: (exit $ac_status); } && {
3886: test -z "$ac_c_werror_flag" ||
3887: test ! -s conftest.err
3888: } && test -s conftest.$ac_objext; then
3889: ac_header_compiler=yes
3890: else
3891: $as_echo "$as_me: failed program was:" >&5
3892: sed 's/^/| /' conftest.$ac_ext >&5
3893:
3894: ac_header_compiler=no
3895: fi
3896:
3897: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898: { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3899: $as_echo "$ac_header_compiler" >&6; }
3900:
3901: # Is the header present?
3902: { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3903: $as_echo_n "checking minix/config.h presence... " >&6; }
3904: cat >conftest.$ac_ext <<_ACEOF
3905: /* confdefs.h. */
3906: _ACEOF
3907: cat confdefs.h >>conftest.$ac_ext
3908: cat >>conftest.$ac_ext <<_ACEOF
3909: /* end confdefs.h. */
3910: #include <minix/config.h>
3911: _ACEOF
3912: if { (ac_try="$ac_cpp conftest.$ac_ext"
3913: case "(($ac_try" in
3914: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915: *) ac_try_echo=$ac_try;;
3916: esac
3917: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3918: $as_echo "$ac_try_echo") >&5
3919: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3920: ac_status=$?
3921: grep -v '^ *+' conftest.er1 >conftest.err
3922: rm -f conftest.er1
3923: cat conftest.err >&5
3924: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925: (exit $ac_status); } >/dev/null && {
3926: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927: test ! -s conftest.err
3928: }; then
3929: ac_header_preproc=yes
3930: else
3931: $as_echo "$as_me: failed program was:" >&5
3932: sed 's/^/| /' conftest.$ac_ext >&5
3933:
3934: ac_header_preproc=no
3935: fi
3936:
3937: rm -f conftest.err conftest.$ac_ext
3938: { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3939: $as_echo "$ac_header_preproc" >&6; }
3940:
3941: # So? What about this header?
3942: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3943: yes:no: )
3944: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3945: $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3946: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3947: $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3948: ac_header_preproc=yes
3949: ;;
3950: no:yes:* )
3951: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3952: $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3953: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3954: $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3955: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3956: $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3957: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3958: $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3959: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3960: $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3961: { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3962: $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3963:
3964: ;;
3965: esac
3966: { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3967: $as_echo_n "checking for minix/config.h... " >&6; }
3968: if test "${ac_cv_header_minix_config_h+set}" = set; then
3969: $as_echo_n "(cached) " >&6
3970: else
3971: ac_cv_header_minix_config_h=$ac_header_preproc
3972: fi
3973: { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3974: $as_echo "$ac_cv_header_minix_config_h" >&6; }
3975:
3976: fi
3977: if test "x$ac_cv_header_minix_config_h" = x""yes; then
3978: MINIX=yes
3979: else
3980: MINIX=
3981: fi
3982:
3983:
3984: if test "$MINIX" = yes; then
3985:
3986: cat >>confdefs.h <<\_ACEOF
3987: #define _POSIX_SOURCE 1
3988: _ACEOF
3989:
3990:
3991: cat >>confdefs.h <<\_ACEOF
3992: #define _POSIX_1_SOURCE 2
3993: _ACEOF
3994:
3995:
3996: cat >>confdefs.h <<\_ACEOF
3997: #define _MINIX 1
3998: _ACEOF
3999:
4000: fi
4001:
4002: case "$host_os" in
4003: hpux*)
4004:
4005: cat >>confdefs.h <<\_ACEOF
4006: #define _XOPEN_SOURCE 500
4007: _ACEOF
4008:
4009: ;;
4010: esac
4011:
4012:
4013:
4014: { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4015: $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4016: if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4017: $as_echo_n "(cached) " >&6
4018: else
4019: cat >conftest.$ac_ext <<_ACEOF
4020: /* confdefs.h. */
4021: _ACEOF
4022: cat confdefs.h >>conftest.$ac_ext
4023: cat >>conftest.$ac_ext <<_ACEOF
4024: /* end confdefs.h. */
4025:
4026: # define __EXTENSIONS__ 1
4027: $ac_includes_default
4028: int
4029: main ()
4030: {
4031:
4032: ;
4033: return 0;
4034: }
4035: _ACEOF
4036: rm -f conftest.$ac_objext
4037: if { (ac_try="$ac_compile"
4038: case "(($ac_try" in
4039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040: *) ac_try_echo=$ac_try;;
4041: esac
4042: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4043: $as_echo "$ac_try_echo") >&5
4044: (eval "$ac_compile") 2>conftest.er1
4045: ac_status=$?
4046: grep -v '^ *+' conftest.er1 >conftest.err
4047: rm -f conftest.er1
4048: cat conftest.err >&5
4049: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050: (exit $ac_status); } && {
4051: test -z "$ac_c_werror_flag" ||
4052: test ! -s conftest.err
4053: } && test -s conftest.$ac_objext; then
4054: ac_cv_safe_to_define___extensions__=yes
4055: else
4056: $as_echo "$as_me: failed program was:" >&5
4057: sed 's/^/| /' conftest.$ac_ext >&5
4058:
4059: ac_cv_safe_to_define___extensions__=no
4060: fi
4061:
4062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063: fi
4064: { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4065: $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4066: test $ac_cv_safe_to_define___extensions__ = yes &&
4067: cat >>confdefs.h <<\_ACEOF
4068: #define __EXTENSIONS__ 1
4069: _ACEOF
4070:
4071: cat >>confdefs.h <<\_ACEOF
4072: #define _ALL_SOURCE 1
4073: _ACEOF
4074:
4075: cat >>confdefs.h <<\_ACEOF
4076: #define _GNU_SOURCE 1
4077: _ACEOF
4078:
4079: cat >>confdefs.h <<\_ACEOF
4080: #define _POSIX_PTHREAD_SEMANTICS 1
4081: _ACEOF
4082:
4083: cat >>confdefs.h <<\_ACEOF
4084: #define _TANDEM_SOURCE 1
4085: _ACEOF
4086:
4087:
4088:
4089:
4090:
4091:
4092:
4093:
4094: enable_shared=yes
4095: enable_static=no
4096: case `pwd` in
4097: *\ * | *\ *)
4098: { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4099: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4100: esac
4101:
4102:
4103:
4104: macro_version='2.2.6'
4105: macro_revision='1.3012'
4106:
4107:
4108:
4109:
4110:
4111:
4112:
4113:
4114:
4115:
4116:
4117:
4118:
4119: ltmain="$ac_aux_dir/ltmain.sh"
4120:
4121: { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4122: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4123: if test "${ac_cv_path_SED+set}" = set; then
4124: $as_echo_n "(cached) " >&6
4125: else
4126: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4127: for ac_i in 1 2 3 4 5 6 7; do
4128: ac_script="$ac_script$as_nl$ac_script"
4129: done
4130: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4131: $as_unset ac_script || ac_script=
4132: if test -z "$SED"; then
4133: ac_path_SED_found=false
4134: # Loop through the user's path and test for each of PROGNAME-LIST
4135: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136: for as_dir in $PATH
4137: do
4138: IFS=$as_save_IFS
4139: test -z "$as_dir" && as_dir=.
4140: for ac_prog in sed gsed; do
4141: for ac_exec_ext in '' $ac_executable_extensions; do
4142: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4143: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4144: # Check for GNU ac_path_SED and select it if it is found.
4145: # Check for GNU $ac_path_SED
4146: case `"$ac_path_SED" --version 2>&1` in
4147: *GNU*)
4148: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4149: *)
4150: ac_count=0
4151: $as_echo_n 0123456789 >"conftest.in"
4152: while :
4153: do
4154: cat "conftest.in" "conftest.in" >"conftest.tmp"
4155: mv "conftest.tmp" "conftest.in"
4156: cp "conftest.in" "conftest.nl"
4157: $as_echo '' >> "conftest.nl"
4158: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4159: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4160: ac_count=`expr $ac_count + 1`
4161: if test $ac_count -gt ${ac_path_SED_max-0}; then
4162: # Best one so far, save it but keep looking for a better one
4163: ac_cv_path_SED="$ac_path_SED"
4164: ac_path_SED_max=$ac_count
4165: fi
4166: # 10*(2^10) chars as input seems more than enough
4167: test $ac_count -gt 10 && break
4168: done
4169: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4170: esac
4171:
4172: $ac_path_SED_found && break 3
4173: done
4174: done
4175: done
4176: IFS=$as_save_IFS
4177: if test -z "$ac_cv_path_SED"; then
4178: { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4179: $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4180: { (exit 1); exit 1; }; }
4181: fi
4182: else
4183: ac_cv_path_SED=$SED
4184: fi
4185:
4186: fi
4187: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4188: $as_echo "$ac_cv_path_SED" >&6; }
4189: SED="$ac_cv_path_SED"
4190: rm -f conftest.sed
4191:
4192: test -z "$SED" && SED=sed
4193: Xsed="$SED -e 1s/^X//"
4194:
4195:
4196:
4197:
4198:
4199:
4200:
4201:
4202:
4203:
4204:
4205: { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4206: $as_echo_n "checking for fgrep... " >&6; }
4207: if test "${ac_cv_path_FGREP+set}" = set; then
4208: $as_echo_n "(cached) " >&6
4209: else
4210: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4211: then ac_cv_path_FGREP="$GREP -F"
4212: else
4213: if test -z "$FGREP"; then
4214: ac_path_FGREP_found=false
4215: # Loop through the user's path and test for each of PROGNAME-LIST
4216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4218: do
4219: IFS=$as_save_IFS
4220: test -z "$as_dir" && as_dir=.
4221: for ac_prog in fgrep; do
4222: for ac_exec_ext in '' $ac_executable_extensions; do
4223: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4224: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4225: # Check for GNU ac_path_FGREP and select it if it is found.
4226: # Check for GNU $ac_path_FGREP
4227: case `"$ac_path_FGREP" --version 2>&1` in
4228: *GNU*)
4229: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4230: *)
4231: ac_count=0
4232: $as_echo_n 0123456789 >"conftest.in"
4233: while :
4234: do
4235: cat "conftest.in" "conftest.in" >"conftest.tmp"
4236: mv "conftest.tmp" "conftest.in"
4237: cp "conftest.in" "conftest.nl"
4238: $as_echo 'FGREP' >> "conftest.nl"
4239: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4240: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4241: ac_count=`expr $ac_count + 1`
4242: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4243: # Best one so far, save it but keep looking for a better one
4244: ac_cv_path_FGREP="$ac_path_FGREP"
4245: ac_path_FGREP_max=$ac_count
4246: fi
4247: # 10*(2^10) chars as input seems more than enough
4248: test $ac_count -gt 10 && break
4249: done
4250: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4251: esac
4252:
4253: $ac_path_FGREP_found && break 3
4254: done
4255: done
4256: done
4257: IFS=$as_save_IFS
4258: if test -z "$ac_cv_path_FGREP"; then
4259: { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4260: $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4261: { (exit 1); exit 1; }; }
4262: fi
4263: else
4264: ac_cv_path_FGREP=$FGREP
4265: fi
4266:
4267: fi
4268: fi
4269: { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4270: $as_echo "$ac_cv_path_FGREP" >&6; }
4271: FGREP="$ac_cv_path_FGREP"
4272:
4273:
4274: test -z "$GREP" && GREP=grep
4275:
4276:
4277:
4278:
4279:
4280:
4281:
4282:
4283:
4284:
4285:
4286:
4287:
4288:
4289:
4290:
4291:
4292:
4293:
4294: # Check whether --with-gnu-ld was given.
4295: if test "${with_gnu_ld+set}" = set; then
4296: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4297: else
4298: with_gnu_ld=no
4299: fi
4300:
4301: ac_prog=ld
4302: if test "$GCC" = yes; then
4303: # Check if gcc -print-prog-name=ld gives a path.
4304: { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4305: $as_echo_n "checking for ld used by $CC... " >&6; }
4306: case $host in
4307: *-*-mingw*)
4308: # gcc leaves a trailing carriage return which upsets mingw
4309: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4310: *)
4311: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4312: esac
4313: case $ac_prog in
4314: # Accept absolute paths.
4315: [\\/]* | ?:[\\/]*)
4316: re_direlt='/[^/][^/]*/\.\./'
4317: # Canonicalize the pathname of ld
4318: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4319: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4320: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4321: done
4322: test -z "$LD" && LD="$ac_prog"
4323: ;;
4324: "")
4325: # If it fails, then pretend we aren't using GCC.
4326: ac_prog=ld
4327: ;;
4328: *)
4329: # If it is relative, then search for the first ld in PATH.
4330: with_gnu_ld=unknown
4331: ;;
4332: esac
4333: elif test "$with_gnu_ld" = yes; then
4334: { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4335: $as_echo_n "checking for GNU ld... " >&6; }
4336: else
4337: { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4338: $as_echo_n "checking for non-GNU ld... " >&6; }
4339: fi
4340: if test "${lt_cv_path_LD+set}" = set; then
4341: $as_echo_n "(cached) " >&6
4342: else
4343: if test -z "$LD"; then
4344: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4345: for ac_dir in $PATH; do
4346: IFS="$lt_save_ifs"
4347: test -z "$ac_dir" && ac_dir=.
4348: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4349: lt_cv_path_LD="$ac_dir/$ac_prog"
4350: # Check to see if the program is GNU ld. I'd rather use --version,
4351: # but apparently some variants of GNU ld only accept -v.
4352: # Break only if it was the GNU/non-GNU ld that we prefer.
4353: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4354: *GNU* | *'with BFD'*)
4355: test "$with_gnu_ld" != no && break
4356: ;;
4357: *)
4358: test "$with_gnu_ld" != yes && break
4359: ;;
4360: esac
4361: fi
4362: done
4363: IFS="$lt_save_ifs"
4364: else
4365: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4366: fi
4367: fi
4368:
4369: LD="$lt_cv_path_LD"
4370: if test -n "$LD"; then
4371: { $as_echo "$as_me:$LINENO: result: $LD" >&5
4372: $as_echo "$LD" >&6; }
4373: else
4374: { $as_echo "$as_me:$LINENO: result: no" >&5
4375: $as_echo "no" >&6; }
4376: fi
4377: test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4378: $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4379: { (exit 1); exit 1; }; }
4380: { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4381: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4382: if test "${lt_cv_prog_gnu_ld+set}" = set; then
4383: $as_echo_n "(cached) " >&6
4384: else
4385: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4386: case `$LD -v 2>&1 </dev/null` in
4387: *GNU* | *'with BFD'*)
4388: lt_cv_prog_gnu_ld=yes
4389: ;;
4390: *)
4391: lt_cv_prog_gnu_ld=no
4392: ;;
4393: esac
4394: fi
4395: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4396: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4397: with_gnu_ld=$lt_cv_prog_gnu_ld
4398:
4399:
4400:
4401:
4402:
4403:
4404:
4405:
4406:
4407: { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4408: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4409: if test "${lt_cv_path_NM+set}" = set; then
4410: $as_echo_n "(cached) " >&6
4411: else
4412: if test -n "$NM"; then
4413: # Let the user override the test.
4414: lt_cv_path_NM="$NM"
4415: else
4416: lt_nm_to_check="${ac_tool_prefix}nm"
4417: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418: lt_nm_to_check="$lt_nm_to_check nm"
4419: fi
4420: for lt_tmp_nm in $lt_nm_to_check; do
4421: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423: IFS="$lt_save_ifs"
4424: test -z "$ac_dir" && ac_dir=.
4425: tmp_nm="$ac_dir/$lt_tmp_nm"
4426: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4427: # Check to see if the nm accepts a BSD-compat flag.
4428: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4429: # nm: unknown option "B" ignored
4430: # Tru64's nm complains that /dev/null is an invalid object file
4431: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4432: */dev/null* | *'Invalid file or object type'*)
4433: lt_cv_path_NM="$tmp_nm -B"
4434: break
4435: ;;
4436: *)
4437: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4438: */dev/null*)
4439: lt_cv_path_NM="$tmp_nm -p"
4440: break
4441: ;;
4442: *)
4443: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4444: continue # so that we can try to find one that supports BSD flags
4445: ;;
4446: esac
4447: ;;
4448: esac
4449: fi
4450: done
4451: IFS="$lt_save_ifs"
4452: done
4453: : ${lt_cv_path_NM=no}
4454: fi
4455: fi
4456: { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4457: $as_echo "$lt_cv_path_NM" >&6; }
4458: if test "$lt_cv_path_NM" != "no"; then
4459: NM="$lt_cv_path_NM"
4460: else
4461: # Didn't find any BSD compatible name lister, look for dumpbin.
4462: if test -n "$ac_tool_prefix"; then
4463: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4464: do
4465: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4468: $as_echo_n "checking for $ac_word... " >&6; }
4469: if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4470: $as_echo_n "(cached) " >&6
4471: else
4472: if test -n "$DUMPBIN"; then
4473: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4474: else
4475: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476: for as_dir in $PATH
4477: do
4478: IFS=$as_save_IFS
4479: test -z "$as_dir" && as_dir=.
4480: for ac_exec_ext in '' $ac_executable_extensions; do
4481: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4483: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484: break 2
4485: fi
4486: done
4487: done
4488: IFS=$as_save_IFS
4489:
4490: fi
4491: fi
4492: DUMPBIN=$ac_cv_prog_DUMPBIN
4493: if test -n "$DUMPBIN"; then
4494: { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4495: $as_echo "$DUMPBIN" >&6; }
4496: else
4497: { $as_echo "$as_me:$LINENO: result: no" >&5
4498: $as_echo "no" >&6; }
4499: fi
4500:
4501:
4502: test -n "$DUMPBIN" && break
4503: done
4504: fi
4505: if test -z "$DUMPBIN"; then
4506: ac_ct_DUMPBIN=$DUMPBIN
4507: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4508: do
4509: # Extract the first word of "$ac_prog", so it can be a program name with args.
4510: set dummy $ac_prog; ac_word=$2
4511: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4512: $as_echo_n "checking for $ac_word... " >&6; }
4513: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4514: $as_echo_n "(cached) " >&6
4515: else
4516: if test -n "$ac_ct_DUMPBIN"; then
4517: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4518: else
4519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520: for as_dir in $PATH
4521: do
4522: IFS=$as_save_IFS
4523: test -z "$as_dir" && as_dir=.
4524: for ac_exec_ext in '' $ac_executable_extensions; do
4525: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4527: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528: break 2
4529: fi
4530: done
4531: done
4532: IFS=$as_save_IFS
4533:
4534: fi
4535: fi
4536: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4537: if test -n "$ac_ct_DUMPBIN"; then
4538: { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4539: $as_echo "$ac_ct_DUMPBIN" >&6; }
4540: else
4541: { $as_echo "$as_me:$LINENO: result: no" >&5
4542: $as_echo "no" >&6; }
4543: fi
4544:
4545:
4546: test -n "$ac_ct_DUMPBIN" && break
4547: done
4548:
4549: if test "x$ac_ct_DUMPBIN" = x; then
4550: DUMPBIN=":"
4551: else
4552: case $cross_compiling:$ac_tool_warned in
4553: yes:)
4554: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4555: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556: ac_tool_warned=yes ;;
4557: esac
4558: DUMPBIN=$ac_ct_DUMPBIN
4559: fi
4560: fi
4561:
4562:
4563: if test "$DUMPBIN" != ":"; then
4564: NM="$DUMPBIN"
4565: fi
4566: fi
4567: test -z "$NM" && NM=nm
4568:
4569:
4570:
4571:
4572:
4573:
4574: { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4575: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4576: if test "${lt_cv_nm_interface+set}" = set; then
4577: $as_echo_n "(cached) " >&6
4578: else
4579: lt_cv_nm_interface="BSD nm"
4580: echo "int some_variable = 0;" > conftest.$ac_ext
4581: (eval echo "\"\$as_me:4581: $ac_compile\"" >&5)
4582: (eval "$ac_compile" 2>conftest.err)
4583: cat conftest.err >&5
4584: (eval echo "\"\$as_me:4584: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4585: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4586: cat conftest.err >&5
4587: (eval echo "\"\$as_me:4587: output\"" >&5)
4588: cat conftest.out >&5
4589: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4590: lt_cv_nm_interface="MS dumpbin"
4591: fi
4592: rm -f conftest*
4593: fi
4594: { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4595: $as_echo "$lt_cv_nm_interface" >&6; }
4596:
4597: # find the maximum length of command line arguments
4598: { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4599: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4600: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4601: $as_echo_n "(cached) " >&6
4602: else
4603: i=0
4604: teststring="ABCD"
4605:
4606: case $build_os in
4607: msdosdjgpp*)
4608: # On DJGPP, this test can blow up pretty badly due to problems in libc
4609: # (any single argument exceeding 2000 bytes causes a buffer overrun
4610: # during glob expansion). Even if it were fixed, the result of this
4611: # check would be larger than it should be.
4612: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4613: ;;
4614:
4615: gnu*)
4616: # Under GNU Hurd, this test is not required because there is
4617: # no limit to the length of command line arguments.
4618: # Libtool will interpret -1 as no limit whatsoever
4619: lt_cv_sys_max_cmd_len=-1;
4620: ;;
4621:
4622: cygwin* | mingw* | cegcc*)
4623: # On Win9x/ME, this test blows up -- it succeeds, but takes
4624: # about 5 minutes as the teststring grows exponentially.
4625: # Worse, since 9x/ME are not pre-emptively multitasking,
4626: # you end up with a "frozen" computer, even though with patience
4627: # the test eventually succeeds (with a max line length of 256k).
4628: # Instead, let's just punt: use the minimum linelength reported by
4629: # all of the supported platforms: 8192 (on NT/2K/XP).
4630: lt_cv_sys_max_cmd_len=8192;
4631: ;;
4632:
4633: amigaos*)
4634: # On AmigaOS with pdksh, this test takes hours, literally.
4635: # So we just punt and use a minimum line length of 8192.
4636: lt_cv_sys_max_cmd_len=8192;
4637: ;;
4638:
4639: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4640: # This has been around since 386BSD, at least. Likely further.
4641: if test -x /sbin/sysctl; then
4642: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4643: elif test -x /usr/sbin/sysctl; then
4644: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4645: else
4646: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4647: fi
4648: # And add a safety zone
4649: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4650: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4651: ;;
4652:
4653: interix*)
4654: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4655: lt_cv_sys_max_cmd_len=196608
4656: ;;
4657:
4658: osf*)
4659: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4660: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4661: # nice to cause kernel panics so lets avoid the loop below.
4662: # First set a reasonable default.
4663: lt_cv_sys_max_cmd_len=16384
4664: #
4665: if test -x /sbin/sysconfig; then
4666: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4667: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4668: esac
4669: fi
4670: ;;
4671: sco3.2v5*)
4672: lt_cv_sys_max_cmd_len=102400
4673: ;;
4674: sysv5* | sco5v6* | sysv4.2uw2*)
4675: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4676: if test -n "$kargmax"; then
4677: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4678: else
4679: lt_cv_sys_max_cmd_len=32768
4680: fi
4681: ;;
4682: *)
4683: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4684: if test -n "$lt_cv_sys_max_cmd_len"; then
4685: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4686: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4687: else
4688: # Make teststring a little bigger before we do anything with it.
4689: # a 1K string should be a reasonable start.
4690: for i in 1 2 3 4 5 6 7 8 ; do
4691: teststring=$teststring$teststring
4692: done
4693: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4694: # If test is not a shell built-in, we'll probably end up computing a
4695: # maximum length that is only half of the actual maximum length, but
4696: # we can't tell.
4697: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4698: = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4699: test $i != 17 # 1/2 MB should be enough
4700: do
4701: i=`expr $i + 1`
4702: teststring=$teststring$teststring
4703: done
4704: # Only check the string length outside the loop.
4705: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4706: teststring=
4707: # Add a significant safety factor because C++ compilers can tack on
4708: # massive amounts of additional arguments before passing them to the
4709: # linker. It appears as though 1/2 is a usable value.
4710: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4711: fi
4712: ;;
4713: esac
4714:
4715: fi
4716:
4717: if test -n $lt_cv_sys_max_cmd_len ; then
4718: { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4719: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4720: else
4721: { $as_echo "$as_me:$LINENO: result: none" >&5
4722: $as_echo "none" >&6; }
4723: fi
4724: max_cmd_len=$lt_cv_sys_max_cmd_len
4725:
4726:
4727:
4728:
4729:
4730:
4731: : ${CP="cp -f"}
4732: : ${MV="mv -f"}
4733: : ${RM="rm -f"}
4734:
4735: { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4736: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4737: # Try some XSI features
4738: xsi_shell=no
4739: ( _lt_dummy="a/b/c"
4740: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4741: = c,a/b,, \
4742: && eval 'test $(( 1 + 1 )) -eq 2 \
4743: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4744: && xsi_shell=yes
4745: { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4746: $as_echo "$xsi_shell" >&6; }
4747:
4748:
4749: { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4750: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4751: lt_shell_append=no
4752: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4753: >/dev/null 2>&1 \
4754: && lt_shell_append=yes
4755: { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4756: $as_echo "$lt_shell_append" >&6; }
4757:
4758:
4759: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4760: lt_unset=unset
4761: else
4762: lt_unset=false
4763: fi
4764:
4765:
4766:
4767:
4768:
4769: # test EBCDIC or ASCII
4770: case `echo X|tr X '\101'` in
4771: A) # ASCII based system
4772: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4773: lt_SP2NL='tr \040 \012'
4774: lt_NL2SP='tr \015\012 \040\040'
4775: ;;
4776: *) # EBCDIC based system
4777: lt_SP2NL='tr \100 \n'
4778: lt_NL2SP='tr \r\n \100\100'
4779: ;;
4780: esac
4781:
4782:
4783:
4784:
4785:
4786:
4787:
4788:
4789:
4790: { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4791: $as_echo_n "checking for $LD option to reload object files... " >&6; }
4792: if test "${lt_cv_ld_reload_flag+set}" = set; then
4793: $as_echo_n "(cached) " >&6
4794: else
4795: lt_cv_ld_reload_flag='-r'
4796: fi
4797: { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4798: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4799: reload_flag=$lt_cv_ld_reload_flag
4800: case $reload_flag in
4801: "" | " "*) ;;
4802: *) reload_flag=" $reload_flag" ;;
4803: esac
4804: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4805: case $host_os in
4806: darwin*)
4807: if test "$GCC" = yes; then
4808: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4809: else
4810: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4811: fi
4812: ;;
4813: esac
4814:
4815:
4816:
4817:
4818:
4819:
4820:
4821:
4822:
4823: if test -n "$ac_tool_prefix"; then
4824: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4825: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4826: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4827: $as_echo_n "checking for $ac_word... " >&6; }
4828: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4829: $as_echo_n "(cached) " >&6
4830: else
4831: if test -n "$OBJDUMP"; then
4832: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4833: else
4834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835: for as_dir in $PATH
4836: do
4837: IFS=$as_save_IFS
4838: test -z "$as_dir" && as_dir=.
4839: for ac_exec_ext in '' $ac_executable_extensions; do
4840: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4842: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843: break 2
4844: fi
4845: done
4846: done
4847: IFS=$as_save_IFS
4848:
4849: fi
4850: fi
4851: OBJDUMP=$ac_cv_prog_OBJDUMP
4852: if test -n "$OBJDUMP"; then
4853: { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4854: $as_echo "$OBJDUMP" >&6; }
4855: else
4856: { $as_echo "$as_me:$LINENO: result: no" >&5
4857: $as_echo "no" >&6; }
4858: fi
4859:
4860:
4861: fi
4862: if test -z "$ac_cv_prog_OBJDUMP"; then
4863: ac_ct_OBJDUMP=$OBJDUMP
4864: # Extract the first word of "objdump", so it can be a program name with args.
4865: set dummy objdump; ac_word=$2
4866: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4867: $as_echo_n "checking for $ac_word... " >&6; }
4868: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4869: $as_echo_n "(cached) " >&6
4870: else
4871: if test -n "$ac_ct_OBJDUMP"; then
4872: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4873: else
4874: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875: for as_dir in $PATH
4876: do
4877: IFS=$as_save_IFS
4878: test -z "$as_dir" && as_dir=.
4879: for ac_exec_ext in '' $ac_executable_extensions; do
4880: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881: ac_cv_prog_ac_ct_OBJDUMP="objdump"
4882: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883: break 2
4884: fi
4885: done
4886: done
4887: IFS=$as_save_IFS
4888:
4889: fi
4890: fi
4891: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4892: if test -n "$ac_ct_OBJDUMP"; then
4893: { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4894: $as_echo "$ac_ct_OBJDUMP" >&6; }
4895: else
4896: { $as_echo "$as_me:$LINENO: result: no" >&5
4897: $as_echo "no" >&6; }
4898: fi
4899:
4900: if test "x$ac_ct_OBJDUMP" = x; then
4901: OBJDUMP="false"
4902: else
4903: case $cross_compiling:$ac_tool_warned in
4904: yes:)
4905: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4906: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907: ac_tool_warned=yes ;;
4908: esac
4909: OBJDUMP=$ac_ct_OBJDUMP
4910: fi
4911: else
4912: OBJDUMP="$ac_cv_prog_OBJDUMP"
4913: fi
4914:
4915: test -z "$OBJDUMP" && OBJDUMP=objdump
4916:
4917:
4918:
4919:
4920:
4921:
4922: { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4923: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4924: if test "${lt_cv_deplibs_check_method+set}" = set; then
4925: $as_echo_n "(cached) " >&6
4926: else
4927: lt_cv_file_magic_cmd='$MAGIC_CMD'
4928: lt_cv_file_magic_test_file=
4929: lt_cv_deplibs_check_method='unknown'
4930: # Need to set the preceding variable on all platforms that support
4931: # interlibrary dependencies.
4932: # 'none' -- dependencies not supported.
4933: # `unknown' -- same as none, but documents that we really don't know.
4934: # 'pass_all' -- all dependencies passed with no checks.
4935: # 'test_compile' -- check by making test program.
4936: # 'file_magic [[regex]]' -- check by looking for files in library path
4937: # which responds to the $file_magic_cmd with a given extended regex.
4938: # If you have `file' or equivalent on your system and you're not sure
4939: # whether `pass_all' will *always* work, you probably want this one.
4940:
4941: case $host_os in
4942: aix[4-9]*)
4943: lt_cv_deplibs_check_method=pass_all
4944: ;;
4945:
4946: beos*)
4947: lt_cv_deplibs_check_method=pass_all
4948: ;;
4949:
4950: bsdi[45]*)
4951: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4952: lt_cv_file_magic_cmd='/usr/bin/file -L'
4953: lt_cv_file_magic_test_file=/shlib/libc.so
4954: ;;
4955:
4956: cygwin*)
4957: # func_win32_libid is a shell function defined in ltmain.sh
4958: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4959: lt_cv_file_magic_cmd='func_win32_libid'
4960: ;;
4961:
4962: mingw* | pw32*)
4963: # Base MSYS/MinGW do not provide the 'file' command needed by
4964: # func_win32_libid shell function, so use a weaker test based on 'objdump',
4965: # unless we find 'file', for example because we are cross-compiling.
4966: if ( file / ) >/dev/null 2>&1; then
4967: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4968: lt_cv_file_magic_cmd='func_win32_libid'
4969: else
4970: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4971: lt_cv_file_magic_cmd='$OBJDUMP -f'
4972: fi
4973: ;;
4974:
4975: cegcc)
4976: # use the weaker test based on 'objdump'. See mingw*.
4977: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4978: lt_cv_file_magic_cmd='$OBJDUMP -f'
4979: ;;
4980:
4981: darwin* | rhapsody*)
4982: lt_cv_deplibs_check_method=pass_all
4983: ;;
4984:
4985: freebsd* | dragonfly*)
4986: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4987: case $host_cpu in
4988: i*86 )
4989: # Not sure whether the presence of OpenBSD here was a mistake.
4990: # Let's accept both of them until this is cleared up.
4991: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4992: lt_cv_file_magic_cmd=/usr/bin/file
4993: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4994: ;;
4995: esac
4996: else
4997: lt_cv_deplibs_check_method=pass_all
4998: fi
4999: ;;
5000:
5001: gnu*)
5002: lt_cv_deplibs_check_method=pass_all
5003: ;;
5004:
5005: hpux10.20* | hpux11*)
5006: lt_cv_file_magic_cmd=/usr/bin/file
5007: case $host_cpu in
5008: ia64*)
5009: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5010: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5011: ;;
5012: hppa*64*)
5013: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5014: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5015: ;;
5016: *)
5017: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5018: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5019: ;;
5020: esac
5021: ;;
5022:
5023: interix[3-9]*)
5024: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5025: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5026: ;;
5027:
5028: irix5* | irix6* | nonstopux*)
5029: case $LD in
5030: *-32|*"-32 ") libmagic=32-bit;;
5031: *-n32|*"-n32 ") libmagic=N32;;
5032: *-64|*"-64 ") libmagic=64-bit;;
5033: *) libmagic=never-match;;
5034: esac
5035: lt_cv_deplibs_check_method=pass_all
5036: ;;
5037:
5038: # This must be Linux ELF.
5039: linux* | k*bsd*-gnu)
5040: lt_cv_deplibs_check_method=pass_all
5041: ;;
5042:
5043: netbsd*)
5044: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5045: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5046: else
5047: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5048: fi
5049: ;;
5050:
5051: newos6*)
5052: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5053: lt_cv_file_magic_cmd=/usr/bin/file
5054: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5055: ;;
5056:
5057: *nto* | *qnx*)
5058: lt_cv_deplibs_check_method=pass_all
5059: ;;
5060:
5061: openbsd*)
5062: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5063: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5064: else
5065: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5066: fi
5067: ;;
5068:
5069: osf3* | osf4* | osf5*)
5070: lt_cv_deplibs_check_method=pass_all
5071: ;;
5072:
5073: rdos*)
5074: lt_cv_deplibs_check_method=pass_all
5075: ;;
5076:
5077: solaris*)
5078: lt_cv_deplibs_check_method=pass_all
5079: ;;
5080:
5081: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5082: lt_cv_deplibs_check_method=pass_all
5083: ;;
5084:
5085: sysv4 | sysv4.3*)
5086: case $host_vendor in
5087: motorola)
5088: 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]'
5089: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5090: ;;
5091: ncr)
5092: lt_cv_deplibs_check_method=pass_all
5093: ;;
5094: sequent)
5095: lt_cv_file_magic_cmd='/bin/file'
5096: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5097: ;;
5098: sni)
5099: lt_cv_file_magic_cmd='/bin/file'
5100: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5101: lt_cv_file_magic_test_file=/lib/libc.so
5102: ;;
5103: siemens)
5104: lt_cv_deplibs_check_method=pass_all
5105: ;;
5106: pc)
5107: lt_cv_deplibs_check_method=pass_all
5108: ;;
5109: esac
5110: ;;
5111:
5112: tpf*)
5113: lt_cv_deplibs_check_method=pass_all
5114: ;;
5115: esac
5116:
5117: fi
5118: { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5119: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5120: file_magic_cmd=$lt_cv_file_magic_cmd
5121: deplibs_check_method=$lt_cv_deplibs_check_method
5122: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5123:
5124:
5125:
5126:
5127:
5128:
5129:
5130:
5131:
5132:
5133:
5134:
5135: if test -n "$ac_tool_prefix"; then
5136: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5137: set dummy ${ac_tool_prefix}ar; ac_word=$2
5138: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5139: $as_echo_n "checking for $ac_word... " >&6; }
5140: if test "${ac_cv_prog_AR+set}" = set; then
5141: $as_echo_n "(cached) " >&6
5142: else
5143: if test -n "$AR"; then
5144: ac_cv_prog_AR="$AR" # Let the user override the test.
5145: else
5146: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147: for as_dir in $PATH
5148: do
5149: IFS=$as_save_IFS
5150: test -z "$as_dir" && as_dir=.
5151: for ac_exec_ext in '' $ac_executable_extensions; do
5152: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153: ac_cv_prog_AR="${ac_tool_prefix}ar"
5154: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155: break 2
5156: fi
5157: done
5158: done
5159: IFS=$as_save_IFS
5160:
5161: fi
5162: fi
5163: AR=$ac_cv_prog_AR
5164: if test -n "$AR"; then
5165: { $as_echo "$as_me:$LINENO: result: $AR" >&5
5166: $as_echo "$AR" >&6; }
5167: else
5168: { $as_echo "$as_me:$LINENO: result: no" >&5
5169: $as_echo "no" >&6; }
5170: fi
5171:
5172:
5173: fi
5174: if test -z "$ac_cv_prog_AR"; then
5175: ac_ct_AR=$AR
5176: # Extract the first word of "ar", so it can be a program name with args.
5177: set dummy ar; ac_word=$2
5178: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5179: $as_echo_n "checking for $ac_word... " >&6; }
5180: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5181: $as_echo_n "(cached) " >&6
5182: else
5183: if test -n "$ac_ct_AR"; then
5184: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5185: else
5186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187: for as_dir in $PATH
5188: do
5189: IFS=$as_save_IFS
5190: test -z "$as_dir" && as_dir=.
5191: for ac_exec_ext in '' $ac_executable_extensions; do
5192: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193: ac_cv_prog_ac_ct_AR="ar"
5194: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195: break 2
5196: fi
5197: done
5198: done
5199: IFS=$as_save_IFS
5200:
5201: fi
5202: fi
5203: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5204: if test -n "$ac_ct_AR"; then
5205: { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5206: $as_echo "$ac_ct_AR" >&6; }
5207: else
5208: { $as_echo "$as_me:$LINENO: result: no" >&5
5209: $as_echo "no" >&6; }
5210: fi
5211:
5212: if test "x$ac_ct_AR" = x; then
5213: AR="false"
5214: else
5215: case $cross_compiling:$ac_tool_warned in
5216: yes:)
5217: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5218: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5219: ac_tool_warned=yes ;;
5220: esac
5221: AR=$ac_ct_AR
5222: fi
5223: else
5224: AR="$ac_cv_prog_AR"
5225: fi
5226:
5227: test -z "$AR" && AR=ar
5228: test -z "$AR_FLAGS" && AR_FLAGS=cru
5229:
5230:
5231:
5232:
5233:
5234:
5235:
5236:
5237:
5238:
5239:
5240: if test -n "$ac_tool_prefix"; then
5241: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5242: set dummy ${ac_tool_prefix}strip; ac_word=$2
5243: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5244: $as_echo_n "checking for $ac_word... " >&6; }
5245: if test "${ac_cv_prog_STRIP+set}" = set; then
5246: $as_echo_n "(cached) " >&6
5247: else
5248: if test -n "$STRIP"; then
5249: ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
5259: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260: break 2
5261: fi
5262: done
5263: done
5264: IFS=$as_save_IFS
5265:
5266: fi
5267: fi
5268: STRIP=$ac_cv_prog_STRIP
5269: if test -n "$STRIP"; then
5270: { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5271: $as_echo "$STRIP" >&6; }
5272: else
5273: { $as_echo "$as_me:$LINENO: result: no" >&5
5274: $as_echo "no" >&6; }
5275: fi
5276:
5277:
5278: fi
5279: if test -z "$ac_cv_prog_STRIP"; then
5280: ac_ct_STRIP=$STRIP
5281: # Extract the first word of "strip", so it can be a program name with args.
5282: set dummy strip; ac_word=$2
5283: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5284: $as_echo_n "checking for $ac_word... " >&6; }
5285: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5286: $as_echo_n "(cached) " >&6
5287: else
5288: if test -n "$ac_ct_STRIP"; then
5289: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
5299: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300: break 2
5301: fi
5302: done
5303: done
5304: IFS=$as_save_IFS
5305:
5306: fi
5307: fi
5308: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5309: if test -n "$ac_ct_STRIP"; then
5310: { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5311: $as_echo "$ac_ct_STRIP" >&6; }
5312: else
5313: { $as_echo "$as_me:$LINENO: result: no" >&5
5314: $as_echo "no" >&6; }
5315: fi
5316:
5317: if test "x$ac_ct_STRIP" = x; then
5318: STRIP=":"
5319: else
5320: case $cross_compiling:$ac_tool_warned in
5321: yes:)
5322: { $as_echo "$as_me:$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: STRIP=$ac_ct_STRIP
5327: fi
5328: else
5329: STRIP="$ac_cv_prog_STRIP"
5330: fi
5331:
5332: test -z "$STRIP" && STRIP=:
5333:
5334:
5335:
5336:
5337:
5338:
5339: if test -n "$ac_tool_prefix"; then
5340: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5341: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5342: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5343: $as_echo_n "checking for $ac_word... " >&6; }
5344: if test "${ac_cv_prog_RANLIB+set}" = set; then
5345: $as_echo_n "(cached) " >&6
5346: else
5347: if test -n "$RANLIB"; then
5348: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5349: else
5350: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351: for as_dir in $PATH
5352: do
5353: IFS=$as_save_IFS
5354: test -z "$as_dir" && as_dir=.
5355: for ac_exec_ext in '' $ac_executable_extensions; do
5356: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5358: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359: break 2
5360: fi
5361: done
5362: done
5363: IFS=$as_save_IFS
5364:
5365: fi
5366: fi
5367: RANLIB=$ac_cv_prog_RANLIB
5368: if test -n "$RANLIB"; then
5369: { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5370: $as_echo "$RANLIB" >&6; }
5371: else
5372: { $as_echo "$as_me:$LINENO: result: no" >&5
5373: $as_echo "no" >&6; }
5374: fi
5375:
5376:
5377: fi
5378: if test -z "$ac_cv_prog_RANLIB"; then
5379: ac_ct_RANLIB=$RANLIB
5380: # Extract the first word of "ranlib", so it can be a program name with args.
5381: set dummy ranlib; ac_word=$2
5382: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5383: $as_echo_n "checking for $ac_word... " >&6; }
5384: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5385: $as_echo_n "(cached) " >&6
5386: else
5387: if test -n "$ac_ct_RANLIB"; then
5388: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5389: else
5390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391: for as_dir in $PATH
5392: do
5393: IFS=$as_save_IFS
5394: test -z "$as_dir" && as_dir=.
5395: for ac_exec_ext in '' $ac_executable_extensions; do
5396: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5397: ac_cv_prog_ac_ct_RANLIB="ranlib"
5398: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399: break 2
5400: fi
5401: done
5402: done
5403: IFS=$as_save_IFS
5404:
5405: fi
5406: fi
5407: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5408: if test -n "$ac_ct_RANLIB"; then
5409: { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5410: $as_echo "$ac_ct_RANLIB" >&6; }
5411: else
5412: { $as_echo "$as_me:$LINENO: result: no" >&5
5413: $as_echo "no" >&6; }
5414: fi
5415:
5416: if test "x$ac_ct_RANLIB" = x; then
5417: RANLIB=":"
5418: else
5419: case $cross_compiling:$ac_tool_warned in
5420: yes:)
5421: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5422: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5423: ac_tool_warned=yes ;;
5424: esac
5425: RANLIB=$ac_ct_RANLIB
5426: fi
5427: else
5428: RANLIB="$ac_cv_prog_RANLIB"
5429: fi
5430:
5431: test -z "$RANLIB" && RANLIB=:
5432:
5433:
5434:
5435:
5436:
5437:
5438: # Determine commands to create old-style static archives.
5439: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5440: old_postinstall_cmds='chmod 644 $oldlib'
5441: old_postuninstall_cmds=
5442:
5443: if test -n "$RANLIB"; then
5444: case $host_os in
5445: openbsd*)
5446: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5447: ;;
5448: *)
5449: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5450: ;;
5451: esac
5452: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5453: fi
5454:
5455:
5456:
5457:
5458:
5459:
5460:
5461:
5462:
5463:
5464:
5465:
5466:
5467:
5468:
5469:
5470:
5471:
5472:
5473:
5474:
5475:
5476:
5477:
5478:
5479:
5480:
5481:
5482:
5483:
5484:
5485:
5486:
5487:
5488: # If no C compiler was specified, use CC.
5489: LTCC=${LTCC-"$CC"}
5490:
5491: # If no C compiler flags were specified, use CFLAGS.
5492: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5493:
5494: # Allow CC to be a program name with arguments.
5495: compiler=$CC
5496:
5497:
5498: # Check for command to grab the raw symbol name followed by C symbol from nm.
5499: { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5500: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5501: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5502: $as_echo_n "(cached) " >&6
5503: else
5504:
5505: # These are sane defaults that work on at least a few old systems.
5506: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5507:
5508: # Character class describing NM global symbol codes.
5509: symcode='[BCDEGRST]'
5510:
5511: # Regexp to match symbols that can be accessed directly from C.
5512: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5513:
5514: # Define system-specific variables.
5515: case $host_os in
5516: aix*)
5517: symcode='[BCDT]'
5518: ;;
5519: cygwin* | mingw* | pw32* | cegcc*)
5520: symcode='[ABCDGISTW]'
5521: ;;
5522: hpux*)
5523: if test "$host_cpu" = ia64; then
5524: symcode='[ABCDEGRST]'
5525: fi
5526: ;;
5527: irix* | nonstopux*)
5528: symcode='[BCDEGRST]'
5529: ;;
5530: osf*)
5531: symcode='[BCDEGQRST]'
5532: ;;
5533: solaris*)
5534: symcode='[BDRT]'
5535: ;;
5536: sco3.2v5*)
5537: symcode='[DT]'
5538: ;;
5539: sysv4.2uw2*)
5540: symcode='[DT]'
5541: ;;
5542: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5543: symcode='[ABDT]'
5544: ;;
5545: sysv4)
5546: symcode='[DFNSTU]'
5547: ;;
5548: esac
5549:
5550: # If we're using GNU nm, then use its standard symbol codes.
5551: case `$NM -V 2>&1` in
5552: *GNU* | *'with BFD'*)
5553: symcode='[ABCDGIRSTW]' ;;
5554: esac
5555:
5556: # Transform an extracted symbol line into a proper C declaration.
5557: # Some systems (esp. on ia64) link data and code symbols differently,
5558: # so use this general approach.
5559: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5560:
5561: # Transform an extracted symbol line into symbol name and symbol address
5562: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5563: 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'"
5564:
5565: # Handle CRLF in mingw tool chain
5566: opt_cr=
5567: case $build_os in
5568: mingw*)
5569: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5570: ;;
5571: esac
5572:
5573: # Try without a prefix underscore, then with it.
5574: for ac_symprfx in "" "_"; do
5575:
5576: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5577: symxfrm="\\1 $ac_symprfx\\2 \\2"
5578:
5579: # Write the raw and C identifiers.
5580: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5581: # Fake it for dumpbin and say T for any non-static function
5582: # and D for any global variable.
5583: # Also find C++ and __fastcall symbols from MSVC++,
5584: # which start with @ or ?.
5585: lt_cv_sys_global_symbol_pipe="$AWK '"\
5586: " {last_section=section; section=\$ 3};"\
5587: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5588: " \$ 0!~/External *\|/{next};"\
5589: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5590: " {if(hide[section]) next};"\
5591: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5592: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5593: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5594: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5595: " ' prfx=^$ac_symprfx"
5596: else
5597: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5598: fi
5599:
5600: # Check to see that the pipe works correctly.
5601: pipe_works=no
5602:
5603: rm -f conftest*
5604: cat > conftest.$ac_ext <<_LT_EOF
5605: #ifdef __cplusplus
5606: extern "C" {
5607: #endif
5608: char nm_test_var;
5609: void nm_test_func(void);
5610: void nm_test_func(void){}
5611: #ifdef __cplusplus
5612: }
5613: #endif
5614: int main(){nm_test_var='a';nm_test_func();return(0);}
5615: _LT_EOF
5616:
5617: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618: (eval $ac_compile) 2>&5
5619: ac_status=$?
5620: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621: (exit $ac_status); }; then
5622: # Now try to grab the symbols.
5623: nlist=conftest.nm
5624: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5625: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5626: ac_status=$?
5627: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628: (exit $ac_status); } && test -s "$nlist"; then
5629: # Try sorting and uniquifying the output.
5630: if sort "$nlist" | uniq > "$nlist"T; then
5631: mv -f "$nlist"T "$nlist"
5632: else
5633: rm -f "$nlist"T
5634: fi
5635:
5636: # Make sure that we snagged all the symbols we need.
5637: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5638: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5639: cat <<_LT_EOF > conftest.$ac_ext
5640: #ifdef __cplusplus
5641: extern "C" {
5642: #endif
5643:
5644: _LT_EOF
5645: # Now generate the symbol file.
5646: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5647:
5648: cat <<_LT_EOF >> conftest.$ac_ext
5649:
5650: /* The mapping between symbol names and symbols. */
5651: const struct {
5652: const char *name;
5653: void *address;
5654: }
5655: lt__PROGRAM__LTX_preloaded_symbols[] =
5656: {
5657: { "@PROGRAM@", (void *) 0 },
5658: _LT_EOF
5659: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5660: cat <<\_LT_EOF >> conftest.$ac_ext
5661: {0, (void *) 0}
5662: };
5663:
5664: /* This works around a problem in FreeBSD linker */
5665: #ifdef FREEBSD_WORKAROUND
5666: static const void *lt_preloaded_setup() {
5667: return lt__PROGRAM__LTX_preloaded_symbols;
5668: }
5669: #endif
5670:
5671: #ifdef __cplusplus
5672: }
5673: #endif
5674: _LT_EOF
5675: # Now try linking the two files.
5676: mv conftest.$ac_objext conftstm.$ac_objext
5677: lt_save_LIBS="$LIBS"
5678: lt_save_CFLAGS="$CFLAGS"
5679: LIBS="conftstm.$ac_objext"
5680: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5681: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5682: (eval $ac_link) 2>&5
5683: ac_status=$?
5684: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685: (exit $ac_status); } && test -s conftest${ac_exeext}; then
5686: pipe_works=yes
5687: fi
5688: LIBS="$lt_save_LIBS"
5689: CFLAGS="$lt_save_CFLAGS"
5690: else
5691: echo "cannot find nm_test_func in $nlist" >&5
5692: fi
5693: else
5694: echo "cannot find nm_test_var in $nlist" >&5
5695: fi
5696: else
5697: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5698: fi
5699: else
5700: echo "$progname: failed program was:" >&5
5701: cat conftest.$ac_ext >&5
5702: fi
5703: rm -rf conftest* conftst*
5704:
5705: # Do not use the global_symbol_pipe unless it works.
5706: if test "$pipe_works" = yes; then
5707: break
5708: else
5709: lt_cv_sys_global_symbol_pipe=
5710: fi
5711: done
5712:
5713: fi
5714:
5715: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5716: lt_cv_sys_global_symbol_to_cdecl=
5717: fi
5718: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5719: { $as_echo "$as_me:$LINENO: result: failed" >&5
5720: $as_echo "failed" >&6; }
5721: else
5722: { $as_echo "$as_me:$LINENO: result: ok" >&5
5723: $as_echo "ok" >&6; }
5724: fi
5725:
5726:
5727:
5728:
5729:
5730:
5731:
5732:
5733:
5734:
5735:
5736:
5737:
5738:
5739:
5740:
5741:
5742:
5743:
5744:
5745:
5746:
5747: # Check whether --enable-libtool-lock was given.
5748: if test "${enable_libtool_lock+set}" = set; then
5749: enableval=$enable_libtool_lock;
5750: fi
5751:
5752: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5753:
5754: # Some flags need to be propagated to the compiler or linker for good
5755: # libtool support.
5756: case $host in
5757: ia64-*-hpux*)
5758: # Find out which ABI we are using.
5759: echo 'int i;' > conftest.$ac_ext
5760: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761: (eval $ac_compile) 2>&5
5762: ac_status=$?
5763: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764: (exit $ac_status); }; then
5765: case `/usr/bin/file conftest.$ac_objext` in
5766: *ELF-32*)
5767: HPUX_IA64_MODE="32"
5768: ;;
5769: *ELF-64*)
5770: HPUX_IA64_MODE="64"
5771: ;;
5772: esac
5773: fi
5774: rm -rf conftest*
5775: ;;
5776: *-*-irix6*)
5777: # Find out which ABI we are using.
5778: echo '#line 5778 "configure"' > conftest.$ac_ext
5779: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780: (eval $ac_compile) 2>&5
5781: ac_status=$?
5782: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783: (exit $ac_status); }; then
5784: if test "$lt_cv_prog_gnu_ld" = yes; then
5785: case `/usr/bin/file conftest.$ac_objext` in
5786: *32-bit*)
5787: LD="${LD-ld} -melf32bsmip"
5788: ;;
5789: *N32*)
5790: LD="${LD-ld} -melf32bmipn32"
5791: ;;
5792: *64-bit*)
5793: LD="${LD-ld} -melf64bmip"
5794: ;;
5795: esac
5796: else
5797: case `/usr/bin/file conftest.$ac_objext` in
5798: *32-bit*)
5799: LD="${LD-ld} -32"
5800: ;;
5801: *N32*)
5802: LD="${LD-ld} -n32"
5803: ;;
5804: *64-bit*)
5805: LD="${LD-ld} -64"
5806: ;;
5807: esac
5808: fi
5809: fi
5810: rm -rf conftest*
5811: ;;
5812:
5813: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5814: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5815: # Find out which ABI we are using.
5816: echo 'int i;' > conftest.$ac_ext
5817: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818: (eval $ac_compile) 2>&5
5819: ac_status=$?
5820: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821: (exit $ac_status); }; then
5822: case `/usr/bin/file conftest.o` in
5823: *32-bit*)
5824: case $host in
5825: x86_64-*kfreebsd*-gnu)
5826: LD="${LD-ld} -m elf_i386_fbsd"
5827: ;;
5828: x86_64-*linux*)
5829: LD="${LD-ld} -m elf_i386"
5830: ;;
5831: ppc64-*linux*|powerpc64-*linux*)
5832: LD="${LD-ld} -m elf32ppclinux"
5833: ;;
5834: s390x-*linux*)
5835: LD="${LD-ld} -m elf_s390"
5836: ;;
5837: sparc64-*linux*)
5838: LD="${LD-ld} -m elf32_sparc"
5839: ;;
5840: esac
5841: ;;
5842: *64-bit*)
5843: case $host in
5844: x86_64-*kfreebsd*-gnu)
5845: LD="${LD-ld} -m elf_x86_64_fbsd"
5846: ;;
5847: x86_64-*linux*)
5848: LD="${LD-ld} -m elf_x86_64"
5849: ;;
5850: ppc*-*linux*|powerpc*-*linux*)
5851: LD="${LD-ld} -m elf64ppc"
5852: ;;
5853: s390*-*linux*|s390*-*tpf*)
5854: LD="${LD-ld} -m elf64_s390"
5855: ;;
5856: sparc*-*linux*)
5857: LD="${LD-ld} -m elf64_sparc"
5858: ;;
5859: esac
5860: ;;
5861: esac
5862: fi
5863: rm -rf conftest*
5864: ;;
5865:
5866: *-*-sco3.2v5*)
5867: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5868: SAVE_CFLAGS="$CFLAGS"
5869: CFLAGS="$CFLAGS -belf"
5870: { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5871: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5872: if test "${lt_cv_cc_needs_belf+set}" = set; then
5873: $as_echo_n "(cached) " >&6
5874: else
5875: ac_ext=c
5876: ac_cpp='$CPP $CPPFLAGS'
5877: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5878: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5879: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5880:
5881: cat >conftest.$ac_ext <<_ACEOF
5882: /* confdefs.h. */
5883: _ACEOF
5884: cat confdefs.h >>conftest.$ac_ext
5885: cat >>conftest.$ac_ext <<_ACEOF
5886: /* end confdefs.h. */
5887:
5888: int
5889: main ()
5890: {
5891:
5892: ;
5893: return 0;
5894: }
5895: _ACEOF
5896: rm -f conftest.$ac_objext conftest$ac_exeext
5897: if { (ac_try="$ac_link"
5898: case "(($ac_try" in
5899: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5900: *) ac_try_echo=$ac_try;;
5901: esac
5902: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5903: $as_echo "$ac_try_echo") >&5
5904: (eval "$ac_link") 2>conftest.er1
5905: ac_status=$?
5906: grep -v '^ *+' conftest.er1 >conftest.err
5907: rm -f conftest.er1
5908: cat conftest.err >&5
5909: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910: (exit $ac_status); } && {
5911: test -z "$ac_c_werror_flag" ||
5912: test ! -s conftest.err
5913: } && test -s conftest$ac_exeext && {
5914: test "$cross_compiling" = yes ||
5915: $as_test_x conftest$ac_exeext
5916: }; then
5917: lt_cv_cc_needs_belf=yes
5918: else
5919: $as_echo "$as_me: failed program was:" >&5
5920: sed 's/^/| /' conftest.$ac_ext >&5
5921:
5922: lt_cv_cc_needs_belf=no
5923: fi
5924:
5925: rm -rf conftest.dSYM
5926: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5927: conftest$ac_exeext conftest.$ac_ext
5928: ac_ext=c
5929: ac_cpp='$CPP $CPPFLAGS'
5930: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5931: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5932: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5933:
5934: fi
5935: { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5936: $as_echo "$lt_cv_cc_needs_belf" >&6; }
5937: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5938: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5939: CFLAGS="$SAVE_CFLAGS"
5940: fi
5941: ;;
5942: sparc*-*solaris*)
5943: # Find out which ABI we are using.
5944: echo 'int i;' > conftest.$ac_ext
5945: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946: (eval $ac_compile) 2>&5
5947: ac_status=$?
5948: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949: (exit $ac_status); }; then
5950: case `/usr/bin/file conftest.o` in
5951: *64-bit*)
5952: case $lt_cv_prog_gnu_ld in
5953: yes*) LD="${LD-ld} -m elf64_sparc" ;;
5954: *)
5955: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5956: LD="${LD-ld} -64"
5957: fi
5958: ;;
5959: esac
5960: ;;
5961: esac
5962: fi
5963: rm -rf conftest*
5964: ;;
5965: esac
5966:
5967: need_locks="$enable_libtool_lock"
5968:
5969:
5970: case $host_os in
5971: rhapsody* | darwin*)
5972: if test -n "$ac_tool_prefix"; then
5973: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5974: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5975: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5976: $as_echo_n "checking for $ac_word... " >&6; }
5977: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5978: $as_echo_n "(cached) " >&6
5979: else
5980: if test -n "$DSYMUTIL"; then
5981: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5982: else
5983: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984: for as_dir in $PATH
5985: do
5986: IFS=$as_save_IFS
5987: test -z "$as_dir" && as_dir=.
5988: for ac_exec_ext in '' $ac_executable_extensions; do
5989: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5991: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992: break 2
5993: fi
5994: done
5995: done
5996: IFS=$as_save_IFS
5997:
5998: fi
5999: fi
6000: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6001: if test -n "$DSYMUTIL"; then
6002: { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6003: $as_echo "$DSYMUTIL" >&6; }
6004: else
6005: { $as_echo "$as_me:$LINENO: result: no" >&5
6006: $as_echo "no" >&6; }
6007: fi
6008:
6009:
6010: fi
6011: if test -z "$ac_cv_prog_DSYMUTIL"; then
6012: ac_ct_DSYMUTIL=$DSYMUTIL
6013: # Extract the first word of "dsymutil", so it can be a program name with args.
6014: set dummy dsymutil; ac_word=$2
6015: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6016: $as_echo_n "checking for $ac_word... " >&6; }
6017: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6018: $as_echo_n "(cached) " >&6
6019: else
6020: if test -n "$ac_ct_DSYMUTIL"; then
6021: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6022: else
6023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024: for as_dir in $PATH
6025: do
6026: IFS=$as_save_IFS
6027: test -z "$as_dir" && as_dir=.
6028: for ac_exec_ext in '' $ac_executable_extensions; do
6029: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6031: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032: break 2
6033: fi
6034: done
6035: done
6036: IFS=$as_save_IFS
6037:
6038: fi
6039: fi
6040: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6041: if test -n "$ac_ct_DSYMUTIL"; then
6042: { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6043: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6044: else
6045: { $as_echo "$as_me:$LINENO: result: no" >&5
6046: $as_echo "no" >&6; }
6047: fi
6048:
6049: if test "x$ac_ct_DSYMUTIL" = x; then
6050: DSYMUTIL=":"
6051: else
6052: case $cross_compiling:$ac_tool_warned in
6053: yes:)
6054: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6055: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6056: ac_tool_warned=yes ;;
6057: esac
6058: DSYMUTIL=$ac_ct_DSYMUTIL
6059: fi
6060: else
6061: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6062: fi
6063:
6064: if test -n "$ac_tool_prefix"; then
6065: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6066: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6067: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6068: $as_echo_n "checking for $ac_word... " >&6; }
6069: if test "${ac_cv_prog_NMEDIT+set}" = set; then
6070: $as_echo_n "(cached) " >&6
6071: else
6072: if test -n "$NMEDIT"; then
6073: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6074: else
6075: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076: for as_dir in $PATH
6077: do
6078: IFS=$as_save_IFS
6079: test -z "$as_dir" && as_dir=.
6080: for ac_exec_ext in '' $ac_executable_extensions; do
6081: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6083: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6084: break 2
6085: fi
6086: done
6087: done
6088: IFS=$as_save_IFS
6089:
6090: fi
6091: fi
6092: NMEDIT=$ac_cv_prog_NMEDIT
6093: if test -n "$NMEDIT"; then
6094: { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6095: $as_echo "$NMEDIT" >&6; }
6096: else
6097: { $as_echo "$as_me:$LINENO: result: no" >&5
6098: $as_echo "no" >&6; }
6099: fi
6100:
6101:
6102: fi
6103: if test -z "$ac_cv_prog_NMEDIT"; then
6104: ac_ct_NMEDIT=$NMEDIT
6105: # Extract the first word of "nmedit", so it can be a program name with args.
6106: set dummy nmedit; ac_word=$2
6107: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6108: $as_echo_n "checking for $ac_word... " >&6; }
6109: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6110: $as_echo_n "(cached) " >&6
6111: else
6112: if test -n "$ac_ct_NMEDIT"; then
6113: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6114: else
6115: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116: for as_dir in $PATH
6117: do
6118: IFS=$as_save_IFS
6119: test -z "$as_dir" && as_dir=.
6120: for ac_exec_ext in '' $ac_executable_extensions; do
6121: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6123: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124: break 2
6125: fi
6126: done
6127: done
6128: IFS=$as_save_IFS
6129:
6130: fi
6131: fi
6132: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6133: if test -n "$ac_ct_NMEDIT"; then
6134: { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6135: $as_echo "$ac_ct_NMEDIT" >&6; }
6136: else
6137: { $as_echo "$as_me:$LINENO: result: no" >&5
6138: $as_echo "no" >&6; }
6139: fi
6140:
6141: if test "x$ac_ct_NMEDIT" = x; then
6142: NMEDIT=":"
6143: else
6144: case $cross_compiling:$ac_tool_warned in
6145: yes:)
6146: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6147: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6148: ac_tool_warned=yes ;;
6149: esac
6150: NMEDIT=$ac_ct_NMEDIT
6151: fi
6152: else
6153: NMEDIT="$ac_cv_prog_NMEDIT"
6154: fi
6155:
6156: if test -n "$ac_tool_prefix"; then
6157: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6158: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6159: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6160: $as_echo_n "checking for $ac_word... " >&6; }
6161: if test "${ac_cv_prog_LIPO+set}" = set; then
6162: $as_echo_n "(cached) " >&6
6163: else
6164: if test -n "$LIPO"; then
6165: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6166: else
6167: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168: for as_dir in $PATH
6169: do
6170: IFS=$as_save_IFS
6171: test -z "$as_dir" && as_dir=.
6172: for ac_exec_ext in '' $ac_executable_extensions; do
6173: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6175: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6176: break 2
6177: fi
6178: done
6179: done
6180: IFS=$as_save_IFS
6181:
6182: fi
6183: fi
6184: LIPO=$ac_cv_prog_LIPO
6185: if test -n "$LIPO"; then
6186: { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6187: $as_echo "$LIPO" >&6; }
6188: else
6189: { $as_echo "$as_me:$LINENO: result: no" >&5
6190: $as_echo "no" >&6; }
6191: fi
6192:
6193:
6194: fi
6195: if test -z "$ac_cv_prog_LIPO"; then
6196: ac_ct_LIPO=$LIPO
6197: # Extract the first word of "lipo", so it can be a program name with args.
6198: set dummy lipo; ac_word=$2
6199: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6200: $as_echo_n "checking for $ac_word... " >&6; }
6201: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6202: $as_echo_n "(cached) " >&6
6203: else
6204: if test -n "$ac_ct_LIPO"; then
6205: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6206: else
6207: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208: for as_dir in $PATH
6209: do
6210: IFS=$as_save_IFS
6211: test -z "$as_dir" && as_dir=.
6212: for ac_exec_ext in '' $ac_executable_extensions; do
6213: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214: ac_cv_prog_ac_ct_LIPO="lipo"
6215: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6216: break 2
6217: fi
6218: done
6219: done
6220: IFS=$as_save_IFS
6221:
6222: fi
6223: fi
6224: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6225: if test -n "$ac_ct_LIPO"; then
6226: { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6227: $as_echo "$ac_ct_LIPO" >&6; }
6228: else
6229: { $as_echo "$as_me:$LINENO: result: no" >&5
6230: $as_echo "no" >&6; }
6231: fi
6232:
6233: if test "x$ac_ct_LIPO" = x; then
6234: LIPO=":"
6235: else
6236: case $cross_compiling:$ac_tool_warned in
6237: yes:)
6238: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6239: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240: ac_tool_warned=yes ;;
6241: esac
6242: LIPO=$ac_ct_LIPO
6243: fi
6244: else
6245: LIPO="$ac_cv_prog_LIPO"
6246: fi
6247:
6248: if test -n "$ac_tool_prefix"; then
6249: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6250: set dummy ${ac_tool_prefix}otool; ac_word=$2
6251: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6252: $as_echo_n "checking for $ac_word... " >&6; }
6253: if test "${ac_cv_prog_OTOOL+set}" = set; then
6254: $as_echo_n "(cached) " >&6
6255: else
6256: if test -n "$OTOOL"; then
6257: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6258: else
6259: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260: for as_dir in $PATH
6261: do
6262: IFS=$as_save_IFS
6263: test -z "$as_dir" && as_dir=.
6264: for ac_exec_ext in '' $ac_executable_extensions; do
6265: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6267: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268: break 2
6269: fi
6270: done
6271: done
6272: IFS=$as_save_IFS
6273:
6274: fi
6275: fi
6276: OTOOL=$ac_cv_prog_OTOOL
6277: if test -n "$OTOOL"; then
6278: { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6279: $as_echo "$OTOOL" >&6; }
6280: else
6281: { $as_echo "$as_me:$LINENO: result: no" >&5
6282: $as_echo "no" >&6; }
6283: fi
6284:
6285:
6286: fi
6287: if test -z "$ac_cv_prog_OTOOL"; then
6288: ac_ct_OTOOL=$OTOOL
6289: # Extract the first word of "otool", so it can be a program name with args.
6290: set dummy otool; ac_word=$2
6291: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6292: $as_echo_n "checking for $ac_word... " >&6; }
6293: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6294: $as_echo_n "(cached) " >&6
6295: else
6296: if test -n "$ac_ct_OTOOL"; then
6297: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6298: else
6299: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300: for as_dir in $PATH
6301: do
6302: IFS=$as_save_IFS
6303: test -z "$as_dir" && as_dir=.
6304: for ac_exec_ext in '' $ac_executable_extensions; do
6305: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306: ac_cv_prog_ac_ct_OTOOL="otool"
6307: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308: break 2
6309: fi
6310: done
6311: done
6312: IFS=$as_save_IFS
6313:
6314: fi
6315: fi
6316: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6317: if test -n "$ac_ct_OTOOL"; then
6318: { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6319: $as_echo "$ac_ct_OTOOL" >&6; }
6320: else
6321: { $as_echo "$as_me:$LINENO: result: no" >&5
6322: $as_echo "no" >&6; }
6323: fi
6324:
6325: if test "x$ac_ct_OTOOL" = x; then
6326: OTOOL=":"
6327: else
6328: case $cross_compiling:$ac_tool_warned in
6329: yes:)
6330: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6331: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332: ac_tool_warned=yes ;;
6333: esac
6334: OTOOL=$ac_ct_OTOOL
6335: fi
6336: else
6337: OTOOL="$ac_cv_prog_OTOOL"
6338: fi
6339:
6340: if test -n "$ac_tool_prefix"; then
6341: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6342: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6343: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6344: $as_echo_n "checking for $ac_word... " >&6; }
6345: if test "${ac_cv_prog_OTOOL64+set}" = set; then
6346: $as_echo_n "(cached) " >&6
6347: else
6348: if test -n "$OTOOL64"; then
6349: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6350: else
6351: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352: for as_dir in $PATH
6353: do
6354: IFS=$as_save_IFS
6355: test -z "$as_dir" && as_dir=.
6356: for ac_exec_ext in '' $ac_executable_extensions; do
6357: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6358: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6359: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360: break 2
6361: fi
6362: done
6363: done
6364: IFS=$as_save_IFS
6365:
6366: fi
6367: fi
6368: OTOOL64=$ac_cv_prog_OTOOL64
6369: if test -n "$OTOOL64"; then
6370: { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6371: $as_echo "$OTOOL64" >&6; }
6372: else
6373: { $as_echo "$as_me:$LINENO: result: no" >&5
6374: $as_echo "no" >&6; }
6375: fi
6376:
6377:
6378: fi
6379: if test -z "$ac_cv_prog_OTOOL64"; then
6380: ac_ct_OTOOL64=$OTOOL64
6381: # Extract the first word of "otool64", so it can be a program name with args.
6382: set dummy otool64; ac_word=$2
6383: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6384: $as_echo_n "checking for $ac_word... " >&6; }
6385: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6386: $as_echo_n "(cached) " >&6
6387: else
6388: if test -n "$ac_ct_OTOOL64"; then
6389: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6390: else
6391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392: for as_dir in $PATH
6393: do
6394: IFS=$as_save_IFS
6395: test -z "$as_dir" && as_dir=.
6396: for ac_exec_ext in '' $ac_executable_extensions; do
6397: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6398: ac_cv_prog_ac_ct_OTOOL64="otool64"
6399: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400: break 2
6401: fi
6402: done
6403: done
6404: IFS=$as_save_IFS
6405:
6406: fi
6407: fi
6408: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6409: if test -n "$ac_ct_OTOOL64"; then
6410: { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6411: $as_echo "$ac_ct_OTOOL64" >&6; }
6412: else
6413: { $as_echo "$as_me:$LINENO: result: no" >&5
6414: $as_echo "no" >&6; }
6415: fi
6416:
6417: if test "x$ac_ct_OTOOL64" = x; then
6418: OTOOL64=":"
6419: else
6420: case $cross_compiling:$ac_tool_warned in
6421: yes:)
6422: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6423: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424: ac_tool_warned=yes ;;
6425: esac
6426: OTOOL64=$ac_ct_OTOOL64
6427: fi
6428: else
6429: OTOOL64="$ac_cv_prog_OTOOL64"
6430: fi
6431:
6432:
6433:
6434:
6435:
6436:
6437:
6438:
6439:
6440:
6441:
6442:
6443:
6444:
6445:
6446:
6447:
6448:
6449:
6450:
6451:
6452:
6453:
6454:
6455:
6456:
6457:
6458: { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6459: $as_echo_n "checking for -single_module linker flag... " >&6; }
6460: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6461: $as_echo_n "(cached) " >&6
6462: else
6463: lt_cv_apple_cc_single_mod=no
6464: if test -z "${LT_MULTI_MODULE}"; then
6465: # By default we will add the -single_module flag. You can override
6466: # by either setting the environment variable LT_MULTI_MODULE
6467: # non-empty at configure time, or by adding -multi_module to the
6468: # link flags.
6469: rm -rf libconftest.dylib*
6470: echo "int foo(void){return 1;}" > conftest.c
6471: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6472: -dynamiclib -Wl,-single_module conftest.c" >&5
6473: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6474: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6475: _lt_result=$?
6476: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6477: lt_cv_apple_cc_single_mod=yes
6478: else
6479: cat conftest.err >&5
6480: fi
6481: rm -rf libconftest.dylib*
6482: rm -f conftest.*
6483: fi
6484: fi
6485: { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6486: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6487: { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6488: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6489: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6490: $as_echo_n "(cached) " >&6
6491: else
6492: lt_cv_ld_exported_symbols_list=no
6493: save_LDFLAGS=$LDFLAGS
6494: echo "_main" > conftest.sym
6495: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6496: cat >conftest.$ac_ext <<_ACEOF
6497: /* confdefs.h. */
6498: _ACEOF
6499: cat confdefs.h >>conftest.$ac_ext
6500: cat >>conftest.$ac_ext <<_ACEOF
6501: /* end confdefs.h. */
6502:
6503: int
6504: main ()
6505: {
6506:
6507: ;
6508: return 0;
6509: }
6510: _ACEOF
6511: rm -f conftest.$ac_objext conftest$ac_exeext
6512: if { (ac_try="$ac_link"
6513: case "(($ac_try" in
6514: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515: *) ac_try_echo=$ac_try;;
6516: esac
6517: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518: $as_echo "$ac_try_echo") >&5
6519: (eval "$ac_link") 2>conftest.er1
6520: ac_status=$?
6521: grep -v '^ *+' conftest.er1 >conftest.err
6522: rm -f conftest.er1
6523: cat conftest.err >&5
6524: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525: (exit $ac_status); } && {
6526: test -z "$ac_c_werror_flag" ||
6527: test ! -s conftest.err
6528: } && test -s conftest$ac_exeext && {
6529: test "$cross_compiling" = yes ||
6530: $as_test_x conftest$ac_exeext
6531: }; then
6532: lt_cv_ld_exported_symbols_list=yes
6533: else
6534: $as_echo "$as_me: failed program was:" >&5
6535: sed 's/^/| /' conftest.$ac_ext >&5
6536:
6537: lt_cv_ld_exported_symbols_list=no
6538: fi
6539:
6540: rm -rf conftest.dSYM
6541: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6542: conftest$ac_exeext conftest.$ac_ext
6543: LDFLAGS="$save_LDFLAGS"
6544:
6545: fi
6546: { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6547: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6548: case $host_os in
6549: rhapsody* | darwin1.[012])
6550: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6551: darwin1.*)
6552: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6553: darwin*) # darwin 5.x on
6554: # if running on 10.5 or later, the deployment target defaults
6555: # to the OS version, if on x86, and 10.4, the deployment
6556: # target defaults to 10.4. Don't you love it?
6557: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6558: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6559: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6560: 10.[012]*)
6561: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6562: 10.*)
6563: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6564: esac
6565: ;;
6566: esac
6567: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6568: _lt_dar_single_mod='$single_module'
6569: fi
6570: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6571: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6572: else
6573: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6574: fi
6575: if test "$DSYMUTIL" != ":"; then
6576: _lt_dsymutil='~$DSYMUTIL $lib || :'
6577: else
6578: _lt_dsymutil=
6579: fi
6580: ;;
6581: esac
6582:
6583:
6584: for ac_header in dlfcn.h
6585: do
6586: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587: { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6588: $as_echo_n "checking for $ac_header... " >&6; }
6589: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6590: $as_echo_n "(cached) " >&6
6591: else
6592: cat >conftest.$ac_ext <<_ACEOF
6593: /* confdefs.h. */
6594: _ACEOF
6595: cat confdefs.h >>conftest.$ac_ext
6596: cat >>conftest.$ac_ext <<_ACEOF
6597: /* end confdefs.h. */
6598: $ac_includes_default
6599:
6600: #include <$ac_header>
6601: _ACEOF
6602: rm -f conftest.$ac_objext
6603: if { (ac_try="$ac_compile"
6604: case "(($ac_try" in
6605: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606: *) ac_try_echo=$ac_try;;
6607: esac
6608: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6609: $as_echo "$ac_try_echo") >&5
6610: (eval "$ac_compile") 2>conftest.er1
6611: ac_status=$?
6612: grep -v '^ *+' conftest.er1 >conftest.err
6613: rm -f conftest.er1
6614: cat conftest.err >&5
6615: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616: (exit $ac_status); } && {
6617: test -z "$ac_c_werror_flag" ||
6618: test ! -s conftest.err
6619: } && test -s conftest.$ac_objext; then
6620: eval "$as_ac_Header=yes"
6621: else
6622: $as_echo "$as_me: failed program was:" >&5
6623: sed 's/^/| /' conftest.$ac_ext >&5
6624:
6625: eval "$as_ac_Header=no"
6626: fi
6627:
6628: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629: fi
6630: ac_res=`eval 'as_val=${'$as_ac_Header'}
6631: $as_echo "$as_val"'`
6632: { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6633: $as_echo "$ac_res" >&6; }
6634: as_val=`eval 'as_val=${'$as_ac_Header'}
6635: $as_echo "$as_val"'`
6636: if test "x$as_val" = x""yes; then
6637: cat >>confdefs.h <<_ACEOF
6638: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639: _ACEOF
6640:
6641: fi
6642:
6643: done
6644:
6645:
6646:
6647: # Set options
6648: enable_win32_dll=yes
6649:
6650: case $host in
6651: *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6652: if test -n "$ac_tool_prefix"; then
6653: # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6654: set dummy ${ac_tool_prefix}as; ac_word=$2
6655: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6656: $as_echo_n "checking for $ac_word... " >&6; }
6657: if test "${ac_cv_prog_AS+set}" = set; then
6658: $as_echo_n "(cached) " >&6
6659: else
6660: if test -n "$AS"; then
6661: ac_cv_prog_AS="$AS" # Let the user override the test.
6662: else
6663: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664: for as_dir in $PATH
6665: do
6666: IFS=$as_save_IFS
6667: test -z "$as_dir" && as_dir=.
6668: for ac_exec_ext in '' $ac_executable_extensions; do
6669: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670: ac_cv_prog_AS="${ac_tool_prefix}as"
6671: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672: break 2
6673: fi
6674: done
6675: done
6676: IFS=$as_save_IFS
6677:
6678: fi
6679: fi
6680: AS=$ac_cv_prog_AS
6681: if test -n "$AS"; then
6682: { $as_echo "$as_me:$LINENO: result: $AS" >&5
6683: $as_echo "$AS" >&6; }
6684: else
6685: { $as_echo "$as_me:$LINENO: result: no" >&5
6686: $as_echo "no" >&6; }
6687: fi
6688:
6689:
6690: fi
6691: if test -z "$ac_cv_prog_AS"; then
6692: ac_ct_AS=$AS
6693: # Extract the first word of "as", so it can be a program name with args.
6694: set dummy as; ac_word=$2
6695: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6696: $as_echo_n "checking for $ac_word... " >&6; }
6697: if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6698: $as_echo_n "(cached) " >&6
6699: else
6700: if test -n "$ac_ct_AS"; then
6701: ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6702: else
6703: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704: for as_dir in $PATH
6705: do
6706: IFS=$as_save_IFS
6707: test -z "$as_dir" && as_dir=.
6708: for ac_exec_ext in '' $ac_executable_extensions; do
6709: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710: ac_cv_prog_ac_ct_AS="as"
6711: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712: break 2
6713: fi
6714: done
6715: done
6716: IFS=$as_save_IFS
6717:
6718: fi
6719: fi
6720: ac_ct_AS=$ac_cv_prog_ac_ct_AS
6721: if test -n "$ac_ct_AS"; then
6722: { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6723: $as_echo "$ac_ct_AS" >&6; }
6724: else
6725: { $as_echo "$as_me:$LINENO: result: no" >&5
6726: $as_echo "no" >&6; }
6727: fi
6728:
6729: if test "x$ac_ct_AS" = x; then
6730: AS="false"
6731: else
6732: case $cross_compiling:$ac_tool_warned in
6733: yes:)
6734: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6735: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736: ac_tool_warned=yes ;;
6737: esac
6738: AS=$ac_ct_AS
6739: fi
6740: else
6741: AS="$ac_cv_prog_AS"
6742: fi
6743:
6744: if test -n "$ac_tool_prefix"; then
6745: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6746: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6747: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6748: $as_echo_n "checking for $ac_word... " >&6; }
6749: if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6750: $as_echo_n "(cached) " >&6
6751: else
6752: if test -n "$DLLTOOL"; then
6753: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6754: else
6755: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756: for as_dir in $PATH
6757: do
6758: IFS=$as_save_IFS
6759: test -z "$as_dir" && as_dir=.
6760: for ac_exec_ext in '' $ac_executable_extensions; do
6761: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6762: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6763: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764: break 2
6765: fi
6766: done
6767: done
6768: IFS=$as_save_IFS
6769:
6770: fi
6771: fi
6772: DLLTOOL=$ac_cv_prog_DLLTOOL
6773: if test -n "$DLLTOOL"; then
6774: { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6775: $as_echo "$DLLTOOL" >&6; }
6776: else
6777: { $as_echo "$as_me:$LINENO: result: no" >&5
6778: $as_echo "no" >&6; }
6779: fi
6780:
6781:
6782: fi
6783: if test -z "$ac_cv_prog_DLLTOOL"; then
6784: ac_ct_DLLTOOL=$DLLTOOL
6785: # Extract the first word of "dlltool", so it can be a program name with args.
6786: set dummy dlltool; ac_word=$2
6787: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6788: $as_echo_n "checking for $ac_word... " >&6; }
6789: if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6790: $as_echo_n "(cached) " >&6
6791: else
6792: if test -n "$ac_ct_DLLTOOL"; then
6793: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6794: else
6795: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796: for as_dir in $PATH
6797: do
6798: IFS=$as_save_IFS
6799: test -z "$as_dir" && as_dir=.
6800: for ac_exec_ext in '' $ac_executable_extensions; do
6801: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6803: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804: break 2
6805: fi
6806: done
6807: done
6808: IFS=$as_save_IFS
6809:
6810: fi
6811: fi
6812: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6813: if test -n "$ac_ct_DLLTOOL"; then
6814: { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6815: $as_echo "$ac_ct_DLLTOOL" >&6; }
6816: else
6817: { $as_echo "$as_me:$LINENO: result: no" >&5
6818: $as_echo "no" >&6; }
6819: fi
6820:
6821: if test "x$ac_ct_DLLTOOL" = x; then
6822: DLLTOOL="false"
6823: else
6824: case $cross_compiling:$ac_tool_warned in
6825: yes:)
6826: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6827: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828: ac_tool_warned=yes ;;
6829: esac
6830: DLLTOOL=$ac_ct_DLLTOOL
6831: fi
6832: else
6833: DLLTOOL="$ac_cv_prog_DLLTOOL"
6834: fi
6835:
6836: if test -n "$ac_tool_prefix"; then
6837: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6838: set dummy ${ac_tool_prefix}objdump; ac_word=$2
6839: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6840: $as_echo_n "checking for $ac_word... " >&6; }
6841: if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6842: $as_echo_n "(cached) " >&6
6843: else
6844: if test -n "$OBJDUMP"; then
6845: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6846: else
6847: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848: for as_dir in $PATH
6849: do
6850: IFS=$as_save_IFS
6851: test -z "$as_dir" && as_dir=.
6852: for ac_exec_ext in '' $ac_executable_extensions; do
6853: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6854: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6855: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856: break 2
6857: fi
6858: done
6859: done
6860: IFS=$as_save_IFS
6861:
6862: fi
6863: fi
6864: OBJDUMP=$ac_cv_prog_OBJDUMP
6865: if test -n "$OBJDUMP"; then
6866: { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6867: $as_echo "$OBJDUMP" >&6; }
6868: else
6869: { $as_echo "$as_me:$LINENO: result: no" >&5
6870: $as_echo "no" >&6; }
6871: fi
6872:
6873:
6874: fi
6875: if test -z "$ac_cv_prog_OBJDUMP"; then
6876: ac_ct_OBJDUMP=$OBJDUMP
6877: # Extract the first word of "objdump", so it can be a program name with args.
6878: set dummy objdump; ac_word=$2
6879: { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6880: $as_echo_n "checking for $ac_word... " >&6; }
6881: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6882: $as_echo_n "(cached) " >&6
6883: else
6884: if test -n "$ac_ct_OBJDUMP"; then
6885: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6886: else
6887: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888: for as_dir in $PATH
6889: do
6890: IFS=$as_save_IFS
6891: test -z "$as_dir" && as_dir=.
6892: for ac_exec_ext in '' $ac_executable_extensions; do
6893: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6894: ac_cv_prog_ac_ct_OBJDUMP="objdump"
6895: $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896: break 2
6897: fi
6898: done
6899: done
6900: IFS=$as_save_IFS
6901:
6902: fi
6903: fi
6904: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6905: if test -n "$ac_ct_OBJDUMP"; then
6906: { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6907: $as_echo "$ac_ct_OBJDUMP" >&6; }
6908: else
6909: { $as_echo "$as_me:$LINENO: result: no" >&5
6910: $as_echo "no" >&6; }
6911: fi
6912:
6913: if test "x$ac_ct_OBJDUMP" = x; then
6914: OBJDUMP="false"
6915: else
6916: case $cross_compiling:$ac_tool_warned in
6917: yes:)
6918: { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6919: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920: ac_tool_warned=yes ;;
6921: esac
6922: OBJDUMP=$ac_ct_OBJDUMP
6923: fi
6924: else
6925: OBJDUMP="$ac_cv_prog_OBJDUMP"
6926: fi
6927:
6928: ;;
6929: esac
6930:
6931: test -z "$AS" && AS=as
6932:
6933:
6934:
6935:
6936:
6937: test -z "$DLLTOOL" && DLLTOOL=dlltool
6938:
6939:
6940:
6941:
6942:
6943: test -z "$OBJDUMP" && OBJDUMP=objdump
6944:
6945:
6946:
6947:
6948:
6949:
6950:
6951: enable_dlopen=no
6952:
6953:
6954:
6955: # Check whether --enable-shared was given.
6956: if test "${enable_shared+set}" = set; then
6957: enableval=$enable_shared; p=${PACKAGE-default}
6958: case $enableval in
6959: yes) enable_shared=yes ;;
6960: no) enable_shared=no ;;
6961: *)
6962: enable_shared=no
6963: # Look at the argument we got. We use all the common list separators.
6964: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6965: for pkg in $enableval; do
6966: IFS="$lt_save_ifs"
6967: if test "X$pkg" = "X$p"; then
6968: enable_shared=yes
6969: fi
6970: done
6971: IFS="$lt_save_ifs"
6972: ;;
6973: esac
6974: else
6975: enable_shared=yes
6976: fi
6977:
6978:
6979:
6980:
6981:
6982:
6983:
6984:
6985:
6986: # Check whether --enable-static was given.
6987: if test "${enable_static+set}" = set; then
6988: enableval=$enable_static; p=${PACKAGE-default}
6989: case $enableval in
6990: yes) enable_static=yes ;;
6991: no) enable_static=no ;;
6992: *)
6993: enable_static=no
6994: # Look at the argument we got. We use all the common list separators.
6995: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6996: for pkg in $enableval; do
6997: IFS="$lt_save_ifs"
6998: if test "X$pkg" = "X$p"; then
6999: enable_static=yes
7000: fi
7001: done
7002: IFS="$lt_save_ifs"
7003: ;;
7004: esac
7005: else
7006: enable_static=yes
7007: fi
7008:
7009:
7010:
7011:
7012:
7013:
7014:
7015:
7016:
7017:
7018: # Check whether --with-pic was given.
7019: if test "${with_pic+set}" = set; then
7020: withval=$with_pic; pic_mode="$withval"
7021: else
7022: pic_mode=default
7023: fi
7024:
7025:
7026: test -z "$pic_mode" && pic_mode=default
7027:
7028:
7029:
7030:
7031:
7032:
7033:
7034: # Check whether --enable-fast-install was given.
7035: if test "${enable_fast_install+set}" = set; then
7036: enableval=$enable_fast_install; p=${PACKAGE-default}
7037: case $enableval in
7038: yes) enable_fast_install=yes ;;
7039: no) enable_fast_install=no ;;
7040: *)
7041: enable_fast_install=no
7042: # Look at the argument we got. We use all the common list separators.
7043: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7044: for pkg in $enableval; do
7045: IFS="$lt_save_ifs"
7046: if test "X$pkg" = "X$p"; then
7047: enable_fast_install=yes
7048: fi
7049: done
7050: IFS="$lt_save_ifs"
7051: ;;
7052: esac
7053: else
7054: enable_fast_install=yes
7055: fi
7056:
7057:
7058:
7059:
7060:
7061:
7062:
7063:
7064:
7065:
7066:
7067: # This can be used to rebuild libtool when needed
7068: LIBTOOL_DEPS="$ltmain"
7069:
7070: # Always use our own libtool.
7071: LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
7072:
7073:
7074:
7075:
7076:
7077:
7078:
7079:
7080:
7081:
7082:
7083:
7084:
7085:
7086:
7087:
7088:
7089:
7090:
7091:
7092:
7093:
7094:
7095:
7096:
7097: test -z "$LN_S" && LN_S="ln -s"
7098:
7099:
7100:
7101:
7102:
7103:
7104:
7105:
7106:
7107:
7108:
7109:
7110:
7111:
7112: if test -n "${ZSH_VERSION+set}" ; then
7113: setopt NO_GLOB_SUBST
7114: fi
7115:
7116: { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7117: $as_echo_n "checking for objdir... " >&6; }
7118: if test "${lt_cv_objdir+set}" = set; then
7119: $as_echo_n "(cached) " >&6
7120: else
7121: rm -f .libs 2>/dev/null
7122: mkdir .libs 2>/dev/null
7123: if test -d .libs; then
7124: lt_cv_objdir=.libs
7125: else
7126: # MS-DOS does not allow filenames that begin with a dot.
7127: lt_cv_objdir=_libs
7128: fi
7129: rmdir .libs 2>/dev/null
7130: fi
7131: { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7132: $as_echo "$lt_cv_objdir" >&6; }
7133: objdir=$lt_cv_objdir
7134:
7135:
7136:
7137:
7138:
7139: cat >>confdefs.h <<_ACEOF
7140: #define LT_OBJDIR "$lt_cv_objdir/"
7141: _ACEOF
7142:
7143:
7144:
7145:
7146:
7147:
7148:
7149:
7150:
7151:
7152:
7153:
7154:
7155:
7156:
7157:
7158:
7159: case $host_os in
7160: aix3*)
7161: # AIX sometimes has problems with the GCC collect2 program. For some
7162: # reason, if we set the COLLECT_NAMES environment variable, the problems
7163: # vanish in a puff of smoke.
7164: if test "X${COLLECT_NAMES+set}" != Xset; then
7165: COLLECT_NAMES=
7166: export COLLECT_NAMES
7167: fi
7168: ;;
7169: esac
7170:
7171: # Sed substitution that helps us do robust quoting. It backslashifies
7172: # metacharacters that are still active within double-quoted strings.
7173: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7174:
7175: # Same as above, but do not quote variable references.
7176: double_quote_subst='s/\(["`\\]\)/\\\1/g'
7177:
7178: # Sed substitution to delay expansion of an escaped shell variable in a
7179: # double_quote_subst'ed string.
7180: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7181:
7182: # Sed substitution to delay expansion of an escaped single quote.
7183: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7184:
7185: # Sed substitution to avoid accidental globbing in evaled expressions
7186: no_glob_subst='s/\*/\\\*/g'
7187:
7188: # Global variables:
7189: ofile=libtool
7190: can_build_shared=yes
7191:
7192: # All known linkers require a `.a' archive for static linking (except MSVC,
7193: # which needs '.lib').
7194: libext=a
7195:
7196: with_gnu_ld="$lt_cv_prog_gnu_ld"
7197:
7198: old_CC="$CC"
7199: old_CFLAGS="$CFLAGS"
7200:
7201: # Set sane defaults for various variables
7202: test -z "$CC" && CC=cc
7203: test -z "$LTCC" && LTCC=$CC
7204: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7205: test -z "$LD" && LD=ld
7206: test -z "$ac_objext" && ac_objext=o
7207:
7208: for cc_temp in $compiler""; do
7209: case $cc_temp in
7210: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7211: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7212: \-*) ;;
7213: *) break;;
7214: esac
7215: done
7216: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7217:
7218:
7219: # Only perform the check for file, if the check method requires it
7220: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7221: case $deplibs_check_method in
7222: file_magic*)
7223: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7224: { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7225: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7226: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7227: $as_echo_n "(cached) " >&6
7228: else
7229: case $MAGIC_CMD in
7230: [\\/*] | ?:[\\/]*)
7231: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232: ;;
7233: *)
7234: lt_save_MAGIC_CMD="$MAGIC_CMD"
7235: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237: for ac_dir in $ac_dummy; do
7238: IFS="$lt_save_ifs"
7239: test -z "$ac_dir" && ac_dir=.
7240: if test -f $ac_dir/${ac_tool_prefix}file; then
7241: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7242: if test -n "$file_magic_test_file"; then
7243: case $deplibs_check_method in
7244: "file_magic "*)
7245: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248: $EGREP "$file_magic_regex" > /dev/null; then
7249: :
7250: else
7251: cat <<_LT_EOF 1>&2
7252:
7253: *** Warning: the command libtool uses to detect shared libraries,
7254: *** $file_magic_cmd, produces output that libtool cannot recognize.
7255: *** The result is that libtool may fail to recognize shared libraries
7256: *** as such. This will affect the creation of libtool libraries that
7257: *** depend on shared libraries, but programs linked with such libtool
7258: *** libraries will work regardless of this problem. Nevertheless, you
7259: *** may want to report the problem to your system manager and/or to
7260: *** bug-libtool@gnu.org
7261:
7262: _LT_EOF
7263: fi ;;
7264: esac
7265: fi
7266: break
7267: fi
7268: done
7269: IFS="$lt_save_ifs"
7270: MAGIC_CMD="$lt_save_MAGIC_CMD"
7271: ;;
7272: esac
7273: fi
7274:
7275: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276: if test -n "$MAGIC_CMD"; then
7277: { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7278: $as_echo "$MAGIC_CMD" >&6; }
7279: else
7280: { $as_echo "$as_me:$LINENO: result: no" >&5
7281: $as_echo "no" >&6; }
7282: fi
7283:
7284:
7285:
7286:
7287:
7288: if test -z "$lt_cv_path_MAGIC_CMD"; then
7289: if test -n "$ac_tool_prefix"; then
7290: { $as_echo "$as_me:$LINENO: checking for file" >&5
7291: $as_echo_n "checking for file... " >&6; }
7292: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7293: $as_echo_n "(cached) " >&6
7294: else
7295: case $MAGIC_CMD in
7296: [\\/*] | ?:[\\/]*)
7297: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7298: ;;
7299: *)
7300: lt_save_MAGIC_CMD="$MAGIC_CMD"
7301: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7302: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7303: for ac_dir in $ac_dummy; do
7304: IFS="$lt_save_ifs"
7305: test -z "$ac_dir" && ac_dir=.
7306: if test -f $ac_dir/file; then
7307: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7308: if test -n "$file_magic_test_file"; then
7309: case $deplibs_check_method in
7310: "file_magic "*)
7311: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7312: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7314: $EGREP "$file_magic_regex" > /dev/null; then
7315: :
7316: else
7317: cat <<_LT_EOF 1>&2
7318:
7319: *** Warning: the command libtool uses to detect shared libraries,
7320: *** $file_magic_cmd, produces output that libtool cannot recognize.
7321: *** The result is that libtool may fail to recognize shared libraries
7322: *** as such. This will affect the creation of libtool libraries that
7323: *** depend on shared libraries, but programs linked with such libtool
7324: *** libraries will work regardless of this problem. Nevertheless, you
7325: *** may want to report the problem to your system manager and/or to
7326: *** bug-libtool@gnu.org
7327:
7328: _LT_EOF
7329: fi ;;
7330: esac
7331: fi
7332: break
7333: fi
7334: done
7335: IFS="$lt_save_ifs"
7336: MAGIC_CMD="$lt_save_MAGIC_CMD"
7337: ;;
7338: esac
7339: fi
7340:
7341: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342: if test -n "$MAGIC_CMD"; then
7343: { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7344: $as_echo "$MAGIC_CMD" >&6; }
7345: else
7346: { $as_echo "$as_me:$LINENO: result: no" >&5
7347: $as_echo "no" >&6; }
7348: fi
7349:
7350:
7351: else
7352: MAGIC_CMD=:
7353: fi
7354: fi
7355:
7356: fi
7357: ;;
7358: esac
7359:
7360: # Use C for the default configuration in the libtool script
7361:
7362: lt_save_CC="$CC"
7363: ac_ext=c
7364: ac_cpp='$CPP $CPPFLAGS'
7365: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368:
7369:
7370: # Source file extension for C test sources.
7371: ac_ext=c
7372:
7373: # Object file extension for compiled C test sources.
7374: objext=o
7375: objext=$objext
7376:
7377: # Code to be used in simple compile tests
7378: lt_simple_compile_test_code="int some_variable = 0;"
7379:
7380: # Code to be used in simple link tests
7381: lt_simple_link_test_code='int main(){return(0);}'
7382:
7383:
7384:
7385:
7386:
7387:
7388:
7389: # If no C compiler was specified, use CC.
7390: LTCC=${LTCC-"$CC"}
7391:
7392: # If no C compiler flags were specified, use CFLAGS.
7393: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7394:
7395: # Allow CC to be a program name with arguments.
7396: compiler=$CC
7397:
7398: # Save the default compiler, since it gets overwritten when the other
7399: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7400: compiler_DEFAULT=$CC
7401:
7402: # save warnings/boilerplate of simple test code
7403: ac_outfile=conftest.$ac_objext
7404: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7405: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7406: _lt_compiler_boilerplate=`cat conftest.err`
7407: $RM conftest*
7408:
7409: ac_outfile=conftest.$ac_objext
7410: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7411: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7412: _lt_linker_boilerplate=`cat conftest.err`
7413: $RM -r conftest*
7414:
7415:
7416: ## CAVEAT EMPTOR:
7417: ## There is no encapsulation within the following macros, do not change
7418: ## the running order or otherwise move them around unless you know exactly
7419: ## what you are doing...
7420: if test -n "$compiler"; then
7421:
7422: lt_prog_compiler_no_builtin_flag=
7423:
7424: if test "$GCC" = yes; then
7425: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7426:
7427: { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7428: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7429: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7430: $as_echo_n "(cached) " >&6
7431: else
7432: lt_cv_prog_compiler_rtti_exceptions=no
7433: ac_outfile=conftest.$ac_objext
7434: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7435: lt_compiler_flag="-fno-rtti -fno-exceptions"
7436: # Insert the option either (1) after the last *FLAGS variable, or
7437: # (2) before a word containing "conftest.", or (3) at the end.
7438: # Note that $ac_compile itself does not contain backslashes and begins
7439: # with a dollar sign (not a hyphen), so the echo should work correctly.
7440: # The option is referenced via a variable to avoid confusing sed.
7441: lt_compile=`echo "$ac_compile" | $SED \
7442: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444: -e 's:$: $lt_compiler_flag:'`
7445: (eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
7446: (eval "$lt_compile" 2>conftest.err)
7447: ac_status=$?
7448: cat conftest.err >&5
7449: echo "$as_me:7449: \$? = $ac_status" >&5
7450: if (exit $ac_status) && test -s "$ac_outfile"; then
7451: # The compiler can only warn and ignore the option if not recognized
7452: # So say no if there are warnings other than the usual output.
7453: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7454: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7455: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7456: lt_cv_prog_compiler_rtti_exceptions=yes
7457: fi
7458: fi
7459: $RM conftest*
7460:
7461: fi
7462: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7463: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7464:
7465: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7466: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7467: else
7468: :
7469: fi
7470:
7471: fi
7472:
7473:
7474:
7475:
7476:
7477:
7478: lt_prog_compiler_wl=
7479: lt_prog_compiler_pic=
7480: lt_prog_compiler_static=
7481:
7482: { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7483: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7484:
7485: if test "$GCC" = yes; then
7486: lt_prog_compiler_wl='-Wl,'
7487: lt_prog_compiler_static='-static'
7488:
7489: case $host_os in
7490: aix*)
7491: # All AIX code is PIC.
7492: if test "$host_cpu" = ia64; then
7493: # AIX 5 now supports IA64 processor
7494: lt_prog_compiler_static='-Bstatic'
7495: fi
7496: ;;
7497:
7498: amigaos*)
7499: case $host_cpu in
7500: powerpc)
7501: # see comment about AmigaOS4 .so support
7502: lt_prog_compiler_pic='-fPIC'
7503: ;;
7504: m68k)
7505: # FIXME: we need at least 68020 code to build shared libraries, but
7506: # adding the `-m68020' flag to GCC prevents building anything better,
7507: # like `-m68040'.
7508: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7509: ;;
7510: esac
7511: ;;
7512:
7513: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7514: # PIC is the default for these OSes.
7515: ;;
7516:
7517: mingw* | cygwin* | pw32* | os2* | cegcc*)
7518: # This hack is so that the source file can tell whether it is being
7519: # built for inclusion in a dll (and should export symbols for example).
7520: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7521: # (--disable-auto-import) libraries
7522: lt_prog_compiler_pic='-DDLL_EXPORT'
7523: ;;
7524:
7525: darwin* | rhapsody*)
7526: # PIC is the default on this platform
7527: # Common symbols not allowed in MH_DYLIB files
7528: lt_prog_compiler_pic='-fno-common'
7529: ;;
7530:
7531: hpux*)
7532: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7533: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7534: # sets the default TLS model and affects inlining.
7535: case $host_cpu in
7536: hppa*64*)
7537: # +Z the default
7538: ;;
7539: *)
7540: lt_prog_compiler_pic='-fPIC'
7541: ;;
7542: esac
7543: ;;
7544:
7545: interix[3-9]*)
7546: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7547: # Instead, we relocate shared libraries at runtime.
7548: ;;
7549:
7550: msdosdjgpp*)
7551: # Just because we use GCC doesn't mean we suddenly get shared libraries
7552: # on systems that don't support them.
7553: lt_prog_compiler_can_build_shared=no
7554: enable_shared=no
7555: ;;
7556:
7557: *nto* | *qnx*)
7558: # QNX uses GNU C++, but need to define -shared option too, otherwise
7559: # it will coredump.
7560: lt_prog_compiler_pic='-fPIC -shared'
7561: ;;
7562:
7563: sysv4*MP*)
7564: if test -d /usr/nec; then
7565: lt_prog_compiler_pic=-Kconform_pic
7566: fi
7567: ;;
7568:
7569: *)
7570: lt_prog_compiler_pic='-fPIC'
7571: ;;
7572: esac
7573: else
7574: # PORTME Check for flag to pass linker flags through the system compiler.
7575: case $host_os in
7576: aix*)
7577: lt_prog_compiler_wl='-Wl,'
7578: if test "$host_cpu" = ia64; then
7579: # AIX 5 now supports IA64 processor
7580: lt_prog_compiler_static='-Bstatic'
7581: else
7582: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7583: fi
7584: ;;
7585:
7586: mingw* | cygwin* | pw32* | os2* | cegcc*)
7587: # This hack is so that the source file can tell whether it is being
7588: # built for inclusion in a dll (and should export symbols for example).
7589: lt_prog_compiler_pic='-DDLL_EXPORT'
7590: ;;
7591:
7592: hpux9* | hpux10* | hpux11*)
7593: lt_prog_compiler_wl='-Wl,'
7594: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7595: # not for PA HP-UX.
7596: case $host_cpu in
7597: hppa*64*|ia64*)
7598: # +Z the default
7599: ;;
7600: *)
7601: lt_prog_compiler_pic='+Z'
7602: ;;
7603: esac
7604: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7605: lt_prog_compiler_static='${wl}-a ${wl}archive'
7606: ;;
7607:
7608: irix5* | irix6* | nonstopux*)
7609: lt_prog_compiler_wl='-Wl,'
7610: # PIC (with -KPIC) is the default.
7611: lt_prog_compiler_static='-non_shared'
7612: ;;
7613:
7614: linux* | k*bsd*-gnu)
7615: case $cc_basename in
7616: # old Intel for x86_64 which still supported -KPIC.
7617: ecc*)
7618: lt_prog_compiler_wl='-Wl,'
7619: lt_prog_compiler_pic='-KPIC'
7620: lt_prog_compiler_static='-static'
7621: ;;
7622: # icc used to be incompatible with GCC.
7623: # ICC 10 doesn't accept -KPIC any more.
7624: icc* | ifort*)
7625: lt_prog_compiler_wl='-Wl,'
7626: lt_prog_compiler_pic='-fPIC'
7627: lt_prog_compiler_static='-static'
7628: ;;
7629: # Lahey Fortran 8.1.
7630: lf95*)
7631: lt_prog_compiler_wl='-Wl,'
7632: lt_prog_compiler_pic='--shared'
7633: lt_prog_compiler_static='--static'
7634: ;;
7635: pgcc* | pgf77* | pgf90* | pgf95*)
7636: # Portland Group compilers (*not* the Pentium gcc compiler,
7637: # which looks to be a dead project)
7638: lt_prog_compiler_wl='-Wl,'
7639: lt_prog_compiler_pic='-fpic'
7640: lt_prog_compiler_static='-Bstatic'
7641: ;;
7642: ccc*)
7643: lt_prog_compiler_wl='-Wl,'
7644: # All Alpha code is PIC.
7645: lt_prog_compiler_static='-non_shared'
7646: ;;
7647: xl*)
7648: # IBM XL C 8.0/Fortran 10.1 on PPC
7649: lt_prog_compiler_wl='-Wl,'
7650: lt_prog_compiler_pic='-qpic'
7651: lt_prog_compiler_static='-qstaticlink'
7652: ;;
7653: *)
7654: case `$CC -V 2>&1 | sed 5q` in
7655: *Sun\ C*)
7656: # Sun C 5.9
7657: lt_prog_compiler_pic='-KPIC'
7658: lt_prog_compiler_static='-Bstatic'
7659: lt_prog_compiler_wl='-Wl,'
7660: ;;
7661: *Sun\ F*)
7662: # Sun Fortran 8.3 passes all unrecognized flags to the linker
7663: lt_prog_compiler_pic='-KPIC'
7664: lt_prog_compiler_static='-Bstatic'
7665: lt_prog_compiler_wl=''
7666: ;;
7667: esac
7668: ;;
7669: esac
7670: ;;
7671:
7672: newsos6)
7673: lt_prog_compiler_pic='-KPIC'
7674: lt_prog_compiler_static='-Bstatic'
7675: ;;
7676:
7677: *nto* | *qnx*)
7678: # QNX uses GNU C++, but need to define -shared option too, otherwise
7679: # it will coredump.
7680: lt_prog_compiler_pic='-fPIC -shared'
7681: ;;
7682:
7683: osf3* | osf4* | osf5*)
7684: lt_prog_compiler_wl='-Wl,'
7685: # All OSF/1 code is PIC.
7686: lt_prog_compiler_static='-non_shared'
7687: ;;
7688:
7689: rdos*)
7690: lt_prog_compiler_static='-non_shared'
7691: ;;
7692:
7693: solaris*)
7694: lt_prog_compiler_pic='-KPIC'
7695: lt_prog_compiler_static='-Bstatic'
7696: case $cc_basename in
7697: f77* | f90* | f95*)
7698: lt_prog_compiler_wl='-Qoption ld ';;
7699: *)
7700: lt_prog_compiler_wl='-Wl,';;
7701: esac
7702: ;;
7703:
7704: sunos4*)
7705: lt_prog_compiler_wl='-Qoption ld '
7706: lt_prog_compiler_pic='-PIC'
7707: lt_prog_compiler_static='-Bstatic'
7708: ;;
7709:
7710: sysv4 | sysv4.2uw2* | sysv4.3*)
7711: lt_prog_compiler_wl='-Wl,'
7712: lt_prog_compiler_pic='-KPIC'
7713: lt_prog_compiler_static='-Bstatic'
7714: ;;
7715:
7716: sysv4*MP*)
7717: if test -d /usr/nec ;then
7718: lt_prog_compiler_pic='-Kconform_pic'
7719: lt_prog_compiler_static='-Bstatic'
7720: fi
7721: ;;
7722:
7723: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7724: lt_prog_compiler_wl='-Wl,'
7725: lt_prog_compiler_pic='-KPIC'
7726: lt_prog_compiler_static='-Bstatic'
7727: ;;
7728:
7729: unicos*)
7730: lt_prog_compiler_wl='-Wl,'
7731: lt_prog_compiler_can_build_shared=no
7732: ;;
7733:
7734: uts4*)
7735: lt_prog_compiler_pic='-pic'
7736: lt_prog_compiler_static='-Bstatic'
7737: ;;
7738:
7739: *)
7740: lt_prog_compiler_can_build_shared=no
7741: ;;
7742: esac
7743: fi
7744:
7745: case $host_os in
7746: # For platforms which do not support PIC, -DPIC is meaningless:
7747: *djgpp*)
7748: lt_prog_compiler_pic=
7749: ;;
7750: *)
7751: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7752: ;;
7753: esac
7754: { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7755: $as_echo "$lt_prog_compiler_pic" >&6; }
7756:
7757:
7758:
7759:
7760:
7761:
7762: #
7763: # Check to make sure the PIC flag actually works.
7764: #
7765: if test -n "$lt_prog_compiler_pic"; then
7766: { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7767: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7768: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7769: $as_echo_n "(cached) " >&6
7770: else
7771: lt_cv_prog_compiler_pic_works=no
7772: ac_outfile=conftest.$ac_objext
7773: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7775: # Insert the option either (1) after the last *FLAGS variable, or
7776: # (2) before a word containing "conftest.", or (3) at the end.
7777: # Note that $ac_compile itself does not contain backslashes and begins
7778: # with a dollar sign (not a hyphen), so the echo should work correctly.
7779: # The option is referenced via a variable to avoid confusing sed.
7780: lt_compile=`echo "$ac_compile" | $SED \
7781: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783: -e 's:$: $lt_compiler_flag:'`
7784: (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785: (eval "$lt_compile" 2>conftest.err)
7786: ac_status=$?
7787: cat conftest.err >&5
7788: echo "$as_me:7788: \$? = $ac_status" >&5
7789: if (exit $ac_status) && test -s "$ac_outfile"; then
7790: # The compiler can only warn and ignore the option if not recognized
7791: # So say no if there are warnings other than the usual output.
7792: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7793: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795: lt_cv_prog_compiler_pic_works=yes
7796: fi
7797: fi
7798: $RM conftest*
7799:
7800: fi
7801: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7802: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7803:
7804: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7805: case $lt_prog_compiler_pic in
7806: "" | " "*) ;;
7807: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7808: esac
7809: else
7810: lt_prog_compiler_pic=
7811: lt_prog_compiler_can_build_shared=no
7812: fi
7813:
7814: fi
7815:
7816:
7817:
7818:
7819:
7820:
7821: #
7822: # Check to make sure the static flag actually works.
7823: #
7824: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7825: { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7826: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7827: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7828: $as_echo_n "(cached) " >&6
7829: else
7830: lt_cv_prog_compiler_static_works=no
7831: save_LDFLAGS="$LDFLAGS"
7832: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7833: echo "$lt_simple_link_test_code" > conftest.$ac_ext
7834: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7835: # The linker can only warn and ignore the option if not recognized
7836: # So say no if there are warnings
7837: if test -s conftest.err; then
7838: # Append any errors to the config.log.
7839: cat conftest.err 1>&5
7840: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7841: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842: if diff conftest.exp conftest.er2 >/dev/null; then
7843: lt_cv_prog_compiler_static_works=yes
7844: fi
7845: else
7846: lt_cv_prog_compiler_static_works=yes
7847: fi
7848: fi
7849: $RM -r conftest*
7850: LDFLAGS="$save_LDFLAGS"
7851:
7852: fi
7853: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7854: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7855:
7856: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7857: :
7858: else
7859: lt_prog_compiler_static=
7860: fi
7861:
7862:
7863:
7864:
7865:
7866:
7867:
7868: { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7869: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7870: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7871: $as_echo_n "(cached) " >&6
7872: else
7873: lt_cv_prog_compiler_c_o=no
7874: $RM -r conftest 2>/dev/null
7875: mkdir conftest
7876: cd conftest
7877: mkdir out
7878: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879:
7880: lt_compiler_flag="-o out/conftest2.$ac_objext"
7881: # Insert the option either (1) after the last *FLAGS variable, or
7882: # (2) before a word containing "conftest.", or (3) at the end.
7883: # Note that $ac_compile itself does not contain backslashes and begins
7884: # with a dollar sign (not a hyphen), so the echo should work correctly.
7885: lt_compile=`echo "$ac_compile" | $SED \
7886: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888: -e 's:$: $lt_compiler_flag:'`
7889: (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
7890: (eval "$lt_compile" 2>out/conftest.err)
7891: ac_status=$?
7892: cat out/conftest.err >&5
7893: echo "$as_me:7893: \$? = $ac_status" >&5
7894: if (exit $ac_status) && test -s out/conftest2.$ac_objext
7895: then
7896: # The compiler can only warn and ignore the option if not recognized
7897: # So say no if there are warnings
7898: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7899: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7900: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7901: lt_cv_prog_compiler_c_o=yes
7902: fi
7903: fi
7904: chmod u+w . 2>&5
7905: $RM conftest*
7906: # SGI C++ compiler will create directory out/ii_files/ for
7907: # template instantiation
7908: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7909: $RM out/* && rmdir out
7910: cd ..
7911: $RM -r conftest
7912: $RM conftest*
7913:
7914: fi
7915: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7916: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7917:
7918:
7919:
7920:
7921:
7922:
7923: { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7924: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7925: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7926: $as_echo_n "(cached) " >&6
7927: else
7928: lt_cv_prog_compiler_c_o=no
7929: $RM -r conftest 2>/dev/null
7930: mkdir conftest
7931: cd conftest
7932: mkdir out
7933: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934:
7935: lt_compiler_flag="-o out/conftest2.$ac_objext"
7936: # Insert the option either (1) after the last *FLAGS variable, or
7937: # (2) before a word containing "conftest.", or (3) at the end.
7938: # Note that $ac_compile itself does not contain backslashes and begins
7939: # with a dollar sign (not a hyphen), so the echo should work correctly.
7940: lt_compile=`echo "$ac_compile" | $SED \
7941: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943: -e 's:$: $lt_compiler_flag:'`
7944: (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945: (eval "$lt_compile" 2>out/conftest.err)
7946: ac_status=$?
7947: cat out/conftest.err >&5
7948: echo "$as_me:7948: \$? = $ac_status" >&5
7949: if (exit $ac_status) && test -s out/conftest2.$ac_objext
7950: then
7951: # The compiler can only warn and ignore the option if not recognized
7952: # So say no if there are warnings
7953: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7954: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7955: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7956: lt_cv_prog_compiler_c_o=yes
7957: fi
7958: fi
7959: chmod u+w . 2>&5
7960: $RM conftest*
7961: # SGI C++ compiler will create directory out/ii_files/ for
7962: # template instantiation
7963: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7964: $RM out/* && rmdir out
7965: cd ..
7966: $RM -r conftest
7967: $RM conftest*
7968:
7969: fi
7970: { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7971: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7972:
7973:
7974:
7975:
7976: hard_links="nottested"
7977: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7978: # do not overwrite the value of need_locks provided by the user
7979: { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7980: $as_echo_n "checking if we can lock with hard links... " >&6; }
7981: hard_links=yes
7982: $RM conftest*
7983: ln conftest.a conftest.b 2>/dev/null && hard_links=no
7984: touch conftest.a
7985: ln conftest.a conftest.b 2>&5 || hard_links=no
7986: ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987: { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7988: $as_echo "$hard_links" >&6; }
7989: if test "$hard_links" = no; then
7990: { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7991: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7992: need_locks=warn
7993: fi
7994: else
7995: need_locks=no
7996: fi
7997:
7998:
7999:
8000:
8001:
8002:
8003: { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8005:
8006: runpath_var=
8007: allow_undefined_flag=
8008: always_export_symbols=no
8009: archive_cmds=
8010: archive_expsym_cmds=
8011: compiler_needs_object=no
8012: enable_shared_with_static_runtimes=no
8013: export_dynamic_flag_spec=
8014: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8015: hardcode_automatic=no
8016: hardcode_direct=no
8017: hardcode_direct_absolute=no
8018: hardcode_libdir_flag_spec=
8019: hardcode_libdir_flag_spec_ld=
8020: hardcode_libdir_separator=
8021: hardcode_minus_L=no
8022: hardcode_shlibpath_var=unsupported
8023: inherit_rpath=no
8024: link_all_deplibs=unknown
8025: module_cmds=
8026: module_expsym_cmds=
8027: old_archive_from_new_cmds=
8028: old_archive_from_expsyms_cmds=
8029: thread_safe_flag_spec=
8030: whole_archive_flag_spec=
8031: # include_expsyms should be a list of space-separated symbols to be *always*
8032: # included in the symbol list
8033: include_expsyms=
8034: # exclude_expsyms can be an extended regexp of symbols to exclude
8035: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8036: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8037: # as well as any symbol that contains `d'.
8038: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8039: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8040: # platforms (ab)use it in PIC code, but their linkers get confused if
8041: # the symbol is explicitly referenced. Since portable code cannot
8042: # rely on this symbol name, it's probably fine to never include it in
8043: # preloaded symbol tables.
8044: # Exclude shared library initialization/finalization symbols.
8045: extract_expsyms_cmds=
8046:
8047: case $host_os in
8048: cygwin* | mingw* | pw32* | cegcc*)
8049: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8050: # When not using gcc, we currently assume that we are using
8051: # Microsoft Visual C++.
8052: if test "$GCC" != yes; then
8053: with_gnu_ld=no
8054: fi
8055: ;;
8056: interix*)
8057: # we just hope/assume this is gcc and not c89 (= MSVC++)
8058: with_gnu_ld=yes
8059: ;;
8060: openbsd*)
8061: with_gnu_ld=no
8062: ;;
8063: esac
8064:
8065: ld_shlibs=yes
8066: if test "$with_gnu_ld" = yes; then
8067: # If archive_cmds runs LD, not CC, wlarc should be empty
8068: wlarc='${wl}'
8069:
8070: # Set some defaults for GNU ld with shared library support. These
8071: # are reset later if shared libraries are not supported. Putting them
8072: # here allows them to be overridden if necessary.
8073: runpath_var=LD_RUN_PATH
8074: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8075: export_dynamic_flag_spec='${wl}--export-dynamic'
8076: # ancient GNU ld didn't support --whole-archive et. al.
8077: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8078: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8079: else
8080: whole_archive_flag_spec=
8081: fi
8082: supports_anon_versioning=no
8083: case `$LD -v 2>&1` in
8084: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8085: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8086: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8087: *\ 2.11.*) ;; # other 2.11 versions
8088: *) supports_anon_versioning=yes ;;
8089: esac
8090:
8091: # See if GNU ld supports shared libraries.
8092: case $host_os in
8093: aix[3-9]*)
8094: # On AIX/PPC, the GNU linker is very broken
8095: if test "$host_cpu" != ia64; then
8096: ld_shlibs=no
8097: cat <<_LT_EOF 1>&2
8098:
8099: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8100: *** to be unable to reliably create shared libraries on AIX.
8101: *** Therefore, libtool is disabling shared libraries support. If you
8102: *** really care for shared libraries, you may want to modify your PATH
8103: *** so that a non-GNU linker is found, and then restart.
8104:
8105: _LT_EOF
8106: fi
8107: ;;
8108:
8109: amigaos*)
8110: case $host_cpu in
8111: powerpc)
8112: # see comment about AmigaOS4 .so support
8113: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114: archive_expsym_cmds=''
8115: ;;
8116: m68k)
8117: 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)'
8118: hardcode_libdir_flag_spec='-L$libdir'
8119: hardcode_minus_L=yes
8120: ;;
8121: esac
8122: ;;
8123:
8124: beos*)
8125: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8126: allow_undefined_flag=unsupported
8127: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8128: # support --undefined. This deserves some investigation. FIXME
8129: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130: else
8131: ld_shlibs=no
8132: fi
8133: ;;
8134:
8135: cygwin* | mingw* | pw32* | cegcc*)
8136: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8137: # as there is no search path for DLLs.
8138: hardcode_libdir_flag_spec='-L$libdir'
8139: allow_undefined_flag=unsupported
8140: always_export_symbols=no
8141: enable_shared_with_static_runtimes=yes
8142: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8143:
8144: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8145: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8146: # If the export-symbols file already is a .def file (1st line
8147: # is EXPORTS), use it as is; otherwise, prepend...
8148: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8149: cp $export_symbols $output_objdir/$soname.def;
8150: else
8151: echo EXPORTS > $output_objdir/$soname.def;
8152: cat $export_symbols >> $output_objdir/$soname.def;
8153: fi~
8154: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8155: else
8156: ld_shlibs=no
8157: fi
8158: ;;
8159:
8160: interix[3-9]*)
8161: hardcode_direct=no
8162: hardcode_shlibpath_var=no
8163: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8164: export_dynamic_flag_spec='${wl}-E'
8165: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8166: # Instead, shared libraries are loaded at an image base (0x10000000 by
8167: # default) and relocated if they conflict, which is a slow very memory
8168: # consuming and fragmenting process. To avoid this, we pick a random,
8169: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8170: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8171: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8172: 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'
8173: ;;
8174:
8175: gnu* | linux* | tpf* | k*bsd*-gnu)
8176: tmp_diet=no
8177: if test "$host_os" = linux-dietlibc; then
8178: case $cc_basename in
8179: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8180: esac
8181: fi
8182: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8183: && test "$tmp_diet" = no
8184: then
8185: tmp_addflag=
8186: tmp_sharedflag='-shared'
8187: case $cc_basename,$host_cpu in
8188: pgcc*) # Portland Group C compiler
8189: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8190: tmp_addflag=' $pic_flag'
8191: ;;
8192: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8193: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8194: tmp_addflag=' $pic_flag -Mnomain' ;;
8195: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8196: tmp_addflag=' -i_dynamic' ;;
8197: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8198: tmp_addflag=' -i_dynamic -nofor_main' ;;
8199: ifc* | ifort*) # Intel Fortran compiler
8200: tmp_addflag=' -nofor_main' ;;
8201: lf95*) # Lahey Fortran 8.1
8202: whole_archive_flag_spec=
8203: tmp_sharedflag='--shared' ;;
8204: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8205: tmp_sharedflag='-qmkshrobj'
8206: tmp_addflag= ;;
8207: esac
8208: case `$CC -V 2>&1 | sed 5q` in
8209: *Sun\ C*) # Sun C 5.9
8210: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8211: compiler_needs_object=yes
8212: tmp_sharedflag='-G' ;;
8213: *Sun\ F*) # Sun Fortran 8.3
8214: tmp_sharedflag='-G' ;;
8215: esac
8216: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217:
8218: if test "x$supports_anon_versioning" = xyes; then
8219: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8220: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8221: echo "local: *; };" >> $output_objdir/$libname.ver~
8222: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8223: fi
8224:
8225: case $cc_basename in
8226: xlf*)
8227: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8228: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8229: hardcode_libdir_flag_spec=
8230: hardcode_libdir_flag_spec_ld='-rpath $libdir'
8231: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8232: if test "x$supports_anon_versioning" = xyes; then
8233: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8234: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8235: echo "local: *; };" >> $output_objdir/$libname.ver~
8236: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8237: fi
8238: ;;
8239: esac
8240: else
8241: ld_shlibs=no
8242: fi
8243: ;;
8244:
8245: netbsd*)
8246: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8247: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8248: wlarc=
8249: else
8250: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252: fi
8253: ;;
8254:
8255: solaris*)
8256: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8257: ld_shlibs=no
8258: cat <<_LT_EOF 1>&2
8259:
8260: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8261: *** create shared libraries on Solaris systems. Therefore, libtool
8262: *** is disabling shared libraries support. We urge you to upgrade GNU
8263: *** binutils to release 2.9.1 or newer. Another option is to modify
8264: *** your PATH or compiler configuration so that the native linker is
8265: *** used, and then restart.
8266:
8267: _LT_EOF
8268: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8269: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8271: else
8272: ld_shlibs=no
8273: fi
8274: ;;
8275:
8276: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8277: case `$LD -v 2>&1` in
8278: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8279: ld_shlibs=no
8280: cat <<_LT_EOF 1>&2
8281:
8282: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8283: *** reliably create shared libraries on SCO systems. Therefore, libtool
8284: *** is disabling shared libraries support. We urge you to upgrade GNU
8285: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8286: *** your PATH or compiler configuration so that the native linker is
8287: *** used, and then restart.
8288:
8289: _LT_EOF
8290: ;;
8291: *)
8292: # For security reasons, it is highly recommended that you always
8293: # use absolute paths for naming shared libraries, and exclude the
8294: # DT_RUNPATH tag from executables and libraries. But doing so
8295: # requires that you compile everything twice, which is a pain.
8296: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8297: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300: else
8301: ld_shlibs=no
8302: fi
8303: ;;
8304: esac
8305: ;;
8306:
8307: sunos4*)
8308: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8309: wlarc=
8310: hardcode_direct=yes
8311: hardcode_shlibpath_var=no
8312: ;;
8313:
8314: *)
8315: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8316: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318: else
8319: ld_shlibs=no
8320: fi
8321: ;;
8322: esac
8323:
8324: if test "$ld_shlibs" = no; then
8325: runpath_var=
8326: hardcode_libdir_flag_spec=
8327: export_dynamic_flag_spec=
8328: whole_archive_flag_spec=
8329: fi
8330: else
8331: # PORTME fill in a description of your system's linker (not GNU ld)
8332: case $host_os in
8333: aix3*)
8334: allow_undefined_flag=unsupported
8335: always_export_symbols=yes
8336: 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'
8337: # Note: this linker hardcodes the directories in LIBPATH if there
8338: # are no directories specified by -L.
8339: hardcode_minus_L=yes
8340: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8341: # Neither direct hardcoding nor static linking is supported with a
8342: # broken collect2.
8343: hardcode_direct=unsupported
8344: fi
8345: ;;
8346:
8347: aix[4-9]*)
8348: if test "$host_cpu" = ia64; then
8349: # On IA64, the linker does run time linking by default, so we don't
8350: # have to do anything special.
8351: aix_use_runtimelinking=no
8352: exp_sym_flag='-Bexport'
8353: no_entry_flag=""
8354: else
8355: # If we're using GNU nm, then we don't want the "-C" option.
8356: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8357: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8358: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8359: else
8360: 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'
8361: fi
8362: aix_use_runtimelinking=no
8363:
8364: # Test if we are trying to use run time linking or normal
8365: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8366: # need to do runtime linking.
8367: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8368: for ld_flag in $LDFLAGS; do
8369: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8370: aix_use_runtimelinking=yes
8371: break
8372: fi
8373: done
8374: ;;
8375: esac
8376:
8377: exp_sym_flag='-bexport'
8378: no_entry_flag='-bnoentry'
8379: fi
8380:
8381: # When large executables or shared objects are built, AIX ld can
8382: # have problems creating the table of contents. If linking a library
8383: # or program results in "error TOC overflow" add -mminimal-toc to
8384: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8385: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8386:
8387: archive_cmds=''
8388: hardcode_direct=yes
8389: hardcode_direct_absolute=yes
8390: hardcode_libdir_separator=':'
8391: link_all_deplibs=yes
8392: file_list_spec='${wl}-f,'
8393:
8394: if test "$GCC" = yes; then
8395: case $host_os in aix4.[012]|aix4.[012].*)
8396: # We only want to do this on AIX 4.2 and lower, the check
8397: # below for broken collect2 doesn't work under 4.3+
8398: collect2name=`${CC} -print-prog-name=collect2`
8399: if test -f "$collect2name" &&
8400: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8401: then
8402: # We have reworked collect2
8403: :
8404: else
8405: # We have old collect2
8406: hardcode_direct=unsupported
8407: # It fails to find uninstalled libraries when the uninstalled
8408: # path is not listed in the libpath. Setting hardcode_minus_L
8409: # to unsupported forces relinking
8410: hardcode_minus_L=yes
8411: hardcode_libdir_flag_spec='-L$libdir'
8412: hardcode_libdir_separator=
8413: fi
8414: ;;
8415: esac
8416: shared_flag='-shared'
8417: if test "$aix_use_runtimelinking" = yes; then
8418: shared_flag="$shared_flag "'${wl}-G'
8419: fi
8420: else
8421: # not using gcc
8422: if test "$host_cpu" = ia64; then
8423: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8424: # chokes on -Wl,-G. The following line is correct:
8425: shared_flag='-G'
8426: else
8427: if test "$aix_use_runtimelinking" = yes; then
8428: shared_flag='${wl}-G'
8429: else
8430: shared_flag='${wl}-bM:SRE'
8431: fi
8432: fi
8433: fi
8434:
8435: export_dynamic_flag_spec='${wl}-bexpall'
8436: # It seems that -bexpall does not export symbols beginning with
8437: # underscore (_), so it is better to generate a list of symbols to export.
8438: always_export_symbols=yes
8439: if test "$aix_use_runtimelinking" = yes; then
8440: # Warning - without using the other runtime loading flags (-brtl),
8441: # -berok will link without error, but may produce a broken library.
8442: allow_undefined_flag='-berok'
8443: # Determine the default libpath from the value encoded in an
8444: # empty executable.
8445: cat >conftest.$ac_ext <<_ACEOF
8446: /* confdefs.h. */
8447: _ACEOF
8448: cat confdefs.h >>conftest.$ac_ext
8449: cat >>conftest.$ac_ext <<_ACEOF
8450: /* end confdefs.h. */
8451:
8452: int
8453: main ()
8454: {
8455:
8456: ;
8457: return 0;
8458: }
8459: _ACEOF
8460: rm -f conftest.$ac_objext conftest$ac_exeext
8461: if { (ac_try="$ac_link"
8462: case "(($ac_try" in
8463: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464: *) ac_try_echo=$ac_try;;
8465: esac
8466: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8467: $as_echo "$ac_try_echo") >&5
8468: (eval "$ac_link") 2>conftest.er1
8469: ac_status=$?
8470: grep -v '^ *+' conftest.er1 >conftest.err
8471: rm -f conftest.er1
8472: cat conftest.err >&5
8473: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474: (exit $ac_status); } && {
8475: test -z "$ac_c_werror_flag" ||
8476: test ! -s conftest.err
8477: } && test -s conftest$ac_exeext && {
8478: test "$cross_compiling" = yes ||
8479: $as_test_x conftest$ac_exeext
8480: }; then
8481:
8482: lt_aix_libpath_sed='
8483: /Import File Strings/,/^$/ {
8484: /^0/ {
8485: s/^0 *\(.*\)$/\1/
8486: p
8487: }
8488: }'
8489: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8490: # Check for a 64-bit object if we didn't find anything.
8491: if test -z "$aix_libpath"; then
8492: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8493: fi
8494: else
8495: $as_echo "$as_me: failed program was:" >&5
8496: sed 's/^/| /' conftest.$ac_ext >&5
8497:
8498:
8499: fi
8500:
8501: rm -rf conftest.dSYM
8502: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8503: conftest$ac_exeext conftest.$ac_ext
8504: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505:
8506: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8508: else
8509: if test "$host_cpu" = ia64; then
8510: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8511: allow_undefined_flag="-z nodefs"
8512: 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"
8513: else
8514: # Determine the default libpath from the value encoded in an
8515: # empty executable.
8516: cat >conftest.$ac_ext <<_ACEOF
8517: /* confdefs.h. */
8518: _ACEOF
8519: cat confdefs.h >>conftest.$ac_ext
8520: cat >>conftest.$ac_ext <<_ACEOF
8521: /* end confdefs.h. */
8522:
8523: int
8524: main ()
8525: {
8526:
8527: ;
8528: return 0;
8529: }
8530: _ACEOF
8531: rm -f conftest.$ac_objext conftest$ac_exeext
8532: if { (ac_try="$ac_link"
8533: case "(($ac_try" in
8534: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535: *) ac_try_echo=$ac_try;;
8536: esac
8537: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8538: $as_echo "$ac_try_echo") >&5
8539: (eval "$ac_link") 2>conftest.er1
8540: ac_status=$?
8541: grep -v '^ *+' conftest.er1 >conftest.err
8542: rm -f conftest.er1
8543: cat conftest.err >&5
8544: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545: (exit $ac_status); } && {
8546: test -z "$ac_c_werror_flag" ||
8547: test ! -s conftest.err
8548: } && test -s conftest$ac_exeext && {
8549: test "$cross_compiling" = yes ||
8550: $as_test_x conftest$ac_exeext
8551: }; then
8552:
8553: lt_aix_libpath_sed='
8554: /Import File Strings/,/^$/ {
8555: /^0/ {
8556: s/^0 *\(.*\)$/\1/
8557: p
8558: }
8559: }'
8560: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561: # Check for a 64-bit object if we didn't find anything.
8562: if test -z "$aix_libpath"; then
8563: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564: fi
8565: else
8566: $as_echo "$as_me: failed program was:" >&5
8567: sed 's/^/| /' conftest.$ac_ext >&5
8568:
8569:
8570: fi
8571:
8572: rm -rf conftest.dSYM
8573: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8574: conftest$ac_exeext conftest.$ac_ext
8575: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8576:
8577: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8578: # Warning - without using the other run time loading flags,
8579: # -berok will link without error, but may produce a broken library.
8580: no_undefined_flag=' ${wl}-bernotok'
8581: allow_undefined_flag=' ${wl}-berok'
8582: # Exported symbols can be pulled into shared objects from archives
8583: whole_archive_flag_spec='$convenience'
8584: archive_cmds_need_lc=yes
8585: # This is similar to how AIX traditionally builds its shared libraries.
8586: 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'
8587: fi
8588: fi
8589: ;;
8590:
8591: amigaos*)
8592: case $host_cpu in
8593: powerpc)
8594: # see comment about AmigaOS4 .so support
8595: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596: archive_expsym_cmds=''
8597: ;;
8598: m68k)
8599: 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)'
8600: hardcode_libdir_flag_spec='-L$libdir'
8601: hardcode_minus_L=yes
8602: ;;
8603: esac
8604: ;;
8605:
8606: bsdi[45]*)
8607: export_dynamic_flag_spec=-rdynamic
8608: ;;
8609:
8610: cygwin* | mingw* | pw32* | cegcc*)
8611: # When not using gcc, we currently assume that we are using
8612: # Microsoft Visual C++.
8613: # hardcode_libdir_flag_spec is actually meaningless, as there is
8614: # no search path for DLLs.
8615: hardcode_libdir_flag_spec=' '
8616: allow_undefined_flag=unsupported
8617: # Tell ltmain to make .lib files, not .a files.
8618: libext=lib
8619: # Tell ltmain to make .dll files, not .so files.
8620: shrext_cmds=".dll"
8621: # FIXME: Setting linknames here is a bad hack.
8622: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8623: # The linker will automatically build a .lib file if we build a DLL.
8624: old_archive_from_new_cmds='true'
8625: # FIXME: Should let the user specify the lib program.
8626: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8627: fix_srcfile_path='`cygpath -w "$srcfile"`'
8628: enable_shared_with_static_runtimes=yes
8629: ;;
8630:
8631: darwin* | rhapsody*)
8632:
8633:
8634: archive_cmds_need_lc=no
8635: hardcode_direct=no
8636: hardcode_automatic=yes
8637: hardcode_shlibpath_var=unsupported
8638: whole_archive_flag_spec=''
8639: link_all_deplibs=yes
8640: allow_undefined_flag="$_lt_dar_allow_undefined"
8641: case $cc_basename in
8642: ifort*) _lt_dar_can_shared=yes ;;
8643: *) _lt_dar_can_shared=$GCC ;;
8644: esac
8645: if test "$_lt_dar_can_shared" = "yes"; then
8646: output_verbose_link_cmd=echo
8647: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8648: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8649: 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}"
8650: 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}"
8651:
8652: else
8653: ld_shlibs=no
8654: fi
8655:
8656: ;;
8657:
8658: dgux*)
8659: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8660: hardcode_libdir_flag_spec='-L$libdir'
8661: hardcode_shlibpath_var=no
8662: ;;
8663:
8664: freebsd1*)
8665: ld_shlibs=no
8666: ;;
8667:
8668: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669: # support. Future versions do this automatically, but an explicit c++rt0.o
8670: # does not break anything, and helps significantly (at the cost of a little
8671: # extra space).
8672: freebsd2.2*)
8673: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674: hardcode_libdir_flag_spec='-R$libdir'
8675: hardcode_direct=yes
8676: hardcode_shlibpath_var=no
8677: ;;
8678:
8679: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8680: freebsd2*)
8681: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682: hardcode_direct=yes
8683: hardcode_minus_L=yes
8684: hardcode_shlibpath_var=no
8685: ;;
8686:
8687: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8688: freebsd* | dragonfly*)
8689: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8690: hardcode_libdir_flag_spec='-R$libdir'
8691: hardcode_direct=yes
8692: hardcode_shlibpath_var=no
8693: ;;
8694:
8695: hpux9*)
8696: if test "$GCC" = yes; then
8697: 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'
8698: else
8699: 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'
8700: fi
8701: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702: hardcode_libdir_separator=:
8703: hardcode_direct=yes
8704:
8705: # hardcode_minus_L: Not really in the search PATH,
8706: # but as the default location of the library.
8707: hardcode_minus_L=yes
8708: export_dynamic_flag_spec='${wl}-E'
8709: ;;
8710:
8711: hpux10*)
8712: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8713: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8714: else
8715: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8716: fi
8717: if test "$with_gnu_ld" = no; then
8718: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8719: hardcode_libdir_flag_spec_ld='+b $libdir'
8720: hardcode_libdir_separator=:
8721: hardcode_direct=yes
8722: hardcode_direct_absolute=yes
8723: export_dynamic_flag_spec='${wl}-E'
8724: # hardcode_minus_L: Not really in the search PATH,
8725: # but as the default location of the library.
8726: hardcode_minus_L=yes
8727: fi
8728: ;;
8729:
8730: hpux11*)
8731: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8732: case $host_cpu in
8733: hppa*64*)
8734: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735: ;;
8736: ia64*)
8737: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8738: ;;
8739: *)
8740: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8741: ;;
8742: esac
8743: else
8744: case $host_cpu in
8745: hppa*64*)
8746: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8747: ;;
8748: ia64*)
8749: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8750: ;;
8751: *)
8752: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8753: ;;
8754: esac
8755: fi
8756: if test "$with_gnu_ld" = no; then
8757: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8758: hardcode_libdir_separator=:
8759:
8760: case $host_cpu in
8761: hppa*64*|ia64*)
8762: hardcode_direct=no
8763: hardcode_shlibpath_var=no
8764: ;;
8765: *)
8766: hardcode_direct=yes
8767: hardcode_direct_absolute=yes
8768: export_dynamic_flag_spec='${wl}-E'
8769:
8770: # hardcode_minus_L: Not really in the search PATH,
8771: # but as the default location of the library.
8772: hardcode_minus_L=yes
8773: ;;
8774: esac
8775: fi
8776: ;;
8777:
8778: irix5* | irix6* | nonstopux*)
8779: if test "$GCC" = yes; then
8780: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8781: # Try to use the -exported_symbol ld option, if it does not
8782: # work, assume that -exports_file does not work either and
8783: # implicitly export all symbols.
8784: save_LDFLAGS="$LDFLAGS"
8785: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8786: cat >conftest.$ac_ext <<_ACEOF
8787: int foo(void) {}
8788: _ACEOF
8789: rm -f conftest.$ac_objext conftest$ac_exeext
8790: if { (ac_try="$ac_link"
8791: case "(($ac_try" in
8792: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793: *) ac_try_echo=$ac_try;;
8794: esac
8795: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8796: $as_echo "$ac_try_echo") >&5
8797: (eval "$ac_link") 2>conftest.er1
8798: ac_status=$?
8799: grep -v '^ *+' conftest.er1 >conftest.err
8800: rm -f conftest.er1
8801: cat conftest.err >&5
8802: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803: (exit $ac_status); } && {
8804: test -z "$ac_c_werror_flag" ||
8805: test ! -s conftest.err
8806: } && test -s conftest$ac_exeext && {
8807: test "$cross_compiling" = yes ||
8808: $as_test_x conftest$ac_exeext
8809: }; then
8810: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8811:
8812: else
8813: $as_echo "$as_me: failed program was:" >&5
8814: sed 's/^/| /' conftest.$ac_ext >&5
8815:
8816:
8817: fi
8818:
8819: rm -rf conftest.dSYM
8820: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8821: conftest$ac_exeext conftest.$ac_ext
8822: LDFLAGS="$save_LDFLAGS"
8823: else
8824: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8825: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8826: fi
8827: archive_cmds_need_lc='no'
8828: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8829: hardcode_libdir_separator=:
8830: inherit_rpath=yes
8831: link_all_deplibs=yes
8832: ;;
8833:
8834: netbsd*)
8835: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8836: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8837: else
8838: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8839: fi
8840: hardcode_libdir_flag_spec='-R$libdir'
8841: hardcode_direct=yes
8842: hardcode_shlibpath_var=no
8843: ;;
8844:
8845: newsos6)
8846: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847: hardcode_direct=yes
8848: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8849: hardcode_libdir_separator=:
8850: hardcode_shlibpath_var=no
8851: ;;
8852:
8853: *nto* | *qnx*)
8854: ;;
8855:
8856: openbsd*)
8857: if test -f /usr/libexec/ld.so; then
8858: hardcode_direct=yes
8859: hardcode_shlibpath_var=no
8860: hardcode_direct_absolute=yes
8861: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8862: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8863: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8864: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8865: export_dynamic_flag_spec='${wl}-E'
8866: else
8867: case $host_os in
8868: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8869: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870: hardcode_libdir_flag_spec='-R$libdir'
8871: ;;
8872: *)
8873: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8874: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8875: ;;
8876: esac
8877: fi
8878: else
8879: ld_shlibs=no
8880: fi
8881: ;;
8882:
8883: os2*)
8884: hardcode_libdir_flag_spec='-L$libdir'
8885: hardcode_minus_L=yes
8886: allow_undefined_flag=unsupported
8887: 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'
8888: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8889: ;;
8890:
8891: osf3*)
8892: if test "$GCC" = yes; then
8893: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8894: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8895: else
8896: allow_undefined_flag=' -expect_unresolved \*'
8897: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8898: fi
8899: archive_cmds_need_lc='no'
8900: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901: hardcode_libdir_separator=:
8902: ;;
8903:
8904: osf4* | osf5*) # as osf3* with the addition of -msym flag
8905: if test "$GCC" = yes; then
8906: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8907: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8908: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8909: else
8910: allow_undefined_flag=' -expect_unresolved \*'
8911: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8912: 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~
8913: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8914:
8915: # Both c and cxx compiler support -rpath directly
8916: hardcode_libdir_flag_spec='-rpath $libdir'
8917: fi
8918: archive_cmds_need_lc='no'
8919: hardcode_libdir_separator=:
8920: ;;
8921:
8922: solaris*)
8923: no_undefined_flag=' -z defs'
8924: if test "$GCC" = yes; then
8925: wlarc='${wl}'
8926: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8927: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8928: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8929: else
8930: case `$CC -V 2>&1` in
8931: *"Compilers 5.0"*)
8932: wlarc=''
8933: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8934: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8935: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8936: ;;
8937: *)
8938: wlarc='${wl}'
8939: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8940: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8941: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8942: ;;
8943: esac
8944: fi
8945: hardcode_libdir_flag_spec='-R$libdir'
8946: hardcode_shlibpath_var=no
8947: case $host_os in
8948: solaris2.[0-5] | solaris2.[0-5].*) ;;
8949: *)
8950: # The compiler driver will combine and reorder linker options,
8951: # but understands `-z linker_flag'. GCC discards it without `$wl',
8952: # but is careful enough not to reorder.
8953: # Supported since Solaris 2.6 (maybe 2.5.1?)
8954: if test "$GCC" = yes; then
8955: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8956: else
8957: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8958: fi
8959: ;;
8960: esac
8961: link_all_deplibs=yes
8962: ;;
8963:
8964: sunos4*)
8965: if test "x$host_vendor" = xsequent; then
8966: # Use $CC to link under sequent, because it throws in some extra .o
8967: # files that make .init and .fini sections work.
8968: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8969: else
8970: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8971: fi
8972: hardcode_libdir_flag_spec='-L$libdir'
8973: hardcode_direct=yes
8974: hardcode_minus_L=yes
8975: hardcode_shlibpath_var=no
8976: ;;
8977:
8978: sysv4)
8979: case $host_vendor in
8980: sni)
8981: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982: hardcode_direct=yes # is this really true???
8983: ;;
8984: siemens)
8985: ## LD is ld it makes a PLAMLIB
8986: ## CC just makes a GrossModule.
8987: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8988: reload_cmds='$CC -r -o $output$reload_objs'
8989: hardcode_direct=no
8990: ;;
8991: motorola)
8992: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8993: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8994: ;;
8995: esac
8996: runpath_var='LD_RUN_PATH'
8997: hardcode_shlibpath_var=no
8998: ;;
8999:
9000: sysv4.3*)
9001: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002: hardcode_shlibpath_var=no
9003: export_dynamic_flag_spec='-Bexport'
9004: ;;
9005:
9006: sysv4*MP*)
9007: if test -d /usr/nec; then
9008: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9009: hardcode_shlibpath_var=no
9010: runpath_var=LD_RUN_PATH
9011: hardcode_runpath_var=yes
9012: ld_shlibs=yes
9013: fi
9014: ;;
9015:
9016: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9017: no_undefined_flag='${wl}-z,text'
9018: archive_cmds_need_lc=no
9019: hardcode_shlibpath_var=no
9020: runpath_var='LD_RUN_PATH'
9021:
9022: if test "$GCC" = yes; then
9023: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9024: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025: else
9026: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9027: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028: fi
9029: ;;
9030:
9031: sysv5* | sco3.2v5* | sco5v6*)
9032: # Note: We can NOT use -z defs as we might desire, because we do not
9033: # link with -lc, and that would cause any symbols used from libc to
9034: # always be unresolved, which means just about no library would
9035: # ever link correctly. If we're not using GNU ld we use -z text
9036: # though, which does catch some bad symbols but isn't as heavy-handed
9037: # as -z defs.
9038: no_undefined_flag='${wl}-z,text'
9039: allow_undefined_flag='${wl}-z,nodefs'
9040: archive_cmds_need_lc=no
9041: hardcode_shlibpath_var=no
9042: hardcode_libdir_flag_spec='${wl}-R,$libdir'
9043: hardcode_libdir_separator=':'
9044: link_all_deplibs=yes
9045: export_dynamic_flag_spec='${wl}-Bexport'
9046: runpath_var='LD_RUN_PATH'
9047:
9048: if test "$GCC" = yes; then
9049: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9050: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051: else
9052: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054: fi
9055: ;;
9056:
9057: uts4*)
9058: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059: hardcode_libdir_flag_spec='-L$libdir'
9060: hardcode_shlibpath_var=no
9061: ;;
9062:
9063: *)
9064: ld_shlibs=no
9065: ;;
9066: esac
9067:
9068: if test x$host_vendor = xsni; then
9069: case $host in
9070: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9071: export_dynamic_flag_spec='${wl}-Blargedynsym'
9072: ;;
9073: esac
9074: fi
9075: fi
9076:
9077: { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9078: $as_echo "$ld_shlibs" >&6; }
9079: test "$ld_shlibs" = no && can_build_shared=no
9080:
9081: with_gnu_ld=$with_gnu_ld
9082:
9083:
9084:
9085:
9086:
9087:
9088:
9089:
9090:
9091:
9092:
9093:
9094:
9095:
9096:
9097: #
9098: # Do we need to explicitly link libc?
9099: #
9100: case "x$archive_cmds_need_lc" in
9101: x|xyes)
9102: # Assume -lc should be added
9103: archive_cmds_need_lc=yes
9104:
9105: if test "$enable_shared" = yes && test "$GCC" = yes; then
9106: case $archive_cmds in
9107: *'~'*)
9108: # FIXME: we may have to deal with multi-command sequences.
9109: ;;
9110: '$CC '*)
9111: # Test whether the compiler implicitly links with -lc since on some
9112: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9113: # to ld, don't add -lc before -lgcc.
9114: { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9115: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9116: $RM conftest*
9117: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118:
9119: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120: (eval $ac_compile) 2>&5
9121: ac_status=$?
9122: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123: (exit $ac_status); } 2>conftest.err; then
9124: soname=conftest
9125: lib=conftest
9126: libobjs=conftest.$ac_objext
9127: deplibs=
9128: wl=$lt_prog_compiler_wl
9129: pic_flag=$lt_prog_compiler_pic
9130: compiler_flags=-v
9131: linker_flags=-v
9132: verstring=
9133: output_objdir=.
9134: libname=conftest
9135: lt_save_allow_undefined_flag=$allow_undefined_flag
9136: allow_undefined_flag=
9137: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9138: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9139: ac_status=$?
9140: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141: (exit $ac_status); }
9142: then
9143: archive_cmds_need_lc=no
9144: else
9145: archive_cmds_need_lc=yes
9146: fi
9147: allow_undefined_flag=$lt_save_allow_undefined_flag
9148: else
9149: cat conftest.err 1>&5
9150: fi
9151: $RM conftest*
9152: { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9153: $as_echo "$archive_cmds_need_lc" >&6; }
9154: ;;
9155: esac
9156: fi
9157: ;;
9158: esac
9159:
9160:
9161:
9162:
9163:
9164:
9165:
9166:
9167:
9168:
9169:
9170:
9171:
9172:
9173:
9174:
9175:
9176:
9177:
9178:
9179:
9180:
9181:
9182:
9183:
9184:
9185:
9186:
9187:
9188:
9189:
9190:
9191:
9192:
9193:
9194:
9195:
9196:
9197:
9198:
9199:
9200:
9201:
9202:
9203:
9204:
9205:
9206:
9207:
9208:
9209:
9210:
9211:
9212:
9213:
9214:
9215:
9216:
9217:
9218:
9219:
9220:
9221:
9222:
9223:
9224:
9225:
9226:
9227:
9228:
9229:
9230:
9231:
9232:
9233:
9234:
9235:
9236:
9237:
9238:
9239:
9240:
9241:
9242:
9243:
9244:
9245:
9246:
9247:
9248:
9249:
9250:
9251:
9252:
9253:
9254:
9255:
9256:
9257:
9258:
9259:
9260:
9261:
9262:
9263:
9264:
9265:
9266:
9267:
9268:
9269:
9270:
9271:
9272:
9273:
9274:
9275:
9276:
9277:
9278:
9279:
9280:
9281:
9282:
9283:
9284:
9285:
9286:
9287:
9288:
9289:
9290:
9291:
9292:
9293:
9294:
9295:
9296:
9297:
9298:
9299:
9300:
9301:
9302:
9303:
9304:
9305:
9306:
9307:
9308:
9309:
9310:
9311:
9312:
9313:
9314:
9315:
9316: { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9317: $as_echo_n "checking dynamic linker characteristics... " >&6; }
9318:
9319: if test "$GCC" = yes; then
9320: case $host_os in
9321: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9322: *) lt_awk_arg="/^libraries:/" ;;
9323: esac
9324: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9325: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9326: # if the path contains ";" then we assume it to be the separator
9327: # otherwise default to the standard path separator (i.e. ":") - it is
9328: # assumed that no part of a normal pathname contains ";" but that should
9329: # okay in the real world where ";" in dirpaths is itself problematic.
9330: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9331: else
9332: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9333: fi
9334: # Ok, now we have the path, separated by spaces, we can step through it
9335: # and add multilib dir if necessary.
9336: lt_tmp_lt_search_path_spec=
9337: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9338: for lt_sys_path in $lt_search_path_spec; do
9339: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9340: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9341: else
9342: test -d "$lt_sys_path" && \
9343: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9344: fi
9345: done
9346: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9347: BEGIN {RS=" "; FS="/|\n";} {
9348: lt_foo="";
9349: lt_count=0;
9350: for (lt_i = NF; lt_i > 0; lt_i--) {
9351: if ($lt_i != "" && $lt_i != ".") {
9352: if ($lt_i == "..") {
9353: lt_count++;
9354: } else {
9355: if (lt_count == 0) {
9356: lt_foo="/" $lt_i lt_foo;
9357: } else {
9358: lt_count--;
9359: }
9360: }
9361: }
9362: }
9363: if (lt_foo != "") { lt_freq[lt_foo]++; }
9364: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9365: }'`
9366: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9367: else
9368: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9369: fi
9370: library_names_spec=
9371: libname_spec='lib$name'
9372: soname_spec=
9373: shrext_cmds=".so"
9374: postinstall_cmds=
9375: postuninstall_cmds=
9376: finish_cmds=
9377: finish_eval=
9378: shlibpath_var=
9379: shlibpath_overrides_runpath=unknown
9380: version_type=none
9381: dynamic_linker="$host_os ld.so"
9382: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9383: need_lib_prefix=unknown
9384: hardcode_into_libs=no
9385:
9386: # when you set need_version to no, make sure it does not cause -set_version
9387: # flags to be left without arguments
9388: need_version=unknown
9389:
9390: case $host_os in
9391: aix3*)
9392: version_type=linux
9393: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9394: shlibpath_var=LIBPATH
9395:
9396: # AIX 3 has no versioning support, so we append a major version to the name.
9397: soname_spec='${libname}${release}${shared_ext}$major'
9398: ;;
9399:
9400: aix[4-9]*)
9401: version_type=linux
9402: need_lib_prefix=no
9403: need_version=no
9404: hardcode_into_libs=yes
9405: if test "$host_cpu" = ia64; then
9406: # AIX 5 supports IA64
9407: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9408: shlibpath_var=LD_LIBRARY_PATH
9409: else
9410: # With GCC up to 2.95.x, collect2 would create an import file
9411: # for dependence libraries. The import file would start with
9412: # the line `#! .'. This would cause the generated library to
9413: # depend on `.', always an invalid library. This was fixed in
9414: # development snapshots of GCC prior to 3.0.
9415: case $host_os in
9416: aix4 | aix4.[01] | aix4.[01].*)
9417: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9418: echo ' yes '
9419: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9420: :
9421: else
9422: can_build_shared=no
9423: fi
9424: ;;
9425: esac
9426: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9427: # soname into executable. Probably we can add versioning support to
9428: # collect2, so additional links can be useful in future.
9429: if test "$aix_use_runtimelinking" = yes; then
9430: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9431: # instead of lib<name>.a to let people know that these are not
9432: # typical AIX shared libraries.
9433: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434: else
9435: # We preserve .a as extension for shared libraries through AIX4.2
9436: # and later when we are not doing run time linking.
9437: library_names_spec='${libname}${release}.a $libname.a'
9438: soname_spec='${libname}${release}${shared_ext}$major'
9439: fi
9440: shlibpath_var=LIBPATH
9441: fi
9442: ;;
9443:
9444: amigaos*)
9445: case $host_cpu in
9446: powerpc)
9447: # Since July 2007 AmigaOS4 officially supports .so libraries.
9448: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9449: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450: ;;
9451: m68k)
9452: library_names_spec='$libname.ixlibrary $libname.a'
9453: # Create ${libname}_ixlibrary.a entries in /sys/libs.
9454: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9455: ;;
9456: esac
9457: ;;
9458:
9459: beos*)
9460: library_names_spec='${libname}${shared_ext}'
9461: dynamic_linker="$host_os ld.so"
9462: shlibpath_var=LIBRARY_PATH
9463: ;;
9464:
9465: bsdi[45]*)
9466: version_type=linux
9467: need_version=no
9468: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469: soname_spec='${libname}${release}${shared_ext}$major'
9470: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9471: shlibpath_var=LD_LIBRARY_PATH
9472: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9473: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9474: # the default ld.so.conf also contains /usr/contrib/lib and
9475: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9476: # libtool to hard-code these into programs
9477: ;;
9478:
9479: cygwin* | mingw* | pw32* | cegcc*)
9480: version_type=windows
9481: shrext_cmds=".dll"
9482: need_version=no
9483: need_lib_prefix=no
9484:
9485: case $GCC,$host_os in
9486: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9487: library_names_spec='$libname.dll.a'
9488: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9489: postinstall_cmds='base_file=`basename \${file}`~
9490: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9491: dldir=$destdir/`dirname \$dlpath`~
9492: test -d \$dldir || mkdir -p \$dldir~
9493: $install_prog $dir/$dlname \$dldir/$dlname~
9494: chmod a+x \$dldir/$dlname~
9495: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9496: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9497: fi'
9498: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9499: dlpath=$dir/\$dldll~
9500: $RM \$dlpath'
9501: shlibpath_overrides_runpath=yes
9502:
9503: case $host_os in
9504: cygwin*)
9505: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9506: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9507: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9508: ;;
9509: mingw* | cegcc*)
9510: # MinGW DLLs use traditional 'lib' prefix
9511: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9512: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9513: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9514: # It is most probably a Windows format PATH printed by
9515: # mingw gcc, but we are running on Cygwin. Gcc prints its search
9516: # path with ; separators, and with drive letters. We can handle the
9517: # drive letters (cygwin fileutils understands them), so leave them,
9518: # especially as we might pass files found there to a mingw objdump,
9519: # which wouldn't understand a cygwinified path. Ahh.
9520: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9521: else
9522: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9523: fi
9524: ;;
9525: pw32*)
9526: # pw32 DLLs use 'pw' prefix rather than 'lib'
9527: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9528: ;;
9529: esac
9530: ;;
9531:
9532: *)
9533: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9534: ;;
9535: esac
9536: dynamic_linker='Win32 ld.exe'
9537: # FIXME: first we should search . and the directory the executable is in
9538: shlibpath_var=PATH
9539: ;;
9540:
9541: darwin* | rhapsody*)
9542: dynamic_linker="$host_os dyld"
9543: version_type=darwin
9544: need_lib_prefix=no
9545: need_version=no
9546: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9547: soname_spec='${libname}${release}${major}$shared_ext'
9548: shlibpath_overrides_runpath=yes
9549: shlibpath_var=DYLD_LIBRARY_PATH
9550: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9551:
9552: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9553: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9554: ;;
9555:
9556: dgux*)
9557: version_type=linux
9558: need_lib_prefix=no
9559: need_version=no
9560: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9561: soname_spec='${libname}${release}${shared_ext}$major'
9562: shlibpath_var=LD_LIBRARY_PATH
9563: ;;
9564:
9565: freebsd1*)
9566: dynamic_linker=no
9567: ;;
9568:
9569: freebsd* | dragonfly*)
9570: # DragonFly does not have aout. When/if they implement a new
9571: # versioning mechanism, adjust this.
9572: if test -x /usr/bin/objformat; then
9573: objformat=`/usr/bin/objformat`
9574: else
9575: case $host_os in
9576: freebsd[123]*) objformat=aout ;;
9577: *) objformat=elf ;;
9578: esac
9579: fi
9580: version_type=freebsd-$objformat
9581: case $version_type in
9582: freebsd-elf*)
9583: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9584: need_version=no
9585: need_lib_prefix=no
9586: ;;
9587: freebsd-*)
9588: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9589: need_version=yes
9590: ;;
9591: esac
9592: shlibpath_var=LD_LIBRARY_PATH
9593: case $host_os in
9594: freebsd2*)
9595: shlibpath_overrides_runpath=yes
9596: ;;
9597: freebsd3.[01]* | freebsdelf3.[01]*)
9598: shlibpath_overrides_runpath=yes
9599: hardcode_into_libs=yes
9600: ;;
9601: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9602: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9603: shlibpath_overrides_runpath=no
9604: hardcode_into_libs=yes
9605: ;;
9606: *) # from 4.6 on, and DragonFly
9607: shlibpath_overrides_runpath=yes
9608: hardcode_into_libs=yes
9609: ;;
9610: esac
9611: ;;
9612:
9613: gnu*)
9614: version_type=linux
9615: need_lib_prefix=no
9616: need_version=no
9617: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9618: soname_spec='${libname}${release}${shared_ext}$major'
9619: shlibpath_var=LD_LIBRARY_PATH
9620: hardcode_into_libs=yes
9621: ;;
9622:
9623: hpux9* | hpux10* | hpux11*)
9624: # Give a soname corresponding to the major version so that dld.sl refuses to
9625: # link against other versions.
9626: version_type=sunos
9627: need_lib_prefix=no
9628: need_version=no
9629: case $host_cpu in
9630: ia64*)
9631: shrext_cmds='.so'
9632: hardcode_into_libs=yes
9633: dynamic_linker="$host_os dld.so"
9634: shlibpath_var=LD_LIBRARY_PATH
9635: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637: soname_spec='${libname}${release}${shared_ext}$major'
9638: if test "X$HPUX_IA64_MODE" = X32; then
9639: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9640: else
9641: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9642: fi
9643: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9644: ;;
9645: hppa*64*)
9646: shrext_cmds='.sl'
9647: hardcode_into_libs=yes
9648: dynamic_linker="$host_os dld.sl"
9649: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9650: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652: soname_spec='${libname}${release}${shared_ext}$major'
9653: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9654: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9655: ;;
9656: *)
9657: shrext_cmds='.sl'
9658: dynamic_linker="$host_os dld.sl"
9659: shlibpath_var=SHLIB_PATH
9660: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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: ;;
9664: esac
9665: # HP-UX runs *really* slowly unless shared libraries are mode 555.
9666: postinstall_cmds='chmod 555 $lib'
9667: ;;
9668:
9669: interix[3-9]*)
9670: version_type=linux
9671: need_lib_prefix=no
9672: need_version=no
9673: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9674: soname_spec='${libname}${release}${shared_ext}$major'
9675: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9676: shlibpath_var=LD_LIBRARY_PATH
9677: shlibpath_overrides_runpath=no
9678: hardcode_into_libs=yes
9679: ;;
9680:
9681: irix5* | irix6* | nonstopux*)
9682: case $host_os in
9683: nonstopux*) version_type=nonstopux ;;
9684: *)
9685: if test "$lt_cv_prog_gnu_ld" = yes; then
9686: version_type=linux
9687: else
9688: version_type=irix
9689: fi ;;
9690: esac
9691: need_lib_prefix=no
9692: need_version=no
9693: soname_spec='${libname}${release}${shared_ext}$major'
9694: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9695: case $host_os in
9696: irix5* | nonstopux*)
9697: libsuff= shlibsuff=
9698: ;;
9699: *)
9700: case $LD in # libtool.m4 will add one of these switches to LD
9701: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9702: libsuff= shlibsuff= libmagic=32-bit;;
9703: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9704: libsuff=32 shlibsuff=N32 libmagic=N32;;
9705: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9706: libsuff=64 shlibsuff=64 libmagic=64-bit;;
9707: *) libsuff= shlibsuff= libmagic=never-match;;
9708: esac
9709: ;;
9710: esac
9711: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9712: shlibpath_overrides_runpath=no
9713: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9714: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9715: hardcode_into_libs=yes
9716: ;;
9717:
9718: # No shared lib support for Linux oldld, aout, or coff.
9719: linux*oldld* | linux*aout* | linux*coff*)
9720: dynamic_linker=no
9721: ;;
9722:
9723: # This must be Linux ELF.
9724: linux* | k*bsd*-gnu)
9725: version_type=linux
9726: need_lib_prefix=no
9727: need_version=no
9728: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729: soname_spec='${libname}${release}${shared_ext}$major'
9730: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9731: shlibpath_var=LD_LIBRARY_PATH
9732: shlibpath_overrides_runpath=no
9733: # Some binutils ld are patched to set DT_RUNPATH
9734: save_LDFLAGS=$LDFLAGS
9735: save_libdir=$libdir
9736: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9737: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9738: cat >conftest.$ac_ext <<_ACEOF
9739: /* confdefs.h. */
9740: _ACEOF
9741: cat confdefs.h >>conftest.$ac_ext
9742: cat >>conftest.$ac_ext <<_ACEOF
9743: /* end confdefs.h. */
9744:
9745: int
9746: main ()
9747: {
9748:
9749: ;
9750: return 0;
9751: }
9752: _ACEOF
9753: rm -f conftest.$ac_objext conftest$ac_exeext
9754: if { (ac_try="$ac_link"
9755: case "(($ac_try" in
9756: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757: *) ac_try_echo=$ac_try;;
9758: esac
9759: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760: $as_echo "$ac_try_echo") >&5
9761: (eval "$ac_link") 2>conftest.er1
9762: ac_status=$?
9763: grep -v '^ *+' conftest.er1 >conftest.err
9764: rm -f conftest.er1
9765: cat conftest.err >&5
9766: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767: (exit $ac_status); } && {
9768: test -z "$ac_c_werror_flag" ||
9769: test ! -s conftest.err
9770: } && test -s conftest$ac_exeext && {
9771: test "$cross_compiling" = yes ||
9772: $as_test_x conftest$ac_exeext
9773: }; then
9774: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9775: shlibpath_overrides_runpath=yes
9776: fi
9777:
9778: else
9779: $as_echo "$as_me: failed program was:" >&5
9780: sed 's/^/| /' conftest.$ac_ext >&5
9781:
9782:
9783: fi
9784:
9785: rm -rf conftest.dSYM
9786: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787: conftest$ac_exeext conftest.$ac_ext
9788: LDFLAGS=$save_LDFLAGS
9789: libdir=$save_libdir
9790:
9791: # This implies no fast_install, which is unacceptable.
9792: # Some rework will be needed to allow for fast_install
9793: # before this can be enabled.
9794: hardcode_into_libs=yes
9795:
9796: # Append ld.so.conf contents to the search path
9797: if test -f /etc/ld.so.conf; then
9798: 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;/^$/d' | tr '\n' ' '`
9799: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9800: fi
9801:
9802: # We used to test for /lib/ld.so.1 and disable shared libraries on
9803: # powerpc, because MkLinux only supported shared libraries with the
9804: # GNU dynamic linker. Since this was broken with cross compilers,
9805: # most powerpc-linux boxes support dynamic linking these days and
9806: # people can always --disable-shared, the test was removed, and we
9807: # assume the GNU/Linux dynamic linker is in use.
9808: dynamic_linker='GNU/Linux ld.so'
9809: ;;
9810:
9811: netbsd*)
9812: version_type=sunos
9813: need_lib_prefix=no
9814: need_version=no
9815: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9816: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9817: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9818: dynamic_linker='NetBSD (a.out) ld.so'
9819: else
9820: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9821: soname_spec='${libname}${release}${shared_ext}$major'
9822: dynamic_linker='NetBSD ld.elf_so'
9823: fi
9824: shlibpath_var=LD_LIBRARY_PATH
9825: shlibpath_overrides_runpath=yes
9826: hardcode_into_libs=yes
9827: ;;
9828:
9829: newsos6)
9830: version_type=linux
9831: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832: shlibpath_var=LD_LIBRARY_PATH
9833: shlibpath_overrides_runpath=yes
9834: ;;
9835:
9836: *nto* | *qnx*)
9837: version_type=qnx
9838: need_lib_prefix=no
9839: need_version=no
9840: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841: soname_spec='${libname}${release}${shared_ext}$major'
9842: shlibpath_var=LD_LIBRARY_PATH
9843: shlibpath_overrides_runpath=no
9844: hardcode_into_libs=yes
9845: dynamic_linker='ldqnx.so'
9846: ;;
9847:
9848: openbsd*)
9849: version_type=sunos
9850: sys_lib_dlsearch_path_spec="/usr/lib"
9851: need_lib_prefix=no
9852: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9853: case $host_os in
9854: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9855: *) need_version=no ;;
9856: esac
9857: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9858: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9859: shlibpath_var=LD_LIBRARY_PATH
9860: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9861: case $host_os in
9862: openbsd2.[89] | openbsd2.[89].*)
9863: shlibpath_overrides_runpath=no
9864: ;;
9865: *)
9866: shlibpath_overrides_runpath=yes
9867: ;;
9868: esac
9869: else
9870: shlibpath_overrides_runpath=yes
9871: fi
9872: ;;
9873:
9874: os2*)
9875: libname_spec='$name'
9876: shrext_cmds=".dll"
9877: need_lib_prefix=no
9878: library_names_spec='$libname${shared_ext} $libname.a'
9879: dynamic_linker='OS/2 ld.exe'
9880: shlibpath_var=LIBPATH
9881: ;;
9882:
9883: osf3* | osf4* | osf5*)
9884: version_type=osf
9885: need_lib_prefix=no
9886: need_version=no
9887: soname_spec='${libname}${release}${shared_ext}$major'
9888: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889: shlibpath_var=LD_LIBRARY_PATH
9890: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9891: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9892: ;;
9893:
9894: rdos*)
9895: dynamic_linker=no
9896: ;;
9897:
9898: solaris*)
9899: version_type=linux
9900: need_lib_prefix=no
9901: need_version=no
9902: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903: soname_spec='${libname}${release}${shared_ext}$major'
9904: shlibpath_var=LD_LIBRARY_PATH
9905: shlibpath_overrides_runpath=yes
9906: hardcode_into_libs=yes
9907: # ldd complains unless libraries are executable
9908: postinstall_cmds='chmod +x $lib'
9909: ;;
9910:
9911: sunos4*)
9912: version_type=sunos
9913: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9914: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9915: shlibpath_var=LD_LIBRARY_PATH
9916: shlibpath_overrides_runpath=yes
9917: if test "$with_gnu_ld" = yes; then
9918: need_lib_prefix=no
9919: fi
9920: need_version=yes
9921: ;;
9922:
9923: sysv4 | sysv4.3*)
9924: version_type=linux
9925: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926: soname_spec='${libname}${release}${shared_ext}$major'
9927: shlibpath_var=LD_LIBRARY_PATH
9928: case $host_vendor in
9929: sni)
9930: shlibpath_overrides_runpath=no
9931: need_lib_prefix=no
9932: runpath_var=LD_RUN_PATH
9933: ;;
9934: siemens)
9935: need_lib_prefix=no
9936: ;;
9937: motorola)
9938: need_lib_prefix=no
9939: need_version=no
9940: shlibpath_overrides_runpath=no
9941: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9942: ;;
9943: esac
9944: ;;
9945:
9946: sysv4*MP*)
9947: if test -d /usr/nec ;then
9948: version_type=linux
9949: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950: soname_spec='$libname${shared_ext}.$major'
9951: shlibpath_var=LD_LIBRARY_PATH
9952: fi
9953: ;;
9954:
9955: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956: version_type=freebsd-elf
9957: need_lib_prefix=no
9958: need_version=no
9959: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960: soname_spec='${libname}${release}${shared_ext}$major'
9961: shlibpath_var=LD_LIBRARY_PATH
9962: shlibpath_overrides_runpath=yes
9963: hardcode_into_libs=yes
9964: if test "$with_gnu_ld" = yes; then
9965: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9966: else
9967: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968: case $host_os in
9969: sco3.2v5*)
9970: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9971: ;;
9972: esac
9973: fi
9974: sys_lib_dlsearch_path_spec='/usr/lib'
9975: ;;
9976:
9977: tpf*)
9978: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9979: version_type=linux
9980: need_lib_prefix=no
9981: need_version=no
9982: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983: shlibpath_var=LD_LIBRARY_PATH
9984: shlibpath_overrides_runpath=no
9985: hardcode_into_libs=yes
9986: ;;
9987:
9988: uts4*)
9989: version_type=linux
9990: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991: soname_spec='${libname}${release}${shared_ext}$major'
9992: shlibpath_var=LD_LIBRARY_PATH
9993: ;;
9994:
9995: *)
9996: dynamic_linker=no
9997: ;;
9998: esac
9999: { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10000: $as_echo "$dynamic_linker" >&6; }
10001: test "$dynamic_linker" = no && can_build_shared=no
10002:
10003: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10004: if test "$GCC" = yes; then
10005: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10006: fi
10007:
10008: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10009: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10010: fi
10011: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10012: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10013: fi
10014:
10015:
10016:
10017:
10018:
10019:
10020:
10021:
10022:
10023:
10024:
10025:
10026:
10027:
10028:
10029:
10030:
10031:
10032:
10033:
10034:
10035:
10036:
10037:
10038:
10039:
10040:
10041:
10042:
10043:
10044:
10045:
10046:
10047:
10048:
10049:
10050:
10051:
10052:
10053:
10054:
10055:
10056:
10057:
10058:
10059:
10060:
10061:
10062:
10063:
10064:
10065:
10066:
10067:
10068:
10069:
10070:
10071:
10072:
10073:
10074:
10075:
10076:
10077:
10078:
10079:
10080:
10081:
10082:
10083:
10084:
10085:
10086:
10087:
10088:
10089:
10090:
10091:
10092:
10093:
10094:
10095:
10096:
10097:
10098:
10099:
10100:
10101: { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10102: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10103: hardcode_action=
10104: if test -n "$hardcode_libdir_flag_spec" ||
10105: test -n "$runpath_var" ||
10106: test "X$hardcode_automatic" = "Xyes" ; then
10107:
10108: # We can hardcode non-existent directories.
10109: if test "$hardcode_direct" != no &&
10110: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10111: # have to relink, otherwise we might link with an installed library
10112: # when we should be linking with a yet-to-be-installed one
10113: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10114: test "$hardcode_minus_L" != no; then
10115: # Linking always hardcodes the temporary library directory.
10116: hardcode_action=relink
10117: else
10118: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10119: hardcode_action=immediate
10120: fi
10121: else
10122: # We cannot hardcode anything, or else we can only hardcode existing
10123: # directories.
10124: hardcode_action=unsupported
10125: fi
10126: { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10127: $as_echo "$hardcode_action" >&6; }
10128:
10129: if test "$hardcode_action" = relink ||
10130: test "$inherit_rpath" = yes; then
10131: # Fast installation is not supported
10132: enable_fast_install=no
10133: elif test "$shlibpath_overrides_runpath" = yes ||
10134: test "$enable_shared" = no; then
10135: # Fast installation is not necessary
10136: enable_fast_install=needless
10137: fi
10138:
10139:
10140:
10141:
10142:
10143:
10144: if test "x$enable_dlopen" != xyes; then
10145: enable_dlopen=unknown
10146: enable_dlopen_self=unknown
10147: enable_dlopen_self_static=unknown
10148: else
10149: lt_cv_dlopen=no
10150: lt_cv_dlopen_libs=
10151:
10152: case $host_os in
10153: beos*)
10154: lt_cv_dlopen="load_add_on"
10155: lt_cv_dlopen_libs=
10156: lt_cv_dlopen_self=yes
10157: ;;
10158:
10159: mingw* | pw32* | cegcc*)
10160: lt_cv_dlopen="LoadLibrary"
10161: lt_cv_dlopen_libs=
10162: ;;
10163:
10164: cygwin*)
10165: lt_cv_dlopen="dlopen"
10166: lt_cv_dlopen_libs=
10167: ;;
10168:
10169: darwin*)
10170: # if libdl is installed we need to link against it
10171: { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10172: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10173: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10174: $as_echo_n "(cached) " >&6
10175: else
10176: ac_check_lib_save_LIBS=$LIBS
10177: LIBS="-ldl $LIBS"
10178: cat >conftest.$ac_ext <<_ACEOF
10179: /* confdefs.h. */
10180: _ACEOF
10181: cat confdefs.h >>conftest.$ac_ext
10182: cat >>conftest.$ac_ext <<_ACEOF
10183: /* end confdefs.h. */
10184:
10185: /* Override any GCC internal prototype to avoid an error.
10186: Use char because int might match the return type of a GCC
10187: builtin and then its argument prototype would still apply. */
10188: #ifdef __cplusplus
10189: extern "C"
10190: #endif
10191: char dlopen ();
10192: int
10193: main ()
10194: {
10195: return dlopen ();
10196: ;
10197: return 0;
10198: }
10199: _ACEOF
10200: rm -f conftest.$ac_objext conftest$ac_exeext
10201: if { (ac_try="$ac_link"
10202: case "(($ac_try" in
10203: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204: *) ac_try_echo=$ac_try;;
10205: esac
10206: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207: $as_echo "$ac_try_echo") >&5
10208: (eval "$ac_link") 2>conftest.er1
10209: ac_status=$?
10210: grep -v '^ *+' conftest.er1 >conftest.err
10211: rm -f conftest.er1
10212: cat conftest.err >&5
10213: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214: (exit $ac_status); } && {
10215: test -z "$ac_c_werror_flag" ||
10216: test ! -s conftest.err
10217: } && test -s conftest$ac_exeext && {
10218: test "$cross_compiling" = yes ||
10219: $as_test_x conftest$ac_exeext
10220: }; then
10221: ac_cv_lib_dl_dlopen=yes
10222: else
10223: $as_echo "$as_me: failed program was:" >&5
10224: sed 's/^/| /' conftest.$ac_ext >&5
10225:
10226: ac_cv_lib_dl_dlopen=no
10227: fi
10228:
10229: rm -rf conftest.dSYM
10230: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10231: conftest$ac_exeext conftest.$ac_ext
10232: LIBS=$ac_check_lib_save_LIBS
10233: fi
10234: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10235: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10236: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10237: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10238: else
10239:
10240: lt_cv_dlopen="dyld"
10241: lt_cv_dlopen_libs=
10242: lt_cv_dlopen_self=yes
10243:
10244: fi
10245:
10246: ;;
10247:
10248: *)
10249: { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10250: $as_echo_n "checking for shl_load... " >&6; }
10251: if test "${ac_cv_func_shl_load+set}" = set; then
10252: $as_echo_n "(cached) " >&6
10253: else
10254: cat >conftest.$ac_ext <<_ACEOF
10255: /* confdefs.h. */
10256: _ACEOF
10257: cat confdefs.h >>conftest.$ac_ext
10258: cat >>conftest.$ac_ext <<_ACEOF
10259: /* end confdefs.h. */
10260: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10261: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10262: #define shl_load innocuous_shl_load
10263:
10264: /* System header to define __stub macros and hopefully few prototypes,
10265: which can conflict with char shl_load (); below.
10266: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10267: <limits.h> exists even on freestanding compilers. */
10268:
10269: #ifdef __STDC__
10270: # include <limits.h>
10271: #else
10272: # include <assert.h>
10273: #endif
10274:
10275: #undef shl_load
10276:
10277: /* Override any GCC internal prototype to avoid an error.
10278: Use char because int might match the return type of a GCC
10279: builtin and then its argument prototype would still apply. */
10280: #ifdef __cplusplus
10281: extern "C"
10282: #endif
10283: char shl_load ();
10284: /* The GNU C library defines this for functions which it implements
10285: to always fail with ENOSYS. Some functions are actually named
10286: something starting with __ and the normal name is an alias. */
10287: #if defined __stub_shl_load || defined __stub___shl_load
10288: choke me
10289: #endif
10290:
10291: int
10292: main ()
10293: {
10294: return shl_load ();
10295: ;
10296: return 0;
10297: }
10298: _ACEOF
10299: rm -f conftest.$ac_objext conftest$ac_exeext
10300: if { (ac_try="$ac_link"
10301: case "(($ac_try" in
10302: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303: *) ac_try_echo=$ac_try;;
10304: esac
10305: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306: $as_echo "$ac_try_echo") >&5
10307: (eval "$ac_link") 2>conftest.er1
10308: ac_status=$?
10309: grep -v '^ *+' conftest.er1 >conftest.err
10310: rm -f conftest.er1
10311: cat conftest.err >&5
10312: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313: (exit $ac_status); } && {
10314: test -z "$ac_c_werror_flag" ||
10315: test ! -s conftest.err
10316: } && test -s conftest$ac_exeext && {
10317: test "$cross_compiling" = yes ||
10318: $as_test_x conftest$ac_exeext
10319: }; then
10320: ac_cv_func_shl_load=yes
10321: else
10322: $as_echo "$as_me: failed program was:" >&5
10323: sed 's/^/| /' conftest.$ac_ext >&5
10324:
10325: ac_cv_func_shl_load=no
10326: fi
10327:
10328: rm -rf conftest.dSYM
10329: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10330: conftest$ac_exeext conftest.$ac_ext
10331: fi
10332: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10333: $as_echo "$ac_cv_func_shl_load" >&6; }
10334: if test "x$ac_cv_func_shl_load" = x""yes; then
10335: lt_cv_dlopen="shl_load"
10336: else
10337: { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10338: $as_echo_n "checking for shl_load in -ldld... " >&6; }
10339: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10340: $as_echo_n "(cached) " >&6
10341: else
10342: ac_check_lib_save_LIBS=$LIBS
10343: LIBS="-ldld $LIBS"
10344: cat >conftest.$ac_ext <<_ACEOF
10345: /* confdefs.h. */
10346: _ACEOF
10347: cat confdefs.h >>conftest.$ac_ext
10348: cat >>conftest.$ac_ext <<_ACEOF
10349: /* end confdefs.h. */
10350:
10351: /* Override any GCC internal prototype to avoid an error.
10352: Use char because int might match the return type of a GCC
10353: builtin and then its argument prototype would still apply. */
10354: #ifdef __cplusplus
10355: extern "C"
10356: #endif
10357: char shl_load ();
10358: int
10359: main ()
10360: {
10361: return shl_load ();
10362: ;
10363: return 0;
10364: }
10365: _ACEOF
10366: rm -f conftest.$ac_objext conftest$ac_exeext
10367: if { (ac_try="$ac_link"
10368: case "(($ac_try" in
10369: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370: *) ac_try_echo=$ac_try;;
10371: esac
10372: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373: $as_echo "$ac_try_echo") >&5
10374: (eval "$ac_link") 2>conftest.er1
10375: ac_status=$?
10376: grep -v '^ *+' conftest.er1 >conftest.err
10377: rm -f conftest.er1
10378: cat conftest.err >&5
10379: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380: (exit $ac_status); } && {
10381: test -z "$ac_c_werror_flag" ||
10382: test ! -s conftest.err
10383: } && test -s conftest$ac_exeext && {
10384: test "$cross_compiling" = yes ||
10385: $as_test_x conftest$ac_exeext
10386: }; then
10387: ac_cv_lib_dld_shl_load=yes
10388: else
10389: $as_echo "$as_me: failed program was:" >&5
10390: sed 's/^/| /' conftest.$ac_ext >&5
10391:
10392: ac_cv_lib_dld_shl_load=no
10393: fi
10394:
10395: rm -rf conftest.dSYM
10396: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10397: conftest$ac_exeext conftest.$ac_ext
10398: LIBS=$ac_check_lib_save_LIBS
10399: fi
10400: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10401: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10402: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10403: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10404: else
10405: { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10406: $as_echo_n "checking for dlopen... " >&6; }
10407: if test "${ac_cv_func_dlopen+set}" = set; then
10408: $as_echo_n "(cached) " >&6
10409: else
10410: cat >conftest.$ac_ext <<_ACEOF
10411: /* confdefs.h. */
10412: _ACEOF
10413: cat confdefs.h >>conftest.$ac_ext
10414: cat >>conftest.$ac_ext <<_ACEOF
10415: /* end confdefs.h. */
10416: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10417: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10418: #define dlopen innocuous_dlopen
10419:
10420: /* System header to define __stub macros and hopefully few prototypes,
10421: which can conflict with char dlopen (); below.
10422: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10423: <limits.h> exists even on freestanding compilers. */
10424:
10425: #ifdef __STDC__
10426: # include <limits.h>
10427: #else
10428: # include <assert.h>
10429: #endif
10430:
10431: #undef dlopen
10432:
10433: /* Override any GCC internal prototype to avoid an error.
10434: Use char because int might match the return type of a GCC
10435: builtin and then its argument prototype would still apply. */
10436: #ifdef __cplusplus
10437: extern "C"
10438: #endif
10439: char dlopen ();
10440: /* The GNU C library defines this for functions which it implements
10441: to always fail with ENOSYS. Some functions are actually named
10442: something starting with __ and the normal name is an alias. */
10443: #if defined __stub_dlopen || defined __stub___dlopen
10444: choke me
10445: #endif
10446:
10447: int
10448: main ()
10449: {
10450: return dlopen ();
10451: ;
10452: return 0;
10453: }
10454: _ACEOF
10455: rm -f conftest.$ac_objext conftest$ac_exeext
10456: if { (ac_try="$ac_link"
10457: case "(($ac_try" in
10458: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459: *) ac_try_echo=$ac_try;;
10460: esac
10461: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462: $as_echo "$ac_try_echo") >&5
10463: (eval "$ac_link") 2>conftest.er1
10464: ac_status=$?
10465: grep -v '^ *+' conftest.er1 >conftest.err
10466: rm -f conftest.er1
10467: cat conftest.err >&5
10468: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469: (exit $ac_status); } && {
10470: test -z "$ac_c_werror_flag" ||
10471: test ! -s conftest.err
10472: } && test -s conftest$ac_exeext && {
10473: test "$cross_compiling" = yes ||
10474: $as_test_x conftest$ac_exeext
10475: }; then
10476: ac_cv_func_dlopen=yes
10477: else
10478: $as_echo "$as_me: failed program was:" >&5
10479: sed 's/^/| /' conftest.$ac_ext >&5
10480:
10481: ac_cv_func_dlopen=no
10482: fi
10483:
10484: rm -rf conftest.dSYM
10485: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486: conftest$ac_exeext conftest.$ac_ext
10487: fi
10488: { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10489: $as_echo "$ac_cv_func_dlopen" >&6; }
10490: if test "x$ac_cv_func_dlopen" = x""yes; then
10491: lt_cv_dlopen="dlopen"
10492: else
10493: { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10494: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10495: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10496: $as_echo_n "(cached) " >&6
10497: else
10498: ac_check_lib_save_LIBS=$LIBS
10499: LIBS="-ldl $LIBS"
10500: cat >conftest.$ac_ext <<_ACEOF
10501: /* confdefs.h. */
10502: _ACEOF
10503: cat confdefs.h >>conftest.$ac_ext
10504: cat >>conftest.$ac_ext <<_ACEOF
10505: /* end confdefs.h. */
10506:
10507: /* Override any GCC internal prototype to avoid an error.
10508: Use char because int might match the return type of a GCC
10509: builtin and then its argument prototype would still apply. */
10510: #ifdef __cplusplus
10511: extern "C"
10512: #endif
10513: char dlopen ();
10514: int
10515: main ()
10516: {
10517: return dlopen ();
10518: ;
10519: return 0;
10520: }
10521: _ACEOF
10522: rm -f conftest.$ac_objext conftest$ac_exeext
10523: if { (ac_try="$ac_link"
10524: case "(($ac_try" in
10525: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526: *) ac_try_echo=$ac_try;;
10527: esac
10528: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529: $as_echo "$ac_try_echo") >&5
10530: (eval "$ac_link") 2>conftest.er1
10531: ac_status=$?
10532: grep -v '^ *+' conftest.er1 >conftest.err
10533: rm -f conftest.er1
10534: cat conftest.err >&5
10535: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536: (exit $ac_status); } && {
10537: test -z "$ac_c_werror_flag" ||
10538: test ! -s conftest.err
10539: } && test -s conftest$ac_exeext && {
10540: test "$cross_compiling" = yes ||
10541: $as_test_x conftest$ac_exeext
10542: }; then
10543: ac_cv_lib_dl_dlopen=yes
10544: else
10545: $as_echo "$as_me: failed program was:" >&5
10546: sed 's/^/| /' conftest.$ac_ext >&5
10547:
10548: ac_cv_lib_dl_dlopen=no
10549: fi
10550:
10551: rm -rf conftest.dSYM
10552: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10553: conftest$ac_exeext conftest.$ac_ext
10554: LIBS=$ac_check_lib_save_LIBS
10555: fi
10556: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10557: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10558: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10559: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10560: else
10561: { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10562: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10563: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10564: $as_echo_n "(cached) " >&6
10565: else
10566: ac_check_lib_save_LIBS=$LIBS
10567: LIBS="-lsvld $LIBS"
10568: cat >conftest.$ac_ext <<_ACEOF
10569: /* confdefs.h. */
10570: _ACEOF
10571: cat confdefs.h >>conftest.$ac_ext
10572: cat >>conftest.$ac_ext <<_ACEOF
10573: /* end confdefs.h. */
10574:
10575: /* Override any GCC internal prototype to avoid an error.
10576: Use char because int might match the return type of a GCC
10577: builtin and then its argument prototype would still apply. */
10578: #ifdef __cplusplus
10579: extern "C"
10580: #endif
10581: char dlopen ();
10582: int
10583: main ()
10584: {
10585: return dlopen ();
10586: ;
10587: return 0;
10588: }
10589: _ACEOF
10590: rm -f conftest.$ac_objext conftest$ac_exeext
10591: if { (ac_try="$ac_link"
10592: case "(($ac_try" in
10593: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594: *) ac_try_echo=$ac_try;;
10595: esac
10596: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10597: $as_echo "$ac_try_echo") >&5
10598: (eval "$ac_link") 2>conftest.er1
10599: ac_status=$?
10600: grep -v '^ *+' conftest.er1 >conftest.err
10601: rm -f conftest.er1
10602: cat conftest.err >&5
10603: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604: (exit $ac_status); } && {
10605: test -z "$ac_c_werror_flag" ||
10606: test ! -s conftest.err
10607: } && test -s conftest$ac_exeext && {
10608: test "$cross_compiling" = yes ||
10609: $as_test_x conftest$ac_exeext
10610: }; then
10611: ac_cv_lib_svld_dlopen=yes
10612: else
10613: $as_echo "$as_me: failed program was:" >&5
10614: sed 's/^/| /' conftest.$ac_ext >&5
10615:
10616: ac_cv_lib_svld_dlopen=no
10617: fi
10618:
10619: rm -rf conftest.dSYM
10620: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621: conftest$ac_exeext conftest.$ac_ext
10622: LIBS=$ac_check_lib_save_LIBS
10623: fi
10624: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10625: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10626: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10627: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10628: else
10629: { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10630: $as_echo_n "checking for dld_link in -ldld... " >&6; }
10631: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10632: $as_echo_n "(cached) " >&6
10633: else
10634: ac_check_lib_save_LIBS=$LIBS
10635: LIBS="-ldld $LIBS"
10636: cat >conftest.$ac_ext <<_ACEOF
10637: /* confdefs.h. */
10638: _ACEOF
10639: cat confdefs.h >>conftest.$ac_ext
10640: cat >>conftest.$ac_ext <<_ACEOF
10641: /* end confdefs.h. */
10642:
10643: /* Override any GCC internal prototype to avoid an error.
10644: Use char because int might match the return type of a GCC
10645: builtin and then its argument prototype would still apply. */
10646: #ifdef __cplusplus
10647: extern "C"
10648: #endif
10649: char dld_link ();
10650: int
10651: main ()
10652: {
10653: return dld_link ();
10654: ;
10655: return 0;
10656: }
10657: _ACEOF
10658: rm -f conftest.$ac_objext conftest$ac_exeext
10659: if { (ac_try="$ac_link"
10660: case "(($ac_try" in
10661: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662: *) ac_try_echo=$ac_try;;
10663: esac
10664: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10665: $as_echo "$ac_try_echo") >&5
10666: (eval "$ac_link") 2>conftest.er1
10667: ac_status=$?
10668: grep -v '^ *+' conftest.er1 >conftest.err
10669: rm -f conftest.er1
10670: cat conftest.err >&5
10671: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672: (exit $ac_status); } && {
10673: test -z "$ac_c_werror_flag" ||
10674: test ! -s conftest.err
10675: } && test -s conftest$ac_exeext && {
10676: test "$cross_compiling" = yes ||
10677: $as_test_x conftest$ac_exeext
10678: }; then
10679: ac_cv_lib_dld_dld_link=yes
10680: else
10681: $as_echo "$as_me: failed program was:" >&5
10682: sed 's/^/| /' conftest.$ac_ext >&5
10683:
10684: ac_cv_lib_dld_dld_link=no
10685: fi
10686:
10687: rm -rf conftest.dSYM
10688: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10689: conftest$ac_exeext conftest.$ac_ext
10690: LIBS=$ac_check_lib_save_LIBS
10691: fi
10692: { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10693: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10694: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10695: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10696: fi
10697:
10698:
10699: fi
10700:
10701:
10702: fi
10703:
10704:
10705: fi
10706:
10707:
10708: fi
10709:
10710:
10711: fi
10712:
10713: ;;
10714: esac
10715:
10716: if test "x$lt_cv_dlopen" != xno; then
10717: enable_dlopen=yes
10718: else
10719: enable_dlopen=no
10720: fi
10721:
10722: case $lt_cv_dlopen in
10723: dlopen)
10724: save_CPPFLAGS="$CPPFLAGS"
10725: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10726:
10727: save_LDFLAGS="$LDFLAGS"
10728: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10729:
10730: save_LIBS="$LIBS"
10731: LIBS="$lt_cv_dlopen_libs $LIBS"
10732:
10733: { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10734: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10735: if test "${lt_cv_dlopen_self+set}" = set; then
10736: $as_echo_n "(cached) " >&6
10737: else
10738: if test "$cross_compiling" = yes; then :
10739: lt_cv_dlopen_self=cross
10740: else
10741: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10742: lt_status=$lt_dlunknown
10743: cat > conftest.$ac_ext <<_LT_EOF
10744: #line 10744 "configure"
10745: #include "confdefs.h"
10746:
10747: #if HAVE_DLFCN_H
10748: #include <dlfcn.h>
10749: #endif
10750:
10751: #include <stdio.h>
10752:
10753: #ifdef RTLD_GLOBAL
10754: # define LT_DLGLOBAL RTLD_GLOBAL
10755: #else
10756: # ifdef DL_GLOBAL
10757: # define LT_DLGLOBAL DL_GLOBAL
10758: # else
10759: # define LT_DLGLOBAL 0
10760: # endif
10761: #endif
10762:
10763: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10764: find out it does not work in some platform. */
10765: #ifndef LT_DLLAZY_OR_NOW
10766: # ifdef RTLD_LAZY
10767: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10768: # else
10769: # ifdef DL_LAZY
10770: # define LT_DLLAZY_OR_NOW DL_LAZY
10771: # else
10772: # ifdef RTLD_NOW
10773: # define LT_DLLAZY_OR_NOW RTLD_NOW
10774: # else
10775: # ifdef DL_NOW
10776: # define LT_DLLAZY_OR_NOW DL_NOW
10777: # else
10778: # define LT_DLLAZY_OR_NOW 0
10779: # endif
10780: # endif
10781: # endif
10782: # endif
10783: #endif
10784:
10785: void fnord() { int i=42;}
10786: int main ()
10787: {
10788: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10789: int status = $lt_dlunknown;
10790:
10791: if (self)
10792: {
10793: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10794: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10795: /* dlclose (self); */
10796: }
10797: else
10798: puts (dlerror ());
10799:
10800: return status;
10801: }
10802: _LT_EOF
10803: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10804: (eval $ac_link) 2>&5
10805: ac_status=$?
10806: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10808: (./conftest; exit; ) >&5 2>/dev/null
10809: lt_status=$?
10810: case x$lt_status in
10811: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10812: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10813: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10814: esac
10815: else :
10816: # compilation failed
10817: lt_cv_dlopen_self=no
10818: fi
10819: fi
10820: rm -fr conftest*
10821:
10822:
10823: fi
10824: { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10825: $as_echo "$lt_cv_dlopen_self" >&6; }
10826:
10827: if test "x$lt_cv_dlopen_self" = xyes; then
10828: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10829: { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10830: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10831: if test "${lt_cv_dlopen_self_static+set}" = set; then
10832: $as_echo_n "(cached) " >&6
10833: else
10834: if test "$cross_compiling" = yes; then :
10835: lt_cv_dlopen_self_static=cross
10836: else
10837: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10838: lt_status=$lt_dlunknown
10839: cat > conftest.$ac_ext <<_LT_EOF
10840: #line 10840 "configure"
10841: #include "confdefs.h"
10842:
10843: #if HAVE_DLFCN_H
10844: #include <dlfcn.h>
10845: #endif
10846:
10847: #include <stdio.h>
10848:
10849: #ifdef RTLD_GLOBAL
10850: # define LT_DLGLOBAL RTLD_GLOBAL
10851: #else
10852: # ifdef DL_GLOBAL
10853: # define LT_DLGLOBAL DL_GLOBAL
10854: # else
10855: # define LT_DLGLOBAL 0
10856: # endif
10857: #endif
10858:
10859: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10860: find out it does not work in some platform. */
10861: #ifndef LT_DLLAZY_OR_NOW
10862: # ifdef RTLD_LAZY
10863: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10864: # else
10865: # ifdef DL_LAZY
10866: # define LT_DLLAZY_OR_NOW DL_LAZY
10867: # else
10868: # ifdef RTLD_NOW
10869: # define LT_DLLAZY_OR_NOW RTLD_NOW
10870: # else
10871: # ifdef DL_NOW
10872: # define LT_DLLAZY_OR_NOW DL_NOW
10873: # else
10874: # define LT_DLLAZY_OR_NOW 0
10875: # endif
10876: # endif
10877: # endif
10878: # endif
10879: #endif
10880:
10881: void fnord() { int i=42;}
10882: int main ()
10883: {
10884: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10885: int status = $lt_dlunknown;
10886:
10887: if (self)
10888: {
10889: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10890: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10891: /* dlclose (self); */
10892: }
10893: else
10894: puts (dlerror ());
10895:
10896: return status;
10897: }
10898: _LT_EOF
10899: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10900: (eval $ac_link) 2>&5
10901: ac_status=$?
10902: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10904: (./conftest; exit; ) >&5 2>/dev/null
10905: lt_status=$?
10906: case x$lt_status in
10907: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10908: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10909: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10910: esac
10911: else :
10912: # compilation failed
10913: lt_cv_dlopen_self_static=no
10914: fi
10915: fi
10916: rm -fr conftest*
10917:
10918:
10919: fi
10920: { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10921: $as_echo "$lt_cv_dlopen_self_static" >&6; }
10922: fi
10923:
10924: CPPFLAGS="$save_CPPFLAGS"
10925: LDFLAGS="$save_LDFLAGS"
10926: LIBS="$save_LIBS"
10927: ;;
10928: esac
10929:
10930: case $lt_cv_dlopen_self in
10931: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10932: *) enable_dlopen_self=unknown ;;
10933: esac
10934:
10935: case $lt_cv_dlopen_self_static in
10936: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10937: *) enable_dlopen_self_static=unknown ;;
10938: esac
10939: fi
10940:
10941:
10942:
10943:
10944:
10945:
10946:
10947:
10948:
10949:
10950:
10951:
10952:
10953:
10954:
10955:
10956:
10957: striplib=
10958: old_striplib=
10959: { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10960: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10961: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10962: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10963: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10964: { $as_echo "$as_me:$LINENO: result: yes" >&5
10965: $as_echo "yes" >&6; }
10966: else
10967: # FIXME - insert some real tests, host_os isn't really good enough
10968: case $host_os in
10969: darwin*)
10970: if test -n "$STRIP" ; then
10971: striplib="$STRIP -x"
10972: old_striplib="$STRIP -S"
10973: { $as_echo "$as_me:$LINENO: result: yes" >&5
10974: $as_echo "yes" >&6; }
10975: else
10976: { $as_echo "$as_me:$LINENO: result: no" >&5
10977: $as_echo "no" >&6; }
10978: fi
10979: ;;
10980: *)
10981: { $as_echo "$as_me:$LINENO: result: no" >&5
10982: $as_echo "no" >&6; }
10983: ;;
10984: esac
10985: fi
10986:
10987:
10988:
10989:
10990:
10991:
10992:
10993:
10994:
10995:
10996:
10997:
10998: # Report which library types will actually be built
10999: { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11000: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11001: { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11002: $as_echo "$can_build_shared" >&6; }
11003:
11004: { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11005: $as_echo_n "checking whether to build shared libraries... " >&6; }
11006: test "$can_build_shared" = "no" && enable_shared=no
11007:
11008: # On AIX, shared libraries and static libraries use the same namespace, and
11009: # are all built from PIC.
11010: case $host_os in
11011: aix3*)
11012: test "$enable_shared" = yes && enable_static=no
11013: if test -n "$RANLIB"; then
11014: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11015: postinstall_cmds='$RANLIB $lib'
11016: fi
11017: ;;
11018:
11019: aix[4-9]*)
11020: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11021: test "$enable_shared" = yes && enable_static=no
11022: fi
11023: ;;
11024: esac
11025: { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11026: $as_echo "$enable_shared" >&6; }
11027:
11028: { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11029: $as_echo_n "checking whether to build static libraries... " >&6; }
11030: # Make sure either enable_shared or enable_static is yes.
11031: test "$enable_shared" = yes || enable_static=yes
11032: { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11033: $as_echo "$enable_static" >&6; }
11034:
11035:
11036:
11037:
11038: fi
11039: ac_ext=c
11040: ac_cpp='$CPP $CPPFLAGS'
11041: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11042: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11043: ac_compiler_gnu=$ac_cv_c_compiler_gnu
11044:
11045: CC="$lt_save_CC"
11046:
11047:
11048:
11049:
11050:
11051:
11052:
11053:
11054:
11055:
11056:
11057:
11058:
11059: ac_config_commands="$ac_config_commands libtool"
11060:
11061:
11062:
11063:
11064: # Only expand once:
11065:
11066:
11067:
11068:
11069: CFLAG_VISIBILITY=
11070: HAVE_VISIBILITY=0
11071: if test -n "$GCC"; then
11072: { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
11073: $as_echo_n "checking for simple visibility declarations... " >&6; }
11074: if test "${gl_cv_cc_visibility+set}" = set; then
11075: $as_echo_n "(cached) " >&6
11076: else
11077:
11078: gl_save_CFLAGS="$CFLAGS"
11079: CFLAGS="$CFLAGS -fvisibility=hidden"
11080: cat >conftest.$ac_ext <<_ACEOF
11081: /* confdefs.h. */
11082: _ACEOF
11083: cat confdefs.h >>conftest.$ac_ext
11084: cat >>conftest.$ac_ext <<_ACEOF
11085: /* end confdefs.h. */
11086: extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11087: extern __attribute__((__visibility__("default"))) int exportedvar;
11088: extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11089: extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11090: int
11091: main ()
11092: {
11093:
11094: ;
11095: return 0;
11096: }
11097: _ACEOF
11098: rm -f conftest.$ac_objext
11099: if { (ac_try="$ac_compile"
11100: case "(($ac_try" in
11101: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102: *) ac_try_echo=$ac_try;;
11103: esac
11104: eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11105: $as_echo "$ac_try_echo") >&5
11106: (eval "$ac_compile") 2>conftest.er1
11107: ac_status=$?
11108: grep -v '^ *+' conftest.er1 >conftest.err
11109: rm -f conftest.er1
11110: cat conftest.err >&5
11111: $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112: (exit $ac_status); } && {
11113: test -z "$ac_c_werror_flag" ||
11114: test ! -s conftest.err
11115: } && test -s conftest.$ac_objext; then
11116: gl_cv_cc_visibility=yes
11117: else
11118: $as_echo "$as_me: failed program was:" >&5
11119: sed 's/^/| /' conftest.$ac_ext >&5
11120:
11121: gl_cv_cc_visibility=no
11122: fi
11123:
11124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125: CFLAGS="$gl_save_CFLAGS"
11126: fi
11127:
11128: { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
11129: $as_echo "$gl_cv_cc_visibility" >&6; }
11130: if test $gl_cv_cc_visibility = yes; then
11131: CFLAG_VISIBILITY="-fvisibility=hidden"
11132: HAVE_VISIBILITY=1
11133: fi
11134: fi
11135:
11136:
11137:
11138: cat >>confdefs.h <<_ACEOF
11139: #define HAVE_VISIBILITY $HAVE_VISIBILITY
11140: _ACEOF
11141:
11142:
11143:
11144:
11145: case "$host_os" in
11146: linux* | solaris* | osf*)
11147: PLUGLIB="preloadable_libiconv.so" ;;
11148: *)
11149: PLUGLIB=""
11150: esac
11151:
11152:
11153: ac_config_files="$ac_config_files Makefile"
11154:
11155: cat >confcache <<\_ACEOF
11156: # This file is a shell script that caches the results of configure
11157: # tests run on this system so they can be shared between configure
11158: # scripts and configure runs, see configure's option --config-cache.
11159: # It is not useful on other systems. If it contains results you don't
11160: # want to keep, you may remove or edit it.
11161: #
11162: # config.status only pays attention to the cache file if you give it
11163: # the --recheck option to rerun configure.
11164: #
11165: # `ac_cv_env_foo' variables (set or unset) will be overridden when
11166: # loading this file, other *unset* `ac_cv_foo' will be assigned the
11167: # following values.
11168:
11169: _ACEOF
11170:
11171: # The following way of writing the cache mishandles newlines in values,
11172: # but we know of no workaround that is simple, portable, and efficient.
11173: # So, we kill variables containing newlines.
11174: # Ultrix sh set writes to stderr and can't be redirected directly,
11175: # and sets the high bit in the cache file unless we assign to the vars.
11176: (
11177: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11178: eval ac_val=\$$ac_var
11179: case $ac_val in #(
11180: *${as_nl}*)
11181: case $ac_var in #(
11182: *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11183: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11184: esac
11185: case $ac_var in #(
11186: _ | IFS | as_nl) ;; #(
11187: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11188: *) $as_unset $ac_var ;;
11189: esac ;;
11190: esac
11191: done
11192:
11193: (set) 2>&1 |
11194: case $as_nl`(ac_space=' '; set) 2>&1` in #(
11195: *${as_nl}ac_space=\ *)
11196: # `set' does not quote correctly, so add quotes (double-quote
11197: # substitution turns \\\\ into \\, and sed turns \\ into \).
11198: sed -n \
11199: "s/'/'\\\\''/g;
11200: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11201: ;; #(
11202: *)
11203: # `set' quotes correctly as required by POSIX, so do not add quotes.
11204: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11205: ;;
11206: esac |
11207: sort
11208: ) |
11209: sed '
11210: /^ac_cv_env_/b end
11211: t clear
11212: :clear
11213: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11214: t end
11215: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11216: :end' >>confcache
11217: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11218: if test -w "$cache_file"; then
11219: test "x$cache_file" != "x/dev/null" &&
11220: { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11221: $as_echo "$as_me: updating cache $cache_file" >&6;}
11222: cat confcache >$cache_file
11223: else
11224: { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11225: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11226: fi
11227: fi
11228: rm -f confcache
11229:
11230: test "x$prefix" = xNONE && prefix=$ac_default_prefix
11231: # Let make expand exec_prefix.
11232: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11233:
11234: # Transform confdefs.h into DEFS.
11235: # Protect against shell expansion while executing Makefile rules.
11236: # Protect against Makefile macro expansion.
11237: #
11238: # If the first sed substitution is executed (which looks for macros that
11239: # take arguments), then branch to the quote section. Otherwise,
11240: # look for a macro that doesn't take arguments.
11241: ac_script='
11242: :mline
11243: /\\$/{
11244: N
11245: s,\\\n,,
11246: b mline
11247: }
11248: t clear
11249: :clear
11250: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11251: t quote
11252: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11253: t quote
11254: b any
11255: :quote
11256: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11257: s/\[/\\&/g
11258: s/\]/\\&/g
11259: s/\$/$$/g
11260: H
11261: :any
11262: ${
11263: g
11264: s/^\n//
11265: s/\n/ /g
11266: p
11267: }
11268: '
11269: DEFS=`sed -n "$ac_script" confdefs.h`
11270:
11271:
11272: ac_libobjs=
11273: ac_ltlibobjs=
11274: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11275: # 1. Remove the extension, and $U if already installed.
11276: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11277: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11278: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11279: # will be set to the directory where LIBOBJS objects are built.
11280: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11281: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11282: done
11283: LIBOBJS=$ac_libobjs
11284:
11285: LTLIBOBJS=$ac_ltlibobjs
11286:
11287:
11288:
11289: : ${CONFIG_STATUS=./config.status}
11290: ac_write_fail=0
11291: ac_clean_files_save=$ac_clean_files
11292: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11293: { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11294: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11295: cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11296: #! $SHELL
11297: # Generated by $as_me.
11298: # Run this file to recreate the current configuration.
11299: # Compiler output produced by configure, useful for debugging
11300: # configure, is in config.log if it exists.
11301:
11302: debug=false
11303: ac_cs_recheck=false
11304: ac_cs_silent=false
11305: SHELL=\${CONFIG_SHELL-$SHELL}
11306: _ACEOF
11307:
11308: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11309: ## --------------------- ##
11310: ## M4sh Initialization. ##
11311: ## --------------------- ##
11312:
11313: # Be more Bourne compatible
11314: DUALCASE=1; export DUALCASE # for MKS sh
11315: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11316: emulate sh
11317: NULLCMD=:
11318: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11319: # is contrary to our usage. Disable this feature.
11320: alias -g '${1+"$@"}'='"$@"'
11321: setopt NO_GLOB_SUBST
11322: else
11323: case `(set -o) 2>/dev/null` in
11324: *posix*) set -o posix ;;
11325: esac
11326:
11327: fi
11328:
11329:
11330:
11331:
11332: # PATH needs CR
11333: # Avoid depending upon Character Ranges.
11334: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11335: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11336: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11337: as_cr_digits='0123456789'
11338: as_cr_alnum=$as_cr_Letters$as_cr_digits
11339:
11340: as_nl='
11341: '
11342: export as_nl
11343: # Printing a long string crashes Solaris 7 /usr/bin/printf.
11344: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11345: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11346: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11347: if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11348: as_echo='printf %s\n'
11349: as_echo_n='printf %s'
11350: else
11351: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11352: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11353: as_echo_n='/usr/ucb/echo -n'
11354: else
11355: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11356: as_echo_n_body='eval
11357: arg=$1;
11358: case $arg in
11359: *"$as_nl"*)
11360: expr "X$arg" : "X\\(.*\\)$as_nl";
11361: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11362: esac;
11363: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11364: '
11365: export as_echo_n_body
11366: as_echo_n='sh -c $as_echo_n_body as_echo'
11367: fi
11368: export as_echo_body
11369: as_echo='sh -c $as_echo_body as_echo'
11370: fi
11371:
11372: # The user is always right.
11373: if test "${PATH_SEPARATOR+set}" != set; then
11374: PATH_SEPARATOR=:
11375: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11376: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11377: PATH_SEPARATOR=';'
11378: }
11379: fi
11380:
11381: # Support unset when possible.
11382: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11383: as_unset=unset
11384: else
11385: as_unset=false
11386: fi
11387:
11388:
11389: # IFS
11390: # We need space, tab and new line, in precisely that order. Quoting is
11391: # there to prevent editors from complaining about space-tab.
11392: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11393: # splitting by setting IFS to empty value.)
11394: IFS=" "" $as_nl"
11395:
11396: # Find who we are. Look in the path if we contain no directory separator.
11397: case $0 in
11398: *[\\/]* ) as_myself=$0 ;;
11399: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400: for as_dir in $PATH
11401: do
11402: IFS=$as_save_IFS
11403: test -z "$as_dir" && as_dir=.
11404: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11405: done
11406: IFS=$as_save_IFS
11407:
11408: ;;
11409: esac
11410: # We did not find ourselves, most probably we were run as `sh COMMAND'
11411: # in which case we are not to be found in the path.
11412: if test "x$as_myself" = x; then
11413: as_myself=$0
11414: fi
11415: if test ! -f "$as_myself"; then
11416: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11417: { (exit 1); exit 1; }
11418: fi
11419:
11420: # Work around bugs in pre-3.0 UWIN ksh.
11421: for as_var in ENV MAIL MAILPATH
11422: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11423: done
11424: PS1='$ '
11425: PS2='> '
11426: PS4='+ '
11427:
11428: # NLS nuisances.
11429: LC_ALL=C
11430: export LC_ALL
11431: LANGUAGE=C
11432: export LANGUAGE
11433:
11434: # Required to use basename.
11435: if expr a : '\(a\)' >/dev/null 2>&1 &&
11436: test "X`expr 00001 : '.*\(...\)'`" = X001; then
11437: as_expr=expr
11438: else
11439: as_expr=false
11440: fi
11441:
11442: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11443: as_basename=basename
11444: else
11445: as_basename=false
11446: fi
11447:
11448:
11449: # Name of the executable.
11450: as_me=`$as_basename -- "$0" ||
11451: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11452: X"$0" : 'X\(//\)$' \| \
11453: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11454: $as_echo X/"$0" |
11455: sed '/^.*\/\([^/][^/]*\)\/*$/{
11456: s//\1/
11457: q
11458: }
11459: /^X\/\(\/\/\)$/{
11460: s//\1/
11461: q
11462: }
11463: /^X\/\(\/\).*/{
11464: s//\1/
11465: q
11466: }
11467: s/.*/./; q'`
11468:
11469: # CDPATH.
11470: $as_unset CDPATH
11471:
11472:
11473:
11474: as_lineno_1=$LINENO
11475: as_lineno_2=$LINENO
11476: test "x$as_lineno_1" != "x$as_lineno_2" &&
11477: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11478:
11479: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11480: # uniformly replaced by the line number. The first 'sed' inserts a
11481: # line-number line after each line using $LINENO; the second 'sed'
11482: # does the real work. The second script uses 'N' to pair each
11483: # line-number line with the line containing $LINENO, and appends
11484: # trailing '-' during substitution so that $LINENO is not a special
11485: # case at line end.
11486: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11487: # scripts with optimization help from Paolo Bonzini. Blame Lee
11488: # E. McMahon (1931-1989) for sed's syntax. :-)
11489: sed -n '
11490: p
11491: /[$]LINENO/=
11492: ' <$as_myself |
11493: sed '
11494: s/[$]LINENO.*/&-/
11495: t lineno
11496: b
11497: :lineno
11498: N
11499: :loop
11500: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11501: t loop
11502: s/-\n.*//
11503: ' >$as_me.lineno &&
11504: chmod +x "$as_me.lineno" ||
11505: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11506: { (exit 1); exit 1; }; }
11507:
11508: # Don't try to exec as it changes $[0], causing all sort of problems
11509: # (the dirname of $[0] is not the place where we might find the
11510: # original and so on. Autoconf is especially sensitive to this).
11511: . "./$as_me.lineno"
11512: # Exit status is that of the last command.
11513: exit
11514: }
11515:
11516:
11517: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11518: as_dirname=dirname
11519: else
11520: as_dirname=false
11521: fi
11522:
11523: ECHO_C= ECHO_N= ECHO_T=
11524: case `echo -n x` in
11525: -n*)
11526: case `echo 'x\c'` in
11527: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11528: *) ECHO_C='\c';;
11529: esac;;
11530: *)
11531: ECHO_N='-n';;
11532: esac
11533: if expr a : '\(a\)' >/dev/null 2>&1 &&
11534: test "X`expr 00001 : '.*\(...\)'`" = X001; then
11535: as_expr=expr
11536: else
11537: as_expr=false
11538: fi
11539:
11540: rm -f conf$$ conf$$.exe conf$$.file
11541: if test -d conf$$.dir; then
11542: rm -f conf$$.dir/conf$$.file
11543: else
11544: rm -f conf$$.dir
11545: mkdir conf$$.dir 2>/dev/null
11546: fi
11547: if (echo >conf$$.file) 2>/dev/null; then
11548: if ln -s conf$$.file conf$$ 2>/dev/null; then
11549: as_ln_s='ln -s'
11550: # ... but there are two gotchas:
11551: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11552: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11553: # In both cases, we have to default to `cp -p'.
11554: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11555: as_ln_s='cp -p'
11556: elif ln conf$$.file conf$$ 2>/dev/null; then
11557: as_ln_s=ln
11558: else
11559: as_ln_s='cp -p'
11560: fi
11561: else
11562: as_ln_s='cp -p'
11563: fi
11564: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11565: rmdir conf$$.dir 2>/dev/null
11566:
11567: if mkdir -p . 2>/dev/null; then
11568: as_mkdir_p=:
11569: else
11570: test -d ./-p && rmdir ./-p
11571: as_mkdir_p=false
11572: fi
11573:
11574: if test -x / >/dev/null 2>&1; then
11575: as_test_x='test -x'
11576: else
11577: if ls -dL / >/dev/null 2>&1; then
11578: as_ls_L_option=L
11579: else
11580: as_ls_L_option=
11581: fi
11582: as_test_x='
11583: eval sh -c '\''
11584: if test -d "$1"; then
11585: test -d "$1/.";
11586: else
11587: case $1 in
11588: -*)set "./$1";;
11589: esac;
11590: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11591: ???[sx]*):;;*)false;;esac;fi
11592: '\'' sh
11593: '
11594: fi
11595: as_executable_p=$as_test_x
11596:
11597: # Sed expression to map a string onto a valid CPP name.
11598: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11599:
11600: # Sed expression to map a string onto a valid variable name.
11601: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11602:
11603:
11604: exec 6>&1
11605:
11606: # Save the log message, to keep $[0] and so on meaningful, and to
11607: # report actual input values of CONFIG_FILES etc. instead of their
11608: # values after options handling.
11609: ac_log="
11610: This file was extended by $as_me, which was
11611: generated by GNU Autoconf 2.63. Invocation command line was
11612:
11613: CONFIG_FILES = $CONFIG_FILES
11614: CONFIG_HEADERS = $CONFIG_HEADERS
11615: CONFIG_LINKS = $CONFIG_LINKS
11616: CONFIG_COMMANDS = $CONFIG_COMMANDS
11617: $ $0 $@
11618:
11619: on `(hostname || uname -n) 2>/dev/null | sed 1q`
11620: "
11621:
11622: _ACEOF
11623:
11624: case $ac_config_files in *"
11625: "*) set x $ac_config_files; shift; ac_config_files=$*;;
11626: esac
11627:
11628:
11629:
11630: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11631: # Files that config.status was made for.
11632: config_files="$ac_config_files"
11633: config_commands="$ac_config_commands"
11634:
11635: _ACEOF
11636:
11637: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11638: ac_cs_usage="\
11639: \`$as_me' instantiates files from templates according to the
11640: current configuration.
11641:
11642: Usage: $0 [OPTION]... [FILE]...
11643:
11644: -h, --help print this help, then exit
11645: -V, --version print version number and configuration settings, then exit
11646: -q, --quiet, --silent
11647: do not print progress messages
11648: -d, --debug don't remove temporary files
11649: --recheck update $as_me by reconfiguring in the same conditions
11650: --file=FILE[:TEMPLATE]
11651: instantiate the configuration file FILE
11652:
11653: Configuration files:
11654: $config_files
11655:
11656: Configuration commands:
11657: $config_commands
11658:
11659: Report bugs to <bug-autoconf@gnu.org>."
11660:
11661: _ACEOF
11662: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11663: ac_cs_version="\\
11664: config.status
11665: configured by $0, generated by GNU Autoconf 2.63,
11666: with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11667:
11668: Copyright (C) 2008 Free Software Foundation, Inc.
11669: This config.status script is free software; the Free Software Foundation
11670: gives unlimited permission to copy, distribute and modify it."
11671:
11672: ac_pwd='$ac_pwd'
11673: srcdir='$srcdir'
11674: INSTALL='$INSTALL'
11675: test -n "\$AWK" || AWK=awk
11676: _ACEOF
11677:
11678: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11679: # The default lists apply if the user does not specify any file.
11680: ac_need_defaults=:
11681: while test $# != 0
11682: do
11683: case $1 in
11684: --*=*)
11685: ac_option=`expr "X$1" : 'X\([^=]*\)='`
11686: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11687: ac_shift=:
11688: ;;
11689: *)
11690: ac_option=$1
11691: ac_optarg=$2
11692: ac_shift=shift
11693: ;;
11694: esac
11695:
11696: case $ac_option in
11697: # Handling of the options.
11698: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11699: ac_cs_recheck=: ;;
11700: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11701: $as_echo "$ac_cs_version"; exit ;;
11702: --debug | --debu | --deb | --de | --d | -d )
11703: debug=: ;;
11704: --file | --fil | --fi | --f )
11705: $ac_shift
11706: case $ac_optarg in
11707: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11708: esac
11709: CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11710: ac_need_defaults=false;;
11711: --he | --h | --help | --hel | -h )
11712: $as_echo "$ac_cs_usage"; exit ;;
11713: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11714: | -silent | --silent | --silen | --sile | --sil | --si | --s)
11715: ac_cs_silent=: ;;
11716:
11717: # This is an error.
11718: -*) { $as_echo "$as_me: error: unrecognized option: $1
11719: Try \`$0 --help' for more information." >&2
11720: { (exit 1); exit 1; }; } ;;
11721:
11722: *) ac_config_targets="$ac_config_targets $1"
11723: ac_need_defaults=false ;;
11724:
11725: esac
11726: shift
11727: done
11728:
11729: ac_configure_extra_args=
11730:
11731: if $ac_cs_silent; then
11732: exec 6>/dev/null
11733: ac_configure_extra_args="$ac_configure_extra_args --silent"
11734: fi
11735:
11736: _ACEOF
11737: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11738: if \$ac_cs_recheck; then
11739: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11740: shift
11741: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11742: CONFIG_SHELL='$SHELL'
11743: export CONFIG_SHELL
11744: exec "\$@"
11745: fi
11746:
11747: _ACEOF
11748: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749: exec 5>>config.log
11750: {
11751: echo
11752: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11753: ## Running $as_me. ##
11754: _ASBOX
11755: $as_echo "$ac_log"
11756: } >&5
11757:
11758: _ACEOF
11759: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760: #
11761: # INIT-COMMANDS
11762: #
11763:
11764:
11765: # The HP-UX ksh and POSIX shell print the target directory to stdout
11766: # if CDPATH is set.
11767: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11768:
11769: sed_quote_subst='$sed_quote_subst'
11770: double_quote_subst='$double_quote_subst'
11771: delay_variable_subst='$delay_variable_subst'
11772: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11773: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11774: AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
11775: DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11776: OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11777: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11778: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11779: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11780: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11781: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11782: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11783: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11784: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11785: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11786: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11787: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11788: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11789: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11790: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11791: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11792: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11793: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11794: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11795: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11796: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11797: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11798: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11799: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11800: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11801: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11802: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11803: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11804: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11805: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11806: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11807: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11808: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11809: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11810: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11811: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11812: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11813: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11814: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11815: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11816: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11817: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11818: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11819: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11820: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11821: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11822: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11823: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11824: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11825: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11826: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11827: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11828: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11829: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11830: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11831: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11832: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11833: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11834: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11835: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11836: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11837: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11838: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11839: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11840: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11841: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11842: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11843: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11844: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11845: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11846: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11847: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11848: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11849: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11850: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11851: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11852: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11853: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11854: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11855: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11856: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11857: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11858: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11859: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11860: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11861: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11862: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11863: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11864: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11865: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11866: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11867: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11868: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11869: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11870: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11871: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11872: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11873: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11874: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11875: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11876: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11877: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11878: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11879: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11880: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11881: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11882: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11883: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11884: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11885: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11886: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11887: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11888: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11889: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11890: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11891: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11892:
11893: LTCC='$LTCC'
11894: LTCFLAGS='$LTCFLAGS'
11895: compiler='$compiler_DEFAULT'
11896:
11897: # Quote evaled strings.
11898: for var in SED \
11899: GREP \
11900: EGREP \
11901: FGREP \
11902: LD \
11903: NM \
11904: LN_S \
11905: lt_SP2NL \
11906: lt_NL2SP \
11907: reload_flag \
11908: deplibs_check_method \
11909: file_magic_cmd \
11910: AR \
11911: AR_FLAGS \
11912: STRIP \
11913: RANLIB \
11914: CC \
11915: CFLAGS \
11916: compiler \
11917: lt_cv_sys_global_symbol_pipe \
11918: lt_cv_sys_global_symbol_to_cdecl \
11919: lt_cv_sys_global_symbol_to_c_name_address \
11920: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11921: SHELL \
11922: ECHO \
11923: lt_prog_compiler_no_builtin_flag \
11924: lt_prog_compiler_wl \
11925: lt_prog_compiler_pic \
11926: lt_prog_compiler_static \
11927: lt_cv_prog_compiler_c_o \
11928: need_locks \
11929: DSYMUTIL \
11930: NMEDIT \
11931: LIPO \
11932: OTOOL \
11933: OTOOL64 \
11934: shrext_cmds \
11935: export_dynamic_flag_spec \
11936: whole_archive_flag_spec \
11937: compiler_needs_object \
11938: with_gnu_ld \
11939: allow_undefined_flag \
11940: no_undefined_flag \
11941: hardcode_libdir_flag_spec \
11942: hardcode_libdir_flag_spec_ld \
11943: hardcode_libdir_separator \
11944: fix_srcfile_path \
11945: exclude_expsyms \
11946: include_expsyms \
11947: file_list_spec \
11948: variables_saved_for_relink \
11949: libname_spec \
11950: library_names_spec \
11951: soname_spec \
11952: finish_eval \
11953: old_striplib \
11954: striplib; do
11955: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11956: *[\\\\\\\`\\"\\\$]*)
11957: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11958: ;;
11959: *)
11960: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11961: ;;
11962: esac
11963: done
11964:
11965: # Double-quote double-evaled strings.
11966: for var in reload_cmds \
11967: old_postinstall_cmds \
11968: old_postuninstall_cmds \
11969: old_archive_cmds \
11970: extract_expsyms_cmds \
11971: old_archive_from_new_cmds \
11972: old_archive_from_expsyms_cmds \
11973: archive_cmds \
11974: archive_expsym_cmds \
11975: module_cmds \
11976: module_expsym_cmds \
11977: export_symbols_cmds \
11978: prelink_cmds \
11979: postinstall_cmds \
11980: postuninstall_cmds \
11981: finish_cmds \
11982: sys_lib_search_path_spec \
11983: sys_lib_dlsearch_path_spec; do
11984: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11985: *[\\\\\\\`\\"\\\$]*)
11986: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11987: ;;
11988: *)
11989: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11990: ;;
11991: esac
11992: done
11993:
11994: # Fix-up fallback echo if it was mangled by the above quoting rules.
11995: case \$lt_ECHO in
11996: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11997: ;;
11998: esac
11999:
12000: ac_aux_dir='$ac_aux_dir'
12001: xsi_shell='$xsi_shell'
12002: lt_shell_append='$lt_shell_append'
12003:
12004: # See if we are running on zsh, and set the options which allow our
12005: # commands through without removal of \ escapes INIT.
12006: if test -n "\${ZSH_VERSION+set}" ; then
12007: setopt NO_GLOB_SUBST
12008: fi
12009:
12010:
12011: PACKAGE='$PACKAGE'
12012: VERSION='$VERSION'
12013: TIMESTAMP='$TIMESTAMP'
12014: RM='$RM'
12015: ofile='$ofile'
12016:
12017:
12018:
12019:
12020: _ACEOF
12021:
12022: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12023:
12024: # Handling of arguments.
12025: for ac_config_target in $ac_config_targets
12026: do
12027: case $ac_config_target in
12028: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12029: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12030:
12031: *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12032: $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12033: { (exit 1); exit 1; }; };;
12034: esac
12035: done
12036:
12037:
12038: # If the user did not use the arguments to specify the items to instantiate,
12039: # then the envvar interface is used. Set only those that are not.
12040: # We use the long form for the default assignment because of an extremely
12041: # bizarre bug on SunOS 4.1.3.
12042: if $ac_need_defaults; then
12043: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12044: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12045: fi
12046:
12047: # Have a temporary directory for convenience. Make it in the build tree
12048: # simply because there is no reason against having it here, and in addition,
12049: # creating and moving files from /tmp can sometimes cause problems.
12050: # Hook for its removal unless debugging.
12051: # Note that there is a small window in which the directory will not be cleaned:
12052: # after its creation but before its name has been assigned to `$tmp'.
12053: $debug ||
12054: {
12055: tmp=
12056: trap 'exit_status=$?
12057: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12058: ' 0
12059: trap '{ (exit 1); exit 1; }' 1 2 13 15
12060: }
12061: # Create a (secure) tmp directory for tmp files.
12062:
12063: {
12064: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12065: test -n "$tmp" && test -d "$tmp"
12066: } ||
12067: {
12068: tmp=./conf$$-$RANDOM
12069: (umask 077 && mkdir "$tmp")
12070: } ||
12071: {
12072: $as_echo "$as_me: cannot create a temporary directory in ." >&2
12073: { (exit 1); exit 1; }
12074: }
12075:
12076: # Set up the scripts for CONFIG_FILES section.
12077: # No need to generate them if there are no CONFIG_FILES.
12078: # This happens for instance with `./config.status config.h'.
12079: if test -n "$CONFIG_FILES"; then
12080:
12081:
12082: ac_cr='
'
12083: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12084: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12085: ac_cs_awk_cr='\\r'
12086: else
12087: ac_cs_awk_cr=$ac_cr
12088: fi
12089:
12090: echo 'BEGIN {' >"$tmp/subs1.awk" &&
12091: _ACEOF
12092:
12093:
12094: {
12095: echo "cat >conf$$subs.awk <<_ACEOF" &&
12096: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12097: echo "_ACEOF"
12098: } >conf$$subs.sh ||
12099: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12100: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12101: { (exit 1); exit 1; }; }
12102: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12103: ac_delim='%!_!# '
12104: for ac_last_try in false false false false false :; do
12105: . ./conf$$subs.sh ||
12106: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12107: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12108: { (exit 1); exit 1; }; }
12109:
12110: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12111: if test $ac_delim_n = $ac_delim_num; then
12112: break
12113: elif $ac_last_try; then
12114: { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12115: $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12116: { (exit 1); exit 1; }; }
12117: else
12118: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12119: fi
12120: done
12121: rm -f conf$$subs.sh
12122:
12123: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12124: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12125: _ACEOF
12126: sed -n '
12127: h
12128: s/^/S["/; s/!.*/"]=/
12129: p
12130: g
12131: s/^[^!]*!//
12132: :repl
12133: t repl
12134: s/'"$ac_delim"'$//
12135: t delim
12136: :nl
12137: h
12138: s/\(.\{148\}\).*/\1/
12139: t more1
12140: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12141: p
12142: n
12143: b repl
12144: :more1
12145: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12146: p
12147: g
12148: s/.\{148\}//
12149: t nl
12150: :delim
12151: h
12152: s/\(.\{148\}\).*/\1/
12153: t more2
12154: s/["\\]/\\&/g; s/^/"/; s/$/"/
12155: p
12156: b
12157: :more2
12158: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12159: p
12160: g
12161: s/.\{148\}//
12162: t delim
12163: ' <conf$$subs.awk | sed '
12164: /^[^""]/{
12165: N
12166: s/\n//
12167: }
12168: ' >>$CONFIG_STATUS || ac_write_fail=1
12169: rm -f conf$$subs.awk
12170: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12171: _ACAWK
12172: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12173: for (key in S) S_is_set[key] = 1
12174: FS = ""
12175:
12176: }
12177: {
12178: line = $ 0
12179: nfields = split(line, field, "@")
12180: substed = 0
12181: len = length(field[1])
12182: for (i = 2; i < nfields; i++) {
12183: key = field[i]
12184: keylen = length(key)
12185: if (S_is_set[key]) {
12186: value = S[key]
12187: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12188: len += length(value) + length(field[++i])
12189: substed = 1
12190: } else
12191: len += 1 + keylen
12192: }
12193:
12194: print line
12195: }
12196:
12197: _ACAWK
12198: _ACEOF
12199: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12200: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12201: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12202: else
12203: cat
12204: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12205: || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12206: $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12207: { (exit 1); exit 1; }; }
12208: _ACEOF
12209:
12210: # VPATH may cause trouble with some makes, so we remove $(srcdir),
12211: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12212: # trailing colons and then remove the whole line if VPATH becomes empty
12213: # (actually we leave an empty line to preserve line numbers).
12214: if test "x$srcdir" = x.; then
12215: ac_vpsub='/^[ ]*VPATH[ ]*=/{
12216: s/:*\$(srcdir):*/:/
12217: s/:*\${srcdir}:*/:/
12218: s/:*@srcdir@:*/:/
12219: s/^\([^=]*=[ ]*\):*/\1/
12220: s/:*$//
12221: s/^[^=]*=[ ]*$//
12222: }'
12223: fi
12224:
12225: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12226: fi # test -n "$CONFIG_FILES"
12227:
12228:
12229: eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12230: shift
12231: for ac_tag
12232: do
12233: case $ac_tag in
12234: :[FHLC]) ac_mode=$ac_tag; continue;;
12235: esac
12236: case $ac_mode$ac_tag in
12237: :[FHL]*:*);;
12238: :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12239: $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12240: { (exit 1); exit 1; }; };;
12241: :[FH]-) ac_tag=-:-;;
12242: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12243: esac
12244: ac_save_IFS=$IFS
12245: IFS=:
12246: set x $ac_tag
12247: IFS=$ac_save_IFS
12248: shift
12249: ac_file=$1
12250: shift
12251:
12252: case $ac_mode in
12253: :L) ac_source=$1;;
12254: :[FH])
12255: ac_file_inputs=
12256: for ac_f
12257: do
12258: case $ac_f in
12259: -) ac_f="$tmp/stdin";;
12260: *) # Look for the file first in the build tree, then in the source tree
12261: # (if the path is not absolute). The absolute path cannot be DOS-style,
12262: # because $ac_f cannot contain `:'.
12263: test -f "$ac_f" ||
12264: case $ac_f in
12265: [\\/$]*) false;;
12266: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12267: esac ||
12268: { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12269: $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12270: { (exit 1); exit 1; }; };;
12271: esac
12272: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12273: ac_file_inputs="$ac_file_inputs '$ac_f'"
12274: done
12275:
12276: # Let's still pretend it is `configure' which instantiates (i.e., don't
12277: # use $as_me), people would be surprised to read:
12278: # /* config.h. Generated by config.status. */
12279: configure_input='Generated from '`
12280: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12281: `' by configure.'
12282: if test x"$ac_file" != x-; then
12283: configure_input="$ac_file. $configure_input"
12284: { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12285: $as_echo "$as_me: creating $ac_file" >&6;}
12286: fi
12287: # Neutralize special characters interpreted by sed in replacement strings.
12288: case $configure_input in #(
12289: *\&* | *\|* | *\\* )
12290: ac_sed_conf_input=`$as_echo "$configure_input" |
12291: sed 's/[\\\\&|]/\\\\&/g'`;; #(
12292: *) ac_sed_conf_input=$configure_input;;
12293: esac
12294:
12295: case $ac_tag in
12296: *:-:* | *:-) cat >"$tmp/stdin" \
12297: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12298: $as_echo "$as_me: error: could not create $ac_file" >&2;}
12299: { (exit 1); exit 1; }; } ;;
12300: esac
12301: ;;
12302: esac
12303:
12304: ac_dir=`$as_dirname -- "$ac_file" ||
12305: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12306: X"$ac_file" : 'X\(//\)[^/]' \| \
12307: X"$ac_file" : 'X\(//\)$' \| \
12308: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12309: $as_echo X"$ac_file" |
12310: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12311: s//\1/
12312: q
12313: }
12314: /^X\(\/\/\)[^/].*/{
12315: s//\1/
12316: q
12317: }
12318: /^X\(\/\/\)$/{
12319: s//\1/
12320: q
12321: }
12322: /^X\(\/\).*/{
12323: s//\1/
12324: q
12325: }
12326: s/.*/./; q'`
12327: { as_dir="$ac_dir"
12328: case $as_dir in #(
12329: -*) as_dir=./$as_dir;;
12330: esac
12331: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12332: as_dirs=
12333: while :; do
12334: case $as_dir in #(
12335: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12336: *) as_qdir=$as_dir;;
12337: esac
12338: as_dirs="'$as_qdir' $as_dirs"
12339: as_dir=`$as_dirname -- "$as_dir" ||
12340: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12341: X"$as_dir" : 'X\(//\)[^/]' \| \
12342: X"$as_dir" : 'X\(//\)$' \| \
12343: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12344: $as_echo X"$as_dir" |
12345: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12346: s//\1/
12347: q
12348: }
12349: /^X\(\/\/\)[^/].*/{
12350: s//\1/
12351: q
12352: }
12353: /^X\(\/\/\)$/{
12354: s//\1/
12355: q
12356: }
12357: /^X\(\/\).*/{
12358: s//\1/
12359: q
12360: }
12361: s/.*/./; q'`
12362: test -d "$as_dir" && break
12363: done
12364: test -z "$as_dirs" || eval "mkdir $as_dirs"
12365: } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12366: $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12367: { (exit 1); exit 1; }; }; }
12368: ac_builddir=.
12369:
12370: case "$ac_dir" in
12371: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12372: *)
12373: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12374: # A ".." for each directory in $ac_dir_suffix.
12375: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12376: case $ac_top_builddir_sub in
12377: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12378: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12379: esac ;;
12380: esac
12381: ac_abs_top_builddir=$ac_pwd
12382: ac_abs_builddir=$ac_pwd$ac_dir_suffix
12383: # for backward compatibility:
12384: ac_top_builddir=$ac_top_build_prefix
12385:
12386: case $srcdir in
12387: .) # We are building in place.
12388: ac_srcdir=.
12389: ac_top_srcdir=$ac_top_builddir_sub
12390: ac_abs_top_srcdir=$ac_pwd ;;
12391: [\\/]* | ?:[\\/]* ) # Absolute name.
12392: ac_srcdir=$srcdir$ac_dir_suffix;
12393: ac_top_srcdir=$srcdir
12394: ac_abs_top_srcdir=$srcdir ;;
12395: *) # Relative name.
12396: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12397: ac_top_srcdir=$ac_top_build_prefix$srcdir
12398: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12399: esac
12400: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12401:
12402:
12403: case $ac_mode in
12404: :F)
12405: #
12406: # CONFIG_FILE
12407: #
12408:
12409: case $INSTALL in
12410: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12411: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12412: esac
12413: _ACEOF
12414:
12415: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416: # If the template does not know about datarootdir, expand it.
12417: # FIXME: This hack should be removed a few years after 2.60.
12418: ac_datarootdir_hack=; ac_datarootdir_seen=
12419:
12420: ac_sed_dataroot='
12421: /datarootdir/ {
12422: p
12423: q
12424: }
12425: /@datadir@/p
12426: /@docdir@/p
12427: /@infodir@/p
12428: /@localedir@/p
12429: /@mandir@/p
12430: '
12431: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12432: *datarootdir*) ac_datarootdir_seen=yes;;
12433: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12434: { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12435: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12436: _ACEOF
12437: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12438: ac_datarootdir_hack='
12439: s&@datadir@&$datadir&g
12440: s&@docdir@&$docdir&g
12441: s&@infodir@&$infodir&g
12442: s&@localedir@&$localedir&g
12443: s&@mandir@&$mandir&g
12444: s&\\\${datarootdir}&$datarootdir&g' ;;
12445: esac
12446: _ACEOF
12447:
12448: # Neutralize VPATH when `$srcdir' = `.'.
12449: # Shell code in configure.ac might set extrasub.
12450: # FIXME: do we really want to maintain this feature?
12451: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12452: ac_sed_extra="$ac_vpsub
12453: $extrasub
12454: _ACEOF
12455: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12456: :t
12457: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12458: s|@configure_input@|$ac_sed_conf_input|;t t
12459: s&@top_builddir@&$ac_top_builddir_sub&;t t
12460: s&@top_build_prefix@&$ac_top_build_prefix&;t t
12461: s&@srcdir@&$ac_srcdir&;t t
12462: s&@abs_srcdir@&$ac_abs_srcdir&;t t
12463: s&@top_srcdir@&$ac_top_srcdir&;t t
12464: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12465: s&@builddir@&$ac_builddir&;t t
12466: s&@abs_builddir@&$ac_abs_builddir&;t t
12467: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12468: s&@INSTALL@&$ac_INSTALL&;t t
12469: $ac_datarootdir_hack
12470: "
12471: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12472: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12473: $as_echo "$as_me: error: could not create $ac_file" >&2;}
12474: { (exit 1); exit 1; }; }
12475:
12476: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12477: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12478: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12479: { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12480: which seems to be undefined. Please make sure it is defined." >&5
12481: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12482: which seems to be undefined. Please make sure it is defined." >&2;}
12483:
12484: rm -f "$tmp/stdin"
12485: case $ac_file in
12486: -) cat "$tmp/out" && rm -f "$tmp/out";;
12487: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12488: esac \
12489: || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12490: $as_echo "$as_me: error: could not create $ac_file" >&2;}
12491: { (exit 1); exit 1; }; }
12492: ;;
12493:
12494:
12495: :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12496: $as_echo "$as_me: executing $ac_file commands" >&6;}
12497: ;;
12498: esac
12499:
12500:
12501: case $ac_file$ac_mode in
12502: "libtool":C)
12503:
12504: # See if we are running on zsh, and set the options which allow our
12505: # commands through without removal of \ escapes.
12506: if test -n "${ZSH_VERSION+set}" ; then
12507: setopt NO_GLOB_SUBST
12508: fi
12509:
12510: cfgfile="${ofile}T"
12511: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12512: $RM "$cfgfile"
12513:
12514: cat <<_LT_EOF >> "$cfgfile"
12515: #! $SHELL
12516:
12517: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12518: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12519: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12520: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12521: #
12522: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12523: # 2006, 2007, 2008 Free Software Foundation, Inc.
12524: # Written by Gordon Matzigkeit, 1996
12525: #
12526: # This file is part of GNU Libtool.
12527: #
12528: # GNU Libtool is free software; you can redistribute it and/or
12529: # modify it under the terms of the GNU General Public License as
12530: # published by the Free Software Foundation; either version 2 of
12531: # the License, or (at your option) any later version.
12532: #
12533: # As a special exception to the GNU General Public License,
12534: # if you distribute this file as part of a program or library that
12535: # is built using GNU Libtool, you may include this file under the
12536: # same distribution terms that you use for the rest of that program.
12537: #
12538: # GNU Libtool is distributed in the hope that it will be useful,
12539: # but WITHOUT ANY WARRANTY; without even the implied warranty of
12540: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12541: # GNU General Public License for more details.
12542: #
12543: # You should have received a copy of the GNU General Public License
12544: # along with GNU Libtool; see the file COPYING. If not, a copy
12545: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12546: # obtained by writing to the Free Software Foundation, Inc.,
12547: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12548:
12549:
12550: # The names of the tagged configurations supported by this script.
12551: available_tags=""
12552:
12553: # ### BEGIN LIBTOOL CONFIG
12554:
12555: # Which release of libtool.m4 was used?
12556: macro_version=$macro_version
12557: macro_revision=$macro_revision
12558:
12559: # Assembler program.
12560: AS=$AS
12561:
12562: # DLL creation program.
12563: DLLTOOL=$DLLTOOL
12564:
12565: # Object dumper program.
12566: OBJDUMP=$OBJDUMP
12567:
12568: # Whether or not to build shared libraries.
12569: build_libtool_libs=$enable_shared
12570:
12571: # Whether or not to build static libraries.
12572: build_old_libs=$enable_static
12573:
12574: # What type of objects to build.
12575: pic_mode=$pic_mode
12576:
12577: # Whether or not to optimize for fast installation.
12578: fast_install=$enable_fast_install
12579:
12580: # The host system.
12581: host_alias=$host_alias
12582: host=$host
12583: host_os=$host_os
12584:
12585: # The build system.
12586: build_alias=$build_alias
12587: build=$build
12588: build_os=$build_os
12589:
12590: # A sed program that does not truncate output.
12591: SED=$lt_SED
12592:
12593: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12594: Xsed="\$SED -e 1s/^X//"
12595:
12596: # A grep program that handles long lines.
12597: GREP=$lt_GREP
12598:
12599: # An ERE matcher.
12600: EGREP=$lt_EGREP
12601:
12602: # A literal string matcher.
12603: FGREP=$lt_FGREP
12604:
12605: # A BSD- or MS-compatible name lister.
12606: NM=$lt_NM
12607:
12608: # Whether we need soft or hard links.
12609: LN_S=$lt_LN_S
12610:
12611: # What is the maximum length of a command?
12612: max_cmd_len=$max_cmd_len
12613:
12614: # Object file suffix (normally "o").
12615: objext=$ac_objext
12616:
12617: # Executable file suffix (normally "").
12618: exeext=$exeext
12619:
12620: # whether the shell understands "unset".
12621: lt_unset=$lt_unset
12622:
12623: # turn spaces into newlines.
12624: SP2NL=$lt_lt_SP2NL
12625:
12626: # turn newlines into spaces.
12627: NL2SP=$lt_lt_NL2SP
12628:
12629: # How to create reloadable object files.
12630: reload_flag=$lt_reload_flag
12631: reload_cmds=$lt_reload_cmds
12632:
12633: # Method to check whether dependent libraries are shared objects.
12634: deplibs_check_method=$lt_deplibs_check_method
12635:
12636: # Command to use when deplibs_check_method == "file_magic".
12637: file_magic_cmd=$lt_file_magic_cmd
12638:
12639: # The archiver.
12640: AR=$lt_AR
12641: AR_FLAGS=$lt_AR_FLAGS
12642:
12643: # A symbol stripping program.
12644: STRIP=$lt_STRIP
12645:
12646: # Commands used to install an old-style archive.
12647: RANLIB=$lt_RANLIB
12648: old_postinstall_cmds=$lt_old_postinstall_cmds
12649: old_postuninstall_cmds=$lt_old_postuninstall_cmds
12650:
12651: # A C compiler.
12652: LTCC=$lt_CC
12653:
12654: # LTCC compiler flags.
12655: LTCFLAGS=$lt_CFLAGS
12656:
12657: # Take the output of nm and produce a listing of raw symbols and C names.
12658: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12659:
12660: # Transform the output of nm in a proper C declaration.
12661: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12662:
12663: # Transform the output of nm in a C name address pair.
12664: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12665:
12666: # Transform the output of nm in a C name address pair when lib prefix is needed.
12667: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12668:
12669: # The name of the directory that contains temporary libtool files.
12670: objdir=$objdir
12671:
12672: # Shell to use when invoking shell scripts.
12673: SHELL=$lt_SHELL
12674:
12675: # An echo program that does not interpret backslashes.
12676: ECHO=$lt_ECHO
12677:
12678: # Used to examine libraries when file_magic_cmd begins with "file".
12679: MAGIC_CMD=$MAGIC_CMD
12680:
12681: # Must we lock files when doing compilation?
12682: need_locks=$lt_need_locks
12683:
12684: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12685: DSYMUTIL=$lt_DSYMUTIL
12686:
12687: # Tool to change global to local symbols on Mac OS X.
12688: NMEDIT=$lt_NMEDIT
12689:
12690: # Tool to manipulate fat objects and archives on Mac OS X.
12691: LIPO=$lt_LIPO
12692:
12693: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12694: OTOOL=$lt_OTOOL
12695:
12696: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12697: OTOOL64=$lt_OTOOL64
12698:
12699: # Old archive suffix (normally "a").
12700: libext=$libext
12701:
12702: # Shared library suffix (normally ".so").
12703: shrext_cmds=$lt_shrext_cmds
12704:
12705: # The commands to extract the exported symbol list from a shared archive.
12706: extract_expsyms_cmds=$lt_extract_expsyms_cmds
12707:
12708: # Variables whose values should be saved in libtool wrapper scripts and
12709: # restored at link time.
12710: variables_saved_for_relink=$lt_variables_saved_for_relink
12711:
12712: # Do we need the "lib" prefix for modules?
12713: need_lib_prefix=$need_lib_prefix
12714:
12715: # Do we need a version for libraries?
12716: need_version=$need_version
12717:
12718: # Library versioning type.
12719: version_type=$version_type
12720:
12721: # Shared library runtime path variable.
12722: runpath_var=$runpath_var
12723:
12724: # Shared library path variable.
12725: shlibpath_var=$shlibpath_var
12726:
12727: # Is shlibpath searched before the hard-coded library search path?
12728: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12729:
12730: # Format of library name prefix.
12731: libname_spec=$lt_libname_spec
12732:
12733: # List of archive names. First name is the real one, the rest are links.
12734: # The last name is the one that the linker finds with -lNAME
12735: library_names_spec=$lt_library_names_spec
12736:
12737: # The coded name of the library, if different from the real name.
12738: soname_spec=$lt_soname_spec
12739:
12740: # Command to use after installation of a shared archive.
12741: postinstall_cmds=$lt_postinstall_cmds
12742:
12743: # Command to use after uninstallation of a shared archive.
12744: postuninstall_cmds=$lt_postuninstall_cmds
12745:
12746: # Commands used to finish a libtool library installation in a directory.
12747: finish_cmds=$lt_finish_cmds
12748:
12749: # As "finish_cmds", except a single script fragment to be evaled but
12750: # not shown.
12751: finish_eval=$lt_finish_eval
12752:
12753: # Whether we should hardcode library paths into libraries.
12754: hardcode_into_libs=$hardcode_into_libs
12755:
12756: # Compile-time system search path for libraries.
12757: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12758:
12759: # Run-time system search path for libraries.
12760: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12761:
12762: # Whether dlopen is supported.
12763: dlopen_support=$enable_dlopen
12764:
12765: # Whether dlopen of programs is supported.
12766: dlopen_self=$enable_dlopen_self
12767:
12768: # Whether dlopen of statically linked programs is supported.
12769: dlopen_self_static=$enable_dlopen_self_static
12770:
12771: # Commands to strip libraries.
12772: old_striplib=$lt_old_striplib
12773: striplib=$lt_striplib
12774:
12775:
12776: # The linker used to build libraries.
12777: LD=$lt_LD
12778:
12779: # Commands used to build an old-style archive.
12780: old_archive_cmds=$lt_old_archive_cmds
12781:
12782: # A language specific compiler.
12783: CC=$lt_compiler
12784:
12785: # Is the compiler the GNU compiler?
12786: with_gcc=$GCC
12787:
12788: # Compiler flag to turn off builtin functions.
12789: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12790:
12791: # How to pass a linker flag through the compiler.
12792: wl=$lt_lt_prog_compiler_wl
12793:
12794: # Additional compiler flags for building library objects.
12795: pic_flag=$lt_lt_prog_compiler_pic
12796:
12797: # Compiler flag to prevent dynamic linking.
12798: link_static_flag=$lt_lt_prog_compiler_static
12799:
12800: # Does compiler simultaneously support -c and -o options?
12801: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12802:
12803: # Whether or not to add -lc for building shared libraries.
12804: build_libtool_need_lc=$archive_cmds_need_lc
12805:
12806: # Whether or not to disallow shared libs when runtime libs are static.
12807: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12808:
12809: # Compiler flag to allow reflexive dlopens.
12810: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12811:
12812: # Compiler flag to generate shared objects directly from archives.
12813: whole_archive_flag_spec=$lt_whole_archive_flag_spec
12814:
12815: # Whether the compiler copes with passing no objects directly.
12816: compiler_needs_object=$lt_compiler_needs_object
12817:
12818: # Create an old-style archive from a shared archive.
12819: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12820:
12821: # Create a temporary old-style archive to link instead of a shared archive.
12822: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12823:
12824: # Commands used to build a shared archive.
12825: archive_cmds=$lt_archive_cmds
12826: archive_expsym_cmds=$lt_archive_expsym_cmds
12827:
12828: # Commands used to build a loadable module if different from building
12829: # a shared archive.
12830: module_cmds=$lt_module_cmds
12831: module_expsym_cmds=$lt_module_expsym_cmds
12832:
12833: # Whether we are building with GNU ld or not.
12834: with_gnu_ld=$lt_with_gnu_ld
12835:
12836: # Flag that allows shared libraries with undefined symbols to be built.
12837: allow_undefined_flag=$lt_allow_undefined_flag
12838:
12839: # Flag that enforces no undefined symbols.
12840: no_undefined_flag=$lt_no_undefined_flag
12841:
12842: # Flag to hardcode \$libdir into a binary during linking.
12843: # This must work even if \$libdir does not exist
12844: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12845:
12846: # If ld is used when linking, flag to hardcode \$libdir into a binary
12847: # during linking. This must work even if \$libdir does not exist.
12848: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12849:
12850: # Whether we need a single "-rpath" flag with a separated argument.
12851: hardcode_libdir_separator=$lt_hardcode_libdir_separator
12852:
12853: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12854: # DIR into the resulting binary.
12855: hardcode_direct=$hardcode_direct
12856:
12857: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12858: # DIR into the resulting binary and the resulting library dependency is
12859: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12860: # library is relocated.
12861: hardcode_direct_absolute=$hardcode_direct_absolute
12862:
12863: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12864: # into the resulting binary.
12865: hardcode_minus_L=$hardcode_minus_L
12866:
12867: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12868: # into the resulting binary.
12869: hardcode_shlibpath_var=$hardcode_shlibpath_var
12870:
12871: # Set to "yes" if building a shared library automatically hardcodes DIR
12872: # into the library and all subsequent libraries and executables linked
12873: # against it.
12874: hardcode_automatic=$hardcode_automatic
12875:
12876: # Set to yes if linker adds runtime paths of dependent libraries
12877: # to runtime path list.
12878: inherit_rpath=$inherit_rpath
12879:
12880: # Whether libtool must link a program against all its dependency libraries.
12881: link_all_deplibs=$link_all_deplibs
12882:
12883: # Fix the shell variable \$srcfile for the compiler.
12884: fix_srcfile_path=$lt_fix_srcfile_path
12885:
12886: # Set to "yes" if exported symbols are required.
12887: always_export_symbols=$always_export_symbols
12888:
12889: # The commands to list exported symbols.
12890: export_symbols_cmds=$lt_export_symbols_cmds
12891:
12892: # Symbols that should not be listed in the preloaded symbols.
12893: exclude_expsyms=$lt_exclude_expsyms
12894:
12895: # Symbols that must always be exported.
12896: include_expsyms=$lt_include_expsyms
12897:
12898: # Commands necessary for linking programs (against libraries) with templates.
12899: prelink_cmds=$lt_prelink_cmds
12900:
12901: # Specify filename containing input files.
12902: file_list_spec=$lt_file_list_spec
12903:
12904: # How to hardcode a shared library path into an executable.
12905: hardcode_action=$hardcode_action
12906:
12907: # ### END LIBTOOL CONFIG
12908:
12909: _LT_EOF
12910:
12911: case $host_os in
12912: aix3*)
12913: cat <<\_LT_EOF >> "$cfgfile"
12914: # AIX sometimes has problems with the GCC collect2 program. For some
12915: # reason, if we set the COLLECT_NAMES environment variable, the problems
12916: # vanish in a puff of smoke.
12917: if test "X${COLLECT_NAMES+set}" != Xset; then
12918: COLLECT_NAMES=
12919: export COLLECT_NAMES
12920: fi
12921: _LT_EOF
12922: ;;
12923: esac
12924:
12925:
12926: ltmain="$ac_aux_dir/ltmain.sh"
12927:
12928:
12929: # We use sed instead of cat because bash on DJGPP gets confused if
12930: # if finds mixed CR/LF and LF-only lines. Since sed operates in
12931: # text mode, it properly converts lines to CR/LF. This bash problem
12932: # is reportedly fixed, but why not run on old versions too?
12933: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12934: || (rm -f "$cfgfile"; exit 1)
12935:
12936: case $xsi_shell in
12937: yes)
12938: cat << \_LT_EOF >> "$cfgfile"
12939:
12940: # func_dirname file append nondir_replacement
12941: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12942: # otherwise set result to NONDIR_REPLACEMENT.
12943: func_dirname ()
12944: {
12945: case ${1} in
12946: */*) func_dirname_result="${1%/*}${2}" ;;
12947: * ) func_dirname_result="${3}" ;;
12948: esac
12949: }
12950:
12951: # func_basename file
12952: func_basename ()
12953: {
12954: func_basename_result="${1##*/}"
12955: }
12956:
12957: # func_dirname_and_basename file append nondir_replacement
12958: # perform func_basename and func_dirname in a single function
12959: # call:
12960: # dirname: Compute the dirname of FILE. If nonempty,
12961: # add APPEND to the result, otherwise set result
12962: # to NONDIR_REPLACEMENT.
12963: # value returned in "$func_dirname_result"
12964: # basename: Compute filename of FILE.
12965: # value retuned in "$func_basename_result"
12966: # Implementation must be kept synchronized with func_dirname
12967: # and func_basename. For efficiency, we do not delegate to
12968: # those functions but instead duplicate the functionality here.
12969: func_dirname_and_basename ()
12970: {
12971: case ${1} in
12972: */*) func_dirname_result="${1%/*}${2}" ;;
12973: * ) func_dirname_result="${3}" ;;
12974: esac
12975: func_basename_result="${1##*/}"
12976: }
12977:
12978: # func_stripname prefix suffix name
12979: # strip PREFIX and SUFFIX off of NAME.
12980: # PREFIX and SUFFIX must not contain globbing or regex special
12981: # characters, hashes, percent signs, but SUFFIX may contain a leading
12982: # dot (in which case that matches only a dot).
12983: func_stripname ()
12984: {
12985: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12986: # positional parameters, so assign one to ordinary parameter first.
12987: func_stripname_result=${3}
12988: func_stripname_result=${func_stripname_result#"${1}"}
12989: func_stripname_result=${func_stripname_result%"${2}"}
12990: }
12991:
12992: # func_opt_split
12993: func_opt_split ()
12994: {
12995: func_opt_split_opt=${1%%=*}
12996: func_opt_split_arg=${1#*=}
12997: }
12998:
12999: # func_lo2o object
13000: func_lo2o ()
13001: {
13002: case ${1} in
13003: *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13004: *) func_lo2o_result=${1} ;;
13005: esac
13006: }
13007:
13008: # func_xform libobj-or-source
13009: func_xform ()
13010: {
13011: func_xform_result=${1%.*}.lo
13012: }
13013:
13014: # func_arith arithmetic-term...
13015: func_arith ()
13016: {
13017: func_arith_result=$(( $* ))
13018: }
13019:
13020: # func_len string
13021: # STRING may not start with a hyphen.
13022: func_len ()
13023: {
13024: func_len_result=${#1}
13025: }
13026:
13027: _LT_EOF
13028: ;;
13029: *) # Bourne compatible functions.
13030: cat << \_LT_EOF >> "$cfgfile"
13031:
13032: # func_dirname file append nondir_replacement
13033: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13034: # otherwise set result to NONDIR_REPLACEMENT.
13035: func_dirname ()
13036: {
13037: # Extract subdirectory from the argument.
13038: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13039: if test "X$func_dirname_result" = "X${1}"; then
13040: func_dirname_result="${3}"
13041: else
13042: func_dirname_result="$func_dirname_result${2}"
13043: fi
13044: }
13045:
13046: # func_basename file
13047: func_basename ()
13048: {
13049: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13050: }
13051:
13052:
13053: # func_stripname prefix suffix name
13054: # strip PREFIX and SUFFIX off of NAME.
13055: # PREFIX and SUFFIX must not contain globbing or regex special
13056: # characters, hashes, percent signs, but SUFFIX may contain a leading
13057: # dot (in which case that matches only a dot).
13058: # func_strip_suffix prefix name
13059: func_stripname ()
13060: {
13061: case ${2} in
13062: .*) func_stripname_result=`$ECHO "X${3}" \
13063: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13064: *) func_stripname_result=`$ECHO "X${3}" \
13065: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13066: esac
13067: }
13068:
13069: # sed scripts:
13070: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13071: my_sed_long_arg='1s/^-[^=]*=//'
13072:
13073: # func_opt_split
13074: func_opt_split ()
13075: {
13076: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13077: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13078: }
13079:
13080: # func_lo2o object
13081: func_lo2o ()
13082: {
13083: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13084: }
13085:
13086: # func_xform libobj-or-source
13087: func_xform ()
13088: {
13089: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13090: }
13091:
13092: # func_arith arithmetic-term...
13093: func_arith ()
13094: {
13095: func_arith_result=`expr "$@"`
13096: }
13097:
13098: # func_len string
13099: # STRING may not start with a hyphen.
13100: func_len ()
13101: {
13102: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13103: }
13104:
13105: _LT_EOF
13106: esac
13107:
13108: case $lt_shell_append in
13109: yes)
13110: cat << \_LT_EOF >> "$cfgfile"
13111:
13112: # func_append var value
13113: # Append VALUE to the end of shell variable VAR.
13114: func_append ()
13115: {
13116: eval "$1+=\$2"
13117: }
13118: _LT_EOF
13119: ;;
13120: *)
13121: cat << \_LT_EOF >> "$cfgfile"
13122:
13123: # func_append var value
13124: # Append VALUE to the end of shell variable VAR.
13125: func_append ()
13126: {
13127: eval "$1=\$$1\$2"
13128: }
13129:
13130: _LT_EOF
13131: ;;
13132: esac
13133:
13134:
13135: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13136: || (rm -f "$cfgfile"; exit 1)
13137:
13138: mv -f "$cfgfile" "$ofile" ||
13139: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13140: chmod +x "$ofile"
13141:
13142: ;;
13143:
13144: esac
13145: done # for ac_tag
13146:
13147:
13148: { (exit 0); exit 0; }
13149: _ACEOF
13150: chmod +x $CONFIG_STATUS
13151: ac_clean_files=$ac_clean_files_save
13152:
13153: test $ac_write_fail = 0 ||
13154: { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13155: $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13156: { (exit 1); exit 1; }; }
13157:
13158:
13159: # configure is writing to config.log, and then calls config.status.
13160: # config.status does its own redirection, appending to config.log.
13161: # Unfortunately, on DOS this fails, as config.log is still kept open
13162: # by configure, so config.status won't be able to write to it; its
13163: # output is simply discarded. So we exec the FD to /dev/null,
13164: # effectively closing config.log, so it can be properly (re)opened and
13165: # appended to by config.status. When coming back to configure, we
13166: # need to make the FD available again.
13167: if test "$no_create" != yes; then
13168: ac_cs_success=:
13169: ac_config_status_args=
13170: test "$silent" = yes &&
13171: ac_config_status_args="$ac_config_status_args --quiet"
13172: exec 5>/dev/null
13173: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13174: exec 5>>config.log
13175: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13176: # would make configure fail if this is the last instruction.
13177: $ac_cs_success || { (exit 1); exit 1; }
13178: fi
13179: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13180: { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13181: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13182: fi
13183:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>