How can I test in C for the existence of the app indicator library?

I found code in python to do this:
Code:
have_appindicator = True
try:
    import appindicator
except:
    have_appindicator = False