You can do dependencies like this in one step:

```ruby
depends_on 'gdbm' => :optional
```

This will also automatically generate a `--with-gdbm` option, though you can still define the option if you want a custom description instead of the generic one.