Diff

Differences From Artifact [9ca31dd769]:

To Artifact [278f27f121]:


    18     18   
    19     19     LDFLAGS="$OLD_LDFLAGS"
    20     20   ])
    21     21   
    22     22   AC_DEFUN(DC_GET_SHOBJFLAGS, [
    23     23     AC_SUBST(SHOBJFLAGS)
    24     24     AC_SUBST(SHOBJLDFLAGS)
           25  +  AC_SUBST(DEFAULT_TARGET)
    25     26   
    26     27     AC_MSG_CHECKING(how to create shared objects)
    27     28   
           29  +  DEFAULT_TARGET=shared
    28     30     if test -z "$SHOBJFLAGS" -a -z "$SHOBJLDFLAGS"; then
    29     31       DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -rdynamic], [
    30     32         DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared], [
    31     33   	DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -rdynamic -mimpure-text], [
    32     34   	  DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -mimpure-text], [
    33     35   	    DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -rdynamic -Wl,-G,-z,textoff], [
    34     36   	      DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -Wl,-G,-z,textoff], [
    35     37   		DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-shared -dynamiclib -flat_namespace -undefined suppress -bind_at_load], [
    36     38   		  DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-dynamiclib -flat_namespace -undefined suppress -bind_at_load], [
    37     39   		    DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-Wl,-dynamiclib -Wl,-flat_namespace -Wl,-undefined,suppress -Wl,-bind_at_load], [
    38     40   		      DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-dynamiclib -flat_namespace -undefined suppress], [
    39     41   		        DC_TEST_SHOBJFLAGS([-fPIC -DPIC], [-dynamiclib], [
    40         -		          AC_MSG_RESULT(cant)
    41         -		          AC_MSG_ERROR([We are unable to make shared objects.])
           42  +                          DEFAULT_TARGET=static
    42     43                           ])
    43     44   		      ])
    44     45   		    ])
    45     46   		  ])
    46     47   		])
    47     48   	      ])
    48     49   	    ])
    49     50   	  ])
    50     51   	])
    51     52         ])
    52     53       ])
    53     54     fi
    54     55   
    55         -  AC_MSG_RESULT($SHOBJLDFLAGS $SHOBJFLAGS)
           56  +  if test "$DEFAULT_TARGET" = 'shared' ; then
           57  +    AC_MSG_RESULT($SHOBJLDFLAGS $SHOBJFLAGS)
           58  +  else
           59  +    AC_MSG_RESULT(cant -- result will be a static archive)
           60  +  fi
    56     61   
    57     62     DC_SYNC_SHLIBOBJS
    58     63   ])
    59     64   
    60     65   AC_DEFUN(DC_SYNC_SHLIBOBJS, [
    61     66     AC_SUBST(SHLIBOBJS)
    62     67     SHLIBOBJS=""