⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ltconfig

📁 FreeFEM is an implementation of the GFEM language dedicated to the finite element method. It provid
💻
📖 第 1 页 / 共 5 页
字号:
if test "$with_gcc" = yes; then  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6  $rm conftest*  echo "int some_variable = 0;" > conftest.c  save_CFLAGS="$CFLAGS"  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"  echo "$progname:840: checking if $compiler supports -fno-rtti -fno-exceptions" >&5  if { (eval echo $progname:841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then    # The compiler can only warn and ignore the option if not recognized    # So say no if there are warnings      if test -s conftest.err; then	echo "$ac_t"no 1>&6	compiler_rtti_exceptions=no      else	echo "$ac_t"yes 1>&6	compiler_rtti_exceptions=yes      fi  else    # Append any errors to the config.log.    cat conftest.err 1>&5    compiler_rtti_exceptions=no    echo "$ac_t"no 1>&6  fi  CFLAGS="$save_CFLAGS"  $rm conftest*  if test "$compiler_rtti_exceptions" = "yes"; then    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  else    no_builtin_flag=' -fno-builtin'  fi  fi# Check for any special shared library compilation flags.if test -n "$special_shlib_compile_flags"; then  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$special_shlib_compile_flags[ 	]" >/dev/null; then :  else    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2    can_build_shared=no  fifiecho $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6$rm conftest*echo 'main(){return(0);}' > conftest.csave_LDFLAGS="$LDFLAGS"LDFLAGS="$LDFLAGS $link_static_flag"echo "$progname:884: checking if $compiler static flag $link_static_flag works" >&5if { (eval echo $progname:885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then  echo "$ac_t$link_static_flag" 1>&6else  echo "$ac_t"none 1>&6  link_static_flag=fiLDFLAGS="$save_LDFLAGS"$rm conftest*if test -z "$LN_S"; then  # Check to see if we can use ln -s, or we need hard links.  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6  $rm conftestdata  if ln -s X conftestdata 2>/dev/null; then    $rm conftestdata    LN_S="ln -s"  else    LN_S=ln  fi  if test "$LN_S" = "ln -s"; then    echo "$ac_t"yes 1>&6  else    echo "$ac_t"no 1>&6  fifi# Make sure LD is an absolute path.if test -z "$LD"; then  ac_prog=ld  if test "$with_gcc" = yes; then    # Check if gcc -print-prog-name=ld gives a path.    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6    echo "$progname:917: checking for ld used by GCC" >&5    ac_prog=`($CC -print-prog-name=ld) 2>&5`    case "$ac_prog" in    # Accept absolute paths.    /* | [A-Za-z]:[\\/]*)      re_direlt='/[^/][^/]*/\.\./'      # Canonicalize the path of ld      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`      done      test -z "$LD" && LD="$ac_prog"      ;;    "")      # If it fails, then pretend we are not using GCC.      ac_prog=ld      ;;    *)      # If it is relative, then search for the first ld in PATH.      with_gnu_ld=unknown      ;;    esac  elif test "$with_gnu_ld" = yes; then    echo $ac_n "checking for GNU ld... $ac_c" 1>&6    echo "$progname:941: checking for GNU ld" >&5  else    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6    echo "$progname:944: checking for non-GNU ld" >&5  fi  if test -z "$LD"; then    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"    for ac_dir in $PATH; do      test -z "$ac_dir" && ac_dir=.      if test -f "$ac_dir/$ac_prog"; then	LD="$ac_dir/$ac_prog"	# Check to see if the program is GNU ld.  I'd rather use --version,	# but apparently some GNU ld's only accept -v.	# Break only if it was the GNU/non-GNU ld that we prefer.	if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then	  test "$with_gnu_ld" != no && break	else	  test "$with_gnu_ld" != yes && break	fi      fi    done    IFS="$ac_save_ifs"  fi  if test -n "$LD"; then    echo "$ac_t$LD" 1>&6  else    echo "$ac_t"no 1>&6  fi  if test -z "$LD"; then    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2    exit 1  fifi# Check to see if it really is or is not GNU ld.echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6# I'd rather use --version here, but apparently some GNU ld's only accept -v.if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then  with_gnu_ld=yeselse  with_gnu_ld=nofiecho "$ac_t$with_gnu_ld" 1>&6# See if the linker supports building shared libraries.echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6allow_undefined_flag=no_undefined_flag=need_lib_prefix=unknownneed_version=unknown# when you set need_version to no, make sure it does not cause -set_version# flags to be left without argumentsarchive_cmds=archive_expsym_cmds=old_archive_from_new_cmds=export_dynamic_flag_spec=whole_archive_flag_spec=thread_safe_flag_spec=hardcode_libdir_flag_spec=hardcode_libdir_separator=hardcode_direct=nohardcode_minus_L=nohardcode_shlibpath_var=unsupportedrunpath_var=always_export_symbols=noexport_symbols_cmds='$NM $libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'# include_expsyms should be a list of space-separated symbols to be *always*# included in the symbol listinclude_expsyms=# exclude_expsyms can be an egrep regular expression of symbols to exclude# it will be wrapped by ` (' and `)$', so one must not match beginning or# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',# as well as any symbol that contains `d'.exclude_expsyms=case "$host_os" incygwin* | mingw*)  # FIXME: the MSVC++ port hasn't been tested in a loooong time  # When not using gcc, we currently assume that we are using  # Microsoft Visual C++.  if test "$with_gcc" != yes; then    with_gnu_ld=no  fi  ;;freebsd2* | sunos4*)  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"  ;;esacld_shlibs=yesif test "$with_gnu_ld" = yes; then  # If archive_cmds runs LD, not CC, wlarc should be empty  wlarc='${wl}'  # See if GNU ld supports shared libraries.  case "$host_os" in  aix3* | aix4*)    # On AIX, the GNU linker is very broken    ld_shlibs=no    cat <<EOF 1>&2*** Warning: the GNU linker, at least up to release 2.9.1, is reported*** to be unable to reliably create shared libraries on AIX.*** Therefore, libtool is disabling shared libraries support.  If you*** really care for shared libraries, you may want to modify your PATH*** so that a non-GNU linker is found, and then restart.EOF    ;;  amigaos*)    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    ;;  sunos4*)    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'    wlarc=    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  beos*)    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'    else      ld_shlibs=no    fi    ;;  cygwin* | mingw*)    # hardcode_libdir_flag_spec is actually meaningless, as there is    # no search path for DLLs.    hardcode_libdir_flag_spec='-L$libdir'    allow_undefined_flag=unsupported    always_export_symbols=yes    # Extract the symbol export list from an `--export-all' def file,    # then regenerate the def file from the symbol export list, so that    # the compiled dll only exports the symbol export list.    export_symbols_cmds='rm -f $objdir/$soname-ltdll.c~      sed -e "/^# \/\* ltdll.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~      (cd $objdir && $CC -c $soname-ltdll.c)~      $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs~      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'    archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~      _lt_hint=1;      for symbol in `cat $export_symbols`; do        echo "	\$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;	_lt_hint=`expr 1 + \$_lt_hint`;      done~      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'    ;;  *)    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'    else      ld_shlibs=no    fi    ;;  esac  if test "$ld_shlibs" = yes; then    runpath_var=LD_RUN_PATH    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'    export_dynamic_flag_spec='${wl}--export-dynamic'    whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  fielse  # PORTME fill in a description of your system's linker (not GNU ld)  case "$host_os" in  aix3*)    allow_undefined_flag=unsupported    always_export_symbols=yes    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'    # Note: this linker hardcodes the directories in LIBPATH if there    # are no directories specified by -L.    hardcode_minus_L=yes    if test "$with_gcc" = yes && test -z "$link_static_flag"; then      # Neither direct hardcoding nor static linking is supported with a      # broken collect2.      hardcode_direct=unsupported    fi    ;;  aix4*)    allow_undefined_flag=    if test "$with_gcc" = yes; then      if strings `${CC} -print-prog-name=collect2` | \	 grep resolve_lib_name >/dev/null      then	# We have reworked collect2	hardcode_direct=yes      else	# We have old collect2	hardcode_direct=unsupported      fi      archive_cmds='$CC -shared ${wl}-bnoentry -o $objdir/$soname $libobjs $deplibs $linkopts'    else      always_export_symbols=yes      archive_expsym_cmds='$CC -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bM:SRE ${wl}-bnoentry'      hardcode_direct=yes    fi    hardcode_minus_L=yes    # Though LIBPATH variable hardcodes shlibpath into executable,    # it doesn't affect searching for -l* libraries; this confuses    # tests in mdemo.    hardcode_shlibpath_var=unsupported    hardcode_libdir_flag_spec='-L$libdir'   ;;  amigaos*)    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    ;;  cygwin* | mingw*)    # When not using gcc, we currently assume that we are using    # Microsoft Visual C++.    # hardcode_libdir_flag_spec is actually meaningless, as there is    # no search path for DLLs.    hardcode_libdir_flag_spec=' '    allow_undefined_flag=unsupported    # Tell ltmain to make .lib files, not .a files.    libext=lib    # FIXME: Setting linknames here is a bad hack.    archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='    # The linker will automatically build a .lib file if we build a DLL.    old_archive_from_new_cmds='true'    # FIXME: Should let the user specify the lib program.    old_archive_cmds='lib /OUT:$oldlib$oldobjs'    fix_srcfile_path='`cygpath -w $srcfile`'    ;;  freebsd1*)    ld_shlibs=no    can_build_shared=no    ;;  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor  # support.  Future versions do this automatically, but an explicit c++rt0.o  # does not break anything, and helps significantly (at the cost of a little  # extra space).  freebsd2.2*)    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_minus_L=no # verified on 2.2.6    hardcode_shlibpath_var=no    ;;  # Unfortunately, older versions of FreeBSD 2 do not have this feature.  freebsd2*)    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.  freebsd*)    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_minus_L=no    hardcode_shlibpath_var=no    ;;  hpux9*)    archive_cmds='$rm $objdir/$soname~$LD -b +s +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib'    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'    hardcode_direct=yes    hardcode_minus_L=yes    export_dynamic_flag_spec='${wl}-E'    ;;  hpux10* | hpux11*)    archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib $libobjs $deplibs $linkopts'    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'    hardcode_direct=yes    hardcode_minus_L=yes    export_dynamic_flag_spec='${wl}-E'    ;;  irix5* | irix6*)    if test "$with_gcc" = yes; then      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'    else      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'    fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -